Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
open-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
API
open-platform
Commits
4cd99019
Commit
4cd99019
authored
Sep 17, 2019
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改文档
parent
10515c1f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
7 deletions
+7
-7
index.html
dist/index.html
+2
-2
app.5fdd10e43d61e8480c727e94275d0c6c.css
dist/static/css/app.5fdd10e43d61e8480c727e94275d0c6c.css
+0
-0
4.fcabcdb79da879c55cd4.js
dist/static/js/4.fcabcdb79da879c55cd4.js
+2
-2
manifest.858fd59fbfc6804017c1.js
dist/static/js/manifest.858fd59fbfc6804017c1.js
+2
-2
open-doc-left.vue
src/components/open-doc-left.vue
+1
-1
No files found.
dist/index.html
View file @
4cd99019
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
达摩开放平台
</title><link
href=
./static/css/app.1262aec025c00063dd1d91e68849224c.css
rel=
stylesheet
></head><body
class=
damolish
><div
id=
app
></div><script
src=
//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js
></script><script>
// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();
</script><script
type=
text/javascript
src=
./static/js/manifest.119f6d6a195c4070c82d.js
></script><script
type=
text/javascript
src=
./static/js/vendor.0f5b275d4a227ad49647.js
></script><script
type=
text/javascript
src=
./static/js/app.9c50334119061bcb2895.js
></script></body></html>
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
达摩开放平台
</title><link
href=
./static/css/app.5fdd10e43d61e8480c727e94275d0c6c.css
rel=
stylesheet
></head><body
class=
damolish
><div
id=
app
></div><script
src=
//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js
></script><script>
// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();
</script><script
type=
text/javascript
src=
./static/js/manifest.858fd59fbfc6804017c1.js
></script><script
type=
text/javascript
src=
./static/js/vendor.0f5b275d4a227ad49647.js
></script><script
type=
text/javascript
src=
./static/js/app.9c50334119061bcb2895.js
></script></body></html>
\ No newline at end of file
\ No newline at end of file
dist/static/css/app.
1262aec025c00063dd1d91e68849224
c.css
→
dist/static/css/app.
5fdd10e43d61e8480c727e94275d0c6
c.css
View file @
4cd99019
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dist/static/js/4.
bf8e3aeda411aec22fb1
.js
→
dist/static/js/4.
fcabcdb79da879c55cd4
.js
View file @
4cd99019
webpackJsonp
([
4
],{
"0cd1"
:
function
(
e
,
t
){},
"6xoj"
:
function
(
e
,
t
){},
EFqf
:
function
(
e
,
t
,
n
){(
function
(
t
){
!
function
(
t
){
"use strict"
;
var
n
=
{
newline
:
/^
\n
+/
,
code
:
/^
(
{4}[^\n]
+
\n
*
)
+/
,
fences
:
/^
{0,3}(
`
{3,}
|~
{3,})([^
`~
\n]
*
)\n(?:
|
([\s\S]
*
?)\n)(?:
{0,3}\1[
~`
]
* *
(?:\n
+|$
)
|$
)
/
,
hr
:
/^
{0,3}((?:
- *
){3,}
|
(?:
_ *
){3,}
|
(?:\*
*
){3,})(?:\n
+|$
)
/
,
heading
:
/^
{0,3}(
#
{1,6})
+
([^\n]
*
?)(?:
+#+
)?
*
(?:\n
+|$
)
/
,
blockquote
:
/^
(
{0,3}
>
?(
paragraph|
[^\n]
*
)(?:\n
|$
))
+/
,
list
:
/^
(
{0,3})(
bull
)
[\s\S]
+
?(?:
hr|def|
\n{2,}(?!
)(?!\1
bull
)\n
*|
\s
*$
)
/
,
html
:
"^ {0,3}(?:<(script|pre|style)[
\\
s>][
\\
s
\\
S]*?(?:</
\\
1>[^
\\
n]*
\\
n+|$)|comment[^
\\
n]*(
\\
n+|$)|<
\\
?[
\\
s
\\
S]*?
\\
?>
\\
n*|<![A-Z][
\\
s
\\
S]*?>
\\
n*|<!
\\
[CDATA
\\
[[
\\
s
\\
S]*?
\\
]
\\
]>
\\
n*|</?(tag)(?: +|
\\
n|/?>)[
\\
s
\\
S]*?(?:
\\
n{2,}|$)|<(?!script|pre|style)([a-z][
\\
w-]*)(?:attribute)*? */?>(?=[
\\
t]*(?:
\\
n|$))[
\\
s
\\
S]*?(?:
\\
n{2,}|$)|</(?!script|pre|style)[a-z][
\\
w-]*
\\
s*>(?=[
\\
t]*(?:
\\
n|$))[
\\
s
\\
S]*?(?:
\\
n{2,}|$))"
,
def
:
/^
{0,3}\[(
label
)\]
: *
\n?
*<
?([^\s
>
]
+
)
>
?(?:(?:
+
\n?
*| *
\n
*
)(
title
))?
*
(?:\n
+|$
)
/
,
nptable
:
m
,
table
:
m
,
lheading
:
/^
([^\n]
+
)\n
{0,3}(
=+|-+
)
*
(?:\n
+|$
)
/
,
_paragraph
:
/^
([^\n]
+
(?:\n(?!
hr|heading|lheading|blockquote|fences|list|html
)[^\n]
+
)
*
)
/
,
text
:
/^
[^\n]
+/
};
function
r
(
e
){
this
.
tokens
=
[],
this
.
tokens
.
links
=
Object
.
create
(
null
),
this
.
options
=
e
||
y
.
defaults
,
this
.
rules
=
n
.
normal
,
this
.
options
.
pedantic
?
this
.
rules
=
n
.
pedantic
:
this
.
options
.
gfm
&&
(
this
.
rules
=
n
.
gfm
)}
n
.
_label
=
/
(?!\s
*
\])(?:\\[\[\]]
|
[^\[\]])
+/
,
n
.
_title
=
/
(?:
"
(?:\\
"
?
|
[^
"
\\])
*"|'
[^
'
\n]
*
(?:\n[^
'
\n]
+
)
*
\n?
'|
\([^
()
]
*
\))
/
,
n
.
def
=
p
(
n
.
def
).
replace
(
"label"
,
n
.
_label
).
replace
(
"title"
,
n
.
_title
).
getRegex
(),
n
.
bullet
=
/
(?:[
*+-
]
|
\d{1,9}\.)
/
,
n
.
item
=
/^
(
*
)(
bull
)
?[^\n]
*
(?:\n(?!\1
bull
?)[^\n]
*
)
*/
,
n
.
item
=
p
(
n
.
item
,
"gm"
).
replace
(
/bull/g
,
n
.
bullet
).
getRegex
(),
n
.
list
=
p
(
n
.
list
).
replace
(
/bull/g
,
n
.
bullet
).
replace
(
"hr"
,
"
\\
n+(?=
\\
1?(?:(?:- *){3,}|(?:_ *){3,}|(?:
\\
* *){3,})(?:
\\
n+|$))"
).
replace
(
"def"
,
"
\\
n+(?="
+
n
.
def
.
source
+
")"
).
getRegex
(),
n
.
_tag
=
"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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul"
,
n
.
_comment
=
/<!--
(?!
-
?
>
)[\s\S]
*
?
-->/
,
n
.
html
=
p
(
n
.
html
,
"i"
).
replace
(
"comment"
,
n
.
_comment
).
replace
(
"tag"
,
n
.
_tag
).
replace
(
"attribute"
,
/ +
[
a-zA-Z:_
][\w
.:-
]
*
(?:
*= *"
[^
"
\n]
*"| *= *'
[^
'
\n]
*'| *= *
[^\s
"'=<>`
]
+
)?
/
).
getRegex
(),
n
.
paragraph
=
p
(
n
.
_paragraph
).
replace
(
"hr"
,
n
.
hr
).
replace
(
"heading"
,
" {0,3}#{1,6} +"
).
replace
(
"|lheading"
,
""
).
replace
(
"blockquote"
,
" {0,3}>"
).
replace
(
"fences"
,
" {0,3}(?:`{3,}|~{3,})[^`
\\
n]*
\\
n"
).
replace
(
"list"
,
" {0,3}(?:[*+-]|1[.)]) "
).
replace
(
"html"
,
"</?(?:tag)(?: +|
\\
n|/?>)|<(?:script|pre|style|!--)"
).
replace
(
"tag"
,
n
.
_tag
).
getRegex
(),
n
.
blockquote
=
p
(
n
.
blockquote
).
replace
(
"paragraph"
,
n
.
paragraph
).
getRegex
(),
n
.
normal
=
b
({},
n
),
n
.
gfm
=
b
({},
n
.
normal
,{
nptable
:
/^ *
([^
|
\n
]
.*
\|
.*
)\n
*
([
-:
]
+ *
\|[
-| :
]
*
)(?:\n((?:
.*
[^
>
\n
]
.*
(?:\n
|$
))
*
)\n
*|$
)
/
,
table
:
/^ *
\|(
.+
)\n
*
\|?(
*
[
-:
]
+
[
-| :
]
*
)(?:\n((?:
*
[^
>
\n
]
.*
(?:\n
|$
))
*
)\n
*|$
)
/
}),
n
.
pedantic
=
b
({},
n
.
normal
,{
html
:
p
(
"^ *(?:comment *(?:
\\
n|
\\
s*$)|<(tag)[
\\
s
\\
S]+?</
\\
1> *(?:
\\
n{2,}|
\\
s*$)|<tag(?:
\"
[^
\"
]*
\"
|'[^']*'|
\\
s[^'
\"
/>
\\
s]*)*?/?> *(?:
\\
n{2,}|
\\
s*$))"
).
replace
(
"comment"
,
n
.
_comment
).
replace
(
/tag/g
,
"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)
\\
b)
\\
w+(?!:|[^
\\
w
\\
s@]*@)
\\
b"
).
getRegex
(),
def
:
/^ *
\[([^\]]
+
)\]
: *<
?([^\s
>
]
+
)
>
?(?:
+
([
"(
][^\n]
+
[
")
]))?
*
(?:\n
+|$
)
/
,
heading
:
/^ *
(
#
{1,6})
*
([^\n]
+
?)
*
(?:
#+ *
)?(?:\n
+|$
)
/
,
fences
:
m
,
paragraph
:
p
(
n
.
normal
.
_paragraph
).
replace
(
"hr"
,
n
.
hr
).
replace
(
"heading"
,
" *#{1,6} *[^
\
n]"
).
replace
(
"lheading"
,
n
.
lheading
).
replace
(
"blockquote"
,
" {0,3}>"
).
replace
(
"|fences"
,
""
).
replace
(
"|list"
,
""
).
replace
(
"|html"
,
""
).
getRegex
()}),
r
.
rules
=
n
,
r
.
lex
=
function
(
e
,
t
){
return
new
r
(
t
).
lex
(
e
)},
r
.
prototype
.
lex
=
function
(
e
){
return
e
=
e
.
replace
(
/
\r\n
|
\r
/g
,
"
\
n"
).
replace
(
/
\t
/g
,
" "
).
replace
(
/
\u
00a0/g
,
" "
).
replace
(
/
\u
2424/g
,
"
\
n"
),
this
.
token
(
e
,
!
0
)},
r
.
prototype
.
token
=
function
(
e
,
t
){
var
r
,
a
,
i
,
s
,
l
,
o
,
c
,
h
,
p
,
d
,
g
,
f
,
m
,
b
,
x
,
D
;
for
(
e
=
e
.
replace
(
/^ +$/gm
,
""
);
e
;)
if
((
i
=
this
.
rules
.
newline
.
exec
(
e
))
&&
(
e
=
e
.
substring
(
i
[
0
].
length
),
i
[
0
].
length
>
1
&&
this
.
tokens
.
push
({
type
:
"space"
})),
i
=
this
.
rules
.
code
.
exec
(
e
)){
var
y
=
this
.
tokens
[
this
.
tokens
.
length
-
1
];
e
=
e
.
substring
(
i
[
0
].
length
),
y
&&
"paragraph"
===
y
.
type
?
y
.
text
+=
"
\
n"
+
i
[
0
].
trimRight
():(
i
=
i
[
0
].
replace
(
/^
{4}
/gm
,
""
),
this
.
tokens
.
push
({
type
:
"code"
,
codeBlockStyle
:
"indented"
,
text
:
this
.
options
.
pedantic
?
i
:
k
(
i
,
"
\
n"
)}))}
else
if
(
i
=
this
.
rules
.
fences
.
exec
(
e
))
e
=
e
.
substring
(
i
[
0
].
length
),
this
.
tokens
.
push
({
type
:
"code"
,
lang
:
i
[
2
]?
i
[
2
].
trim
():
i
[
2
],
text
:
i
[
3
]
||
""
});
else
if
(
i
=
this
.
rules
.
heading
.
exec
(
e
))
e
=
e
.
substring
(
i
[
0
].
length
),
this
.
tokens
.
push
({
type
:
"heading"
,
depth
:
i
[
1
].
length
,
text
:
i
[
2
]});
else
if
((
i
=
this
.
rules
.
nptable
.
exec
(
e
))
&&
(
o
=
{
type
:
"table"
,
header
:
v
(
i
[
1
].
replace
(
/^ *| *
\|
*$/g
,
""
)),
align
:
i
[
2
].
replace
(
/^ *|
\|
*$/g
,
""
).
split
(
/ *
\|
*/
),
cells
:
i
[
3
]?
i
[
3
].
replace
(
/
\n
$/
,
""
).
split
(
"
\
n"
):[]}).
header
.
length
===
o
.
align
.
length
){
for
(
e
=
e
.
substring
(
i
[
0
].
length
),
g
=
0
;
g
<
o
.
align
.
length
;
g
++
)
/^
*-+
:
*
$
/
.
test
(
o
.
align
[
g
])?
o
.
align
[
g
]
=
"right"
:
/^ *:-+: *$/
.
test
(
o
.
align
[
g
])?
o
.
align
[
g
]
=
"center"
:
/^ *:-+ *$/
.
test
(
o
.
align
[
g
])?
o
.
align
[
g
]
=
"left"
:
o
.
align
[
g
]
=
null
;
for
(
g
=
0
;
g
<
o
.
cells
.
length
;
g
++
)
o
.
cells
[
g
]
=
v
(
o
.
cells
[
g
],
o
.
header
.
length
);
this
.
tokens
.
push
(
o
)}
else
if
(
i
=
this
.
rules
.
hr
.
exec
(
e
))
e
=
e
.
substring
(
i
[
0
].
length
),
this
.
tokens
.
push
({
type
:
"hr"
});
else
if
(
i
=
this
.
rules
.
blockquote
.
exec
(
e
))
e
=
e
.
substring
(
i
[
0
].
length
),
this
.
tokens
.
push
({
type
:
"blockquote_start"
}),
i
=
i
[
0
].
replace
(
/^ *>
?
/gm
,
""
),
this
.
token
(
i
,
t
),
this
.
tokens
.
push
({
type
:
"blockquote_end"
});
else
if
(
i
=
this
.
rules
.
list
.
exec
(
e
)){
for
(
e
=
e
.
substring
(
i
[
0
].
length
),
c
=
{
type
:
"list_start"
,
ordered
:
b
=
(
s
=
i
[
2
]).
length
>
1
,
start
:
b
?
+
s
:
""
,
loose
:
!
1
},
this
.
tokens
.
push
(
c
),
h
=
[],
r
=!
1
,
m
=
(
i
=
i
[
0
].
match
(
this
.
rules
.
item
)).
length
,
g
=
0
;
g
<
m
;
g
++
)
d
=
(
o
=
i
[
g
]).
length
,
~
(
o
=
o
.
replace
(
/^ *
([
*+-
]
|
\d
+
\.)
*/
,
""
)).
indexOf
(
"
\
n "
)
&&
(
d
-=
o
.
length
,
o
=
this
.
options
.
pedantic
?
o
.
replace
(
/^
{1,4}
/gm
,
""
):
o
.
replace
(
new
RegExp
(
"^ {1,"
+
d
+
"}"
,
"gm"
),
""
)),
g
!==
m
-
1
&&
(
l
=
n
.
bullet
.
exec
(
i
[
g
+
1
])[
0
],(
s
.
length
>
1
?
1
===
l
.
length
:
l
.
length
>
1
||
this
.
options
.
smartLists
&&
l
!==
s
)
&&
(
e
=
i
.
slice
(
g
+
1
).
join
(
"
\
n"
)
+
e
,
g
=
m
-
1
)),
a
=
r
||
/
\n\n(?!\s
*$
)
/
.
test
(
o
),
g
!==
m
-
1
&&
(
r
=
"
\
n"
===
o
.
charAt
(
o
.
length
-
1
),
a
||
(
a
=
r
)),
a
&&
(
c
.
loose
=!
0
),
D
=
void
0
,(
x
=
/^
\[[
xX
]\]
/
.
test
(
o
))
&&
(
D
=
" "
!==
o
[
1
],
o
=
o
.
replace
(
/^
\[[
xX
]\]
+/
,
""
)),
p
=
{
type
:
"list_item_start"
,
task
:
x
,
checked
:
D
,
loose
:
a
},
h
.
push
(
p
),
this
.
tokens
.
push
(
p
),
this
.
token
(
o
,
!
1
),
this
.
tokens
.
push
({
type
:
"list_item_end"
});
if
(
c
.
loose
)
for
(
m
=
h
.
length
,
g
=
0
;
g
<
m
;
g
++
)
h
[
g
].
loose
=!
0
;
this
.
tokens
.
push
({
type
:
"list_end"
})}
else
if
(
i
=
this
.
rules
.
html
.
exec
(
e
))
e
=
e
.
substring
(
i
[
0
].
length
),
this
.
tokens
.
push
({
type
:
this
.
options
.
sanitize
?
"paragraph"
:
"html"
,
pre
:
!
this
.
options
.
sanitizer
&&
(
"pre"
===
i
[
1
]
||
"script"
===
i
[
1
]
||
"style"
===
i
[
1
]),
text
:
this
.
options
.
sanitize
?
this
.
options
.
sanitizer
?
this
.
options
.
sanitizer
(
i
[
0
]):
u
(
i
[
0
]):
i
[
0
]});
else
if
(
t
&&
(
i
=
this
.
rules
.
def
.
exec
(
e
)))
e
=
e
.
substring
(
i
[
0
].
length
),
i
[
3
]
&&
(
i
[
3
]
=
i
[
3
].
substring
(
1
,
i
[
3
].
length
-
1
)),
f
=
i
[
1
].
toLowerCase
().
replace
(
/
\s
+/g
,
" "
),
this
.
tokens
.
links
[
f
]
||
(
this
.
tokens
.
links
[
f
]
=
{
href
:
i
[
2
],
title
:
i
[
3
]});
else
if
((
i
=
this
.
rules
.
table
.
exec
(
e
))
&&
(
o
=
{
type
:
"table"
,
header
:
v
(
i
[
1
].
replace
(
/^ *| *
\|
*$/g
,
""
)),
align
:
i
[
2
].
replace
(
/^ *|
\|
*$/g
,
""
).
split
(
/ *
\|
*/
),
cells
:
i
[
3
]?
i
[
3
].
replace
(
/
\n
$/
,
""
).
split
(
"
\
n"
):[]}).
header
.
length
===
o
.
align
.
length
){
for
(
e
=
e
.
substring
(
i
[
0
].
length
),
g
=
0
;
g
<
o
.
align
.
length
;
g
++
)
/^
*-+
:
*
$
/
.
test
(
o
.
align
[
g
])?
o
.
align
[
g
]
=
"right"
:
/^ *:-+: *$/
.
test
(
o
.
align
[
g
])?
o
.
align
[
g
]
=
"center"
:
/^ *:-+ *$/
.
test
(
o
.
align
[
g
])?
o
.
align
[
g
]
=
"left"
:
o
.
align
[
g
]
=
null
;
for
(
g
=
0
;
g
<
o
.
cells
.
length
;
g
++
)
o
.
cells
[
g
]
=
v
(
o
.
cells
[
g
].
replace
(
/^ *
\|
*| *
\|
*$/g
,
""
),
o
.
header
.
length
);
this
.
tokens
.
push
(
o
)}
else
if
(
i
=
this
.
rules
.
lheading
.
exec
(
e
))
e
=
e
.
substring
(
i
[
0
].
length
),
this
.
tokens
.
push
({
type
:
"heading"
,
depth
:
"="
===
i
[
2
].
charAt
(
0
)?
1
:
2
,
text
:
i
[
1
]});
else
if
(
t
&&
(
i
=
this
.
rules
.
paragraph
.
exec
(
e
)))
e
=
e
.
substring
(
i
[
0
].
length
),
this
.
tokens
.
push
({
type
:
"paragraph"
,
text
:
"
\
n"
===
i
[
1
].
charAt
(
i
[
1
].
length
-
1
)?
i
[
1
].
slice
(
0
,
-
1
):
i
[
1
]});
else
if
(
i
=
this
.
rules
.
text
.
exec
(
e
))
e
=
e
.
substring
(
i
[
0
].
length
),
this
.
tokens
.
push
({
type
:
"text"
,
text
:
i
[
0
]});
else
if
(
e
)
throw
new
Error
(
"Infinite loop on byte: "
+
e
.
charCodeAt
(
0
));
return
this
.
tokens
};
var
a
=
{
escape
:
/^
\\([
!"#$%&'()*+,
\-
.
/
:;<=>?@
\[\]\\
^_`{|}~
])
/
,
autolink
:
/^<
(
scheme:
[^\s\x
00-
\x
1f<>
]
*|email
)
>/
,
url
:
m
,
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
)\]\[(?!\s
*
\])((?:\\[\[\]]?
|
[^\[\]\\])
+
)\]
/
,
nolink
:
/^!
?\[(?!\s
*
\])((?:\[[^\[\]]
*
\]
|
\\[\[\]]
|
[^\[\]])
*
)\](?:\[\])?
/
,
strong
:
/^__
([^\s
_
])
__
(?!
_
)
|^
\*\*([^\s
*
])\*\*(?!\*)
|^__
([^\s][\s\S]
*
?[^\s])
__
(?!
_
)
|^
\*\*([^\s][\s\S]
*
?[^\s])\*\*(?!\*)
/
,
em
:
/^_
([^\s
_
])
_
(?!
_
)
|^
\*([^\s
*<
\[])\*(?!\*)
|^_
([^\s
<
][\s\S]
*
?[^\s
_
])
_
(?!
_|
[^\s
punctuation
])
|^_
([^\s
_<
][\s\S]
*
?[^\s])
_
(?!
_|
[^\s
punctuation
])
|^
\*([^\s
<"
][\s\S]
*
?[^\s\*])\*(?!\*
|
[^\s
punctuation
])
|^
\*([^\s
*"<
\[][\s\S]
*
?[^\s])\*(?!\*)
/
,
code
:
/^
(
`+
)([^
`
]
|
[^
`
][\s\S]
*
?[^
`
])\1(?!
`
)
/
,
br
:
/^
(
{2,}
|
\\)\n(?!\s
*$
)
/
,
del
:
m
,
text
:
/^
(
`+|
[^
`
])(?:[\s\S]
*
?(?:(?=[\\
<!
\[
`*
]
|
\b
_|$
)
|
[^
](?=
{2,}\n))
|
(?=
{2,}\n))
/
};
function
i
(
e
,
t
){
if
(
this
.
options
=
t
||
y
.
defaults
,
this
.
links
=
e
,
this
.
rules
=
a
.
normal
,
this
.
renderer
=
this
.
options
.
renderer
||
new
s
,
this
.
renderer
.
options
=
this
.
options
,
!
this
.
links
)
throw
new
Error
(
"Tokens array requires a `links` property."
);
this
.
options
.
pedantic
?
this
.
rules
=
a
.
pedantic
:
this
.
options
.
gfm
&&
(
this
.
options
.
breaks
?
this
.
rules
=
a
.
breaks
:
this
.
rules
=
a
.
gfm
)}
function
s
(
e
){
this
.
options
=
e
||
y
.
defaults
}
function
l
(){}
function
o
(
e
){
this
.
tokens
=
[],
this
.
token
=
null
,
this
.
options
=
e
||
y
.
defaults
,
this
.
options
.
renderer
=
this
.
options
.
renderer
||
new
s
,
this
.
renderer
=
this
.
options
.
renderer
,
this
.
renderer
.
options
=
this
.
options
,
this
.
slugger
=
new
c
}
function
c
(){
this
.
seen
=
{}}
function
u
(
e
,
t
){
if
(
t
){
if
(
u
.
escapeTest
.
test
(
e
))
return
e
.
replace
(
u
.
escapeReplace
,
function
(
e
){
return
u
.
replacements
[
e
]})}
else
if
(
u
.
escapeTestNoEncode
.
test
(
e
))
return
e
.
replace
(
u
.
escapeReplaceNoEncode
,
function
(
e
){
return
u
.
replacements
[
e
]});
return
e
}
function
h
(
e
){
return
e
.
replace
(
/&
(
#
(?:\d
+
)
|
(?:
#x
[
0-9A-Fa-f
]
+
)
|
(?:\w
+
))
;
?
/gi
,
function
(
e
,
t
){
return
"colon"
===
(
t
=
t
.
toLowerCase
())?
":"
:
"#"
===
t
.
charAt
(
0
)?
"x"
===
t
.
charAt
(
1
)?
String
.
fromCharCode
(
parseInt
(
t
.
substring
(
2
),
16
)):
String
.
fromCharCode
(
+
t
.
substring
(
1
)):
""
})}
function
p
(
e
,
t
){
return
e
=
e
.
source
||
e
,
t
=
t
||
""
,{
replace
:
function
(
t
,
n
){
return
n
=
(
n
=
n
.
source
||
n
).
replace
(
/
(
^|
[^\[])\^
/g
,
"$1"
),
e
=
e
.
replace
(
t
,
n
),
this
},
getRegex
:
function
(){
return
new
RegExp
(
e
,
t
)}}}
function
d
(
e
,
t
,
n
){
if
(
e
){
try
{
var
r
=
decodeURIComponent
(
h
(
n
)).
replace
(
/
[^\w
:
]
/g
,
""
).
toLowerCase
()}
catch
(
e
){
return
null
}
if
(
0
===
r
.
indexOf
(
"javascript:"
)
||
0
===
r
.
indexOf
(
"vbscript:"
)
||
0
===
r
.
indexOf
(
"data:"
))
return
null
}
t
&&!
f
.
test
(
n
)
&&
(
n
=
function
(
e
,
t
){
g
[
" "
+
e
]
||
(
/^
[^
:
]
+:
\/
*
[^/]
*$/
.
test
(
e
)?
g
[
" "
+
e
]
=
e
+
"/"
:
g
[
" "
+
e
]
=
k
(
e
,
"/"
,
!
0
));
return
e
=
g
[
" "
+
e
],
"//"
===
t
.
slice
(
0
,
2
)?
e
.
replace
(
/:
[\s\S]
*/
,
":"
)
+
t
:
"/"
===
t
.
charAt
(
0
)?
e
.
replace
(
/
(
:
\/
*
[^/]
*
)[\s\S]
*/
,
"$1"
)
+
t
:
e
+
t
}(
t
,
n
));
try
{
n
=
encodeURI
(
n
).
replace
(
/%25/g
,
"%"
)}
catch
(
e
){
return
null
}
return
n
}
a
.
_punctuation
=
"!
\"
#$%&'()*+,
\\
-./:;<=>?@
\\
[^_{|}~"
,
a
.
em
=
p
(
a
.
em
).
replace
(
/punctuation/g
,
a
.
_punctuation
).
getRegex
(),
a
.
_escapes
=
/
\\([
!"#$%&'()*+,
\-
.
/
:;<=>?@
\[\]\\
^_`{|}~
])
/g
,
a
.
_scheme
=
/
[
a-zA-Z
][
a-zA-Z0-9+.-
]{1,31}
/
,
a
.
_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
])?)
+
(?![
-_
])
/
,
a
.
autolink
=
p
(
a
.
autolink
).
replace
(
"scheme"
,
a
.
_scheme
).
replace
(
"email"
,
a
.
_email
).
getRegex
(),
a
.
_attribute
=
/
\s
+
[
a-zA-Z:_
][\w
.:-
]
*
(?:\s
*=
\s
*"
[^
"
]
*"|
\s
*=
\s
*'
[^
'
]
*'|
\s
*=
\s
*
[^\s
"'=<>`
]
+
)?
/
,
a
.
tag
=
p
(
a
.
tag
).
replace
(
"comment"
,
n
.
_comment
).
replace
(
"attribute"
,
a
.
_attribute
).
getRegex
(),
a
.
_label
=
/
(?:\[[^\[\]]
*
\]
|
\\
.|`
[^
`
]
*`|
[^\[\]\\
`
])
*
?
/
,
a
.
_href
=
/<
(?:\\[
<>
]?
|
[^\s
<>
\\])
*>|
[^\s\x
00-
\x
1f
]
*/
,
a
.
_title
=
/"
(?:\\
"
?
|
[^
"
\\])
*"|'
(?:\\
'
?
|
[^
'
\\])
*'|
\((?:\\\)?
|
[^
)
\\])
*
\)
/
,
a
.
link
=
p
(
a
.
link
).
replace
(
"label"
,
a
.
_label
).
replace
(
"href"
,
a
.
_href
).
replace
(
"title"
,
a
.
_title
).
getRegex
(),
a
.
reflink
=
p
(
a
.
reflink
).
replace
(
"label"
,
a
.
_label
).
getRegex
(),
a
.
normal
=
b
({},
a
),
a
.
pedantic
=
b
({},
a
.
normal
,{
strong
:
/^__
(?=\S)([\s\S]
*
?\S)
__
(?!
_
)
|^
\*\*(?=\S)([\s\S]
*
?\S)\*\*(?!\*)
/
,
em
:
/^_
(?=\S)([\s\S]
*
?\S)
_
(?!
_
)
|^
\*(?=\S)([\s\S]
*
?\S)\*(?!\*)
/
,
link
:
p
(
/^!
?\[(
label
)\]\((
.*
?)\)
/
).
replace
(
"label"
,
a
.
_label
).
getRegex
(),
reflink
:
p
(
/^!
?\[(
label
)\]\s
*
\[([^\]]
*
)\]
/
).
replace
(
"label"
,
a
.
_label
).
getRegex
()}),
a
.
gfm
=
b
({},
a
.
normal
,{
escape
:
p
(
a
.
escape
).
replace
(
"])"
,
"~|])"
).
getRegex
(),
_extended_email
:
/
[
A-Za-z0-9._+-
]
+
(
@
)[
a-zA-Z0-9-_
]
+
(?:\.[
a-zA-Z0-9-_
]
*
[
a-zA-Z0-9
])
+
(?![
-_
])
/
,
url
:
/^
((?:
ftp|https
?)
:
\/\/
|www
\.)(?:[
a-zA-Z0-9
\-]
+
\.?)
+
[^\s
<
]
*|^email/
,
_backpedal
:
/
(?:[^
?!.,:;*_~()&
]
+|
\([^
)
]
*
\)
|&
(?![
a-zA-Z0-9
]
+;$
)
|
[
?!.,:;*_~)
]
+
(?!
$
))
+/
,
del
:
/^~+
(?=\S)([\s\S]
*
?\S)
~+/
,
text
:
/^
(
`+|
[^
`
])(?:[\s\S]
*
?(?:(?=[\\
<!
\[
`*~
]
|
\b
_|https
?
:
\/\/
|ftp:
\/\/
|www
\.
|$
)
|
[^
](?=
{2,}\n)
|
[^
a-zA-Z0-9.!#$%&'*+
\/
=?_`{
\|
}~-
](?=[
a-zA-Z0-9.!#$%&'*+
\/
=?_`{
\|
}~-
]
+@
))
|
(?=
{2,}\n
|
[
a-zA-Z0-9.!#$%&'*+
\/
=?_`{
\|
}~-
]
+@
))
/
}),
a
.
gfm
.
url
=
p
(
a
.
gfm
.
url
,
"i"
).
replace
(
"email"
,
a
.
gfm
.
_extended_email
).
getRegex
(),
a
.
breaks
=
b
({},
a
.
gfm
,{
br
:
p
(
a
.
br
).
replace
(
"{2,}"
,
"*"
).
getRegex
(),
text
:
p
(
a
.
gfm
.
text
).
replace
(
"
\\
b_"
,
"
\\
b_| {2,}
\\
n"
).
replace
(
/
\{
2,
\}
/g
,
"*"
).
getRegex
()}),
i
.
rules
=
a
,
i
.
output
=
function
(
e
,
t
,
n
){
return
new
i
(
t
,
n
).
output
(
e
)},
i
.
prototype
.
output
=
function
(
e
){
for
(
var
t
,
n
,
r
,
a
,
s
,
l
,
o
=
""
;
e
;)
if
(
s
=
this
.
rules
.
escape
.
exec
(
e
))
e
=
e
.
substring
(
s
[
0
].
length
),
o
+=
u
(
s
[
1
]);
else
if
(
s
=
this
.
rules
.
tag
.
exec
(
e
))
!
this
.
inLink
&&
/^<a /i
.
test
(
s
[
0
])?
this
.
inLink
=!
0
:
this
.
inLink
&&
/^<
\/
a>/i
.
test
(
s
[
0
])
&&
(
this
.
inLink
=!
1
),
!
this
.
inRawBlock
&&
/^<
(
pre|code|kbd|script
)(\s
|>
)
/i
.
test
(
s
[
0
])?
this
.
inRawBlock
=!
0
:
this
.
inRawBlock
&&
/^<
\/(
pre|code|kbd|script
)(\s
|>
)
/i
.
test
(
s
[
0
])
&&
(
this
.
inRawBlock
=!
1
),
e
=
e
.
substring
(
s
[
0
].
length
),
o
+=
this
.
options
.
sanitize
?
this
.
options
.
sanitizer
?
this
.
options
.
sanitizer
(
s
[
0
]):
u
(
s
[
0
]):
s
[
0
];
else
if
(
s
=
this
.
rules
.
link
.
exec
(
e
)){
var
c
=
x
(
s
[
2
],
"()"
);
if
(
c
>-
1
){
var
h
=
4
+
s
[
1
].
length
+
c
;
s
[
2
]
=
s
[
2
].
substring
(
0
,
c
),
s
[
0
]
=
s
[
0
].
substring
(
0
,
h
).
trim
(),
s
[
3
]
=
""
}
e
=
e
.
substring
(
s
[
0
].
length
),
this
.
inLink
=!
0
,
r
=
s
[
2
],
this
.
options
.
pedantic
?(
t
=
/^
([^
'"
]
*
[^\s])\s
+
([
'"
])(
.*
)\2
/
.
exec
(
r
))?(
r
=
t
[
1
],
a
=
t
[
3
]):
a
=
""
:
a
=
s
[
3
]?
s
[
3
].
slice
(
1
,
-
1
):
""
,
r
=
r
.
trim
().
replace
(
/^<
([\s\S]
*
)
>$/
,
"$1"
),
o
+=
this
.
outputLink
(
s
,{
href
:
i
.
escapes
(
r
),
title
:
i
.
escapes
(
a
)}),
this
.
inLink
=!
1
}
else
if
((
s
=
this
.
rules
.
reflink
.
exec
(
e
))
||
(
s
=
this
.
rules
.
nolink
.
exec
(
e
))){
if
(
e
=
e
.
substring
(
s
[
0
].
length
),
t
=
(
s
[
2
]
||
s
[
1
]).
replace
(
/
\s
+/g
,
" "
),
!
(
t
=
this
.
links
[
t
.
toLowerCase
()])
||!
t
.
href
){
o
+=
s
[
0
].
charAt
(
0
),
e
=
s
[
0
].
substring
(
1
)
+
e
;
continue
}
this
.
inLink
=!
0
,
o
+=
this
.
outputLink
(
s
,
t
),
this
.
inLink
=!
1
}
else
if
(
s
=
this
.
rules
.
strong
.
exec
(
e
))
e
=
e
.
substring
(
s
[
0
].
length
),
o
+=
this
.
renderer
.
strong
(
this
.
output
(
s
[
4
]
||
s
[
3
]
||
s
[
2
]
||
s
[
1
]));
else
if
(
s
=
this
.
rules
.
em
.
exec
(
e
))
e
=
e
.
substring
(
s
[
0
].
length
),
o
+=
this
.
renderer
.
em
(
this
.
output
(
s
[
6
]
||
s
[
5
]
||
s
[
4
]
||
s
[
3
]
||
s
[
2
]
||
s
[
1
]));
else
if
(
s
=
this
.
rules
.
code
.
exec
(
e
))
e
=
e
.
substring
(
s
[
0
].
length
),
o
+=
this
.
renderer
.
codespan
(
u
(
s
[
2
].
trim
(),
!
0
));
else
if
(
s
=
this
.
rules
.
br
.
exec
(
e
))
e
=
e
.
substring
(
s
[
0
].
length
),
o
+=
this
.
renderer
.
br
();
else
if
(
s
=
this
.
rules
.
del
.
exec
(
e
))
e
=
e
.
substring
(
s
[
0
].
length
),
o
+=
this
.
renderer
.
del
(
this
.
output
(
s
[
1
]));
else
if
(
s
=
this
.
rules
.
autolink
.
exec
(
e
))
e
=
e
.
substring
(
s
[
0
].
length
),
r
=
"@"
===
s
[
2
]?
"mailto:"
+
(
n
=
u
(
this
.
mangle
(
s
[
1
]))):
n
=
u
(
s
[
1
]),
o
+=
this
.
renderer
.
link
(
r
,
null
,
n
);
else
if
(
this
.
inLink
||!
(
s
=
this
.
rules
.
url
.
exec
(
e
))){
if
(
s
=
this
.
rules
.
text
.
exec
(
e
))
e
=
e
.
substring
(
s
[
0
].
length
),
this
.
inRawBlock
?
o
+=
this
.
renderer
.
text
(
this
.
options
.
sanitize
?
this
.
options
.
sanitizer
?
this
.
options
.
sanitizer
(
s
[
0
]):
u
(
s
[
0
]):
s
[
0
]):
o
+=
this
.
renderer
.
text
(
u
(
this
.
smartypants
(
s
[
0
])));
else
if
(
e
)
throw
new
Error
(
"Infinite loop on byte: "
+
e
.
charCodeAt
(
0
))}
else
{
if
(
"@"
===
s
[
2
])
r
=
"mailto:"
+
(
n
=
u
(
s
[
0
]));
else
{
do
{
l
=
s
[
0
],
s
[
0
]
=
this
.
rules
.
_backpedal
.
exec
(
s
[
0
])[
0
]}
while
(
l
!==
s
[
0
]);
n
=
u
(
s
[
0
]),
r
=
"www."
===
s
[
1
]?
"http://"
+
n
:
n
}
e
=
e
.
substring
(
s
[
0
].
length
),
o
+=
this
.
renderer
.
link
(
r
,
null
,
n
)}
return
o
},
i
.
escapes
=
function
(
e
){
return
e
?
e
.
replace
(
i
.
rules
.
_escapes
,
"$1"
):
e
},
i
.
prototype
.
outputLink
=
function
(
e
,
t
){
var
n
=
t
.
href
,
r
=
t
.
title
?
u
(
t
.
title
):
null
;
return
"!"
!==
e
[
0
].
charAt
(
0
)?
this
.
renderer
.
link
(
n
,
r
,
this
.
output
(
e
[
1
])):
this
.
renderer
.
image
(
n
,
r
,
u
(
e
[
1
]))},
i
.
prototype
.
smartypants
=
function
(
e
){
return
this
.
options
.
smartypants
?
e
.
replace
(
/---/g
,
"—"
).
replace
(
/--/g
,
"–"
).
replace
(
/
(
^|
[
-
\u
2014
/
(
\[
{"
\s])
'/g
,
"$1‘"
).
replace
(
/'/g
,
"’"
).
replace
(
/
(
^|
[
-
\u
2014
/
(
\[
{
\u
2018
\s])
"/g
,
"$1“"
).
replace
(
/"/g
,
"”"
).
replace
(
/
\.{3}
/g
,
"…"
):
e
},
i
.
prototype
.
mangle
=
function
(
e
){
if
(
!
this
.
options
.
mangle
)
return
e
;
for
(
var
t
,
n
=
""
,
r
=
e
.
length
,
a
=
0
;
a
<
r
;
a
++
)
t
=
e
.
charCodeAt
(
a
),
Math
.
random
()
>
.
5
&&
(
t
=
"x"
+
t
.
toString
(
16
)),
n
+=
"&#"
+
t
+
";"
;
return
n
},
s
.
prototype
.
code
=
function
(
e
,
t
,
n
){
var
r
=
(
t
||
""
).
match
(
/
\S
*/
)[
0
];
if
(
this
.
options
.
highlight
){
var
a
=
this
.
options
.
highlight
(
e
,
r
);
null
!=
a
&&
a
!==
e
&&
(
n
=!
0
,
e
=
a
)}
return
r
?
'<pre><code class="'
+
this
.
options
.
langPrefix
+
u
(
r
,
!
0
)
+
'">'
+
(
n
?
e
:
u
(
e
,
!
0
))
+
"</code></pre>
\
n"
:
"<pre><code>"
+
(
n
?
e
:
u
(
e
,
!
0
))
+
"</code></pre>"
},
s
.
prototype
.
blockquote
=
function
(
e
){
return
"<blockquote>
\
n"
+
e
+
"</blockquote>
\
n"
},
s
.
prototype
.
html
=
function
(
e
){
return
e
},
s
.
prototype
.
heading
=
function
(
e
,
t
,
n
,
r
){
return
this
.
options
.
headerIds
?
"<h"
+
t
+
' id="'
+
this
.
options
.
headerPrefix
+
r
.
slug
(
n
)
+
'">'
+
e
+
"</h"
+
t
+
">
\
n"
:
"<h"
+
t
+
">"
+
e
+
"</h"
+
t
+
">
\
n"
},
s
.
prototype
.
hr
=
function
(){
return
this
.
options
.
xhtml
?
"<hr/>
\
n"
:
"<hr>
\
n"
},
s
.
prototype
.
list
=
function
(
e
,
t
,
n
){
var
r
=
t
?
"ol"
:
"ul"
;
return
"<"
+
r
+
(
t
&&
1
!==
n
?
' start="'
+
n
+
'"'
:
""
)
+
">
\
n"
+
e
+
"</"
+
r
+
">
\
n"
},
s
.
prototype
.
listitem
=
function
(
e
){
return
"<li>"
+
e
+
"</li>
\
n"
},
s
.
prototype
.
checkbox
=
function
(
e
){
return
"<input "
+
(
e
?
'checked="" '
:
""
)
+
'disabled="" type="checkbox"'
+
(
this
.
options
.
xhtml
?
" /"
:
""
)
+
"> "
},
s
.
prototype
.
paragraph
=
function
(
e
){
return
"<p>"
+
e
+
"</p>
\
n"
},
s
.
prototype
.
table
=
function
(
e
,
t
){
return
t
&&
(
t
=
"<tbody>"
+
t
+
"</tbody>"
),
"<table>
\
n<thead>
\
n"
+
e
+
"</thead>
\
n"
+
t
+
"</table>
\
n"
},
s
.
prototype
.
tablerow
=
function
(
e
){
return
"<tr>
\
n"
+
e
+
"</tr>
\
n"
},
s
.
prototype
.
tablecell
=
function
(
e
,
t
){
var
n
=
t
.
header
?
"th"
:
"td"
;
return
(
t
.
align
?
"<"
+
n
+
' align="'
+
t
.
align
+
'">'
:
"<"
+
n
+
">"
)
+
e
+
"</"
+
n
+
">
\
n"
},
s
.
prototype
.
strong
=
function
(
e
){
return
"<strong>"
+
e
+
"</strong>"
},
s
.
prototype
.
em
=
function
(
e
){
return
"<em>"
+
e
+
"</em>"
},
s
.
prototype
.
codespan
=
function
(
e
){
return
"<code>"
+
e
+
"</code>"
},
s
.
prototype
.
br
=
function
(){
return
this
.
options
.
xhtml
?
"<br/>"
:
"<br>"
},
s
.
prototype
.
del
=
function
(
e
){
return
"<del>"
+
e
+
"</del>"
},
s
.
prototype
.
link
=
function
(
e
,
t
,
n
){
if
(
null
===
(
e
=
d
(
this
.
options
.
sanitize
,
this
.
options
.
baseUrl
,
e
)))
return
n
;
var
r
=
'<a href="'
+
u
(
e
)
+
'"'
;
return
t
&&
(
r
+=
' title="'
+
t
+
'"'
),
r
+=
">"
+
n
+
"</a>"
},
s
.
prototype
.
image
=
function
(
e
,
t
,
n
){
if
(
null
===
(
e
=
d
(
this
.
options
.
sanitize
,
this
.
options
.
baseUrl
,
e
)))
return
n
;
var
r
=
'<img src="'
+
e
+
'" alt="'
+
n
+
'"'
;
return
t
&&
(
r
+=
' title="'
+
t
+
'"'
),
r
+=
this
.
options
.
xhtml
?
"/>"
:
">"
},
s
.
prototype
.
text
=
function
(
e
){
return
e
},
l
.
prototype
.
strong
=
l
.
prototype
.
em
=
l
.
prototype
.
codespan
=
l
.
prototype
.
del
=
l
.
prototype
.
text
=
function
(
e
){
return
e
},
l
.
prototype
.
link
=
l
.
prototype
.
image
=
function
(
e
,
t
,
n
){
return
""
+
n
},
l
.
prototype
.
br
=
function
(){
return
""
},
o
.
parse
=
function
(
e
,
t
){
return
new
o
(
t
).
parse
(
e
)},
o
.
prototype
.
parse
=
function
(
e
){
this
.
inline
=
new
i
(
e
.
links
,
this
.
options
),
this
.
inlineText
=
new
i
(
e
.
links
,
b
({},
this
.
options
,{
renderer
:
new
l
})),
this
.
tokens
=
e
.
reverse
();
for
(
var
t
=
""
;
this
.
next
();)
t
+=
this
.
tok
();
return
t
},
o
.
prototype
.
next
=
function
(){
return
this
.
token
=
this
.
tokens
.
pop
(),
this
.
token
},
o
.
prototype
.
peek
=
function
(){
return
this
.
tokens
[
this
.
tokens
.
length
-
1
]
||
0
},
o
.
prototype
.
parseText
=
function
(){
for
(
var
e
=
this
.
token
.
text
;
"text"
===
this
.
peek
().
type
;)
e
+=
"
\
n"
+
this
.
next
().
text
;
return
this
.
inline
.
output
(
e
)},
o
.
prototype
.
tok
=
function
(){
switch
(
this
.
token
.
type
){
case
"space"
:
return
""
;
case
"hr"
:
return
this
.
renderer
.
hr
();
case
"heading"
:
return
this
.
renderer
.
heading
(
this
.
inline
.
output
(
this
.
token
.
text
),
this
.
token
.
depth
,
h
(
this
.
inlineText
.
output
(
this
.
token
.
text
)),
this
.
slugger
);
case
"code"
:
return
this
.
renderer
.
code
(
this
.
token
.
text
,
this
.
token
.
lang
,
this
.
token
.
escaped
);
case
"table"
:
var
e
,
t
,
n
,
r
,
a
=
""
,
i
=
""
;
for
(
n
=
""
,
e
=
0
;
e
<
this
.
token
.
header
.
length
;
e
++
)
n
+=
this
.
renderer
.
tablecell
(
this
.
inline
.
output
(
this
.
token
.
header
[
e
]),{
header
:
!
0
,
align
:
this
.
token
.
align
[
e
]});
for
(
a
+=
this
.
renderer
.
tablerow
(
n
),
e
=
0
;
e
<
this
.
token
.
cells
.
length
;
e
++
){
for
(
t
=
this
.
token
.
cells
[
e
],
n
=
""
,
r
=
0
;
r
<
t
.
length
;
r
++
)
n
+=
this
.
renderer
.
tablecell
(
this
.
inline
.
output
(
t
[
r
]),{
header
:
!
1
,
align
:
this
.
token
.
align
[
r
]});
i
+=
this
.
renderer
.
tablerow
(
n
)}
return
this
.
renderer
.
table
(
a
,
i
);
case
"blockquote_start"
:
for
(
i
=
""
;
"blockquote_end"
!==
this
.
next
().
type
;)
i
+=
this
.
tok
();
return
this
.
renderer
.
blockquote
(
i
);
case
"list_start"
:
i
=
""
;
for
(
var
s
=
this
.
token
.
ordered
,
l
=
this
.
token
.
start
;
"list_end"
!==
this
.
next
().
type
;)
i
+=
this
.
tok
();
return
this
.
renderer
.
list
(
i
,
s
,
l
);
case
"list_item_start"
:
i
=
""
;
var
o
=
this
.
token
.
loose
,
c
=
this
.
token
.
checked
,
u
=
this
.
token
.
task
;
for
(
this
.
token
.
task
&&
(
i
+=
this
.
renderer
.
checkbox
(
c
));
"list_item_end"
!==
this
.
next
().
type
;)
i
+=
o
||
"text"
!==
this
.
token
.
type
?
this
.
tok
():
this
.
parseText
();
return
this
.
renderer
.
listitem
(
i
,
u
,
c
);
case
"html"
:
return
this
.
renderer
.
html
(
this
.
token
.
text
);
case
"paragraph"
:
return
this
.
renderer
.
paragraph
(
this
.
inline
.
output
(
this
.
token
.
text
));
case
"text"
:
return
this
.
renderer
.
paragraph
(
this
.
parseText
());
default
:
var
p
=
'Token with "'
+
this
.
token
.
type
+
'" type was not found.'
;
if
(
!
this
.
options
.
silent
)
throw
new
Error
(
p
);
console
.
log
(
p
)}},
c
.
prototype
.
slug
=
function
(
e
){
var
t
=
e
.
toLowerCase
().
trim
().
replace
(
/
[\u
2000-
\u
206F
\u
2E00-
\u
2E7F
\\
'!"#$%&()*+,.
/
:;<=>?@[
\]
^`{|}~
]
/g
,
""
).
replace
(
/
\s
/g
,
"-"
);
if
(
this
.
seen
.
hasOwnProperty
(
t
)){
var
n
=
t
;
do
{
this
.
seen
[
n
]
++
,
t
=
n
+
"-"
+
this
.
seen
[
n
]}
while
(
this
.
seen
.
hasOwnProperty
(
t
))}
return
this
.
seen
[
t
]
=
0
,
t
},
u
.
escapeTest
=
/
[
&<>"'
]
/
,
u
.
escapeReplace
=
/
[
&<>"'
]
/g
,
u
.
replacements
=
{
"&"
:
"&"
,
"<"
:
"<"
,
">"
:
">"
,
'"'
:
"""
,
"'"
:
"'"
},
u
.
escapeTestNoEncode
=
/
[
<>"'
]
|&
(?!
#
?\w
+;
)
/
,
u
.
escapeReplaceNoEncode
=
/
[
<>"'
]
|&
(?!
#
?\w
+;
)
/g
;
var
g
=
{},
f
=
/^$|^
[
a-z
][
a-z0-9+.-
]
*:|^
[
?#
]
/i
;
function
m
(){}
function
b
(
e
){
for
(
var
t
,
n
,
r
=
1
;
r
<
arguments
.
length
;
r
++
)
for
(
n
in
t
=
arguments
[
r
])
Object
.
prototype
.
hasOwnProperty
.
call
(
t
,
n
)
&&
(
e
[
n
]
=
t
[
n
]);
return
e
}
function
v
(
e
,
t
){
var
n
=
e
.
replace
(
/
\|
/g
,
function
(
e
,
t
,
n
){
for
(
var
r
=!
1
,
a
=
t
;
--
a
>=
0
&&
"
\
\"
===n[a];)r=!r;return r?"
|
":"
|
"}).split(/
\
|/),r=0;if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/
\\\
|/g,"
|
");return n}function k(e,t,n){if(0===e.length)return"";for(var r=0;r<e.length;){var a=e.charAt(e.length-r-1);if(a!==t||n){if(a===t||!n)break;r++}else r++}return e.substr(0,e.length-r)}function x(e,t){if(-1===e.indexOf(t[1]))return-1;for(var n=0,r=0;r<e.length;r++)if("
\\
"===e[r])r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&--n<0)return r;return-1}function D(e){e&&e.sanitize&&!e.silent&&console.warn("
marked
():
sanitize
and
sanitizer
parameters
are
deprecated
since
version
0.7
.
0
,
should
not
be
used
and
will
be
removed
in
the
future
.
Read
more
here
:
https
:
//marked.js.org/#/USING_ADVANCED.md#options")}function y(e,t,n){if(void 0===e||null===e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if(n||"function"==typeof t){n||(n=t,t=null),D(t=b({},y.defaults,t||{}));var a,i,s=t.highlight,l=0;try{a=r.lex(e,t)}catch(e){return n(e)}i=a.length;var c=function(e){if(e)return t.highlight=s,n(e);var r;try{r=o.parse(a,t)}catch(t){e=t}return t.highlight=s,e?n(e):n(null,r)};if(!s||s.length<3)return c();if(delete t.highlight,!i)return c();for(;l<a.length;l++)!function(e){"code"!==e.type?--i||c():s(e.text,e.lang,function(t,n){return t?c(t):null==n||n===e.text?--i||c():(e.text=n,e.escaped=!0,void(--i||c()))})}(a[l])}else try{return t&&(t=b({},y.defaults,t)),D(t),o.parse(r.lex(e,t),t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",(t||y.defaults).silent)return"<p>An error occurred:</p><pre>"+u(e.message+"",!0)+"</pre>";throw e}}m.exec=m,y.options=y.setOptions=function(e){return b(y.defaults,e),y},y.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new s,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1}},y.defaults=y.getDefaults(),y.Parser=o,y.parser=o.parse,y.Renderer=s,y.TextRenderer=l,y.Lexer=r,y.lexer=r.lex,y.InlineLexer=i,y.inlineLexer=i.output,y.Slugger=c,y.parse=y,e.exports=y}(this||"undefined"!=typeof window&&window)}).call(t,n("DuR2"))},"Q+Ho":function(e,t){},UYHc:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("mvHQ"),a=n.n(r),i=n("jvWE"),s={name:"vue-open-header",props:{currentTab:{type:[String,Number],default:function(){return"2"}}},data:function(){return{currentMenuTab:this.currentTab,openMenuData:[{menuId:"2",menuName:"开发者接入",menuUrl:""},{menuId:"1",menuName:"解决方案",menuUrl:""}],searchValue:""}},methods:{toRedirect:function(e){this.currentMenuTab=e.menuId,this.$emit("changeTab",e.menuId)},toHome:function(){this.$router.push("/home")},searchData:Object(i.a)(function(e){this.$emit("searchMenu",this.searchValue,this.currentMenuTab)},500),clearInput:function(){this.$emit("searchMenu",this.searchValue,this.currentMenuTab)}},watch:{$route:{handler:function(e,t){},deep:!0},currentTab:function(e,t){this.currentMenuTab=e}},mounted:function(){this.currentMenuTab=this.$route.query.currentTab||"2"}},l={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"open-header"},[r("div",{staticClass:"open-header-wrap border-box flex "},[r("div",{staticClass:"open-header-left",on:{click:e.toHome}},[r("img",{attrs:{src:n("h1R5"),alt:""}})]),e._v(" "),r("div",{staticClass:"open-header-right border-box"},[r("div",{staticClass:"open-header-right_wrap flex flex-space-between"},[r("ul",{staticClass:"flex"},e._l(e.openMenuData,function(t,n){return r("li",{key:n+"menu",class:["menu-li border-box",e.currentMenuTab==t.menuId?"active-tab":""],on:{click:function(n){n.stopPropagation(),n.preventDefault(),e.toRedirect(t)}}},[r("span",[e._v(e._s(t.menuName))])])})),e._v(" "),r("div",{staticClass:"search-wrap"},[r("el-input",{attrs:{clearable:"",placeholder:"请输入搜索内容","prefix-icon":"el-icon-search"},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return n=t,e.searchData(n);var n}},model:{value:e.searchValue,callback:function(t){e.searchValue=t},expression:"searchValue"}})],1)])])])])},staticRenderFns:[]};var o=n("VU/8")(s,l,!1,function(e){n("y+wA")},"data-v-1bfff858",null).exports,c=n("P9l9"),u="/open-platform-home-web/",h=n("LlAa"),p={props:{currentTab:{type:[String,Number],default:function(){return"2"}}},data:function(){return{parentId:this.currentTab,activeId:"",menuData:[]}},methods:{changeMenu:function(e){this.activeId=e.menuId,e.children&&e.children.length?(e.expanded=!e.expanded,this.$emit("changeDoc",{})):this.$emit("changeDoc",e)},getMenuData:function(e,t){var n,r=this;(n={parentId:e},Object(c.a)(u+"tree-menu",n)).then(function(e){var t=e.data;if("0000"==t.code)return t.result&&t.result.length&&(t.result.forEach(function(e){e.expanded=!1,e.menuId==r.activeId&&r.$emit("changeDoc",e),e.children&&e.children.length&&e.children.forEach(function(t){t.expanded=!1,t.menuId==r.activeId&&(e.expanded=!0,r.$emit("changeDoc",t)),t.children&&t.children.length&&t.children.forEach(function(e){e.expanded=!1,e.menuId==r.activeId&&(t.expanded=!0,r.$emit("changeDoc",e)),e.children.forEach(function(t){t.menuId==r.activeId&&(e.expanded=!0,r.$emit("changeDoc",t))})})})}),r.$route.query.menuId||(r.activeId=t.result[0].menuId,r.$emit("changeDoc",t.result[0]))),void(r.menuData=t.result||[]);h.a.errorMsg(t)}).catch(function(e){r.$message.error({duration:1e3,message:e.message})})}},watch:{currentTab:function(e,t){this.parentId=e,this.getMenuData(e)}},mounted:function(){this.parentId=this.$route.query.currentTab||"2",this.activeId=this.$route.query.menuId||"",this.getMenuData(this.parentId)}},d={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"document-left-body border-box"},[n("ul",{staticClass:"document-ul"},[e._l(e.menuData,function(t,r){return[n("li",{key:r+"level1"},[n("div",{class:["li-cell flex flex-space-between",e.activeId==t.menuId?"active-menu":""],on:{click:function(n){e.changeMenu(t)}}},[n("span",{staticClass:"li-cell-name"},[e._v(e._s(t.menuName))]),e._v(" "),t.children&&t.children.length?n("span",{class:["li-cell-icon font_family icon-arrow_right",t.expanded?"rotate-icon":""]}):e._e(),e._v(" "),t.children&&t.children.length?e._e():n("span",{staticClass:"li-cell-icon icon-round"})]),e._v(" "),t.children&&t.children.length&&t.expanded?n("ul",[e._l(t.children,function(t,r){return[n("li",{key:r+"level1"},[n("div",{class:["li-cell flex flex-space-between",e.activeId==t.menuId?"active-menu":""],on:{click:function(n){e.changeMenu(t)}}},[n("span",{staticClass:"p-l-15 li-cell-name border-box"},[e._v(e._s(t.menuName))]),e._v(" "),t.children&&t.children.length?n("span",{class:["li-cell-icon font_family icon-arrow_right",t.expanded?"rotate-icon":""]}):e._e(),e._v(" "),t.children&&t.children.length?e._e():n("span",{staticClass:"li-cell-icon icon-round"})]),e._v(" "),t.children&&t.children.length&&t.expanded?n("ul",[e._l(t.children,function(t,r){return[n("li",{key:r+"level1"},[n("div",{class:["li-cell flex flex-space-between",e.activeId==t.menuId?"active-menu":""],on:{click:function(n){e.changeMenu(t)}}},[n("span",{staticClass:"li-cell-name border-box p-l-30"},[e._v(e._s(t.menuName))]),e._v(" "),t.children&&t.children.length?n("span",{class:["li-cell-icon font_family icon-arrow_right",t.expanded?"rotate-icon":""]}):e._e(),e._v(" "),t.children&&t.children.length?e._e():n("span",{staticClass:"li-cell-icon icon-round"})]),e._v(" "),t.children&&t.children.length&&t.expanded?n("ul",[e._l(t.children,function(t,r){return[n("li",{key:r+"level1"},[n("div",{class:["li-cell flex flex-space-between",e.activeId==t.menuId?"active-menu":""],on:{click:function(n){e.changeMenu(t)}}},[n("span",{staticClass:"li-cell-name border-box p-l-45"},[e._v(e._s(t.menuName))]),e._v(" "),n("span",{staticClass:"li-cell-icon icon-round"})])])]})],2):e._e()])]})],2):e._e()])]})],2):e._e()])]})],2)])},staticRenderFns:[]};var g=n("VU/8")(p,d,!1,function(e){n("nVPo")},"data-v-e2591534",null).exports,f=n("fZjL"),m=n.n(f),b={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"home-footer-content"},[t("div",{staticClass:"home-site-footer"},[t("p",[this._v("Copyright © "+this._s((new Date).getFullYear())+" 浙江达摩网络科技有限公司 | 浙ICP备15033117号-1")])])])},staticRenderFns:[]};var v=n("VU/8")({name:"index",data:function(){return{}}},b,!1,function(e){n("0cd1")},"data-v-7bbea458",null).exports,k={props:{errorCodeData:{type:[Object,Array],default:function(){return{}}}},data:function(){return{}}},x={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"error-code-wrap"},[t("el-table",{staticStyle:{width:"100%"},attrs:{data:this.errorCodeData}},[t("el-table-column",{attrs:{prop:"errorCode",label:"错误码"}}),this._v(" "),t("el-table-column",{attrs:{prop:"errorInfo",label:"错误信息","show-overflow-tooltip":""}})],1)],1)},staticRenderFns:[]},D=n("VU/8")(k,x,!1,null,null,null).exports,y={props:{value:{type:String,default:function(){return""}},apiData:{type:[Object,Array],default:function(){return{}}}},data:function(){return{menuItemData:this.apiData,describeValue:this.value}},methods:{changeValue:function(e){this.$emit("input",this.describeValue)}},watch:{value:function(e,t){this.describeValue=e,console.log(this.apiData,this.value,e)},apiData:function(e,t){this.menuItemData=e,console.log(this.apiData,this.menuItemData,e)}},mounted:function(){var e=this;e.$nextTick(function(){e.menuItemData=e.apiData,e.describeValue=e.value,console.log(e.apiData,e.value)})}},w={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"api-detail-wrap"},[n("div",{staticClass:"api-detail-h2"},[e._v(e._s(e.menuItemData.interfaceName)+"(v"+e._s(e.menuItemData.version)+")")]),e._v(" "),n("div",{staticClass:"api-detail-descripe"},[n("el-input",{attrs:{disabled:"",type:"textarea",resize:"none",rows:3,placeholder:"请输入内容"},on:{blur:e.changeValue},model:{value:e.menuItemData.interfaceDescribe,callback:function(t){e.$set(e.menuItemData,"interfaceDescribe",t)},expression:"menuItemData.interfaceDescribe"}})],1),e._v(" "),n("div",{staticClass:"api-url m-t-16"},[n("div",{staticClass:"api-detail-p"},[e._v("请求地址:"+e._s(e.menuItemData.interfaceUrl))])]),e._v(" "),n("div",{staticClass:"api-method m-b-10 m-t-10"},[n("div",{staticClass:"api-detail-p"},[e._v("请求方法:"+e._s(e.menuItemData.requestType))])]),e._v(" "),n("div",{staticClass:"api-request-param m-t-10"},[n("div",{staticClass:"api-detail-h3 m-b-10"},[e._v("请求参数:")]),e._v(" "),n("div",[n("el-table",{staticStyle:{width:"100%","margin-bottom":"20px"},attrs:{data:e.menuItemData.frontParams,"row-key":"currentKey",border:"","default-expand-all":"","tree-props":{children:"children",hasChildren:"hasChildren"}}},[n("el-table-column",{attrs:{prop:"currentKey",label:"名称"}}),e._v(" "),n("el-table-column",{attrs:{prop:"type",label:"类型"}}),e._v(" "),n("el-table-column",{attrs:{prop:"example",label:"示例值"}}),e._v(" "),n("el-table-column",{attrs:{prop:"description",label:"描述"}})],1)],1)]),e._v(" "),n("div",{staticClass:"api-response-param"},[n("div",{staticClass:"api-detail-h3 m-b-10 m-t-27"},[e._v("响应参数:")]),e._v(" "),n("div",[n("el-table",{staticStyle:{width:"100%","margin-bottom":"20px"},attrs:{data:e.menuItemData.resultParams,"row-key":"currentKey",border:"","default-expand-all":"","tree-props":{children:"children",hasChildren:"hasChildren"}}},[n("el-table-column",{attrs:{prop:"currentKey",label:"名称"}}),e._v(" "),n("el-table-column",{attrs:{prop:"type",label:"类型"}}),e._v(" "),n("el-table-column",{attrs:{prop:"example",label:"示例值"}}),e._v(" "),n("el-table-column",{attrs:{prop:"description",label:"描述"}})],1)],1)]),e._v(" "),e._e(),e._v(" "),n("div",{staticClass:"api-response-success"},[n("div",{staticClass:"api-detail-h3 m-b-10 m-t-27"},[e._v("成功响应示例:")]),e._v(" "),n("div",{staticClass:"api-demo-text"},[n("pre",[e._v(e._s(e.menuItemData.sucReturn))])])]),e._v(" "),n("div",{staticClass:"api-response-error"},[n("div",{staticClass:"api-detail-h3 m-b-10 m-t-27"},[e._v("失败响应示例:")]),e._v(" "),n("div",{staticClass:"api-demo-text"},[n("pre",[e._v(e._s(e.menuItemData.errReturn))])])])])},staticRenderFns:[]};var _=n("VU/8")(y,w,!1,function(e){n("YWao")},"data-v-3f2a56cb",null).exports,C={props:{markdownData:{type:[Object,Array],default:function(){return{}}}},directives:{htmlContent:{bind:function(e,t){e.innerHTML=t.value}}},data:function(){return{formData:this.markdownData}},watch:{markdownData:function(e,t){this.formData=e}},mounted:function(){this.formData=this.markdownData}},A={render:function(){var e=this.$createElement;return(this._self._c||e)("div",{directives:[{name:"htmlContent",rawName:"v-htmlContent",value:this.formData.content,expression:"formData.content"}],staticClass:"markdown-content"})},staticRenderFns:[]};var I=n("VU/8")(C,A,!1,function(e){n("VIAc")},null,null).exports,R=n("EFqf"),S=n.n(R),T={props:{currentDoc:{type:[Object,Array],default:function(){return{}}},currentTab:{type:[String,Number],default:function(){return"2"}},searchData:{type:String,default:function(){return""}}},components:{openDocFooter:v,errorCodeTable:D,apiDetail:_,markdownContent:I},data:function(){return{menuDetailData:{},formData:{},errorCodeData:[],apiData:{},searchList:[],searchFlag:!1,pageNumber:1,pageSize:20,totalCount:0}},methods:{toDocMenuDetail:function(e){window.open("#/document?currentTab="+this.currentTab+"&menuId="+e.menuId)},loadMoreData:function(){if(this.searchList.length==this.totalCount)return!1;this.pageNumber++,this.getSearchData()},getSearchData:function(){var e,t=this,n={parentId:t.currentTab,search:t.searchData,pageNumber:t.pageNumber,pageSize:t.pageSize};(e=n,Object(c.a)(u+"search-menu",e)).then(function(e){var n=e.data;if("0000"==n.code)return n.result.result&&n.result.result.length&&n.result.result.forEach(function(e){t.searchList.push(e)}),void(t.totalCount=n.result.totalCount);h.a.errorMsg(n)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getErrorCodeData:function(){var e,t=this;(e={},Object(c.a)(u+"list-error-code",e)).then(function(e){var n=e.data;"0000"!=n.code?h.a.errorMsg(n):t.errorCodeData=n.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getApiDetailData:function(e){var t,n=this;(t={interfaceId:e},Object(c.a)(u+"get-api-detail",t)).then(function(e){var t=e.data;if("0000"==t.code){var r=t.result;return r.frontParams=JSON.parse(r.frontParams),r.frontParams=Object(i.b)(r.frontParams),r.resultParams=JSON.parse(r.resultParams),r.resultParams=Object(i.b)(r.resultParams),n.formData.memo=r.interfaceDescribe,n.apiData=JSON.parse(a()(r)),!1}h.a.errorMsg(t)}).catch(function(e){n.$message.error({duration:1e3,message:e.message})})},getData:function(e){var t,n=this;(t={articleId:e},Object(c.a)(u+"get-article",t)).then(function(e){var t=e.data;if("0000"==t.code)return t.result.content=S()(t.result.content),void(n.formData=t.result||{});h.a.errorMsg(t)}).catch(function(e){n.$message.error({duration:1e3,message:e.message})})},handleMenuData:function(){var e=this.menuDetailData.relationType,t=this.menuDetailData.subType;m()(this.menuDetailData).length?0==e?(this.formData={},this.apiData={},this.errorCodeData=[]):1==e?window.open(this.menuDetailData.relationData):2==e?(this.apiData={},this.errorCodeData=[],this.getData(JSON.parse(this.menuDetailData.relationData)[1])):3==e&&"0"==t?(this.apiData={},this.formData={},this.errorCodeData=JSON.parse(this.menuDetailData.relationData)):3==e&&"1"==t&&(this.formData={},this.errorCodeData=[],this.getApiDetailData(JSON.parse(this.menuDetailData.relationData)[2])):(this.formData={},this.apiData={},this.errorCodeData=[])}},watch:{currentDoc:function(e,t){var n=this;n.menuDetailData=e,n.$nextTick(function(){n.searchFlag=!1,n.handleMenuData()})},searchData:function(e,t){if(this.searchFlag=!0,!e)return this.searchList=[],this.totalCount=0,!1;this.getSearchData()}},mounted:function(){var e=this;e.menuDetailData=e.currentDoc,e.$nextTick(function(){e.handleMenuData()})}},L={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"document-right"},[n("div",{staticClass:"document-right-body border-box"},[e.searchFlag?n("div",{staticClass:"search-contain"},[n("h2",[e._v("搜索结果("+e._s(e.totalCount)+")")]),e._v(" "),e.searchList.length?n("div",{staticClass:"search-list"},[n("ul",e._l(e.searchList,function(t,r){return n("li",{key:r+"search",staticClass:"search-list-cell border-box",on:{click:function(n){e.toDocMenuDetail(t)}}},[e._v("\n "+e._s(t.menuName)+"\n ")])})),e._v(" "),e.totalCount>e.searchList.length?n("div",{staticClass:"load-more-data",on:{click:e.loadMoreData}},[e._v("加载更多")]):e._e()]):e._e(),e._v(" "),e.searchList.length?e._e():n("div",{staticClass:"no-search-data"},[e._v("\n 什么都没找到。\n ")])]):e._e(),e._v(" "),e.searchFlag?e._e():n("div",[e.formData.content?n("div",{staticClass:"article-contain"},[n("markdown-content",{attrs:{markdownData:e.formData}})],1):e._e(),e._v(" "),Object.keys(e.apiData).length?n("api-detail",{attrs:{apiData:e.apiData}}):e._e(),e._v(" "),e.errorCodeData.length?n("error-code-table",{attrs:{errorCodeData:e.errorCodeData}}):e._e()],1)]),e._v(" "),n("open-doc-footer")],1)},staticRenderFns:[]};var j={components:{openDocHeader:o,openDocLeft:g,openDocRight:n("VU/8")(T,L,!1,function(e){n("6xoj")},"data-v-6a6d47d6",null).exports},data:function(){return{currentTab:"2",currentDoc:"",searchData:""}},methods:{changeTab:function(e){this.currentTab=e},searchMenu:function(e,t){this.searchData=e,this.$refs.docContent.formData={},this.$refs.docContent.apiData={},this.$refs.docContent.errorCodeData=[]},changeDoc:function(e){this.currentDoc=JSON.parse(a()(e)),this.$refs.docContent.searchList=[]}},mounted:function(){this.currentTab=this.$route.query.currentTab||"2"}},z={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"document-center"},[n("open-doc-header",{attrs:{currentTab:e.currentTab},on:{changeTab:e.changeTab,searchMenu:e.searchMenu}}),e._v(" "),n("div",{staticClass:"document-center-body"},[n("div",{staticClass:"document-center-body_wrap flex"},[n("div",{staticClass:"document-center-left border-box"},[n("open-doc-left",{attrs:{currentTab:e.currentTab},on:{changeDoc:e.changeDoc}})],1),e._v(" "),n("div",{staticClass:"document-center-right"},[n("open-doc-right",{ref:"docContent",attrs:{currentDoc:e.currentDoc,currentTab:e.currentTab,searchData:e.searchData}})],1)])])],1)},staticRenderFns:[]};var N=n("VU/8")(j,z,!1,function(e){n("Q+Ho")},"data-v-05902d76",null);t.default=N.exports},VIAc:function(e,t){},YWao:function(e,t){},h1R5:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALwAAAAjCAYAAAAueWA9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSA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cCvpqhSkBm9y2gD+IQUNSxitcPRu/9v8CDAA+Mv2xNs98dwAAAABJRU5ErkJggg=="},jvWE:function(e,t,n){"use strict";t.a=function(e,t){var n,t=t||200;return function(){var r=this,a=arguments;n&&clearTimeout(n),n=setTimeout(function(){n=null,e.apply(r,a)},t)}},t.b=function e(t,n,r){var i=[];for(var s in t.properties){var l=t.properties[s];"object"==l.type&&a()(l.properties).length?(l.children=[],l.children=e(l),i.push(l)):"array"==l.type&&a()(l.items.properties).length?(l.children=[],l.children=e(l.items),i.push(l)):i.push(l)}return i};var r=n("fZjL"),a=n.n(r)},nVPo:function(e,t){},"y+wA":function(e,t){}});
webpackJsonp
([
4
],{
"0cd1"
:
function
(
e
,
t
){},
"6xoj"
:
function
(
e
,
t
){},
EFqf
:
function
(
e
,
t
,
n
){(
function
(
t
){
!
function
(
t
){
"use strict"
;
var
n
=
{
newline
:
/^
\n
+/
,
code
:
/^
(
{4}[^\n]
+
\n
*
)
+/
,
fences
:
/^
{0,3}(
`
{3,}
|~
{3,})([^
`~
\n]
*
)\n(?:
|
([\s\S]
*
?)\n)(?:
{0,3}\1[
~`
]
* *
(?:\n
+|$
)
|$
)
/
,
hr
:
/^
{0,3}((?:
- *
){3,}
|
(?:
_ *
){3,}
|
(?:\*
*
){3,})(?:\n
+|$
)
/
,
heading
:
/^
{0,3}(
#
{1,6})
+
([^\n]
*
?)(?:
+#+
)?
*
(?:\n
+|$
)
/
,
blockquote
:
/^
(
{0,3}
>
?(
paragraph|
[^\n]
*
)(?:\n
|$
))
+/
,
list
:
/^
(
{0,3})(
bull
)
[\s\S]
+
?(?:
hr|def|
\n{2,}(?!
)(?!\1
bull
)\n
*|
\s
*$
)
/
,
html
:
"^ {0,3}(?:<(script|pre|style)[
\\
s>][
\\
s
\\
S]*?(?:</
\\
1>[^
\\
n]*
\\
n+|$)|comment[^
\\
n]*(
\\
n+|$)|<
\\
?[
\\
s
\\
S]*?
\\
?>
\\
n*|<![A-Z][
\\
s
\\
S]*?>
\\
n*|<!
\\
[CDATA
\\
[[
\\
s
\\
S]*?
\\
]
\\
]>
\\
n*|</?(tag)(?: +|
\\
n|/?>)[
\\
s
\\
S]*?(?:
\\
n{2,}|$)|<(?!script|pre|style)([a-z][
\\
w-]*)(?:attribute)*? */?>(?=[
\\
t]*(?:
\\
n|$))[
\\
s
\\
S]*?(?:
\\
n{2,}|$)|</(?!script|pre|style)[a-z][
\\
w-]*
\\
s*>(?=[
\\
t]*(?:
\\
n|$))[
\\
s
\\
S]*?(?:
\\
n{2,}|$))"
,
def
:
/^
{0,3}\[(
label
)\]
: *
\n?
*<
?([^\s
>
]
+
)
>
?(?:(?:
+
\n?
*| *
\n
*
)(
title
))?
*
(?:\n
+|$
)
/
,
nptable
:
m
,
table
:
m
,
lheading
:
/^
([^\n]
+
)\n
{0,3}(
=+|-+
)
*
(?:\n
+|$
)
/
,
_paragraph
:
/^
([^\n]
+
(?:\n(?!
hr|heading|lheading|blockquote|fences|list|html
)[^\n]
+
)
*
)
/
,
text
:
/^
[^\n]
+/
};
function
r
(
e
){
this
.
tokens
=
[],
this
.
tokens
.
links
=
Object
.
create
(
null
),
this
.
options
=
e
||
y
.
defaults
,
this
.
rules
=
n
.
normal
,
this
.
options
.
pedantic
?
this
.
rules
=
n
.
pedantic
:
this
.
options
.
gfm
&&
(
this
.
rules
=
n
.
gfm
)}
n
.
_label
=
/
(?!\s
*
\])(?:\\[\[\]]
|
[^\[\]])
+/
,
n
.
_title
=
/
(?:
"
(?:\\
"
?
|
[^
"
\\])
*"|'
[^
'
\n]
*
(?:\n[^
'
\n]
+
)
*
\n?
'|
\([^
()
]
*
\))
/
,
n
.
def
=
p
(
n
.
def
).
replace
(
"label"
,
n
.
_label
).
replace
(
"title"
,
n
.
_title
).
getRegex
(),
n
.
bullet
=
/
(?:[
*+-
]
|
\d{1,9}\.)
/
,
n
.
item
=
/^
(
*
)(
bull
)
?[^\n]
*
(?:\n(?!\1
bull
?)[^\n]
*
)
*/
,
n
.
item
=
p
(
n
.
item
,
"gm"
).
replace
(
/bull/g
,
n
.
bullet
).
getRegex
(),
n
.
list
=
p
(
n
.
list
).
replace
(
/bull/g
,
n
.
bullet
).
replace
(
"hr"
,
"
\\
n+(?=
\\
1?(?:(?:- *){3,}|(?:_ *){3,}|(?:
\\
* *){3,})(?:
\\
n+|$))"
).
replace
(
"def"
,
"
\\
n+(?="
+
n
.
def
.
source
+
")"
).
getRegex
(),
n
.
_tag
=
"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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul"
,
n
.
_comment
=
/<!--
(?!
-
?
>
)[\s\S]
*
?
-->/
,
n
.
html
=
p
(
n
.
html
,
"i"
).
replace
(
"comment"
,
n
.
_comment
).
replace
(
"tag"
,
n
.
_tag
).
replace
(
"attribute"
,
/ +
[
a-zA-Z:_
][\w
.:-
]
*
(?:
*= *"
[^
"
\n]
*"| *= *'
[^
'
\n]
*'| *= *
[^\s
"'=<>`
]
+
)?
/
).
getRegex
(),
n
.
paragraph
=
p
(
n
.
_paragraph
).
replace
(
"hr"
,
n
.
hr
).
replace
(
"heading"
,
" {0,3}#{1,6} +"
).
replace
(
"|lheading"
,
""
).
replace
(
"blockquote"
,
" {0,3}>"
).
replace
(
"fences"
,
" {0,3}(?:`{3,}|~{3,})[^`
\\
n]*
\\
n"
).
replace
(
"list"
,
" {0,3}(?:[*+-]|1[.)]) "
).
replace
(
"html"
,
"</?(?:tag)(?: +|
\\
n|/?>)|<(?:script|pre|style|!--)"
).
replace
(
"tag"
,
n
.
_tag
).
getRegex
(),
n
.
blockquote
=
p
(
n
.
blockquote
).
replace
(
"paragraph"
,
n
.
paragraph
).
getRegex
(),
n
.
normal
=
b
({},
n
),
n
.
gfm
=
b
({},
n
.
normal
,{
nptable
:
/^ *
([^
|
\n
]
.*
\|
.*
)\n
*
([
-:
]
+ *
\|[
-| :
]
*
)(?:\n((?:
.*
[^
>
\n
]
.*
(?:\n
|$
))
*
)\n
*|$
)
/
,
table
:
/^ *
\|(
.+
)\n
*
\|?(
*
[
-:
]
+
[
-| :
]
*
)(?:\n((?:
*
[^
>
\n
]
.*
(?:\n
|$
))
*
)\n
*|$
)
/
}),
n
.
pedantic
=
b
({},
n
.
normal
,{
html
:
p
(
"^ *(?:comment *(?:
\\
n|
\\
s*$)|<(tag)[
\\
s
\\
S]+?</
\\
1> *(?:
\\
n{2,}|
\\
s*$)|<tag(?:
\"
[^
\"
]*
\"
|'[^']*'|
\\
s[^'
\"
/>
\\
s]*)*?/?> *(?:
\\
n{2,}|
\\
s*$))"
).
replace
(
"comment"
,
n
.
_comment
).
replace
(
/tag/g
,
"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)
\\
b)
\\
w+(?!:|[^
\\
w
\\
s@]*@)
\\
b"
).
getRegex
(),
def
:
/^ *
\[([^\]]
+
)\]
: *<
?([^\s
>
]
+
)
>
?(?:
+
([
"(
][^\n]
+
[
")
]))?
*
(?:\n
+|$
)
/
,
heading
:
/^ *
(
#
{1,6})
*
([^\n]
+
?)
*
(?:
#+ *
)?(?:\n
+|$
)
/
,
fences
:
m
,
paragraph
:
p
(
n
.
normal
.
_paragraph
).
replace
(
"hr"
,
n
.
hr
).
replace
(
"heading"
,
" *#{1,6} *[^
\
n]"
).
replace
(
"lheading"
,
n
.
lheading
).
replace
(
"blockquote"
,
" {0,3}>"
).
replace
(
"|fences"
,
""
).
replace
(
"|list"
,
""
).
replace
(
"|html"
,
""
).
getRegex
()}),
r
.
rules
=
n
,
r
.
lex
=
function
(
e
,
t
){
return
new
r
(
t
).
lex
(
e
)},
r
.
prototype
.
lex
=
function
(
e
){
return
e
=
e
.
replace
(
/
\r\n
|
\r
/g
,
"
\
n"
).
replace
(
/
\t
/g
,
" "
).
replace
(
/
\u
00a0/g
,
" "
).
replace
(
/
\u
2424/g
,
"
\
n"
),
this
.
token
(
e
,
!
0
)},
r
.
prototype
.
token
=
function
(
e
,
t
){
var
r
,
a
,
i
,
s
,
l
,
o
,
c
,
h
,
p
,
d
,
g
,
f
,
m
,
b
,
x
,
D
;
for
(
e
=
e
.
replace
(
/^ +$/gm
,
""
);
e
;)
if
((
i
=
this
.
rules
.
newline
.
exec
(
e
))
&&
(
e
=
e
.
substring
(
i
[
0
].
length
),
i
[
0
].
length
>
1
&&
this
.
tokens
.
push
({
type
:
"space"
})),
i
=
this
.
rules
.
code
.
exec
(
e
)){
var
y
=
this
.
tokens
[
this
.
tokens
.
length
-
1
];
e
=
e
.
substring
(
i
[
0
].
length
),
y
&&
"paragraph"
===
y
.
type
?
y
.
text
+=
"
\
n"
+
i
[
0
].
trimRight
():(
i
=
i
[
0
].
replace
(
/^
{4}
/gm
,
""
),
this
.
tokens
.
push
({
type
:
"code"
,
codeBlockStyle
:
"indented"
,
text
:
this
.
options
.
pedantic
?
i
:
k
(
i
,
"
\
n"
)}))}
else
if
(
i
=
this
.
rules
.
fences
.
exec
(
e
))
e
=
e
.
substring
(
i
[
0
].
length
),
this
.
tokens
.
push
({
type
:
"code"
,
lang
:
i
[
2
]?
i
[
2
].
trim
():
i
[
2
],
text
:
i
[
3
]
||
""
});
else
if
(
i
=
this
.
rules
.
heading
.
exec
(
e
))
e
=
e
.
substring
(
i
[
0
].
length
),
this
.
tokens
.
push
({
type
:
"heading"
,
depth
:
i
[
1
].
length
,
text
:
i
[
2
]});
else
if
((
i
=
this
.
rules
.
nptable
.
exec
(
e
))
&&
(
o
=
{
type
:
"table"
,
header
:
v
(
i
[
1
].
replace
(
/^ *| *
\|
*$/g
,
""
)),
align
:
i
[
2
].
replace
(
/^ *|
\|
*$/g
,
""
).
split
(
/ *
\|
*/
),
cells
:
i
[
3
]?
i
[
3
].
replace
(
/
\n
$/
,
""
).
split
(
"
\
n"
):[]}).
header
.
length
===
o
.
align
.
length
){
for
(
e
=
e
.
substring
(
i
[
0
].
length
),
g
=
0
;
g
<
o
.
align
.
length
;
g
++
)
/^
*-+
:
*
$
/
.
test
(
o
.
align
[
g
])?
o
.
align
[
g
]
=
"right"
:
/^ *:-+: *$/
.
test
(
o
.
align
[
g
])?
o
.
align
[
g
]
=
"center"
:
/^ *:-+ *$/
.
test
(
o
.
align
[
g
])?
o
.
align
[
g
]
=
"left"
:
o
.
align
[
g
]
=
null
;
for
(
g
=
0
;
g
<
o
.
cells
.
length
;
g
++
)
o
.
cells
[
g
]
=
v
(
o
.
cells
[
g
],
o
.
header
.
length
);
this
.
tokens
.
push
(
o
)}
else
if
(
i
=
this
.
rules
.
hr
.
exec
(
e
))
e
=
e
.
substring
(
i
[
0
].
length
),
this
.
tokens
.
push
({
type
:
"hr"
});
else
if
(
i
=
this
.
rules
.
blockquote
.
exec
(
e
))
e
=
e
.
substring
(
i
[
0
].
length
),
this
.
tokens
.
push
({
type
:
"blockquote_start"
}),
i
=
i
[
0
].
replace
(
/^ *>
?
/gm
,
""
),
this
.
token
(
i
,
t
),
this
.
tokens
.
push
({
type
:
"blockquote_end"
});
else
if
(
i
=
this
.
rules
.
list
.
exec
(
e
)){
for
(
e
=
e
.
substring
(
i
[
0
].
length
),
c
=
{
type
:
"list_start"
,
ordered
:
b
=
(
s
=
i
[
2
]).
length
>
1
,
start
:
b
?
+
s
:
""
,
loose
:
!
1
},
this
.
tokens
.
push
(
c
),
h
=
[],
r
=!
1
,
m
=
(
i
=
i
[
0
].
match
(
this
.
rules
.
item
)).
length
,
g
=
0
;
g
<
m
;
g
++
)
d
=
(
o
=
i
[
g
]).
length
,
~
(
o
=
o
.
replace
(
/^ *
([
*+-
]
|
\d
+
\.)
*/
,
""
)).
indexOf
(
"
\
n "
)
&&
(
d
-=
o
.
length
,
o
=
this
.
options
.
pedantic
?
o
.
replace
(
/^
{1,4}
/gm
,
""
):
o
.
replace
(
new
RegExp
(
"^ {1,"
+
d
+
"}"
,
"gm"
),
""
)),
g
!==
m
-
1
&&
(
l
=
n
.
bullet
.
exec
(
i
[
g
+
1
])[
0
],(
s
.
length
>
1
?
1
===
l
.
length
:
l
.
length
>
1
||
this
.
options
.
smartLists
&&
l
!==
s
)
&&
(
e
=
i
.
slice
(
g
+
1
).
join
(
"
\
n"
)
+
e
,
g
=
m
-
1
)),
a
=
r
||
/
\n\n(?!\s
*$
)
/
.
test
(
o
),
g
!==
m
-
1
&&
(
r
=
"
\
n"
===
o
.
charAt
(
o
.
length
-
1
),
a
||
(
a
=
r
)),
a
&&
(
c
.
loose
=!
0
),
D
=
void
0
,(
x
=
/^
\[[
xX
]\]
/
.
test
(
o
))
&&
(
D
=
" "
!==
o
[
1
],
o
=
o
.
replace
(
/^
\[[
xX
]\]
+/
,
""
)),
p
=
{
type
:
"list_item_start"
,
task
:
x
,
checked
:
D
,
loose
:
a
},
h
.
push
(
p
),
this
.
tokens
.
push
(
p
),
this
.
token
(
o
,
!
1
),
this
.
tokens
.
push
({
type
:
"list_item_end"
});
if
(
c
.
loose
)
for
(
m
=
h
.
length
,
g
=
0
;
g
<
m
;
g
++
)
h
[
g
].
loose
=!
0
;
this
.
tokens
.
push
({
type
:
"list_end"
})}
else
if
(
i
=
this
.
rules
.
html
.
exec
(
e
))
e
=
e
.
substring
(
i
[
0
].
length
),
this
.
tokens
.
push
({
type
:
this
.
options
.
sanitize
?
"paragraph"
:
"html"
,
pre
:
!
this
.
options
.
sanitizer
&&
(
"pre"
===
i
[
1
]
||
"script"
===
i
[
1
]
||
"style"
===
i
[
1
]),
text
:
this
.
options
.
sanitize
?
this
.
options
.
sanitizer
?
this
.
options
.
sanitizer
(
i
[
0
]):
u
(
i
[
0
]):
i
[
0
]});
else
if
(
t
&&
(
i
=
this
.
rules
.
def
.
exec
(
e
)))
e
=
e
.
substring
(
i
[
0
].
length
),
i
[
3
]
&&
(
i
[
3
]
=
i
[
3
].
substring
(
1
,
i
[
3
].
length
-
1
)),
f
=
i
[
1
].
toLowerCase
().
replace
(
/
\s
+/g
,
" "
),
this
.
tokens
.
links
[
f
]
||
(
this
.
tokens
.
links
[
f
]
=
{
href
:
i
[
2
],
title
:
i
[
3
]});
else
if
((
i
=
this
.
rules
.
table
.
exec
(
e
))
&&
(
o
=
{
type
:
"table"
,
header
:
v
(
i
[
1
].
replace
(
/^ *| *
\|
*$/g
,
""
)),
align
:
i
[
2
].
replace
(
/^ *|
\|
*$/g
,
""
).
split
(
/ *
\|
*/
),
cells
:
i
[
3
]?
i
[
3
].
replace
(
/
\n
$/
,
""
).
split
(
"
\
n"
):[]}).
header
.
length
===
o
.
align
.
length
){
for
(
e
=
e
.
substring
(
i
[
0
].
length
),
g
=
0
;
g
<
o
.
align
.
length
;
g
++
)
/^
*-+
:
*
$
/
.
test
(
o
.
align
[
g
])?
o
.
align
[
g
]
=
"right"
:
/^ *:-+: *$/
.
test
(
o
.
align
[
g
])?
o
.
align
[
g
]
=
"center"
:
/^ *:-+ *$/
.
test
(
o
.
align
[
g
])?
o
.
align
[
g
]
=
"left"
:
o
.
align
[
g
]
=
null
;
for
(
g
=
0
;
g
<
o
.
cells
.
length
;
g
++
)
o
.
cells
[
g
]
=
v
(
o
.
cells
[
g
].
replace
(
/^ *
\|
*| *
\|
*$/g
,
""
),
o
.
header
.
length
);
this
.
tokens
.
push
(
o
)}
else
if
(
i
=
this
.
rules
.
lheading
.
exec
(
e
))
e
=
e
.
substring
(
i
[
0
].
length
),
this
.
tokens
.
push
({
type
:
"heading"
,
depth
:
"="
===
i
[
2
].
charAt
(
0
)?
1
:
2
,
text
:
i
[
1
]});
else
if
(
t
&&
(
i
=
this
.
rules
.
paragraph
.
exec
(
e
)))
e
=
e
.
substring
(
i
[
0
].
length
),
this
.
tokens
.
push
({
type
:
"paragraph"
,
text
:
"
\
n"
===
i
[
1
].
charAt
(
i
[
1
].
length
-
1
)?
i
[
1
].
slice
(
0
,
-
1
):
i
[
1
]});
else
if
(
i
=
this
.
rules
.
text
.
exec
(
e
))
e
=
e
.
substring
(
i
[
0
].
length
),
this
.
tokens
.
push
({
type
:
"text"
,
text
:
i
[
0
]});
else
if
(
e
)
throw
new
Error
(
"Infinite loop on byte: "
+
e
.
charCodeAt
(
0
));
return
this
.
tokens
};
var
a
=
{
escape
:
/^
\\([
!"#$%&'()*+,
\-
.
/
:;<=>?@
\[\]\\
^_`{|}~
])
/
,
autolink
:
/^<
(
scheme:
[^\s\x
00-
\x
1f<>
]
*|email
)
>/
,
url
:
m
,
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
)\]\[(?!\s
*
\])((?:\\[\[\]]?
|
[^\[\]\\])
+
)\]
/
,
nolink
:
/^!
?\[(?!\s
*
\])((?:\[[^\[\]]
*
\]
|
\\[\[\]]
|
[^\[\]])
*
)\](?:\[\])?
/
,
strong
:
/^__
([^\s
_
])
__
(?!
_
)
|^
\*\*([^\s
*
])\*\*(?!\*)
|^__
([^\s][\s\S]
*
?[^\s])
__
(?!
_
)
|^
\*\*([^\s][\s\S]
*
?[^\s])\*\*(?!\*)
/
,
em
:
/^_
([^\s
_
])
_
(?!
_
)
|^
\*([^\s
*<
\[])\*(?!\*)
|^_
([^\s
<
][\s\S]
*
?[^\s
_
])
_
(?!
_|
[^\s
punctuation
])
|^_
([^\s
_<
][\s\S]
*
?[^\s])
_
(?!
_|
[^\s
punctuation
])
|^
\*([^\s
<"
][\s\S]
*
?[^\s\*])\*(?!\*
|
[^\s
punctuation
])
|^
\*([^\s
*"<
\[][\s\S]
*
?[^\s])\*(?!\*)
/
,
code
:
/^
(
`+
)([^
`
]
|
[^
`
][\s\S]
*
?[^
`
])\1(?!
`
)
/
,
br
:
/^
(
{2,}
|
\\)\n(?!\s
*$
)
/
,
del
:
m
,
text
:
/^
(
`+|
[^
`
])(?:[\s\S]
*
?(?:(?=[\\
<!
\[
`*
]
|
\b
_|$
)
|
[^
](?=
{2,}\n))
|
(?=
{2,}\n))
/
};
function
i
(
e
,
t
){
if
(
this
.
options
=
t
||
y
.
defaults
,
this
.
links
=
e
,
this
.
rules
=
a
.
normal
,
this
.
renderer
=
this
.
options
.
renderer
||
new
s
,
this
.
renderer
.
options
=
this
.
options
,
!
this
.
links
)
throw
new
Error
(
"Tokens array requires a `links` property."
);
this
.
options
.
pedantic
?
this
.
rules
=
a
.
pedantic
:
this
.
options
.
gfm
&&
(
this
.
options
.
breaks
?
this
.
rules
=
a
.
breaks
:
this
.
rules
=
a
.
gfm
)}
function
s
(
e
){
this
.
options
=
e
||
y
.
defaults
}
function
l
(){}
function
o
(
e
){
this
.
tokens
=
[],
this
.
token
=
null
,
this
.
options
=
e
||
y
.
defaults
,
this
.
options
.
renderer
=
this
.
options
.
renderer
||
new
s
,
this
.
renderer
=
this
.
options
.
renderer
,
this
.
renderer
.
options
=
this
.
options
,
this
.
slugger
=
new
c
}
function
c
(){
this
.
seen
=
{}}
function
u
(
e
,
t
){
if
(
t
){
if
(
u
.
escapeTest
.
test
(
e
))
return
e
.
replace
(
u
.
escapeReplace
,
function
(
e
){
return
u
.
replacements
[
e
]})}
else
if
(
u
.
escapeTestNoEncode
.
test
(
e
))
return
e
.
replace
(
u
.
escapeReplaceNoEncode
,
function
(
e
){
return
u
.
replacements
[
e
]});
return
e
}
function
h
(
e
){
return
e
.
replace
(
/&
(
#
(?:\d
+
)
|
(?:
#x
[
0-9A-Fa-f
]
+
)
|
(?:\w
+
))
;
?
/gi
,
function
(
e
,
t
){
return
"colon"
===
(
t
=
t
.
toLowerCase
())?
":"
:
"#"
===
t
.
charAt
(
0
)?
"x"
===
t
.
charAt
(
1
)?
String
.
fromCharCode
(
parseInt
(
t
.
substring
(
2
),
16
)):
String
.
fromCharCode
(
+
t
.
substring
(
1
)):
""
})}
function
p
(
e
,
t
){
return
e
=
e
.
source
||
e
,
t
=
t
||
""
,{
replace
:
function
(
t
,
n
){
return
n
=
(
n
=
n
.
source
||
n
).
replace
(
/
(
^|
[^\[])\^
/g
,
"$1"
),
e
=
e
.
replace
(
t
,
n
),
this
},
getRegex
:
function
(){
return
new
RegExp
(
e
,
t
)}}}
function
d
(
e
,
t
,
n
){
if
(
e
){
try
{
var
r
=
decodeURIComponent
(
h
(
n
)).
replace
(
/
[^\w
:
]
/g
,
""
).
toLowerCase
()}
catch
(
e
){
return
null
}
if
(
0
===
r
.
indexOf
(
"javascript:"
)
||
0
===
r
.
indexOf
(
"vbscript:"
)
||
0
===
r
.
indexOf
(
"data:"
))
return
null
}
t
&&!
f
.
test
(
n
)
&&
(
n
=
function
(
e
,
t
){
g
[
" "
+
e
]
||
(
/^
[^
:
]
+:
\/
*
[^/]
*$/
.
test
(
e
)?
g
[
" "
+
e
]
=
e
+
"/"
:
g
[
" "
+
e
]
=
k
(
e
,
"/"
,
!
0
));
return
e
=
g
[
" "
+
e
],
"//"
===
t
.
slice
(
0
,
2
)?
e
.
replace
(
/:
[\s\S]
*/
,
":"
)
+
t
:
"/"
===
t
.
charAt
(
0
)?
e
.
replace
(
/
(
:
\/
*
[^/]
*
)[\s\S]
*/
,
"$1"
)
+
t
:
e
+
t
}(
t
,
n
));
try
{
n
=
encodeURI
(
n
).
replace
(
/%25/g
,
"%"
)}
catch
(
e
){
return
null
}
return
n
}
a
.
_punctuation
=
"!
\"
#$%&'()*+,
\\
-./:;<=>?@
\\
[^_{|}~"
,
a
.
em
=
p
(
a
.
em
).
replace
(
/punctuation/g
,
a
.
_punctuation
).
getRegex
(),
a
.
_escapes
=
/
\\([
!"#$%&'()*+,
\-
.
/
:;<=>?@
\[\]\\
^_`{|}~
])
/g
,
a
.
_scheme
=
/
[
a-zA-Z
][
a-zA-Z0-9+.-
]{1,31}
/
,
a
.
_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
])?)
+
(?![
-_
])
/
,
a
.
autolink
=
p
(
a
.
autolink
).
replace
(
"scheme"
,
a
.
_scheme
).
replace
(
"email"
,
a
.
_email
).
getRegex
(),
a
.
_attribute
=
/
\s
+
[
a-zA-Z:_
][\w
.:-
]
*
(?:\s
*=
\s
*"
[^
"
]
*"|
\s
*=
\s
*'
[^
'
]
*'|
\s
*=
\s
*
[^\s
"'=<>`
]
+
)?
/
,
a
.
tag
=
p
(
a
.
tag
).
replace
(
"comment"
,
n
.
_comment
).
replace
(
"attribute"
,
a
.
_attribute
).
getRegex
(),
a
.
_label
=
/
(?:\[[^\[\]]
*
\]
|
\\
.|`
[^
`
]
*`|
[^\[\]\\
`
])
*
?
/
,
a
.
_href
=
/<
(?:\\[
<>
]?
|
[^\s
<>
\\])
*>|
[^\s\x
00-
\x
1f
]
*/
,
a
.
_title
=
/"
(?:\\
"
?
|
[^
"
\\])
*"|'
(?:\\
'
?
|
[^
'
\\])
*'|
\((?:\\\)?
|
[^
)
\\])
*
\)
/
,
a
.
link
=
p
(
a
.
link
).
replace
(
"label"
,
a
.
_label
).
replace
(
"href"
,
a
.
_href
).
replace
(
"title"
,
a
.
_title
).
getRegex
(),
a
.
reflink
=
p
(
a
.
reflink
).
replace
(
"label"
,
a
.
_label
).
getRegex
(),
a
.
normal
=
b
({},
a
),
a
.
pedantic
=
b
({},
a
.
normal
,{
strong
:
/^__
(?=\S)([\s\S]
*
?\S)
__
(?!
_
)
|^
\*\*(?=\S)([\s\S]
*
?\S)\*\*(?!\*)
/
,
em
:
/^_
(?=\S)([\s\S]
*
?\S)
_
(?!
_
)
|^
\*(?=\S)([\s\S]
*
?\S)\*(?!\*)
/
,
link
:
p
(
/^!
?\[(
label
)\]\((
.*
?)\)
/
).
replace
(
"label"
,
a
.
_label
).
getRegex
(),
reflink
:
p
(
/^!
?\[(
label
)\]\s
*
\[([^\]]
*
)\]
/
).
replace
(
"label"
,
a
.
_label
).
getRegex
()}),
a
.
gfm
=
b
({},
a
.
normal
,{
escape
:
p
(
a
.
escape
).
replace
(
"])"
,
"~|])"
).
getRegex
(),
_extended_email
:
/
[
A-Za-z0-9._+-
]
+
(
@
)[
a-zA-Z0-9-_
]
+
(?:\.[
a-zA-Z0-9-_
]
*
[
a-zA-Z0-9
])
+
(?![
-_
])
/
,
url
:
/^
((?:
ftp|https
?)
:
\/\/
|www
\.)(?:[
a-zA-Z0-9
\-]
+
\.?)
+
[^\s
<
]
*|^email/
,
_backpedal
:
/
(?:[^
?!.,:;*_~()&
]
+|
\([^
)
]
*
\)
|&
(?![
a-zA-Z0-9
]
+;$
)
|
[
?!.,:;*_~)
]
+
(?!
$
))
+/
,
del
:
/^~+
(?=\S)([\s\S]
*
?\S)
~+/
,
text
:
/^
(
`+|
[^
`
])(?:[\s\S]
*
?(?:(?=[\\
<!
\[
`*~
]
|
\b
_|https
?
:
\/\/
|ftp:
\/\/
|www
\.
|$
)
|
[^
](?=
{2,}\n)
|
[^
a-zA-Z0-9.!#$%&'*+
\/
=?_`{
\|
}~-
](?=[
a-zA-Z0-9.!#$%&'*+
\/
=?_`{
\|
}~-
]
+@
))
|
(?=
{2,}\n
|
[
a-zA-Z0-9.!#$%&'*+
\/
=?_`{
\|
}~-
]
+@
))
/
}),
a
.
gfm
.
url
=
p
(
a
.
gfm
.
url
,
"i"
).
replace
(
"email"
,
a
.
gfm
.
_extended_email
).
getRegex
(),
a
.
breaks
=
b
({},
a
.
gfm
,{
br
:
p
(
a
.
br
).
replace
(
"{2,}"
,
"*"
).
getRegex
(),
text
:
p
(
a
.
gfm
.
text
).
replace
(
"
\\
b_"
,
"
\\
b_| {2,}
\\
n"
).
replace
(
/
\{
2,
\}
/g
,
"*"
).
getRegex
()}),
i
.
rules
=
a
,
i
.
output
=
function
(
e
,
t
,
n
){
return
new
i
(
t
,
n
).
output
(
e
)},
i
.
prototype
.
output
=
function
(
e
){
for
(
var
t
,
n
,
r
,
a
,
s
,
l
,
o
=
""
;
e
;)
if
(
s
=
this
.
rules
.
escape
.
exec
(
e
))
e
=
e
.
substring
(
s
[
0
].
length
),
o
+=
u
(
s
[
1
]);
else
if
(
s
=
this
.
rules
.
tag
.
exec
(
e
))
!
this
.
inLink
&&
/^<a /i
.
test
(
s
[
0
])?
this
.
inLink
=!
0
:
this
.
inLink
&&
/^<
\/
a>/i
.
test
(
s
[
0
])
&&
(
this
.
inLink
=!
1
),
!
this
.
inRawBlock
&&
/^<
(
pre|code|kbd|script
)(\s
|>
)
/i
.
test
(
s
[
0
])?
this
.
inRawBlock
=!
0
:
this
.
inRawBlock
&&
/^<
\/(
pre|code|kbd|script
)(\s
|>
)
/i
.
test
(
s
[
0
])
&&
(
this
.
inRawBlock
=!
1
),
e
=
e
.
substring
(
s
[
0
].
length
),
o
+=
this
.
options
.
sanitize
?
this
.
options
.
sanitizer
?
this
.
options
.
sanitizer
(
s
[
0
]):
u
(
s
[
0
]):
s
[
0
];
else
if
(
s
=
this
.
rules
.
link
.
exec
(
e
)){
var
c
=
x
(
s
[
2
],
"()"
);
if
(
c
>-
1
){
var
h
=
4
+
s
[
1
].
length
+
c
;
s
[
2
]
=
s
[
2
].
substring
(
0
,
c
),
s
[
0
]
=
s
[
0
].
substring
(
0
,
h
).
trim
(),
s
[
3
]
=
""
}
e
=
e
.
substring
(
s
[
0
].
length
),
this
.
inLink
=!
0
,
r
=
s
[
2
],
this
.
options
.
pedantic
?(
t
=
/^
([^
'"
]
*
[^\s])\s
+
([
'"
])(
.*
)\2
/
.
exec
(
r
))?(
r
=
t
[
1
],
a
=
t
[
3
]):
a
=
""
:
a
=
s
[
3
]?
s
[
3
].
slice
(
1
,
-
1
):
""
,
r
=
r
.
trim
().
replace
(
/^<
([\s\S]
*
)
>$/
,
"$1"
),
o
+=
this
.
outputLink
(
s
,{
href
:
i
.
escapes
(
r
),
title
:
i
.
escapes
(
a
)}),
this
.
inLink
=!
1
}
else
if
((
s
=
this
.
rules
.
reflink
.
exec
(
e
))
||
(
s
=
this
.
rules
.
nolink
.
exec
(
e
))){
if
(
e
=
e
.
substring
(
s
[
0
].
length
),
t
=
(
s
[
2
]
||
s
[
1
]).
replace
(
/
\s
+/g
,
" "
),
!
(
t
=
this
.
links
[
t
.
toLowerCase
()])
||!
t
.
href
){
o
+=
s
[
0
].
charAt
(
0
),
e
=
s
[
0
].
substring
(
1
)
+
e
;
continue
}
this
.
inLink
=!
0
,
o
+=
this
.
outputLink
(
s
,
t
),
this
.
inLink
=!
1
}
else
if
(
s
=
this
.
rules
.
strong
.
exec
(
e
))
e
=
e
.
substring
(
s
[
0
].
length
),
o
+=
this
.
renderer
.
strong
(
this
.
output
(
s
[
4
]
||
s
[
3
]
||
s
[
2
]
||
s
[
1
]));
else
if
(
s
=
this
.
rules
.
em
.
exec
(
e
))
e
=
e
.
substring
(
s
[
0
].
length
),
o
+=
this
.
renderer
.
em
(
this
.
output
(
s
[
6
]
||
s
[
5
]
||
s
[
4
]
||
s
[
3
]
||
s
[
2
]
||
s
[
1
]));
else
if
(
s
=
this
.
rules
.
code
.
exec
(
e
))
e
=
e
.
substring
(
s
[
0
].
length
),
o
+=
this
.
renderer
.
codespan
(
u
(
s
[
2
].
trim
(),
!
0
));
else
if
(
s
=
this
.
rules
.
br
.
exec
(
e
))
e
=
e
.
substring
(
s
[
0
].
length
),
o
+=
this
.
renderer
.
br
();
else
if
(
s
=
this
.
rules
.
del
.
exec
(
e
))
e
=
e
.
substring
(
s
[
0
].
length
),
o
+=
this
.
renderer
.
del
(
this
.
output
(
s
[
1
]));
else
if
(
s
=
this
.
rules
.
autolink
.
exec
(
e
))
e
=
e
.
substring
(
s
[
0
].
length
),
r
=
"@"
===
s
[
2
]?
"mailto:"
+
(
n
=
u
(
this
.
mangle
(
s
[
1
]))):
n
=
u
(
s
[
1
]),
o
+=
this
.
renderer
.
link
(
r
,
null
,
n
);
else
if
(
this
.
inLink
||!
(
s
=
this
.
rules
.
url
.
exec
(
e
))){
if
(
s
=
this
.
rules
.
text
.
exec
(
e
))
e
=
e
.
substring
(
s
[
0
].
length
),
this
.
inRawBlock
?
o
+=
this
.
renderer
.
text
(
this
.
options
.
sanitize
?
this
.
options
.
sanitizer
?
this
.
options
.
sanitizer
(
s
[
0
]):
u
(
s
[
0
]):
s
[
0
]):
o
+=
this
.
renderer
.
text
(
u
(
this
.
smartypants
(
s
[
0
])));
else
if
(
e
)
throw
new
Error
(
"Infinite loop on byte: "
+
e
.
charCodeAt
(
0
))}
else
{
if
(
"@"
===
s
[
2
])
r
=
"mailto:"
+
(
n
=
u
(
s
[
0
]));
else
{
do
{
l
=
s
[
0
],
s
[
0
]
=
this
.
rules
.
_backpedal
.
exec
(
s
[
0
])[
0
]}
while
(
l
!==
s
[
0
]);
n
=
u
(
s
[
0
]),
r
=
"www."
===
s
[
1
]?
"http://"
+
n
:
n
}
e
=
e
.
substring
(
s
[
0
].
length
),
o
+=
this
.
renderer
.
link
(
r
,
null
,
n
)}
return
o
},
i
.
escapes
=
function
(
e
){
return
e
?
e
.
replace
(
i
.
rules
.
_escapes
,
"$1"
):
e
},
i
.
prototype
.
outputLink
=
function
(
e
,
t
){
var
n
=
t
.
href
,
r
=
t
.
title
?
u
(
t
.
title
):
null
;
return
"!"
!==
e
[
0
].
charAt
(
0
)?
this
.
renderer
.
link
(
n
,
r
,
this
.
output
(
e
[
1
])):
this
.
renderer
.
image
(
n
,
r
,
u
(
e
[
1
]))},
i
.
prototype
.
smartypants
=
function
(
e
){
return
this
.
options
.
smartypants
?
e
.
replace
(
/---/g
,
"—"
).
replace
(
/--/g
,
"–"
).
replace
(
/
(
^|
[
-
\u
2014
/
(
\[
{"
\s])
'/g
,
"$1‘"
).
replace
(
/'/g
,
"’"
).
replace
(
/
(
^|
[
-
\u
2014
/
(
\[
{
\u
2018
\s])
"/g
,
"$1“"
).
replace
(
/"/g
,
"”"
).
replace
(
/
\.{3}
/g
,
"…"
):
e
},
i
.
prototype
.
mangle
=
function
(
e
){
if
(
!
this
.
options
.
mangle
)
return
e
;
for
(
var
t
,
n
=
""
,
r
=
e
.
length
,
a
=
0
;
a
<
r
;
a
++
)
t
=
e
.
charCodeAt
(
a
),
Math
.
random
()
>
.
5
&&
(
t
=
"x"
+
t
.
toString
(
16
)),
n
+=
"&#"
+
t
+
";"
;
return
n
},
s
.
prototype
.
code
=
function
(
e
,
t
,
n
){
var
r
=
(
t
||
""
).
match
(
/
\S
*/
)[
0
];
if
(
this
.
options
.
highlight
){
var
a
=
this
.
options
.
highlight
(
e
,
r
);
null
!=
a
&&
a
!==
e
&&
(
n
=!
0
,
e
=
a
)}
return
r
?
'<pre><code class="'
+
this
.
options
.
langPrefix
+
u
(
r
,
!
0
)
+
'">'
+
(
n
?
e
:
u
(
e
,
!
0
))
+
"</code></pre>
\
n"
:
"<pre><code>"
+
(
n
?
e
:
u
(
e
,
!
0
))
+
"</code></pre>"
},
s
.
prototype
.
blockquote
=
function
(
e
){
return
"<blockquote>
\
n"
+
e
+
"</blockquote>
\
n"
},
s
.
prototype
.
html
=
function
(
e
){
return
e
},
s
.
prototype
.
heading
=
function
(
e
,
t
,
n
,
r
){
return
this
.
options
.
headerIds
?
"<h"
+
t
+
' id="'
+
this
.
options
.
headerPrefix
+
r
.
slug
(
n
)
+
'">'
+
e
+
"</h"
+
t
+
">
\
n"
:
"<h"
+
t
+
">"
+
e
+
"</h"
+
t
+
">
\
n"
},
s
.
prototype
.
hr
=
function
(){
return
this
.
options
.
xhtml
?
"<hr/>
\
n"
:
"<hr>
\
n"
},
s
.
prototype
.
list
=
function
(
e
,
t
,
n
){
var
r
=
t
?
"ol"
:
"ul"
;
return
"<"
+
r
+
(
t
&&
1
!==
n
?
' start="'
+
n
+
'"'
:
""
)
+
">
\
n"
+
e
+
"</"
+
r
+
">
\
n"
},
s
.
prototype
.
listitem
=
function
(
e
){
return
"<li>"
+
e
+
"</li>
\
n"
},
s
.
prototype
.
checkbox
=
function
(
e
){
return
"<input "
+
(
e
?
'checked="" '
:
""
)
+
'disabled="" type="checkbox"'
+
(
this
.
options
.
xhtml
?
" /"
:
""
)
+
"> "
},
s
.
prototype
.
paragraph
=
function
(
e
){
return
"<p>"
+
e
+
"</p>
\
n"
},
s
.
prototype
.
table
=
function
(
e
,
t
){
return
t
&&
(
t
=
"<tbody>"
+
t
+
"</tbody>"
),
"<table>
\
n<thead>
\
n"
+
e
+
"</thead>
\
n"
+
t
+
"</table>
\
n"
},
s
.
prototype
.
tablerow
=
function
(
e
){
return
"<tr>
\
n"
+
e
+
"</tr>
\
n"
},
s
.
prototype
.
tablecell
=
function
(
e
,
t
){
var
n
=
t
.
header
?
"th"
:
"td"
;
return
(
t
.
align
?
"<"
+
n
+
' align="'
+
t
.
align
+
'">'
:
"<"
+
n
+
">"
)
+
e
+
"</"
+
n
+
">
\
n"
},
s
.
prototype
.
strong
=
function
(
e
){
return
"<strong>"
+
e
+
"</strong>"
},
s
.
prototype
.
em
=
function
(
e
){
return
"<em>"
+
e
+
"</em>"
},
s
.
prototype
.
codespan
=
function
(
e
){
return
"<code>"
+
e
+
"</code>"
},
s
.
prototype
.
br
=
function
(){
return
this
.
options
.
xhtml
?
"<br/>"
:
"<br>"
},
s
.
prototype
.
del
=
function
(
e
){
return
"<del>"
+
e
+
"</del>"
},
s
.
prototype
.
link
=
function
(
e
,
t
,
n
){
if
(
null
===
(
e
=
d
(
this
.
options
.
sanitize
,
this
.
options
.
baseUrl
,
e
)))
return
n
;
var
r
=
'<a href="'
+
u
(
e
)
+
'"'
;
return
t
&&
(
r
+=
' title="'
+
t
+
'"'
),
r
+=
">"
+
n
+
"</a>"
},
s
.
prototype
.
image
=
function
(
e
,
t
,
n
){
if
(
null
===
(
e
=
d
(
this
.
options
.
sanitize
,
this
.
options
.
baseUrl
,
e
)))
return
n
;
var
r
=
'<img src="'
+
e
+
'" alt="'
+
n
+
'"'
;
return
t
&&
(
r
+=
' title="'
+
t
+
'"'
),
r
+=
this
.
options
.
xhtml
?
"/>"
:
">"
},
s
.
prototype
.
text
=
function
(
e
){
return
e
},
l
.
prototype
.
strong
=
l
.
prototype
.
em
=
l
.
prototype
.
codespan
=
l
.
prototype
.
del
=
l
.
prototype
.
text
=
function
(
e
){
return
e
},
l
.
prototype
.
link
=
l
.
prototype
.
image
=
function
(
e
,
t
,
n
){
return
""
+
n
},
l
.
prototype
.
br
=
function
(){
return
""
},
o
.
parse
=
function
(
e
,
t
){
return
new
o
(
t
).
parse
(
e
)},
o
.
prototype
.
parse
=
function
(
e
){
this
.
inline
=
new
i
(
e
.
links
,
this
.
options
),
this
.
inlineText
=
new
i
(
e
.
links
,
b
({},
this
.
options
,{
renderer
:
new
l
})),
this
.
tokens
=
e
.
reverse
();
for
(
var
t
=
""
;
this
.
next
();)
t
+=
this
.
tok
();
return
t
},
o
.
prototype
.
next
=
function
(){
return
this
.
token
=
this
.
tokens
.
pop
(),
this
.
token
},
o
.
prototype
.
peek
=
function
(){
return
this
.
tokens
[
this
.
tokens
.
length
-
1
]
||
0
},
o
.
prototype
.
parseText
=
function
(){
for
(
var
e
=
this
.
token
.
text
;
"text"
===
this
.
peek
().
type
;)
e
+=
"
\
n"
+
this
.
next
().
text
;
return
this
.
inline
.
output
(
e
)},
o
.
prototype
.
tok
=
function
(){
switch
(
this
.
token
.
type
){
case
"space"
:
return
""
;
case
"hr"
:
return
this
.
renderer
.
hr
();
case
"heading"
:
return
this
.
renderer
.
heading
(
this
.
inline
.
output
(
this
.
token
.
text
),
this
.
token
.
depth
,
h
(
this
.
inlineText
.
output
(
this
.
token
.
text
)),
this
.
slugger
);
case
"code"
:
return
this
.
renderer
.
code
(
this
.
token
.
text
,
this
.
token
.
lang
,
this
.
token
.
escaped
);
case
"table"
:
var
e
,
t
,
n
,
r
,
a
=
""
,
i
=
""
;
for
(
n
=
""
,
e
=
0
;
e
<
this
.
token
.
header
.
length
;
e
++
)
n
+=
this
.
renderer
.
tablecell
(
this
.
inline
.
output
(
this
.
token
.
header
[
e
]),{
header
:
!
0
,
align
:
this
.
token
.
align
[
e
]});
for
(
a
+=
this
.
renderer
.
tablerow
(
n
),
e
=
0
;
e
<
this
.
token
.
cells
.
length
;
e
++
){
for
(
t
=
this
.
token
.
cells
[
e
],
n
=
""
,
r
=
0
;
r
<
t
.
length
;
r
++
)
n
+=
this
.
renderer
.
tablecell
(
this
.
inline
.
output
(
t
[
r
]),{
header
:
!
1
,
align
:
this
.
token
.
align
[
r
]});
i
+=
this
.
renderer
.
tablerow
(
n
)}
return
this
.
renderer
.
table
(
a
,
i
);
case
"blockquote_start"
:
for
(
i
=
""
;
"blockquote_end"
!==
this
.
next
().
type
;)
i
+=
this
.
tok
();
return
this
.
renderer
.
blockquote
(
i
);
case
"list_start"
:
i
=
""
;
for
(
var
s
=
this
.
token
.
ordered
,
l
=
this
.
token
.
start
;
"list_end"
!==
this
.
next
().
type
;)
i
+=
this
.
tok
();
return
this
.
renderer
.
list
(
i
,
s
,
l
);
case
"list_item_start"
:
i
=
""
;
var
o
=
this
.
token
.
loose
,
c
=
this
.
token
.
checked
,
u
=
this
.
token
.
task
;
for
(
this
.
token
.
task
&&
(
i
+=
this
.
renderer
.
checkbox
(
c
));
"list_item_end"
!==
this
.
next
().
type
;)
i
+=
o
||
"text"
!==
this
.
token
.
type
?
this
.
tok
():
this
.
parseText
();
return
this
.
renderer
.
listitem
(
i
,
u
,
c
);
case
"html"
:
return
this
.
renderer
.
html
(
this
.
token
.
text
);
case
"paragraph"
:
return
this
.
renderer
.
paragraph
(
this
.
inline
.
output
(
this
.
token
.
text
));
case
"text"
:
return
this
.
renderer
.
paragraph
(
this
.
parseText
());
default
:
var
p
=
'Token with "'
+
this
.
token
.
type
+
'" type was not found.'
;
if
(
!
this
.
options
.
silent
)
throw
new
Error
(
p
);
console
.
log
(
p
)}},
c
.
prototype
.
slug
=
function
(
e
){
var
t
=
e
.
toLowerCase
().
trim
().
replace
(
/
[\u
2000-
\u
206F
\u
2E00-
\u
2E7F
\\
'!"#$%&()*+,.
/
:;<=>?@[
\]
^`{|}~
]
/g
,
""
).
replace
(
/
\s
/g
,
"-"
);
if
(
this
.
seen
.
hasOwnProperty
(
t
)){
var
n
=
t
;
do
{
this
.
seen
[
n
]
++
,
t
=
n
+
"-"
+
this
.
seen
[
n
]}
while
(
this
.
seen
.
hasOwnProperty
(
t
))}
return
this
.
seen
[
t
]
=
0
,
t
},
u
.
escapeTest
=
/
[
&<>"'
]
/
,
u
.
escapeReplace
=
/
[
&<>"'
]
/g
,
u
.
replacements
=
{
"&"
:
"&"
,
"<"
:
"<"
,
">"
:
">"
,
'"'
:
"""
,
"'"
:
"'"
},
u
.
escapeTestNoEncode
=
/
[
<>"'
]
|&
(?!
#
?\w
+;
)
/
,
u
.
escapeReplaceNoEncode
=
/
[
<>"'
]
|&
(?!
#
?\w
+;
)
/g
;
var
g
=
{},
f
=
/^$|^
[
a-z
][
a-z0-9+.-
]
*:|^
[
?#
]
/i
;
function
m
(){}
function
b
(
e
){
for
(
var
t
,
n
,
r
=
1
;
r
<
arguments
.
length
;
r
++
)
for
(
n
in
t
=
arguments
[
r
])
Object
.
prototype
.
hasOwnProperty
.
call
(
t
,
n
)
&&
(
e
[
n
]
=
t
[
n
]);
return
e
}
function
v
(
e
,
t
){
var
n
=
e
.
replace
(
/
\|
/g
,
function
(
e
,
t
,
n
){
for
(
var
r
=!
1
,
a
=
t
;
--
a
>=
0
&&
"
\
\"
===n[a];)r=!r;return r?"
|
":"
|
"}).split(/
\
|/),r=0;if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/
\\\
|/g,"
|
");return n}function k(e,t,n){if(0===e.length)return"";for(var r=0;r<e.length;){var a=e.charAt(e.length-r-1);if(a!==t||n){if(a===t||!n)break;r++}else r++}return e.substr(0,e.length-r)}function x(e,t){if(-1===e.indexOf(t[1]))return-1;for(var n=0,r=0;r<e.length;r++)if("
\\
"===e[r])r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&--n<0)return r;return-1}function D(e){e&&e.sanitize&&!e.silent&&console.warn("
marked
():
sanitize
and
sanitizer
parameters
are
deprecated
since
version
0.7
.
0
,
should
not
be
used
and
will
be
removed
in
the
future
.
Read
more
here
:
https
:
//marked.js.org/#/USING_ADVANCED.md#options")}function y(e,t,n){if(void 0===e||null===e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if(n||"function"==typeof t){n||(n=t,t=null),D(t=b({},y.defaults,t||{}));var a,i,s=t.highlight,l=0;try{a=r.lex(e,t)}catch(e){return n(e)}i=a.length;var c=function(e){if(e)return t.highlight=s,n(e);var r;try{r=o.parse(a,t)}catch(t){e=t}return t.highlight=s,e?n(e):n(null,r)};if(!s||s.length<3)return c();if(delete t.highlight,!i)return c();for(;l<a.length;l++)!function(e){"code"!==e.type?--i||c():s(e.text,e.lang,function(t,n){return t?c(t):null==n||n===e.text?--i||c():(e.text=n,e.escaped=!0,void(--i||c()))})}(a[l])}else try{return t&&(t=b({},y.defaults,t)),D(t),o.parse(r.lex(e,t),t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",(t||y.defaults).silent)return"<p>An error occurred:</p><pre>"+u(e.message+"",!0)+"</pre>";throw e}}m.exec=m,y.options=y.setOptions=function(e){return b(y.defaults,e),y},y.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new s,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1}},y.defaults=y.getDefaults(),y.Parser=o,y.parser=o.parse,y.Renderer=s,y.TextRenderer=l,y.Lexer=r,y.lexer=r.lex,y.InlineLexer=i,y.inlineLexer=i.output,y.Slugger=c,y.parse=y,e.exports=y}(this||"undefined"!=typeof window&&window)}).call(t,n("DuR2"))},"Q+Ho":function(e,t){},UYHc:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("mvHQ"),a=n.n(r),i=n("jvWE"),s={name:"vue-open-header",props:{currentTab:{type:[String,Number],default:function(){return"2"}}},data:function(){return{currentMenuTab:this.currentTab,openMenuData:[{menuId:"2",menuName:"开发者接入",menuUrl:""},{menuId:"1",menuName:"解决方案",menuUrl:""}],searchValue:""}},methods:{toRedirect:function(e){this.currentMenuTab=e.menuId,this.$emit("changeTab",e.menuId)},toHome:function(){this.$router.push("/home")},searchData:Object(i.a)(function(e){this.$emit("searchMenu",this.searchValue,this.currentMenuTab)},500),clearInput:function(){this.$emit("searchMenu",this.searchValue,this.currentMenuTab)}},watch:{$route:{handler:function(e,t){},deep:!0},currentTab:function(e,t){this.currentMenuTab=e}},mounted:function(){this.currentMenuTab=this.$route.query.currentTab||"2"}},l={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"open-header"},[r("div",{staticClass:"open-header-wrap border-box flex "},[r("div",{staticClass:"open-header-left",on:{click:e.toHome}},[r("img",{attrs:{src:n("h1R5"),alt:""}})]),e._v(" "),r("div",{staticClass:"open-header-right border-box"},[r("div",{staticClass:"open-header-right_wrap flex flex-space-between"},[r("ul",{staticClass:"flex"},e._l(e.openMenuData,function(t,n){return r("li",{key:n+"menu",class:["menu-li border-box",e.currentMenuTab==t.menuId?"active-tab":""],on:{click:function(n){n.stopPropagation(),n.preventDefault(),e.toRedirect(t)}}},[r("span",[e._v(e._s(t.menuName))])])})),e._v(" "),r("div",{staticClass:"search-wrap"},[r("el-input",{attrs:{clearable:"",placeholder:"请输入搜索内容","prefix-icon":"el-icon-search"},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return n=t,e.searchData(n);var n}},model:{value:e.searchValue,callback:function(t){e.searchValue=t},expression:"searchValue"}})],1)])])])])},staticRenderFns:[]};var o=n("VU/8")(s,l,!1,function(e){n("y+wA")},"data-v-1bfff858",null).exports,c=n("P9l9"),u="/open-platform-home-web/",h=n("LlAa"),p={props:{currentTab:{type:[String,Number],default:function(){return"2"}}},data:function(){return{parentId:this.currentTab,activeId:"",menuData:[]}},methods:{changeMenu:function(e){this.activeId=e.menuId,e.children&&e.children.length?e.expanded=!e.expanded:this.$emit("changeDoc",e)},getMenuData:function(e,t){var n,r=this;(n={parentId:e},Object(c.a)(u+"tree-menu",n)).then(function(e){var t=e.data;if("0000"==t.code)return t.result&&t.result.length&&(t.result.forEach(function(e){e.expanded=!1,e.menuId==r.activeId&&r.$emit("changeDoc",e),e.children&&e.children.length&&e.children.forEach(function(t){t.expanded=!1,t.menuId==r.activeId&&(e.expanded=!0,r.$emit("changeDoc",t)),t.children&&t.children.length&&t.children.forEach(function(e){e.expanded=!1,e.menuId==r.activeId&&(t.expanded=!0,r.$emit("changeDoc",e)),e.children.forEach(function(t){t.menuId==r.activeId&&(e.expanded=!0,r.$emit("changeDoc",t))})})})}),r.$route.query.menuId||(r.activeId=t.result[0].menuId,r.$emit("changeDoc",t.result[0]))),void(r.menuData=t.result||[]);h.a.errorMsg(t)}).catch(function(e){r.$message.error({duration:1e3,message:e.message})})}},watch:{currentTab:function(e,t){this.parentId=e,this.getMenuData(e)}},mounted:function(){this.parentId=this.$route.query.currentTab||"2",this.activeId=this.$route.query.menuId||"",this.getMenuData(this.parentId)}},d={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"document-left-body border-box"},[n("ul",{staticClass:"document-ul"},[e._l(e.menuData,function(t,r){return[n("li",{key:r+"level1"},[n("div",{class:["li-cell flex flex-space-between",e.activeId==t.menuId?"active-menu":""],on:{click:function(n){e.changeMenu(t)}}},[n("span",{staticClass:"li-cell-name"},[e._v(e._s(t.menuName))]),e._v(" "),t.children&&t.children.length?n("span",{class:["li-cell-icon font_family icon-arrow_right",t.expanded?"rotate-icon":""]}):e._e(),e._v(" "),t.children&&t.children.length?e._e():n("span",{staticClass:"li-cell-icon icon-round"})]),e._v(" "),t.children&&t.children.length&&t.expanded?n("ul",[e._l(t.children,function(t,r){return[n("li",{key:r+"level1"},[n("div",{class:["li-cell flex flex-space-between",e.activeId==t.menuId?"active-menu":""],on:{click:function(n){e.changeMenu(t)}}},[n("span",{staticClass:"p-l-15 li-cell-name border-box"},[e._v(e._s(t.menuName))]),e._v(" "),t.children&&t.children.length?n("span",{class:["li-cell-icon font_family icon-arrow_right",t.expanded?"rotate-icon":""]}):e._e(),e._v(" "),t.children&&t.children.length?e._e():n("span",{staticClass:"li-cell-icon icon-round"})]),e._v(" "),t.children&&t.children.length&&t.expanded?n("ul",[e._l(t.children,function(t,r){return[n("li",{key:r+"level1"},[n("div",{class:["li-cell flex flex-space-between",e.activeId==t.menuId?"active-menu":""],on:{click:function(n){e.changeMenu(t)}}},[n("span",{staticClass:"li-cell-name border-box p-l-30"},[e._v(e._s(t.menuName))]),e._v(" "),t.children&&t.children.length?n("span",{class:["li-cell-icon font_family icon-arrow_right",t.expanded?"rotate-icon":""]}):e._e(),e._v(" "),t.children&&t.children.length?e._e():n("span",{staticClass:"li-cell-icon icon-round"})]),e._v(" "),t.children&&t.children.length&&t.expanded?n("ul",[e._l(t.children,function(t,r){return[n("li",{key:r+"level1"},[n("div",{class:["li-cell flex flex-space-between",e.activeId==t.menuId?"active-menu":""],on:{click:function(n){e.changeMenu(t)}}},[n("span",{staticClass:"li-cell-name border-box p-l-45"},[e._v(e._s(t.menuName))]),e._v(" "),n("span",{staticClass:"li-cell-icon icon-round"})])])]})],2):e._e()])]})],2):e._e()])]})],2):e._e()])]})],2)])},staticRenderFns:[]};var g=n("VU/8")(p,d,!1,function(e){n("vOD9")},"data-v-ff9808f0",null).exports,f=n("fZjL"),m=n.n(f),b={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"home-footer-content"},[t("div",{staticClass:"home-site-footer"},[t("p",[this._v("Copyright © "+this._s((new Date).getFullYear())+" 浙江达摩网络科技有限公司 | 浙ICP备15033117号-1")])])])},staticRenderFns:[]};var v=n("VU/8")({name:"index",data:function(){return{}}},b,!1,function(e){n("0cd1")},"data-v-7bbea458",null).exports,k={props:{errorCodeData:{type:[Object,Array],default:function(){return{}}}},data:function(){return{}}},x={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"error-code-wrap"},[t("el-table",{staticStyle:{width:"100%"},attrs:{data:this.errorCodeData}},[t("el-table-column",{attrs:{prop:"errorCode",label:"错误码"}}),this._v(" "),t("el-table-column",{attrs:{prop:"errorInfo",label:"错误信息","show-overflow-tooltip":""}})],1)],1)},staticRenderFns:[]},D=n("VU/8")(k,x,!1,null,null,null).exports,y={props:{value:{type:String,default:function(){return""}},apiData:{type:[Object,Array],default:function(){return{}}}},data:function(){return{menuItemData:this.apiData,describeValue:this.value}},methods:{changeValue:function(e){this.$emit("input",this.describeValue)}},watch:{value:function(e,t){this.describeValue=e,console.log(this.apiData,this.value,e)},apiData:function(e,t){this.menuItemData=e,console.log(this.apiData,this.menuItemData,e)}},mounted:function(){var e=this;e.$nextTick(function(){e.menuItemData=e.apiData,e.describeValue=e.value,console.log(e.apiData,e.value)})}},w={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"api-detail-wrap"},[n("div",{staticClass:"api-detail-h2"},[e._v(e._s(e.menuItemData.interfaceName)+"(v"+e._s(e.menuItemData.version)+")")]),e._v(" "),n("div",{staticClass:"api-detail-descripe"},[n("el-input",{attrs:{disabled:"",type:"textarea",resize:"none",rows:3,placeholder:"请输入内容"},on:{blur:e.changeValue},model:{value:e.menuItemData.interfaceDescribe,callback:function(t){e.$set(e.menuItemData,"interfaceDescribe",t)},expression:"menuItemData.interfaceDescribe"}})],1),e._v(" "),n("div",{staticClass:"api-url m-t-16"},[n("div",{staticClass:"api-detail-p"},[e._v("请求地址:"+e._s(e.menuItemData.interfaceUrl))])]),e._v(" "),n("div",{staticClass:"api-method m-b-10 m-t-10"},[n("div",{staticClass:"api-detail-p"},[e._v("请求方法:"+e._s(e.menuItemData.requestType))])]),e._v(" "),n("div",{staticClass:"api-request-param m-t-10"},[n("div",{staticClass:"api-detail-h3 m-b-10"},[e._v("请求参数:")]),e._v(" "),n("div",[n("el-table",{staticStyle:{width:"100%","margin-bottom":"20px"},attrs:{data:e.menuItemData.frontParams,"row-key":"currentKey",border:"","default-expand-all":"","tree-props":{children:"children",hasChildren:"hasChildren"}}},[n("el-table-column",{attrs:{prop:"currentKey",label:"名称"}}),e._v(" "),n("el-table-column",{attrs:{prop:"type",label:"类型"}}),e._v(" "),n("el-table-column",{attrs:{prop:"example",label:"示例值"}}),e._v(" "),n("el-table-column",{attrs:{prop:"description",label:"描述"}})],1)],1)]),e._v(" "),n("div",{staticClass:"api-response-param"},[n("div",{staticClass:"api-detail-h3 m-b-10 m-t-27"},[e._v("响应参数:")]),e._v(" "),n("div",[n("el-table",{staticStyle:{width:"100%","margin-bottom":"20px"},attrs:{data:e.menuItemData.resultParams,"row-key":"currentKey",border:"","default-expand-all":"","tree-props":{children:"children",hasChildren:"hasChildren"}}},[n("el-table-column",{attrs:{prop:"currentKey",label:"名称"}}),e._v(" "),n("el-table-column",{attrs:{prop:"type",label:"类型"}}),e._v(" "),n("el-table-column",{attrs:{prop:"example",label:"示例值"}}),e._v(" "),n("el-table-column",{attrs:{prop:"description",label:"描述"}})],1)],1)]),e._v(" "),e._e(),e._v(" "),n("div",{staticClass:"api-response-success"},[n("div",{staticClass:"api-detail-h3 m-b-10 m-t-27"},[e._v("成功响应示例:")]),e._v(" "),n("div",{staticClass:"api-demo-text"},[n("pre",[e._v(e._s(e.menuItemData.sucReturn))])])]),e._v(" "),n("div",{staticClass:"api-response-error"},[n("div",{staticClass:"api-detail-h3 m-b-10 m-t-27"},[e._v("失败响应示例:")]),e._v(" "),n("div",{staticClass:"api-demo-text"},[n("pre",[e._v(e._s(e.menuItemData.errReturn))])])])])},staticRenderFns:[]};var _=n("VU/8")(y,w,!1,function(e){n("YWao")},"data-v-3f2a56cb",null).exports,C={props:{markdownData:{type:[Object,Array],default:function(){return{}}}},directives:{htmlContent:{bind:function(e,t){e.innerHTML=t.value}}},data:function(){return{formData:this.markdownData}},watch:{markdownData:function(e,t){this.formData=e}},mounted:function(){this.formData=this.markdownData}},A={render:function(){var e=this.$createElement;return(this._self._c||e)("div",{directives:[{name:"htmlContent",rawName:"v-htmlContent",value:this.formData.content,expression:"formData.content"}],staticClass:"markdown-content"})},staticRenderFns:[]};var I=n("VU/8")(C,A,!1,function(e){n("VIAc")},null,null).exports,R=n("EFqf"),S=n.n(R),T={props:{currentDoc:{type:[Object,Array],default:function(){return{}}},currentTab:{type:[String,Number],default:function(){return"2"}},searchData:{type:String,default:function(){return""}}},components:{openDocFooter:v,errorCodeTable:D,apiDetail:_,markdownContent:I},data:function(){return{menuDetailData:{},formData:{},errorCodeData:[],apiData:{},searchList:[],searchFlag:!1,pageNumber:1,pageSize:20,totalCount:0}},methods:{toDocMenuDetail:function(e){window.open("#/document?currentTab="+this.currentTab+"&menuId="+e.menuId)},loadMoreData:function(){if(this.searchList.length==this.totalCount)return!1;this.pageNumber++,this.getSearchData()},getSearchData:function(){var e,t=this,n={parentId:t.currentTab,search:t.searchData,pageNumber:t.pageNumber,pageSize:t.pageSize};(e=n,Object(c.a)(u+"search-menu",e)).then(function(e){var n=e.data;if("0000"==n.code)return n.result.result&&n.result.result.length&&n.result.result.forEach(function(e){t.searchList.push(e)}),void(t.totalCount=n.result.totalCount);h.a.errorMsg(n)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getErrorCodeData:function(){var e,t=this;(e={},Object(c.a)(u+"list-error-code",e)).then(function(e){var n=e.data;"0000"!=n.code?h.a.errorMsg(n):t.errorCodeData=n.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getApiDetailData:function(e){var t,n=this;(t={interfaceId:e},Object(c.a)(u+"get-api-detail",t)).then(function(e){var t=e.data;if("0000"==t.code){var r=t.result;return r.frontParams=JSON.parse(r.frontParams),r.frontParams=Object(i.b)(r.frontParams),r.resultParams=JSON.parse(r.resultParams),r.resultParams=Object(i.b)(r.resultParams),n.formData.memo=r.interfaceDescribe,n.apiData=JSON.parse(a()(r)),!1}h.a.errorMsg(t)}).catch(function(e){n.$message.error({duration:1e3,message:e.message})})},getData:function(e){var t,n=this;(t={articleId:e},Object(c.a)(u+"get-article",t)).then(function(e){var t=e.data;if("0000"==t.code)return t.result.content=S()(t.result.content),void(n.formData=t.result||{});h.a.errorMsg(t)}).catch(function(e){n.$message.error({duration:1e3,message:e.message})})},handleMenuData:function(){var e=this.menuDetailData.relationType,t=this.menuDetailData.subType;m()(this.menuDetailData).length?0==e?(this.formData={},this.apiData={},this.errorCodeData=[]):1==e?window.open(this.menuDetailData.relationData):2==e?(this.apiData={},this.errorCodeData=[],this.getData(JSON.parse(this.menuDetailData.relationData)[1])):3==e&&"0"==t?(this.apiData={},this.formData={},this.errorCodeData=JSON.parse(this.menuDetailData.relationData)):3==e&&"1"==t&&(this.formData={},this.errorCodeData=[],this.getApiDetailData(JSON.parse(this.menuDetailData.relationData)[2])):(this.formData={},this.apiData={},this.errorCodeData=[])}},watch:{currentDoc:function(e,t){var n=this;n.menuDetailData=e,n.$nextTick(function(){n.searchFlag=!1,n.handleMenuData()})},searchData:function(e,t){if(this.searchFlag=!0,!e)return this.searchList=[],this.totalCount=0,!1;this.getSearchData()}},mounted:function(){var e=this;e.menuDetailData=e.currentDoc,e.$nextTick(function(){e.handleMenuData()})}},L={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"document-right"},[n("div",{staticClass:"document-right-body border-box"},[e.searchFlag?n("div",{staticClass:"search-contain"},[n("h2",[e._v("搜索结果("+e._s(e.totalCount)+")")]),e._v(" "),e.searchList.length?n("div",{staticClass:"search-list"},[n("ul",e._l(e.searchList,function(t,r){return n("li",{key:r+"search",staticClass:"search-list-cell border-box",on:{click:function(n){e.toDocMenuDetail(t)}}},[e._v("\n "+e._s(t.menuName)+"\n ")])})),e._v(" "),e.totalCount>e.searchList.length?n("div",{staticClass:"load-more-data",on:{click:e.loadMoreData}},[e._v("加载更多")]):e._e()]):e._e(),e._v(" "),e.searchList.length?e._e():n("div",{staticClass:"no-search-data"},[e._v("\n 什么都没找到。\n ")])]):e._e(),e._v(" "),e.searchFlag?e._e():n("div",[e.formData.content?n("div",{staticClass:"article-contain"},[n("markdown-content",{attrs:{markdownData:e.formData}})],1):e._e(),e._v(" "),Object.keys(e.apiData).length?n("api-detail",{attrs:{apiData:e.apiData}}):e._e(),e._v(" "),e.errorCodeData.length?n("error-code-table",{attrs:{errorCodeData:e.errorCodeData}}):e._e()],1)]),e._v(" "),n("open-doc-footer")],1)},staticRenderFns:[]};var j={components:{openDocHeader:o,openDocLeft:g,openDocRight:n("VU/8")(T,L,!1,function(e){n("6xoj")},"data-v-6a6d47d6",null).exports},data:function(){return{currentTab:"2",currentDoc:"",searchData:""}},methods:{changeTab:function(e){this.currentTab=e},searchMenu:function(e,t){this.searchData=e,this.$refs.docContent.formData={},this.$refs.docContent.apiData={},this.$refs.docContent.errorCodeData=[]},changeDoc:function(e){this.currentDoc=JSON.parse(a()(e)),this.$refs.docContent.searchList=[]}},mounted:function(){this.currentTab=this.$route.query.currentTab||"2"}},z={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"document-center"},[n("open-doc-header",{attrs:{currentTab:e.currentTab},on:{changeTab:e.changeTab,searchMenu:e.searchMenu}}),e._v(" "),n("div",{staticClass:"document-center-body"},[n("div",{staticClass:"document-center-body_wrap flex"},[n("div",{staticClass:"document-center-left border-box"},[n("open-doc-left",{attrs:{currentTab:e.currentTab},on:{changeDoc:e.changeDoc}})],1),e._v(" "),n("div",{staticClass:"document-center-right"},[n("open-doc-right",{ref:"docContent",attrs:{currentDoc:e.currentDoc,currentTab:e.currentTab,searchData:e.searchData}})],1)])])],1)},staticRenderFns:[]};var N=n("VU/8")(j,z,!1,function(e){n("Q+Ho")},"data-v-05902d76",null);t.default=N.exports},VIAc:function(e,t){},YWao:function(e,t){},h1R5:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALwAAAAjCAYAAAAueWA9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6ODBGOUUxQUJCREFEMTFFOUFCOUNEQjdFNTVDQjYxRkQiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6OD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B51PAr8AzpWJp/pxzZn8q29P3keNdffMgU4iXClr86LF8v7G7+35ombAZFGXjyW88uXbhPPNsHAP+ZPEiS6CXi6Bls/eccc7Z9xzfswWk5PTwnLMm/sgf8asX/l3LZ3bsxGy/D8mqRF0YJNIyZt9SufYzB5UAFH1ZSITM6jfhvR8l9mxcAj6X0yAW8YFRMaGiWyheJWiZloAzb/gonHPRtEI0Gf9pV09pxg/+c37klT2F/JZne2DHy93w+q7jcOJgCWWPWf1ZDkkKwrSWsyDX0wHFooGKx/vlAs/GIeDnz2uGcEiFMII+EFSgZfqFkGxsgFijslDWYPLm7d1PNjZIvZ3HTTUaC8ufuCpsfuyK6XC0U4OeHnoV2KoKmURTENLpY3DLTY+BoVeq2/LMs3EJeB1ZuoIMryjVn9ODclGDN9NmQVbk/rIOvdt3l7Pnziw1xsJKsFQxuxSUPxQksUnxk8/Ok80Ab3RUoKLpuB3Zu7KejV9JY5tR7UAbYJr0Koz0/OxJMrTOiCZ2H6nkQwHpBOLcCvpqhSkBm9y2gD+IQUNSxitcPRu/9v8CDAA+Mv2xNs98dwAAAABJRU5ErkJggg=="},jvWE:function(e,t,n){"use strict";t.a=function(e,t){var n,t=t||200;return function(){var r=this,a=arguments;n&&clearTimeout(n),n=setTimeout(function(){n=null,e.apply(r,a)},t)}},t.b=function e(t,n,r){var i=[];for(var s in t.properties){var l=t.properties[s];"object"==l.type&&a()(l.properties).length?(l.children=[],l.children=e(l),i.push(l)):"array"==l.type&&a()(l.items.properties).length?(l.children=[],l.children=e(l.items),i.push(l)):i.push(l)}return i};var r=n("fZjL"),a=n.n(r)},vOD9:function(e,t){},"y+wA":function(e,t){}});
\ No newline at end of file
\ No newline at end of file
dist/static/js/manifest.
119f6d6a195c4070c82d
.js
→
dist/static/js/manifest.
858fd59fbfc6804017c1
.js
View file @
4cd99019
!
function
(
e
){
var
n
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
r
,
a
,
c
){
for
(
var
f
,
i
,
u
,
d
=
0
,
s
=
[];
d
<
r
.
length
;
d
++
)
i
=
r
[
d
],
t
[
i
]
&&
s
.
push
(
t
[
i
][
0
]),
t
[
i
]
=
0
;
for
(
f
in
a
)
Object
.
prototype
.
hasOwnProperty
.
call
(
a
,
f
)
&&
(
e
[
f
]
=
a
[
f
]);
for
(
n
&&
n
(
r
,
a
,
c
);
s
.
length
;)
s
.
shift
()();
if
(
c
)
for
(
d
=
0
;
d
<
c
.
length
;
d
++
)
u
=
o
(
o
.
s
=
c
[
d
]);
return
u
};
var
r
=
{},
t
=
{
13
:
0
};
function
o
(
n
){
if
(
r
[
n
])
return
r
[
n
].
exports
;
var
t
=
r
[
n
]
=
{
i
:
n
,
l
:
!
1
,
exports
:{}};
return
e
[
n
].
call
(
t
.
exports
,
t
,
t
.
exports
,
o
),
t
.
l
=!
0
,
t
.
exports
}
o
.
e
=
function
(
e
){
var
n
=
t
[
e
];
if
(
0
===
n
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
n
)
return
n
[
2
];
var
r
=
new
Promise
(
function
(
r
,
o
){
n
=
t
[
e
]
=
[
r
,
o
]});
n
[
2
]
=
r
;
var
a
=
document
.
getElementsByTagName
(
"head"
)[
0
],
c
=
document
.
createElement
(
"script"
);
c
.
type
=
"text/javascript"
,
c
.
charset
=
"utf-8"
,
c
.
async
=!
0
,
c
.
timeout
=
12
e4
,
o
.
nc
&&
c
.
setAttribute
(
"nonce"
,
o
.
nc
),
c
.
src
=
o
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"dc5820857959176b1da4"
,
1
:
"adba71f29a9630854db5"
,
2
:
"5ea71994ffb9873345e3"
,
3
:
"2acdb0bfe14d02f22e32"
,
4
:
"bf8e3aeda411aec22fb1"
,
5
:
"b3cf76f8c670cd2efb7e"
,
6
:
"737da25334f9daa2d713"
,
7
:
"474d894e86be623775df"
,
8
:
"5e787f5eb2f4bd7cfb7b"
,
9
:
"9caad4c0ba5b8b4813ee"
,
10
:
"63807a09986add449f8a"
}[
e
]
+
".js"
;
var
f
=
setTimeout
(
i
,
12
e4
);
function
i
(){
c
.
onerror
=
c
.
onload
=
null
,
clearTimeout
(
f
);
var
n
=
t
[
e
];
0
!==
n
&&
(
n
&&
n
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
t
[
e
]
=
void
0
)}
return
c
.
onerror
=
c
.
onload
=
i
,
a
.
appendChild
(
c
),
r
},
o
.
m
=
e
,
o
.
c
=
r
,
o
.
d
=
function
(
e
,
n
,
r
){
o
.
o
(
e
,
n
)
||
Object
.
defineProperty
(
e
,
n
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
r
})},
o
.
n
=
function
(
e
){
var
n
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
o
.
d
(
n
,
"a"
,
n
),
n
},
o
.
o
=
function
(
e
,
n
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
n
)},
o
.
p
=
"./"
,
o
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
!
function
(
e
){
var
n
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
r
,
a
,
c
){
for
(
var
f
,
i
,
u
,
d
=
0
,
s
=
[];
d
<
r
.
length
;
d
++
)
i
=
r
[
d
],
t
[
i
]
&&
s
.
push
(
t
[
i
][
0
]),
t
[
i
]
=
0
;
for
(
f
in
a
)
Object
.
prototype
.
hasOwnProperty
.
call
(
a
,
f
)
&&
(
e
[
f
]
=
a
[
f
]);
for
(
n
&&
n
(
r
,
a
,
c
);
s
.
length
;)
s
.
shift
()();
if
(
c
)
for
(
d
=
0
;
d
<
c
.
length
;
d
++
)
u
=
o
(
o
.
s
=
c
[
d
]);
return
u
};
var
r
=
{},
t
=
{
13
:
0
};
function
o
(
n
){
if
(
r
[
n
])
return
r
[
n
].
exports
;
var
t
=
r
[
n
]
=
{
i
:
n
,
l
:
!
1
,
exports
:{}};
return
e
[
n
].
call
(
t
.
exports
,
t
,
t
.
exports
,
o
),
t
.
l
=!
0
,
t
.
exports
}
o
.
e
=
function
(
e
){
var
n
=
t
[
e
];
if
(
0
===
n
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
n
)
return
n
[
2
];
var
r
=
new
Promise
(
function
(
r
,
o
){
n
=
t
[
e
]
=
[
r
,
o
]});
n
[
2
]
=
r
;
var
a
=
document
.
getElementsByTagName
(
"head"
)[
0
],
c
=
document
.
createElement
(
"script"
);
c
.
type
=
"text/javascript"
,
c
.
charset
=
"utf-8"
,
c
.
async
=!
0
,
c
.
timeout
=
12
e4
,
o
.
nc
&&
c
.
setAttribute
(
"nonce"
,
o
.
nc
),
c
.
src
=
o
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"dc5820857959176b1da4"
,
1
:
"adba71f29a9630854db5"
,
2
:
"5ea71994ffb9873345e3"
,
3
:
"2acdb0bfe14d02f22e32"
,
4
:
"fcabcdb79da879c55cd4"
,
5
:
"b3cf76f8c670cd2efb7e"
,
6
:
"737da25334f9daa2d713"
,
7
:
"474d894e86be623775df"
,
8
:
"5e787f5eb2f4bd7cfb7b"
,
9
:
"9caad4c0ba5b8b4813ee"
,
10
:
"63807a09986add449f8a"
}[
e
]
+
".js"
;
var
f
=
setTimeout
(
i
,
12
e4
);
function
i
(){
c
.
onerror
=
c
.
onload
=
null
,
clearTimeout
(
f
);
var
n
=
t
[
e
];
0
!==
n
&&
(
n
&&
n
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
t
[
e
]
=
void
0
)}
return
c
.
onerror
=
c
.
onload
=
i
,
a
.
appendChild
(
c
),
r
},
o
.
m
=
e
,
o
.
c
=
r
,
o
.
d
=
function
(
e
,
n
,
r
){
o
.
o
(
e
,
n
)
||
Object
.
defineProperty
(
e
,
n
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
r
})},
o
.
n
=
function
(
e
){
var
n
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
o
.
d
(
n
,
"a"
,
n
),
n
},
o
.
o
=
function
(
e
,
n
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
n
)},
o
.
p
=
"./"
,
o
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
\ No newline at end of file
src/components/open-doc-left.vue
View file @
4cd99019
...
@@ -95,7 +95,7 @@ export default {
...
@@ -95,7 +95,7 @@ export default {
// 如果有子级,展开或者折叠显示
// 如果有子级,展开或者折叠显示
if
(
item
.
children
&&
item
.
children
.
length
)
{
if
(
item
.
children
&&
item
.
children
.
length
)
{
item
.
expanded
=
!
item
.
expanded
;
item
.
expanded
=
!
item
.
expanded
;
that
.
$emit
(
'changeDoc'
,
{});
//
that.$emit('changeDoc', {});
}
else
{
}
else
{
// 没有子级先加载看看是否有子级
// 没有子级先加载看看是否有子级
that
.
$emit
(
'changeDoc'
,
item
);
that
.
$emit
(
'changeDoc'
,
item
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment