提交 466e09f9 authored 作者: yueweilu's avatar yueweilu

使用本地html

上级 0a97ea16
...@@ -4,5 +4,5 @@ keyPassword=123456 ...@@ -4,5 +4,5 @@ keyPassword=123456
keyAlias=zijing keyAlias=zijing
#storeFile=/Users/apple/zijiing_key.jks storeFile=/Users/apple/zijiing_key.jks
storeFile=zijiing_key.jks #storeFile=zijiing_key.jks
\ No newline at end of file \ No newline at end of file
html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
div,
table,
tr,
td,
tbody,
tfoot,
th,
dl,
dt,
dd,
ol,
ul,
li,
a,
sub,
sup,
strong,
b,
em,
i,
code,
pre,
img,
section,
article,
input,
textarea,
span,
blockquote {
margin: 0;
padding: 0;
margin-block: 0;
outline: none;
}
* {
-webkit-touch-callout: none;
}
input,
textarea,
span {
outline: none;
resize: none;
}
a,
a:hover {
text-decoration: none;
border: none;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-webkit-tap-highlight-color: transparent;
outline: none;
}
input[type=radio],
input[type=checkbox] {
display: none;
}
sub,
pre,
code {
user-select: none;
-webkit-user-select: none;
}
line {
border-bottom: 2px solid #AB1941;
font-weight: normal;
cursor: pointer;
}
light {
font-weight: normal;
cursor: pointer;
}
light.c-feff00 {
background-color: #feff00;
}
light.c-feff00::selection {
background-color: #feff00;
}
light.c-00ff00 {
background-color: #00ff00;
}
light.c-00ff00::selection {
background-color: #00ff00;
}
light.c-00ffff {
background-color: #00ffff;
}
light.c-00ffff::selection {
background-color: #00ffff;
}
light.c-ff00ff {
background-color: #ff00ff;
}
light.c-ff00ff::selection {
background-color: #ff00ff;
}
light.c-d2b3fa {
background-color: #d2b3fa;
}
light.c-d2b3fa::selection {
background-color: #d2b3fa;
}
light.c-ff4500 {
background-color: #ff4500;
}
light.c-ff4500::selection {
background-color: #ff4500;
}
html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
div,
table,
tr,
td,
tbody,
tfoot,
th,
dl,
dt,
dd,
ol,
ul,
li,
a,
sub,
sup,
strong,
b,
em,
i,
code,
pre,
img,
section,
article,
input,
textarea,
span,
blockquote {
margin: 0;
padding: 0;
margin-block: 0;
outline: none;
}
* {
-webkit-touch-callout: none;
}
input,
textarea,
span {
outline: none;
resize: none;
}
a,
a:hover {
text-decoration: none;
border: none;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-webkit-tap-highlight-color: transparent;
outline: none;
}
input[type=radio],
input[type=checkbox] {
display: none;
}
sub,
pre,
code {
user-select: none;
-webkit-user-select: none;
}
line {
border-bottom: 2px solid #AB1941;
font-weight: normal;
cursor: pointer;
}
light {
font-weight: normal;
cursor: pointer;
}
light.c-feff00 {
background-color: #feff00;
}
light.c-feff00::selection {
background-color: #feff00;
}
light.c-00ff00 {
background-color: #00ff00;
}
light.c-00ff00::selection {
background-color: #00ff00;
}
light.c-00ffff {
background-color: #00ffff;
}
light.c-00ffff::selection {
background-color: #00ffff;
}
light.c-ff00ff {
background-color: #ff00ff;
}
light.c-ff00ff::selection {
background-color: #ff00ff;
}
light.c-d2b3fa {
background-color: #d2b3fa;
}
light.c-d2b3fa::selection {
background-color: #d2b3fa;
}
light.c-ff4500 {
background-color: #ff4500;
}
light.c-ff4500::selection {
background-color: #ff4500;
}
.body_evaluating {
background-color: #f9f9f9;
}
#app {
width: 100vw;
height: 100vh;
max-width: 560px;
margin: 0 auto;
}
#app .assess-container {
/* 提交 */
}
#app .assess-container .book-title-container {
width: 100%;
height: 3.5999999999999996rem;
padding: 0.26666666666666666rem;
box-sizing: border-box;
}
#app .assess-container .book-title-container .book-title {
background-color: #fff;
box-shadow: 6px 0px 20px 0px rgba(199, 199, 199, 0.5);
border-radius: 0.21333333333333332rem;
height: 3.0666666666666664rem;
padding: 0.37333333333333335rem 0.30666666666666664rem;
box-sizing: border-box;
display: flex;
justify-content: space-between;
}
#app .assess-container .book-title-container .book-title .book-title-img {
height: 2.3200000000000003rem;
width: 2.1066666666666665rem;
margin-right: 0.29333333333333333rem;
}
#app .assess-container .book-title-container .book-title .book-title-img .img-container {
padding: 0.08rem;
width: 1.9333333333333333rem;
box-shadow: 6px 0px 20px 0px rgba(199, 199, 199, 0.5);
border-radius: 0.21333333333333332rem;
height: 100%;
overflow: hidden;
}
#app .assess-container .book-title-container .book-title .book-title-img .img-container img {
width: 100%;
height: 100%;
}
#app .assess-container .book-title-container .book-title .book-title-info {
flex: 1;
}
#app .assess-container .book-title-container .book-title .book-title-info h2 {
padding-top: 0.16rem;
font-size: 0.37333333333333335rem;
line-height: 0.5333333333333333rem;
color: #333;
}
#app .assess-container .book-title-container .book-title .book-title-info h6 {
margin-top: 0.10666666666666666rem;
font-size: 0.32rem;
line-height: 0.42666666666666664rem;
color: #666;
font-weight: normal;
}
#app .assess-container .book-title-container .book-title .book-title-info p {
color: #AB1941;
margin-top: 0.4666666666666667rem;
font-size: 0.29333333333333333rem;
line-height: 0.4rem;
}
#app .assess-container .chapter-title {
background: linear-gradient(180deg, #f7f5f5 0%, #ffffff 100%);
padding: 0.28rem 0.4rem 0.2rem;
margin-bottom: 0.26666666666666666rem;
}
#app .assess-container .chapter-title .section {
white-space: pre-wrap;
word-break: break-all;
word-wrap: break-word;
line-height: 0.64rem;
font-size: 0.4rem;
color: #333;
}
#app .assess-container .chapter-title .minor {
white-space: pre-wrap;
word-break: break-all;
word-wrap: break-word;
line-height: 0.64rem;
font-size: 0.3466666666666667rem;
color: #666;
padding-left: 1.1733333333333333rem;
}
#app .assess-container .assess-options-list {
padding: 0.18666666666666668rem 0.4rem;
background-color: #fff;
padding-bottom: 1.3066666666666666rem;
}
#app .assess-container .assess-options-list.wrong {
padding: 0;
}
#app .assess-container .assess-options-list.wrong .assess-option-item {
padding: 0;
border-bottom: none;
}
#app .assess-container .assess-options-list .assess-chapter-wrong {
padding: 0.37333333333333335rem;
}
#app .assess-container .assess-options-list .assess-chapter-wrong .assess-chapter-wrong-item {
margin-bottom: 0.8666666666666667rem;
}
#app .assess-container .assess-options-list .assess-option-item {
padding: 0.4rem 0;
border-bottom: 1px solid #f2f2f2;
}
#app .assess-container .assess-options-list .assess-option-item:last-child {
border-bottom: none;
}
#app .assess-container .assess-options-list .assess-option-item .assess-chapter-title {
border-bottom: 1px solid #F2F2F2;
}
#app .assess-container .assess-options-list .assess-option-item .assess-chapter-title h4 {
padding: 0.22666666666666668rem 0.37333333333333335rem;
font-size: 0.3466666666666667rem;
line-height: 0.49333333333333335rem;
color: #333;
}
#app .assess-container .assess-options-list .assess-option-item .assess-title .assess-title-header {
color: #333;
font-size: 0.37333333333333335rem;
line-height: 0.6133333333333333rem;
}
#app .assess-container .assess-options-list .assess-option-item .assess-title .assess-title-header span {
vertical-align: top;
line-height: 0.6133333333333333rem;
font-size: 0.37333333333333335rem;
}
#app .assess-container .assess-options-list .assess-option-item .assess-title .assess-title-header .question img {
max-width: 80vw !important;
max-height: 10vh !important;
width: auto !important;
height: 100% !important;
}
#app .assess-container .assess-options-list .assess-option-item .assess-title .assess-title-header .question p,
#app .assess-container .assess-options-list .assess-option-item .assess-title .assess-title-header .question div,
#app .assess-container .assess-options-list .assess-option-item .assess-title .assess-title-header .question h1,
#app .assess-container .assess-options-list .assess-option-item .assess-title .assess-title-header .question h2,
#app .assess-container .assess-options-list .assess-option-item .assess-title .assess-title-header .question h3,
#app .assess-container .assess-options-list .assess-option-item .assess-title .assess-title-header .question h4,
#app .assess-container .assess-options-list .assess-option-item .assess-title .assess-title-header .question h5,
#app .assess-container .assess-options-list .assess-option-item .assess-title .assess-title-header .question h6 {
display: inline-block;
}
#app .assess-container .assess-options-list .assess-option-item .assess-title .assess-title-header .question-fill-container {
font-size: 0;
}
#app .assess-container .assess-options-list .assess-option-item .assess-title .assess-title-header .question-fill-container .question-fill .fill-text-input {
display: none;
font-size: 0;
}
#app .assess-container .assess-options-list .assess-option-item .assess-title .assess-title-header .question-fill-container .question-fill .fill-text {
padding: 0 5px;
display: inline-block;
min-width: 30px;
outline: none;
color: #333;
width: auto;
user-select: auto;
-webkit-user-select: auto;
line-height: 0.5333333333333333rem;
border-bottom: 1px solid #404040;
}
#app .assess-container .assess-options-list .assess-option-item .assess-chooice {
padding-top: 0.3333333333333333rem;
}
#app .assess-container .assess-options-list .assess-option-item .assess-chooice .assess-chooice-item {
font-size: 0.37333333333333335rem;
line-height: 0.5333333333333333rem;
margin: 0.2rem 0;
color: #666;
}
#app .assess-container .assess-options-list .assess-option-item .assess-chooice .assess-chooice-item label {
display: flex;
align-items: flex-start;
}
#app .assess-container .assess-options-list .assess-option-item .assess-chooice .assess-chooice-item label .ico_icon {
flex: 0 0 0.5333333333333333rem;
width: 0.5333333333333333rem;
}
#app .assess-container .assess-options-list .assess-option-item .assess-chooice .assess-chooice-item label .option-correct {
flex: 1;
overflow-x: hidden;
display: flex;
vertical-align: top;
}
#app .assess-container .assess-options-list .assess-option-item .assess-chooice .assess-chooice-item label .option-correct .correct-a {
flex: 0 0 0.5333333333333333rem;
width: 0.5333333333333333rem;
}
#app .assess-container .assess-options-list .assess-option-item .assess-chooice .assess-chooice-item label .option-correct .correct-b {
flex: 1;
}
#app .assess-container .assess-options-list .assess-option-item .assess-chooice .assess-chooice-item label .option-correct .correct-b p,
#app .assess-container .assess-options-list .assess-option-item .assess-chooice .assess-chooice-item label .option-correct .correct-b div,
#app .assess-container .assess-options-list .assess-option-item .assess-chooice .assess-chooice-item label .option-correct .correct-b h1,
#app .assess-container .assess-options-list .assess-option-item .assess-chooice .assess-chooice-item label .option-correct .correct-b h2,
#app .assess-container .assess-options-list .assess-option-item .assess-chooice .assess-chooice-item label .option-correct .correct-b h3,
#app .assess-container .assess-options-list .assess-option-item .assess-chooice .assess-chooice-item label .option-correct .correct-b h4,
#app .assess-container .assess-options-list .assess-option-item .assess-chooice .assess-chooice-item label .option-correct .correct-b h5,
#app .assess-container .assess-options-list .assess-option-item .assess-chooice .assess-chooice-item label .option-correct .correct-b h6 {
display: inline;
}
#app .assess-container .assess-options-list .assess-option-item .assess-chooice .assess-chooice-item label .option-correct .correct-b img {
max-width: 100%;
max-height: 10vh;
}
#app .assess-container .assess-options-list .assess-option-item .assess-chooice .assess-chooice-item .ico_icon {
flex: 0 0 0.5333333333333333rem;
width: 0.5333333333333333rem;
height: 0.4rem;
display: block;
padding-top: 0.05333333333333333rem;
}
#app .assess-container .assess-options-list .assess-option-item .assess-chooice .assess-chooice-item .ico_icon .ico {
display: block;
width: 0.4rem;
height: 0.4rem;
margin-right: 0.21333333333333332rem;
background-size: 0.4rem 0.4rem;
background-repeat: no-repeat;
}
#app .assess-container .assess-options-list .assess-option-item .assess-chooice .assess-chooice-item .ico_icon .ico.radio {
background-image: url("../images/icon_radio_normal@1x.png");
}
@media only screen and (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
#app .assess-container .assess-options-list .assess-option-item .assess-chooice .assess-chooice-item .ico_icon .ico.radio {
background-image: url("../images/icon_radio_normal@2x.png");
}
}
@media only screen and (-webkit-min-device-pixel-ratio: 3), (min-resolution: 288dpi) {
#app .assess-container .assess-options-list .assess-option-item .assess-chooice .assess-chooice-item .ico_icon .ico.radio {
background-image: url("../images/icon_radio_normal@3x.png");
}
}
#app .assess-container .assess-options-list .assess-option-item .assess-chooice .assess-chooice-item .ico_icon .ico.radio.active {
background-image: url("../images/icon_radio_active@1x.png");
}
@media only screen and (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
#app .assess-container .assess-options-list .assess-option-item .assess-chooice .assess-chooice-item .ico_icon .ico.radio.active {
background-image: url("../images/icon_radio_active@2x.png");
}
}
@media only screen and (-webkit-min-device-pixel-ratio: 3), (min-resolution: 288dpi) {
#app .assess-container .assess-options-list .assess-option-item .assess-chooice .assess-chooice-item .ico_icon .ico.radio.active {
background-image: url("../images/icon_radio_active@3x.png");
}
}
#app .assess-container .assess-options-list .assess-option-item .assess-chooice .assess-chooice-item .ico_icon .ico.checkbox {
background-image: url("../images/icon_checkbox_normal@1x.png");
}
@media only screen and (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
#app .assess-container .assess-options-list .assess-option-item .assess-chooice .assess-chooice-item .ico_icon .ico.checkbox {
background-image: url("../images/icon_checkbox_normal@2x.png");
}
}
@media only screen and (-webkit-min-device-pixel-ratio: 3), (min-resolution: 288dpi) {
#app .assess-container .assess-options-list .assess-option-item .assess-chooice .assess-chooice-item .ico_icon .ico.checkbox {
background-image: url("../images/icon_checkbox_normal@3x.png");
}
}
#app .assess-container .assess-options-list .assess-option-item .assess-chooice .assess-chooice-item .ico_icon .ico.checkbox.active {
background-image: url("../images/icon_checkbox_active@1x.png");
}
@media only screen and (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
#app .assess-container .assess-options-list .assess-option-item .assess-chooice .assess-chooice-item .ico_icon .ico.checkbox.active {
background-image: url("../images/icon_checkbox_active@2x.png");
}
}
@media only screen and (-webkit-min-device-pixel-ratio: 3), (min-resolution: 288dpi) {
#app .assess-container .assess-options-list .assess-option-item .assess-chooice .assess-chooice-item .ico_icon .ico.checkbox.active {
background-image: url("../images/icon_checkbox_active@3x.png");
}
}
#app .assess-container .assess-options-list .assess-option-item .assess-textarea .assess-textarea-item {
margin-top: 0.29333333333333333rem;
padding: 0.21333333333333332rem 0.29333333333333333rem;
background-color: #f8f8f8;
}
#app .assess-container .assess-options-list .assess-option-item .assess-textarea .assess-textarea-item textarea {
color: #666;
font-size: 0.32rem;
line-height: 0.42666666666666664rem;
min-height: 1.8666666666666667rem;
border: none;
resize: none;
background: #f8f8f8;
width: 100%;
}
#app .assess-container .assess-options-list .error-message {
margin-top: 0.26666666666666666rem;
height: 0.6933333333333334rem;
line-height: 0.6933333333333334rem;
font-size: 0.32rem;
color: #333;
background-color: #ffecec;
padding: 0 0.26666666666666666rem;
display: flex;
align-items: center;
}
#app .assess-container .assess-options-list .error-message .error {
width: 0.32rem;
height: 0.32rem;
display: block;
background-size: 0.32rem 0.32rem;
background-image: url("../images/icon_form-error@1x.png");
margin-right: 5px;
}
@media only screen and (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
#app .assess-container .assess-options-list .error-message .error {
background-image: url("../images/icon_form-error@2x.png");
}
}
@media only screen and (-webkit-min-device-pixel-ratio: 3), (min-resolution: 288dpi) {
#app .assess-container .assess-options-list .error-message .error {
background-image: url("../images/icon_form-error@3x.png");
}
}
#app .assess-container .assess-options-list .assess-result {
padding: 0.26666666666666666rem;
margin-top: 0.13333333333333333rem;
}
#app .assess-container .assess-options-list .assess-result.red {
background-color: #f8f8f8;
}
#app .assess-container .assess-options-list .assess-result.red .correct strong {
color: #AB1941;
}
#app .assess-container .assess-options-list .assess-result .correct {
font-size: 0.3466666666666667rem;
line-height: 0.45333333333333337rem;
color: #333;
}
#app .assess-container .assess-options-list .assess-result .correct span p,
#app .assess-container .assess-options-list .assess-result .correct span div,
#app .assess-container .assess-options-list .assess-result .correct span h1,
#app .assess-container .assess-options-list .assess-result .correct span h2,
#app .assess-container .assess-options-list .assess-result .correct span h3,
#app .assess-container .assess-options-list .assess-result .correct span h4,
#app .assess-container .assess-options-list .assess-result .correct span h5,
#app .assess-container .assess-options-list .assess-result .correct span h6 {
display: inline;
}
#app .assess-container .assess-options-list .assess-result .correct span br {
display: none;
}
#app .assess-container .assess-options-list .assess-result .analysis {
font-size: 0.3466666666666667rem;
line-height: 0.45333333333333337rem;
color: #333;
margin-top: 0.08rem;
}
#app .assess-container .assess-fixed-bottom {
background: #FFFFFF;
box-shadow: 4px 0px 5px 0px rgba(224, 224, 224, 0.5);
position: fixed;
bottom: 0;
left: 0;
width: 100vw;
height: 1.3066666666666666rem;
box-sizing: border-box;
padding: 0.18666666666666668rem 0.4rem;
display: flex;
justify-content: space-between;
}
#app .assess-container .assess-fixed-bottom .item {
flex: 1;
}
#app .assess-container .assess-fixed-bottom .item a {
display: block;
width: 100%;
height: 0.9333333333333333rem;
line-height: 0.9333333333333333rem;
box-sizing: border-box;
text-align: center;
border-radius: 0.4666666666666667rem;
font-size: 0.3466666666666667rem;
}
#app .assess-container .assess-fixed-bottom .item.cancel {
padding-right: 0.13333333333333333rem;
}
#app .assess-container .assess-fixed-bottom .item.cancel a {
color: #999;
border: 1px solid #999;
}
#app .assess-container .assess-fixed-bottom .item.confirm {
padding-left: 0.13333333333333333rem;
}
#app .assess-container .assess-fixed-bottom .item.confirm a {
background-color: rgba(171, 25, 65, 0.1);
color: #AB1941;
}
html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
div,
table,
tr,
td,
tbody,
tfoot,
th,
dl,
dt,
dd,
ol,
ul,
li,
a,
sub,
sup,
strong,
b,
em,
i,
code,
pre,
img,
section,
article,
input,
textarea,
span,
blockquote {
margin: 0;
padding: 0;
margin-block: 0;
outline: none;
}
* {
-webkit-touch-callout: none;
}
input,
textarea,
span {
outline: none;
resize: none;
}
a,
a:hover {
text-decoration: none;
border: none;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-webkit-tap-highlight-color: transparent;
outline: none;
}
input[type=radio],
input[type=checkbox] {
display: none;
}
sub,
pre,
code {
user-select: none;
-webkit-user-select: none;
}
line {
border-bottom: 2px solid #AB1941;
font-weight: normal;
cursor: pointer;
}
light {
font-weight: normal;
cursor: pointer;
}
light.c-feff00 {
background-color: #feff00;
}
light.c-feff00::selection {
background-color: #feff00;
}
light.c-00ff00 {
background-color: #00ff00;
}
light.c-00ff00::selection {
background-color: #00ff00;
}
light.c-00ffff {
background-color: #00ffff;
}
light.c-00ffff::selection {
background-color: #00ffff;
}
light.c-ff00ff {
background-color: #ff00ff;
}
light.c-ff00ff::selection {
background-color: #ff00ff;
}
light.c-d2b3fa {
background-color: #d2b3fa;
}
light.c-d2b3fa::selection {
background-color: #d2b3fa;
}
light.c-ff4500 {
background-color: #ff4500;
}
light.c-ff4500::selection {
background-color: #ff4500;
}
@font-face {
font-family: "思源黑体";
src: url("../fonts/siyuan-hei-Bold.ttf") format('truetype');
}
@font-face {
font-family: "思源宋体";
src: url("../fonts/siyuan-song.ttf") format('truetype');
}
@font-face {
font-family: "楷体";
src: url("../fonts/sim-kai.ttf") format('truetype');
}
@font-face {
font-family: "仿宋";
src: url("../fonts/sim-fang.ttf") format('truetype');
}
@font-face {
font-family: "宋体";
src: url("../fonts/sim-sun.ttf") format('truetype');
}
@font-face {
font-family: "黑体";
src: url("../fonts/sim-hei.ttf") format('truetype');
}
.chapter-container {
border: none;
width: 100vw;
overflow-x: hidden;
}
.chapter-container .load-chapter {
position: fixed;
width: 100vw;
height: 1.3333333333333333rem;
z-index: -1;
background-color: #f2f2f2;
opacity: 0;
}
.chapter-container .load-chapter.next-chapter {
bottom: 0;
left: 0;
}
.chapter-container .load-chapter.prev-chapter {
top: 0;
left: 0;
}
.chapter-container .load-chapter.side {
left: 100vw;
top: 0;
}
.chapter-container .load-chapter .chapter-c-title {
font-size: 0.37333333333333335rem;
padding: 0.13333333333333333rem 0.4rem;
box-sizing: border-box;
line-height: 1.0666666666666667rem;
}
.chapter-container .load-chapter .chapter-c-title strong {
font-weight: 600;
}
.chapter-container .chapter-content-list {
max-height: 100vh;
min-height: 100vh;
overflow: hidden;
}
.chapter-container .chapter-content-list .show {
-webkit-transform: translateY(0);
transform: translateY(0);
position: relative;
transition-timing-function: cubic-bezier(0.1, 0.57, 0.1, 1);
transition-duration: 0ms;
min-height: 100vh;
}
.chapter-container .chapter-content-list .chapter-item {
width: 100vw;
box-sizing: border-box;
overflow-x: hidden;
padding-bottom: 5vh;
}
.chapter-container .chapter-content-list .chapter-item .chapter-expand-inline {
vertical-align: text-top !important;
}
.chapter-container .chapter-content-list .chapter-item pre {
white-space: pre-wrap;
word-break: break-all;
word-wrap: break-word;
line-height: 0.5333333333333333rem;
font-size: 0.37333333333333335rem;
padding: 0.26666666666666666rem;
color: #333;
background-color: #f5f2f0;
}
.chapter-container .chapter-content-list .chapter-item blockquote {
padding: 0.13333333333333333rem;
line-height: 0.5333333333333333rem;
font-size: 0.37333333333333335rem;
background-color: #f5f2f0;
border-left: 5px solid #b4d5ff;
margin: 0.26666666666666666rem 0;
}
.chapter-container .chapter-content-list .chapter-item img {
max-width: 100%;
}
.chapter-container .chapter-content-list .chapter-item table {
border-collapse: collapse;
}
.chapter-container .chapter-content-list .chapter-item table th {
font-weight: 700;
background-color: #f5f2f0;
font-size: 18px;
}
.chapter-container .chapter-content-list .chapter-item table th,
.chapter-container .chapter-content-list .chapter-item table td {
border: 1px solid #ddd;
padding: 5px;
}
.chapter-container .chapter-content-list .chapter-item .chapter-gallery-container {
cursor: pointer;
}
.chapter-container .chapter-content-list .chapter-item .chapter-gallery-container .chapter-gallery-item {
width: 50%;
padding: 10px;
box-sizing: border-box;
text-align: center;
}
.chapter-container .chapter-content-list .chapter-item .chapter-gallery-container .chapter-gallery-item.one {
width: 100%;
}
.chapter-container .chapter-content-list .chapter-item .chapter-gallery-container .chapter-gallery-item p {
white-space: pre-wrap;
word-wrap: break-word;
word-break: break-all;
}
.chapter-container .chapter-content-list .chapter-item .chapter-gallery-container .chapter-gallery-item img {
height: auto;
width: 100%;
}
.chapter-container .chapter-content-list .chapter-item .chapter-gallery-container .chapter-gallery-item.one img {
max-width: 100%;
height: auto;
width: 100%;
}
.chapter-container .chapter-content-list .chapter-item .chapter-gallery-container.chapter-gallery-inline {
display: inline-block;
vertical-align: middle;
cursor: pointer;
}
.chapter-container .chapter-content-list .chapter-item a:link,
.chapter-container .chapter-content-list .chapter-item a:visited,
.chapter-container .chapter-content-list .chapter-item a:hover {
color: #2a9feb;
}
.chapter-container .chapter-content-list .chapter-item h1 {
line-height: 40px;
font-size: 26px;
}
.chapter-container .chapter-content-list .chapter-item h2 {
line-height: 34px;
font-size: 24px;
}
.chapter-container .chapter-content-list .chapter-item h3 {
line-height: 30px;
font-size: 22px;
}
.chapter-container .chapter-content-list .chapter-item h4 {
line-height: 26px;
font-size: 20px;
}
.chapter-container .chapter-content-list .chapter-item h5 {
line-height: 24px;
font-size: 18px;
}
.chapter-container .chapter-content-list .chapter-item h6 {
line-height: 20px;
font-size: 16px;
}
.chapter-container .chapter-content-list .chapter-item video,
.chapter-container .chapter-content-list .chapter-item audio {
width: 100%;
}
.chapter-container .chapter-content-list .chapter-item div[data-w-e-type="video"] {
padding: 0 10px;
}
.chapter-container .chapter-content-list .chapter-item p {
font-size: 16px;
line-height: 1.5;
font-family: "宋体";
margin: 15px 10px;
}
.chapter-container .chapter-content-list .chapter-item p > img {
vertical-align: middle;
margin-top: -3px;
}
.chapter-container .chapter-content-list .chapter-item .chapter-practice,
.chapter-container .chapter-content-list .chapter-item .chapter-expand {
-webkit-user-select: none;
user-select: none;
cursor: pointer;
margin: 0 10px;
}
.chapter-container .chapter-content-list .chapter-item .chapter-practice .chapter-practice-title {
user-select: none;
-webkit-user-select: none;
}
.chapter-container .chapter-content-list .chapter-item .chapter-practice .chapter-practice-close {
display: none;
-webkit-user-select: none;
user-select: none;
}
.chapter-container .chapter-content-list .chapter-item .chapter-practice::after {
content: "";
background-size: cover;
background-image: url("/assets/images/icon_expand_editor.png");
width: 18px;
height: 18px;
display: inline-block;
margin: 0 5px;
vertical-align: text-bottom;
}
.chapter-container .chapter-content-list .chapter-item .chapter-practice .chapter-item-tooltip {
cursor: pointer;
}
.chapter-container .chapter-content-list .chapter-item .chapter-practice img {
width: 100%;
height: auto;
}
.chapter-container .chapter-content-list p {
font-size: 0.3466666666666667rem;
line-height: 0.6933333333333334rem;
}
.chapter-container .range-controll .controll-container {
position: fixed;
z-index: 900;
left: 60px;
top: 60px;
border-radius: 0.13333333333333333rem;
width: 72vw;
height: 1.36rem;
background: #2b2b2b;
box-shadow: 0px 6px 10px 0px rgba(93, 93, 93, 0.67);
box-sizing: border-box;
}
.chapter-container .range-controll .controll-container .controll-position {
display: flex;
overflow: hidden;
height: 1.36rem;
width: 72vw;
box-sizing: border-box;
}
.chapter-container .range-controll .controll-container .controll-position .com {
width: 7vw;
flex: 0 0 7vw;
height: 1.36rem;
line-height: 1.36rem;
font-size: 18px;
color: #fff;
text-align: center;
cursor: pointer;
}
.chapter-container .range-controll .controll-container .controll-position .controll-list-container {
flex: 1;
width: 65vw;
overflow: hidden;
}
.chapter-container .range-controll .controll-container .controll-list {
display: flex;
align-items: center;
flex-flow: row nowrap;
height: 1.36rem;
}
.chapter-container .range-controll .controll-container .controll-list .controll-item {
cursor: pointer;
flex: 0 0 1.3333333333333333rem;
width: 1.3333333333333333rem;
}
.chapter-container .range-controll .controll-container .controll-list .controll-item.colorLine {
width: 1.4933333333333334rem;
height: 1.4933333333333334rem;
position: relative;
}
.chapter-container .range-controll .controll-container .controll-list .controll-item.colorLine span {
position: absolute;
display: block;
left: 0.2rem;
top: 0.4rem;
width: 0.5333333333333333rem;
height: 0.5333333333333333rem;
border-radius: 50%;
}
.chapter-container .range-controll .controll-container .controll-list .controll-item.colorLine span.c-feff00 {
background-color: #feff00;
z-index: 100;
}
.chapter-container .range-controll .controll-container .controll-list .controll-item.colorLine span.c-00ff00 {
background-color: #0f0;
z-index: 101;
left: 0.26666666666666666rem;
}
.chapter-container .range-controll .controll-container .controll-list .controll-item.colorLine span.c-00ffff {
background-color: #0ff;
z-index: 102;
left: 0.4rem;
}
.chapter-container .range-controll .controll-container .controll-list .controll-item.colorLine span.c-ff00ff {
background-color: #f0f;
z-index: 103;
left: 0.5333333333333333rem;
}
.chapter-container .range-controll .controll-container .controll-list .controll-item.colorLine span.c-d2b3fa {
background-color: #d2b3fa;
z-index: 104;
left: 0.6666666666666666rem;
}
.chapter-container .range-controll .controll-container .controll-list .controll-item.colorLine span.c-ff4500 {
background-color: #ff4500;
z-index: 105;
left: 0.8rem;
}
.chapter-container .range-controll .controll-container .controll-list .controll-item .opa {
display: flex;
justify-content: center;
}
.chapter-container .range-controll .controll-container .controll-list .controll-item .opa.discuss .ico {
background-image: url("../images/rang_list_discuss@1x.png");
}
@media only screen and (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
.chapter-container .range-controll .controll-container .controll-list .controll-item .opa.discuss .ico {
background-image: url("../images/rang_list_discuss@2x.png");
}
}
@media only screen and (-webkit-min-device-pixel-ratio: 3), (min-resolution: 288dpi) {
.chapter-container .range-controll .controll-container .controll-list .controll-item .opa.discuss .ico {
background-image: url("../images/rang_list_discuss@3x.png");
}
}
.chapter-container .range-controll .controll-container .controll-list .controll-item .opa.note .ico {
background-image: url("../images/rang_list_note@1x.png");
}
@media only screen and (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
.chapter-container .range-controll .controll-container .controll-list .controll-item .opa.note .ico {
background-image: url("../images/rang_list_note@2x.png");
}
}
@media only screen and (-webkit-min-device-pixel-ratio: 3), (min-resolution: 288dpi) {
.chapter-container .range-controll .controll-container .controll-list .controll-item .opa.note .ico {
background-image: url("../images/rang_list_note@3x.png");
}
}
.chapter-container .range-controll .controll-container .controll-list .controll-item .opa.line .ico {
background-image: url("../images/rang_list_line@1x.png");
}
@media only screen and (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
.chapter-container .range-controll .controll-container .controll-list .controll-item .opa.line .ico {
background-image: url("../images/rang_list_line@2x.png");
}
}
@media only screen and (-webkit-min-device-pixel-ratio: 3), (min-resolution: 288dpi) {
.chapter-container .range-controll .controll-container .controll-list .controll-item .opa.line .ico {
background-image: url("../images/rang_list_line@3x.png");
}
}
.chapter-container .range-controll .controll-container .controll-list .controll-item .opa.light .ico {
background-image: url("../images/rang_list_highlight@1x.png");
}
@media only screen and (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
.chapter-container .range-controll .controll-container .controll-list .controll-item .opa.light .ico {
background-image: url("../images/rang_list_highlight@2x.png");
}
}
@media only screen and (-webkit-min-device-pixel-ratio: 3), (min-resolution: 288dpi) {
.chapter-container .range-controll .controll-container .controll-list .controll-item .opa.light .ico {
background-image: url("../images/rang_list_highlight@3x.png");
}
}
.chapter-container .range-controll .controll-container .controll-list .controll-item .opa.baike .ico {
background-image: url("../images/rang_list_baike@1x.png");
}
@media only screen and (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
.chapter-container .range-controll .controll-container .controll-list .controll-item .opa.baike .ico {
background-image: url("../images/rang_list_baike@2x.png");
}
}
@media only screen and (-webkit-min-device-pixel-ratio: 3), (min-resolution: 288dpi) {
.chapter-container .range-controll .controll-container .controll-list .controll-item .opa.baike .ico {
background-image: url("../images/rang_list_baike@3x.png");
}
}
.chapter-container .range-controll .controll-container .controll-list .controll-item .opa.dict .ico {
background-image: url("../images/rang_list_dict@1x.png");
}
@media only screen and (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
.chapter-container .range-controll .controll-container .controll-list .controll-item .opa.dict .ico {
background-image: url("../images/rang_list_dict@2x.png");
}
}
@media only screen and (-webkit-min-device-pixel-ratio: 3), (min-resolution: 288dpi) {
.chapter-container .range-controll .controll-container .controll-list .controll-item .opa.dict .ico {
background-image: url("../images/rang_list_dict@3x.png");
}
}
.chapter-container .range-controll .controll-container .controll-list .controll-item .opa.read .ico {
background-image: url("../images/rang_list_read@1x.png");
}
@media only screen and (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
.chapter-container .range-controll .controll-container .controll-list .controll-item .opa.read .ico {
background-image: url("../images/rang_list_read@2x.png");
}
}
@media only screen and (-webkit-min-device-pixel-ratio: 3), (min-resolution: 288dpi) {
.chapter-container .range-controll .controll-container .controll-list .controll-item .opa.read .ico {
background-image: url("../images/rang_list_read@3x.png");
}
}
.chapter-container .range-controll .controll-container .controll-list .controll-item .opa .ico {
display: block;
width: 0.49333333333333335rem;
height: 0.4666666666666667rem;
background-size: 0.49333333333333335rem 0.4666666666666667rem;
}
.chapter-container .range-controll .controll-container .controll-list .controll-item p {
color: rgba(255, 255, 255, 0.8);
font-size: 0.26666666666666666rem;
line-height: 0.42666666666666664rem;
height: 0.42666666666666664rem;
text-align: center;
text-indent: 0;
}
.chapter-container .range-controll .controll-container .controll-list .controll-item p.cancel {
font-size: 0.26666666666666666rem;
}
.chapter-container .range-controll .controll-light-container {
position: absolute;
z-index: 901;
left: 60px;
top: 260px;
border-radius: 0.13333333333333333rem;
width: 5.6000000000000005rem;
height: 0.9333333333333333rem;
background: #2b2b2b;
box-shadow: 0px 6px 10px 0px rgba(93, 93, 93, 0.67);
box-sizing: border-box;
padding: 0.2rem;
}
.chapter-container .range-controll .controll-light-container .controll-color-list {
display: flex;
justify-content: space-around;
flex-flow: row nowrap;
}
.chapter-container .range-controll .controll-light-container .controll-color-list .controll-color-item {
flex: 0 0 0.5333333333333333rem;
width: 0.5333333333333333rem;
height: 0.5333333333333333rem;
border-radius: 50%;
box-sizing: border-box;
cursor: pointer;
}
.chapter-container .range-controll .controll-light-container .controll-color-list .controll-color-item.c-feff00 {
background-color: #feff00;
border: 2px solid #feff00;
}
.chapter-container .range-controll .controll-light-container .controll-color-list .controll-color-item.c-00ff00 {
background-color: #0f0;
border: 2px solid #0f0;
}
.chapter-container .range-controll .controll-light-container .controll-color-list .controll-color-item.c-00ffff {
background-color: #0ff;
border: 2px solid #0ff;
}
.chapter-container .range-controll .controll-light-container .controll-color-list .controll-color-item.c-ff00ff {
background-color: #f0f;
border: 2px solid #f0f;
}
.chapter-container .range-controll .controll-light-container .controll-color-list .controll-color-item.c-d2b3fa {
background-color: #d2b3fa;
border: 2px solid #d2b3fa;
}
.chapter-container .range-controll .controll-light-container .controll-color-list .controll-color-item.c-ff4500 {
background-color: #ff4500;
border: 2px solid #ff4500;
}
.chapter-container .range-controll .controll-light-container .controll-color-list .controll-color-item.active {
box-shadow: 0px 0px 10px 2px rgba(255, 255, 255, 0.7);
border: 2px solid #fff;
}
.chapter-container .controll-triangle {
width: 0;
height: 0;
border-left: 0.26666666666666666rem solid transparent;
border-right: 0.26666666666666666rem solid transparent;
border-bottom: 0.26666666666666666rem solid #2b2b2b;
/* 高度为border-left和border-right的一半,形成等边三角形 */
transform: rotate(180deg);
/* 旋转使其方向朝下 */
position: absolute;
bottom: -0.21333333333333332rem;
margin-left: -0.13333333333333333rem;
left: 50%;
}
.chapter-container .tange-tooptip {
position: absolute;
max-width: 70%;
min-width: 30%;
top: 10%;
left: 00%;
background-color: #fff;
border: 2px solid #ab1941;
border-radius: 5px;
transition: 0.2s opacity linear;
z-index: -1;
box-shadow: 0 0 10px 1px rgba(122, 122, 122, 0.5);
}
.chapter-container .tange-tooptip .square {
width: 0px;
height: 0px;
position: absolute;
left: 0;
}
.chapter-container .tange-tooptip .square::before {
width: 0px;
height: 0px;
position: absolute;
border: 10px solid transparent;
content: '';
padding: 0;
}
.chapter-container .tange-tooptip .square::after {
width: 0px;
height: 0px;
position: absolute;
content: '';
border: 9px solid transparent;
}
.chapter-container .tange-tooptip .square.square_top {
top: 0px;
}
.chapter-container .tange-tooptip .square.square_top::before {
top: -18px;
left: 1px;
border-color: transparent transparent #fff transparent;
z-index: 12;
}
.chapter-container .tange-tooptip .square.square_top::after {
top: -20px;
left: 2px;
border-color: transparent transparent #ab1941 transparent;
z-index: 10;
}
.chapter-container .tange-tooptip .square.square_bottom {
bottom: 0px;
}
.chapter-container .tange-tooptip .square.square_bottom::before {
top: -3px;
left: -19px;
border-color: #fff transparent transparent transparent;
z-index: 12;
}
.chapter-container .tange-tooptip .square.square_bottom::after {
top: 0px;
left: -18px;
border-color: #ab1941 transparent transparent transparent;
z-index: 10;
}
.chapter-container .tange-tooptip .tooltip-content-container {
padding: 5px;
}
.chapter-container .tange-tooptip .tooltip-content .content {
line-height: 22px;
min-height: 22px;
overflow-x: hidden;
overflow-y: auto;
max-height: 100px;
}
.chapter-container .tange-tooptip .tooltip-content .content p {
white-space: pre-wrap;
word-wrap: break-word;
word-break: break-all;
font-size: 16px;
}
.chapter-container .tange-tooptip .tooltip-content .content-opa {
border-top: 1px solid #ebebeb;
padding-top: 5px;
display: flex;
justify-content: flex-end;
align-items: center;
}
.chapter-container .tange-tooptip .tooltip-content .content-opa .c-link {
max-width: 60px;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
height: 18px;
line-height: 18px;
}
.chapter-container .tange-tooptip .tooltip-content .content-opa a:link,
.chapter-container .tange-tooptip .tooltip-content .content-opa a:visited,
.chapter-container .tange-tooptip .tooltip-content .content-opa a:hover {
font-size: 14px;
display: inline-block;
margin-left: 10px;
color: #aa1941;
}
.chapter-container .tange-tooptip .tooltip-content .content-opa a img {
width: 18px;
height: 18px;
}
.chapter-container .big-img-scale {
position: fixed;
background-color: #000;
z-index: 20000;
left: 0;
top: 0;
width: 100vw;
height: 100vh;
}
.chapter-container .big-img-scale .ico {
position: absolute;
background-color: rgba(0, 0, 0, 0.5);
z-index: 20050;
right: 0px;
top: 0px;
color: #fff;
height: 40px;
width: 100vw;
line-height: 40px;
text-align: right;
box-sizing: border-box;
padding-right: 10px;
}
.chapter-container .big-img-scale .img {
display: flex;
width: 100Vw;
margin-top: 40px;
height: calc(100Vh - 40px);
align-items: center;
}
.chapter-container .big-img-scale .img img {
width: 100%;
height: auto;
transition: 0.4s all linear;
}
.gallery-container .gallery-container-box .gallery-img {
position: relative;
}
.gallery-container .gallery-container-box .gallery-img img {
height: 100%;
width: auto;
max-width: 100%;
max-height: 80vh;
}
.gallery-container .gallery-container-box .opa {
width: 0.6933333333333334rem;
height: 0.6933333333333334rem;
position: absolute;
top: 50%;
margin-top: -0.6933333333333334rem;
background-size: cover;
box-shadow: 0 0 20px 2px rgba(171, 25, 65, 0.2);
border-radius: 50%;
}
.gallery-container .gallery-container-box .opa.prev {
left: 10px;
background-image: url("../images/icon_gallery_prev@1x.png");
}
@media only screen and (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
.gallery-container .gallery-container-box .opa.prev {
background-image: url("../images/icon_gallery_prev@2x.png");
}
}
@media only screen and (-webkit-min-device-pixel-ratio: 3), (min-resolution: 288dpi) {
.gallery-container .gallery-container-box .opa.prev {
background-image: url("../images/icon_gallery_prev@3x.png");
}
}
.gallery-container .gallery-container-box .opa.next {
right: 10px;
background-image: url("../images/icon_gallery_next@1x.png");
}
@media only screen and (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
.gallery-container .gallery-container-box .opa.next {
background-image: url("../images/icon_gallery_next@2x.png");
}
}
@media only screen and (-webkit-min-device-pixel-ratio: 3), (min-resolution: 288dpi) {
.gallery-container .gallery-container-box .opa.next {
background-image: url("../images/icon_gallery_next@3x.png");
}
}
.gallery-container .gallery-container-box .title {
padding: 12px 10px;
font-size: 20px;
line-height: 28px;
margin-bottom: 5px;
border-bottom: 1px solid #f1f1f1;
white-space: pre-wrap;
word-wrap: break-word;
word-break: break-all;
}
.gallery-container .gallery-container-box .desc {
padding: 0 10px;
font-size: 16px;
line-height: 28px;
color: #999;
white-space: pre-wrap;
word-wrap: break-word;
word-break: break-all;
}
.show-expand {
padding: 10px;
}
.show-expand .table-container {
padding: 10px;
}
.show-expand table {
border-collapse: collapse;
}
.show-expand table th {
font-weight: 700;
background-color: #f5f2f0;
}
.show-expand table th,
.show-expand table td {
border: 1px solid #ddd;
padding: 5px;
}
.show-expand p {
line-height: 1.5;
font-size: 16px;
font-family: "宋体";
margin: 10px 0;
}
.show-expand p img {
max-width: 100% !important;
height: auto;
}
.show-expand pre {
white-space: pre-wrap;
word-break: break-all;
word-wrap: break-word;
line-height: 20px;
font-size: 14px;
padding: 10px;
color: #333;
background-color: #f5f2f0;
}
.show-expand blockquote {
padding: 10px;
line-height: 20px;
font-size: 14px;
background-color: #f5f2f0;
border-left: 5px solid #b4d5ff;
margin: 10px 0;
}
.show-expand a {
color: #aa1941;
}
.show-expand a:link,
.show-expand a:visited,
.show-expand a:hover {
color: #aa1941;
}
.show-expand a span {
color: #aa1941 !important;
}
.show-expand h1 {
line-height: 40px;
font-size: 24px;
}
.show-expand h2 {
line-height: 34px;
font-size: 20px;
}
.show-expand h3 {
line-height: 28px;
font-size: 18px;
}
.show-expand h4 {
line-height: 22px;
font-size: 16px;
}
.show-expand h5 {
line-height: 18px;
font-size: 14px;
}
.show-expand h6 {
line-height: 16px;
font-size: 12px;
}
.show-expand video,
.show-expand audio {
width: 100%;
}
.show-expand .chapter-image-pic img {
width: 100%;
height: auto;
}
.show-expand .w-e-image-container img {
width: 100%;
}
.show-expand .w-e-image-container img:not([style]) {
width: auto;
}
.scale-img {
display: flex;
width: 100vw;
height: 100vh;
align-items: center;
position: relative;
}
.scale-img img {
width: 100%;
height: auto;
}
.scale-img p {
position: absolute;
background-color: #f2f2f2;
line-height: 20px;
font-size: 14px;
padding: 10px;
color: #666;
white-space: pre-wrap;
word-wrap: break-word;
word-break: break-all;
bottom: 0;
left: 0;
width: 100vw;
}
/*
* /MathJax.js
*
* Copyright (c) 2009-2018 The MathJax Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
if(document.getElementById&&document.childNodes&&document.createElement){if(!(window.MathJax&&MathJax.Hub)){if(window.MathJax){window.MathJax={AuthorConfig:window.MathJax}}else{window.MathJax={}}MathJax.isPacked=true;MathJax.version="2.7.7";MathJax.fileversion="2.7.7";MathJax.cdnVersion="2.7.7";MathJax.cdnFileVersions={};(function(d){var b=window[d];if(!b){b=window[d]={}}var e=[];var c=function(f){var g=f.constructor;if(!g){g=function(){}}for(var h in f){if(h!=="constructor"&&f.hasOwnProperty(h)){g[h]=f[h]}}return g};var a=function(){return function(){return arguments.callee.Init.call(this,arguments)}};b.Object=c({constructor:a(),Subclass:function(f,h){var g=a();g.SUPER=this;g.Init=this.Init;g.Subclass=this.Subclass;g.Augment=this.Augment;g.protoFunction=this.protoFunction;g.can=this.can;g.has=this.has;g.isa=this.isa;g.prototype=new this(e);g.prototype.constructor=g;g.Augment(f,h);return g},Init:function(f){var g=this;if(f.length===1&&f[0]===e){return g}if(!(g instanceof f.callee)){g=new f.callee(e)}return g.Init.apply(g,f)||g},Augment:function(f,g){var h;if(f!=null){for(h in f){if(f.hasOwnProperty(h)){this.protoFunction(h,f[h])}}if(f.toString!==this.prototype.toString&&f.toString!=={}.toString){this.protoFunction("toString",f.toString)}}if(g!=null){for(h in g){if(g.hasOwnProperty(h)){this[h]=g[h]}}}return this},protoFunction:function(g,f){this.prototype[g]=f;if(typeof f==="function"){f.SUPER=this.SUPER.prototype}},prototype:{Init:function(){},SUPER:function(f){return f.callee.SUPER},can:function(f){return typeof(this[f])==="function"},has:function(f){return typeof(this[f])!=="undefined"},isa:function(f){return(f instanceof Object)&&(this instanceof f)}},can:function(f){return this.prototype.can.call(this,f)},has:function(f){return this.prototype.has.call(this,f)},isa:function(g){var f=this;while(f){if(f===g){return true}else{f=f.SUPER}}return false},SimpleSUPER:c({constructor:function(f){return this.SimpleSUPER.define(f)},define:function(f){var h={};if(f!=null){for(var g in f){if(f.hasOwnProperty(g)){h[g]=this.wrap(g,f[g])}}if(f.toString!==this.prototype.toString&&f.toString!=={}.toString){h.toString=this.wrap("toString",f.toString)}}return h},wrap:function(i,h){if(typeof(h)!=="function"||!h.toString().match(/\.\s*SUPER\s*\(/)){return h}var g=function(){this.SUPER=g.SUPER[i];try{var f=h.apply(this,arguments)}catch(j){delete this.SUPER;throw j}delete this.SUPER;return f};g.toString=function(){return h.toString.apply(h,arguments)};return g}})});b.Object.isArray=Array.isArray||function(f){return Object.prototype.toString.call(f)==="[object Array]"};b.Object.Array=Array})("MathJax");(function(BASENAME){var BASE=window[BASENAME];if(!BASE){BASE=window[BASENAME]={}}var isArray=BASE.Object.isArray;var CALLBACK=function(data){var cb=function(){return arguments.callee.execute.apply(arguments.callee,arguments)};for(var id in CALLBACK.prototype){if(CALLBACK.prototype.hasOwnProperty(id)){if(typeof(data[id])!=="undefined"){cb[id]=data[id]}else{cb[id]=CALLBACK.prototype[id]}}}cb.toString=CALLBACK.prototype.toString;return cb};CALLBACK.prototype={isCallback:true,hook:function(){},data:[],object:window,execute:function(){if(!this.called||this.autoReset){this.called=!this.autoReset;return this.hook.apply(this.object,this.data.concat([].slice.call(arguments,0)))}},reset:function(){delete this.called},toString:function(){return this.hook.toString.apply(this.hook,arguments)}};var ISCALLBACK=function(f){return(typeof(f)==="function"&&f.isCallback)};var EVAL=function(code){return eval.call(window,code)};var TESTEVAL=function(){EVAL("var __TeSt_VaR__ = 1");if(window.__TeSt_VaR__){try{delete window.__TeSt_VaR__}catch(error){window.__TeSt_VaR__=null}}else{if(window.execScript){EVAL=function(code){BASE.__code=code;code="try {"+BASENAME+".__result = eval("+BASENAME+".__code)} catch(err) {"+BASENAME+".__result = err}";window.execScript(code);var result=BASE.__result;delete BASE.__result;delete BASE.__code;if(result instanceof Error){throw result}return result}}else{EVAL=function(code){BASE.__code=code;code="try {"+BASENAME+".__result = eval("+BASENAME+".__code)} catch(err) {"+BASENAME+".__result = err}";var head=(document.getElementsByTagName("head"))[0];if(!head){head=document.body}var script=document.createElement("script");script.appendChild(document.createTextNode(code));head.appendChild(script);head.removeChild(script);var result=BASE.__result;delete BASE.__result;delete BASE.__code;if(result instanceof Error){throw result}return result}}}TESTEVAL=null};var USING=function(args,i){if(arguments.length>1){if(arguments.length===2&&!(typeof arguments[0]==="function")&&arguments[0] instanceof Object&&typeof arguments[1]==="number"){args=[].slice.call(args,i)}else{args=[].slice.call(arguments,0)}}if(isArray(args)&&args.length===1&&typeof(args[0])==="function"){args=args[0]}if(typeof args==="function"){if(args.execute===CALLBACK.prototype.execute){return args}return CALLBACK({hook:args})}else{if(isArray(args)){if(typeof(args[0])==="string"&&args[1] instanceof Object&&typeof args[1][args[0]]==="function"){return CALLBACK({hook:args[1][args[0]],object:args[1],data:args.slice(2)})}else{if(typeof args[0]==="function"){return CALLBACK({hook:args[0],data:args.slice(1)})}else{if(typeof args[1]==="function"){return CALLBACK({hook:args[1],object:args[0],data:args.slice(2)})}}}}else{if(typeof(args)==="string"){if(TESTEVAL){TESTEVAL()}return CALLBACK({hook:EVAL,data:[args]})}else{if(args instanceof Object){return CALLBACK(args)}else{if(typeof(args)==="undefined"){return CALLBACK({})}}}}}throw Error("Can't make callback from given data")};var DELAY=function(time,callback){callback=USING(callback);callback.timeout=setTimeout(callback,time);return callback};var WAITFOR=function(callback,signal){callback=USING(callback);if(!callback.called){WAITSIGNAL(callback,signal);signal.pending++}};var WAITEXECUTE=function(){var signals=this.signal;delete this.signal;this.execute=this.oldExecute;delete this.oldExecute;var result=this.execute.apply(this,arguments);if(ISCALLBACK(result)&&!result.called){WAITSIGNAL(result,signals)}else{for(var i=0,m=signals.length;i<m;i++){signals[i].pending--;if(signals[i].pending<=0){signals[i].call()}}}};var WAITSIGNAL=function(callback,signals){if(!isArray(signals)){signals=[signals]}if(!callback.signal){callback.oldExecute=callback.execute;callback.execute=WAITEXECUTE;callback.signal=signals}else{if(signals.length===1){callback.signal.push(signals[0])}else{callback.signal=callback.signal.concat(signals)}}};var AFTER=function(callback){callback=USING(callback);callback.pending=0;for(var i=1,m=arguments.length;i<m;i++){if(arguments[i]){WAITFOR(arguments[i],callback)}}if(callback.pending===0){var result=callback();if(ISCALLBACK(result)){callback=result}}return callback};var HOOKS=MathJax.Object.Subclass({Init:function(reset){this.hooks=[];this.remove=[];this.reset=reset;this.running=false},Add:function(hook,priority){if(priority==null){priority=10}if(!ISCALLBACK(hook)){hook=USING(hook)}hook.priority=priority;var i=this.hooks.length;while(i>0&&priority<this.hooks[i-1].priority){i--}this.hooks.splice(i,0,hook);return hook},Remove:function(hook){for(var i=0,m=this.hooks.length;i<m;i++){if(this.hooks[i]===hook){if(this.running){this.remove.push(i)}else{this.hooks.splice(i,1)}return}}},Execute:function(){var callbacks=[{}];this.running=true;for(var i=0,m=this.hooks.length;i<m;i++){if(this.reset){this.hooks[i].reset()}var result=this.hooks[i].apply(window,arguments);if(ISCALLBACK(result)&&!result.called){callbacks.push(result)}}this.running=false;if(this.remove.length){this.RemovePending()}if(callbacks.length===1){return null}if(callbacks.length===2){return callbacks[1]}return AFTER.apply({},callbacks)},RemovePending:function(){this.remove=this.remove.sort();for(var i=this.remove.length-1;i>=0;i--){this.hooks.splice(i,1)}this.remove=[]}});var EXECUTEHOOKS=function(hooks,data,reset){if(!hooks){return null}if(!isArray(hooks)){hooks=[hooks]}if(!isArray(data)){data=(data==null?[]:[data])}var handler=HOOKS(reset);for(var i=0,m=hooks.length;i<m;i++){handler.Add(hooks[i])}return handler.Execute.apply(handler,data)};var QUEUE=BASE.Object.Subclass({Init:function(){this.pending=this.running=0;this.queue=[];this.Push.apply(this,arguments)},Push:function(){var callback;for(var i=0,m=arguments.length;i<m;i++){callback=USING(arguments[i]);if(callback===arguments[i]&&!callback.called){callback=USING(["wait",this,callback])}this.queue.push(callback)}if(!this.running&&!this.pending){this.Process()}return callback},Process:function(queue){while(!this.running&&!this.pending&&this.queue.length){var callback=this.queue[0];queue=this.queue.slice(1);this.queue=[];this.Suspend();var result=callback();this.Resume();if(queue.length){this.queue=queue.concat(this.queue)}if(ISCALLBACK(result)&&!result.called){WAITFOR(result,this)}}},Suspend:function(){this.running++},Resume:function(){if(this.running){this.running--}},call:function(){this.Process.apply(this,arguments)},wait:function(callback){return callback}});var SIGNAL=QUEUE.Subclass({Init:function(name){QUEUE.prototype.Init.call(this);this.name=name;this.posted=[];this.listeners=HOOKS(true);this.posting=false;this.callback=null},Post:function(message,callback,forget){callback=USING(callback);if(this.posting||this.pending){this.Push(["Post",this,message,callback,forget])}else{this.callback=callback;callback.reset();if(!forget){this.posted.push(message)}this.Suspend();this.posting=true;var result=this.listeners.Execute(message);if(ISCALLBACK(result)&&!result.called){WAITFOR(result,this)}this.Resume();this.posting=false;if(!this.pending){this.call()}}return callback},Clear:function(callback){callback=USING(callback);if(this.posting||this.pending){callback=this.Push(["Clear",this,callback])}else{this.posted=[];callback()}return callback},call:function(){this.callback(this);this.Process()},Interest:function(callback,ignorePast,priority){callback=USING(callback);this.listeners.Add(callback,priority);if(!ignorePast){for(var i=0,m=this.posted.length;i<m;i++){callback.reset();var result=callback(this.posted[i]);if(ISCALLBACK(result)&&i===this.posted.length-1){WAITFOR(result,this)}}}return callback},NoInterest:function(callback){this.listeners.Remove(callback)},MessageHook:function(msg,callback,priority){callback=USING(callback);if(!this.hooks){this.hooks={};this.Interest(["ExecuteHooks",this])}if(!this.hooks[msg]){this.hooks[msg]=HOOKS(true)}this.hooks[msg].Add(callback,priority);for(var i=0,m=this.posted.length;i<m;i++){if(this.posted[i]==msg){callback.reset();callback(this.posted[i])}}callback.msg=msg;return callback},ExecuteHooks:function(msg){var type=(isArray(msg)?msg[0]:msg);if(!this.hooks[type]){return null}return this.hooks[type].Execute(msg)},RemoveHook:function(hook){this.hooks[hook.msg].Remove(hook)}},{signals:{},find:function(name){if(!SIGNAL.signals[name]){SIGNAL.signals[name]=new SIGNAL(name)}return SIGNAL.signals[name]}});BASE.Callback=BASE.CallBack=USING;BASE.Callback.Delay=DELAY;BASE.Callback.After=AFTER;BASE.Callback.Queue=QUEUE;BASE.Callback.Signal=SIGNAL.find;BASE.Callback.Hooks=HOOKS;BASE.Callback.ExecuteHooks=EXECUTEHOOKS})("MathJax");(function(e){var a=window[e];if(!a){a=window[e]={}}var d=(navigator.vendor==="Apple Computer, Inc."&&typeof navigator.vendorSub==="undefined");var g=0;var h=function(i){if(document.styleSheets&&document.styleSheets.length>g){g=document.styleSheets.length}if(!i){i=document.head||((document.getElementsByTagName("head"))[0]);if(!i){i=document.body}}return i};var f=[];var c=function(){for(var k=0,j=f.length;k<j;k++){a.Ajax.head.removeChild(f[k])}f=[]};var b={};b[e]="";b.a11y="[MathJax]/extensions/a11y";b.Contrib="https://cdn.mathjax.org/mathjax/contrib";a.Ajax={loaded:{},loading:{},loadHooks:{},timeout:15*1000,styleDelay:1,config:{root:"",path:b},params:{},STATUS:{OK:1,ERROR:-1},fileURL:function(j){var i;while((i=j.match(/^\[([-._a-z0-9]+)\]/i))&&b.hasOwnProperty(i[1])){j=(b[i[1]]||this.config.root)+j.substr(i[1].length+2)}return j},fileName:function(j){var i=this.config.root;if(j.substr(0,i.length)===i){j="["+e+"]"+j.substr(i.length)}do{var k=false;for(var l in b){if(b.hasOwnProperty(l)&&b[l]){if(j.substr(0,b[l].length)===b[l]){j="["+l+"]"+j.substr(b[l].length);k=true;break}}}}while(k);return j},fileRev:function(j){var i=a.cdnFileVersions[j]||a.cdnVersion||"";if(i){i="?V="+i}return i},urlRev:function(i){return this.fileURL(i)+this.fileRev(i)},Require:function(k,n){n=a.Callback(n);var l;if(k instanceof Object){for(var j in k){if(k.hasOwnProperty(j)){l=j.toUpperCase();k=k[j]}}}else{l=k.split(/\./).pop().toUpperCase()}if(this.params.noContrib&&k.substr(0,9)==="[Contrib]"){n(this.STATUS.ERROR)}else{k=this.fileURL(k);if(this.loaded[k]){n(this.loaded[k])}else{var m={};m[l]=k;this.Load(m,n)}}return n},Load:function(k,m){m=a.Callback(m);var l;if(k instanceof Object){for(var j in k){if(k.hasOwnProperty(j)){l=j.toUpperCase();k=k[j]}}}else{l=k.split(/\./).pop().toUpperCase()}k=this.fileURL(k);if(this.loading[k]){this.addHook(k,m)}else{this.head=h(this.head);if(this.loader[l]){this.loader[l].call(this,k,m)}else{throw Error("Can't load files of type "+l)}}return m},LoadHook:function(l,m,k){m=a.Callback(m);if(l instanceof Object){for(var j in l){if(l.hasOwnProperty(j)){l=l[j]}}}l=this.fileURL(l);if(this.loaded[l]){m(this.loaded[l])}else{this.addHook(l,m,k)}return m},addHook:function(j,k,i){if(!this.loadHooks[j]){this.loadHooks[j]=MathJax.Callback.Hooks()}this.loadHooks[j].Add(k,i);k.file=j},removeHook:function(i){if(this.loadHooks[i.file]){this.loadHooks[i.file].Remove(i);if(!this.loadHooks[i.file].hooks.length){delete this.loadHooks[i.file]}}},Preloading:function(){for(var l=0,j=arguments.length;l<j;l++){var k=this.fileURL(arguments[l]);if(!this.loading[k]){this.loading[k]={preloaded:true}}}},loader:{JS:function(k,m){var j=this.fileName(k);var i=document.createElement("script");var l=a.Callback(["loadTimeout",this,k]);this.loading[k]={callback:m,timeout:setTimeout(l,this.timeout),status:this.STATUS.OK,script:i};this.loading[k].message=a.Message.File(j);i.onerror=l;i.type="text/javascript";i.src=k+this.fileRev(j);this.head.appendChild(i)},CSS:function(j,l){var i=this.fileName(j);var k=document.createElement("link");k.rel="stylesheet";k.type="text/css";k.href=j+this.fileRev(i);this.loading[j]={callback:l,message:a.Message.File(i),status:this.STATUS.OK};this.head.appendChild(k);this.timer.create.call(this,[this.timer.file,j],k)}},timer:{create:function(j,i){j=a.Callback(j);if(i.nodeName==="STYLE"&&i.styleSheet&&typeof(i.styleSheet.cssText)!=="undefined"){j(this.STATUS.OK)}else{if(window.chrome&&i.nodeName==="LINK"){j(this.STATUS.OK)}else{if(d){this.timer.start(this,[this.timer.checkSafari2,g++,j],this.styleDelay)}else{this.timer.start(this,[this.timer.checkLength,i,j],this.styleDelay)}}}return j},start:function(j,i,k,l){i=a.Callback(i);i.execute=this.execute;i.time=this.time;i.STATUS=j.STATUS;i.timeout=l||j.timeout;i.delay=i.total=k||0;if(k){setTimeout(i,k)}else{i()}},time:function(i){this.total+=this.delay;this.delay=Math.floor(this.delay*1.05+5);if(this.total>=this.timeout){i(this.STATUS.ERROR);return 1}return 0},file:function(j,i){if(i<0){a.Ajax.loadTimeout(j)}else{a.Ajax.loadComplete(j)}},execute:function(){this.hook.call(this.object,this,this.data[0],this.data[1])},checkSafari2:function(i,j,k){if(i.time(k)){return}if(document.styleSheets.length>j&&document.styleSheets[j].cssRules&&document.styleSheets[j].cssRules.length){k(i.STATUS.OK)}else{setTimeout(i,i.delay)}},checkLength:function(i,l,n){if(i.time(n)){return}var m=0;var j=(l.sheet||l.styleSheet);try{if((j.cssRules||j.rules||[]).length>0){m=1}}catch(k){if(k.message.match(/protected variable|restricted URI/)){m=1}else{if(k.message.match(/Security error/)){m=1}}}if(m){setTimeout(a.Callback([n,i.STATUS.OK]),0)}else{setTimeout(i,i.delay)}}},loadComplete:function(i){i=this.fileURL(i);var j=this.loading[i];if(j&&!j.preloaded){a.Message.Clear(j.message);clearTimeout(j.timeout);if(j.script){if(f.length===0){setTimeout(c,0)}f.push(j.script)}this.loaded[i]=j.status;delete this.loading[i];this.addHook(i,j.callback)}else{if(j){delete this.loading[i]}this.loaded[i]=this.STATUS.OK;j={status:this.STATUS.OK}}if(!this.loadHooks[i]){return null}return this.loadHooks[i].Execute(j.status)},loadTimeout:function(i){if(this.loading[i].timeout){clearTimeout(this.loading[i].timeout)}this.loading[i].status=this.STATUS.ERROR;this.loadError(i);this.loadComplete(i)},loadError:function(i){a.Message.Set(["LoadFailed","File failed to load: %1",i],null,2000);a.Hub.signal.Post(["file load error",i])},Styles:function(k,l){var i=this.StyleString(k);if(i===""){l=a.Callback(l);l()}else{var j=document.createElement("style");j.type="text/css";this.head=h(this.head);this.head.appendChild(j);if(j.styleSheet&&typeof(j.styleSheet.cssText)!=="undefined"){j.styleSheet.cssText=i}else{j.appendChild(document.createTextNode(i))}l=this.timer.create.call(this,l,j)}return l},StyleString:function(n){if(typeof(n)==="string"){return n}var k="",o,m;for(o in n){if(n.hasOwnProperty(o)){if(typeof n[o]==="string"){k+=o+" {"+n[o]+"}\n"}else{if(a.Object.isArray(n[o])){for(var l=0;l<n[o].length;l++){m={};m[o]=n[o][l];k+=this.StyleString(m)}}else{if(o.substr(0,6)==="@media"){k+=o+" {"+this.StyleString(n[o])+"}\n"}else{if(n[o]!=null){m=[];for(var j in n[o]){if(n[o].hasOwnProperty(j)){if(n[o][j]!=null){m[m.length]=j+": "+n[o][j]}}}k+=o+" {"+m.join("; ")+"}\n"}}}}}}return k}}})("MathJax");MathJax.HTML={Element:function(d,f,e){var g=document.createElement(d),h;if(f){if(f.hasOwnProperty("style")){var c=f.style;f.style={};for(h in c){if(c.hasOwnProperty(h)){f.style[h.replace(/-([a-z])/g,this.ucMatch)]=c[h]}}}MathJax.Hub.Insert(g,f);for(h in f){if(h==="role"||h.substr(0,5)==="aria-"){g.setAttribute(h,f[h])}}}if(e){if(!MathJax.Object.isArray(e)){e=[e]}for(var b=0,a=e.length;b<a;b++){if(MathJax.Object.isArray(e[b])){g.appendChild(this.Element(e[b][0],e[b][1],e[b][2]))}else{if(d==="script"){this.setScript(g,e[b])}else{g.appendChild(document.createTextNode(e[b]))}}}}return g},ucMatch:function(a,b){return b.toUpperCase()},addElement:function(b,a,d,c){return b.appendChild(this.Element(a,d,c))},TextNode:function(a){return document.createTextNode(a)},addText:function(a,b){return a.appendChild(this.TextNode(b))},setScript:function(a,b){if(this.setScriptBug){a.text=b}else{while(a.firstChild){a.removeChild(a.firstChild)}this.addText(a,b)}},getScript:function(a){var b=(a.text===""?a.innerHTML:a.text);return b.replace(/^\s+/,"").replace(/\s+$/,"")},Cookie:{prefix:"mjx",expires:365,Set:function(a,e){var d=[];if(e){for(var g in e){if(e.hasOwnProperty(g)){d.push(g+":"+e[g].toString().replace(/&/g,"&&"))}}}var b=this.prefix+"."+a+"="+escape(d.join("&;"));if(this.expires){var f=new Date();f.setDate(f.getDate()+this.expires);b+="; expires="+f.toGMTString()}try{document.cookie=b+"; path=/"}catch(c){}},Get:function(a,d){if(!d){d={}}var g=new RegExp("(?:^|;\\s*)"+this.prefix+"\\."+a+"=([^;]*)(?:;|$)");var f;try{f=g.exec(document.cookie)}catch(c){}if(f&&f[1]!==""){var j=unescape(f[1]).split("&;");for(var e=0,b=j.length;e<b;e++){f=j[e].match(/([^:]+):(.*)/);var h=f[2].replace(/&&/g,"&");if(h==="true"){h=true}else{if(h==="false"){h=false}else{if(h.match(/^-?(\d+(\.\d+)?|\.\d+)$/)){h=parseFloat(h)}}}d[f[1]]=h}}return d}}};MathJax.Localization={locale:"en",directory:"[MathJax]/localization",strings:{ar:{menuTitle:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629"},ast:{menuTitle:"asturianu"},bg:{menuTitle:"\u0431\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438"},bcc:{menuTitle:"\u0628\u0644\u0648\u0686\u06CC"},br:{menuTitle:"brezhoneg"},ca:{menuTitle:"catal\u00E0"},cdo:{menuTitle:"M\u00ECng-d\u0115\u0324ng-ng\u1E73\u0304"},cs:{menuTitle:"\u010De\u0161tina"},da:{menuTitle:"dansk"},de:{menuTitle:"Deutsch"},diq:{menuTitle:"Zazaki"},en:{menuTitle:"English",isLoaded:true},eo:{menuTitle:"Esperanto"},es:{menuTitle:"espa\u00F1ol"},fa:{menuTitle:"\u0641\u0627\u0631\u0633\u06CC"},fi:{menuTitle:"suomi"},fr:{menuTitle:"fran\u00E7ais"},gl:{menuTitle:"galego"},he:{menuTitle:"\u05E2\u05D1\u05E8\u05D9\u05EA"},ia:{menuTitle:"interlingua"},it:{menuTitle:"italiano"},ja:{menuTitle:"\u65E5\u672C\u8A9E"},kn:{menuTitle:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1"},ko:{menuTitle:"\uD55C\uAD6D\uC5B4"},lb:{menuTitle:"L\u00EBtzebuergesch"},lki:{menuTitle:"\u0644\u06D5\u06A9\u06CC"},lt:{menuTitle:"lietuvi\u0173"},mk:{menuTitle:"\u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438"},nl:{menuTitle:"Nederlands"},oc:{menuTitle:"occitan"},pl:{menuTitle:"polski"},pt:{menuTitle:"portugu\u00EAs"},"pt-br":{menuTitle:"portugu\u00EAs do Brasil"},ru:{menuTitle:"\u0440\u0443\u0441\u0441\u043A\u0438\u0439"},sco:{menuTitle:"Scots"},scn:{menuTitle:"sicilianu"},sk:{menuTitle:"sloven\u010Dina"},sl:{menuTitle:"sloven\u0161\u010Dina"},sv:{menuTitle:"svenska"},th:{menuTitle:"\u0E44\u0E17\u0E22"},tr:{menuTitle:"T\u00FCrk\u00E7e"},uk:{menuTitle:"\u0443\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430"},vi:{menuTitle:"Ti\u1EBFng Vi\u1EC7t"},"zh-hans":{menuTitle:"\u4E2D\u6587\uFF08\u7B80\u4F53\uFF09"},"zh-hant":{menuTitle:"\u6C49\u8BED"}},pattern:/%(\d+|\{\d+\}|\{[a-z]+:\%\d+(?:\|(?:%\{\d+\}|%.|[^\}])*)+\}|.)/g,SPLIT:("axb".split(/(x)/).length===3?function(a,b){return a.split(b)}:function(c,e){var a=[],b,d=0;e.lastIndex=0;while((b=e.exec(c))){a.push(c.substr(d,b.index-d));a.push.apply(a,b.slice(1));d=b.index+b[0].length}a.push(c.substr(d));return a}),_:function(b,a){if(MathJax.Object.isArray(a)){return this.processSnippet(b,a)}return this.processString(this.lookupPhrase(b,a),[].slice.call(arguments,2))},processString:function(l,p,g){var j,e,o=MathJax.Object.isArray;for(j=0,e=p.length;j<e;j++){if(g&&o(p[j])){p[j]=this.processSnippet(g,p[j])}}var f=this.SPLIT(l,this.pattern);for(j=1,e=f.length;j<e;j+=2){var q=f[j].charAt(0);if(q>="0"&&q<="9"){f[j]=p[f[j]-1];if(typeof f[j]==="number"){f[j]=this.number(f[j])}}else{if(q==="{"){q=f[j].substr(1);if(q>="0"&&q<="9"){f[j]=p[f[j].substr(1,f[j].length-2)-1];if(typeof f[j]==="number"){f[j]=this.number(f[j])}}else{var k=f[j].match(/^\{([a-z]+):%(\d+)\|(.*)\}$/);if(k){if(k[1]==="plural"){var d=p[k[2]-1];if(typeof d==="undefined"){f[j]="???"}else{d=this.plural(d)-1;var h=k[3].replace(/(^|[^%])(%%)*%\|/g,"$1$2%\uEFEF").split(/\|/);if(d>=0&&d<h.length){f[j]=this.processString(h[d].replace(/\uEFEF/g,"|"),p,g)}else{f[j]="???"}}}else{f[j]="%"+f[j]}}}}}if(f[j]==null){f[j]="???"}}if(!g){return f.join("")}var a=[],b="";for(j=0;j<e;j++){b+=f[j];j++;if(j<e){if(o(f[j])){a.push(b);a=a.concat(f[j]);b=""}else{b+=f[j]}}}if(b!==""){a.push(b)}return a},processSnippet:function(g,e){var c=[];for(var d=0,b=e.length;d<b;d++){if(MathJax.Object.isArray(e[d])){var f=e[d];if(typeof f[1]==="string"){var h=f[0];if(!MathJax.Object.isArray(h)){h=[g,h]}var a=this.lookupPhrase(h,f[1]);c=c.concat(this.processMarkdown(a,f.slice(2),g))}else{if(MathJax.Object.isArray(f[1])){c=c.concat(this.processSnippet.apply(this,f))}else{if(f.length>=3){c.push([f[0],f[1],this.processSnippet(g,f[2])])}else{c.push(e[d])}}}}else{c.push(e[d])}}return c},markdownPattern:/(%.)|(\*{1,3})((?:%.|.)+?)\2|(`+)((?:%.|.)+?)\4|\[((?:%.|.)+?)\]\(([^\s\)]+)\)/,processMarkdown:function(b,h,d){var j=[],e;var c=b.split(this.markdownPattern);var g=c[0];for(var f=1,a=c.length;f<a;f+=8){if(c[f+1]){e=this.processString(c[f+2],h,d);if(!MathJax.Object.isArray(e)){e=[e]}e=[["b","i","i"][c[f+1].length-1],{},e];if(c[f+1].length===3){e=["b",{},e]}}else{if(c[f+3]){e=this.processString(c[f+4].replace(/^\s/,"").replace(/\s$/,""),h,d);if(!MathJax.Object.isArray(e)){e=[e]}e=["code",{},e]}else{if(c[f+5]){e=this.processString(c[f+5],h,d);if(!MathJax.Object.isArray(e)){e=[e]}e=["a",{href:this.processString(c[f+6],h),target:"_blank"},e]}else{g+=c[f];e=null}}}if(e){j=this.concatString(j,g,h,d);j.push(e);g=""}if(c[f+7]!==""){g+=c[f+7]}}j=this.concatString(j,g,h,d);return j},concatString:function(a,c,b,d){if(c!=""){c=this.processString(c,b,d);if(!MathJax.Object.isArray(c)){c=[c]}a=a.concat(c)}return a},lookupPhrase:function(f,a,d){if(!d){d="_"}if(MathJax.Object.isArray(f)){d=(f[0]||"_");f=(f[1]||"")}var c=this.loadDomain(d);if(c){MathJax.Hub.RestartAfter(c)}var b=this.strings[this.locale];if(b){if(b.domains&&d in b.domains){var e=b.domains[d];if(e.strings&&f in e.strings){a=e.strings[f]}}}return a},loadFile:function(b,d,e){e=MathJax.Callback(e);b=(d.file||b);if(!b.match(/\.js$/)){b+=".js"}if(!b.match(/^([a-z]+:|\[MathJax\])/)){var a=(this.strings[this.locale].directory||this.directory+"/"+this.locale||"[MathJax]/localization/"+this.locale);b=a+"/"+b}var c=MathJax.Ajax.Require(b,function(){d.isLoaded=true;return e()});return(c.called?null:c)},loadDomain:function(c,e){var b,a=this.strings[this.locale];if(a){if(!a.isLoaded){b=this.loadFile(this.locale,a);if(b){return MathJax.Callback.Queue(b,["loadDomain",this,c]).Push(e||{})}}if(a.domains&&c in a.domains){var d=a.domains[c];if(!d.isLoaded){b=this.loadFile(c,d);if(b){return MathJax.Callback.Queue(b).Push(e)}}}}return MathJax.Callback(e)()},Try:function(a){a=MathJax.Callback(a);a.autoReset=true;try{a()}catch(b){if(!b.restart){throw b}MathJax.Callback.After(["Try",this,a],b.restart)}},resetLocale:function(a){if(!a){return}a=a.toLowerCase();while(!this.strings[a]){var c=a.lastIndexOf("-");if(c===-1){return}a=a.substring(0,c)}var b=this.strings[a].remap;this.locale=b?b:a;MathJax.Callback.Signal("Hub").Post(["Locale Reset",this.locale])},setLocale:function(a){this.resetLocale(a);if(MathJax.Menu){this.loadDomain("MathMenu")}},addTranslation:function(b,e,c){var d=this.strings[b],a=false;if(!d){d=this.strings[b]={};a=true}if(!d.domains){d.domains={}}if(e){if(!d.domains[e]){d.domains[e]={}}d=d.domains[e]}MathJax.Hub.Insert(d,c);if(a&&MathJax.Menu.menu){MathJax.Menu.CreateLocaleMenu()}},setCSS:function(b){var a=this.strings[this.locale];if(a){if(a.fontFamily){b.style.fontFamily=a.fontFamily}if(a.fontDirection){b.style.direction=a.fontDirection;if(a.fontDirection==="rtl"){b.style.textAlign="right"}}}return b},fontFamily:function(){var a=this.strings[this.locale];return(a?a.fontFamily:null)},fontDirection:function(){var a=this.strings[this.locale];return(a?a.fontDirection:null)},plural:function(b){var a=this.strings[this.locale];if(a&&a.plural){return a.plural(b)}if(b==1){return 1}return 2},number:function(b){var a=this.strings[this.locale];if(a&&a.number){return a.number(b)}return b}};MathJax.Message={ready:false,log:[{}],current:null,textNodeBug:(navigator.vendor==="Apple Computer, Inc."&&typeof navigator.vendorSub==="undefined")||(window.hasOwnProperty&&window.hasOwnProperty("konqueror")),styles:{"#MathJax_Message":{position:"fixed",left:"1px",bottom:"2px","background-color":"#E6E6E6",border:"1px solid #959595",margin:"0px",padding:"2px 8px","z-index":"102",color:"black","font-size":"80%",width:"auto","white-space":"nowrap"},"#MathJax_MSIE_Frame":{position:"absolute",top:0,left:0,width:"0px","z-index":101,border:"0px",margin:"0px",padding:"0px"}},browsers:{MSIE:function(a){MathJax.Message.msieFixedPositionBug=((document.documentMode||0)<7);if(MathJax.Message.msieFixedPositionBug){MathJax.Hub.config.styles["#MathJax_Message"].position="absolute"}MathJax.Message.quirks=(document.compatMode==="BackCompat")},Chrome:function(a){MathJax.Hub.config.styles["#MathJax_Message"].bottom="1.5em";MathJax.Hub.config.styles["#MathJax_Message"].left="1em"}},Init:function(a){if(a){this.ready=true}if(!document.body||!this.ready){return false}if(this.div&&this.div.parentNode==null){this.div=document.getElementById("MathJax_Message");this.text=(this.div?this.div.firstChild:null)}if(!this.div){var b=document.body;if(this.msieFixedPositionBug&&window.attachEvent){b=this.frame=this.addDiv(document.body);b.removeAttribute("id");b.style.position="absolute";b.style.border=b.style.margin=b.style.padding="0px";b.style.zIndex="101";b.style.height="0px";b=this.addDiv(b);b.id="MathJax_MSIE_Frame";window.attachEvent("onscroll",this.MoveFrame);window.attachEvent("onresize",this.MoveFrame);this.MoveFrame()}this.div=this.addDiv(b);this.div.style.display="none"}if(!this.text){this.text=this.div.appendChild(document.createTextNode(""))}return true},addDiv:function(a){var b=document.createElement("div");b.id="MathJax_Message";if(a.firstChild){a.insertBefore(b,a.firstChild)}else{a.appendChild(b)}return b},MoveFrame:function(){var a=(MathJax.Message.quirks?document.body:document.documentElement);var b=MathJax.Message.frame;b.style.left=a.scrollLeft+"px";b.style.top=a.scrollTop+"px";b.style.width=a.clientWidth+"px";b=b.firstChild;b.style.height=a.clientHeight+"px"},localize:function(a){return MathJax.Localization._(a,a)},filterText:function(a,c,b){if(MathJax.Hub.config.messageStyle==="simple"){if(b==="LoadFile"){if(!this.loading){this.loading=this.localize("Loading")+" "}a=this.loading;this.loading+="."}else{if(b==="ProcessMath"){if(!this.processing){this.processing=this.localize("Processing")+" "}a=this.processing;this.processing+="."}else{if(b==="TypesetMath"){if(!this.typesetting){this.typesetting=this.localize("Typesetting")+" "}a=this.typesetting;this.typesetting+="."}}}}return a},clearCounts:function(){delete this.loading;delete this.processing;delete this.typesetting},Set:function(c,e,b){if(e==null){e=this.log.length;this.log[e]={}}var d="";if(MathJax.Object.isArray(c)){d=c[0];if(MathJax.Object.isArray(d)){d=d[1]}try{c=MathJax.Localization._.apply(MathJax.Localization,c)}catch(a){if(!a.restart){throw a}if(!a.restart.called){if(this.log[e].restarted==null){this.log[e].restarted=0}this.log[e].restarted++;delete this.log[e].cleared;MathJax.Callback.After(["Set",this,c,e,b],a.restart);return e}}}if(this.timer){clearTimeout(this.timer);delete this.timer}this.log[e].text=c;this.log[e].filteredText=c=this.filterText(c,e,d);if(typeof(this.log[e].next)==="undefined"){this.log[e].next=this.current;if(this.current!=null){this.log[this.current].prev=e}this.current=e}if(this.current===e&&MathJax.Hub.config.messageStyle!=="none"){if(this.Init()){if(this.textNodeBug){this.div.innerHTML=c}else{this.text.nodeValue=c}this.div.style.display="";if(this.status){window.status="";delete this.status}}else{window.status=c;this.status=true}}if(this.log[e].restarted){if(this.log[e].cleared){b=0}if(--this.log[e].restarted===0){delete this.log[e].cleared}}if(b){setTimeout(MathJax.Callback(["Clear",this,e]),b)}else{if(b==0){this.Clear(e,0)}}return e},Clear:function(b,a){if(this.log[b].prev!=null){this.log[this.log[b].prev].next=this.log[b].next}if(this.log[b].next!=null){this.log[this.log[b].next].prev=this.log[b].prev}if(this.current===b){this.current=this.log[b].next;if(this.text){if(this.div.parentNode==null){this.Init()}if(this.current==null){if(this.timer){clearTimeout(this.timer);delete this.timer}if(a==null){a=600}if(a===0){this.Remove()}else{this.timer=setTimeout(MathJax.Callback(["Remove",this]),a)}}else{if(MathJax.Hub.config.messageStyle!=="none"){if(this.textNodeBug){this.div.innerHTML=this.log[this.current].filteredText}else{this.text.nodeValue=this.log[this.current].filteredText}}}if(this.status){window.status="";delete this.status}}else{if(this.status){window.status=(this.current==null?"":this.log[this.current].text)}}}delete this.log[b].next;delete this.log[b].prev;delete this.log[b].filteredText;if(this.log[b].restarted){this.log[b].cleared=true}},Remove:function(){this.text.nodeValue="";this.div.style.display="none"},File:function(a){return this.Set(["LoadFile","Loading %1",a],null,null)},Log:function(){var b=[];for(var c=1,a=this.log.length;c<a;c++){b[c]=this.log[c].text}return b.join("\n")}};MathJax.Hub={config:{root:"",config:[],styleSheets:[],styles:{".MathJax_Preview":{color:"#888"}},jax:[],extensions:[],preJax:null,postJax:null,displayAlign:"center",displayIndent:"0",preRemoveClass:"MathJax_Preview",showProcessingMessages:true,messageStyle:"normal",delayStartupUntil:"none",skipStartupTypeset:false,elements:[],positionToHash:true,showMathMenu:true,showMathMenuMSIE:true,menuSettings:{zoom:"None",CTRL:false,ALT:false,CMD:false,Shift:false,discoverable:false,zscale:"200%",renderer:null,font:"Auto",context:"MathJax",locale:null,mpContext:false,mpMouse:false,texHints:true,FastPreview:null,assistiveMML:null,inTabOrder:true,semantics:false},errorSettings:{message:["[",["MathProcessingError","Math Processing Error"],"]"],style:{color:"#CC0000","font-style":"italic"}},ignoreMMLattributes:{}},preProcessors:MathJax.Callback.Hooks(true),inputJax:{},outputJax:{order:{}},processSectionDelay:50,processUpdateTime:250,processUpdateDelay:10,signal:MathJax.Callback.Signal("Hub"),Config:function(a){this.Insert(this.config,a);if(this.config.Augment){this.Augment(this.config.Augment)}},CombineConfig:function(c,f){var b=this.config,g,e;c=c.split(/\./);for(var d=0,a=c.length;d<a;d++){g=c[d];if(!b[g]){b[g]={}}e=b;b=b[g]}e[g]=b=this.Insert(f,b);return b},Register:{PreProcessor:function(){return MathJax.Hub.preProcessors.Add.apply(MathJax.Hub.preProcessors,arguments)},MessageHook:function(){return MathJax.Hub.signal.MessageHook.apply(MathJax.Hub.signal,arguments)},StartupHook:function(){return MathJax.Hub.Startup.signal.MessageHook.apply(MathJax.Hub.Startup.signal,arguments)},LoadHook:function(){return MathJax.Ajax.LoadHook.apply(MathJax.Ajax,arguments)}},UnRegister:{PreProcessor:function(a){MathJax.Hub.preProcessors.Remove(a)},MessageHook:function(a){MathJax.Hub.signal.RemoveHook(a)},StartupHook:function(a){MathJax.Hub.Startup.signal.RemoveHook(a)},LoadHook:function(a){MathJax.Ajax.removeHook(a)}},getAllJax:function(e){var c=[],b=this.elementScripts(e);for(var d=0,a=b.length;d<a;d++){if(b[d].MathJax&&b[d].MathJax.elementJax){c.push(b[d].MathJax.elementJax)}}return c},getJaxByType:function(f,e){var c=[],b=this.elementScripts(e);for(var d=0,a=b.length;d<a;d++){if(b[d].MathJax&&b[d].MathJax.elementJax&&b[d].MathJax.elementJax.mimeType===f){c.push(b[d].MathJax.elementJax)}}return c},getJaxByInputType:function(f,e){var c=[],b=this.elementScripts(e);for(var d=0,a=b.length;d<a;d++){if(b[d].MathJax&&b[d].MathJax.elementJax&&b[d].type&&b[d].type.replace(/ *;(.|\s)*/,"")===f){c.push(b[d].MathJax.elementJax)}}return c},getJaxFor:function(a){if(typeof(a)==="string"){a=document.getElementById(a)}if(a&&a.MathJax){return a.MathJax.elementJax}if(this.isMathJaxNode(a)){if(!a.isMathJax){a=a.firstChild}while(a&&!a.jaxID){a=a.parentNode}if(a){return MathJax.OutputJax[a.jaxID].getJaxFromMath(a)}}return null},isJax:function(a){if(typeof(a)==="string"){a=document.getElementById(a)}if(this.isMathJaxNode(a)){return 1}if(a&&(a.tagName||"").toLowerCase()==="script"){if(a.MathJax){return(a.MathJax.state===MathJax.ElementJax.STATE.PROCESSED?1:-1)}if(a.type&&this.inputJax[a.type.replace(/ *;(.|\s)*/,"")]){return -1}}return 0},isMathJaxNode:function(a){return !!a&&(a.isMathJax||(a.className||"")==="MathJax_MathML")},setRenderer:function(d,c){if(!d){return}var e=MathJax.OutputJax[d];if(!e){MathJax.OutputJax[d]=MathJax.OutputJax({id:"unknown",version:"1.0.0",isUnknown:true});this.config.menuSettings.renderer="";var b="[MathJax]/jax/output/"+d+"/config.js";return MathJax.Ajax.Require(b,["setRenderer",this,d,c])}else{this.config.menuSettings.renderer=d;if(c==null){c="jax/mml"}if(e.isUnknown){e.Register(c)}var a=this.outputJax;if(a[c]&&a[c].length){if(d!==a[c][0].id){a[c].unshift(e);return this.signal.Post(["Renderer Selected",d])}}return null}},Queue:function(){return this.queue.Push.apply(this.queue,arguments)},Typeset:function(c,d){if(!MathJax.isReady){return null}var b=this.elementCallback(c,d);if(b.count){var a=MathJax.Callback.Queue(["PreProcess",this,b.elements],["Process",this,b.elements])}return a.Push(b.callback)},PreProcess:function(e,g){var c=this.elementCallback(e,g);var b=MathJax.Callback.Queue();if(c.count){var f=(c.count===1?[c.elements]:c.elements);b.Push(["Post",this.signal,["Begin PreProcess",c.elements]]);for(var d=0,a=f.length;d<a;d++){if(f[d]){b.Push(["Execute",this.preProcessors,f[d]])}}b.Push(["Post",this.signal,["End PreProcess",c.elements]])}return b.Push(c.callback)},Process:function(a,b){return this.takeAction("Process",a,b)},Update:function(a,b){return this.takeAction("Update",a,b)},Reprocess:function(a,b){return this.takeAction("Reprocess",a,b)},Rerender:function(a,b){return this.takeAction("Rerender",a,b)},takeAction:function(g,d,h){var c=this.elementCallback(d,h);var f=c.elements;var a=MathJax.Callback.Queue(["Clear",this.signal]);var e={scripts:[],start:new Date().getTime(),i:0,j:0,jax:{},jaxIDs:[]};if(c.count){var b=["Delay",MathJax.Callback,this.processSectionDelay];if(!b[2]){b={}}a.Push(["clearCounts",MathJax.Message],["Post",this.signal,["Begin "+g,f]],["Post",this.signal,["Begin Math",f,g]],["prepareScripts",this,g,f,e],["Post",this.signal,["Begin Math Input",f,g]],["processInput",this,e],["Post",this.signal,["End Math Input",f,g]],b,["prepareOutput",this,e,"preProcess"],b,["Post",this.signal,["Begin Math Output",f,g]],["processOutput",this,e],["Post",this.signal,["End Math Output",f,g]],b,["prepareOutput",this,e,"postProcess"],b,["Post",this.signal,["End Math",f,g]],["Post",this.signal,["End "+g,f]],["clearCounts",MathJax.Message])}return a.Push(c.callback)},scriptAction:{Process:function(a){},Update:function(b){var a=b.MathJax.elementJax;if(a&&a.needsUpdate()){a.Remove(true);b.MathJax.state=a.STATE.UPDATE}else{b.MathJax.state=a.STATE.PROCESSED}},Reprocess:function(b){var a=b.MathJax.elementJax;if(a){a.Remove(true);b.MathJax.state=a.STATE.UPDATE}},Rerender:function(b){var a=b.MathJax.elementJax;if(a){a.Remove(true);b.MathJax.state=a.STATE.OUTPUT}}},prepareScripts:function(h,e,g){if(arguments.callee.disabled){return}var b=this.elementScripts(e);var f=MathJax.ElementJax.STATE;for(var d=0,a=b.length;d<a;d++){var c=b[d];if(c.type&&this.inputJax[c.type.replace(/ *;(.|\n)*/,"")]){if(c.MathJax){if(c.MathJax.elementJax&&c.MathJax.elementJax.hover){MathJax.Extension.MathEvents.Hover.ClearHover(c.MathJax.elementJax)}if(c.MathJax.state!==f.PENDING){this.scriptAction[h](c)}}if(!c.MathJax){c.MathJax={state:f.PENDING}}if(c.MathJax.error){delete c.MathJax.error}if(c.MathJax.state!==f.PROCESSED){g.scripts.push(c)}}}},checkScriptSiblings:function(a){if(a.MathJax.checked){return}var b=this.config,f=a.previousSibling;if(f&&f.nodeName==="#text"){var d,e,c=a.nextSibling;if(c&&c.nodeName!=="#text"){c=null}if(b.preJax){if(typeof(b.preJax)==="string"){b.preJax=new RegExp(b.preJax+"$")}d=f.nodeValue.match(b.preJax)}if(b.postJax&&c){if(typeof(b.postJax)==="string"){b.postJax=new RegExp("^"+b.postJax)}e=c.nodeValue.match(b.postJax)}if(d&&(!b.postJax||e)){f.nodeValue=f.nodeValue.replace(b.preJax,(d.length>1?d[1]:""));f=null}if(e&&(!b.preJax||d)){c.nodeValue=c.nodeValue.replace(b.postJax,(e.length>1?e[1]:""))}if(f&&!f.nodeValue.match(/\S/)){f=f.previousSibling}}if(b.preRemoveClass&&f&&f.className===b.preRemoveClass){a.MathJax.preview=f}a.MathJax.checked=1},processInput:function(a){var b,i=MathJax.ElementJax.STATE;var h,e,d=a.scripts.length;try{while(a.i<d){h=a.scripts[a.i];if(!h){a.i++;continue}e=h.previousSibling;if(e&&e.className==="MathJax_Error"){e.parentNode.removeChild(e)}if(!h.parentNode||!h.MathJax||h.MathJax.state===i.PROCESSED){a.i++;continue}if(!h.MathJax.elementJax||h.MathJax.state===i.UPDATE){this.checkScriptSiblings(h);var g=h.type.replace(/ *;(.|\s)*/,"");var j=this.inputJax[g];b=j.Process(h,a);if(typeof b==="function"){if(b.called){continue}this.RestartAfter(b)}b=b.Attach(h,j.id);this.saveScript(b,a,h,i);this.postInputHooks.Execute(b,j.id,h)}else{if(h.MathJax.state===i.OUTPUT){this.saveScript(h.MathJax.elementJax,a,h,i)}}a.i++;var c=new Date().getTime();if(c-a.start>this.processUpdateTime&&a.i<a.scripts.length){a.start=c;this.RestartAfter(MathJax.Callback.Delay(1))}}}catch(f){return this.processError(f,a,"Input")}if(a.scripts.length&&this.config.showProcessingMessages){MathJax.Message.Set(["ProcessMath","Processing math: %1%%",100],0)}a.start=new Date().getTime();a.i=a.j=0;return null},postInputHooks:MathJax.Callback.Hooks(true),saveScript:function(a,d,b,c){if(!this.outputJax[a.mimeType]){b.MathJax.state=c.UPDATE;throw Error("No output jax registered for "+a.mimeType)}a.outputJax=this.outputJax[a.mimeType][0].id;if(!d.jax[a.outputJax]){if(d.jaxIDs.length===0){d.jax[a.outputJax]=d.scripts}else{if(d.jaxIDs.length===1){d.jax[d.jaxIDs[0]]=d.scripts.slice(0,d.i)}d.jax[a.outputJax]=[]}d.jaxIDs.push(a.outputJax)}if(d.jaxIDs.length>1){d.jax[a.outputJax].push(b)}b.MathJax.state=c.OUTPUT},prepareOutput:function(c,f){while(c.j<c.jaxIDs.length){var e=c.jaxIDs[c.j],d=MathJax.OutputJax[e];if(d[f]){try{var a=d[f](c);if(typeof a==="function"){if(a.called){continue}this.RestartAfter(a)}}catch(b){if(!b.restart){MathJax.Message.Set(["PrepError","Error preparing %1 output (%2)",e,f],null,600);MathJax.Hub.lastPrepError=b;c.j++}return MathJax.Callback.After(["prepareOutput",this,c,f],b.restart)}}c.j++}return null},processOutput:function(h){var b,g=MathJax.ElementJax.STATE,d,a=h.scripts.length;try{while(h.i<a){d=h.scripts[h.i];if(!d||!d.parentNode||!d.MathJax||d.MathJax.error){h.i++;continue}var c=d.MathJax.elementJax;if(!c){h.i++;continue}b=MathJax.OutputJax[c.outputJax].Process(d,h);if(b!==false){d.MathJax.state=g.PROCESSED;if(d.MathJax.preview){d.MathJax.preview.innerHTML="";d.MathJax.preview.style.display="none"}this.signal.Post(["New Math",c.inputID])}h.i++;var e=new Date().getTime();if(e-h.start>this.processUpdateTime&&h.i<h.scripts.length){h.start=e;this.RestartAfter(MathJax.Callback.Delay(this.processUpdateDelay))}}}catch(f){return this.processError(f,h,"Output")}if(h.scripts.length&&this.config.showProcessingMessages){MathJax.Message.Set(["TypesetMath","Typesetting math: %1%%",100],0);MathJax.Message.Clear(0)}h.i=h.j=0;return null},processMessage:function(d,b){var a=Math.floor(d.i/(d.scripts.length)*100);var c=(b==="Output"?["TypesetMath","Typesetting math: %1%%"]:["ProcessMath","Processing math: %1%%"]);if(this.config.showProcessingMessages){MathJax.Message.Set(c.concat(a),0)}},processError:function(b,c,a){if(!b.restart){if(!this.config.errorSettings.message){throw b}this.formatError(c.scripts[c.i],b);c.i++}this.processMessage(c,a);return MathJax.Callback.After(["process"+a,this,c],b.restart)},formatError:function(b,f){var h=function(l,k,j,i){return MathJax.Localization._(l,k,j,i)};var e=h("ErrorMessage","Error: %1",f.message)+"\n";if(f.sourceURL||f.fileName){e+="\n"+h("ErrorFile","file: %1",f.sourceURL||f.fileName)}if(f.line||f.lineNumber){e+="\n"+h("ErrorLine","line: %1",f.line||f.lineNumber)}e+="\n\n"+h("ErrorTips","Debugging tips: use %1, inspect %2 in the browser console","'unpacked/MathJax.js'","'MathJax.Hub.lastError'");b.MathJax.error=MathJax.OutputJax.Error.Jax(e,b);if(b.MathJax.elementJax){b.MathJax.error.inputID=b.MathJax.elementJax.inputID}var g=this.config.errorSettings;var a=h(g.messageId,g.message);var c=MathJax.HTML.Element("span",{className:"MathJax_Error",jaxID:"Error",isMathJax:true,id:b.MathJax.error.inputID+"-Frame"},[["span",null,a]]);MathJax.Ajax.Require("[MathJax]/extensions/MathEvents.js",function(){var j=MathJax.Extension.MathEvents.Event,i=MathJax.Hub;c.oncontextmenu=j.Menu;c.onmousedown=j.Mousedown;c.onkeydown=j.Keydown;c.tabIndex=i.getTabOrder(i.getJaxFor(b))});var d=document.getElementById(c.id);if(d){d.parentNode.removeChild(d)}if(b.parentNode){b.parentNode.insertBefore(c,b)}if(b.MathJax.preview){b.MathJax.preview.innerHTML="";b.MathJax.preview.style.display="none"}this.lastError=f;this.signal.Post(["Math Processing Error",b,f])},RestartAfter:function(a){throw this.Insert(Error("restart"),{restart:MathJax.Callback(a)})},elementCallback:function(c,f){if(f==null&&(MathJax.Object.isArray(c)||typeof c==="function")){try{MathJax.Callback(c);f=c;c=null}catch(d){}}if(c==null){c=this.config.elements||[]}if(this.isHTMLCollection(c)){c=this.HTMLCollection2Array(c)}if(!MathJax.Object.isArray(c)){c=[c]}c=[].concat(c);for(var b=0,a=c.length;b<a;b++){if(typeof(c[b])==="string"){c[b]=document.getElementById(c[b])}}if(!document.body){document.body=document.getElementsByTagName("body")[0]}if(c.length==0){c.push(document.body)}if(!f){f={}}return{count:c.length,elements:(c.length===1?c[0]:c),callback:f}},elementScripts:function(e){var b=[];if(MathJax.Object.isArray(e)||this.isHTMLCollection(e)){for(var d=0,a=e.length;d<a;d++){var f=0;for(var c=0;c<d&&!f;c++){f=e[c].contains(e[d])}if(!f){b.push.apply(b,this.elementScripts(e[d]))}}return b}if(typeof(e)==="string"){e=document.getElementById(e)}if(!document.body){document.body=document.getElementsByTagName("body")[0]}if(e==null){e=document.body}if(e.tagName!=null&&e.tagName.toLowerCase()==="script"){return[e]}b=e.getElementsByTagName("script");if(this.msieHTMLCollectionBug){b=this.HTMLCollection2Array(b)}return b},isHTMLCollection:function(a){return("HTMLCollection" in window&&typeof(a)==="object"&&a instanceof HTMLCollection)},HTMLCollection2Array:function(c){if(!this.msieHTMLCollectionBug){return[].slice.call(c)}var b=[];for(var d=0,a=c.length;d<a;d++){b[d]=c[d]}return b},Insert:function(c,a){for(var b in a){if(a.hasOwnProperty(b)){if(typeof a[b]==="object"&&!(MathJax.Object.isArray(a[b]))&&(typeof c[b]==="object"||typeof c[b]==="function")){this.Insert(c[b],a[b])}else{c[b]=a[b]}}}return c},getTabOrder:function(a){return this.config.menuSettings.inTabOrder?0:-1},SplitList:("trim" in String.prototype?function(a){return a.trim().split(/\s+/)}:function(a){return a.replace(/^\s+/,"").replace(/\s+$/,"").split(/\s+/)})};MathJax.Hub.Insert(MathJax.Hub.config.styles,MathJax.Message.styles);MathJax.Hub.Insert(MathJax.Hub.config.styles,{".MathJax_Error":MathJax.Hub.config.errorSettings.style});MathJax.Extension={};MathJax.Hub.Configured=MathJax.Callback({});MathJax.Hub.Startup={script:"",queue:MathJax.Callback.Queue(),signal:MathJax.Callback.Signal("Startup"),params:{},Config:function(){this.queue.Push(["Post",this.signal,"Begin Config"]);if(MathJax.AuthorConfig&&MathJax.AuthorConfig.root){MathJax.Ajax.config.root=MathJax.AuthorConfig.root}if(this.params.locale){MathJax.Localization.resetLocale(this.params.locale);MathJax.Hub.config.menuSettings.locale=this.params.locale}if(this.params.config){var c=this.params.config.split(/,/);for(var b=0,a=c.length;b<a;b++){if(!c[b].match(/\.js$/)){c[b]+=".js"}this.queue.Push(["Require",MathJax.Ajax,this.URL("config",c[b])])}}this.queue.Push(["Config",MathJax.Hub,MathJax.AuthorConfig]);if(this.script.match(/\S/)){this.queue.Push(this.script+";\n1;")}this.queue.Push(["ConfigDelay",this],["ConfigBlocks",this],[function(d){return d.loadArray(MathJax.Hub.config.config,"config",null,true)},this],["Post",this.signal,"End Config"])},ConfigDelay:function(){var a=this.params.delayStartupUntil||MathJax.Hub.config.delayStartupUntil;if(a==="onload"){return this.onload}if(a==="configured"){return MathJax.Hub.Configured}return a},ConfigBlocks:function(){var c=document.getElementsByTagName("script");var b=MathJax.Callback.Queue();for(var d=0,a=c.length;d<a;d++){var e=String(c[d].type).replace(/ /g,"");if(e.match(/^text\/x-mathjax-config(;.*)?$/)&&!e.match(/;executed=true/)){c[d].type+=";executed=true";b.Push(c[d].innerHTML+";\n1;")}}return b.Push(function(){MathJax.Ajax.config.root=MathJax.Hub.config.root})},Cookie:function(){return this.queue.Push(["Post",this.signal,"Begin Cookie"],["Get",MathJax.HTML.Cookie,"menu",MathJax.Hub.config.menuSettings],[function(e){var d=e.menuSettings;if(d.locale){MathJax.Localization.resetLocale(d.locale)}var g=e.menuSettings.renderer,b=e.jax;if(g){var c="output/"+g;b.sort();for(var f=0,a=b.length;f<a;f++){if(b[f].substr(0,7)==="output/"){break}}if(f==a-1){b.pop()}else{while(f<a){if(b[f]===c){b.splice(f,1);break}f++}}b.unshift(c)}if(d.CHTMLpreview!=null){if(d.FastPreview==null){d.FastPreview=d.CHTMLpreview}delete d.CHTMLpreview}if(d.FastPreview&&!MathJax.Extension["fast-preview"]){MathJax.Hub.config.extensions.push("fast-preview.js")}if(e.menuSettings.assistiveMML&&!MathJax.Extension.AssistiveMML){MathJax.Hub.config.extensions.push("AssistiveMML.js")}},MathJax.Hub.config],["Post",this.signal,"End Cookie"])},Styles:function(){return this.queue.Push(["Post",this.signal,"Begin Styles"],["loadArray",this,MathJax.Hub.config.styleSheets,"config"],["Styles",MathJax.Ajax,MathJax.Hub.config.styles],["Post",this.signal,"End Styles"])},Jax:function(){var f=MathJax.Hub.config,c=MathJax.Hub.outputJax;for(var g=0,b=f.jax.length,d=0;g<b;g++){var e=f.jax[g].substr(7);if(f.jax[g].substr(0,7)==="output/"&&c.order[e]==null){c.order[e]=d;d++}}var a=MathJax.Callback.Queue();return a.Push(["Post",this.signal,"Begin Jax"],["loadArray",this,f.jax,"jax","config.js"],["Post",this.signal,"End Jax"])},Extensions:function(){var a=MathJax.Callback.Queue();return a.Push(["Post",this.signal,"Begin Extensions"],["loadArray",this,MathJax.Hub.config.extensions,"extensions"],["Post",this.signal,"End Extensions"])},Message:function(){MathJax.Message.Init(true)},Menu:function(){var b=MathJax.Hub.config.menuSettings,a=MathJax.Hub.outputJax,d;for(var c in a){if(a.hasOwnProperty(c)){if(a[c].length){d=a[c];break}}}if(d&&d.length){if(b.renderer&&b.renderer!==d[0].id){d.unshift(MathJax.OutputJax[b.renderer])}b.renderer=d[0].id}},Hash:function(){if(MathJax.Hub.config.positionToHash&&document.location.hash&&document.body&&document.body.scrollIntoView){var d=decodeURIComponent(document.location.hash.substr(1));var f=document.getElementById(d);if(!f){var c=document.getElementsByTagName("a");for(var e=0,b=c.length;e<b;e++){if(c[e].name===d){f=c[e];break}}}if(f){while(!f.scrollIntoView){f=f.parentNode}f=this.HashCheck(f);if(f&&f.scrollIntoView){setTimeout(function(){f.scrollIntoView(true)},1)}}}},HashCheck:function(b){var a=MathJax.Hub.getJaxFor(b);if(a&&MathJax.OutputJax[a.outputJax].hashCheck){b=MathJax.OutputJax[a.outputJax].hashCheck(b)}return b},MenuZoom:function(){if(MathJax.Hub.config.showMathMenu){if(!MathJax.Extension.MathMenu){setTimeout(function(){MathJax.Callback.Queue(["Require",MathJax.Ajax,"[MathJax]/extensions/MathMenu.js",{}],["loadDomain",MathJax.Localization,"MathMenu"])},1000)}else{setTimeout(MathJax.Callback(["loadDomain",MathJax.Localization,"MathMenu"]),1000)}if(!MathJax.Extension.MathZoom){setTimeout(MathJax.Callback(["Require",MathJax.Ajax,"[MathJax]/extensions/MathZoom.js",{}]),2000)}}},onLoad:function(){var a=this.onload=MathJax.Callback(function(){MathJax.Hub.Startup.signal.Post("onLoad")});if(document.body&&document.readyState){if(MathJax.Hub.Browser.isMSIE){if(document.readyState==="complete"){return[a]}}else{if(document.readyState!=="loading"){return[a]}}}if(window.addEventListener){window.addEventListener("load",a,false);if(!this.params.noDOMContentEvent){window.addEventListener("DOMContentLoaded",a,false)}}else{if(window.attachEvent){window.attachEvent("onload",a)}else{window.onload=a}}return a},Typeset:function(a,b){if(MathJax.Hub.config.skipStartupTypeset){return function(){}}return this.queue.Push(["Post",this.signal,"Begin Typeset"],["Typeset",MathJax.Hub,a,b],["Post",this.signal,"End Typeset"])},URL:function(b,a){if(!a.match(/^([a-z]+:\/\/|\[|\/)/)){a="[MathJax]/"+b+"/"+a}return a},loadArray:function(b,f,c,a){if(b){if(!MathJax.Object.isArray(b)){b=[b]}if(b.length){var h=MathJax.Callback.Queue(),j={},e;for(var g=0,d=b.length;g<d;g++){e=this.URL(f,b[g]);if(c){e+="/"+c}if(a){h.Push(["Require",MathJax.Ajax,e,j])}else{h.Push(MathJax.Ajax.Require(e,j))}}return h.Push({})}}return null}};(function(d){var b=window[d],e="["+d+"]";var c=b.Hub,a=b.Ajax,f=b.Callback;var g=MathJax.Object.Subclass({JAXFILE:"jax.js",require:null,config:{},Init:function(i,h){if(arguments.length===0){return this}return(this.constructor.Subclass(i,h))()},Augment:function(k,j){var i=this.constructor,h={};if(k!=null){for(var l in k){if(k.hasOwnProperty(l)){if(typeof k[l]==="function"){i.protoFunction(l,k[l])}else{h[l]=k[l]}}}if(k.toString!==i.prototype.toString&&k.toString!=={}.toString){i.protoFunction("toString",k.toString)}}c.Insert(i.prototype,h);i.Augment(null,j);return this},Translate:function(h,i){throw Error(this.directory+"/"+this.JAXFILE+" failed to define the Translate() method")},Register:function(h){},Config:function(){this.config=c.CombineConfig(this.id,this.config);if(this.config.Augment){this.Augment(this.config.Augment)}},Startup:function(){},loadComplete:function(i){if(i==="config.js"){return a.loadComplete(this.directory+"/"+i)}else{var h=f.Queue();h.Push(c.Register.StartupHook("End Config",{}),["Post",c.Startup.signal,this.id+" Jax Config"],["Config",this],["Post",c.Startup.signal,this.id+" Jax Require"],[function(j){return MathJax.Hub.Startup.loadArray(j.require,this.directory)},this],[function(j,k){return MathJax.Hub.Startup.loadArray(j.extensions,"extensions/"+k)},this.config||{},this.id],["Post",c.Startup.signal,this.id+" Jax Startup"],["Startup",this],["Post",c.Startup.signal,this.id+" Jax Ready"]);if(this.copyTranslate){h.Push([function(j){j.preProcess=j.preTranslate;j.Process=j.Translate;j.postProcess=j.postTranslate},this.constructor.prototype])}return h.Push(["loadComplete",a,this.directory+"/"+i])}}},{id:"Jax",version:"2.7.7",directory:e+"/jax",extensionDir:e+"/extensions"});b.InputJax=g.Subclass({elementJax:"mml",sourceMenuTitle:["Original","Original Form"],copyTranslate:true,Process:function(l,q){var j=f.Queue(),o;var k=this.elementJax;if(!b.Object.isArray(k)){k=[k]}for(var n=0,h=k.length;n<h;n++){o=b.ElementJax.directory+"/"+k[n]+"/"+this.JAXFILE;if(!this.require){this.require=[]}else{if(!b.Object.isArray(this.require)){this.require=[this.require]}}this.require.push(o);j.Push(a.Require(o))}o=this.directory+"/"+this.JAXFILE;var p=j.Push(a.Require(o));if(!p.called){this.constructor.prototype.Process=function(){if(!p.called){return p}throw Error(o+" failed to load properly")}}k=c.outputJax["jax/"+k[0]];if(k){j.Push(a.Require(k[0].directory+"/"+this.JAXFILE))}return j.Push({})},needsUpdate:function(h){var i=h.SourceElement();return(h.originalText!==b.HTML.getScript(i))},Register:function(h){if(!c.inputJax){c.inputJax={}}c.inputJax[h]=this}},{id:"InputJax",version:"2.7.7",directory:g.directory+"/input",extensionDir:g.extensionDir});b.OutputJax=g.Subclass({copyTranslate:true,preProcess:function(j){var i,h=this.directory+"/"+this.JAXFILE;this.constructor.prototype.preProcess=function(k){if(!i.called){return i}throw Error(h+" failed to load properly")};i=a.Require(h);return i},Process:function(h){throw Error(this.id+" output jax failed to load properly")},Register:function(i){var h=c.outputJax;if(!h[i]){h[i]=[]}if(h[i].length&&(this.id===c.config.menuSettings.renderer||(h.order[this.id]||0)<(h.order[h[i][0].id]||0))){h[i].unshift(this)}else{h[i].push(this)}if(!this.require){this.require=[]}else{if(!b.Object.isArray(this.require)){this.require=[this.require]}}this.require.push(b.ElementJax.directory+"/"+(i.split(/\//)[1])+"/"+this.JAXFILE)},Remove:function(h){}},{id:"OutputJax",version:"2.7.7",directory:g.directory+"/output",extensionDir:g.extensionDir,fontDir:e+(b.isPacked?"":"/..")+"/fonts",imageDir:e+(b.isPacked?"":"/..")+"/images"});b.ElementJax=g.Subclass({Init:function(i,h){return this.constructor.Subclass(i,h)},inputJax:null,outputJax:null,inputID:null,originalText:"",mimeType:"",sourceMenuTitle:["MathMLcode","MathML Code"],Text:function(i,j){var h=this.SourceElement();b.HTML.setScript(h,i);h.MathJax.state=this.STATE.UPDATE;return c.Update(h,j)},Reprocess:function(i){var h=this.SourceElement();h.MathJax.state=this.STATE.UPDATE;return c.Reprocess(h,i)},Update:function(h){return this.Rerender(h)},Rerender:function(i){var h=this.SourceElement();h.MathJax.state=this.STATE.OUTPUT;return c.Process(h,i)},Remove:function(h){if(this.hover){this.hover.clear(this)}b.OutputJax[this.outputJax].Remove(this);if(!h){c.signal.Post(["Remove Math",this.inputID]);this.Detach()}},needsUpdate:function(){return b.InputJax[this.inputJax].needsUpdate(this)},SourceElement:function(){return document.getElementById(this.inputID)},Attach:function(i,j){var h=i.MathJax.elementJax;if(i.MathJax.state===this.STATE.UPDATE){h.Clone(this)}else{h=i.MathJax.elementJax=this;if(i.id){this.inputID=i.id}else{i.id=this.inputID=b.ElementJax.GetID();this.newID=1}}h.originalText=b.HTML.getScript(i);h.inputJax=j;if(h.root){h.root.inputID=h.inputID}return h},Detach:function(){var h=this.SourceElement();if(!h){return}try{delete h.MathJax}catch(i){h.MathJax=null}if(this.newID){h.id=""}},Clone:function(h){var i;for(i in this){if(!this.hasOwnProperty(i)){continue}if(typeof(h[i])==="undefined"&&i!=="newID"){delete this[i]}}for(i in h){if(!h.hasOwnProperty(i)){continue}if(typeof(this[i])==="undefined"||(this[i]!==h[i]&&i!=="inputID")){this[i]=h[i]}}}},{id:"ElementJax",version:"2.7.7",directory:g.directory+"/element",extensionDir:g.extensionDir,ID:0,STATE:{PENDING:1,PROCESSED:2,UPDATE:3,OUTPUT:4},GetID:function(){this.ID++;return"MathJax-Element-"+this.ID},Subclass:function(){var h=g.Subclass.apply(this,arguments);h.loadComplete=this.prototype.loadComplete;return h}});b.ElementJax.prototype.STATE=b.ElementJax.STATE;b.OutputJax.Error={id:"Error",version:"2.7.7",config:{},errors:0,ContextMenu:function(){return b.Extension.MathEvents.Event.ContextMenu.apply(b.Extension.MathEvents.Event,arguments)},Mousedown:function(){return b.Extension.MathEvents.Event.AltContextMenu.apply(b.Extension.MathEvents.Event,arguments)},getJaxFromMath:function(h){return(h.nextSibling.MathJax||{}).error},Jax:function(j,i){var h=MathJax.Hub.inputJax[i.type.replace(/ *;(.|\s)*/,"")];this.errors++;return{inputJax:(h||{id:"Error"}).id,outputJax:"Error",inputID:"MathJax-Error-"+this.errors,sourceMenuTitle:["ErrorMessage","Error Message"],sourceMenuFormat:"Error",originalText:MathJax.HTML.getScript(i),errorText:j}}};b.InputJax.Error={id:"Error",version:"2.7.7",config:{},sourceMenuTitle:["Original","Original Form"]}})("MathJax");(function(o){var h=window[o];if(!h){h=window[o]={}}var d=h.Hub;var s=d.Startup;var w=d.config;var g=document.head||(document.getElementsByTagName("head")[0]);if(!g){g=document.childNodes[0]}var b=(document.documentElement||document).getElementsByTagName("script");if(b.length===0&&g.namespaceURI){b=document.getElementsByTagNameNS(g.namespaceURI,"script")}var f=new RegExp("(^|/)"+o+"\\.js(\\?.*)?$");for(var q=b.length-1;q>=0;q--){if((b[q].src||"").match(f)){s.script=b[q].innerHTML;if(RegExp.$2){var t=RegExp.$2.substr(1).split(/\&/);for(var p=0,l=t.length;p<l;p++){var n=t[p].match(/(.*)=(.*)/);if(n){s.params[unescape(n[1])]=unescape(n[2])}else{s.params[t[p]]=true}}}w.root=b[q].src.replace(/(^|\/)[^\/]*(\?.*)?$/,"");h.Ajax.config.root=w.root;h.Ajax.params=s.params;break}}var k=navigator.userAgent;var a={isMac:(navigator.platform.substr(0,3)==="Mac"),isPC:(navigator.platform.substr(0,3)==="Win"),isMSIE:("ActiveXObject" in window&&"clipboardData" in window),isEdge:("MSGestureEvent" in window&&"chrome" in window&&window.chrome.loadTimes==null),isFirefox:(!!k.match(/Gecko\//)&&!k.match(/like Gecko/)),isSafari:(!!k.match(/ (Apple)?WebKit\//)&&!k.match(/ like iPhone /)&&(!window.chrome||window.chrome.app==null)),isChrome:("chrome" in window&&window.chrome.loadTimes!=null),isOpera:("opera" in window&&window.opera.version!=null),isKonqueror:("konqueror" in window&&navigator.vendor=="KDE"),versionAtLeast:function(y){var x=(this.version).split(".");y=(new String(y)).split(".");for(var z=0,j=y.length;z<j;z++){if(x[z]!=y[z]){return parseInt(x[z]||"0")>=parseInt(y[z])}}return true},Select:function(j){var i=j[d.Browser];if(i){return i(d.Browser)}return null}};var e=k.replace(/^Mozilla\/(\d+\.)+\d+ /,"").replace(/[a-z][-a-z0-9._: ]+\/\d+[^ ]*-[^ ]*\.([a-z][a-z])?\d+ /i,"").replace(/Gentoo |Ubuntu\/(\d+\.)*\d+ (\([^)]*\) )?/,"");d.Browser=d.Insert(d.Insert(new String("Unknown"),{version:"0.0"}),a);for(var v in a){if(a.hasOwnProperty(v)){if(a[v]&&v.substr(0,2)==="is"){v=v.slice(2);if(v==="Mac"||v==="PC"){continue}d.Browser=d.Insert(new String(v),a);var r=new RegExp(".*(Version/| Trident/.*; rv:)((?:\\d+\\.)+\\d+)|.*("+v+")"+(v=="MSIE"?" ":"/")+"((?:\\d+\\.)*\\d+)|(?:^|\\(| )([a-z][-a-z0-9._: ]+|(?:Apple)?WebKit)/((?:\\d+\\.)+\\d+)");var u=r.exec(e)||["","","","unknown","0.0"];d.Browser.name=(u[1]!=""?v:(u[3]||u[5]));d.Browser.version=u[2]||u[4]||u[6];break}}}try{d.Browser.Select({Safari:function(j){var i=parseInt((String(j.version).split("."))[0]);if(i>85){j.webkit=j.version}if(i>=538){j.version="8.0"}else{if(i>=537){j.version="7.0"}else{if(i>=536){j.version="6.0"}else{if(i>=534){j.version="5.1"}else{if(i>=533){j.version="5.0"}else{if(i>=526){j.version="4.0"}else{if(i>=525){j.version="3.1"}else{if(i>500){j.version="3.0"}else{if(i>400){j.version="2.0"}else{if(i>85){j.version="1.0"}}}}}}}}}}j.webkit=(navigator.appVersion.match(/WebKit\/(\d+)\./))[1];j.isMobile=(navigator.appVersion.match(/Mobile/i)!=null);j.noContextMenu=j.isMobile},Firefox:function(j){if((j.version==="0.0"||k.match(/Firefox/)==null)&&navigator.product==="Gecko"){var m=k.match(/[\/ ]rv:(\d+\.\d.*?)[\) ]/);if(m){j.version=m[1]}else{var i=(navigator.buildID||navigator.productSub||"0").substr(0,8);if(i>="20111220"){j.version="9.0"}else{if(i>="20111120"){j.version="8.0"}else{if(i>="20110927"){j.version="7.0"}else{if(i>="20110816"){j.version="6.0"}else{if(i>="20110621"){j.version="5.0"}else{if(i>="20110320"){j.version="4.0"}else{if(i>="20100121"){j.version="3.6"}else{if(i>="20090630"){j.version="3.5"}else{if(i>="20080617"){j.version="3.0"}else{if(i>="20061024"){j.version="2.0"}}}}}}}}}}}}j.isMobile=(navigator.appVersion.match(/Android/i)!=null||k.match(/ Fennec\//)!=null||k.match(/Mobile/)!=null)},Chrome:function(i){i.noContextMenu=i.isMobile=!!navigator.userAgent.match(/ Mobile[ \/]/)},Opera:function(i){i.version=opera.version()},Edge:function(i){i.isMobile=!!navigator.userAgent.match(/ Phone/)},MSIE:function(j){j.isMobile=!!navigator.userAgent.match(/ Phone/);j.isIE9=!!(document.documentMode&&(window.performance||window.msPerformance));MathJax.HTML.setScriptBug=!j.isIE9||document.documentMode<9;MathJax.Hub.msieHTMLCollectionBug=(document.documentMode<9);if(document.documentMode<10&&!s.params.NoMathPlayer){try{new ActiveXObject("MathPlayer.Factory.1");j.hasMathPlayer=true}catch(m){}try{if(j.hasMathPlayer){var i=document.createElement("object");i.id="mathplayer";i.classid="clsid:32F66A20-7614-11D4-BD11-00104BD3F987";g.appendChild(i);document.namespaces.add("m","http://www.w3.org/1998/Math/MathML");j.mpNamespace=true;if(document.readyState&&(document.readyState==="loading"||document.readyState==="interactive")){document.write('<?import namespace="m" implementation="#MathPlayer">');j.mpImported=true}}else{document.namespaces.add("mjx_IE_fix","http://www.w3.org/1999/xlink")}}catch(m){}}}})}catch(c){console.error(c.message)}d.Browser.Select(MathJax.Message.browsers);if(h.AuthorConfig&&typeof h.AuthorConfig.AuthorInit==="function"){h.AuthorConfig.AuthorInit()}d.queue=h.Callback.Queue();d.queue.Push(["Post",s.signal,"Begin"],["Config",s],["Cookie",s],["Styles",s],["Message",s],function(){var i=h.Callback.Queue(s.Jax(),s.Extensions());return i.Push({})},["Menu",s],s.onLoad(),function(){MathJax.isReady=true},["Typeset",s],["Hash",s],["MenuZoom",s],["Post",s.signal,"End"])})("MathJax")}};
var getEvaluatingQuestion = async (url, data) => {
try {
} catch (e) {
console.error(error);
let msg = get(error.response, 'data.msg', '');
if (msg) {
message.error(msg);
}
return false;
}
}
\ No newline at end of file
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).axios=t()}(this,(function(){"use strict";function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?e(Object(r),!0).forEach((function(e){a(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){return c(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||l(e,t)||p()}function u(e){return function(e){if(Array.isArray(e))return d(e)}(e)||f(e)||l(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e){if(Array.isArray(e))return e}function f(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function l(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h(e,t){return function(){return e.apply(t,arguments)}}var m,y=Object.prototype.toString,v=Object.getPrototypeOf,b=(m=Object.create(null),function(e){var t=y.call(e);return m[t]||(m[t]=t.slice(8,-1).toLowerCase())}),g=function(e){return e=e.toLowerCase(),function(t){return b(t)===e}},w=function(e){return function(t){return n(t)===e}},O=Array.isArray,E=w("undefined");var S=g("ArrayBuffer");var R=w("string"),A=w("function"),j=w("number"),T=function(e){return null!==e&&"object"===n(e)},P=function(e){if("object"!==b(e))return!1;var t=v(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},N=g("Date"),x=g("File"),C=g("Blob"),k=g("FileList"),_=g("URLSearchParams");function F(e,t){var r,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=i.allOwnKeys,s=void 0!==a&&a;if(null!=e)if("object"!==n(e)&&(e=[e]),O(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{var u,c=s?Object.getOwnPropertyNames(e):Object.keys(e),f=c.length;for(r=0;r<f;r++)u=c[r],t.call(null,e[u],u,e)}}function U(e,t){t=t.toLowerCase();for(var n,r=Object.keys(e),o=r.length;o-- >0;)if(t===(n=r[o]).toLowerCase())return n;return null}var D="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,B=function(e){return!E(e)&&e!==D};var L,I=(L="undefined"!=typeof Uint8Array&&v(Uint8Array),function(e){return L&&e instanceof L}),q=g("HTMLFormElement"),z=function(e){var t=Object.prototype.hasOwnProperty;return function(e,n){return t.call(e,n)}}(),M=g("RegExp"),H=function(e,t){var n=Object.getOwnPropertyDescriptors(e),r={};F(n,(function(n,o){var i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},J="abcdefghijklmnopqrstuvwxyz",W="0123456789",K={DIGIT:W,ALPHA:J,ALPHA_DIGIT:J+J.toUpperCase()+W};var V=g("AsyncFunction"),G={isArray:O,isArrayBuffer:S,isBuffer:function(e){return null!==e&&!E(e)&&null!==e.constructor&&!E(e.constructor)&&A(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:function(e){var t;return e&&("function"==typeof FormData&&e instanceof FormData||A(e.append)&&("formdata"===(t=b(e))||"object"===t&&A(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&S(e.buffer)},isString:R,isNumber:j,isBoolean:function(e){return!0===e||!1===e},isObject:T,isPlainObject:P,isUndefined:E,isDate:N,isFile:x,isBlob:C,isRegExp:M,isFunction:A,isStream:function(e){return T(e)&&A(e.pipe)},isURLSearchParams:_,isTypedArray:I,isFileList:k,forEach:F,merge:function e(){for(var t=B(this)&&this||{},n=t.caseless,r={},o=function(t,o){var i=n&&U(r,o)||o;P(r[i])&&P(t)?r[i]=e(r[i],t):P(t)?r[i]=e({},t):O(t)?r[i]=t.slice():r[i]=t},i=0,a=arguments.length;i<a;i++)arguments[i]&&F(arguments[i],o);return r},extend:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.allOwnKeys;return F(t,(function(t,r){n&&A(t)?e[r]=h(t,n):e[r]=t}),{allOwnKeys:o}),e},trim:function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n,r){var o,i,a,s={};if(t=t||{},null==e)return t;do{for(i=(o=Object.getOwnPropertyNames(e)).length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&v(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:b,kindOfTest:g,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;if(O(e))return e;var t=e.length;if(!j(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},forEachEntry:function(e,t){for(var n,r=(e&&e[Symbol.iterator]).call(e);(n=r.next())&&!n.done;){var o=n.value;t.call(e,o[0],o[1])}},matchAll:function(e,t){for(var n,r=[];null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:q,hasOwnProperty:z,hasOwnProp:z,reduceDescriptors:H,freezeMethods:function(e){H(e,(function(t,n){if(A(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;var r=e[n];A(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=function(){throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:function(e,t){var n={},r=function(e){e.forEach((function(e){n[e]=!0}))};return O(e)?r(e):r(String(e).split(t)),n},toCamelCase:function(e){return e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n}))},noop:function(){},toFiniteNumber:function(e,t){return e=+e,Number.isFinite(e)?e:t},findKey:U,global:D,isContextDefined:B,ALPHABET:K,generateString:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:K.ALPHA_DIGIT,n="",r=t.length;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&A(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:function(e){var t=new Array(10);return function e(n,r){if(T(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[r]=n;var o=O(n)?[]:{};return F(n,(function(t,n){var i=e(t,r+1);!E(i)&&(o[n]=i)})),t[r]=void 0,o}}return n}(e,0)},isAsyncFn:V,isThenable:function(e){return e&&(T(e)||A(e))&&A(e.then)&&A(e.catch)}};function X(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}G.inherits(X,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:G.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var $=X.prototype,Q={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((function(e){Q[e]={value:e}})),Object.defineProperties(X,Q),Object.defineProperty($,"isAxiosError",{value:!0}),X.from=function(e,t,n,r,o,i){var a=Object.create($);return G.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(function(e){return"isAxiosError"!==e})),X.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};function Z(e){return G.isPlainObject(e)||G.isArray(e)}function Y(e){return G.endsWith(e,"[]")?e.slice(0,-2):e}function ee(e,t,n){return e?e.concat(t).map((function(e,t){return e=Y(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}var te=G.toFlatObject(G,{},null,(function(e){return/^is[A-Z]/.test(e)}));function ne(e,t,r){if(!G.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;var o=(r=G.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!G.isUndefined(t[e])}))).metaTokens,i=r.visitor||f,a=r.dots,s=r.indexes,u=(r.Blob||"undefined"!=typeof Blob&&Blob)&&G.isSpecCompliantForm(t);if(!G.isFunction(i))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(G.isDate(e))return e.toISOString();if(!u&&G.isBlob(e))throw new X("Blob is not supported. Use a Buffer instead.");return G.isArrayBuffer(e)||G.isTypedArray(e)?u&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function f(e,r,i){var u=e;if(e&&!i&&"object"===n(e))if(G.endsWith(r,"{}"))r=o?r:r.slice(0,-2),e=JSON.stringify(e);else if(G.isArray(e)&&function(e){return G.isArray(e)&&!e.some(Z)}(e)||(G.isFileList(e)||G.endsWith(r,"[]"))&&(u=G.toArray(e)))return r=Y(r),u.forEach((function(e,n){!G.isUndefined(e)&&null!==e&&t.append(!0===s?ee([r],n,a):null===s?r:r+"[]",c(e))})),!1;return!!Z(e)||(t.append(ee(i,r,a),c(e)),!1)}var l=[],d=Object.assign(te,{defaultVisitor:f,convertValue:c,isVisitable:Z});if(!G.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!G.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+r.join("."));l.push(n),G.forEach(n,(function(n,o){!0===(!(G.isUndefined(n)||null===n)&&i.call(t,n,G.isString(o)?o.trim():o,r,d))&&e(n,r?r.concat(o):[o])})),l.pop()}}(e),t}function re(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function oe(e,t){this._pairs=[],e&&ne(e,this,t)}var ie=oe.prototype;function ae(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function se(e,t,n){if(!t)return e;var r,o=n&&n.encode||ae,i=n&&n.serialize;if(r=i?i(t,n):G.isURLSearchParams(t)?t.toString():new oe(t,n).toString(o)){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}ie.append=function(e,t){this._pairs.push([e,t])},ie.toString=function(e){var t=e?function(t){return e.call(this,t,re)}:re;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var ue,ce=function(){function e(){r(this,e),this.handlers=[]}return i(e,[{key:"use",value:function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}},{key:"eject",value:function(e){this.handlers[e]&&(this.handlers[e]=null)}},{key:"clear",value:function(){this.handlers&&(this.handlers=[])}},{key:"forEach",value:function(e){G.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}]),e}(),fe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},le={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:oe,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},de="undefined"!=typeof window&&"undefined"!=typeof document,pe=(ue="undefined"!=typeof navigator&&navigator.product,de&&["ReactNative","NativeScript","NS"].indexOf(ue)<0),he="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,me=t(t({},Object.freeze({__proto__:null,hasBrowserEnv:de,hasStandardBrowserWebWorkerEnv:he,hasStandardBrowserEnv:pe})),le);function ye(e){function t(e,n,r,o){var i=e[o++];if("__proto__"===i)return!0;var a=Number.isFinite(+i),s=o>=e.length;return i=!i&&G.isArray(r)?r.length:i,s?(G.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a):(r[i]&&G.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&G.isArray(r[i])&&(r[i]=function(e){var t,n,r={},o=Object.keys(e),i=o.length;for(t=0;t<i;t++)r[n=o[t]]=e[n];return r}(r[i])),!a)}if(G.isFormData(e)&&G.isFunction(e.entries)){var n={};return G.forEachEntry(e,(function(e,r){t(function(e){return G.matchAll(/\w+|\[(\w*)]/g,e).map((function(e){return"[]"===e[0]?"":e[1]||e[0]}))}(e),r,n,0)})),n}return null}var ve={transitional:fe,adapter:["xhr","http"],transformRequest:[function(e,t){var n,r=t.getContentType()||"",o=r.indexOf("application/json")>-1,i=G.isObject(e);if(i&&G.isHTMLForm(e)&&(e=new FormData(e)),G.isFormData(e))return o&&o?JSON.stringify(ye(e)):e;if(G.isArrayBuffer(e)||G.isBuffer(e)||G.isStream(e)||G.isFile(e)||G.isBlob(e))return e;if(G.isArrayBufferView(e))return e.buffer;if(G.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return ne(e,new me.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return me.isNode&&G.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((n=G.isFileList(e))||r.indexOf("multipart/form-data")>-1){var a=this.env&&this.env.FormData;return ne(n?{"files[]":e}:e,a&&new a,this.formSerializer)}}return i||o?(t.setContentType("application/json",!1),function(e,t,n){if(G.isString(e))try{return(t||JSON.parse)(e),G.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||ve.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&G.isString(e)&&(n&&!this.responseType||r)){var o=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw X.from(e,X.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:me.classes.FormData,Blob:me.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};G.forEach(["delete","get","head","post","put","patch"],(function(e){ve.headers[e]={}}));var be=ve,ge=G.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),we=Symbol("internals");function Oe(e){return e&&String(e).trim().toLowerCase()}function Ee(e){return!1===e||null==e?e:G.isArray(e)?e.map(Ee):String(e)}function Se(e,t,n,r,o){return G.isFunction(r)?r.call(this,t,n):(o&&(t=n),G.isString(t)?G.isString(r)?-1!==t.indexOf(r):G.isRegExp(r)?r.test(t):void 0:void 0)}var Re=function(e,t){function n(e){r(this,n),e&&this.set(e)}return i(n,[{key:"set",value:function(e,t,n){var r=this;function o(e,t,n){var o=Oe(t);if(!o)throw new Error("header name must be a non-empty string");var i=G.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=Ee(e))}var i,a,s,u,c,f=function(e,t){return G.forEach(e,(function(e,n){return o(e,n,t)}))};return G.isPlainObject(e)||e instanceof this.constructor?f(e,t):G.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?f((c={},(i=e)&&i.split("\n").forEach((function(e){u=e.indexOf(":"),a=e.substring(0,u).trim().toLowerCase(),s=e.substring(u+1).trim(),!a||c[a]&&ge[a]||("set-cookie"===a?c[a]?c[a].push(s):c[a]=[s]:c[a]=c[a]?c[a]+", "+s:s)})),c),t):null!=e&&o(t,e,n),this}},{key:"get",value:function(e,t){if(e=Oe(e)){var n=G.findKey(this,e);if(n){var r=this[n];if(!t)return r;if(!0===t)return function(e){for(var t,n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;t=r.exec(e);)n[t[1]]=t[2];return n}(r);if(G.isFunction(t))return t.call(this,r,n);if(G.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}},{key:"has",value:function(e,t){if(e=Oe(e)){var n=G.findKey(this,e);return!(!n||void 0===this[n]||t&&!Se(0,this[n],n,t))}return!1}},{key:"delete",value:function(e,t){var n=this,r=!1;function o(e){if(e=Oe(e)){var o=G.findKey(n,e);!o||t&&!Se(0,n[o],o,t)||(delete n[o],r=!0)}}return G.isArray(e)?e.forEach(o):o(e),r}},{key:"clear",value:function(e){for(var t=Object.keys(this),n=t.length,r=!1;n--;){var o=t[n];e&&!Se(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}},{key:"normalize",value:function(e){var t=this,n={};return G.forEach(this,(function(r,o){var i=G.findKey(n,o);if(i)return t[i]=Ee(r),void delete t[o];var a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n}))}(o):String(o).trim();a!==o&&delete t[o],t[a]=Ee(r),n[a]=!0})),this}},{key:"concat",value:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=this.constructor).concat.apply(e,[this].concat(n))}},{key:"toJSON",value:function(e){var t=Object.create(null);return G.forEach(this,(function(n,r){null!=n&&!1!==n&&(t[r]=e&&G.isArray(n)?n.join(", "):n)})),t}},{key:Symbol.iterator,value:function(){return Object.entries(this.toJSON())[Symbol.iterator]()}},{key:"toString",value:function(){return Object.entries(this.toJSON()).map((function(e){var t=s(e,2);return t[0]+": "+t[1]})).join("\n")}},{key:Symbol.toStringTag,get:function(){return"AxiosHeaders"}}],[{key:"from",value:function(e){return e instanceof this?e:new this(e)}},{key:"concat",value:function(e){for(var t=new this(e),n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.forEach((function(e){return t.set(e)})),t}},{key:"accessor",value:function(e){var t=(this[we]=this[we]={accessors:{}}).accessors,n=this.prototype;function r(e){var r=Oe(e);t[r]||(!function(e,t){var n=G.toCamelCase(" "+t);["get","set","has"].forEach((function(r){Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return G.isArray(e)?e.forEach(r):r(e),this}}]),n}();Re.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),G.reduceDescriptors(Re.prototype,(function(e,t){var n=e.value,r=t[0].toUpperCase()+t.slice(1);return{get:function(){return n},set:function(e){this[r]=e}}})),G.freezeMethods(Re);var Ae=Re;function je(e,t){var n=this||be,r=t||n,o=Ae.from(r.headers),i=r.data;return G.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Te(e){return!(!e||!e.__CANCEL__)}function Pe(e,t,n){X.call(this,null==e?"canceled":e,X.ERR_CANCELED,t,n),this.name="CanceledError"}G.inherits(Pe,X,{__CANCEL__:!0});var Ne=me.hasStandardBrowserEnv?{write:function(e,t,n,r,o,i){var a=[e+"="+encodeURIComponent(t)];G.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),G.isString(r)&&a.push("path="+r),G.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function xe(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var Ce=me.hasStandardBrowserEnv?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=G.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0};function ke(e,t){var n=0,r=function(e,t){e=e||10;var n,r=new Array(e),o=new Array(e),i=0,a=0;return t=void 0!==t?t:1e3,function(s){var u=Date.now(),c=o[a];n||(n=u),r[i]=s,o[i]=u;for(var f=a,l=0;f!==i;)l+=r[f++],f%=e;if((i=(i+1)%e)===a&&(a=(a+1)%e),!(u-n<t)){var d=c&&u-c;return d?Math.round(1e3*l/d):void 0}}}(50,250);return function(o){var i=o.loaded,a=o.lengthComputable?o.total:void 0,s=i-n,u=r(s);n=i;var c={loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:u||void 0,estimated:u&&a&&i<=a?(a-i)/u:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}var _e={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){var r,o,i,a=e.data,s=Ae.from(e.headers).normalize(),d=e.responseType,h=e.withXSRFToken;function m(){e.cancelToken&&e.cancelToken.unsubscribe(r),e.signal&&e.signal.removeEventListener("abort",r)}if(G.isFormData(a))if(me.hasStandardBrowserEnv||me.hasStandardBrowserWebWorkerEnv)s.setContentType(!1);else if(!1!==(o=s.getContentType())){var y=o?o.split(";").map((function(e){return e.trim()})).filter(Boolean):[],v=c(i=y)||f(i)||l(i)||p(),b=v[0],g=v.slice(1);s.setContentType([b||"multipart/form-data"].concat(u(g)).join("; "))}var w=new XMLHttpRequest;if(e.auth){var O=e.auth.username||"",E=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(O+":"+E))}var S=xe(e.baseURL,e.url);function R(){if(w){var r=Ae.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders());!function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new X("Request failed with status code "+n.status,[X.ERR_BAD_REQUEST,X.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),m()}),(function(e){n(e),m()}),{data:d&&"text"!==d&&"json"!==d?w.response:w.responseText,status:w.status,statusText:w.statusText,headers:r,config:e,request:w}),w=null}}if(w.open(e.method.toUpperCase(),se(S,e.params,e.paramsSerializer),!0),w.timeout=e.timeout,"onloadend"in w?w.onloadend=R:w.onreadystatechange=function(){w&&4===w.readyState&&(0!==w.status||w.responseURL&&0===w.responseURL.indexOf("file:"))&&setTimeout(R)},w.onabort=function(){w&&(n(new X("Request aborted",X.ECONNABORTED,e,w)),w=null)},w.onerror=function(){n(new X("Network Error",X.ERR_NETWORK,e,w)),w=null},w.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||fe;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new X(t,r.clarifyTimeoutError?X.ETIMEDOUT:X.ECONNABORTED,e,w)),w=null},me.hasStandardBrowserEnv&&(h&&G.isFunction(h)&&(h=h(e)),h||!1!==h&&Ce(S))){var A=e.xsrfHeaderName&&e.xsrfCookieName&&Ne.read(e.xsrfCookieName);A&&s.set(e.xsrfHeaderName,A)}void 0===a&&s.setContentType(null),"setRequestHeader"in w&&G.forEach(s.toJSON(),(function(e,t){w.setRequestHeader(t,e)})),G.isUndefined(e.withCredentials)||(w.withCredentials=!!e.withCredentials),d&&"json"!==d&&(w.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&w.addEventListener("progress",ke(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&w.upload&&w.upload.addEventListener("progress",ke(e.onUploadProgress)),(e.cancelToken||e.signal)&&(r=function(t){w&&(n(!t||t.type?new Pe(null,e,w):t),w.abort(),w=null)},e.cancelToken&&e.cancelToken.subscribe(r),e.signal&&(e.signal.aborted?r():e.signal.addEventListener("abort",r)));var j,T=(j=/^([-+\w]{1,25})(:?\/\/|:)/.exec(S))&&j[1]||"";T&&-1===me.protocols.indexOf(T)?n(new X("Unsupported protocol "+T+":",X.ERR_BAD_REQUEST,e)):w.send(a||null)}))}};G.forEach(_e,(function(e,t){if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));var Fe=function(e){return"- ".concat(e)},Ue=function(e){return G.isFunction(e)||null===e||!1===e},De=function(e){for(var t,n,r=(e=G.isArray(e)?e:[e]).length,o={},i=0;i<r;i++){var a=void 0;if(n=t=e[i],!Ue(t)&&void 0===(n=_e[(a=String(t)).toLowerCase()]))throw new X("Unknown adapter '".concat(a,"'"));if(n)break;o[a||"#"+i]=n}if(!n){var u=Object.entries(o).map((function(e){var t=s(e,2),n=t[0],r=t[1];return"adapter ".concat(n," ")+(!1===r?"is not supported by the environment":"is not available in the build")}));throw new X("There is no suitable adapter to dispatch the request "+(r?u.length>1?"since :\n"+u.map(Fe).join("\n"):" "+Fe(u[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function Be(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Pe(null,e)}function Le(e){return Be(e),e.headers=Ae.from(e.headers),e.data=je.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),De(e.adapter||be.adapter)(e).then((function(t){return Be(e),t.data=je.call(e,e.transformResponse,t),t.headers=Ae.from(t.headers),t}),(function(t){return Te(t)||(Be(e),t&&t.response&&(t.response.data=je.call(e,e.transformResponse,t.response),t.response.headers=Ae.from(t.response.headers))),Promise.reject(t)}))}var Ie=function(e){return e instanceof Ae?e.toJSON():e};function qe(e,t){t=t||{};var n={};function r(e,t,n){return G.isPlainObject(e)&&G.isPlainObject(t)?G.merge.call({caseless:n},e,t):G.isPlainObject(t)?G.merge({},t):G.isArray(t)?t.slice():t}function o(e,t,n){return G.isUndefined(t)?G.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!G.isUndefined(t))return r(void 0,t)}function a(e,t){return G.isUndefined(t)?G.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}var u={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:function(e,t){return o(Ie(e),Ie(t),!0)}};return G.forEach(Object.keys(Object.assign({},e,t)),(function(r){var i=u[r]||o,a=i(e[r],t[r],r);G.isUndefined(a)&&i!==s||(n[r]=a)})),n}var ze="1.6.5",Me={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){Me[e]=function(r){return n(r)===e||"a"+(t<1?"n ":" ")+e}}));var He={};Me.transitional=function(e,t,n){function r(e,t){return"[Axios v1.6.5] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,o,i){if(!1===e)throw new X(r(o," has been removed"+(t?" in "+t:"")),X.ERR_DEPRECATED);return t&&!He[o]&&(He[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};var Je={assertOptions:function(e,t,r){if("object"!==n(e))throw new X("options must be an object",X.ERR_BAD_OPTION_VALUE);for(var o=Object.keys(e),i=o.length;i-- >0;){var a=o[i],s=t[a];if(s){var u=e[a],c=void 0===u||s(u,a,e);if(!0!==c)throw new X("option "+a+" must be "+c,X.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new X("Unknown option "+a,X.ERR_BAD_OPTION)}},validators:Me},We=Je.validators,Ke=function(){function e(t){r(this,e),this.defaults=t,this.interceptors={request:new ce,response:new ce}}return i(e,[{key:"request",value:function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{};var n=t=qe(this.defaults,t),r=n.transitional,o=n.paramsSerializer,i=n.headers;void 0!==r&&Je.assertOptions(r,{silentJSONParsing:We.transitional(We.boolean),forcedJSONParsing:We.transitional(We.boolean),clarifyTimeoutError:We.transitional(We.boolean)},!1),null!=o&&(G.isFunction(o)?t.paramsSerializer={serialize:o}:Je.assertOptions(o,{encode:We.function,serialize:We.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();var a=i&&G.merge(i.common,i[t.method]);i&&G.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete i[e]})),t.headers=Ae.concat(a,i);var s=[],u=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(u=u&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));var c,f=[];this.interceptors.response.forEach((function(e){f.push(e.fulfilled,e.rejected)}));var l,d=0;if(!u){var p=[Le.bind(this),void 0];for(p.unshift.apply(p,s),p.push.apply(p,f),l=p.length,c=Promise.resolve(t);d<l;)c=c.then(p[d++],p[d++]);return c}l=s.length;var h=t;for(d=0;d<l;){var m=s[d++],y=s[d++];try{h=m(h)}catch(e){y.call(this,e);break}}try{c=Le.call(this,h)}catch(e){return Promise.reject(e)}for(d=0,l=f.length;d<l;)c=c.then(f[d++],f[d++]);return c}},{key:"getUri",value:function(e){return se(xe((e=qe(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}]),e}();G.forEach(["delete","get","head","options"],(function(e){Ke.prototype[e]=function(t,n){return this.request(qe(n||{},{method:e,url:t,data:(n||{}).data}))}})),G.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(qe(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Ke.prototype[e]=t(),Ke.prototype[e+"Form"]=t(!0)}));var Ve=Ke,Ge=function(){function e(t){if(r(this,e),"function"!=typeof t)throw new TypeError("executor must be a function.");var n;this.promise=new Promise((function(e){n=e}));var o=this;this.promise.then((function(e){if(o._listeners){for(var t=o._listeners.length;t-- >0;)o._listeners[t](e);o._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){o.subscribe(e),t=e})).then(e);return n.cancel=function(){o.unsubscribe(t)},n},t((function(e,t,r){o.reason||(o.reason=new Pe(e,t,r),n(o.reason))}))}return i(e,[{key:"throwIfRequested",value:function(){if(this.reason)throw this.reason}},{key:"subscribe",value:function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}},{key:"unsubscribe",value:function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}}}],[{key:"source",value:function(){var t;return{token:new e((function(e){t=e})),cancel:t}}}]),e}();var Xe={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Xe).forEach((function(e){var t=s(e,2),n=t[0],r=t[1];Xe[r]=n}));var $e=Xe;var Qe=function e(t){var n=new Ve(t),r=h(Ve.prototype.request,n);return G.extend(r,Ve.prototype,n,{allOwnKeys:!0}),G.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(qe(t,n))},r}(be);return Qe.Axios=Ve,Qe.CanceledError=Pe,Qe.CancelToken=Ge,Qe.isCancel=Te,Qe.VERSION=ze,Qe.toFormData=ne,Qe.AxiosError=X,Qe.Cancel=Qe.CanceledError,Qe.all=function(e){return Promise.all(e)},Qe.spread=function(e){return function(t){return e.apply(null,t)}},Qe.isAxiosError=function(e){return G.isObject(e)&&!0===e.isAxiosError},Qe.mergeConfig=qe,Qe.AxiosHeaders=Ae,Qe.formToJSON=function(e){return ye(G.isHTMLForm(e)?new FormData(e):e)},Qe.getAdapter=De,Qe.HttpStatusCode=$e,Qe.default=Qe,Qe}));
//# sourceMappingURL=axios.min.js.map
!function(n){"use strict";function d(n,t){var r=(65535&n)+(65535&t);return(n>>16)+(t>>16)+(r>>16)<<16|65535&r}function f(n,t,r,e,o,u){return d((u=d(d(t,n),d(e,u)))<<o|u>>>32-o,r)}function l(n,t,r,e,o,u,c){return f(t&r|~t&e,n,t,o,u,c)}function g(n,t,r,e,o,u,c){return f(t&e|r&~e,n,t,o,u,c)}function v(n,t,r,e,o,u,c){return f(t^r^e,n,t,o,u,c)}function m(n,t,r,e,o,u,c){return f(r^(t|~e),n,t,o,u,c)}function c(n,t){var r,e,o,u;n[t>>5]|=128<<t%32,n[14+(t+64>>>9<<4)]=t;for(var c=1732584193,f=-271733879,i=-1732584194,a=271733878,h=0;h<n.length;h+=16)c=l(r=c,e=f,o=i,u=a,n[h],7,-680876936),a=l(a,c,f,i,n[h+1],12,-389564586),i=l(i,a,c,f,n[h+2],17,606105819),f=l(f,i,a,c,n[h+3],22,-1044525330),c=l(c,f,i,a,n[h+4],7,-176418897),a=l(a,c,f,i,n[h+5],12,1200080426),i=l(i,a,c,f,n[h+6],17,-1473231341),f=l(f,i,a,c,n[h+7],22,-45705983),c=l(c,f,i,a,n[h+8],7,1770035416),a=l(a,c,f,i,n[h+9],12,-1958414417),i=l(i,a,c,f,n[h+10],17,-42063),f=l(f,i,a,c,n[h+11],22,-1990404162),c=l(c,f,i,a,n[h+12],7,1804603682),a=l(a,c,f,i,n[h+13],12,-40341101),i=l(i,a,c,f,n[h+14],17,-1502002290),c=g(c,f=l(f,i,a,c,n[h+15],22,1236535329),i,a,n[h+1],5,-165796510),a=g(a,c,f,i,n[h+6],9,-1069501632),i=g(i,a,c,f,n[h+11],14,643717713),f=g(f,i,a,c,n[h],20,-373897302),c=g(c,f,i,a,n[h+5],5,-701558691),a=g(a,c,f,i,n[h+10],9,38016083),i=g(i,a,c,f,n[h+15],14,-660478335),f=g(f,i,a,c,n[h+4],20,-405537848),c=g(c,f,i,a,n[h+9],5,568446438),a=g(a,c,f,i,n[h+14],9,-1019803690),i=g(i,a,c,f,n[h+3],14,-187363961),f=g(f,i,a,c,n[h+8],20,1163531501),c=g(c,f,i,a,n[h+13],5,-1444681467),a=g(a,c,f,i,n[h+2],9,-51403784),i=g(i,a,c,f,n[h+7],14,1735328473),c=v(c,f=g(f,i,a,c,n[h+12],20,-1926607734),i,a,n[h+5],4,-378558),a=v(a,c,f,i,n[h+8],11,-2022574463),i=v(i,a,c,f,n[h+11],16,1839030562),f=v(f,i,a,c,n[h+14],23,-35309556),c=v(c,f,i,a,n[h+1],4,-1530992060),a=v(a,c,f,i,n[h+4],11,1272893353),i=v(i,a,c,f,n[h+7],16,-155497632),f=v(f,i,a,c,n[h+10],23,-1094730640),c=v(c,f,i,a,n[h+13],4,681279174),a=v(a,c,f,i,n[h],11,-358537222),i=v(i,a,c,f,n[h+3],16,-722521979),f=v(f,i,a,c,n[h+6],23,76029189),c=v(c,f,i,a,n[h+9],4,-640364487),a=v(a,c,f,i,n[h+12],11,-421815835),i=v(i,a,c,f,n[h+15],16,530742520),c=m(c,f=v(f,i,a,c,n[h+2],23,-995338651),i,a,n[h],6,-198630844),a=m(a,c,f,i,n[h+7],10,1126891415),i=m(i,a,c,f,n[h+14],15,-1416354905),f=m(f,i,a,c,n[h+5],21,-57434055),c=m(c,f,i,a,n[h+12],6,1700485571),a=m(a,c,f,i,n[h+3],10,-1894986606),i=m(i,a,c,f,n[h+10],15,-1051523),f=m(f,i,a,c,n[h+1],21,-2054922799),c=m(c,f,i,a,n[h+8],6,1873313359),a=m(a,c,f,i,n[h+15],10,-30611744),i=m(i,a,c,f,n[h+6],15,-1560198380),f=m(f,i,a,c,n[h+13],21,1309151649),c=m(c,f,i,a,n[h+4],6,-145523070),a=m(a,c,f,i,n[h+11],10,-1120210379),i=m(i,a,c,f,n[h+2],15,718787259),f=m(f,i,a,c,n[h+9],21,-343485551),c=d(c,r),f=d(f,e),i=d(i,o),a=d(a,u);return[c,f,i,a]}function i(n){for(var t="",r=32*n.length,e=0;e<r;e+=8)t+=String.fromCharCode(n[e>>5]>>>e%32&255);return t}function a(n){var t=[];for(t[(n.length>>2)-1]=void 0,e=0;e<t.length;e+=1)t[e]=0;for(var r=8*n.length,e=0;e<r;e+=8)t[e>>5]|=(255&n.charCodeAt(e/8))<<e%32;return t}function e(n){for(var t,r="0123456789abcdef",e="",o=0;o<n.length;o+=1)t=n.charCodeAt(o),e+=r.charAt(t>>>4&15)+r.charAt(15&t);return e}function r(n){return unescape(encodeURIComponent(n))}function o(n){return i(c(a(n=r(n)),8*n.length))}function u(n,t){return function(n,t){var r,e=a(n),o=[],u=[];for(o[15]=u[15]=void 0,16<e.length&&(e=c(e,8*n.length)),r=0;r<16;r+=1)o[r]=909522486^e[r],u[r]=1549556828^e[r];return t=c(o.concat(a(t)),512+8*t.length),i(c(u.concat(t),640))}(r(n),r(t))}function t(n,t,r){return t?r?u(t,n):e(u(t,n)):r?o(n):e(o(n))}"function"==typeof define&&define.amd?define(function(){return t}):"object"==typeof module&&module.exports?module.exports=t:n.md5=t}(this);
//# sourceMappingURL=md5.min.js.map
\ No newline at end of file
!function(e,t){function n(){t.body?t.body.style.fontSize=12*o+"px":t.addEventListener("DOMContentLoaded",n)}function d(){var e=i.clientWidth/10;i.style.fontSize=e+"px"}var i=t.documentElement,o=e.devicePixelRatio||1;if(n(),d(),e.addEventListener("resize",d),e.addEventListener("pageshow",function(e){e.persisted&&d()}),o>=2){var a=t.createElement("body"),s=t.createElement("div");s.style.border=".5px solid transparent",a.appendChild(s),i.appendChild(a),1===s.offsetHeight&&i.classList.add("hairlines"),i.removeChild(a)}}(window,document);
\ No newline at end of file
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.formulaEditor=t():e.formulaEditor=t()}(self,(()=>(()=>{"use strict";var e={614:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(81),s=n.n(i),r=n(645),o=n.n(r)()(s());o.push([e.id,":root {\n --me-theme: #bcd4e7;\n --me-theme-light: #d0e3f2;\n --me-hover: #f1f2f4;\n --me-border: #ddd;\n --me-gray: ##666;\n}\n.math-editor {\n color: #000;\n font-size: 18px;\n text-align: left;\n border: 1px solid #ccc;\n overflow: hidden;\n}\n.math-editor * {\n margin: 0;\n padding: 0;\n}\n.math-editor div {\n box-sizing: border-box;\n}\n.math-editor .me-menu {\n width: 100%;\n padding: 0 10px;\n background: var(--me-theme);\n border-bottom: 1px solid var(--me-border);\n}\n.math-editor .me-menu-item {\n float: left;\n position: relative;\n width: 50px;\n padding: 5px;\n text-align: center;\n cursor: pointer;\n}\n.math-editor .me-menu-item .icon {\n display: block;\n height: 22px;\n margin-bottom: 5px;\n line-height: 28px;\n}\n.math-editor .me-menu-item.active {\n background: var(--me-theme-light);\n}\n.math-editor .me-latex,\n.math-editor .me-svg {\n float: left;\n width: 50%;\n height: calc(100% - 1px);\n padding: 10px 12px;\n}\n.math-editor .me-latex {\n font-size: 14px;\n letter-spacing: 1px;\n overflow-y: auto;\n}\n.math-editor .me-svg {\n display: flex;\n align-items: center;\n background: #f6f7f8;\n overflow-x: auto;\n}\n.math-editor .me-droplist {\n position: absolute;\n left: 0;\n text-align: left;\n background: #fff;\n border: 1px solid var(--me-border);\n border-radius: 3px;\n}\n.math-editor .me-droplist .me-dp-title {\n height: 25px;\n padding-left: 12px;\n font-size: 12px;\n line-height: 29px;\n background: var(--me-theme-light);\n border-bottom: 1px solid var(--me-border);\n}\n.math-editor .me-droplist .me-item:hover {\n background: var(--me-hover);\n}\n.math-editor .me-droplist .me-list {\n padding: 5px 0;\n list-style: none;\n line-height: 1.36;\n}\n.math-editor .me-droplist .me-list .me-item {\n font-size: 16px;\n padding: 5px 12px;\n}\n.math-editor .me-droplist .me-list .me-item .title {\n margin-bottom: 8px;\n font-size: 12px;\n color: var(--me-gray);\n}\n.math-editor .me-droplist .me-block {\n list-style: none;\n padding: 5px;\n}\n.math-editor .me-droplist .me-block .me-item {\n box-sizing: border-box;\n display: inline-block;\n min-width: 32px;\n min-height: 32px;\n margin: 5px;\n padding: 2px;\n line-height: 30px;\n text-align: center;\n border: 1px solid var(--me-border);\n border-radius: 3px;\n}\n.math-editor .clearfix:after {\n content: '';\n display: block;\n height: 0;\n visibility: hidden;\n clear: both;\n}\n",""]);const a=o},645:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",i=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),i&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),i&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,i,s,r){"string"==typeof e&&(e=[[null,e,void 0]]);var o={};if(i)for(var a=0;a<this.length;a++){var l=this[a][0];null!=l&&(o[l]=!0)}for(var c=0;c<e.length;c++){var d=[].concat(e[c]);i&&o[d[0]]||(void 0!==r&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=r),n&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=n):d[2]=n),s&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=s):d[4]="".concat(s)),t.push(d))}},t}},81:e=>{e.exports=function(e){return e[1]}},379:e=>{var t=[];function n(e){for(var n=-1,i=0;i<t.length;i++)if(t[i].identifier===e){n=i;break}return n}function i(e,i){for(var r={},o=[],a=0;a<e.length;a++){var l=e[a],c=i.base?l[0]+i.base:l[0],d=r[c]||0,h="".concat(c," ").concat(d);r[c]=d+1;var m=n(h),u={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==m)t[m].references++,t[m].updater(u);else{var p=s(u,i);i.byIndex=a,t.splice(a,0,{identifier:h,updater:p,references:1})}o.push(h)}return o}function s(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,s){var r=i(e=e||[],s=s||{});return function(e){e=e||[];for(var o=0;o<r.length;o++){var a=n(r[o]);t[a].references--}for(var l=i(e,s),c=0;c<r.length;c++){var d=n(r[c]);0===t[d].references&&(t[d].updater(),t.splice(d,1))}r=l}}},569:e=>{var t={};e.exports=function(e,n){var i=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(n)}},216:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},565:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},795:e=>{e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var i="";n.supports&&(i+="@supports (".concat(n.supports,") {")),n.media&&(i+="@media ".concat(n.media," {"));var s=void 0!==n.layer;s&&(i+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),i+=n.css,s&&(i+="}"),n.media&&(i+="}"),n.supports&&(i+="}");var r=n.sourceMap;r&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleTagTransform(i,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},589:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}}},t={};function n(i){var s=t[i];if(void 0!==s)return s.exports;var r=t[i]={id:i,exports:{}};return e[i](r,r.exports,n),r.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var i={};return(()=>{n.d(i,{default:()=>P});var e=n(379),t=n.n(e),s=n(795),r=n.n(s),o=n(569),a=n.n(o),l=n(565),c=n.n(l),d=n(216),h=n.n(d),m=n(589),u=n.n(m),p=n(614),f={};function g(){}f.styleTagTransform=u(),f.setAttributes=c(),f.insert=a().bind(null,"head"),f.domAPI=r(),f.insertStyleElement=h(),t()(p.Z,f),p.Z&&p.Z.locals&&p.Z.locals;const v='<p data-we-empty-p=""><br></p>',x=["Control","Escape","Tab","CapsLock","Shift","Meta","Alt","ArrowLeft","ArrowUp","ArrowDown","ArrowRight","Enter","Backspace","Delete","Insert"],b=[" ","{","}"];function w(e){return Array.prototype.slice.call(e)}function y(e){return`<span>${e=e.replace(/[A-Za-z0-9]+/g,(e=>`<span style="color: #ee7959">${e}</span>`))}</span>&nbsp;`}function E(e){return`<div class="me-menu-item"><span class="icon">$${e}$</span></div>`}const C=new class{constructor(){this._ua=navigator.userAgent;const e=this._ua.match(/(Edge?)\/(\d+)/);this.isOldEdge=!!(e&&"Edge"===e[1]&&parseInt(e[2])<19),this.isFirefox=!(!/Firefox\/\d+/.test(this._ua)||/Seamonkey\/\d+/.test(this._ua))}isIE(){return"ActiveXObject"in window}isWebkit(){return/webkit/i.test(this._ua)}},L=[];function S(e){let t=[];const n=[];return t=Array.isArray(e)?e:e.split(";"),t.forEach((e=>{const t=e.split(":").map((e=>e.trim()));2===t.length&&n.push(t[0]+":"+t[1])})),n}class R{constructor(e){if(this.elems=[],this.length=this.elems.length,this.dataSource=new Map,!e)return;if(e instanceof R)return e;let t=[];const n=e instanceof Node?e.nodeType:-1;if(this.selector=e,1===n||9===n)t=[e];else if(function(e){return!!e&&(e instanceof HTMLCollection||e instanceof NodeList)}(e))t=w(e);else if(e instanceof Array)t=e;else if("string"==typeof e){const n=e.replace("/\n/mg","").trim();t=0===n.indexOf("<")?function(e){const t=document.createElement("div");return t.innerHTML=e,w(t.children)}(n):function(e){return w(document.querySelectorAll(e))}(n)}const i=t.length;if(!i)return this;let s=0;for(;s<i;s++)this.elems.push(t[s]);this.length=i}get id(){return this.elems[0].id}forEach(e){for(let t=0;t<this.length;t++){const n=this.elems[t];if(!1===e.call(n,n,t))break}return this}clone(e=!1){const t=[];return this.elems.forEach((n=>{t.push(n.cloneNode(!!e))})),T(t)}get(e=0){const t=this.length;return e>=t&&(e%=t),T(this.elems[e])}first(){return this.get(0)}last(){const e=this.length;return this.get(e-1)}on(e,t,n){return e?("function"==typeof t&&(n=t,t=""),this.forEach((i=>{if(!t)return void i.addEventListener(e,n);const s=function(e){const i=e.target;i.matches(t)&&n.call(i,e)};i.addEventListener(e,s),L.push({elem:i,selector:t,fn:n,agentFn:s})}))):this}off(e,t,n){return e?("function"==typeof t&&(n=t,t=""),this.forEach((function(i){if(t){let s=-1;for(let e=0;e<L.length;e++){const r=L[e];if(r.selector===t&&r.fn===n&&r.elem===i){s=e;break}}if(-1!==s){const{agentFn:t}=L.splice(s,1)[0];i.removeEventListener(e,t)}}else i.removeEventListener(e,n)}))):this}attr(e,t){return void 0===t?this.elems[0].getAttribute(e)||"":this.forEach((function(n){n.setAttribute(e,t)}))}removeAttr(e){this.forEach((function(t){t.removeAttribute(e)}))}addClass(e){return e?this.forEach((function(t){if(t.className){let n=t.className.split(/\s/);n=n.filter((e=>!!e.trim())),n.indexOf(e)<0&&n.push(e),t.className=n.join(" ")}else t.className=e})):this}removeClass(e){return e?this.forEach((function(t){if(!t.className)return;let n=t.className.split(/\s/);n=n.filter((t=>!(!(t=t.trim())||t===e))),t.className=n.join(" ")})):this}hasClass(e){if(!e)return!1;const t=this.elems[0];return!!t.className&&t.className.split(/\s/).includes(e)}css(e,t){let n;return n=""===t?"":`${e}:${t};`,this.forEach((t=>{const i=(t.getAttribute("style")||"").trim();if(i){let s=S(i);s=s.map((t=>0===t.indexOf(e)?n:t)),""!==n&&s.indexOf(n)<0&&s.push(n),""===n&&(s=S(s)),t.setAttribute("style",s.join("; "))}else t.setAttribute("style",n)}))}getBoundingClientRect(){return this.elems[0].getBoundingClientRect()}show(){return this.css("display","block")}hide(){return this.css("display","none")}children(){const e=this.elems[0];return e?T(e.children):null}childNodes(){const e=this.elems[0];return e?T(e.childNodes):null}replaceChildAll(e){const t=this.getNode(),n=this.elems[0];for(;n.hasChildNodes();)t.firstChild&&n.removeChild(t.firstChild);this.append(e)}append(e){return this.forEach((t=>{e.forEach((function(e){t.appendChild(e)}))}))}remove(){return this.forEach((e=>{if(e.remove)e.remove();else{const t=e.parentElement;t&&t.removeChild(e)}}))}isContain(e){const t=this.elems[0],n=e.elems[0];return t.contains(n)}getNodeName(){return this.elems[0].nodeName}getNode(e=0){return this.elems[e]}find(e){return T(this.elems[0].querySelectorAll(e))}text(e){return void 0===e?this.elems[0].innerHTML.replace(/<[^>]+>/g,(()=>"")):this.forEach((function(t){t.innerHTML=e}))}html(e){const t=this.elems[0];return void 0===e?t.innerHTML:(t.innerHTML=e,this)}val(){return this.elems[0].value.trim()}focus(){return this.forEach((e=>{e.focus()}))}prev(){return T(this.elems[0].previousElementSibling)}next(){return T(this.elems[0].nextElementSibling)}getNextSibling(){return T(this.elems[0].nextSibling)}parent(){return T(this.elems[0].parentElement)}parentUntil(e,t){const n=t||this.elems[0];if("BODY"===n.nodeName)return null;const i=n.parentElement;return i?i.matches(e)?T(i):this.parentUntil(e,i):null}equal(e){return e instanceof R?this.elems[0]===e.elems[0]:e instanceof HTMLElement&&this.elems[0]===e}insertBefore(e){const t=T(e).elems[0];return t?this.forEach((e=>{const n=t.parentNode;null==n||n.insertBefore(e,t)})):this}insertAfter(e){const t=T(e).elems[0],n=t&&t.nextSibling;return t?this.forEach((function(e){const i=t.parentNode;n?i.insertBefore(e,n):i.appendChild(e)})):this}data(e,t){if(void 0===t)return this.dataSource.get(e);this.dataSource.set(e,t)}getNodeTop(e){if(this.length<1)return this;const t=this.parent();return e.$textLatexElem.equal(this)||e.$textLatexElem.equal(t)?this:(t.prior=this,t.getNodeTop(e))}getOffsetData(){const e=this.elems[0];return{top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight,parent:e.offsetParent}}scrollTop(e){this.elems[0].scrollTo({top:e})}renderFormula(){return e=this.elems,window.MathJax&&window.MathJax.typesetPromise?(e&&!Array.isArray(e)&&(e=[e]),window.MathJax.typesetPromise(e)):Promise.reject();var e}}function T(...e){return new R(...e)}const $=T,N={width:620,height:272,menuHeight:38,mathJaxUrl:"https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/mathjax/3.2.0/es5/tex-svg.min.js"},k={menus:["presets","operators","greekLetters","inequation","AdvancedMath","LinearAlgebra","arrows","Trigonometric"],presets:e=>[{label:e("fe.pt"),value:"a^2+b^2=c^2"},{label:e("fe.h"),value:"\\frac{x^2}{a^2}-\\frac{y^2}{b^2}=1"},{label:e("fe.tfr"),value:"\\sin^2\\theta +\\cos^2\\theta = 1"},{label:e("fe.d"),value:"\\left( e^x \\right) ' = e^x"},{label:e("fe.nl"),value:"\\int_a^b f(x) dx = F(b) - F(a)"}],operators:["+","-","\\pm","\\mp","\\times","\\div","\\ast","\\cdot","\\cap","\\cup","\\aleph","\\Re","\\top","\\bot","\\infty","\\partial","\\forall","\\exists","\\neg","\\because","\\therefore","\\varnothing","\\frac{b}{a}","\\circ","\\bullet","\\prime","\\triangle","\\angle","\\surd","\\barwedge","\\veebar","\\odot","\\oplus","\\otimes","\\oslash","\\circledcirc","\\boxdot","\\bigtriangledown","\\dagger","\\diamond","\\star","\\triangleleft","\\triangleright"],greekLetters:["\\alpha","\\beta","\\gamma","\\delta","\\epsilon","\\zeta","\\eta","\\theta","\\iota","\\kappa","\\lambda","\\mu","\\nu","\\xi","\\omicron","\\pi","\\rho","\\sigma","\\tau","\\upsilon","\\phi","\\chi","\\psi","\\omega","\\varepsilon","\\vartheta","\\varpi","\\varrho","\\varsigma","\\varphi","\\Gamma","\\Delta","\\Theta","\\Lambda","\\Xi","\\Pi","\\Sigma","\\Upsilon","\\Phi","\\Psi","\\Omega"],inequation:["=","\\leq","\\geq","\\prec","\\succ","\\preceq","\\succeq","\\ll","\\gg","\\equiv","\\sim","\\simeq","\\asymp","\\approx","\\ne","\\subset","\\supset","\\subseteq","\\supseteq","\\nsubseteq","\\nsupseteq","\\in","\\ni","\\notin"],AdvancedMath:["x_{a}","x^{b}","x_{a}^{b}","\\sqrt{x}","\\sqrt[n]{x}","\\bigcap_{a}^{b}","\\bigcup_{a}^{b}","\\prod_{a}^{b}","\\coprod_{a}^{b}","\\int_{a}^{b}","\\oint_{a}^{b}","\\sum_{a}^{b}{x}","\\lim_{a \\rightarrow b}{x}","\\frac{dy}{dx}|_{t=0}","\\vec{a}","\\bar{a}","\\tilde{a}","\\dot{a}","\\ddot{a}","\\hat{a}","\\overleftarrow{ab}","\\overline{ab}","\\overrightarrow{ab}","\\underline{ab}","\\overbrace{ab}","\\underbrace{ab}"],LinearAlgebra:["A^{*}","A^{T}","A^{-1}","\\left( x \\right)","\\left[ x \\right]","\\left \\{ x \\right \\}","\\left| x \\right|","\\begin{pmatrix}a&b\\\\c&d\\\\ \\end{pmatrix}","\\begin{bmatrix}a&b\\\\c&d\\\\ \\end{bmatrix}","\\begin{Bmatrix}a&b\\\\c&d\\\\ \\end{Bmatrix}","\\begin{vmatrix}a&b\\\\c&d\\\\ \\end{vmatrix}"],arrows:["\\leftarrow","\\rightarrow","\\leftrightarrow","\\Leftarrow","\\Rightarrow","\\Leftrightarrow","\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow"],trigonometric:["\\sin \\theta","\\cos \\theta","\\tan \\theta","\\csc \\theta","\\sec \\theta","\\cot \\theta","\\arcsin \\theta","\\arccos \\theta"]},A=function e(t,n){const i=t.$textLatexElem,s=i.children();if(!s||!s.length)return i.append($(v)),void e(t);const r=s.last();if(n){const n=r.html().toLowerCase(),s=r.getNodeName();if("<br>"!==n&&"<br/>"!==n||"P"!==s)return i.append($(v)),void e(t)}t.selection.createRangeByElem(r,!1,!0),t.selection.restoreSelection()},_=class extends class{constructor(e,t){this.$elem=e,this.editor=t,this._active=!1,e.on("click",(n=>{n.stopPropagation(),t.selection.getRange()&&(e.addClass("active"),this.clickHandler())}))}clickHandler(){}active(){this._active=!0,this.$elem.addClass("me-active")}unActive(){this._active=!1,this.$elem.removeClass("me-active")}get isActive(){return this._active}}{constructor(e,t,n){super(e,t);const i=new class{constructor(e,t){this.hideTimeoutId=0,this.menu=e,this.conf=t;const{height:n,menuHeight:i,zIndex:s=0}=this.menu.editor.config,r=$(`<p>${t.title}</p>`).addClass("me-dp-title"),o=$('<div class="me-droplist"></div>').append(r).css("z-index",s+1),a=t.list||[],l=t.type||"block",c=t.clickHandler||g,d=$(`<ul class="${"list"===l?"me-list":"me-block"}"></ul>`).css("max-height",n-i-76+"px").css("overflow-y","auto");a.forEach((e=>{const t=e.$elem,n=e.value,i=$('<li class="me-item"></li>');t&&(i.append(t),d.append(i),i.on("click",(e=>{c(n),e.stopPropagation(),this.hideTimeoutId=window.setTimeout((()=>{this.hide()}))})))})),o.append(d),o.on("mouseleave",(()=>{this.hideTimeoutId=window.setTimeout((()=>{this.hide()}))})),this.$container=o,this.rendered=!1,this._show=!1}show(){this.hideTimeoutId&&clearTimeout(this.hideTimeoutId);const e=this.menu.$elem,t=this.$container;if(!this._show){if(this.rendered)t.show();else{const{menuHeight:n}=this.menu.editor.config,i=this.conf.width||232;t.css("top",n-1+"px").css("width",i+"px"),e.append(t),this.rendered=!0,e.renderFormula()}this._show=!0}}hide(){const e=this.$container;this._show&&(e.hide(),this._show=!1)}get isShow(){return this._show}}(this,n);this.dropList=i,e.on("mouseover",(()=>{t.selection.getRange()&&(e.addClass("active"),i.show())})).on("mouseleave",(()=>{e.removeClass("active"),i.hideTimeoutId=window.setTimeout((()=>{i.hide()}))}))}command(e){var t;const n=this.editor,i=n.selection.isSelectionEmpty();if(!(null===(t=n.selection.getSelectionContainerElem())||void 0===t?void 0:t.elems[0]))return;const s=y(e);n.cmd.do(s),i&&(n.selection.collapseRange(),n.selection.restoreSelection())}},M=class{constructor(e){this.itemList=e.map((e=>({$elem:$(`<span>$${e}$</span>`),value:e})))}getItemList(){return this.itemList}},H={presets:class extends _{constructor(e){const t=$(E("f_{(x)}")),n=new class{constructor(e){this.itemList=e.map((({label:e,value:t})=>({$elem:$(`<p class="title">${e}:</p><p>$ ${t} $</p>`),value:t})))}getItemList(){return this.itemList}}(e.menusConfig.presets(e.t)),i={width:252,title:e.t("fe.p"),type:"list",list:n.getItemList(),clickHandler:e=>{this.command(e)}};super(t,e,i)}},operators:class extends _{constructor(e){const t=$(E("+")),n=new M(e.menusConfig.operators),i={title:e.t("fe.o"),list:n.getItemList(),clickHandler:e=>{this.command(e)}};super(t,e,i)}},greekLetters:class extends _{constructor(e){const t=$(E("\\alpha")),n=new M(e.menusConfig.greekLetters),i={title:e.t("fe.gl"),list:n.getItemList(),clickHandler:e=>{this.command(e)}};super(t,e,i)}},inequation:class extends _{constructor(e){const t=$(E("\\approx")),n=new M(e.menusConfig.inequation),i={title:e.t("fe.i"),list:n.getItemList(),clickHandler:e=>{this.command(e)}};super(t,e,i)}},AdvancedMath:class extends _{constructor(e){const t=$(E("\\Sigma")),n=new M(e.menusConfig.AdvancedMath),i={width:244,title:e.t("fe.am"),list:n.getItemList(),clickHandler:e=>{this.command(e)}};super(t,e,i)}},LinearAlgebra:class extends _{constructor(e){const t=$(E("\\left|x\\right|")),n=new M(e.menusConfig.LinearAlgebra),i={width:244,title:e.t("fe.lg"),list:n.getItemList(),clickHandler:e=>{this.command(e)}};super(t,e,i)}},arrows:class extends _{constructor(e){const t=$(E("\\rightarrow")),n=new M(e.menusConfig.arrows),i={title:e.t("fe.a"),list:n.getItemList(),clickHandler:e=>{this.command(e)}};super(t,e,i)}},Trigonometric:class extends _{constructor(e){const t=$(E("\\theta")),n=new M(e.menusConfig.trigonometric),i={title:e.t("fe.t"),list:n.getItemList(),clickHandler:e=>{this.command(e)}};super(t,e,i)}}},q={"fe.a":"箭头符号","fe.am":"高数","fe.lg":"线代","fe.gl":"希腊字母","fe.i":"不等式","fe.o":"运算符","fe.p":"预设公式","fe.t":"三角函数","fe.l":"资源加载中...","fe.pt":"勾股定理","fe.h":"双曲线","fe.tfr":"三角函数关系","fe.d":"导数","fe.nl":"牛莱公式"};function I(e){return q[e]||e}class O{constructor(){this.config=N,this.menusConfig=k,this.$editorRootElem=$('<div class="math-editor"></div>'),this.$toolbarElem=$('<div class="me-menu"></div>'),this.$textLatexElem=$('<div class="me-latex"></div>'),this.$textSvgElem=$('<div class="me-svg"></div>'),this.cmd=new class{constructor(e){this.editor=e}do(e){const t=this.editor.selection;t.getRange()&&(t.restoreSelection(),this.insertHtml(e),this.renderFormula(),t.saveRange(),t.restoreSelection())}insert(e,t){if(t){const t=this.editor.selection.getRange();if(t){const e=t.startContainer;t.setStart(e,t.endOffset),t.setEnd(e,t.endOffset),t.deleteContents()}return void this.insertHtml(" "===e?"&nbsp;":e)}const n=`<span style="color: #ee7959">${" "!==(i=e)?i:"&nbsp;"}</span>`;var i;this.do(n)}renderFormula(){const e=this.editor;let t=e.latex.text();const n=e.$textSvgElem;if(!t.replace(/(&nbsp;)|( )/g,""))return void n.html("<p></p>");if(t=t.replace(/&nbsp;/g," ").trim(),n.attr("data-latex")===t)return;const i=`$ ${t} $`;n.attr("data-latex",t),n.html(i),n.renderFormula()}insertHtml(e){const t=this.editor,n=t.selection.getRange();if(n)if(this.queryCommandSupported("insertHTML"))this.execCommand("insertHTML",e);else if(n.insertNode){if(n.deleteContents(),$(e).elems.length>0)n.insertNode($(e).elems[0]);else{const t=document.createElement("p");t.appendChild(document.createTextNode(e)),n.insertNode(t)}t.selection.collapseRange()}}execCommand(e,t){document.execCommand(e,!1,t)}queryCommandSupported(e){return document.queryCommandSupported(e)}}(this),this.selection=new class{constructor(e){this._currentRange=null,this.editor=e}getRange(){return this._currentRange}saveRange(e){if(e)return void(this._currentRange=e);const t=window.getSelection();if(0===t.rangeCount)return;const n=t.getRangeAt(0),i=this.getSelectionContainerElem(n);if(!(null==i?void 0:i.length))return;const s=this.editor,r=s.$textLatexElem;if(r.isContain(i)){if(r.elems[0]===i.elems[0]&&r.html().trim()===v){const e=r.children(),t=null==e?void 0:e.last();s.selection.createRangeByElem(t,!0,!0),s.selection.restoreSelection()}this._currentRange=n}}collapseRange(e=!1){const t=this._currentRange;t&&t.collapse(e)}getSelectionText(){const e=this._currentRange;return e?e.toString():""}getSelectionContainerElem(e){const t=e||this._currentRange;if(t){const e=t.commonAncestorContainer;return $(1===e.nodeType?e:e.parentNode)}}getSelectionStartElem(e){const t=e||this._currentRange;if(t){const e=t.startContainer;return $(1===e.nodeType?e:e.parentNode)}}getSelectionEndElem(e){const t=e||this._currentRange;if(t){const e=t.endContainer;return $(1===e.nodeType?e:e.parentNode)}}isSelectionEmpty(){const e=this._currentRange;return!(!e||!e.startContainer||e.startContainer!==e.endContainer||e.startOffset!==e.endOffset)}restoreSelection(){const e=window.getSelection(),t=this._currentRange;e&&t&&(e.removeAllRanges(),e.addRange(t))}createRangeByElems(e,t){const n=window.getSelection?window.getSelection():document.getSelection();null==n||n.removeAllRanges();const i=document.createRange();i.setStart(e,0),i.setEnd(t,t.childNodes.length||1),this.saveRange(i),this.restoreSelection()}createRangeByElem(e,t,n){if(!e.length)return;const i=e.elems[0],s=document.createRange();n?s.selectNodeContents(i):s.selectNode(i),null!=t&&(s.collapse(t),t||(this.saveRange(s),this.editor.selection.moveCursor(i))),this.saveRange(s)}getSelectionRangeTopNodes(){var e,t;const n=null===(e=this.getSelectionStartElem())||void 0===e?void 0:e.getNodeTop(this.editor),i=null===(t=this.getSelectionEndElem())||void 0===t?void 0:t.getNodeTop(this.editor);return this.recordSelectionNodes($(n),$(i))}moveCursor(e,t){var n;const i=this.getRange();let s=3===e.nodeType?null===(n=e.nodeValue)||void 0===n?void 0:n.length:e.childNodes.length;(C.isFirefox||C.isIE())&&0!==s&&(3!==e.nodeType&&"BR"!==e.childNodes[s-1].nodeName||(s-=1));const r=null!=t?t:s;i&&e&&(i.setStart(e,r),i.setEnd(e,r),this.restoreSelection())}getCursorPos(){const e=window.getSelection();return null==e?void 0:e.anchorOffset}clearWindowSelectionRange(){const e=window.getSelection();e&&e.removeAllRanges()}recordSelectionNodes(e,t){const n=[];let i=!0;try{let s=e;const r=this.editor.$textLatexElem;for(;i;){const e=null==s?void 0:s.getNodeTop(this.editor);"BODY"===e.getNodeName()&&(i=!1),e.length>0&&(n.push($(s)),(null==t?void 0:t.equal(e))||r.equal(e)?i=!1:s=e.getNextSibling())}}catch(e){i=!1}return n}setRangeToElem(e){const t=this.getRange();null==t||t.setStart(e,0),null==t||t.setEnd(e,0)}}(this),this.menus=new class{constructor(e){this.editor=e,this.menuList=[],this.constructorList=H}extend(e,t){t&&"function"==typeof t&&(this.constructorList[e]=t)}init(){this.editor.menusConfig.menus.forEach((e=>{const t=this.constructorList[e];this._initMenuList(e,t)})),this._addToToolbar()}_initMenuList(e,t){if("function"==typeof t)if(this.menuList.some((t=>t.key===e)))console.warn("Duplicate menu name:"+e);else{const n=new t(this.editor);n.key=e,this.menuList.push(n)}}_addToToolbar(){const e=this.editor.$toolbarElem;e.addClass("clearfix"),this.menuList.forEach((t=>{const n=t.$elem;n&&e.append(n)}))}menuFind(e){const t=this.menuList;for(let n=0,i=t.length;n<i;n++)if(t[n].key===e)return t[n];return t[0]}}(this),this.latex=new class{constructor(e){this.editor=e}init(){this._saveRange()}clear(){this.editor.$textLatexElem.replaceChildAll($(v))}text(){return this.editor.$textLatexElem.text().replace(/&nbsp;/g," ")}_saveRange(){const e=this.editor,t=e.$textLatexElem,n=$(document);function i(){e.selection.saveRange()}function s(){i(),n.off("mouseup",s)}function r(){n.on("mouseup",s),t.off("mouseleave",r)}t.on("keyup",function(e,t=200){let n=0;return function(...i){n&&window.clearTimeout(n),n=window.setTimeout((()=>{n=0,e.call(this,...i)}),t)}}((function(){i(),e.cmd.renderFormula()}))),t.on("keydown",(function(t){const n=t.key,s=t.ctrlKey&&!x.includes(n),r=b.includes(n);(s||r)&&(t.preventDefault(),i(),e.cmd.insert(n,r))})),t.on("click",(function e(){i(),t.off("click",e)})),t.on("mousedown",(()=>{t.on("mouseleave",r)})),t.on("mouseup",(()=>{t.off("mouseleave",r),setTimeout((()=>{e.selection.getRange()&&i()}),0)}))}}(this),this.t=I}create(e,t){!function(e){if(window.MathJax)return;const t=document.createElement("script");t.src=e,t.async=!0,document.head.appendChild(t)}(this.config.mathJaxUrl),this.menus.init(),this.latex.init(),function(e){const{$editorRootElem:t,$toolbarElem:n,$textLatexElem:i,$textSvgElem:s,config:r}=e;t.append(n);const o=$("<div></div>");o.addClass("clearfix").css("width","100%").css("height",r.height-r.menuHeight+"px").css("overflow","hidden"),i.attr("contenteditable","true").css("outline","none").css("border-right","1px solid #ccc"),o.append(i).append(s),t.css("width",r.width+"px").css("height",r.height+"px"),t.append(o)}(this);const n=$(e);n.text(this.t("fe.l")),function(e){window.MathJax?e&&e():window.MathJax={tex:{inlineMath:[["$","$"]],processEnvironments:!0,processRefs:!0},options:{skipHtmlTags:["noscript","style","textarea","pre","code"],ignoreHtmlClass:"tex2jax_ignore"},startup:{pageReady:()=>e&&e()},svg:{fontCache:"global"}}}((()=>{n.text("").append(this.$editorRootElem),this.initSelection(),this.$toolbarElem.renderFormula(),t&&t()}))}append(e){const t=y(e);this.cmd.do(t)}initSelection(){A(this)}destoryDom(){this.$editorRootElem.remove()}}O.$=$;const F=O;try{document}catch(e){throw new Error("Please run in the browser environment!")}const P=F})(),i.default})()));
\ No newline at end of file
window._iconfont_svg_string_4466479='<svg><symbol id="icon-a-tooltip" viewBox="0 0 1024 1024"><path d="M512 141.312C307.2 141.312 141.312 307.2 141.312 512c0 89.6 31.744 171.52 84.48 236.032l-15.36 93.696 68.608-40.96c63.488 51.2 144.896 82.432 232.96 82.432 204.8 0 370.688-165.888 370.688-370.688 0-205.312-165.888-371.2-370.688-371.2z m-185.344 417.28c-25.6 0-46.592-20.992-46.592-46.592s20.992-46.592 46.592-46.592 46.592 20.992 46.592 46.592c-0.512 25.6-20.992 46.592-46.592 46.592z m185.344 0c-25.6 0-46.592-20.992-46.592-46.592s20.992-46.592 46.592-46.592 46.592 20.992 46.592 46.592-20.992 46.592-46.592 46.592z m185.344 0c-25.6 0-46.592-20.992-46.592-46.592s20.992-46.592 46.592-46.592 46.592 20.992 46.592 46.592-20.992 46.592-46.592 46.592z" ></path></symbol><symbol id="icon-a-link" viewBox="0 0 1024 1024"><path d="M335.872 845.312c-46.08 0-89.088-17.92-121.856-50.176-32.256-32.256-50.176-75.776-50.176-121.856s17.92-89.088 50.176-121.856L266.24 499.2c6.144-6.656 14.336-10.752 23.552-11.776h3.072c17.92 0 32.768 13.824 34.304 32.256 1.024 11.776-3.072 22.016-11.776 29.184l-12.8 10.752 1.536 1.536-39.424 39.424c-18.944 18.944-29.696 44.544-29.696 71.68s10.752 52.736 29.696 71.68c18.944 18.944 44.544 29.696 71.68 29.696 27.136 0 52.736-10.752 71.68-29.696l135.68-135.68c30.208-30.208 38.4-74.752 21.504-113.664l-0.512-0.512-0.512-0.512c-2.048-3.584-3.584-8.192-3.584-13.312-1.024-9.216 2.048-17.92 8.192-25.088 6.144-7.168 14.848-11.264 24.064-12.288h3.072c11.776 0 23.04 6.656 29.184 16.384v0.512l1.536 3.072c0 0.512 0.512 2.048 1.536 3.584 29.696 66.56 15.36 141.824-35.84 193.024l-135.68 135.68c-31.744 32.256-74.752 50.176-120.832 50.176z" ></path><path d="M428.032 562.688c-11.776 0-23.04-6.656-29.184-16.384v-0.512l-1.536-3.072c0-0.512-0.512-2.048-1.536-3.584-28.672-65.024-14.848-142.336 35.328-192l135.68-135.68c32.256-32.256 75.776-50.176 121.856-50.176s89.088 17.92 121.856 50.176c32.256 32.256 50.176 75.776 50.688 121.344 0 46.08-17.408 89.088-49.664 120.832l-52.224 52.224c-6.144 6.656-14.336 10.752-23.552 11.776h-3.072c-17.92 0-32.768-13.824-34.304-32.256-1.024-11.776 3.072-22.016 11.776-29.184l12.8-10.752-1.536-1.536 39.424-39.424c39.424-39.424 39.424-103.936 0-143.36-18.944-18.944-44.544-29.696-71.68-29.696-27.136 0-52.736 10.752-71.68 29.696L480.256 396.8c-30.208 30.72-38.4 75.264-21.504 113.664l0.512 0.512 0.512 0.512c2.048 3.584 3.584 8.192 3.584 13.312 1.024 9.216-2.048 17.92-8.192 25.088-6.144 7.168-14.848 11.264-24.064 12.288-1.024 0.512-2.048 0.512-3.072 0.512z" ></path></symbol><symbol id="icon-writing" viewBox="0 0 1024 1024"><path d="M830.976 489.472l45.056 45.568-322.048 320-14.848-14.848 14.848 14.848h-45.056v-45.568c-0.512 0 322.048-320 322.048-320z m-84.48-318.976c35.328 0 64 28.672 64 64v192l-64 64v-256H394.752v554.496h53.248L384 853.504H277.504c-35.328 0-64-28.672-64-64V234.496c0-35.328 28.672-64 64-64h468.992zM330.752 234.496H277.504v554.496h53.248V234.496z m287.744 192v64H448V426.496h170.496z m64-128v64H448V298.496h234.496z" ></path></symbol><symbol id="icon-fenxiang_2" viewBox="0 0 1024 1024"><path d="M779.636364 954.181818h-535.272728A174.778182 174.778182 0 0 1 69.818182 779.636364v-535.272728A174.778182 174.778182 0 0 1 244.363636 69.818182H512a34.909091 34.909091 0 0 1 0 69.818182H244.363636A104.96 104.96 0 0 0 139.636364 244.363636v535.272728a104.96 104.96 0 0 0 104.727272 104.727272h535.272728a104.96 104.96 0 0 0 104.727272-104.727272V512a34.909091 34.909091 0 0 1 69.818182 0v267.636364a174.778182 174.778182 0 0 1-174.545454 174.545454z" ></path><path d="M500.363636 558.545455a35.141818 35.141818 0 0 1-24.669091-10.24 34.676364 34.676364 0 0 1 0-49.338182l418.909091-418.909091a34.909091 34.909091 0 0 1 49.338182 49.338182l-418.909091 418.909091a35.141818 35.141818 0 0 1-24.669091 10.24z" ></path><path d="M919.272727 139.636364h-186.181818a34.909091 34.909091 0 0 1 0-69.818182h186.181818a34.909091 34.909091 0 0 1 0 69.818182z" ></path><path d="M919.272727 325.818182a34.909091 34.909091 0 0 1-34.909091-34.909091v-186.181818a34.909091 34.909091 0 0 1 69.818182 0v186.181818a34.909091 34.909091 0 0 1-34.909091 34.909091z" ></path></symbol><symbol id="icon-hualangshangchuan" viewBox="0 0 1024 1024"><path d="M341.333333 42.666667v170.666666H170.666667v597.333334h682.666666V128h43.008c23.381333 0 42.325333 18.986667 42.325334 42.368v683.264a42.666667 42.666667 0 0 1-42.325334 42.368H127.658667A42.368 42.368 0 0 1 85.333333 853.632V170.368A42.666667 42.666667 0 0 1 127.658667 128H256V42.666667h85.333333z m170.666667 298.666666l170.666667 170.666667h-128v170.666667h-85.333334v-170.666667H341.333333l170.666667-170.666667z m256-298.666666v170.666666h-341.333333V128h256V42.666667h85.333333z" ></path></symbol><symbol id="icon-tubiao" viewBox="0 0 1024 1024"><path d="M178.282667 32m64 0l685.717333 0q64 0 64 64l0 701.674667q0 64-64 64l-685.717333 0q-64 0-64-64l0-701.674667q0-64 64-64Z" fill="#AA1941" ></path><path d="M786.282667 578.24v-255.573333c-0.042667-34.197333-27.093333-61.909333-60.501334-61.973334h-249.6a32.234667 32.234667 0 0 0-29.525333 16.042667 33.877333 33.877333 0 0 0 0 34.24c6.186667 10.538667 17.536 16.704 29.525333 16.042667h198.549334L427.306667 576.405333a33.770667 33.770667 0 0 0 0 46.933334 31.893333 31.893333 0 0 0 45.76 0l248.362666-249.856v204.757333c0 18.346667 14.506667 33.194667 32.426667 33.194667s32.426667-14.869333 32.426667-33.194667z" fill="#FFFFFF" ></path></symbol><symbol id="icon-a-expand2" viewBox="0 0 1024 1024"><path d="M178.282667 32m64 0l685.717333 0q64 0 64 64l0 701.674667q0 64-64 64l-685.717333 0q-64 0-64-64l0-701.674667q0-64 64-64Z" ></path><path d="M786.282667 578.24v-255.573333c-0.042667-34.197333-27.093333-61.909333-60.501334-61.973334h-249.6a32.234667 32.234667 0 0 0-29.525333 16.042667 33.877333 33.877333 0 0 0 0 34.24c6.186667 10.538667 17.536 16.704 29.525333 16.042667h198.549334L427.306667 576.405333a33.770667 33.770667 0 0 0 0 46.933334 31.893333 31.893333 0 0 0 45.76 0l248.362666-249.856v204.757333c0 18.346667 14.506667 33.194667 32.426667 33.194667s32.426667-14.869333 32.426667-33.194667z" ></path></symbol><symbol id="icon-lianjie3" viewBox="0 0 1024 1024"><path d="M418.880213 325.845333c42.453333 0 82.56 9.109333 120.384 27.242667 28.373333 13.354667 54.058667 31.573333 77.056 54.613333a272.192 272.192 0 0 1 54.592 77.013334c-18.197333 18.218667-40.149333 27.306667-65.813333 27.306666a97.706667 97.706667 0 0 1-27.242667-4.053333 189.397333 189.397333 0 0 0-61.866666-61.824 183.445333 183.445333 0 0 0-97.066667-27.242667 186.496 186.496 0 0 0-70.570667 13.824 183.018667 183.018667 0 0 0-61.098666 40.746667L147.62688 613.12a182.272 182.272 0 0 0-40.746667 61.098667 186.346667 186.346667 0 0 0-13.802666 70.528c0 24.234667 4.608 47.744 13.824 70.506666a182.272 182.272 0 0 0 40.725333 61.098667 182.741333 182.741333 0 0 0 61.077333 40.746667 186.624 186.624 0 0 0 70.592 13.824 186.624 186.624 0 0 0 70.549334-13.802667 182.741333 182.741333 0 0 0 61.098666-40.746667l97.813334-97.792a364.373333 364.373333 0 0 0 118.869333 12.010667c-3.669333 4.074667-7.402667 8.085333-11.264 11.989333l-139.605333 139.626667a275.114667 275.114667 0 0 1-91.477334 61.098667 279.018667 279.018667 0 0 1-105.984 20.714666c-36.394667 0-71.744-6.954667-106.026666-20.906666a275.157333 275.157333 0 0 1-91.456-60.906667 274.602667 274.602667 0 0 1-61.077334-91.456A279.488 279.488 0 0 1 0.000213 744.746667a279.616 279.616 0 0 1 20.736-106.005334 274.602667 274.602667 0 0 1 61.077334-91.456l139.648-139.626666c2.709333-2.645333 6.677333-6.4 11.989333-11.242667a279.552 279.552 0 0 1 185.472-70.570667l-0.042667-0.021333zM744.74688 0.042667a278.826667 278.826667 0 0 1 105.962667 20.757333 273.749333 273.749333 0 0 1 91.477333 61.077333 273.322667 273.322667 0 0 1 61.098667 91.413334 280.256 280.256 0 0 1-0.170667 211.989333 274.368 274.368 0 0 1-60.949333 91.413333l-139.648 139.626667c-2.666667 2.730667-6.656 6.485333-11.989334 11.306667a274.069333 274.069333 0 0 1-86.933333 52.501333c-31.488 11.904-64.874667 18.005333-98.56 18.048-42.389333 0-82.56-9.109333-120.341333-27.242667a272.789333 272.789333 0 0 1-77.077334-54.613333 272.576 272.576 0 0 1-54.570666-77.034667c18.176-18.197333 40.106667-27.285333 65.813333-27.285333 8.96 0 18.069333 1.365333 27.264 4.032a188.693333 188.693333 0 0 0 61.802667 61.824 183.594667 183.594667 0 0 0 97.109333 27.242667 186.730667 186.730667 0 0 0 70.528-13.824 182.250667 182.250667 0 0 0 61.077333-40.746667l139.648-139.648a182.229333 182.229333 0 0 0 40.789334-61.077333 186.602667 186.602667 0 0 0 0-141.034667 182.421333 182.421333 0 0 0-40.789334-61.098667 182.698667 182.698667 0 0 0-61.098666-40.768 186.901333 186.901333 0 0 0-141.077334 0 182.314667 182.314667 0 0 0-61.056 40.746667l-97.856 97.770667a364.906667 364.906667 0 0 0-96.341333-12.693334c-5.333333 0-12.864 0.213333-22.570667 0.682667 3.669333-4.074667 7.424-8.064 11.285334-11.968l139.648-139.626667A274.410667 274.410667 0 0 1 638.677547 20.906667 278.613333 278.613333 0 0 1 744.661547 0l0.064 0.042667z" ></path></symbol><symbol id="icon-a-lianjie31" viewBox="0 0 1024 1024"><path d="M307.2 0v204.8H102.4v716.8h819.2V102.4h51.626667A50.816 50.816 0 0 1 1024 153.237333v819.925334A51.2 51.2 0 0 1 973.226667 1024H50.773333A50.837333 50.837333 0 0 1 0 973.162667V153.237333A51.2 51.2 0 0 1 50.773333 102.4H204.8V0h102.4zM512 358.4l204.8 204.8h-153.6V768h-102.4v-204.8h-153.6l204.8-204.8zM819.2 0v204.8H409.6V102.4h307.2V0h102.4z" ></path></symbol><symbol id="icon-a-practice" viewBox="0 0 1024 1024"><path d="M819.2 0C932.309333 0 1024 87.317333 1024 195.050667v633.898666C1024 936.682667 932.309333 1024 819.2 1024H204.8C91.690667 1024 0 936.682667 0 828.949333V195.050667C0 87.317333 91.690667 0 204.8 0h614.4z m0 73.152H204.8c-68.522667 0-124.906667 51.413333-127.872 116.608l-0.128 5.290667v633.898666c0 65.28 53.973333 118.954667 122.453333 121.792l5.546667 0.106667h614.4c68.522667 0 124.906667-51.413333 127.872-116.608l0.128-5.290667V195.050667c0-65.28-53.973333-118.954667-122.453333-121.792l-5.546667-0.106667z m-108.330667 186.986667l88.661334 48.768-128 211.136L576 580.117333l6.869333-108.842666 128-211.136z m73.365334-72.256l44.330666 24.384c12.245333 6.72 16.426667 21.632 9.386667 33.28l-25.6 42.24-88.682667-48.746667 25.6-42.24c7.061333-11.648 22.72-15.658667 34.965334-8.917333z" ></path><path d="M294.4 707.050667h435.2c21.205333 0 38.4 16.362667 38.4 36.565333s-17.194667 36.565333-38.4 36.565333H294.4c-21.205333 0-38.4-16.362667-38.4-36.565333s17.194667-36.565333 38.4-36.565333z m0-195.050667h179.2c21.205333 0 38.4 16.384 38.4 36.565333 0 20.202667-17.194667 36.586667-38.4 36.586667h-179.2c-21.205333 0-38.4-16.384-38.4-36.586667 0-20.181333 17.194667-36.565333 38.4-36.565333z" ></path></symbol><symbol id="icon-lianjie" viewBox="0 0 1024 1024"><path d="M607.934444 417.856853c-6.179746-6.1777-12.766768-11.746532-19.554358-16.910135l-0.01228 0.011256c-6.986111-6.719028-16.47216-10.857279-26.930349-10.857279-21.464871 0-38.864146 17.400299-38.864146 38.864146 0 9.497305 3.411703 18.196431 9.071609 24.947182l-0.001023 0c0.001023 0.001023 0.00307 0.00307 0.005117 0.004093 2.718925 3.242857 5.953595 6.03853 9.585309 8.251941 3.664459 3.021823 7.261381 5.997598 10.624988 9.361205l3.203972 3.204995c40.279379 40.229237 28.254507 109.539812-12.024871 149.820214L371.157763 796.383956c-40.278355 40.229237-105.761766 40.229237-146.042167 0l-3.229554-3.231601c-40.281425-40.278355-40.281425-105.809861 0-145.991002l75.93546-75.909877c9.742898-7.733125 15.997346-19.668968 15.997346-33.072233 0-23.312962-18.898419-42.211381-42.211381-42.211381-8.797363 0-16.963347 2.693342-23.725354 7.297197-0.021489-0.045025-0.044002-0.088004-0.066515-0.134053l-0.809435 0.757247c-2.989077 2.148943-5.691629 4.669346-8.025791 7.510044l-78.913281 73.841775c-74.178443 74.229608-74.178443 195.632609 0 269.758863l3.203972 3.202948c74.178443 74.127278 195.529255 74.127278 269.707698 0l171.829484-171.880649c74.076112-74.17435 80.357166-191.184297 6.282077-265.311575L607.934444 417.856853z" fill="#5D5D5D" ></path><path d="M855.61957 165.804257l-3.203972-3.203972c-74.17742-74.178443-195.528232-74.178443-269.706675 0L410.87944 334.479911c-74.178443 74.178443-78.263481 181.296089-4.085038 255.522628l3.152806 3.104711c3.368724 3.367701 6.865361 6.54302 10.434653 9.588379 2.583848 2.885723 5.618974 5.355985 8.992815 7.309476 0.025583 0.020466 0.052189 0.041956 0.077771 0.062422l0.011256-0.010233c5.377474 3.092431 11.608386 4.870938 18.257829 4.870938 20.263509 0 36.68962-16.428158 36.68962-36.68962 0-5.719258-1.309832-11.132548-3.645017-15.95846l0 0c-4.850471-10.891048-13.930267-17.521049-20.210297-23.802102l-3.15383-3.102664c-40.278355-40.278355-24.982998-98.79612 15.295358-139.074476l171.930791-171.830507c40.179095-40.280402 105.685018-40.280402 145.965419 0l3.206018 3.152806c40.279379 40.281425 40.279379 105.838513 0 146.06775l-75.686796 75.737962c-10.296507 7.628748-16.97358 19.865443-16.97358 33.662681 0 23.12365 18.745946 41.87062 41.87062 41.87062 8.048303 0 15.563464-2.275833 21.944801-6.211469 0.048095 0.081864 0.093121 0.157589 0.141216 0.240477l1.173732-1.083681c3.616364-2.421142 6.828522-5.393847 9.529027-8.792247l79.766718-73.603345C929.798013 361.334535 929.798013 239.981676 855.61957 165.804257z" fill="#5D5D5D" ></path></symbol></svg>',function(l){var t=(t=document.getElementsByTagName("script"))[t.length-1],c=t.getAttribute("data-injectcss"),t=t.getAttribute("data-disable-injectsvg");if(!t){var a,e,i,o,n,h=function(t,c){c.parentNode.insertBefore(t,c)};if(c&&!l.__iconfont__svg__cssinject__){l.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(t){console&&console.log(t)}}a=function(){var t,c=document.createElement("div");c.innerHTML=l._iconfont_svg_string_4466479,(c=c.getElementsByTagName("svg")[0])&&(c.setAttribute("aria-hidden","true"),c.style.position="absolute",c.style.width=0,c.style.height=0,c.style.overflow="hidden",c=c,(t=document.body).firstChild?h(c,t.firstChild):t.appendChild(c))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(a,0):(e=function(){document.removeEventListener("DOMContentLoaded",e,!1),a()},document.addEventListener("DOMContentLoaded",e,!1)):document.attachEvent&&(i=a,o=l.document,n=!1,s(),o.onreadystatechange=function(){"complete"==o.readyState&&(o.onreadystatechange=null,d())})}function d(){n||(n=!0,i())}function s(){try{o.documentElement.doScroll("left")}catch(t){return void setTimeout(s,50)}d()}}(window);
\ No newline at end of file
/*! jQuery v2.2.4 | (c) jQuery Foundation | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=a.document,e=c.slice,f=c.concat,g=c.push,h=c.indexOf,i={},j=i.toString,k=i.hasOwnProperty,l={},m="2.2.4",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return e.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:e.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a){return n.each(this,a)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(e.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor()},push:g,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(n.isPlainObject(d)||(e=n.isArray(d)))?(e?(e=!1,f=c&&n.isArray(c)?c:[]):f=c&&n.isPlainObject(c)?c:{},g[b]=n.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray,isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){var b=a&&a.toString();return!n.isArray(a)&&b-parseFloat(b)+1>=0},isPlainObject:function(a){var b;if("object"!==n.type(a)||a.nodeType||n.isWindow(a))return!1;if(a.constructor&&!k.call(a,"constructor")&&!k.call(a.constructor.prototype||{},"isPrototypeOf"))return!1;for(b in a);return void 0===b||k.call(a,b)},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?i[j.call(a)]||"object":typeof a},globalEval:function(a){var b,c=eval;a=n.trim(a),a&&(1===a.indexOf("use strict")?(b=d.createElement("script"),b.text=a,d.head.appendChild(b).parentNode.removeChild(b)):c(a))},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b){var c,d=0;if(s(a)){for(c=a.length;c>d;d++)if(b.call(a[d],d,a[d])===!1)break}else for(d in a)if(b.call(a[d],d,a[d])===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):g.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:h.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,e,g=0,h=[];if(s(a))for(d=a.length;d>g;g++)e=b(a[g],g,c),null!=e&&h.push(e);else for(g in a)e=b(a[g],g,c),null!=e&&h.push(e);return f.apply([],h)},guid:1,proxy:function(a,b){var c,d,f;return"string"==typeof b&&(c=a[b],b=a,a=c),n.isFunction(a)?(d=e.call(arguments,2),f=function(){return a.apply(b||this,d.concat(e.call(arguments)))},f.guid=a.guid=a.guid||n.guid++,f):void 0},now:Date.now,support:l}),"function"==typeof Symbol&&(n.fn[Symbol.iterator]=c[Symbol.iterator]),n.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){i["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=!!a&&"length"in a&&a.length,c=n.type(a);return"function"===c||n.isWindow(a)?!1:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ga(),z=ga(),A=ga(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+M+"))|)"+L+"*\\]",O=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+N+")*)|.*)\\)|)",P=new RegExp(L+"+","g"),Q=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),R=new RegExp("^"+L+"*,"+L+"*"),S=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),T=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),U=new RegExp(O),V=new RegExp("^"+M+"$"),W={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+O),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},X=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,_=/[+~]/,aa=/'|\\/g,ba=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),ca=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},da=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType}catch(ea){H={apply:E.length?function(a,b){G.apply(a,I.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function fa(a,b,d,e){var f,h,j,k,l,o,r,s,w=b&&b.ownerDocument,x=b?b.nodeType:9;if(d=d||[],"string"!=typeof a||!a||1!==x&&9!==x&&11!==x)return d;if(!e&&((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,p)){if(11!==x&&(o=$.exec(a)))if(f=o[1]){if(9===x){if(!(j=b.getElementById(f)))return d;if(j.id===f)return d.push(j),d}else if(w&&(j=w.getElementById(f))&&t(b,j)&&j.id===f)return d.push(j),d}else{if(o[2])return H.apply(d,b.getElementsByTagName(a)),d;if((f=o[3])&&c.getElementsByClassName&&b.getElementsByClassName)return H.apply(d,b.getElementsByClassName(f)),d}if(c.qsa&&!A[a+" "]&&(!q||!q.test(a))){if(1!==x)w=b,s=a;else if("object"!==b.nodeName.toLowerCase()){(k=b.getAttribute("id"))?k=k.replace(aa,"\\$&"):b.setAttribute("id",k=u),r=g(a),h=r.length,l=V.test(k)?"#"+k:"[id='"+k+"']";while(h--)r[h]=l+" "+qa(r[h]);s=r.join(","),w=_.test(a)&&oa(b.parentNode)||b}if(s)try{return H.apply(d,w.querySelectorAll(s)),d}catch(y){}finally{k===u&&b.removeAttribute("id")}}}return i(a.replace(Q,"$1"),b,d,e)}function ga(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ha(a){return a[u]=!0,a}function ia(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ja(a,b){var c=a.split("|"),e=c.length;while(e--)d.attrHandle[c[e]]=b}function ka(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||C)-(~a.sourceIndex||C);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function la(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function na(a){return ha(function(b){return b=+b,ha(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function oa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=fa.support={},f=fa.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=fa.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=n.documentElement,p=!f(n),(e=n.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",da,!1):e.attachEvent&&e.attachEvent("onunload",da)),c.attributes=ia(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ia(function(a){return a.appendChild(n.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Z.test(n.getElementsByClassName),c.getById=ia(function(a){return o.appendChild(a).id=u,!n.getElementsByName||!n.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return"undefined"!=typeof b.getElementsByClassName&&p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=Z.test(n.querySelectorAll))&&(ia(function(a){o.appendChild(a).innerHTML="<a id='"+u+"'></a><select id='"+u+"-\r\\' msallowcapture=''><option selected=''></option></select>",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+L+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+L+"*(?:value|"+K+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ia(function(a){var b=n.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+L+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=Z.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ia(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",O)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=Z.test(o.compareDocumentPosition),t=b||Z.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===n||a.ownerDocument===v&&t(v,a)?-1:b===n||b.ownerDocument===v&&t(v,b)?1:k?J(k,a)-J(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,g=[a],h=[b];if(!e||!f)return a===n?-1:b===n?1:e?-1:f?1:k?J(k,a)-J(k,b):0;if(e===f)return ka(a,b);c=a;while(c=c.parentNode)g.unshift(c);c=b;while(c=c.parentNode)h.unshift(c);while(g[d]===h[d])d++;return d?ka(g[d],h[d]):g[d]===v?-1:h[d]===v?1:0},n):n},fa.matches=function(a,b){return fa(a,null,null,b)},fa.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(T,"='$1']"),c.matchesSelector&&p&&!A[b+" "]&&(!r||!r.test(b))&&(!q||!q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return fa(b,n,null,[a]).length>0},fa.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},fa.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&D.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},fa.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},fa.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=fa.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=fa.selectors={cacheLength:50,createPseudo:ha,match:W,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ba,ca),a[3]=(a[3]||a[4]||a[5]||"").replace(ba,ca),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||fa.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&fa.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return W.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&U.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ba,ca).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+L+")"+a+"("+L+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=fa.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(P," ")+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h,t=!1;if(q){if(f){while(p){m=b;while(m=m[p])if(h?m.nodeName.toLowerCase()===r:1===m.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){m=q,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n&&j[2],m=n&&q.childNodes[n];while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if(1===m.nodeType&&++t&&m===b){k[a]=[w,n,t];break}}else if(s&&(m=b,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n),t===!1)while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if((h?m.nodeName.toLowerCase()===r:1===m.nodeType)&&++t&&(s&&(l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),k[a]=[w,t]),m===b))break;return t-=e,t===d||t%d===0&&t/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||fa.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ha(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=J(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ha(function(a){var b=[],c=[],d=h(a.replace(Q,"$1"));return d[u]?ha(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ha(function(a){return function(b){return fa(a,b).length>0}}),contains:ha(function(a){return a=a.replace(ba,ca),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ha(function(a){return V.test(a||"")||fa.error("unsupported lang: "+a),a=a.replace(ba,ca).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Y.test(a.nodeName)},input:function(a){return X.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:na(function(){return[0]}),last:na(function(a,b){return[b-1]}),eq:na(function(a,b,c){return[0>c?c+b:c]}),even:na(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:na(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:na(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:na(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=la(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=ma(b);function pa(){}pa.prototype=d.filters=d.pseudos,d.setFilters=new pa,g=fa.tokenize=function(a,b){var c,e,f,g,h,i,j,k=z[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){c&&!(e=R.exec(h))||(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=S.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(Q," ")}),h=h.slice(c.length));for(g in d.filter)!(e=W[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?fa.error(a):z(a,i).slice(0)};function qa(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function ra(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j,k=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(j=b[u]||(b[u]={}),i=j[b.uniqueID]||(j[b.uniqueID]={}),(h=i[d])&&h[0]===w&&h[1]===f)return k[2]=h[2];if(i[d]=k,k[2]=a(b,c,g))return!0}}}function sa(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function ta(a,b,c){for(var d=0,e=b.length;e>d;d++)fa(a,b[d],c);return c}function ua(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(c&&!c(f,d,e)||(g.push(f),j&&b.push(h)));return g}function va(a,b,c,d,e,f){return d&&!d[u]&&(d=va(d)),e&&!e[u]&&(e=va(e,f)),ha(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||ta(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:ua(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=ua(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?J(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=ua(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)})}function wa(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=ra(function(a){return a===b},h,!0),l=ra(function(a){return J(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];f>i;i++)if(c=d.relative[a[i].type])m=[ra(sa(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return va(i>1&&sa(m),i>1&&qa(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(Q,"$1"),c,e>i&&wa(a.slice(i,e)),f>e&&wa(a=a.slice(e)),f>e&&qa(a))}m.push(c)}return sa(m)}function xa(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,o,q,r=0,s="0",t=f&&[],u=[],v=j,x=f||e&&d.find.TAG("*",k),y=w+=null==v?1:Math.random()||.1,z=x.length;for(k&&(j=g===n||g||k);s!==z&&null!=(l=x[s]);s++){if(e&&l){o=0,g||l.ownerDocument===n||(m(l),h=!p);while(q=a[o++])if(q(l,g||n,h)){i.push(l);break}k&&(w=y)}c&&((l=!q&&l)&&r--,f&&t.push(l))}if(r+=s,c&&s!==r){o=0;while(q=b[o++])q(t,u,g,h);if(f){if(r>0)while(s--)t[s]||u[s]||(u[s]=F.call(i));u=ua(u)}H.apply(i,u),k&&!f&&u.length>0&&r+b.length>1&&fa.uniqueSort(i)}return k&&(w=y,j=v),t};return c?ha(f):f}return h=fa.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=wa(b[c]),f[u]?d.push(f):e.push(f);f=A(a,xa(e,d)),f.selector=a}return f},i=fa.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(ba,ca),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=W.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(ba,ca),_.test(j[0].type)&&oa(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&qa(j),!a)return H.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,!b||_.test(a)&&oa(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ia(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ia(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||ja("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ia(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ja("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ia(function(a){return null==a.getAttribute("disabled")})||ja(K,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),fa}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.uniqueSort=n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&n(a).is(c))break;d.push(a)}return d},v=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},w=n.expr.match.needsContext,x=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,y=/^.[^:#\[\.,]*$/;function z(a,b,c){if(n.isFunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return n.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(y.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return h.call(b,a)>-1!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=this.length,d=[],e=this;if("string"!=typeof a)return this.pushStack(n(a).filter(function(){for(b=0;c>b;b++)if(n.contains(e[b],this))return!0}));for(b=0;c>b;b++)n.find(a,e[b],d);return d=this.pushStack(c>1?n.unique(d):d),d.selector=this.selector?this.selector+" "+a:a,d},filter:function(a){return this.pushStack(z(this,a||[],!1))},not:function(a){return this.pushStack(z(this,a||[],!0))},is:function(a){return!!z(this,"string"==typeof a&&w.test(a)?n(a):a||[],!1).length}});var A,B=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,C=n.fn.init=function(a,b,c){var e,f;if(!a)return this;if(c=c||A,"string"==typeof a){if(e="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:B.exec(a),!e||!e[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(e[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(e[1],b&&b.nodeType?b.ownerDocument||b:d,!0)),x.test(e[1])&&n.isPlainObject(b))for(e in b)n.isFunction(this[e])?this[e](b[e]):this.attr(e,b[e]);return this}return f=d.getElementById(e[2]),f&&f.parentNode&&(this.length=1,this[0]=f),this.context=d,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?void 0!==c.ready?c.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))};C.prototype=n.fn,A=n(d);var D=/^(?:parents|prev(?:Until|All))/,E={children:!0,contents:!0,next:!0,prev:!0};n.fn.extend({has:function(a){var b=n(a,this),c=b.length;return this.filter(function(){for(var a=0;c>a;a++)if(n.contains(this,b[a]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=w.test(a)||"string"!=typeof a?n(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&n.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?n.uniqueSort(f):f)},index:function(a){return a?"string"==typeof a?h.call(n(a),this[0]):h.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.uniqueSort(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function F(a,b){while((a=a[b])&&1!==a.nodeType);return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return u(a,"parentNode")},parentsUntil:function(a,b,c){return u(a,"parentNode",c)},next:function(a){return F(a,"nextSibling")},prev:function(a){return F(a,"previousSibling")},nextAll:function(a){return u(a,"nextSibling")},prevAll:function(a){return u(a,"previousSibling")},nextUntil:function(a,b,c){return u(a,"nextSibling",c)},prevUntil:function(a,b,c){return u(a,"previousSibling",c)},siblings:function(a){return v((a.parentNode||{}).firstChild,a)},children:function(a){return v(a.firstChild)},contents:function(a){return a.contentDocument||n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=n.filter(d,e)),this.length>1&&(E[a]||n.uniqueSort(e),D.test(a)&&e.reverse()),this.pushStack(e)}});var G=/\S+/g;function H(a){var b={};return n.each(a.match(G)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a="string"==typeof a?H(a):n.extend({},a);var b,c,d,e,f=[],g=[],h=-1,i=function(){for(e=a.once,d=b=!0;g.length;h=-1){c=g.shift();while(++h<f.length)f[h].apply(c[0],c[1])===!1&&a.stopOnFalse&&(h=f.length,c=!1)}a.memory||(c=!1),b=!1,e&&(f=c?[]:"")},j={add:function(){return f&&(c&&!b&&(h=f.length-1,g.push(c)),function d(b){n.each(b,function(b,c){n.isFunction(c)?a.unique&&j.has(c)||f.push(c):c&&c.length&&"string"!==n.type(c)&&d(c)})}(arguments),c&&!b&&i()),this},remove:function(){return n.each(arguments,function(a,b){var c;while((c=n.inArray(b,f,c))>-1)f.splice(c,1),h>=c&&h--}),this},has:function(a){return a?n.inArray(a,f)>-1:f.length>0},empty:function(){return f&&(f=[]),this},disable:function(){return e=g=[],f=c="",this},disabled:function(){return!f},lock:function(){return e=g=[],c||(f=c=""),this},locked:function(){return!!e},fireWith:function(a,c){return e||(c=c||[],c=[a,c.slice?c.slice():c],g.push(c),b||i()),this},fire:function(){return j.fireWith(this,arguments),this},fired:function(){return!!d}};return j},n.extend({Deferred:function(a){var b=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().progress(c.notify).done(c.resolve).fail(c.reject):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=e.call(arguments),d=c.length,f=1!==d||a&&n.isFunction(a.promise)?d:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(d){b[a]=this,c[a]=arguments.length>1?e.call(arguments):d,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(d>1)for(i=new Array(d),j=new Array(d),k=new Array(d);d>b;b++)c[b]&&n.isFunction(c[b].promise)?c[b].promise().progress(h(b,j,i)).done(h(b,k,c)).fail(g.reject):--f;return f||g.resolveWith(k,c),g.promise()}});var I;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isReady:!1,readyWait:1,holdReady:function(a){a?n.readyWait++:n.ready(!0)},ready:function(a){(a===!0?--n.readyWait:n.isReady)||(n.isReady=!0,a!==!0&&--n.readyWait>0||(I.resolveWith(d,[n]),n.fn.triggerHandler&&(n(d).triggerHandler("ready"),n(d).off("ready"))))}});function J(){d.removeEventListener("DOMContentLoaded",J),a.removeEventListener("load",J),n.ready()}n.ready.promise=function(b){return I||(I=n.Deferred(),"complete"===d.readyState||"loading"!==d.readyState&&!d.documentElement.doScroll?a.setTimeout(n.ready):(d.addEventListener("DOMContentLoaded",J),a.addEventListener("load",J))),I.promise(b)},n.ready.promise();var K=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===n.type(c)){e=!0;for(h in c)K(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,n.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(n(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},L=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType};function M(){this.expando=n.expando+M.uid++}M.uid=1,M.prototype={register:function(a,b){var c=b||{};return a.nodeType?a[this.expando]=c:Object.defineProperty(a,this.expando,{value:c,writable:!0,configurable:!0}),a[this.expando]},cache:function(a){if(!L(a))return{};var b=a[this.expando];return b||(b={},L(a)&&(a.nodeType?a[this.expando]=b:Object.defineProperty(a,this.expando,{value:b,configurable:!0}))),b},set:function(a,b,c){var d,e=this.cache(a);if("string"==typeof b)e[b]=c;else for(d in b)e[d]=b[d];return e},get:function(a,b){return void 0===b?this.cache(a):a[this.expando]&&a[this.expando][b]},access:function(a,b,c){var d;return void 0===b||b&&"string"==typeof b&&void 0===c?(d=this.get(a,b),void 0!==d?d:this.get(a,n.camelCase(b))):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d,e,f=a[this.expando];if(void 0!==f){if(void 0===b)this.register(a);else{n.isArray(b)?d=b.concat(b.map(n.camelCase)):(e=n.camelCase(b),b in f?d=[b,e]:(d=e,d=d in f?[d]:d.match(G)||[])),c=d.length;while(c--)delete f[d[c]]}(void 0===b||n.isEmptyObject(f))&&(a.nodeType?a[this.expando]=void 0:delete a[this.expando])}},hasData:function(a){var b=a[this.expando];return void 0!==b&&!n.isEmptyObject(b)}};var N=new M,O=new M,P=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Q=/[A-Z]/g;function R(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(Q,"-$&").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:P.test(c)?n.parseJSON(c):c;
}catch(e){}O.set(a,b,c)}else c=void 0;return c}n.extend({hasData:function(a){return O.hasData(a)||N.hasData(a)},data:function(a,b,c){return O.access(a,b,c)},removeData:function(a,b){O.remove(a,b)},_data:function(a,b,c){return N.access(a,b,c)},_removeData:function(a,b){N.remove(a,b)}}),n.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=O.get(f),1===f.nodeType&&!N.get(f,"hasDataAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=n.camelCase(d.slice(5)),R(f,d,e[d])));N.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){O.set(this,a)}):K(this,function(b){var c,d;if(f&&void 0===b){if(c=O.get(f,a)||O.get(f,a.replace(Q,"-$&").toLowerCase()),void 0!==c)return c;if(d=n.camelCase(a),c=O.get(f,d),void 0!==c)return c;if(c=R(f,d,void 0),void 0!==c)return c}else d=n.camelCase(a),this.each(function(){var c=O.get(this,d);O.set(this,d,b),a.indexOf("-")>-1&&void 0!==c&&O.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){O.remove(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=N.get(a,b),c&&(!d||n.isArray(c)?d=N.access(a,b,n.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return N.get(a,c)||N.access(a,c,{empty:n.Callbacks("once memory").add(function(){N.remove(a,[b+"queue",c])})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?n.queue(this[0],a):void 0===b?this:this.each(function(){var c=n.queue(this,a,b);n._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&n.dequeue(this,a)})},dequeue:function(a){return this.each(function(){n.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=n.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)c=N.get(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var S=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,T=new RegExp("^(?:([+-])=|)("+S+")([a-z%]*)$","i"),U=["Top","Right","Bottom","Left"],V=function(a,b){return a=b||a,"none"===n.css(a,"display")||!n.contains(a.ownerDocument,a)};function W(a,b,c,d){var e,f=1,g=20,h=d?function(){return d.cur()}:function(){return n.css(a,b,"")},i=h(),j=c&&c[3]||(n.cssNumber[b]?"":"px"),k=(n.cssNumber[b]||"px"!==j&&+i)&&T.exec(n.css(a,b));if(k&&k[3]!==j){j=j||k[3],c=c||[],k=+i||1;do f=f||".5",k/=f,n.style(a,b,k+j);while(f!==(f=h()/i)&&1!==f&&--g)}return c&&(k=+k||+i||0,e=c[1]?k+(c[1]+1)*c[2]:+c[2],d&&(d.unit=j,d.start=k,d.end=e)),e}var X=/^(?:checkbox|radio)$/i,Y=/<([\w:-]+)/,Z=/^$|\/(?:java|ecma)script/i,$={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};$.optgroup=$.option,$.tbody=$.tfoot=$.colgroup=$.caption=$.thead,$.th=$.td;function _(a,b){var c="undefined"!=typeof a.getElementsByTagName?a.getElementsByTagName(b||"*"):"undefined"!=typeof a.querySelectorAll?a.querySelectorAll(b||"*"):[];return void 0===b||b&&n.nodeName(a,b)?n.merge([a],c):c}function aa(a,b){for(var c=0,d=a.length;d>c;c++)N.set(a[c],"globalEval",!b||N.get(b[c],"globalEval"))}var ba=/<|&#?\w+;/;function ca(a,b,c,d,e){for(var f,g,h,i,j,k,l=b.createDocumentFragment(),m=[],o=0,p=a.length;p>o;o++)if(f=a[o],f||0===f)if("object"===n.type(f))n.merge(m,f.nodeType?[f]:f);else if(ba.test(f)){g=g||l.appendChild(b.createElement("div")),h=(Y.exec(f)||["",""])[1].toLowerCase(),i=$[h]||$._default,g.innerHTML=i[1]+n.htmlPrefilter(f)+i[2],k=i[0];while(k--)g=g.lastChild;n.merge(m,g.childNodes),g=l.firstChild,g.textContent=""}else m.push(b.createTextNode(f));l.textContent="",o=0;while(f=m[o++])if(d&&n.inArray(f,d)>-1)e&&e.push(f);else if(j=n.contains(f.ownerDocument,f),g=_(l.appendChild(f),"script"),j&&aa(g),c){k=0;while(f=g[k++])Z.test(f.type||"")&&c.push(f)}return l}!function(){var a=d.createDocumentFragment(),b=a.appendChild(d.createElement("div")),c=d.createElement("input");c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),b.appendChild(c),l.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="<textarea>x</textarea>",l.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var da=/^key/,ea=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,fa=/^([^.]*)(?:\.(.+)|)/;function ga(){return!0}function ha(){return!1}function ia(){try{return d.activeElement}catch(a){}}function ja(a,b,c,d,e,f){var g,h;if("object"==typeof b){"string"!=typeof c&&(d=d||c,c=void 0);for(h in b)ja(a,h,c,d,b[h],f);return a}if(null==d&&null==e?(e=c,d=c=void 0):null==e&&("string"==typeof c?(e=d,d=void 0):(e=d,d=c,c=void 0)),e===!1)e=ha;else if(!e)return a;return 1===f&&(g=e,e=function(a){return n().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=n.guid++)),a.each(function(){n.event.add(this,b,e,d,c)})}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=N.get(a);if(r){c.handler&&(f=c,c=f.handler,e=f.selector),c.guid||(c.guid=n.guid++),(i=r.events)||(i=r.events={}),(g=r.handle)||(g=r.handle=function(b){return"undefined"!=typeof n&&n.event.triggered!==b.type?n.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(G)||[""],j=b.length;while(j--)h=fa.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o&&(l=n.event.special[o]||{},o=(e?l.delegateType:l.bindType)||o,l=n.event.special[o]||{},k=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(".")},f),(m=i[o])||(m=i[o]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,p,g)!==!1||a.addEventListener&&a.addEventListener(o,g)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),n.event.global[o]=!0)}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=N.hasData(a)&&N.get(a);if(r&&(i=r.events)){b=(b||"").match(G)||[""],j=b.length;while(j--)if(h=fa.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=i[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;while(f--)k=m[f],!e&&q!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||n.removeEvent(a,o,r.handle),delete i[o])}else for(o in i)n.event.remove(a,o+b[j],c,d,!0);n.isEmptyObject(i)&&N.remove(a,"handle events")}},dispatch:function(a){a=n.event.fix(a);var b,c,d,f,g,h=[],i=e.call(arguments),j=(N.get(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,c=0;while((g=f.handlers[c++])&&!a.isImmediatePropagationStopped())a.rnamespace&&!a.rnamespace.test(g.namespace)||(a.handleObj=g,a.data=g.data,d=((n.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==d&&(a.result=d)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&("click"!==a.type||isNaN(a.button)||a.button<1))for(;i!==this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?n(e,this).index(i)>-1:n.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,e,f,g=b.button;return null==a.pageX&&null!=b.clientX&&(c=a.target.ownerDocument||d,e=c.documentElement,f=c.body,a.pageX=b.clientX+(e&&e.scrollLeft||f&&f.scrollLeft||0)-(e&&e.clientLeft||f&&f.clientLeft||0),a.pageY=b.clientY+(e&&e.scrollTop||f&&f.scrollTop||0)-(e&&e.clientTop||f&&f.clientTop||0)),a.which||void 0===g||(a.which=1&g?1:2&g?3:4&g?2:0),a}},fix:function(a){if(a[n.expando])return a;var b,c,e,f=a.type,g=a,h=this.fixHooks[f];h||(this.fixHooks[f]=h=ea.test(f)?this.mouseHooks:da.test(f)?this.keyHooks:{}),e=h.props?this.props.concat(h.props):this.props,a=new n.Event(g),b=e.length;while(b--)c=e[b],a[c]=g[c];return a.target||(a.target=d),3===a.target.nodeType&&(a.target=a.target.parentNode),h.filter?h.filter(a,g):a},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==ia()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===ia()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&n.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(a){return n.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}}},n.removeEvent=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c)},n.Event=function(a,b){return this instanceof n.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?ga:ha):this.type=a,b&&n.extend(this,b),this.timeStamp=a&&a.timeStamp||n.now(),void(this[n.expando]=!0)):new n.Event(a,b)},n.Event.prototype={constructor:n.Event,isDefaultPrevented:ha,isPropagationStopped:ha,isImmediatePropagationStopped:ha,isSimulated:!1,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=ga,a&&!this.isSimulated&&a.preventDefault()},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=ga,a&&!this.isSimulated&&a.stopPropagation()},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=ga,a&&!this.isSimulated&&a.stopImmediatePropagation(),this.stopPropagation()}},n.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){n.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return e&&(e===d||n.contains(d,e))||(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),n.fn.extend({on:function(a,b,c,d){return ja(this,a,b,c,d)},one:function(a,b,c,d){return ja(this,a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,n(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return b!==!1&&"function"!=typeof b||(c=b,b=void 0),c===!1&&(c=ha),this.each(function(){n.event.remove(this,a,c,b)})}});var ka=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,la=/<script|<style|<link/i,ma=/checked\s*(?:[^=]|=\s*.checked.)/i,na=/^true\/(.*)/,oa=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function pa(a,b){return n.nodeName(a,"table")&&n.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function qa(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function ra(a){var b=na.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function sa(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(N.hasData(a)&&(f=N.access(a),g=N.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)n.event.add(b,e,j[e][c])}O.hasData(a)&&(h=O.access(a),i=n.extend({},h),O.set(b,i))}}function ta(a,b){var c=b.nodeName.toLowerCase();"input"===c&&X.test(a.type)?b.checked=a.checked:"input"!==c&&"textarea"!==c||(b.defaultValue=a.defaultValue)}function ua(a,b,c,d){b=f.apply([],b);var e,g,h,i,j,k,m=0,o=a.length,p=o-1,q=b[0],r=n.isFunction(q);if(r||o>1&&"string"==typeof q&&!l.checkClone&&ma.test(q))return a.each(function(e){var f=a.eq(e);r&&(b[0]=q.call(this,e,f.html())),ua(f,b,c,d)});if(o&&(e=ca(b,a[0].ownerDocument,!1,a,d),g=e.firstChild,1===e.childNodes.length&&(e=g),g||d)){for(h=n.map(_(e,"script"),qa),i=h.length;o>m;m++)j=e,m!==p&&(j=n.clone(j,!0,!0),i&&n.merge(h,_(j,"script"))),c.call(a[m],j,m);if(i)for(k=h[h.length-1].ownerDocument,n.map(h,ra),m=0;i>m;m++)j=h[m],Z.test(j.type||"")&&!N.access(j,"globalEval")&&n.contains(k,j)&&(j.src?n._evalUrl&&n._evalUrl(j.src):n.globalEval(j.textContent.replace(oa,"")))}return a}function va(a,b,c){for(var d,e=b?n.filter(b,a):a,f=0;null!=(d=e[f]);f++)c||1!==d.nodeType||n.cleanData(_(d)),d.parentNode&&(c&&n.contains(d.ownerDocument,d)&&aa(_(d,"script")),d.parentNode.removeChild(d));return a}n.extend({htmlPrefilter:function(a){return a.replace(ka,"<$1></$2>")},clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=n.contains(a.ownerDocument,a);if(!(l.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a)))for(g=_(h),f=_(a),d=0,e=f.length;e>d;d++)ta(f[d],g[d]);if(b)if(c)for(f=f||_(a),g=g||_(h),d=0,e=f.length;e>d;d++)sa(f[d],g[d]);else sa(a,h);return g=_(h,"script"),g.length>0&&aa(g,!i&&_(a,"script")),h},cleanData:function(a){for(var b,c,d,e=n.event.special,f=0;void 0!==(c=a[f]);f++)if(L(c)){if(b=c[N.expando]){if(b.events)for(d in b.events)e[d]?n.event.remove(c,d):n.removeEvent(c,d,b.handle);c[N.expando]=void 0}c[O.expando]&&(c[O.expando]=void 0)}}}),n.fn.extend({domManip:ua,detach:function(a){return va(this,a,!0)},remove:function(a){return va(this,a)},text:function(a){return K(this,function(a){return void 0===a?n.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=a)})},null,a,arguments.length)},append:function(){return ua(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=pa(this,a);b.appendChild(a)}})},prepend:function(){return ua(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=pa(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return ua(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return ua(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(n.cleanData(_(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return K(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if("string"==typeof a&&!la.test(a)&&!$[(Y.exec(a)||["",""])[1].toLowerCase()]){a=n.htmlPrefilter(a);try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(n.cleanData(_(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=[];return ua(this,arguments,function(b){var c=this.parentNode;n.inArray(this,a)<0&&(n.cleanData(_(this)),c&&c.replaceChild(b,this))},a)}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){n.fn[a]=function(a){for(var c,d=[],e=n(a),f=e.length-1,h=0;f>=h;h++)c=h===f?this:this.clone(!0),n(e[h])[b](c),g.apply(d,c.get());return this.pushStack(d)}});var wa,xa={HTML:"block",BODY:"block"};function ya(a,b){var c=n(b.createElement(a)).appendTo(b.body),d=n.css(c[0],"display");return c.detach(),d}function za(a){var b=d,c=xa[a];return c||(c=ya(a,b),"none"!==c&&c||(wa=(wa||n("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=wa[0].contentDocument,b.write(),b.close(),c=ya(a,b),wa.detach()),xa[a]=c),c}var Aa=/^margin/,Ba=new RegExp("^("+S+")(?!px)[a-z%]+$","i"),Ca=function(b){var c=b.ownerDocument.defaultView;return c&&c.opener||(c=a),c.getComputedStyle(b)},Da=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e},Ea=d.documentElement;!function(){var b,c,e,f,g=d.createElement("div"),h=d.createElement("div");if(h.style){h.style.backgroundClip="content-box",h.cloneNode(!0).style.backgroundClip="",l.clearCloneStyle="content-box"===h.style.backgroundClip,g.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",g.appendChild(h);function i(){h.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",h.innerHTML="",Ea.appendChild(g);var d=a.getComputedStyle(h);b="1%"!==d.top,f="2px"===d.marginLeft,c="4px"===d.width,h.style.marginRight="50%",e="4px"===d.marginRight,Ea.removeChild(g)}n.extend(l,{pixelPosition:function(){return i(),b},boxSizingReliable:function(){return null==c&&i(),c},pixelMarginRight:function(){return null==c&&i(),e},reliableMarginLeft:function(){return null==c&&i(),f},reliableMarginRight:function(){var b,c=h.appendChild(d.createElement("div"));return c.style.cssText=h.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",c.style.marginRight=c.style.width="0",h.style.width="1px",Ea.appendChild(g),b=!parseFloat(a.getComputedStyle(c).marginRight),Ea.removeChild(g),h.removeChild(c),b}})}}();function Fa(a,b,c){var d,e,f,g,h=a.style;return c=c||Ca(a),g=c?c.getPropertyValue(b)||c[b]:void 0,""!==g&&void 0!==g||n.contains(a.ownerDocument,a)||(g=n.style(a,b)),c&&!l.pixelMarginRight()&&Ba.test(g)&&Aa.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f),void 0!==g?g+"":g}function Ga(a,b){return{get:function(){return a()?void delete this.get:(this.get=b).apply(this,arguments)}}}var Ha=/^(none|table(?!-c[ea]).+)/,Ia={position:"absolute",visibility:"hidden",display:"block"},Ja={letterSpacing:"0",fontWeight:"400"},Ka=["Webkit","O","Moz","ms"],La=d.createElement("div").style;function Ma(a){if(a in La)return a;var b=a[0].toUpperCase()+a.slice(1),c=Ka.length;while(c--)if(a=Ka[c]+b,a in La)return a}function Na(a,b,c){var d=T.exec(b);return d?Math.max(0,d[2]-(c||0))+(d[3]||"px"):b}function Oa(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2)"margin"===c&&(g+=n.css(a,c+U[f],!0,e)),d?("content"===c&&(g-=n.css(a,"padding"+U[f],!0,e)),"margin"!==c&&(g-=n.css(a,"border"+U[f]+"Width",!0,e))):(g+=n.css(a,"padding"+U[f],!0,e),"padding"!==c&&(g+=n.css(a,"border"+U[f]+"Width",!0,e)));return g}function Pa(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=Ca(a),g="border-box"===n.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=Fa(a,b,f),(0>e||null==e)&&(e=a.style[b]),Ba.test(e))return e;d=g&&(l.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+Oa(a,b,c||(g?"border":"content"),d,f)+"px"}function Qa(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=N.get(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&V(d)&&(f[g]=N.access(d,"olddisplay",za(d.nodeName)))):(e=V(d),"none"===c&&e||N.set(d,"olddisplay",e?c:n.css(d,"display"))));for(g=0;h>g;g++)d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"));return a}n.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=Fa(a,"opacity");return""===c?"1":c}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=n.camelCase(b),i=a.style;return b=n.cssProps[h]||(n.cssProps[h]=Ma(h)||h),g=n.cssHooks[b]||n.cssHooks[h],void 0===c?g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b]:(f=typeof c,"string"===f&&(e=T.exec(c))&&e[1]&&(c=W(a,b,e),f="number"),null!=c&&c===c&&("number"===f&&(c+=e&&e[3]||(n.cssNumber[h]?"":"px")),l.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),g&&"set"in g&&void 0===(c=g.set(a,c,d))||(i[b]=c)),void 0)}},css:function(a,b,c,d){var e,f,g,h=n.camelCase(b);return b=n.cssProps[h]||(n.cssProps[h]=Ma(h)||h),g=n.cssHooks[b]||n.cssHooks[h],g&&"get"in g&&(e=g.get(a,!0,c)),void 0===e&&(e=Fa(a,b,d)),"normal"===e&&b in Ja&&(e=Ja[b]),""===c||c?(f=parseFloat(e),c===!0||isFinite(f)?f||0:e):e}}),n.each(["height","width"],function(a,b){n.cssHooks[b]={get:function(a,c,d){return c?Ha.test(n.css(a,"display"))&&0===a.offsetWidth?Da(a,Ia,function(){return Pa(a,b,d)}):Pa(a,b,d):void 0},set:function(a,c,d){var e,f=d&&Ca(a),g=d&&Oa(a,b,d,"border-box"===n.css(a,"boxSizing",!1,f),f);return g&&(e=T.exec(c))&&"px"!==(e[3]||"px")&&(a.style[b]=c,c=n.css(a,b)),Na(a,c,g)}}}),n.cssHooks.marginLeft=Ga(l.reliableMarginLeft,function(a,b){return b?(parseFloat(Fa(a,"marginLeft"))||a.getBoundingClientRect().left-Da(a,{marginLeft:0},function(){return a.getBoundingClientRect().left}))+"px":void 0}),n.cssHooks.marginRight=Ga(l.reliableMarginRight,function(a,b){return b?Da(a,{display:"inline-block"},Fa,[a,"marginRight"]):void 0}),n.each({margin:"",padding:"",border:"Width"},function(a,b){n.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+U[d]+b]=f[d]||f[d-2]||f[0];return e}},Aa.test(a)||(n.cssHooks[a+b].set=Na)}),n.fn.extend({css:function(a,b){return K(this,function(a,b,c){var d,e,f={},g=0;if(n.isArray(b)){for(d=Ca(a),e=b.length;e>g;g++)f[b[g]]=n.css(a,b[g],!1,d);return f}return void 0!==c?n.style(a,b,c):n.css(a,b)},a,b,arguments.length>1)},show:function(){return Qa(this,!0)},hide:function(){return Qa(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){V(this)?n(this).show():n(this).hide()})}});function Ra(a,b,c,d,e){return new Ra.prototype.init(a,b,c,d,e)}n.Tween=Ra,Ra.prototype={constructor:Ra,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||n.easing._default,this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(n.cssNumber[c]?"":"px")},cur:function(){var a=Ra.propHooks[this.prop];return a&&a.get?a.get(this):Ra.propHooks._default.get(this)},run:function(a){var b,c=Ra.propHooks[this.prop];return this.options.duration?this.pos=b=n.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):Ra.propHooks._default.set(this),this}},Ra.prototype.init.prototype=Ra.prototype,Ra.propHooks={_default:{get:function(a){var b;return 1!==a.elem.nodeType||null!=a.elem[a.prop]&&null==a.elem.style[a.prop]?a.elem[a.prop]:(b=n.css(a.elem,a.prop,""),b&&"auto"!==b?b:0)},set:function(a){n.fx.step[a.prop]?n.fx.step[a.prop](a):1!==a.elem.nodeType||null==a.elem.style[n.cssProps[a.prop]]&&!n.cssHooks[a.prop]?a.elem[a.prop]=a.now:n.style(a.elem,a.prop,a.now+a.unit)}}},Ra.propHooks.scrollTop=Ra.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},n.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2},_default:"swing"},n.fx=Ra.prototype.init,n.fx.step={};var Sa,Ta,Ua=/^(?:toggle|show|hide)$/,Va=/queueHooks$/;function Wa(){return a.setTimeout(function(){Sa=void 0}),Sa=n.now()}function Xa(a,b){var c,d=0,e={height:a};for(b=b?1:0;4>d;d+=2-b)c=U[d],e["margin"+c]=e["padding"+c]=a;return b&&(e.opacity=e.width=a),e}function Ya(a,b,c){for(var d,e=(_a.tweeners[b]||[]).concat(_a.tweeners["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function Za(a,b,c){var d,e,f,g,h,i,j,k,l=this,m={},o=a.style,p=a.nodeType&&V(a),q=N.get(a,"fxshow");c.queue||(h=n._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,l.always(function(){l.always(function(){h.unqueued--,n.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[o.overflow,o.overflowX,o.overflowY],j=n.css(a,"display"),k="none"===j?N.get(a,"olddisplay")||za(a.nodeName):j,"inline"===k&&"none"===n.css(a,"float")&&(o.display="inline-block")),c.overflow&&(o.overflow="hidden",l.always(function(){o.overflow=c.overflow[0],o.overflowX=c.overflow[1],o.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],Ua.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(p?"hide":"show")){if("show"!==e||!q||void 0===q[d])continue;p=!0}m[d]=q&&q[d]||n.style(a,d)}else j=void 0;if(n.isEmptyObject(m))"inline"===("none"===j?za(a.nodeName):j)&&(o.display=j);else{q?"hidden"in q&&(p=q.hidden):q=N.access(a,"fxshow",{}),f&&(q.hidden=!p),p?n(a).show():l.done(function(){n(a).hide()}),l.done(function(){var b;N.remove(a,"fxshow");for(b in m)n.style(a,b,m[b])});for(d in m)g=Ya(p?q[d]:0,d,l),d in q||(q[d]=g.start,p&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function $a(a,b){var c,d,e,f,g;for(c in a)if(d=n.camelCase(c),e=b[d],f=a[c],n.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=n.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function _a(a,b,c){var d,e,f=0,g=_a.prefilters.length,h=n.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=Sa||Wa(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:n.extend({},b),opts:n.extend(!0,{specialEasing:{},easing:n.easing._default},c),originalProperties:b,originalOptions:c,startTime:Sa||Wa(),duration:c.duration,tweens:[],createTween:function(b,c){var d=n.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?(h.notifyWith(a,[j,1,0]),h.resolveWith(a,[j,b])):h.rejectWith(a,[j,b]),this}}),k=j.props;for($a(k,j.opts.specialEasing);g>f;f++)if(d=_a.prefilters[f].call(j,a,k,j.opts))return n.isFunction(d.stop)&&(n._queueHooks(j.elem,j.opts.queue).stop=n.proxy(d.stop,d)),d;return n.map(k,Ya,j),n.isFunction(j.opts.start)&&j.opts.start.call(a,j),n.fx.timer(n.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}n.Animation=n.extend(_a,{tweeners:{"*":[function(a,b){var c=this.createTween(a,b);return W(c.elem,a,T.exec(b),c),c}]},tweener:function(a,b){n.isFunction(a)?(b=a,a=["*"]):a=a.match(G);for(var c,d=0,e=a.length;e>d;d++)c=a[d],_a.tweeners[c]=_a.tweeners[c]||[],_a.tweeners[c].unshift(b)},prefilters:[Za],prefilter:function(a,b){b?_a.prefilters.unshift(a):_a.prefilters.push(a)}}),n.speed=function(a,b,c){var d=a&&"object"==typeof a?n.extend({},a):{complete:c||!c&&b||n.isFunction(a)&&a,duration:a,easing:c&&b||b&&!n.isFunction(b)&&b};return d.duration=n.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in n.fx.speeds?n.fx.speeds[d.duration]:n.fx.speeds._default,null!=d.queue&&d.queue!==!0||(d.queue="fx"),d.old=d.complete,d.complete=function(){n.isFunction(d.old)&&d.old.call(this),d.queue&&n.dequeue(this,d.queue)},d},n.fn.extend({fadeTo:function(a,b,c,d){return this.filter(V).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=n.isEmptyObject(a),f=n.speed(b,c,d),g=function(){var b=_a(this,n.extend({},a),f);(e||N.get(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=n.timers,g=N.get(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&Va.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));!b&&c||n.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=N.get(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=n.timers,g=d?d.length:0;for(c.finish=!0,n.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),n.each(["toggle","show","hide"],function(a,b){var c=n.fn[b];n.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(Xa(b,!0),a,d,e)}}),n.each({slideDown:Xa("show"),slideUp:Xa("hide"),slideToggle:Xa("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){n.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),n.timers=[],n.fx.tick=function(){var a,b=0,c=n.timers;for(Sa=n.now();b<c.length;b++)a=c[b],a()||c[b]!==a||c.splice(b--,1);c.length||n.fx.stop(),Sa=void 0},n.fx.timer=function(a){n.timers.push(a),a()?n.fx.start():n.timers.pop()},n.fx.interval=13,n.fx.start=function(){Ta||(Ta=a.setInterval(n.fx.tick,n.fx.interval))},n.fx.stop=function(){a.clearInterval(Ta),Ta=null},n.fx.speeds={slow:600,fast:200,_default:400},n.fn.delay=function(b,c){return b=n.fx?n.fx.speeds[b]||b:b,c=c||"fx",this.queue(c,function(c,d){var e=a.setTimeout(c,b);d.stop=function(){a.clearTimeout(e)}})},function(){var a=d.createElement("input"),b=d.createElement("select"),c=b.appendChild(d.createElement("option"));a.type="checkbox",l.checkOn=""!==a.value,l.optSelected=c.selected,b.disabled=!0,l.optDisabled=!c.disabled,a=d.createElement("input"),a.value="t",a.type="radio",l.radioValue="t"===a.value}();var ab,bb=n.expr.attrHandle;n.fn.extend({attr:function(a,b){return K(this,n.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){n.removeAttr(this,a)})}}),n.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return"undefined"==typeof a.getAttribute?n.prop(a,b,c):(1===f&&n.isXMLDoc(a)||(b=b.toLowerCase(),e=n.attrHooks[b]||(n.expr.match.bool.test(b)?ab:void 0)),void 0!==c?null===c?void n.removeAttr(a,b):e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:(a.setAttribute(b,c+""),c):e&&"get"in e&&null!==(d=e.get(a,b))?d:(d=n.find.attr(a,b),null==d?void 0:d))},attrHooks:{type:{set:function(a,b){if(!l.radioValue&&"radio"===b&&n.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(G);if(f&&1===a.nodeType)while(c=f[e++])d=n.propFix[c]||c,n.expr.match.bool.test(c)&&(a[d]=!1),a.removeAttribute(c)}}),ab={set:function(a,b,c){return b===!1?n.removeAttr(a,c):a.setAttribute(c,c),c}},n.each(n.expr.match.bool.source.match(/\w+/g),function(a,b){var c=bb[b]||n.find.attr;bb[b]=function(a,b,d){var e,f;return d||(f=bb[b],bb[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,bb[b]=f),e}});var cb=/^(?:input|select|textarea|button)$/i,db=/^(?:a|area)$/i;n.fn.extend({prop:function(a,b){return K(this,n.prop,a,b,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[n.propFix[a]||a]})}}),n.extend({prop:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return 1===f&&n.isXMLDoc(a)||(b=n.propFix[b]||b,e=n.propHooks[b]),
void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=n.find.attr(a,"tabindex");return b?parseInt(b,10):cb.test(a.nodeName)||db.test(a.nodeName)&&a.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),l.optSelected||(n.propHooks.selected={get:function(a){var b=a.parentNode;return b&&b.parentNode&&b.parentNode.selectedIndex,null},set:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}}),n.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){n.propFix[this.toLowerCase()]=this});var eb=/[\t\r\n\f]/g;function fb(a){return a.getAttribute&&a.getAttribute("class")||""}n.fn.extend({addClass:function(a){var b,c,d,e,f,g,h,i=0;if(n.isFunction(a))return this.each(function(b){n(this).addClass(a.call(this,b,fb(this)))});if("string"==typeof a&&a){b=a.match(G)||[];while(c=this[i++])if(e=fb(c),d=1===c.nodeType&&(" "+e+" ").replace(eb," ")){g=0;while(f=b[g++])d.indexOf(" "+f+" ")<0&&(d+=f+" ");h=n.trim(d),e!==h&&c.setAttribute("class",h)}}return this},removeClass:function(a){var b,c,d,e,f,g,h,i=0;if(n.isFunction(a))return this.each(function(b){n(this).removeClass(a.call(this,b,fb(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof a&&a){b=a.match(G)||[];while(c=this[i++])if(e=fb(c),d=1===c.nodeType&&(" "+e+" ").replace(eb," ")){g=0;while(f=b[g++])while(d.indexOf(" "+f+" ")>-1)d=d.replace(" "+f+" "," ");h=n.trim(d),e!==h&&c.setAttribute("class",h)}}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):n.isFunction(a)?this.each(function(c){n(this).toggleClass(a.call(this,c,fb(this),b),b)}):this.each(function(){var b,d,e,f;if("string"===c){d=0,e=n(this),f=a.match(G)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else void 0!==a&&"boolean"!==c||(b=fb(this),b&&N.set(this,"__className__",b),this.setAttribute&&this.setAttribute("class",b||a===!1?"":N.get(this,"__className__")||""))})},hasClass:function(a){var b,c,d=0;b=" "+a+" ";while(c=this[d++])if(1===c.nodeType&&(" "+fb(c)+" ").replace(eb," ").indexOf(b)>-1)return!0;return!1}});var gb=/\r/g,hb=/[\x20\t\r\n\f]+/g;n.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=n.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,n(this).val()):a,null==e?e="":"number"==typeof e?e+="":n.isArray(e)&&(e=n.map(e,function(a){return null==a?"":a+""})),b=n.valHooks[this.type]||n.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=n.valHooks[e.type]||n.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(gb,""):null==c?"":c)}}}),n.extend({valHooks:{option:{get:function(a){var b=n.find.attr(a,"value");return null!=b?b:n.trim(n.text(a)).replace(hb," ")}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++)if(c=d[i],(c.selected||i===e)&&(l.optDisabled?!c.disabled:null===c.getAttribute("disabled"))&&(!c.parentNode.disabled||!n.nodeName(c.parentNode,"optgroup"))){if(b=n(c).val(),f)return b;g.push(b)}return g},set:function(a,b){var c,d,e=a.options,f=n.makeArray(b),g=e.length;while(g--)d=e[g],(d.selected=n.inArray(n.valHooks.option.get(d),f)>-1)&&(c=!0);return c||(a.selectedIndex=-1),f}}}}),n.each(["radio","checkbox"],function(){n.valHooks[this]={set:function(a,b){return n.isArray(b)?a.checked=n.inArray(n(a).val(),b)>-1:void 0}},l.checkOn||(n.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var ib=/^(?:focusinfocus|focusoutblur)$/;n.extend(n.event,{trigger:function(b,c,e,f){var g,h,i,j,l,m,o,p=[e||d],q=k.call(b,"type")?b.type:b,r=k.call(b,"namespace")?b.namespace.split("."):[];if(h=i=e=e||d,3!==e.nodeType&&8!==e.nodeType&&!ib.test(q+n.event.triggered)&&(q.indexOf(".")>-1&&(r=q.split("."),q=r.shift(),r.sort()),l=q.indexOf(":")<0&&"on"+q,b=b[n.expando]?b:new n.Event(q,"object"==typeof b&&b),b.isTrigger=f?2:3,b.namespace=r.join("."),b.rnamespace=b.namespace?new RegExp("(^|\\.)"+r.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=e),c=null==c?[b]:n.makeArray(c,[b]),o=n.event.special[q]||{},f||!o.trigger||o.trigger.apply(e,c)!==!1)){if(!f&&!o.noBubble&&!n.isWindow(e)){for(j=o.delegateType||q,ib.test(j+q)||(h=h.parentNode);h;h=h.parentNode)p.push(h),i=h;i===(e.ownerDocument||d)&&p.push(i.defaultView||i.parentWindow||a)}g=0;while((h=p[g++])&&!b.isPropagationStopped())b.type=g>1?j:o.bindType||q,m=(N.get(h,"events")||{})[b.type]&&N.get(h,"handle"),m&&m.apply(h,c),m=l&&h[l],m&&m.apply&&L(h)&&(b.result=m.apply(h,c),b.result===!1&&b.preventDefault());return b.type=q,f||b.isDefaultPrevented()||o._default&&o._default.apply(p.pop(),c)!==!1||!L(e)||l&&n.isFunction(e[q])&&!n.isWindow(e)&&(i=e[l],i&&(e[l]=null),n.event.triggered=q,e[q](),n.event.triggered=void 0,i&&(e[l]=i)),b.result}},simulate:function(a,b,c){var d=n.extend(new n.Event,c,{type:a,isSimulated:!0});n.event.trigger(d,null,b)}}),n.fn.extend({trigger:function(a,b){return this.each(function(){n.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?n.event.trigger(a,b,c,!0):void 0}}),n.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){n.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),n.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}}),l.focusin="onfocusin"in a,l.focusin||n.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){n.event.simulate(b,a.target,n.event.fix(a))};n.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=N.access(d,b);e||d.addEventListener(a,c,!0),N.access(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=N.access(d,b)-1;e?N.access(d,b,e):(d.removeEventListener(a,c,!0),N.remove(d,b))}}});var jb=a.location,kb=n.now(),lb=/\?/;n.parseJSON=function(a){return JSON.parse(a+"")},n.parseXML=function(b){var c;if(!b||"string"!=typeof b)return null;try{c=(new a.DOMParser).parseFromString(b,"text/xml")}catch(d){c=void 0}return c&&!c.getElementsByTagName("parsererror").length||n.error("Invalid XML: "+b),c};var mb=/#.*$/,nb=/([?&])_=[^&]*/,ob=/^(.*?):[ \t]*([^\r\n]*)$/gm,pb=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,qb=/^(?:GET|HEAD)$/,rb=/^\/\//,sb={},tb={},ub="*/".concat("*"),vb=d.createElement("a");vb.href=jb.href;function wb(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(G)||[];if(n.isFunction(c))while(d=f[e++])"+"===d[0]?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function xb(a,b,c,d){var e={},f=a===tb;function g(h){var i;return e[h]=!0,n.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function yb(a,b){var c,d,e=n.ajaxSettings.flatOptions||{};for(c in b)void 0!==b[c]&&((e[c]?a:d||(d={}))[c]=b[c]);return d&&n.extend(!0,a,d),a}function zb(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0])i.shift(),void 0===d&&(d=a.mimeType||b.getResponseHeader("Content-Type"));if(d)for(e in h)if(h[e]&&h[e].test(d)){i.unshift(e);break}if(i[0]in c)f=i[0];else{for(e in c){if(!i[0]||a.converters[e+" "+i[0]]){f=e;break}g||(g=e)}f=f||g}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function Ab(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}n.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:jb.href,type:"GET",isLocal:pb.test(jb.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ub,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":n.parseJSON,"text xml":n.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?yb(yb(a,n.ajaxSettings),b):yb(n.ajaxSettings,a)},ajaxPrefilter:wb(sb),ajaxTransport:wb(tb),ajax:function(b,c){"object"==typeof b&&(c=b,b=void 0),c=c||{};var e,f,g,h,i,j,k,l,m=n.ajaxSetup({},c),o=m.context||m,p=m.context&&(o.nodeType||o.jquery)?n(o):n.event,q=n.Deferred(),r=n.Callbacks("once memory"),s=m.statusCode||{},t={},u={},v=0,w="canceled",x={readyState:0,getResponseHeader:function(a){var b;if(2===v){if(!h){h={};while(b=ob.exec(g))h[b[1].toLowerCase()]=b[2]}b=h[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===v?g:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return v||(a=u[c]=u[c]||a,t[a]=b),this},overrideMimeType:function(a){return v||(m.mimeType=a),this},statusCode:function(a){var b;if(a)if(2>v)for(b in a)s[b]=[s[b],a[b]];else x.always(a[x.status]);return this},abort:function(a){var b=a||w;return e&&e.abort(b),z(0,b),this}};if(q.promise(x).complete=r.add,x.success=x.done,x.error=x.fail,m.url=((b||m.url||jb.href)+"").replace(mb,"").replace(rb,jb.protocol+"//"),m.type=c.method||c.type||m.method||m.type,m.dataTypes=n.trim(m.dataType||"*").toLowerCase().match(G)||[""],null==m.crossDomain){j=d.createElement("a");try{j.href=m.url,j.href=j.href,m.crossDomain=vb.protocol+"//"+vb.host!=j.protocol+"//"+j.host}catch(y){m.crossDomain=!0}}if(m.data&&m.processData&&"string"!=typeof m.data&&(m.data=n.param(m.data,m.traditional)),xb(sb,m,c,x),2===v)return x;k=n.event&&m.global,k&&0===n.active++&&n.event.trigger("ajaxStart"),m.type=m.type.toUpperCase(),m.hasContent=!qb.test(m.type),f=m.url,m.hasContent||(m.data&&(f=m.url+=(lb.test(f)?"&":"?")+m.data,delete m.data),m.cache===!1&&(m.url=nb.test(f)?f.replace(nb,"$1_="+kb++):f+(lb.test(f)?"&":"?")+"_="+kb++)),m.ifModified&&(n.lastModified[f]&&x.setRequestHeader("If-Modified-Since",n.lastModified[f]),n.etag[f]&&x.setRequestHeader("If-None-Match",n.etag[f])),(m.data&&m.hasContent&&m.contentType!==!1||c.contentType)&&x.setRequestHeader("Content-Type",m.contentType),x.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+ub+"; q=0.01":""):m.accepts["*"]);for(l in m.headers)x.setRequestHeader(l,m.headers[l]);if(m.beforeSend&&(m.beforeSend.call(o,x,m)===!1||2===v))return x.abort();w="abort";for(l in{success:1,error:1,complete:1})x[l](m[l]);if(e=xb(tb,m,c,x)){if(x.readyState=1,k&&p.trigger("ajaxSend",[x,m]),2===v)return x;m.async&&m.timeout>0&&(i=a.setTimeout(function(){x.abort("timeout")},m.timeout));try{v=1,e.send(t,z)}catch(y){if(!(2>v))throw y;z(-1,y)}}else z(-1,"No Transport");function z(b,c,d,h){var j,l,t,u,w,y=c;2!==v&&(v=2,i&&a.clearTimeout(i),e=void 0,g=h||"",x.readyState=b>0?4:0,j=b>=200&&300>b||304===b,d&&(u=zb(m,x,d)),u=Ab(m,u,x,j),j?(m.ifModified&&(w=x.getResponseHeader("Last-Modified"),w&&(n.lastModified[f]=w),w=x.getResponseHeader("etag"),w&&(n.etag[f]=w)),204===b||"HEAD"===m.type?y="nocontent":304===b?y="notmodified":(y=u.state,l=u.data,t=u.error,j=!t)):(t=y,!b&&y||(y="error",0>b&&(b=0))),x.status=b,x.statusText=(c||y)+"",j?q.resolveWith(o,[l,y,x]):q.rejectWith(o,[x,y,t]),x.statusCode(s),s=void 0,k&&p.trigger(j?"ajaxSuccess":"ajaxError",[x,m,j?l:t]),r.fireWith(o,[x,y]),k&&(p.trigger("ajaxComplete",[x,m]),--n.active||n.event.trigger("ajaxStop")))}return x},getJSON:function(a,b,c){return n.get(a,b,c,"json")},getScript:function(a,b){return n.get(a,void 0,b,"script")}}),n.each(["get","post"],function(a,b){n[b]=function(a,c,d,e){return n.isFunction(c)&&(e=e||d,d=c,c=void 0),n.ajax(n.extend({url:a,type:b,dataType:e,data:c,success:d},n.isPlainObject(a)&&a))}}),n._evalUrl=function(a){return n.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},n.fn.extend({wrapAll:function(a){var b;return n.isFunction(a)?this.each(function(b){n(this).wrapAll(a.call(this,b))}):(this[0]&&(b=n(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstElementChild)a=a.firstElementChild;return a}).append(this)),this)},wrapInner:function(a){return n.isFunction(a)?this.each(function(b){n(this).wrapInner(a.call(this,b))}):this.each(function(){var b=n(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=n.isFunction(a);return this.each(function(c){n(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){n.nodeName(this,"body")||n(this).replaceWith(this.childNodes)}).end()}}),n.expr.filters.hidden=function(a){return!n.expr.filters.visible(a)},n.expr.filters.visible=function(a){return a.offsetWidth>0||a.offsetHeight>0||a.getClientRects().length>0};var Bb=/%20/g,Cb=/\[\]$/,Db=/\r?\n/g,Eb=/^(?:submit|button|image|reset|file)$/i,Fb=/^(?:input|select|textarea|keygen)/i;function Gb(a,b,c,d){var e;if(n.isArray(b))n.each(b,function(b,e){c||Cb.test(a)?d(a,e):Gb(a+"["+("object"==typeof e&&null!=e?b:"")+"]",e,c,d)});else if(c||"object"!==n.type(b))d(a,b);else for(e in b)Gb(a+"["+e+"]",b[e],c,d)}n.param=function(a,b){var c,d=[],e=function(a,b){b=n.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=n.ajaxSettings&&n.ajaxSettings.traditional),n.isArray(a)||a.jquery&&!n.isPlainObject(a))n.each(a,function(){e(this.name,this.value)});else for(c in a)Gb(c,a[c],b,e);return d.join("&").replace(Bb,"+")},n.fn.extend({serialize:function(){return n.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=n.prop(this,"elements");return a?n.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!n(this).is(":disabled")&&Fb.test(this.nodeName)&&!Eb.test(a)&&(this.checked||!X.test(a))}).map(function(a,b){var c=n(this).val();return null==c?null:n.isArray(c)?n.map(c,function(a){return{name:b.name,value:a.replace(Db,"\r\n")}}):{name:b.name,value:c.replace(Db,"\r\n")}}).get()}}),n.ajaxSettings.xhr=function(){try{return new a.XMLHttpRequest}catch(b){}};var Hb={0:200,1223:204},Ib=n.ajaxSettings.xhr();l.cors=!!Ib&&"withCredentials"in Ib,l.ajax=Ib=!!Ib,n.ajaxTransport(function(b){var c,d;return l.cors||Ib&&!b.crossDomain?{send:function(e,f){var g,h=b.xhr();if(h.open(b.type,b.url,b.async,b.username,b.password),b.xhrFields)for(g in b.xhrFields)h[g]=b.xhrFields[g];b.mimeType&&h.overrideMimeType&&h.overrideMimeType(b.mimeType),b.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest");for(g in e)h.setRequestHeader(g,e[g]);c=function(a){return function(){c&&(c=d=h.onload=h.onerror=h.onabort=h.onreadystatechange=null,"abort"===a?h.abort():"error"===a?"number"!=typeof h.status?f(0,"error"):f(h.status,h.statusText):f(Hb[h.status]||h.status,h.statusText,"text"!==(h.responseType||"text")||"string"!=typeof h.responseText?{binary:h.response}:{text:h.responseText},h.getAllResponseHeaders()))}},h.onload=c(),d=h.onerror=c("error"),void 0!==h.onabort?h.onabort=d:h.onreadystatechange=function(){4===h.readyState&&a.setTimeout(function(){c&&d()})},c=c("abort");try{h.send(b.hasContent&&b.data||null)}catch(i){if(c)throw i}},abort:function(){c&&c()}}:void 0}),n.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(a){return n.globalEval(a),a}}}),n.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET")}),n.ajaxTransport("script",function(a){if(a.crossDomain){var b,c;return{send:function(e,f){b=n("<script>").prop({charset:a.scriptCharset,src:a.url}).on("load error",c=function(a){b.remove(),c=null,a&&f("error"===a.type?404:200,a.type)}),d.head.appendChild(b[0])},abort:function(){c&&c()}}}});var Jb=[],Kb=/(=)\?(?=&|$)|\?\?/;n.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=Jb.pop()||n.expando+"_"+kb++;return this[a]=!0,a}}),n.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(Kb.test(b.url)?"url":"string"==typeof b.data&&0===(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&Kb.test(b.data)&&"data");return h||"jsonp"===b.dataTypes[0]?(e=b.jsonpCallback=n.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(Kb,"$1"+e):b.jsonp!==!1&&(b.url+=(lb.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||n.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){void 0===f?n(a).removeProp(e):a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,Jb.push(e)),g&&n.isFunction(f)&&f(g[0]),g=f=void 0}),"script"):void 0}),n.parseHTML=function(a,b,c){if(!a||"string"!=typeof a)return null;"boolean"==typeof b&&(c=b,b=!1),b=b||d;var e=x.exec(a),f=!c&&[];return e?[b.createElement(e[1])]:(e=ca([a],b,f),f&&f.length&&n(f).remove(),n.merge([],e.childNodes))};var Lb=n.fn.load;n.fn.load=function(a,b,c){if("string"!=typeof a&&Lb)return Lb.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");return h>-1&&(d=n.trim(a.slice(h)),a=a.slice(0,h)),n.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(e="POST"),g.length>0&&n.ajax({url:a,type:e||"GET",dataType:"html",data:b}).done(function(a){f=arguments,g.html(d?n("<div>").append(n.parseHTML(a)).find(d):a)}).always(c&&function(a,b){g.each(function(){c.apply(this,f||[a.responseText,b,a])})}),this},n.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){n.fn[b]=function(a){return this.on(b,a)}}),n.expr.filters.animated=function(a){return n.grep(n.timers,function(b){return a===b.elem}).length};function Mb(a){return n.isWindow(a)?a:9===a.nodeType&&a.defaultView}n.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=n.css(a,"position"),l=n(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=n.css(a,"top"),i=n.css(a,"left"),j=("absolute"===k||"fixed"===k)&&(f+i).indexOf("auto")>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),n.isFunction(b)&&(b=b.call(a,c,n.extend({},h))),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},n.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){n.offset.setOffset(this,a,b)});var b,c,d=this[0],e={top:0,left:0},f=d&&d.ownerDocument;if(f)return b=f.documentElement,n.contains(b,d)?(e=d.getBoundingClientRect(),c=Mb(f),{top:e.top+c.pageYOffset-b.clientTop,left:e.left+c.pageXOffset-b.clientLeft}):e},position:function(){if(this[0]){var a,b,c=this[0],d={top:0,left:0};return"fixed"===n.css(c,"position")?b=c.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),n.nodeName(a[0],"html")||(d=a.offset()),d.top+=n.css(a[0],"borderTopWidth",!0),d.left+=n.css(a[0],"borderLeftWidth",!0)),{top:b.top-d.top-n.css(c,"marginTop",!0),left:b.left-d.left-n.css(c,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent;while(a&&"static"===n.css(a,"position"))a=a.offsetParent;return a||Ea})}}),n.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c="pageYOffset"===b;n.fn[a]=function(d){return K(this,function(a,d,e){var f=Mb(a);return void 0===e?f?f[b]:a[d]:void(f?f.scrollTo(c?f.pageXOffset:e,c?e:f.pageYOffset):a[d]=e)},a,d,arguments.length)}}),n.each(["top","left"],function(a,b){n.cssHooks[b]=Ga(l.pixelPosition,function(a,c){return c?(c=Fa(a,b),Ba.test(c)?n(a).position()[b]+"px":c):void 0})}),n.each({Height:"height",Width:"width"},function(a,b){n.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){n.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return K(this,function(b,c,d){var e;return n.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?n.css(b,c,g):n.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),n.fn.extend({bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)},size:function(){return this.length}}),n.fn.andSelf=n.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return n});var Nb=a.jQuery,Ob=a.$;return n.noConflict=function(b){return a.$===n&&(a.$=Ob),b&&a.jQuery===n&&(a.jQuery=Nb),n},b||(a.jQuery=a.$=n),n});
!function(t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Qs=t()}(function(){return function o(n,i,a){function p(e,t){if(!i[e]){if(!n[e]){var r="function"==typeof require&&require;if(!t&&r)return r(e,!0);if(c)return c(e,!0);throw(t=new Error("Cannot find module '"+e+"'")).code="MODULE_NOT_FOUND",t}r=i[e]={exports:{}},n[e][0].call(r.exports,function(t){return p(n[e][1][t]||t)},r,r.exports,o,n,i,a)}return i[e].exports}for(var c="function"==typeof require&&require,t=0;t<a.length;t++)p(a[t]);return p}({1:[function(t,e,r){"use strict";var o=String.prototype.replace,n=/%20/g,i="RFC1738",a="RFC3986";e.exports={default:a,formatters:{RFC1738:function(t){return o.call(t,n,"+")},RFC3986:function(t){return String(t)}},RFC1738:i,RFC3986:a}},{}],2:[function(t,e,r){"use strict";var o=t("./stringify"),n=t("./parse"),t=t("./formats");e.exports={formats:t,parse:n,stringify:o}},{"./formats":1,"./parse":3,"./stringify":4}],3:[function(t,e,r){"use strict";function c(t,e){var r,o,n,i,a={__proto__:null},t=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,p=e.parameterLimit===1/0?void 0:e.parameterLimit,c=t.split(e.delimiter,p),l=-1,f=e.charset;if(e.charsetSentinel)for(r=0;r<c.length;++r)0===c[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===c[r]?f="utf-8":"utf8=%26%2310003%3B"===c[r]&&(f="iso-8859-1"),l=r,r=c.length);for(r=0;r<c.length;++r)r!==l&&((i=-1===(i=-1===(i=(o=c[r]).indexOf("]="))?o.indexOf("="):i+1)?(n=e.decoder(o,s.decoder,f,"key"),e.strictNullHandling?null:""):(n=e.decoder(o.slice(0,i),s.decoder,f,"key"),u.maybeMap(h(o.slice(i+1),e),function(t){return e.decoder(t,s.decoder,f,"value")})))&&e.interpretNumericEntities&&"iso-8859-1"===f&&(i=i.replace(/&#(\d+);/g,function(t,e){return String.fromCharCode(parseInt(e,10))})),-1<o.indexOf("[]=")&&(i=y(i)?[i]:i),m.call(a,n)?a[n]=u.combine(a[n],i):a[n]=i);return a}function l(t,e,r,o){if(t){var n=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/g,a=0<r.depth&&/(\[[^[\]]*])/.exec(n),t=a?n.slice(0,a.index):n,p=[];if(t){if(!r.plainObjects&&m.call(Object.prototype,t)&&!r.allowPrototypes)return;p.push(t)}for(var c=0;0<r.depth&&null!==(a=i.exec(n))&&c<r.depth;){if(c+=1,!r.plainObjects&&m.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;p.push(a[1])}a&&p.push("["+n.slice(a.index)+"]");for(var l=p,t=e,f=r,u=o?t:h(t,f),y=l.length-1;0<=y;--y){var s,d,b,g=l[y];"[]"===g&&f.parseArrays?s=[].concat(u):(s=f.plainObjects?Object.create(null):{},d="["===g.charAt(0)&&"]"===g.charAt(g.length-1)?g.slice(1,-1):g,b=parseInt(d,10),f.parseArrays||""!==d?!isNaN(b)&&g!==d&&String(b)===d&&0<=b&&f.parseArrays&&b<=f.arrayLimit?(s=[])[b]=u:"__proto__"!==d&&(s[d]=u):s={0:u}),u=s}return u}}var u=t("./utils"),m=Object.prototype.hasOwnProperty,y=Array.isArray,s={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:u.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},h=function(t,e){return t&&"string"==typeof t&&e.comma&&-1<t.indexOf(",")?t.split(","):t};e.exports=function(t,e){var r=function(t){if(!t)return s;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=(void 0===t.charset?s:t).charset;return{allowDots:void 0===t.allowDots?s.allowDots:!!t.allowDots,allowPrototypes:("boolean"==typeof t.allowPrototypes?t:s).allowPrototypes,allowSparse:("boolean"==typeof t.allowSparse?t:s).allowSparse,arrayLimit:("number"==typeof t.arrayLimit?t:s).arrayLimit,charset:e,charsetSentinel:("boolean"==typeof t.charsetSentinel?t:s).charsetSentinel,comma:("boolean"==typeof t.comma?t:s).comma,decoder:("function"==typeof t.decoder?t:s).decoder,delimiter:("string"==typeof t.delimiter||u.isRegExp(t.delimiter)?t:s).delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:s.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:("boolean"==typeof t.interpretNumericEntities?t:s).interpretNumericEntities,parameterLimit:("number"==typeof t.parameterLimit?t:s).parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:("boolean"==typeof t.plainObjects?t:s).plainObjects,strictNullHandling:("boolean"==typeof t.strictNullHandling?t:s).strictNullHandling}}(e);if(""===t||null==t)return r.plainObjects?Object.create(null):{};for(var o="string"==typeof t?c(t,r):t,n=r.plainObjects?Object.create(null):{},i=Object.keys(o),a=0;a<i.length;++a)var p=i[a],p=l(p,o[p],r,"string"==typeof t),n=u.merge(n,p,r);return!0===r.allowSparse?n:u.compact(n)}},{"./utils":5}],4:[function(t,e,r){"use strict";function R(t,e){o.apply(t,M(e)?e:[e])}function I(t,e,r,o,n,i,a,p,c,l,f,u,y,s,d,b){for(var g=t,m=b,h=0,S=!1;void 0!==(m=m.get(U))&&!S;){var v=m.get(t);if(h+=1,void 0!==v){if(v===h)throw new RangeError("Cyclic object value");S=!0}void 0===m.get(U)&&(h=0)}if("function"==typeof p?g=p(e,g):g instanceof Date?g=f(g):"comma"===r&&M(g)&&(g=N.maybeMap(g,function(t){return t instanceof Date?f(t):t})),null===g){if(n)return a&&!s?a(e,_.encoder,d,"key",u):e;g=""}if("string"==typeof(j=g)||"number"==typeof j||"boolean"==typeof j||"symbol"==typeof j||"bigint"==typeof j||N.isBuffer(g))return a?[y(s?e:a(e,_.encoder,d,"key",u))+"="+y(a(g,_.encoder,d,"value",u))]:[y(e)+"="+y(String(g))];var j,A,O=[];if(void 0===g)return O;A="comma"===r&&M(g)?[{value:0<(g=s&&a?N.maybeMap(g,a):g).length?g.join(",")||null:void 0}]:M(p)?p:(j=Object.keys(g),c?j.sort(c):j);for(var w=o&&M(g)&&1===g.length?e+"[]":e,P=0;P<A.length;++P){var x,E=A[P],F="object"==typeof E&&void 0!==E.value?E.value:g[E];i&&null===F||(E=M(g)?"function"==typeof r?r(w,E):w:w+(l?"."+E:"["+E+"]"),b.set(t,h),(x=k()).set(U,b),R(O,I(F,E,r,o,n,i,"comma"===r&&s&&M(g)?null:a,p,c,l,f,u,y,s,d,x)))}return O}var k=t("side-channel"),N=t("./utils"),u=t("./formats"),y=Object.prototype.hasOwnProperty,s={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},M=Array.isArray,o=Array.prototype.push,n=Date.prototype.toISOString,t=u.default,_={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:N.encode,encodeValuesOnly:!1,format:t,formatter:u.formatters[t],indices:!1,serializeDate:function(t){return n.call(t)},skipNulls:!1,strictNullHandling:!1},U={};e.exports=function(t,e){var r=t,o=function(t){if(!t)return _;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||_.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=u.default;if(void 0!==t.format){if(!y.call(u.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var o=u.formatters[r],n=_.filter;return"function"!=typeof t.filter&&!M(t.filter)||(n=t.filter),{addQueryPrefix:("boolean"==typeof t.addQueryPrefix?t:_).addQueryPrefix,allowDots:void 0===t.allowDots?_.allowDots:!!t.allowDots,charset:e,charsetSentinel:("boolean"==typeof t.charsetSentinel?t:_).charsetSentinel,delimiter:(void 0===t.delimiter?_:t).delimiter,encode:("boolean"==typeof t.encode?t:_).encode,encoder:("function"==typeof t.encoder?t:_).encoder,encodeValuesOnly:("boolean"==typeof t.encodeValuesOnly?t:_).encodeValuesOnly,filter:n,format:r,formatter:o,serializeDate:("function"==typeof t.serializeDate?t:_).serializeDate,skipNulls:("boolean"==typeof t.skipNulls?t:_).skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:("boolean"==typeof t.strictNullHandling?t:_).strictNullHandling}}(e),n=("function"==typeof o.filter?r=(0,o.filter)("",r):M(o.filter)&&(p=o.filter),[]);if("object"!=typeof r||null===r)return"";var t=e&&e.arrayFormat in s?e.arrayFormat:!(e&&"indices"in e)||e.indices?"indices":"repeat",i=s[t];if(e&&"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var a="comma"===i&&e&&e.commaRoundTrip,p=p||Object.keys(r);o.sort&&p.sort(o.sort);for(var c=k(),l=0;l<p.length;++l){var f=p[l];o.skipNulls&&null===r[f]||R(n,I(r[f],f,i,a,o.strictNullHandling,o.skipNulls,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset,c))}t=n.join(o.delimiter),e=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?e+="utf8=%26%2310003%3B&":e+="utf8=%E2%9C%93&"),0<t.length?e+t:""}},{"./formats":1,"./utils":5,"side-channel":17}],5:[function(t,e,r){"use strict";function p(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},o=0;o<t.length;++o)void 0!==t[o]&&(r[o]=t[o]);return r}var l=t("./formats"),c=Object.prototype.hasOwnProperty,b=Array.isArray,f=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}();e.exports={arrayToObject:p,assign:function(t,r){return Object.keys(r).reduce(function(t,e){return t[e]=r[e],t},t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],o=0;o<e.length;++o)for(var n=e[o],i=n.obj[n.prop],a=Object.keys(i),p=0;p<a.length;++p){var c=a[p],l=i[c];"object"==typeof l&&null!==l&&-1===r.indexOf(l)&&(e.push({obj:i,prop:c}),r.push(l))}for(var f=e;1<f.length;){var u=f.pop(),y=u.obj[u.prop];if(b(y)){for(var s=[],d=0;d<y.length;++d)void 0!==y[d]&&s.push(y[d]);u.obj[u.prop]=s}}return t},decode:function(e,t,r){e=e.replace(/\+/g," ");if("iso-8859-1"===r)return e.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(e)}catch(t){return e}},encode:function(t,e,r,o,n){if(0===t.length)return t;var i=t;if("symbol"==typeof t?i=Symbol.prototype.toString.call(t):"string"!=typeof t&&(i=String(t)),"iso-8859-1"===r)return escape(i).replace(/%u[0-9a-f]{4}/gi,function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"});for(var a="",p=0;p<i.length;++p){var c=i.charCodeAt(p);45===c||46===c||95===c||126===c||48<=c&&c<=57||65<=c&&c<=90||97<=c&&c<=122||n===l.RFC1738&&(40===c||41===c)?a+=i.charAt(p):c<128?a+=f[c]:c<2048?a+=f[192|c>>6]+f[128|63&c]:c<55296||57344<=c?a+=f[224|c>>12]+f[128|c>>6&63]+f[128|63&c]:(p+=1,c=65536+((1023&c)<<10|1023&i.charCodeAt(p)),a+=f[240|c>>18]+f[128|c>>12&63]+f[128|c>>6&63]+f[128|63&c])}return a},isBuffer:function(t){return!(!t||"object"!=typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(b(t)){for(var r=[],o=0;o<t.length;o+=1)r.push(e(t[o]));return r}return e(t)},merge:function o(n,i,a){if(!i)return n;if("object"!=typeof i){if(b(n))n.push(i);else{if(!n||"object"!=typeof n)return[n,i];(a&&(a.plainObjects||a.allowPrototypes)||!c.call(Object.prototype,i))&&(n[i]=!0)}return n}if(!n||"object"!=typeof n)return[n].concat(i);var t=n;return b(n)&&!b(i)&&(t=p(n,a)),b(n)&&b(i)?(i.forEach(function(t,e){var r;c.call(n,e)?(r=n[e])&&"object"==typeof r&&t&&"object"==typeof t?n[e]=o(r,t,a):n.push(t):n[e]=t}),n):Object.keys(i).reduce(function(t,e){var r=i[e];return c.call(t,e)?t[e]=o(t[e],r,a):t[e]=r,t},t)}}},{"./formats":1}],6:[function(t,e,r){},{}],7:[function(t,e,r){"use strict";var o=t("get-intrinsic"),n=t("./"),i=n(o("String.prototype.indexOf"));e.exports=function(t,e){e=o(t,!!e);return"function"==typeof e&&-1<i(t,".prototype.")?n(e):e}},{"./":8,"get-intrinsic":11}],8:[function(t,e,r){"use strict";var o=t("function-bind"),t=t("get-intrinsic"),n=t("%Function.prototype.apply%"),i=t("%Function.prototype.call%"),a=t("%Reflect.apply%",!0)||o.call(i,n),p=t("%Object.getOwnPropertyDescriptor%",!0),c=t("%Object.defineProperty%",!0),l=t("%Math.max%");if(c)try{c({},"a",{value:1})}catch(t){c=null}e.exports=function(t){var e=a(o,i,arguments);return p&&c&&p(e,"length").configurable&&c(e,"length",{value:1+l(0,t.length-(arguments.length-1))}),e};function f(){return a(o,n,arguments)}c?c(e.exports,"apply",{value:f}):e.exports.apply=f},{"function-bind":10,"get-intrinsic":11}],9:[function(t,e,r){"use strict";var c=Array.prototype.slice,l=Object.prototype.toString;e.exports=function(e){var r=this;if("function"!=typeof r||"[object Function]"!==l.call(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var o,t,n=c.call(arguments,1),i=Math.max(0,r.length-n.length),a=[],p=0;p<i;p++)a.push("$"+p);return o=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")(function(){var t;return this instanceof o?(t=r.apply(this,n.concat(c.call(arguments))),Object(t)===t?t:this):r.apply(e,n.concat(c.call(arguments)))}),r.prototype&&((t=function(){}).prototype=r.prototype,o.prototype=new t,t.prototype=null),o}},{}],10:[function(t,e,r){"use strict";t=t("./implementation");e.exports=Function.prototype.bind||t},{"./implementation":9}],11:[function(t,e,r){"use strict";var o,y=SyntaxError,n=Function,s=TypeError,i=function(t){try{return n('"use strict"; return ('+t+").constructor;")()}catch(t){}},d=Object.getOwnPropertyDescriptor;if(d)try{d({},"")}catch(t){d=null}function a(){throw new s}var p=d?function(){try{return a}catch(t){try{return d(arguments,"callee").get}catch(t){return a}}}():a,c=t("has-symbols")(),l=t("has-proto")(),f=Object.getPrototypeOf||(l?function(t){return t.__proto__}:null),b={},l="undefined"!=typeof Uint8Array&&f?f(Uint8Array):o,g={"%AggregateError%":"undefined"==typeof AggregateError?o:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?o:ArrayBuffer,"%ArrayIteratorPrototype%":c&&f?f([][Symbol.iterator]()):o,"%AsyncFromSyncIteratorPrototype%":o,"%AsyncFunction%":b,"%AsyncGenerator%":b,"%AsyncGeneratorFunction%":b,"%AsyncIteratorPrototype%":b,"%Atomics%":"undefined"==typeof Atomics?o:Atomics,"%BigInt%":"undefined"==typeof BigInt?o:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?o:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?o:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?o:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?o:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?o:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?o:FinalizationRegistry,"%Function%":n,"%GeneratorFunction%":b,"%Int8Array%":"undefined"==typeof Int8Array?o:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?o:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?o:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":c&&f?f(f([][Symbol.iterator]())):o,"%JSON%":"object"==typeof JSON?JSON:o,"%Map%":"undefined"==typeof Map?o:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&c&&f?f((new Map)[Symbol.iterator]()):o,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?o:Promise,"%Proxy%":"undefined"==typeof Proxy?o:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?o:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?o:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&c&&f?f((new Set)[Symbol.iterator]()):o,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?o:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":c&&f?f(""[Symbol.iterator]()):o,"%Symbol%":c?Symbol:o,"%SyntaxError%":y,"%ThrowTypeError%":p,"%TypedArray%":l,"%TypeError%":s,"%Uint8Array%":"undefined"==typeof Uint8Array?o:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?o:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?o:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?o:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?o:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?o:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?o:WeakSet};if(f)try{null.error}catch(t){c=f(f(t));g["%Error.prototype%"]=c}function m(t){var e,r;return"%AsyncFunction%"===t?e=i("async function () {}"):"%GeneratorFunction%"===t?e=i("function* () {}"):"%AsyncGeneratorFunction%"===t?e=i("async function* () {}"):"%AsyncGenerator%"===t?(r=m("%AsyncGeneratorFunction%"))&&(e=r.prototype):"%AsyncIteratorPrototype%"===t&&(r=m("%AsyncGenerator%"))&&f&&(e=f(r.prototype)),g[t]=e}var h={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},p=t("function-bind"),S=t("has"),v=p.call(Function.call,Array.prototype.concat),j=p.call(Function.apply,Array.prototype.splice),A=p.call(Function.call,String.prototype.replace),O=p.call(Function.call,String.prototype.slice),w=p.call(Function.call,RegExp.prototype.exec),P=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,x=/\\(\\)?/g;e.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new s("intrinsic name must be a non-empty string");if(1<arguments.length&&"boolean"!=typeof e)throw new s('"allowMissing" argument must be a boolean');if(null===w(/^%?[^%]*%?$/,t))throw new y("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=O(t,0,1),r=O(t,-1);if("%"===e&&"%"!==r)throw new y("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new y("invalid intrinsic syntax, expected opening `%`");var n=[];return A(t,P,function(t,e,r,o){n[n.length]=r?A(o,x,"$1"):e||t}),n}(t),o=0<r.length?r[0]:"",n=function(t,e){var r,o=t;if(S(h,o)&&(o="%"+(r=h[o])[0]+"%"),S(g,o)){var n=g[o];if(void 0!==(n=n===b?m(o):n)||e)return{alias:r,name:o,value:n};throw new s("intrinsic "+t+" exists, but is not available. Please file an issue!")}throw new y("intrinsic "+t+" does not exist!")}("%"+o+"%",e),i=(n.name,n.value),a=!1,n=n.alias;n&&(o=n[0],j(r,v([0,1],n)));for(var p=1,c=!0;p<r.length;p+=1){var l=r[p],f=O(l,0,1),u=O(l,-1);if(('"'===f||"'"===f||"`"===f||'"'===u||"'"===u||"`"===u)&&f!==u)throw new y("property names with quotes must have matching quotes");if("constructor"!==l&&c||(a=!0),S(g,f="%"+(o+="."+l)+"%"))i=g[f];else if(null!=i){if(!(l in i)){if(e)return;throw new s("base intrinsic for "+t+" exists, but the property is not available.")}i=d&&p+1>=r.length?(c=!!(u=d(i,l)))&&"get"in u&&!("originalValue"in u.get)?u.get:i[l]:(c=S(i,l),i[l]),c&&!a&&(g[f]=i)}}return i}},{"function-bind":10,has:15,"has-proto":12,"has-symbols":13}],12:[function(t,e,r){"use strict";var o={foo:{}},n=Object;e.exports=function(){return{__proto__:o}.foo===o.foo&&!({__proto__:null}instanceof n)}},{}],13:[function(t,e,r){"use strict";var o="undefined"!=typeof Symbol&&Symbol,n=t("./shams");e.exports=function(){return"function"==typeof o&&("function"==typeof Symbol&&("symbol"==typeof o("foo")&&("symbol"==typeof Symbol("bar")&&n())))}},{"./shams":14}],14:[function(t,e,r){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;r=Object.getOwnPropertySymbols(t);if(1!==r.length||r[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){r=Object.getOwnPropertyDescriptor(t,e);if(42!==r.value||!0!==r.enumerable)return!1}return!0}},{}],15:[function(t,e,r){"use strict";t=t("function-bind");e.exports=t.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":10}],16:[function(r,o,i){var t="function"==typeof Map&&Map.prototype,e=Object.getOwnPropertyDescriptor&&t?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,S=t&&e&&"function"==typeof e.get?e.get:null,v=t&&Map.prototype.forEach,e="function"==typeof Set&&Set.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,j=e&&t&&"function"==typeof t.get?t.get:null,A=e&&Set.prototype.forEach,O="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,w="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,P="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,K=Boolean.prototype.valueOf,a=Object.prototype.toString,X=Function.prototype.toString,Y=String.prototype.match,x=String.prototype.slice,E=String.prototype.replace,p=String.prototype.toUpperCase,F=String.prototype.toLowerCase,f=RegExp.prototype.test,R=Array.prototype.concat,I=Array.prototype.join,Z=Array.prototype.slice,n=Math.floor,k="function"==typeof BigInt?BigInt.prototype.valueOf:null,u=Object.getOwnPropertySymbols,N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,M="function"==typeof Symbol&&"object"==typeof Symbol.iterator,_="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===M||"symbol")?Symbol.toStringTag:null,U=Object.prototype.propertyIsEnumerable,D=("function"==typeof Reflect?Reflect:Object).getPrototypeOf||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function B(t,e){if(t===1/0||t===-1/0||t!=t||t&&-1e3<t&&t<1e3||f.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var o=t<0?-n(-t):n(t);if(o!==t)return t=String(o),o=x.call(e,t.length+1),E.call(t,r,"$&_")+"."+E.call(E.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}return E.call(e,r,"$&_")}var T=r("./util.inspect"),t=T.custom,W=$(t)?t:null;function C(t,e,r){r="double"===(r.quoteStyle||e)?'"':"'";return r+t+r}function L(t){return!("[object Array]"!==H(t)||_&&"object"==typeof t&&_ in t)}function G(t){return!("[object RegExp]"!==H(t)||_&&"object"==typeof t&&_ in t)}function $(t){if(M)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return 1;if(t&&"object"==typeof t&&N)try{return N.call(t),1}catch(t){}}o.exports=function o(r,t,n,i){var a=t||{};if(q(a,"quoteStyle")&&"single"!==a.quoteStyle&&"double"!==a.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(q(a,"maxStringLength")&&("number"==typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');t=!q(a,"customInspect")||a.customInspect;if("boolean"!=typeof t&&"symbol"!==t)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(q(a,"indent")&&null!==a.indent&&"\t"!==a.indent&&!(parseInt(a.indent,10)===a.indent&&0<a.indent))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(q(a,"numericSeparator")&&"boolean"!=typeof a.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var e=a.numericSeparator;if(void 0===r)return"undefined";if(null===r)return"null";if("boolean"==typeof r)return r?"true":"false";if("string"==typeof r)return function t(e,r){if(e.length>r.maxStringLength)return o=e.length-r.maxStringLength,o="... "+o+" more character"+(1<o?"s":""),t(x.call(e,0,r.maxStringLength),r)+o;var o=E.call(E.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,et);return C(o,"single",r)}(r,a);if("number"==typeof r){if(0===r)return 0<1/0/r?"0":"-0";var p=String(r);return e?B(r,p):p}if("bigint"==typeof r)return p=String(r)+"n",e?B(r,p):p;e=void 0===a.depth?5:a.depth;if(e<=(n=void 0===n?0:n)&&0<e&&"object"==typeof r)return L(r)?"[Array]":"[Object]";var c,l,f,u,y,s,p=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&0<t.indent))return null;r=I.call(Array(t.indent+1)," ")}return{base:r,prev:I.call(Array(e+1),r)}}(a,n);if(void 0===i)i=[];else if(0<=tt(i,r))return"[Circular]";function d(t,e,r){return e&&(i=Z.call(i)).push(e),r?(e={depth:a.depth},q(a,"quoteStyle")&&(e.quoteStyle=a.quoteStyle),o(t,e,n+1,i)):o(t,a,n+1,i)}if("function"==typeof r&&!G(r))return"[Function"+((h=function(t){if(t.name)return t.name;t=Y.call(X.call(t),/^function\s*([\w$]+)/);if(t)return t[1];return null}(r))?": "+h:" (anonymous)")+"]"+(0<(h=J(r,d)).length?" { "+I.call(h,", ")+" }":"");if($(r))return h=M?E.call(String(r),/^(Symbol\(.*\))_[^)]*$/,"$1"):N.call(r),"object"!=typeof r||M?h:V(h);if(function(t){if(!t||"object"!=typeof t)return;if("undefined"!=typeof HTMLElement&&t instanceof HTMLElement)return 1;return"string"==typeof t.nodeName&&"function"==typeof t.getAttribute}(r)){for(var b="<"+F.call(String(r.nodeName)),g=r.attributes||[],m=0;m<g.length;m++)b+=" "+g[m].name+"="+C((c=g[m].value,E.call(String(c),/"/g,"&quot;")),"double",a);return b+=">",r.childNodes&&r.childNodes.length&&(b+="..."),b+="</"+F.call(String(r.nodeName))+">"}if(L(r)){if(0===r.length)return"[]";var h=J(r,d);return p&&!function(t){for(var e=0;e<t.length;e++)if(0<=tt(t[e],"\n"))return;return 1}(h)?"["+Q(h,p)+"]":"[ "+I.call(h,", ")+" ]"}if(!("[object Error]"!==H(h=r)||_&&"object"==typeof h&&_ in h))return u=J(r,d),"cause"in Error.prototype||!("cause"in r)||U.call(r,"cause")?0===u.length?"["+String(r)+"]":"{ ["+String(r)+"] "+I.call(u,", ")+" }":"{ ["+String(r)+"] "+I.call(R.call("[cause]: "+d(r.cause),u),", ")+" }";if("object"==typeof r&&t){if(W&&"function"==typeof r[W]&&T)return T(r,{depth:e-n});if("symbol"!==t&&"function"==typeof r.inspect)return r.inspect()}return function(t){if(!S||!t||"object"!=typeof t)return;try{S.call(t);try{j.call(t)}catch(t){return 1}return t instanceof Map}catch(t){}return}(r)?(l=[],v&&v.call(r,function(t,e){l.push(d(e,r,!0)+" => "+d(t,r))}),rt("Map",S.call(r),l,p)):function(t){if(!j||!t||"object"!=typeof t)return;try{j.call(t);try{S.call(t)}catch(t){return 1}return t instanceof Set}catch(t){}return}(r)?(f=[],A&&A.call(r,function(t){f.push(d(t,r))}),rt("Set",j.call(r),f,p)):function(t){if(!O||!t||"object"!=typeof t)return;try{O.call(t,O);try{w.call(t,w)}catch(t){return 1}return t instanceof WeakMap}catch(t){}return}(r)?z("WeakMap"):function(t){if(!w||!t||"object"!=typeof t)return;try{w.call(t,w);try{O.call(t,O)}catch(t){return 1}return t instanceof WeakSet}catch(t){}return}(r)?z("WeakSet"):function(t){if(!P||!t||"object"!=typeof t)return;try{return P.call(t),1}catch(t){}return}(r)?z("WeakRef"):"[object Number]"!==H(u=r)||_&&"object"==typeof u&&_ in u?function(t){if(!t||"object"!=typeof t||!k)return;try{return k.call(t),1}catch(t){}return}(r)?V(d(k.call(r))):"[object Boolean]"!==H(e=r)||_&&"object"==typeof e&&_ in e?"[object String]"!==H(t=r)||_&&"object"==typeof t&&_ in t?("[object Date]"!==H(e=r)||_&&"object"==typeof e&&_ in e)&&!G(r)?(t=J(r,d),e=D?D(r)===Object.prototype:r instanceof Object||r.constructor===Object,y=r instanceof Object?"":"null prototype",s=!e&&_&&Object(r)===r&&_ in r?x.call(H(r),8,-1):y?"Object":"",e=(!e&&"function"==typeof r.constructor&&r.constructor.name?r.constructor.name+" ":"")+(s||y?"["+I.call(R.call([],s||[],y||[]),": ")+"] ":""),0===t.length?e+"{}":p?e+"{"+Q(t,p)+"}":e+"{ "+I.call(t,", ")+" }"):String(r):V(d(String(r))):V(K.call(r)):V(d(Number(r)))};var c=Object.prototype.hasOwnProperty||function(t){return t in this};function q(t,e){return c.call(t,e)}function H(t){return a.call(t)}function tt(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,o=t.length;r<o;r++)if(t[r]===e)return r;return-1}function et(t){var t=t.charCodeAt(0),e={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return e?"\\"+e:"\\x"+(t<16?"0":"")+p.call(t.toString(16))}function V(t){return"Object("+t+")"}function z(t){return t+" { ? }"}function rt(t,e,r,o){return t+" ("+e+") {"+(o?Q(r,o):I.call(r,", "))+"}"}function Q(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+I.call(t,","+r)+"\n"+e.prev}function J(t,e){var r=L(t),o=[];if(r){o.length=t.length;for(var n=0;n<t.length;n++)o[n]=q(t,n)?e(t[n],t):""}var i,a="function"==typeof u?u(t):[];if(M)for(var p={},c=0;c<a.length;c++)p["$"+a[c]]=a[c];for(i in t)!q(t,i)||r&&String(Number(i))===i&&i<t.length||M&&p["$"+i]instanceof Symbol||(f.call(/[^\w$]/,i)?o.push(e(i,t)+": "+e(t[i],t)):o.push(i+": "+e(t[i],t)));if("function"==typeof u)for(var l=0;l<a.length;l++)U.call(t,a[l])&&o.push("["+e(a[l])+"]: "+e(t[a[l]],t));return o}},{"./util.inspect":6}],17:[function(t,e,r){"use strict";function p(t,e){for(var r,o=t;null!==(r=o.next);o=r)if(r.key===e)return o.next=r.next,r.next=t.next,t.next=r}var o=t("get-intrinsic"),n=t("call-bind/callBound"),c=t("object-inspect"),l=o("%TypeError%"),f=o("%WeakMap%",!0),u=o("%Map%",!0),y=n("WeakMap.prototype.get",!0),s=n("WeakMap.prototype.set",!0),d=n("WeakMap.prototype.has",!0),b=n("Map.prototype.get",!0),g=n("Map.prototype.set",!0),m=n("Map.prototype.has",!0);e.exports=function(){var n,i,a,e={assert:function(t){if(!e.has(t))throw new l("Side channel does not contain "+c(t))},get:function(t){if(f&&t&&("object"==typeof t||"function"==typeof t)){if(n)return y(n,t)}else if(u){if(i)return b(i,t)}else{var e;if(a)return(e=p(e=a,t))&&e.value}},has:function(t){if(f&&t&&("object"==typeof t||"function"==typeof t)){if(n)return d(n,t)}else if(u){if(i)return m(i,t)}else if(a)return!!p(a,t);return!1},set:function(t,e){var r,o;f&&t&&("object"==typeof t||"function"==typeof t)?(n=n||new f,s(n,t,e)):u?(i=i||new u,g(i,t,e)):(e=e,(o=p(r=a=a||{key:{},next:null},t=t))?o.value=e:r.next={key:t,next:r.next,value:e})}};return e}},{"call-bind/callBound":7,"get-intrinsic":11,"object-inspect":16}]},{},[2])(2)});
\ No newline at end of file
var sortObjASCII = function (obj) {
var arr = Object.keys(obj).sort();
if (arr.length === 0) {
return {};
}
var sortObj = {};
for (var ii in arr) {
sortObj[arr[ii]] = obj[arr[ii]];
}
return sortObj;
}
function getToken () {
return window.localStorage.getItem('token') ? window.localStorage.getItem('token') : ''
}
const request = axios.create({
timeout: 120000,
});
// 请求拦截器
request.interceptors.request.use(
function (config) {
const token = getToken();
// 请求头带上token
if (token) {
config.headers.Authorization = token
} else {
config.headers.Authorization = "075895df18c38c8950999cef1af1f0d6";
}
// 用户编码
config.headers.UserNo = window.localStorage.getItem('user_no')
// 应用设置
const appId = 'dkFv6OwWyQhSeaZG'
const appSecret = 'd34cea92316d1da113e95158bed9ca97'
config.headers.AppId = appId
config.headers.AppSecret = appSecret
// 签名
var signData = Qs.parse(config.data)
var timeStr = Date.parse(new Date()) / 1000
signData.appId = appId
signData.appSecret = appSecret
signData.timestamp = timeStr
signData.url = decodeURI(config.url)
signData.token = token || config.headers.Authorization;
// 按照ASCII码进行排序
var dataSign = sortObjASCII(signData)
// 转换为字符串
var signStr = ''
for (var key in dataSign) {
var str = ''
if ((typeof signData[key] !== 'string') && signData[key].constructor !== String) {
str = JSON.stringify(signData[key])
} else {
str = signData[key]
}
if (signStr === '') {
signStr = key + '=' + str
} else {
signStr += '&' + key + '=' + str
}
}
const salt = '&4F6g4Y6b5L4R9'
const sign = signStr + salt;
config.headers.Sign = md5(md5(sign)) // 加密盐
config.headers.Timestamp = timeStr // 请求时间
return config;
},
function (error) {
return Promise.reject(error)
}
);
// 响应拦截器
request.interceptors.response.use(
function (response) {
if (response.status === 200) {
if (response.data && response.data.code === 200) {
return response.data;
} else {
return false;
}
}
return false;
},
function (error) {
console.log(error)
const str = `message: ${error.message} \n data: ${error.config.data} \n token: ${error.config.headers.Authorization}`
alert(str);
return Promise.reject(error);
}
);
(function(factory){if(typeof exports==="object"){module.exports=factory()}else if(typeof define==="function"&&define.amd){define(factory)}else{var glob;try{glob=window}catch(e){glob=self}glob.SparkMD5=factory()}})(function(undefined){"use strict";var add32=function(a,b){return a+b&4294967295},hex_chr=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function cmn(q,a,b,x,s,t){a=add32(add32(a,q),add32(x,t));return add32(a<<s|a>>>32-s,b)}function md5cycle(x,k){var a=x[0],b=x[1],c=x[2],d=x[3];a+=(b&c|~b&d)+k[0]-680876936|0;a=(a<<7|a>>>25)+b|0;d+=(a&b|~a&c)+k[1]-389564586|0;d=(d<<12|d>>>20)+a|0;c+=(d&a|~d&b)+k[2]+606105819|0;c=(c<<17|c>>>15)+d|0;b+=(c&d|~c&a)+k[3]-1044525330|0;b=(b<<22|b>>>10)+c|0;a+=(b&c|~b&d)+k[4]-176418897|0;a=(a<<7|a>>>25)+b|0;d+=(a&b|~a&c)+k[5]+1200080426|0;d=(d<<12|d>>>20)+a|0;c+=(d&a|~d&b)+k[6]-1473231341|0;c=(c<<17|c>>>15)+d|0;b+=(c&d|~c&a)+k[7]-45705983|0;b=(b<<22|b>>>10)+c|0;a+=(b&c|~b&d)+k[8]+1770035416|0;a=(a<<7|a>>>25)+b|0;d+=(a&b|~a&c)+k[9]-1958414417|0;d=(d<<12|d>>>20)+a|0;c+=(d&a|~d&b)+k[10]-42063|0;c=(c<<17|c>>>15)+d|0;b+=(c&d|~c&a)+k[11]-1990404162|0;b=(b<<22|b>>>10)+c|0;a+=(b&c|~b&d)+k[12]+1804603682|0;a=(a<<7|a>>>25)+b|0;d+=(a&b|~a&c)+k[13]-40341101|0;d=(d<<12|d>>>20)+a|0;c+=(d&a|~d&b)+k[14]-1502002290|0;c=(c<<17|c>>>15)+d|0;b+=(c&d|~c&a)+k[15]+1236535329|0;b=(b<<22|b>>>10)+c|0;a+=(b&d|c&~d)+k[1]-165796510|0;a=(a<<5|a>>>27)+b|0;d+=(a&c|b&~c)+k[6]-1069501632|0;d=(d<<9|d>>>23)+a|0;c+=(d&b|a&~b)+k[11]+643717713|0;c=(c<<14|c>>>18)+d|0;b+=(c&a|d&~a)+k[0]-373897302|0;b=(b<<20|b>>>12)+c|0;a+=(b&d|c&~d)+k[5]-701558691|0;a=(a<<5|a>>>27)+b|0;d+=(a&c|b&~c)+k[10]+38016083|0;d=(d<<9|d>>>23)+a|0;c+=(d&b|a&~b)+k[15]-660478335|0;c=(c<<14|c>>>18)+d|0;b+=(c&a|d&~a)+k[4]-405537848|0;b=(b<<20|b>>>12)+c|0;a+=(b&d|c&~d)+k[9]+568446438|0;a=(a<<5|a>>>27)+b|0;d+=(a&c|b&~c)+k[14]-1019803690|0;d=(d<<9|d>>>23)+a|0;c+=(d&b|a&~b)+k[3]-187363961|0;c=(c<<14|c>>>18)+d|0;b+=(c&a|d&~a)+k[8]+1163531501|0;b=(b<<20|b>>>12)+c|0;a+=(b&d|c&~d)+k[13]-1444681467|0;a=(a<<5|a>>>27)+b|0;d+=(a&c|b&~c)+k[2]-51403784|0;d=(d<<9|d>>>23)+a|0;c+=(d&b|a&~b)+k[7]+1735328473|0;c=(c<<14|c>>>18)+d|0;b+=(c&a|d&~a)+k[12]-1926607734|0;b=(b<<20|b>>>12)+c|0;a+=(b^c^d)+k[5]-378558|0;a=(a<<4|a>>>28)+b|0;d+=(a^b^c)+k[8]-2022574463|0;d=(d<<11|d>>>21)+a|0;c+=(d^a^b)+k[11]+1839030562|0;c=(c<<16|c>>>16)+d|0;b+=(c^d^a)+k[14]-35309556|0;b=(b<<23|b>>>9)+c|0;a+=(b^c^d)+k[1]-1530992060|0;a=(a<<4|a>>>28)+b|0;d+=(a^b^c)+k[4]+1272893353|0;d=(d<<11|d>>>21)+a|0;c+=(d^a^b)+k[7]-155497632|0;c=(c<<16|c>>>16)+d|0;b+=(c^d^a)+k[10]-1094730640|0;b=(b<<23|b>>>9)+c|0;a+=(b^c^d)+k[13]+681279174|0;a=(a<<4|a>>>28)+b|0;d+=(a^b^c)+k[0]-358537222|0;d=(d<<11|d>>>21)+a|0;c+=(d^a^b)+k[3]-722521979|0;c=(c<<16|c>>>16)+d|0;b+=(c^d^a)+k[6]+76029189|0;b=(b<<23|b>>>9)+c|0;a+=(b^c^d)+k[9]-640364487|0;a=(a<<4|a>>>28)+b|0;d+=(a^b^c)+k[12]-421815835|0;d=(d<<11|d>>>21)+a|0;c+=(d^a^b)+k[15]+530742520|0;c=(c<<16|c>>>16)+d|0;b+=(c^d^a)+k[2]-995338651|0;b=(b<<23|b>>>9)+c|0;a+=(c^(b|~d))+k[0]-198630844|0;a=(a<<6|a>>>26)+b|0;d+=(b^(a|~c))+k[7]+1126891415|0;d=(d<<10|d>>>22)+a|0;c+=(a^(d|~b))+k[14]-1416354905|0;c=(c<<15|c>>>17)+d|0;b+=(d^(c|~a))+k[5]-57434055|0;b=(b<<21|b>>>11)+c|0;a+=(c^(b|~d))+k[12]+1700485571|0;a=(a<<6|a>>>26)+b|0;d+=(b^(a|~c))+k[3]-1894986606|0;d=(d<<10|d>>>22)+a|0;c+=(a^(d|~b))+k[10]-1051523|0;c=(c<<15|c>>>17)+d|0;b+=(d^(c|~a))+k[1]-2054922799|0;b=(b<<21|b>>>11)+c|0;a+=(c^(b|~d))+k[8]+1873313359|0;a=(a<<6|a>>>26)+b|0;d+=(b^(a|~c))+k[15]-30611744|0;d=(d<<10|d>>>22)+a|0;c+=(a^(d|~b))+k[6]-1560198380|0;c=(c<<15|c>>>17)+d|0;b+=(d^(c|~a))+k[13]+1309151649|0;b=(b<<21|b>>>11)+c|0;a+=(c^(b|~d))+k[4]-145523070|0;a=(a<<6|a>>>26)+b|0;d+=(b^(a|~c))+k[11]-1120210379|0;d=(d<<10|d>>>22)+a|0;c+=(a^(d|~b))+k[2]+718787259|0;c=(c<<15|c>>>17)+d|0;b+=(d^(c|~a))+k[9]-343485551|0;b=(b<<21|b>>>11)+c|0;x[0]=a+x[0]|0;x[1]=b+x[1]|0;x[2]=c+x[2]|0;x[3]=d+x[3]|0}function md5blk(s){var md5blks=[],i;for(i=0;i<64;i+=4){md5blks[i>>2]=s.charCodeAt(i)+(s.charCodeAt(i+1)<<8)+(s.charCodeAt(i+2)<<16)+(s.charCodeAt(i+3)<<24)}return md5blks}function md5blk_array(a){var md5blks=[],i;for(i=0;i<64;i+=4){md5blks[i>>2]=a[i]+(a[i+1]<<8)+(a[i+2]<<16)+(a[i+3]<<24)}return md5blks}function md51(s){var n=s.length,state=[1732584193,-271733879,-1732584194,271733878],i,length,tail,tmp,lo,hi;for(i=64;i<=n;i+=64){md5cycle(state,md5blk(s.substring(i-64,i)))}s=s.substring(i-64);length=s.length;tail=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(i=0;i<length;i+=1){tail[i>>2]|=s.charCodeAt(i)<<(i%4<<3)}tail[i>>2]|=128<<(i%4<<3);if(i>55){md5cycle(state,tail);for(i=0;i<16;i+=1){tail[i]=0}}tmp=n*8;tmp=tmp.toString(16).match(/(.*?)(.{0,8})$/);lo=parseInt(tmp[2],16);hi=parseInt(tmp[1],16)||0;tail[14]=lo;tail[15]=hi;md5cycle(state,tail);return state}function md51_array(a){var n=a.length,state=[1732584193,-271733879,-1732584194,271733878],i,length,tail,tmp,lo,hi;for(i=64;i<=n;i+=64){md5cycle(state,md5blk_array(a.subarray(i-64,i)))}a=i-64<n?a.subarray(i-64):new Uint8Array(0);length=a.length;tail=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(i=0;i<length;i+=1){tail[i>>2]|=a[i]<<(i%4<<3)}tail[i>>2]|=128<<(i%4<<3);if(i>55){md5cycle(state,tail);for(i=0;i<16;i+=1){tail[i]=0}}tmp=n*8;tmp=tmp.toString(16).match(/(.*?)(.{0,8})$/);lo=parseInt(tmp[2],16);hi=parseInt(tmp[1],16)||0;tail[14]=lo;tail[15]=hi;md5cycle(state,tail);return state}function rhex(n){var s="",j;for(j=0;j<4;j+=1){s+=hex_chr[n>>j*8+4&15]+hex_chr[n>>j*8&15]}return s}function hex(x){var i;for(i=0;i<x.length;i+=1){x[i]=rhex(x[i])}return x.join("")}if(hex(md51("hello"))!=="5d41402abc4b2a76b9719d911017c592"){add32=function(x,y){var lsw=(x&65535)+(y&65535),msw=(x>>16)+(y>>16)+(lsw>>16);return msw<<16|lsw&65535}}if(typeof ArrayBuffer!=="undefined"&&!ArrayBuffer.prototype.slice){(function(){function clamp(val,length){val=val|0||0;if(val<0){return Math.max(val+length,0)}return Math.min(val,length)}ArrayBuffer.prototype.slice=function(from,to){var length=this.byteLength,begin=clamp(from,length),end=length,num,target,targetArray,sourceArray;if(to!==undefined){end=clamp(to,length)}if(begin>end){return new ArrayBuffer(0)}num=end-begin;target=new ArrayBuffer(num);targetArray=new Uint8Array(target);sourceArray=new Uint8Array(this,begin,num);targetArray.set(sourceArray);return target}})()}function toUtf8(str){if(/[\u0080-\uFFFF]/.test(str)){str=unescape(encodeURIComponent(str))}return str}function utf8Str2ArrayBuffer(str,returnUInt8Array){var length=str.length,buff=new ArrayBuffer(length),arr=new Uint8Array(buff),i;for(i=0;i<length;i+=1){arr[i]=str.charCodeAt(i)}return returnUInt8Array?arr:buff}function arrayBuffer2Utf8Str(buff){return String.fromCharCode.apply(null,new Uint8Array(buff))}function concatenateArrayBuffers(first,second,returnUInt8Array){var result=new Uint8Array(first.byteLength+second.byteLength);result.set(new Uint8Array(first));result.set(new Uint8Array(second),first.byteLength);return returnUInt8Array?result:result.buffer}function hexToBinaryString(hex){var bytes=[],length=hex.length,x;for(x=0;x<length-1;x+=2){bytes.push(parseInt(hex.substr(x,2),16))}return String.fromCharCode.apply(String,bytes)}function SparkMD5(){this.reset()}SparkMD5.prototype.append=function(str){this.appendBinary(toUtf8(str));return this};SparkMD5.prototype.appendBinary=function(contents){this._buff+=contents;this._length+=contents.length;var length=this._buff.length,i;for(i=64;i<=length;i+=64){md5cycle(this._hash,md5blk(this._buff.substring(i-64,i)))}this._buff=this._buff.substring(i-64);return this};SparkMD5.prototype.end=function(raw){var buff=this._buff,length=buff.length,i,tail=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],ret;for(i=0;i<length;i+=1){tail[i>>2]|=buff.charCodeAt(i)<<(i%4<<3)}this._finish(tail,length);ret=hex(this._hash);if(raw){ret=hexToBinaryString(ret)}this.reset();return ret};SparkMD5.prototype.reset=function(){this._buff="";this._length=0;this._hash=[1732584193,-271733879,-1732584194,271733878];return this};SparkMD5.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}};SparkMD5.prototype.setState=function(state){this._buff=state.buff;this._length=state.length;this._hash=state.hash;return this};SparkMD5.prototype.destroy=function(){delete this._hash;delete this._buff;delete this._length};SparkMD5.prototype._finish=function(tail,length){var i=length,tmp,lo,hi;tail[i>>2]|=128<<(i%4<<3);if(i>55){md5cycle(this._hash,tail);for(i=0;i<16;i+=1){tail[i]=0}}tmp=this._length*8;tmp=tmp.toString(16).match(/(.*?)(.{0,8})$/);lo=parseInt(tmp[2],16);hi=parseInt(tmp[1],16)||0;tail[14]=lo;tail[15]=hi;md5cycle(this._hash,tail)};SparkMD5.hash=function(str,raw){return SparkMD5.hashBinary(toUtf8(str),raw)};SparkMD5.hashBinary=function(content,raw){var hash=md51(content),ret=hex(hash);return raw?hexToBinaryString(ret):ret};SparkMD5.ArrayBuffer=function(){this.reset()};SparkMD5.ArrayBuffer.prototype.append=function(arr){var buff=concatenateArrayBuffers(this._buff.buffer,arr,true),length=buff.length,i;this._length+=arr.byteLength;for(i=64;i<=length;i+=64){md5cycle(this._hash,md5blk_array(buff.subarray(i-64,i)))}this._buff=i-64<length?new Uint8Array(buff.buffer.slice(i-64)):new Uint8Array(0);return this};SparkMD5.ArrayBuffer.prototype.end=function(raw){var buff=this._buff,length=buff.length,tail=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],i,ret;for(i=0;i<length;i+=1){tail[i>>2]|=buff[i]<<(i%4<<3)}this._finish(tail,length);ret=hex(this._hash);if(raw){ret=hexToBinaryString(ret)}this.reset();return ret};SparkMD5.ArrayBuffer.prototype.reset=function(){this._buff=new Uint8Array(0);this._length=0;this._hash=[1732584193,-271733879,-1732584194,271733878];return this};SparkMD5.ArrayBuffer.prototype.getState=function(){var state=SparkMD5.prototype.getState.call(this);state.buff=arrayBuffer2Utf8Str(state.buff);return state};SparkMD5.ArrayBuffer.prototype.setState=function(state){state.buff=utf8Str2ArrayBuffer(state.buff,true);return SparkMD5.prototype.setState.call(this,state)};SparkMD5.ArrayBuffer.prototype.destroy=SparkMD5.prototype.destroy;SparkMD5.ArrayBuffer.prototype._finish=SparkMD5.prototype._finish;SparkMD5.ArrayBuffer.hash=function(arr,raw){var hash=md51_array(new Uint8Array(arr)),ret=hex(hash);return raw?hexToBinaryString(ret):ret};return SparkMD5});
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
@fontSize: 37.5;
@baseWidth: 750;
@baseHeight: 1334;
@bodyBgColor: #f9f9f9;
@primaryTextColor: #333;
@minorTextColor: #666;
@primaryErrorColor: #AB1941;
@base-url: "../images";
// one rem 第一种算法
@default-w: 375px;
.convert(@px, @width: @default-w) {
@var: unit(@px / @width) * 10;
@rem: ~"@{var}rem";
}
// two rem 第二种算法
.convertCalc(@px, @width: @baseWidth) {
@var: unit(@px / @width) * 10;
@rem: ~"@{var}rem";
}
// mixins 换行
.wordWrap() {
white-space: pre-wrap;
word-break: break-all;
word-wrap: break-word;
}
.background-image-mixin(@base-url, @image-name) {
// 默认加载 1x 图片
background-image: url("@{base-url}/@{image-name}@1x.png");
// 媒体查询加载 2x 图片
@media only screen and (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
background-image: url("@{base-url}/@{image-name}@2x.png");
}
// 媒体查询加载 3x 图片
@media only screen and (-webkit-min-device-pixel-ratio: 3), (min-resolution: 288dpi) {
background-image: url("@{base-url}/@{image-name}@3x.png");
}
}
html, body, h1, h2, h3, h4, h5, h6, p, div, table, tr, td, tbody, tfoot, th, dl, dt, dd, ol, ul, li, a, sub, sup, strong, b, em, i, code, pre, img, section, article, input, textarea, span, blockquote {
margin: 0;
padding: 0;
margin-block: 0;
// touch-action: manipulation; /* 防止点击时弹出软键盘 */
outline: none;
}
span {
// pointer-events: none;
}
* { -webkit-touch-callout: none; }
input, textarea, span {
outline: none;
resize: none;
}
a, a:hover {
text-decoration: none;
border: none;
-webkit-tap-highlight-color: rgba(0,0,0,0);
-webkit-tap-highlight-color: transparent;
outline: none;
}
input[type=radio], input[type=checkbox] {
display: none;
}
sub, pre, code {
user-select: none;
-webkit-user-select: none;
}
line {
border-bottom: 2px solid @primaryErrorColor;
font-weight: normal;
cursor: pointer;
}
light {
font-weight: normal;
cursor: pointer;
&.c-feff00 {
background-color: #feff00;
&::selection {
background-color: #feff00;
}
}
&.c-00ff00 {
background-color: #00ff00;
&::selection {
background-color: #00ff00;
}
}
&.c-00ffff {
background-color: #00ffff;
&::selection {
background-color: #00ffff;
}
}
&.c-ff00ff {
background-color: #ff00ff;
&::selection {
background-color: #ff00ff;
}
}
&.c-d2b3fa {
background-color: #d2b3fa;
&::selection {
background-color: #d2b3fa;
}
}
&.c-ff4500 {
background-color: #ff4500;
&::selection {
background-color: #ff4500;
}
}
}
\ No newline at end of file
@import './common.less';
.body_evaluating {
background-color: @bodyBgColor;
}
#app {
width: 100vw;
height: 100vh;
max-width: 560px;
margin: 0 auto;
.assess-container {
// 错题title
.book-title-container {
width: 100%;
height: .convertCalc(270)[@rem];
padding: .convertCalc(20)[@rem];
box-sizing: border-box;
.book-title {
background-color: #fff;
box-shadow: 6px 0px 20px 0px rgba(199,199,199,0.5);
border-radius: .convertCalc(16)[@rem];
height: .convertCalc(230)[@rem];
padding: .convertCalc(28)[@rem] .convertCalc(23)[@rem];
box-sizing: border-box;
display: flex;
justify-content: space-between;
.book-title-img {
height: .convertCalc(174)[@rem];
width: .convertCalc(158)[@rem];
margin-right: .convertCalc(22)[@rem];
.img-container {
padding: .convertCalc(6)[@rem];
width: .convertCalc(145)[@rem];
box-shadow: 6px 0px 20px 0px rgba(199,199,199,0.5);
border-radius: .convertCalc(16)[@rem];
height: 100%;
overflow: hidden;
img {
width: 100%;
height: 100%;
}
}
}
.book-title-info {
flex: 1;
h2 {
padding-top: .convertCalc(12)[@rem];
font-size: .convertCalc(28)[@rem];
line-height: .convertCalc(40)[@rem];
color: @primaryTextColor;
}
h6 {
margin-top: .convertCalc(8)[@rem];
font-size: .convertCalc(24)[@rem];
line-height: .convertCalc(32)[@rem];
color: @minorTextColor;
font-weight: normal;
}
p {
color: @primaryErrorColor;
margin-top: .convertCalc(35)[@rem];
font-size: .convertCalc(22)[@rem];
line-height: .convertCalc(30)[@rem];
}
}
}
}
// 评测title
.chapter-title {
background: linear-gradient(180deg, #f7f5f5 0%, #ffffff 100%);
padding: .convertCalc(21)[@rem] .convertCalc(30)[@rem] .convertCalc(15)[@rem];
margin-bottom: .convertCalc(20)[@rem];
.section {
.wordWrap();
line-height: .convertCalc(48)[@rem];
font-size: .convertCalc(30)[@rem];
color: @primaryTextColor;
}
.minor {
.wordWrap();
line-height: .convertCalc(48)[@rem];
font-size: .convertCalc(26)[@rem];
color: @minorTextColor;
padding-left: .convertCalc(88)[@rem];
}
}
// 题目内容
.assess-options-list {
padding: .convertCalc(14)[@rem] .convertCalc(30)[@rem];
background-color: #fff;
padding-bottom: .convertCalc(98)[@rem];
&.wrong {
padding: 0;
.assess-option-item {
padding: 0;
border-bottom: none;
}
}
.assess-chapter-wrong {
padding: .convertCalc(28)[@rem];
.assess-chapter-wrong-item {
margin-bottom: .convertCalc(65)[@rem];
}
}
.assess-option-item {
padding: .convertCalc(30)[@rem] 0;
border-bottom: 1px solid #f2f2f2;
&:last-child {
border-bottom: none;
}
// 错题item title
.assess-chapter-title {
border-bottom: 1px solid #F2F2F2;
h4 {
padding: .convertCalc(17)[@rem] .convertCalc(28)[@rem];
font-size: .convertCalc(26)[@rem];
line-height: .convertCalc(37)[@rem];
color: @primaryTextColor;
}
}
.assess-title {
.assess-title-header {
color: @primaryTextColor;
font-size: .convertCalc(28)[@rem];
line-height: .convertCalc(46)[@rem];
span {
vertical-align: top;
line-height: .convertCalc(46)[@rem];
font-size: .convertCalc(28)[@rem];
}
.question {
img {
max-width: 80vw !important;
max-height: 10vh !important;
width: auto !important;
height: 100% !important;
}
p, div, h1, h2, h3, h4, h5, h6 {
display: inline-block;
}
}
.question-fill-container {
font-size: 0;
.question-fill {
.fill-text-input {
display: none;
font-size: 0;
}
.fill-text {
// border-bottom: 1px solid #3d3d3d;
padding: 0 5px;
display: inline-block;
min-width: 30px;
outline: none;
color: #333;
width: auto;
user-select: auto;
-webkit-user-select: auto;
// text-decoration: underline;
line-height: .convertCalc(40)[@rem];
border-bottom: 1px solid #404040;
}
}
}
}
}
.assess-chooice {
padding-top: .convertCalc(25)[@rem];
.assess-chooice-item {
font-size: .convertCalc(28)[@rem];
line-height: .convertCalc(40)[@rem];
margin: .convertCalc(15)[@rem] 0;
color: @minorTextColor;
label {
display: flex;
align-items: flex-start;
.ico_icon {
flex: 0 0 .convertCalc(40)[@rem];
width: .convertCalc(40)[@rem];
}
.option-correct {
flex: 1;
overflow-x: hidden;
display: flex;
vertical-align: top;
.correct-a {
flex: 0 0 .convertCalc(40)[@rem];
width: .convertCalc(40)[@rem];
}
.correct-b {
flex: 1;
p, div, h1, h2, h3, h4, h5, h6 {
display: inline;
}
img {
max-width: 100%;
max-height: 10vh;
}
}
}
}
.ico_icon {
flex: 0 0 .convertCalc(40)[@rem];
width: .convertCalc(40)[@rem];
height: .convertCalc(30)[@rem];
display: block;
padding-top: .convertCalc(4)[@rem];
.ico {
display: block;
width: .convertCalc(30)[@rem];
height: .convertCalc(30)[@rem];
margin-right: .convertCalc(16)[@rem];
background-size: .convertCalc(30)[@rem] .convertCalc(30)[@rem];
background-repeat: no-repeat;
&.radio {
.background-image-mixin(@base-url, "icon_radio_normal")
}
&.radio.active {
.background-image-mixin(@base-url, "icon_radio_active")
}
&.checkbox {
.background-image-mixin(@base-url, "icon_checkbox_normal")
}
&.checkbox.active {
.background-image-mixin(@base-url, "icon_checkbox_active")
}
}
}
}
}
// 简答文本
.assess-textarea {
.assess-textarea-item {
margin-top: .convertCalc(22)[@rem];
padding: .convertCalc(16)[@rem] .convertCalc(22)[@rem];
background-color: #f8f8f8;
textarea {
color: #666;
font-size: .convertCalc(24)[@rem];
line-height: .convertCalc(32)[@rem];
min-height: .convertCalc(140)[@rem];
border: none;
resize: none;
background: #f8f8f8;
width: 100%;
}
}
}
}
// error
.error-message {
margin-top: .convertCalc(20)[@rem];
height: .convertCalc(52)[@rem];
line-height: .convertCalc(52)[@rem];
font-size: .convertCalc(24)[@rem];
color: @primaryTextColor;
background-color: #ffecec;
padding: 0 .convertCalc(20)[@rem];
display: flex;
align-items: center;
.error {
width: .convertCalc(24)[@rem];
height: .convertCalc(24)[@rem];
display: block;
background-size: .convertCalc(24)[@rem] .convertCalc(24)[@rem];
.background-image-mixin(@base-url, "icon_form-error");
margin-right: 5px;
}
}
// 评测结果
.assess-result {
padding: .convertCalc(20)[@rem];
margin-top: .convertCalc(10)[@rem];
&.red {
background-color: #f8f8f8;
.correct {
strong {
color: @primaryErrorColor;
}
}
}
.correct {
font-size: .convertCalc(26)[@rem];
line-height: .convertCalc(34)[@rem];
color: #333;
span {
p,div,h1,h2,h3,h4,h5,h6 {
display: inline;
}
br {
display: none;
}
}
}
.analysis {
font-size: .convertCalc(26)[@rem];
line-height: .convertCalc(34)[@rem];
color: #333;
margin-top: .convertCalc(6)[@rem];
}
}
}
/* 提交 */
.assess-fixed-bottom {
background: #FFFFFF;
box-shadow: 4px 0px 5px 0px rgba(224,224,224,0.5);
position: fixed;
bottom: 0;
left: 0;
width: 100vw;
height: .convertCalc(98)[@rem];
box-sizing: border-box;
padding: .convertCalc(14)[@rem] .convertCalc(30)[@rem];
display: flex;
justify-content: space-between;
.item {
flex: 1;
a {
display: block;
width: 100%;
height: .convertCalc(70)[@rem];
line-height: .convertCalc(70)[@rem];
box-sizing: border-box;
text-align: center;
border-radius: .convertCalc(70/2)[@rem];
font-size: .convertCalc(26)[@rem];
}
&.cancel {
padding-right: .convertCalc(10)[@rem];
a {
color: #999;
border: 1px solid #999;
}
}
&.confirm {
padding-left: .convertCalc(10)[@rem];
a {
background-color: rgba(171,25,65,0.1);
color: @primaryErrorColor;
}
}
}
}
}
}
@import "./common.less";
@image-link-url: "/src/assets/images/editor/icon_link_editor.png";
@image-practice-url: "/assets/images/icon_expand_editor.png";
@font-face {
font-family: "思源黑体";
src: url("https://zijing-upload.oss-cn-beijing.aliyuncs.com/siyuan-hei-Bold.ttf") format('truetype');
}
@font-face {
font-family: "思源宋体";
src: url("https://zijing-upload.oss-cn-beijing.aliyuncs.com/siyuan-song.ttf") format('truetype');
}
@font-face {
font-family: "楷体";
src: url("https://zijing-upload.oss-cn-beijing.aliyuncs.com/sim-kai.ttf") format('truetype');
}
@font-face {
font-family: "仿宋";
src: url("https://zijing-upload.oss-cn-beijing.aliyuncs.com/sim-fang.ttf") format('truetype');
}
@font-face {
font-family: "宋体";
src: url("https://zijing-upload.oss-cn-beijing.aliyuncs.com/sim-sun.ttf") format('truetype');
}
@font-face {
font-family: "黑体";
src: url("https://zijing-upload.oss-cn-beijing.aliyuncs.com/sim-hei.ttf") format('truetype');
}
.chapter-container {
border: none;
width: 100vw;
overflow-x: hidden;
.load-chapter {
position: fixed;
width: 100vw;
height: .convertCalc(100) [ @rem];
z-index: -1;
background-color: #f2f2f2;
opacity: 0;
&.next-chapter {
bottom: 0;
left: 0;
}
&.prev-chapter {
top: 0;
left: 0;
}
&.side {
left: 100vw;
top: 0;
}
.chapter-c-title {
font-size: .convertCalc(28) [ @rem];
padding: .convertCalc(10) [ @rem] .convertCalc(30) [ @rem];
box-sizing: border-box;
line-height: .convertCalc(80) [ @rem];
strong {
font-weight: 600;
}
}
}
.chapter-content-list {
max-height: 100vh;
min-height: 100vh;
overflow: hidden;
.show {
-webkit-transform: translateY(0);
transform: translateY(0);
position: relative;
transition-timing-function: cubic-bezier(0.1, 0.57, 0.1, 1);
transition-duration: 0ms;
min-height: 100vh;
}
.chapter-item {
width: 100vw;
box-sizing: border-box;
overflow-x: hidden;
padding-bottom: 5vh;
// 行内扩展
.chapter-expand-inline {
vertical-align: text-top !important;
}
pre {
white-space: pre-wrap;
word-break: break-all;
word-wrap: break-word;
line-height: .convertCalc(40) [ @rem];
font-size: .convertCalc(28) [ @rem];
padding: .convertCalc(20) [ @rem];
color: #333;
background-color: #f5f2f0;
}
blockquote {
padding: .convertCalc(10) [ @rem];
line-height: .convertCalc(40) [ @rem];
font-size: .convertCalc(28) [ @rem];
background-color: #f5f2f0;
border-left: 5px solid #b4d5ff;
margin: .convertCalc(20) [ @rem] 0;
}
img {
max-width: 100%;
}
table {
border-collapse: collapse;
}
table th {
font-weight: 700;
background-color: #f5f2f0;
font-size: 18px;
}
table th,
table td {
border: 1px solid #ddd;
padding: 5px;
}
// 画廊
.chapter-gallery-container {
cursor: pointer;
.chapter-gallery-item {
width: 50%;
padding: 10px;
box-sizing: border-box;
text-align: center;
&.one {
width: 100%;
}
p {
white-space: pre-wrap;
word-wrap: break-word;
word-break: break-all;
}
img {
height: auto;
width: 100%;
}
&.one {
img {
max-width: 100%;
height: auto;
width: 100%;
}
}
}
&.chapter-gallery-inline {
display: inline-block;
vertical-align: middle;
cursor: pointer;
}
}
a:link,
a:visited,
a:hover {
color: #2a9feb;
}
h1 {
line-height: 40px;
font-size: 26px;
}
h2 {
line-height: 34px;
font-size: 24px;
}
h3 {
line-height: 30px;
font-size: 22px;
}
h4 {
line-height: 26px;
font-size: 20px;
}
h5 {
line-height: 24px;
font-size: 18px;
}
h6 {
line-height: 20px;
font-size: 16px;
}
video,
audio {
width: 100%;
}
div[data-w-e-type="video"] {
padding: 0 10px;
}
p {
font-size: 16px;
line-height: 1.5;
font-family: "宋体";
margin: 15px 10px;
> img {
vertical-align: middle;
margin-top: -3px;
}
}
.chapter-practice,
.chapter-expand {
-webkit-user-select: none;
user-select: none;
cursor: pointer;
margin: 0 10px;
}
.chapter-practice {
.chapter-practice-title {
user-select: none;
-webkit-user-select: none;
}
// 交互练习
.chapter-practice-close {
display: none;
-webkit-user-select: none;
user-select: none;
}
&::after {
content: "";
background-size: cover;
background-image: url(@image-practice-url);
width: 18px;
height: 18px;
display: inline-block;
margin: 0 5px;
vertical-align: text-bottom;
}
.chapter-item-tooltip {
cursor: pointer;
}
img {
width: 100%;
height: auto;
}
}
}
p {
font-size: .convertCalc(26) [ @rem];
line-height: .convertCalc(52) [ @rem];
}
}
// 划线高亮设置
.range-controll {
.controll-container {
position: fixed;
z-index: 900;
left: 60px;
top: 60px;
border-radius: .convertCalc(10) [ @rem];
width: 72vw;
height: .convertCalc(102) [ @rem];
background: #2b2b2b;
box-shadow: 0px 6px 10px 0px rgba(93, 93, 93, 0.67);
box-sizing: border-box;
// opacity: 0;
.controll-position {
display: flex;
overflow: hidden;
height: .convertCalc(102) [ @rem];
width: 72vw;
box-sizing: border-box;
.com {
width: 7vw;
flex: 0 0 7vw;
height: .convertCalc(102) [ @rem];
line-height: .convertCalc(102) [ @rem];
font-size: 18px;
color: #fff;
text-align: center;
cursor: pointer;
}
.controll-list-container {
flex: 1;
width: 65vw;
overflow: hidden;
}
}
.controll-list {
display: flex;
align-items: center;
flex-flow: row nowrap;
height: .convertCalc(102) [ @rem];
.controll-item {
cursor: pointer;
flex: 0 0 .convertCalc(100) [ @rem];
width: .convertCalc(100) [ @rem];
&.colorLine {
width: .convertCalc(112) [ @rem];
height: .convertCalc(112) [ @rem];
position: relative;
span {
position: absolute;
display: block;
left: .convertCalc(15) [ @rem];
top: .convertCalc(30) [ @rem];
width: .convertCalc(40) [ @rem];
height: .convertCalc(40) [ @rem];
border-radius: 50%;
&.c-feff00 {
background-color: #feff00;
z-index: 100;
}
&.c-00ff00 {
background-color: #0f0;
z-index: 101;
left: .convertCalc(20) [ @rem];
}
&.c-00ffff {
background-color: #0ff;
z-index: 102;
left: .convertCalc(30) [ @rem];
}
&.c-ff00ff {
background-color: #f0f;
z-index: 103;
left: .convertCalc(40) [ @rem];
}
&.c-d2b3fa {
background-color: #d2b3fa;
z-index: 104;
left: .convertCalc(50) [ @rem];
}
&.c-ff4500 {
background-color: #ff4500;
z-index: 105;
left: .convertCalc(60) [ @rem];
}
}
}
.opa {
display: flex;
justify-content: center;
&.discuss {
.ico {
.background-image-mixin(@base-url, "rang_list_discuss");
}
}
&.note {
.ico {
.background-image-mixin(@base-url, "rang_list_note");
}
}
&.line {
.ico {
.background-image-mixin(@base-url, "rang_list_line");
}
}
&.light {
.ico {
.background-image-mixin(@base-url, "rang_list_highlight");
}
}
&.baike {
.ico {
.background-image-mixin(@base-url, "rang_list_baike");
}
}
&.dict {
.ico {
.background-image-mixin(@base-url, "rang_list_dict");
}
}
&.read {
.ico {
.background-image-mixin(@base-url, "rang_list_read");
}
}
.ico {
display: block;
width: .convertCalc(37) [ @rem];
height: .convertCalc(35) [ @rem];
background-size: .convertCalc(37) [ @rem] .convertCalc(35) [
@rem];
}
}
p {
color: rgba(255, 255, 255, 0.8);
font-size: .convertCalc(20) [ @rem];
line-height: .convertCalc(32) [ @rem];
height: .convertCalc(32) [ @rem];
text-align: center;
text-indent: 0;
&.cancel {
font-size: .convertCalc(20) [ @rem];
}
}
}
}
}
.controll-light-container {
position: absolute;
z-index: 901;
left: 60px;
top: 260px;
border-radius: .convertCalc(10) [ @rem];
width: .convertCalc(420) [ @rem];
height: .convertCalc(70) [ @rem];
background: #2b2b2b;
box-shadow: 0px 6px 10px 0px rgba(93, 93, 93, 0.67);
box-sizing: border-box;
padding: .convertCalc(15) [ @rem];
.controll-color-list {
display: flex;
justify-content: space-around;
flex-flow: row nowrap;
.controll-color-item {
flex: 0 0 .convertCalc(40) [ @rem];
width: .convertCalc(40) [ @rem];
height: .convertCalc(40) [ @rem];
border-radius: 50%;
box-sizing: border-box;
// padding: .convertCalc(12)[@rem];
cursor: pointer;
&.c-feff00 {
background-color: #feff00;
border: 2px solid #feff00;
}
&.c-00ff00 {
background-color: #0f0;
border: 2px solid #0f0;
}
&.c-00ffff {
background-color: #0ff;
border: 2px solid #0ff;
}
&.c-ff00ff {
background-color: #f0f;
border: 2px solid #f0f;
}
&.c-d2b3fa {
background-color: #d2b3fa;
border: 2px solid #d2b3fa;
}
&.c-ff4500 {
background-color: #ff4500;
border: 2px solid #ff4500;
}
&.active {
box-shadow: 0px 0px 10px 2px rgba(255, 255, 255, 0.7);
border: 2px solid #fff;
}
}
}
}
}
.controll-triangle {
width: 0;
height: 0;
border-left: .convertCalc(20) [ @rem] solid transparent;
border-right: .convertCalc(20) [ @rem] solid transparent;
border-bottom: .convertCalc(20) [ @rem] solid #2b2b2b; /* 高度为border-left和border-right的一半,形成等边三角形 */
transform: rotate(180deg); /* 旋转使其方向朝下 */
position: absolute;
bottom: .convertCalc(-16) [ @rem]; // (unit(102 / @baseWidth, rem));
margin-left: .convertCalc(-10) [ @rem]; // (unit(102 / @baseWidth, rem));
left: 50%;
}
// 气泡内容
.tange-tooptip {
position: absolute;
max-width: 70%;
min-width: 30%;
top: 10%;
left: 00%;
background-color: #fff;
border: 2px solid #ab1941;
border-radius: 5px;
// opacity: 0;
transition: 0.2s opacity linear;
z-index: -1;
box-shadow: 0 0 10px 1px rgba(122, 122, 122, 0.5);
.square {
width: 0px;
height: 0px;
position: absolute;
left: 0;
&::before {
width: 0px;
height: 0px;
position: absolute;
border: 10px solid transparent;
content: '';
padding: 0;
}
&::after {
width: 0px;
height: 0px;
position: absolute;
content: '';
border: 9px solid transparent;
}
&.square_top {
top: 0px;
&::before {
top: -18px;
left: 1px;
border-color: transparent transparent #fff transparent;
z-index: 12;
}
&::after {
top: -20px;
left: 2px;
border-color: transparent transparent #ab1941 transparent;
z-index: 10;
}
}
&.square_bottom {
bottom: 0px;
&::before {
top: -3px;
left: -19px;
border-color: #fff transparent transparent transparent;
z-index: 12;
}
&::after {
top: 0px;
left: -18px;
border-color: #ab1941 transparent transparent transparent;
z-index: 10;
}
}
}
.tooltip-content-container {
padding: 5px;
}
.tooltip-content {
.content {
line-height: 22px;
min-height: 22px;
overflow-x: hidden;
overflow-y: auto;
max-height: 100px;
p {
white-space: pre-wrap;
word-wrap: break-word;
word-break: break-all;
font-size: 16px;
}
}
.content-opa {
border-top: 1px solid #ebebeb;
padding-top: 5px;
display: flex;
justify-content: flex-end;
align-items: center;
.c-link {
max-width: 60px;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
height: 18px;
line-height: 18px;
}
a:link,
a:visited,
a:hover {
font-size: 14px;
display: inline-block;
margin-left: 10px;
color: #aa1941;
}
a {
img {
width: 18px;
height: 18px;
}
}
}
}
}
.big-img-scale {
position: fixed;
background-color: #000;
z-index: 20000;
left: 0;
top: 0;
width: 100vw;
height: 100vh;
.ico {
position: absolute;
background-color: rgba(0, 0, 0, 0.5);
z-index: 20050;
right: 0px;
top: 0px;
color: #fff;
height: 40px;
width: 100vw;
line-height: 40px;
text-align: right;
box-sizing: border-box;
padding-right: 10px;
}
.img {
display: flex;
width: 100Vw;
margin-top: 40px;
height: calc(100Vh - 40px);
align-items: center;
img {
width: 100%;
height: auto;
transition: 0.4s all linear;
}
}
}
}
// 画廊显示
.gallery-container {
.gallery-container-box {
.gallery-img {
position: relative;
img {
// max-height: 50vh;
// max-width: 100vw;
height: 100%;
width: auto;
max-width: 100%;
max-height: 80vh;
}
}
.opa {
width: .convertCalc(52) [ @rem];
height: .convertCalc(52) [ @rem];
position: absolute;
top: 50%;
margin-top: .convertCalc(-52) [ @rem];
background-size: cover;
box-shadow: 0 0 20px 2px rgba(171, 25, 65, 0.2);
border-radius: 50%;
&.prev {
left: 10px;
.background-image-mixin(@base-url, "icon_gallery_prev");
}
&.next {
right: 10px;
.background-image-mixin(@base-url, "icon_gallery_next");
}
}
.title {
padding: 12px 10px;
font-size: 20px;
line-height: 28px;
margin-bottom: 5px;
border-bottom: 1px solid #f1f1f1;
white-space: pre-wrap;
word-wrap: break-word;
word-break: break-all;
}
.desc {
padding: 0 10px;
font-size: 16px;
line-height: 28px;
color: #999;
white-space: pre-wrap;
word-wrap: break-word;
word-break: break-all;
}
}
}
.show-expand {
padding: 10px;
.table-container {
padding: 10px;
}
table {
border-collapse: collapse;
}
table th {
font-weight: 700;
background-color: #f5f2f0;
}
table th,
table td {
border: 1px solid #ddd;
padding: 5px;
}
p {
line-height: 1.5;
font-size: 16px;
font-family: "宋体";
margin: 10px 0;
img {
max-width: 100% !important;
height: auto;
}
}
pre {
white-space: pre-wrap;
word-break: break-all;
word-wrap: break-word;
line-height: 20px;
font-size: 14px;
padding: 10px;
color: #333;
background-color: #f5f2f0;
}
blockquote {
padding: 10px;
line-height: 20px;
font-size: 14px;
background-color: #f5f2f0;
border-left: 5px solid #b4d5ff;
margin: 10px 0;
}
a {
color: #aa1941;
&:link,
&:visited,
&:hover {
color: #aa1941;
}
span {
color: #aa1941 !important;
}
}
h1 {
line-height: 40px;
font-size: 24px;
}
h2 {
line-height: 34px;
font-size: 20px;
}
h3 {
line-height: 28px;
font-size: 18px;
}
h4 {
line-height: 22px;
font-size: 16px;
}
h5 {
line-height: 18px;
font-size: 14px;
}
h6 {
line-height: 16px;
font-size: 12px;
}
video,
audio {
width: 100%;
}
.chapter-image-pic {
img {
width: 100%;
height: auto;
}
}
.w-e-image-container {
img {
&:not([style]) {
width: auto;
}
width: 100%;
}
}
}
.scale-img {
display: flex;
width: 100vw;
height: 100vh;
align-items: center;
position: relative;
img {
width: 100%;
height: auto;
}
p {
position: absolute;
background-color: #f2f2f2;
line-height: 20px;
font-size: 14px;
padding: 10px;
color: #666;
white-space: pre-wrap;
word-wrap: break-word;
word-break: break-all;
bottom: 0;
left: 0;
width: 100vw;
}
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, user-scalable=0"
/>
<title>阅读详情-紫荆教育云教材</title>
<!--<link rel="stylesheet" href="./assets/css/common.css" />-->
<link rel="stylesheet" href="assets/css/read.css" />
<script src="./assets/js/flexible.min.js"></script>
<script src="./assets/js/vue@2.js"></script>
<script src="./assets/js/jquery.2.2.4.min.js"></script>
<script src="./assets/js/qs.6.11.2.min.js"></script>
<script src="./assets/js/blueimp-md5.2.19.0.min.js"></script>
<script src="./assets/js/axios.min.js"></script>
<script src="./assets/js/request.js"></script>
<script src="./assets/js/iconfont.js"></script>
<!-- <script src="assets/js/vconsole.min.js"></script> -->
</head>
<body class="body_evaluating">
<div id="app" v-cloak>
<div class="chapter-container" ref="chapterContainer">
<div
class="load-chapter prev-chapter"
v-show="prev_chapter && scrollLoading"
>
<div class="chapter-c-title">
上一节: <strong>{{ prev_chapter.name }}</strong>
</div>
</div>
<div
class="load-chapter next-chapter"
v-show="next_chapter && scrollLoading"
>
<div class="chapter-c-title">下一节: {{ next_chapter.name }}</div>
</div>
<div class="chapter-content-list" id="chapter-content-list">
<div class="show">
<!-- <div style="height: 60px"><a href="javascript:;" class="reload" style="font-size: 20px" onclick="window.location.reload(true)">刷新页面</a></div> -->
<div
class="chapter-item"
:class="[`chapter-item-${chapter_id}`]"
id="chapter-item"
:data-id="chapter_id"
v-html="chapterContent"
></div>
</div>
</div>
<div class="range-controll">
<div
class="controll-container"
v-show="boolControllStatus"
:class="[nowColorId > 0 ? 'colorLine' : '']"
>
<!-- <div class="controll-container" :class="[nowColorId > 0 ? 'colorLine' : '']"> -->
<div class="controll-position">
<div
v-show="rangeMenuStatus"
class="com prev"
@click.stop.prevent="rangeMenuMove('prev', $event)"
>
&lt;
</div>
<div class="controll-list-container">
<div class="controll-list">
<div class="controll-item colorLine" v-if="nowColorId > 0">
<span
v-for="(item, index) in colorList"
:class="[`c-${item}`]"
:key="index"
@click.stop.prevent="rangeTextChangeLight"
></span>
</div>
<div
class="controll-item"
@click.stop.prevent="rangeTextInFlutter('discuss', $event)"
>
<div class="opa discuss"><i class="ico"></i></div>
<p>讨论</p>
</div>
<div
class="controll-item"
@click.stop.prevent="rangeTextInFlutter('note', $event)"
>
<div class="opa note"><i class="ico"></i></div>
<p>笔记</p>
</div>
<div
class="controll-item"
@click.stop.prevent="rangeTextInLine($event)"
>
<div class="opa line"><i class="ico"></i></div>
<p v-if="nowLineId > 0">取消划线</p>
<p v-else-if="expandLine.length > 0">扩展划线</p>
<p class="cancel" v-else>划线</p>
</div>
<div
class="controll-item light-color"
@click.stop.prevent="rangeTextInLight($event)"
>
<div class="opa light"><i class="ico"></i></div>
<p v-if="nowColorId > 0">取消高亮</p>
<p v-else-if="expandLight.length > 0">扩展高亮</p>
<p class="cancel" v-else>高亮</p>
</div>
<div
class="controll-item"
@click.stop.prevent="rangeTextInFlutter('baike', $event)"
>
<div class="opa baike"><i class="ico"></i></div>
<p>百科</p>
</div>
<div
class="controll-item"
@click.stop.prevent="rangeTextInFlutter('dict', $event)"
>
<div class="opa dict"><i class="ico"></i></div>
<p>字典</p>
</div>
<div
class="controll-item"
@click.stop.prevent="rangeTextInFlutter('read', $event)"
>
<div class="opa read"><i class="ico"></i></div>
<p>朗读</p>
</div>
</div>
</div>
<div
v-show="!rangeMenuStatus"
class="com next"
@click.stop.prevent="rangeMenuMove('next', $event)"
>
&gt;
</div>
</div>
<div class="controll-triangle"></div>
</div>
<!-- light -->
<div class="controll-light-container" v-show="boolLightColor">
<div class="controll-color-list">
<div
class="controll-color-item"
:class="[`c-${item}`, nowActiveColor === item ? 'active' : '']"
v-for="(item, index) in colorList"
:key="index"
@click="setLightColorText(item)"
>
<div class="color"></div>
</div>
</div>
</div>
</div>
<div class="tange-tooptip" v-show="tooltipId">
<div class="square" :style=""></div>
<div class="tooltip-content-container">
<div class="tooltip-content">
<div class="content">
<p>{{tooltipContent.content}}</p>
</div>
<div class="content-opa" v-if="tooltipContent.link">
<a
:href="tooltipContent.link"
target="_blank"
rel="noreferrer"
class="c-link"
></a>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
let getChapterContentURL = "/v1/book/Information/getSectionContent"; // 获取书籍的内容
let getChapterContentProgressURL = "/v1/book/Information/addProgress"; // 添加学习进度,每章节进度
let getChapterContentRecordURL = "/v1/book/Information/addReadRecord"; // 添加阅读记录
let addInfomationNotes = "/v1/book/Information/addNotes"; // 添加划线,高亮
let editInfomationNotes = "/v1/book/Information/editNotes"; // 编辑划线,高亮
let delInfomationNotes = "/v1/book/Information/delNotes"; // 删除划线,高亮
let delBatchInfomationNotes = "/v1/book/Information/delListNotes"; // 删除划线,高亮
let checkPracticeInPosition = "/v1/book/Information/checkChapterQuestion"; // 是否答题检测
let checkTooptipInPosition = "/v1/book/Information/getBubbleByPosition"; // 获取气泡内容
// var vConsole = new VConsole();
var app = new Vue({
el: "#app",
data: {
docmHeight: document.documentElement.clientHeight || document.body.clientHeight,
clientWidth: document.documentElement.clientWidth || document.body.clientWidth,
windowHeight: 0, // 视口的高度
colorList: [
"feff00",
"00ff00",
"00ffff",
"ff00ff",
"d2b3fa",
"ff4500",
],
hideshow: true, //显示或者隐藏footer
baseURL: "http://1507.superge.cn:81",
// book_id: 175,
book_id: "",
chapter_id: "", // 1931
token: "", // token
searchText: "",
rangeOperaTextHeight: 0, // 划线高亮
rangeMenuStatus: false,
rangeOperaColorHeight: 0, // 颜色选择
chapterContent: "", // 每个章节内容
chapterContentHeight: "", // 每个章节的高度
next_chapter: "", // 下一个章节的id
prev_chapter: "", // 上一个章节的id
nextChapterLoading: false,
scrollTop: 0,
readTimer: null,
debounceTimeout: false, // 防抖设置
selectedText: "", // 选择的文本
boolControllStatus: false, // 操作组件
boolLightColor: false, // 颜色选择组件
tempCloneRange: null, // 临时选区对象
selectRangeTimeout: null, // range 防抖
line_list: [],
nowLineId: -1,
color_line: [],
nowColorId: -1,
touchIn: false, // 按下
touchstartTime: null, // 按下的时间
touchLastClickTime: null, // 按下时间-双击检测
nowActiveColor: "",
startOffset: 0,
endOffset: 0,
selectRangeType: "",
lineAndLight: false,
expandLine: [], // 待扩展的划线
expandLight: [], // 待扩展的高亮
expandIds: null, // 待删除
selectRangeArr: [],
rangePosition: {},
selectedTextExpand: "", // 扩展用 - 文本
rangePositionExpand: {}, // 扩展用 - 位置
side: {},
blockTagNames: [
"p",
"h1",
"h2",
"h3",
"h4",
"h5",
"h6",
"div",
"li",
"dd",
"dt",
],
isMobile: "ontouchstart" in window || navigator.maxTouchPoints,
containerHasType: false,
translateY: 0, // 默认的初始位置
scrollPageY: 0, // 鼠标或手指按下的位置
scrollLoading: false, // 鼠标或手指按下的位置
tooltipStatus: null, // 气泡展示状态
tooltipId: null, // 气泡id
tooltipContent: {}, // 气泡内容
noteId: -1, //
velocity: 0.5, // 初始速度
friction: 0.03, // 摩擦系数
animationId: null, // 动画id
animationType: null, // 上滑还是下滑
},
created() {},
async mounted() {
this.windowHeight = document.documentElement.clientHeight;
this.chapterContent = null;
if (!this.token) {
this.chapterContentHeight = $(
"#chapter-content-list"
).innerHeight();
} else {
await this.getBookChapterData();
}
this.rangeOperaTextHeight = $(".controll-container").outerHeight(
true
);
this.rangeOperaColorHeight = $(
".controll-light-container"
).outerHeight(true);
// this.delNotes('line', 339);
// selection range 设置
this.selectionRangeOperation();
},
unmounted() {
clearInterval(this.readTimer);
},
watch: {
side(newVal, oldVal) {
if (newVal) {
this.calcPositionRange(newVal);
}
},
},
methods: {
async getBookChapterData(chapterId, scroll) {
if (this.nextChapterLoading) return;
this.chapterContent = "";
$("#chapter-content-list .show").css({
transform: `translateY(0px)`,
WebkitTranform: `translateY(0px)`,
});
this.nextChapterLoading = true;
const chapter_id = chapterId || this.chapter_id;
this.initArags();
this.clearRangeContent();
if (!this.book_id || !chapter_id) return;
let url = `${this.baseURL}${getChapterContentURL}`;
const res = await request.post(url, {
book_id: this.book_id,
chapter_id: chapter_id,
});
if (res) {
this.next_chapter = res.data.next_chapter; // 下一节的内容
this.prev_chapter = res.data.up_chapter; // 上一节的内容
this.color_line = res.data.color_line; // 高亮
this.line_list = res.data.line_list; // 划线
if (res.data.content) {
this.chapterContent = res.data.content;
this.initArags();
this.clearRangeContent();
// 带内容加载完成
await this.waitForContentLoad();
// 进度设置
await this.uploadRead();
await this.line_listFilterShow();
this.nextChapterLoading = false;
await this.toNoteIdSide();
// 各类事件
this.listenHandlerEvents();
// 上报事件
this.uploadReadInterval();
} else {
this.nextChapterLoading = false;
}
} else {
this.nextChapterLoading = false;
}
},
// 添加学习进度
async uploadReadProgress(chapter_id, progress) {
if (!this.token) return;
let url = `${this.baseURL}${getChapterContentProgressURL}`;
const chapterId = chapter_id || this.chapter_id;
const res = await request.post(url, {
book_id: this.book_id,
chapter_id: chapterId,
progress: progress,
});
},
// 添加阅读记录
async uploadReadRecord(chapter_id, progress) {
if (!this.token) return;
let url = `${this.baseURL}${getChapterContentRecordURL}`;
const chapterId = chapter_id || this.chapter_id;
const res = await request.post(url, {
book_id: this.book_id,
chapter_id: chapterId,
positioning: progress,
});
},
// 阅读进度上报
async uploadRead() {
let url = `${this.baseURL}${getChapterContentProgressURL}`;
const transformValue = $("#chapter-content-list .show").css(
"transform"
);
var matches = transformValue.match(
/matrix\(\s*([^,]+)\s*,\s*([^,]+)\s*,\s*([^,]+)\s*,\s*([^,]+)\s*,\s*([^,]+)\s*,\s*([^,]+)\s*\)/
);
const translateY = matches[6] ? parseInt(matches[6]) : 0;
let maxTop = this.chapterContentHeight - this.docmHeight;
// 章节内容不到没有撑满整个屏幕
let progress = 0;
if (this.chapterContentHeight <= this.docmHeight) {
progress = 100;
await this.uploadReadProgress(null, progress);
await this.uploadReadRecord(null, progress);
} else {
if (translateY === 0) {
progress = parseInt(
(this.docmHeight / this.chapterContentHeight) * 100
);
} else {
progress = parseInt((Math.abs(translateY) / maxTop) * 100);
}
await this.uploadReadProgress(null, progress);
await this.uploadReadRecord(null, progress);
}
},
// 上报的定时器
uploadReadInterval() {
clearInterval(this.readTimer);
this.readTimer = setInterval(() => {
this.uploadRead();
}, 5000);
},
// 全文搜索设置
searchTextInSide() {
if (this.searchText) {
const allChildren = $(".chapter-item")[0].children;
let index = -1;
for (let i = 0; i < allChildren.length; i++) {
const textContent = allChildren[i].textContent;
if (textContent.indexOf(this.searchText) > -1) {
index = i;
break;
}
}
const currentTop = allChildren[index].offsetTop;
if (this.chapterContentHeight > this.docmHeight) {
let maxTop = this.chapterContentHeight - this.docmHeight;
if (currentTop >= maxTop) {
$("#chapter-content-list .show").css({
transform: `translateY(-${maxTop}px)`,
WebkitTranform: `translateY(-${maxTop}px)`,
});
} else {
$("#chapter-content-list .show").css({
transform: `translateY(${maxTop}px)`,
WebkitTranform: `translateY(-${currentTop}px)`,
});
}
}
}
},
// 气泡操作
async tooltipOpa(elem) {
const position = $(elem).data("random");
this.tooltipId = position;
let url = `${this.baseURL}${checkTooptipInPosition}`;
const data = await request.post(url, {
book_id: this.book_id,
chapter_id: this.chapter_id,
position: position,
});
if (data.code === 200) {
this.tooltipContent = data.data;
$(".tange-tooptip").css({ zIndex: 1230, display: "block" }).find(".square").removeClass('square_bottom square_top');
setTimeout(() => {
this.calcPosition($(elem), $(".tange-tooptip"));
}, 50);
}
},
// 交互练习
async practiceOpa(elem) {
// 交互练习
const position = $(elem).data("practicenum");
const title = $(elem).data("title");
if (position) {
let url = `${this.baseURL}${checkPracticeInPosition}`;
const data = await request.post(url, {
book_id: this.book_id,
chapter_id: this.chapter_id,
position: position,
});
if (data.code === 200) {
this.callHandlerNoticeFlutterSubmit("answerResultCallBack", [
this.chapter_id,
position,
data.data.counts,
title,
]);
}
}
},
// 内容加载完成事件
async waitForContentLoad() {
const _that = this;
return new Promise((resolve) => {
const observer = new MutationObserver(() => {
// 检查内容是否加载完成(你可能需要根据实际情况调整条件)
if (document.readyState === "complete") {
let loadedCount = 0;
const images = document
.querySelector("#chapter-item")
.querySelectorAll("img");
if (images.length > 0) {
images.forEach((image) => {
image.addEventListener("load", function () {
loadedCount++;
// 如果所有图片都加载完成,执行其他操作
if (loadedCount === images.length) {
_that.chapterContentHeight = $(
"#chapter-content-list .show"
).innerHeight();
resolve();
observer.disconnect();
}
});
image.addEventListener("error", function () {
loadedCount++;
// 处理加载失败的情况
if (loadedCount === images.length) {
_that.chapterContentHeight = $(
"#chapter-content-list .show"
).innerHeight();
resolve();
observer.disconnect();
}
});
});
} else {
_that.chapterContentHeight = $(
"#chapter-content-list .show"
).innerHeight();
resolve();
observer.disconnect();
}
}
});
observer.observe(document, { childList: true, subtree: true });
});
},
// 监听touch事件
async listenHandlerEvents() {
const eleContent = document.querySelector("#chapter-content-list");
// document.addEventListener('mousedown', this.touchStartEvent1);
// document.addEventListener('mousemove', this.touchMoveEvent);
// document.addEventListener('mouseup', this.touchEndEvent2);
const chapterContent = document.querySelector(
"#chapter-content-list"
);
document.addEventListener("touchstart", this.touchStartEvent);
document.addEventListener("touchmove", this.touchMoveEvent);
document.addEventListener("touchend", this.touchEndEvent);
},
touchStartEvent1(ev) {
ev.stopPropagation();
if (this.tempCloneRange) {
const selection = window.getSelection();
selection.removeAllRanges();
selection.addRange(this.tempCloneRange);
ev.preventDefault();
}
},
touchEndEvent2(ev) {
ev.stopPropagation();
if (this.tempCloneRange) {
const selection = window.getSelection();
selection.removeAllRanges();
selection.addRange(this.tempCloneRange);
ev.preventDefault();
}
},
async touchStartEvent(event) {
event.stopPropagation();
const _that = this;
const target = event.target;
const selection = window.getSelection();
_that.touchstartTime = Date.now();
_that.touchIn = true;
cancelAnimationFrame(_that.animationId);
_that.animationType = null;
_that.velocity = 0.5;
_that.tooltipId = null;
$(".tange-tooptip").css({ opacity: 0 });
// 使用正则表达式提取矩阵的最后两个值
const transformValue = $("#chapter-content-list .show").css(
"transform"
);
var matches = transformValue.match(
/matrix\(\s*([^,]+)\s*,\s*([^,]+)\s*,\s*([^,]+)\s*,\s*([^,]+)\s*,\s*([^,]+)\s*,\s*([^,]+)\s*\)/
);
_that.translateY = matches[6] ? parseInt(matches[6]) : 0;
_that.scrollPageY =
event.pageY ||
event.changedTouches[0].clientY ||
event.touches[0].clientY;
_that.scrollLoading = true;
},
async touchMoveEvent(event) {
event.stopPropagation();
const _that = this;
if (_that.galleryIndex > 0) {
event.preventDefault();
return false;
}
const end =
event.pageY ||
event.changedTouches[0].clientY ||
event.touches[0].clientY;
const move = end - _that.scrollPageY;
const target = event.target;
if (_that.touchIn) {
const endY =
event.pageY ||
event.changedTouches[0].clientY ||
event.touches[0].clientY;
const move = endY - _that.scrollPageY;
const lateY = _that.translateY + parseInt(move / 1);
$("#chapter-content-list .show").css({
transform: `translateY(${lateY}px)`,
WebkitTranform: `translateY(${lateY}px)`,
});
const mayScrollHeight =
_that.chapterContentHeight - _that.docmHeight; // 可滚动的高
if (lateY > 0) {
// 触发下拉刷新
let opacity = 0;
if (lateY >= 100) {
opacity = 1;
} else if (lateY <= 0) {
opacity = 0;
} else {
opacity = (lateY / 100).toFixed(2);
}
$(".prev-chapter").css({ opacity: opacity });
} else if (lateY <= 0 && mayScrollHeight - Math.abs(lateY) >= 0) {
$(".prev-chapter, .next-chapter").css({ opacity: 0 });
} else if (Math.abs(lateY) - mayScrollHeight > 0) {
// 触发上拉加载
let maxLateY = Math.abs(lateY) - mayScrollHeight;
if (maxLateY >= 100) {
opacity = 1;
} else {
opacity = (maxLateY / 100).toFixed(2);
}
$(".next-chapter").css({ opacity: opacity });
}
}
},
async touchEndEvent(event) {
event.stopPropagation();
const _that = this;
const target = event.target;
const endTime = Date.now();
const endY =
event.pageY ||
event.changedTouches[0].clientY ||
event.touches[0].clientY;
// 处理双击事件
if (
_that.touchLastClickTime &&
endTime - _that.touchLastClickTime < 300
) {
_that.touchLastClickTime = null;
_that.callHandlerNoticeFlutterSubmit(`dbClickCallBack`);
_that.initArags();
_that.clearRangeContent();
event.preventDefault();
return false;
}
_that.touchLastClickTime = endTime;
_that.touchIn = false;
const selection = window.getSelection();
const range = document.createRange();
if (
target.nodeName.toLowerCase() === "line" ||
target.nodeName.toLowerCase() === "light" ||
$(target).closest(".controll-position").length > 0 ||
$(target).closest(".controll-color-list").length > 0
) {
if (_that.tempCloneRange) {
selection.removeAllRanges();
selection.addRange(_that.tempCloneRange);
} else {
_that.initArags();
_that.clearRangeContent();
}
} else {
_that.initArags();
_that.clearRangeContent();
}
// 上一章,下一章
const move = endY - _that.scrollPageY;
const lateY = _that.translateY + parseInt(move / 2);
const mayScrollHeight =
_that.chapterContentHeight - _that.docmHeight; // 可滚动的高
if (endTime - _that.touchstartTime <= 300) {
// 创建 Range 对象
const range = document.createRange();
const selection = window.getSelection();
if (Math.abs(move) <= 30) {
console.log(target);
// 点击事件
if (target.nodeName.toLowerCase() === "span") {
// 点击的气泡内容
if ($(target).closest(".chapter-item-tooltip").length > 0) {
_that.tooltipOpa(
$(target).closest(".chapter-item-tooltip")
);
event.preventDefault();
} else if ($(target).closest(".colorLine").length > 0) {
this.boolControllStatus = false;
this.boolLightColor = true;
event.preventDefault();
} else if ($(target).closest("a").length > 0) {
const href = $(target).closest("a").attr("href");
_that.callHandlerNoticeFlutterSubmit(
"openLinkCallback",
href
);
event.stopPropagation();
event.preventDefault();
} else if ($(target).closest(".chapter-item-link").length) {
// 链接
const title = $(target)
.closest(".chapter-item-link")
.data("title");
const position = $(target)
.closest(".chapter-item-link")
.data("random");
const linktype = $(target)
.closest(".chapter-item-link")
.data("linktype");
const href = $(target)
.closest(".chapter-item-link")
.data("link");
console.log(href);
if (parseInt(linktype) === 1) {
// 链接设置
_that.callHandlerNoticeFlutterSubmit(
"openLinkCallback",
href
);
} else {
// 章节
_that.callHandlerNoticeFlutterSubmit("readInfoCallback", [
position,
"expand",
title,
]);
}
event.stopPropagation();
event.preventDefault();
}
} else if (target.nodeName.toLowerCase() === "a") {
const href = $(target).attr("href");
_that.callHandlerNoticeFlutterSubmit(
"openLinkCallback",
href
);
event.stopPropagation();
event.preventDefault();
} else if (target.nodeName.toLowerCase() === "use" || target.nodeName.toLowerCase() === "svg") {
if ($(target).closest(".chapter-item-link").length) {
const href = $(target)
.closest(".chapter-item-link")
.data("link");
_that.callHandlerNoticeFlutterSubmit(
"openLinkCallback",
href
);
} else if ($(target).closest(".chapter-gallery-container").length) {
// 画廊
const title = $(target)
.closest(".chapter-gallery-container")
.data("title");
const position = $(target)
.closest(".chapter-gallery-container")
.data("random");
_that.callHandlerNoticeFlutterSubmit("readInfoCallback", [
position,
"gallery",
title,
]);
} else if ($(target).closest(".chapter-item-tooltip").length > 0) {
_that.tooltipOpa(
$(target).closest(".chapter-item-tooltip")
);
}
} else if (target.nodeName.toLowerCase() === "img") {
// 点击的气泡内容
if ($(target).closest(".chapter-item-tooltip").length > 0) {
_that.tooltipOpa(
$(target).closest(".chapter-item-tooltip")
);
} else if (
$(target).closest(".chapter-gallery-container").length
) {
// 画廊
const title = $(target)
.closest(".chapter-gallery-container")
.data("title");
const position = $(target)
.closest(".chapter-gallery-container")
.data("random");
_that.callHandlerNoticeFlutterSubmit("readInfoCallback", [
position,
"gallery",
title,
]);
} else {
// 图片展示
const scaleImg = $(target).attr("src");
const title = $(target).attr("alt") || "图片展示";
_that.callHandlerNoticeFlutterSubmit("scaleImageCallback", [
scaleImg,
title,
]);
}
event.stopPropagation();
event.preventDefault();
} else {
if ($(target).closest(".chapter-practice").length > 0) {
const ele = $(target).closest(".chapter-practice");
_that.practiceOpa(ele);
event.preventDefault();
} else if (target.nodeName.toLowerCase() === "line") {
let className = target.getAttribute("class");
_that.nowLineId = target.getAttribute("data-line-id");
_that.nowColorId = -1;
const all = document.querySelectorAll(`.${className}`);
_that.side = all[0].getBoundingClientRect();
_that.boolControllStatus = true;
_that.boolLightColor = false;
await _that.clickLineAndLightContent(all, target);
_that.lineAndLight = true;
_that.calcPositionRange();
event.preventDefault();
} else if (target.nodeName.toLowerCase() === "light") {
let className = target.getAttribute("class");
_that.nowColorId = target.getAttribute("data-light-id");
_that.nowLineId = -1;
let classNameArr = className.split(" ");
let firstClassName = classNameArr[0];
const all = document.querySelectorAll(`.${firstClassName}`);
_that.nowActiveColor = classNameArr[1].replace("c-", "");
_that.side = all[0].getBoundingClientRect();
_that.boolControllStatus = true;
_that.boolLightColor = false;
await _that.clickLineAndLightContent(all, target);
_that.lineAndLight = true;
_that.calcPositionRange();
event.preventDefault();
} else if (
$(target).closest(".com.prev").length > 0 ||
$(target).closest(".com.next").length > 0
) {
// 点击左右标志,保持
_that.rangeMenuStatus = true;
if ($(target).closest(".com.prev").length > 0) {
$(".controll-position .controll-list").css({
transform: "translateX(0px)",
WebkitTranform: `translateX(0px)`,
});
_that.rangeMenuStatus = false;
}
if ($(target).closest(".com.next").length > 0) {
let cWidth = 0;
$(
".controll-position .controll-list .controll-item"
).each((index, item) => {
cWidth += parseInt($(item).innerWidth());
});
const pWidth = $(".controll-container").innerWidth();
const eWidth = $(".controll-container .com").innerWidth();
const lateX = cWidth - pWidth + eWidth;
$(".controll-position .controll-list").css({
transform: `translateX(-${lateX}px)`,
WebkitTranform: `translateX(-${lateX}px)`,
});
_that.rangeMenuStatus = true;
}
event.preventDefault();
} else if ($(target).closest(".controll-item").length > 0) {
if (_that.boolLightColor) return;
// 操作
const ele = $(target).closest(".controll-item");
if ($(ele).find(".opa").length > 0) {
let classList = $(ele).find(".opa")[0].classList;
if (
["discuss", "note", "baike", "dict", "read"].includes(
classList[1]
)
) {
_that.rangeTextInFlutter(classList[1]);
} else if (classList[1] === "line") {
_that.rangeTextInLine();
} else if (classList[1] === "light") {
_that.rangeTextInLight();
}
}
event.stopPropagation();
event.preventDefault();
} else if (
$(target).closest(".controll-color-item").length > 0 ||
$(target).hasClass("controll-color-item")
) {
// 颜色
_that.rangeTextInLight();
event.stopPropagation();
event.preventDefault();
} else if (
$(target).closest(".chapter-gallery-container").length
) {
// 画廊
console.log("gallery");
const title = $(target)
.closest(".chapter-gallery-container")
.data("title");
const position = $(target)
.closest(".chapter-gallery-container")
.data("random");
_that.callHandlerNoticeFlutterSubmit("readInfoCallback", [
position,
"gallery",
title,
]);
event.stopPropagation();
event.preventDefault();
} else if ($(target).closest(".chapter-expand").length) {
// 扩展
const title = $(target)
.closest(".chapter-expand")
.data("title");
const position = $(target)
.closest(".chapter-expand")
.data("random");
_that.callHandlerNoticeFlutterSubmit("readInfoCallback", [
position,
"expand",
title,
]);
event.stopPropagation();
event.preventDefault();
}
_that.tooltipId = null;
}
}
if (Math.abs(move) > 0) {
if (move > 0) {
_that.animationType = "down";
} else if (move < 0) {
_that.animationType = "up";
}
_that.animationScroll();
}
$(".prev-chapter, .next-chapter").css({ opacity: 0 });
} else {
if (lateY > 0) {
if (move >= 200) {
// 下拉刷新开始
if (Object.entries(_that.prev_chapter).length > 0) {
$(".prev-chapter").css({ opacity: 0 });
_that.chapter_id = _that.prev_chapter.id;
console.log(_that.prev_chapter.name);
_that.callHandlerNoticeFlutterSubmit(
"loadChapterCallBack",
[_that.chapter_id, _that.prev_chapter.name]
);
await _that.getBookChapterData();
} else {
$(".prev-chapter").css({ opacity: 0 });
$("#chapter-content-list .show").css({
transform: `translateY(${0}px)`,
WebkitTranform: `translateY(${0}px)`,
});
}
} else {
$(".prev-chapter").css({ opacity: 0 });
$("#chapter-content-list .show").css({
transform: `translateY(${0}px)`,
WebkitTranform: `translateY(${0}px)`,
});
}
} else if (lateY < 0) {
if (Math.abs(lateY) >= mayScrollHeight) {
if (Math.abs(move) >= 200) {
if (Object.entries(_that.next_chapter).length > 0) {
$(".next-chapter").css({ opacity: 0 });
_that.chapter_id = _that.next_chapter.id;
_that.callHandlerNoticeFlutterSubmit(
"loadChapterCallBack",
[_that.chapter_id, _that.next_chapter.name]
);
await _that.getBookChapterData();
}
} else {
$(".next-chapter").css({ opacity: 0 });
$("#chapter-content-list .show").css({
transform: `translateY(-${mayScrollHeight}px)`,
WebkitTranform: `translateY(-${mayScrollHeight}px)`,
});
}
}
} else {
$("#chapter-content-list .show").css({
transform: `translateY(${0}px)`,
WebkitTranform: `translateY(${0}px)`,
});
}
_that.scrollLoading = false;
}
// 防抖函数
_that.selectRangeTimeout = setTimeout(async () => {
if (!_that.selectedText) {
_that.initArags();
_that.clearRangeContent();
} else {
const selection = window.getSelection();
const range = selection.getRangeAt(0);
if (_that.boolLightColor) {
_that.boolControllStatus = false;
} else {
_that.boolControllStatus = true;
}
// var container = range.commonAncestorContainer;
// if (_that.boolControllStatus) {
// await _that.checkRangeIsLineOrLight(container);
// }
// if (_that.boolLightColor) {
// await _that.checkRangeIsLineOrLight(container);
// }
}
}, 150);
},
// 缓冲动画设置
animationScroll() {
if (!this.touchIn) {
const transformValue = $("#chapter-content-list .show").css(
"transform"
);
var matches = transformValue.match(
/matrix\(\s*([^,]+)\s*,\s*([^,]+)\s*,\s*([^,]+)\s*,\s*([^,]+)\s*,\s*([^,]+)\s*,\s*([^,]+)\s*\)/
);
let translateY = matches[6] ? parseInt(matches[6]) : 0;
// 根据摩擦系数逐渐减小速度
this.velocity *= 1 - this.friction;
let tempY = 0;
if (this.animationType === "up") {
tempY = translateY - this.velocity * 100;
} else if (this.animationType === "down") {
tempY = translateY + this.velocity * 100;
}
if (tempY > 0) {
tempY = 0;
} else if (
Math.abs(tempY) >=
this.chapterContentHeight - this.docmHeight
) {
tempY = -(this.chapterContentHeight - this.docmHeight);
}
$("#chapter-content-list .show").css({
transform: `translateY(${tempY}px)`,
WebkitTranform: `translateY(${tempY}px)`,
});
// 如果速度足够小,停止动画
if (Math.abs(this.velocity) < 0.1) {
cancelAnimationFrame(this.animationId);
this.animationType = null;
this.velocity = 0.5;
return;
}
// 执行下一帧动画
this.animationId = requestAnimationFrame(this.animationScroll);
}
},
// range 设置
async selectionRangeOperation() {
const _that = this;
document.addEventListener("selectionchange", async () => {
const selection = window.getSelection();
if (selection && selection.rangeCount > 0) {
const range = selection.getRangeAt(0);
const selectedText = range.toString();
if (selectedText.trim() != "") {
_that.startOffset = range.startOffset;
_that.endOffset = range.endOffset;
const startContainer = range.startContainer;
const endContainer = range.endContainer;
const elementFirst = await _that.getParentNode(
startContainer
);
const elementLast = await _that.getParentNode(endContainer);
const firstId = elementFirst.textContent;
const lastId = elementLast.textContent;
this.side = range.getBoundingClientRect();
if (firstId === lastId) {
// 单行
_that.selectRangeType = "line";
_that.selectRangeArr = [elementFirst];
} else {
// 跨越多行
// 获取中间的行
const allParagraphs = await _that.getParagraphsBetween(
elementFirst,
elementLast
);
_that.selectRangeType = "more";
_that.selectRangeArr = allParagraphs;
}
if (_that.boolLightColor) {
if (_that.nowColorId > -1) {
_that.boolLightColor = true;
_that.boolControllStatus = false;
}
} else {
_that.boolLightColor = false;
_that.boolControllStatus = true;
}
// 保持选区
_that.tempCloneRange = range.cloneRange();
_that.selectedText = selectedText;
await _that.rangeSelectOperation();
await _that.checkSelectionContainsHTML();
} else {
_that.initArags();
}
}
});
},
// 对选区进行操作
rangeSelectOperation() {
let rangePosition = {
type: this.selectRangeType,
info: [],
};
const id = `chapter-item`;
const parentNodeMax = document.querySelector(`#${id}`);
// 单行选区
if (this.selectRangeType === "line") {
const nowSelected = this.selectRangeArr[0];
const sideIndex = Array.from(parentNodeMax.children).indexOf(
nowSelected
);
const firstIndex = nowSelected.textContent.indexOf(
this.selectedText
);
let obj = {
startOffset: firstIndex,
endOffset: firstIndex + this.selectedText.length,
parentTagName: nowSelected.nodeName.toLowerCase(),
parentIdBook: id,
sideIndex: sideIndex,
};
rangePosition.info.push(obj);
} else if (this.selectRangeType === "more") {
const selectArr = this.selectedText.split("\n");
// 多行选区
this.selectRangeArr.forEach((item, index) => {
const nowSelected = this.selectRangeArr[index];
const sideIndex = Array.from(parentNodeMax.children).indexOf(
nowSelected
);
let obj = {
startOffset: this.startOffset,
endOffset: this.endOffset,
parentTagName: nowSelected.nodeName.toLowerCase(),
parentIdBook: id,
sideIndex: sideIndex,
};
if (index === 0) {
obj.startOffset = nowSelected.textContent.indexOf(
selectArr[0]
);
obj.endOffset = nowSelected.textContent.length;
} else if (index === this.selectRangeArr.length - 1) {
obj.startOffset = 0;
obj.endOffset = selectArr[selectArr.length - 1].length;
} else {
obj.startOffset = 0;
obj.endOffset = nowSelected.textContent.length;
}
rangePosition.info.push(obj);
});
}
this.rangePosition = rangePosition;
},
// 点击讨论、笔记、百科
async rangeTextInFlutter(type) {
if (this.selectedText && type) {
this.callHandlerNoticeFlutterSubmit(
`${type}CallBack`,
this.selectedText
);
}
},
// 点击颜色设置-颜色菜单
openColorChange(ev) {
this.boolControllStatus = false;
this.boolLightColor = true;
ev.stopPropagation();
ev.preventDefault();
},
rangeMenuMove(type, ev) {
console.log(type);
ev.stopPropagation();
ev.preventDefault();
},
// 划线
async rangeTextInLine(ev) {
const selection = window.getSelection();
if (this.expandLine.length > 0) {
// // 删除里面的多余的划线
if (this.expandLine.length === 1) {
const id = this.expandLine[0]["id"];
const nowLineId = this.expandLine[0]["data-id"];
await this.replaceWithElement(`${id}`);
this.expandIds = nowLineId;
} else if (this.expandLine.length > 1) {
const ids = [];
this.expandLine.forEach(async (item) => {
ids.push(item["data-id"]);
await this.replaceWithElement(`${item["id"]}`);
});
this.expandIds = ids;
}
}
if (this.nowLineId > -1) {
const res = await this.delNotes("line");
if (res.is_success === 1) {
const range = document.createRange();
// 这是去除
if (this.rangePosition.type === "line") {
const element = document.getElementById(
`line-none-${this.nowLineId}-0`
);
if (element) {
range.selectNode(element);
selection.removeAllRanges();
selection.addRange(range);
await this.replaceWithElement(
`line-none-${this.nowLineId}-0`
);
}
} else {
const elements = document.querySelectorAll(
`.line-none-${this.nowLineId}`
);
if (elements) {
elements.forEach(async (item) => {
const id = $(item).attr("id");
await this.replaceWithElement(`${id}`);
});
}
}
this.nowLineId = -1;
}
return;
}
this.findSelectionRangeFill("line");
// // 删除之前的
if (this.expandIds) {
if (this.expandIds instanceof Array) {
await this.delBatchNotes(this.expandIds);
} else {
await this.delNotes(null, this.expandIds);
}
this.expandIds = null;
}
const data = await this.addNotes(1);
if (!data.id) return;
this.nowLineId = data.id;
this.boolControllStatus = true;
this.boolLightColor = false;
},
// 高亮设置
async rangeTextInLight() {
const selection = window.getSelection();
this.boolControllStatus = false;
this.boolLightColor = true;
if (this.expandLight.length > 0) {
// 删除里面的多余的高亮
if (this.expandLight.length === 1) {
const id = this.expandLight[0]["id"];
const nowLineId = this.expandLight[0]["data-id"];
await this.replaceWithElement(`${id}`);
this.expandIds = nowLineId;
} else if (this.expandLight.length > 1) {
const ids = [];
this.expandLight.forEach(async (item) => {
ids.push(item["data-id"]);
await this.replaceWithElement(`${item["id"]}`);
});
this.expandIds = ids;
}
}
if (this.nowColorId > -1) {
this.boolLightColor = false;
this.boolControllStatus = true;
const res = await this.delNotes("light");
if (res.is_success === 1) {
const range = document.createRange();
// 这是去除
if (this.rangePosition.type === "line") {
const element = document.getElementById(
`light-none-${this.nowColorId}-0`
);
if (element) {
range.selectNode(element);
selection.removeAllRanges();
selection.addRange(range);
await this.replaceWithElement(
`light-none-${this.nowColorId}-0`
);
this.nowColorId = -1;
}
} else {
const elements = document.querySelectorAll(
`.light-none-${this.nowColorId}`
);
if (elements) {
elements.forEach(async (item) => {
const id = $(item).attr("id");
await this.replaceWithElement(`${id}`);
});
}
}
this.nowColorId = -1;
this.nowActiveColor = false;
}
return;
} else {
if (!this.nowActiveColor) {
this.setLightColorText(this.colorList[0], true);
}
}
},
// 颜色切换设置 - 按钮
rangeTextChangeLight(ev) {
this.boolControllStatus = false;
this.boolLightColor = true;
ev.stopPropagation();
ev.preventDefault();
},
// 设置高亮
async setLightColorText(color, bool) {
this.nowActiveColor = color;
let data = null;
this.boolControllStatus = false;
this.boolLightColor = true;
if (bool) {
// 删除之前的
this.findSelectionRangeFill("light");
if (this.expandIds) {
if (this.expandIds instanceof Array) {
await this.delBatchNotes(this.expandIds);
} else {
await this.delNotes(null, this.expandIds);
}
this.expandIds = null;
}
data = await this.addNotes(2);
if (!data.id) return;
this.nowColorId = data.id;
} else {
data = await this.editNotes(2);
if (data.is_success != 1) return;
const all = document.querySelectorAll(
`light.light-none-${this.nowColorId}`
);
all.forEach((item) => {
$(item).attr(
"class",
`light-none-${this.nowColorId} c-${this.nowActiveColor}`
);
});
}
},
// 划线高亮公用查找选区
findSelectionRangeFill(type) {
const selection = window.getSelection();
const selectedRange = selection.getRangeAt(0);
let tempNewRange = [];
let newPosition = null;
if (
this.selectedTextExpand &&
Object.entries(this.rangePositionExpand)
) {
newPosition = this.rangePositionExpand;
} else {
newPosition = this.rangePosition;
}
newPosition.info.forEach((item, index) => {
// 创建什么类型的元素
const span = document.createElement(type);
const element = document.querySelector(`#${item.parentIdBook}`)
.children[item.sideIndex];
const textContent = element.textContent;
const textHtml = element.innerHTML;
const text = textContent.substring(
item.startOffset,
item.endOffset
);
span.innerHTML = text;
if (type === "line") {
span.setAttribute("data-line-id", this.nowLineId);
span.setAttribute("class", `line-none-${this.nowLineId}`);
span.setAttribute("id", `line-none-${this.nowLineId}-${index}`);
} else if (type === "light") {
span.setAttribute("data-light-id", this.nowColorId);
span.setAttribute(
"class",
`light-none-${this.nowColorId} c-${this.nowActiveColor}`
);
span.setAttribute(
"id",
`light-none-${this.nowColorId}-${index}`
);
}
span.setAttribute("data-startoffset", item.startOffset);
span.setAttribute("data-endoffset", item.endOffset);
span.setAttribute("data-parentTagName", item.parentTagName);
span.setAttribute("data-sideIndex", item.sideIndex);
const lineArr = element.querySelectorAll("line");
const lightArr = element.querySelectorAll("light");
if (lineArr.length === 0 && lightArr.length === 0) {
const beforeText = textContent.substring(0, item.startOffset);
const endText = textContent.substring(item.endOffset);
$(element).html(beforeText + span.outerHTML + endText);
} else {
const newHtml = textHtml.replace(text, span.outerHTML);
$(element).html(newHtml);
}
const node = this.findElementByTextContent(element, text);
const rangeItem = document.createRange();
if (newPosition.info.length === 1) {
// selectedRange.surroundContents(span);
const range = document.createRange();
range.selectNode(node);
selection.removeAllRanges();
selection.addRange(range);
}
// else if (index === newPosition.info.length - 1) {
// const beforeText = element.textContent.substring(
// 0,
// item.startOffset
// );
// const endText = element.textContent.substring(item.endOffset);
// console.log('endText', beforeText + span.outerHTML + endText);
// $(node).html(beforeText + span.outerHTML + endText);
// } else {
// if (index === 0) {
// const beforeText = element.textContent.substring(
// 0,
// item.startOffset
// );
// $(node).html(beforeText + span.outerHTML);
// } else if (index === newPosition.info.length - 1) {
// const endText = element.textContent.substring(item.endOffset);
// $(node).html(span.outerHTML + endText);
// } else {
// $(node).html(span.outerHTML);
// }
// }
tempNewRange.push(span);
});
// 遍历每个单独的范围并调整组合范围
if (newPosition.type === "more") {
const lineRange1 = document.createRange();
const lineRange2 = document.createRange();
if (type === "line") {
lineRange1.selectNodeContents(
document.getElementById(`line-none-${this.nowLineId}-0`)
);
lineRange2.selectNodeContents(
document.getElementById(
`line-none-${this.nowLineId}-${tempNewRange.length - 1}`
)
);
} else if (type === "light") {
lineRange1.selectNodeContents(
document.getElementById(`light-none-${this.nowLineId}-0`)
);
lineRange2.selectNodeContents(
document.getElementById(
`light-none-${this.nowLineId}-${tempNewRange.length - 1}`
)
);
}
// 合并选区
var mergedRange = document.createRange();
mergedRange.setStartBefore(lineRange1.startContainer); // 设置起始位置为range1的开头之前
mergedRange.setEndAfter(lineRange2.endContainer); // 设置结束位置为range2的结尾之后
// 将合并后的范围应用到文档的选区中
selection.removeAllRanges();
selection.addRange(mergedRange);
}
},
// 清空选区
clearRangeContent() {
var selection = window.getSelection();
selection.removeAllRanges();
this.tempCloneRange = null;
},
// 添加划线、高亮
async addNotes(type) {
let positioning = null;
if (this.rangePositionExpand && this.selectedTextExpand) {
positioning = JSON.stringify(this.rangePositionExpand);
} else {
positioning = JSON.stringify(this.rangePosition);
}
let url = `${this.baseURL}${addInfomationNotes}`;
const res = await request.post(url, {
book_id: this.book_id,
chapter_id: this.chapter_id,
types: type,
color: type === 2 ? `#${this.nowActiveColor}` : "#ab1941",
content: this.selectedText,
positioning: positioning,
});
if (res.code === 200) {
return res.data;
}
},
// 编辑划线、高亮
async editNotes(type, expand, notes_id) {
let id = null;
if (expand) {
id = notes_id;
} else {
id = type === 2 ? this.nowColorId : this.nowLineId;
}
let url = `${this.baseURL}${editInfomationNotes}`;
const res = await request.post(url, {
book_id: this.book_id,
chapter_id: this.chapter_id,
notes_id: id,
types: type,
color: type === 2 ? `#${this.nowActiveColor}` : "",
content: this.selectedText,
positioning: expand
? JSON.stringify(this.rangePositionExpand)
: JSON.stringify(this.rangePosition),
});
if (res.code === 200) {
return res.data;
}
},
// 删除划线、高亮
async delNotes(type, id) {
let url = `${this.baseURL}${delInfomationNotes}`;
const res = await request.post(url, {
book_id: this.book_id,
chapter_id: this.chapter_id,
notes_id: id
? id
: type === "line"
? this.nowLineId
: this.nowColorId,
});
return res.data;
},
// 批量删除划线、高亮
async delBatchNotes(notes) {
let url = `${this.baseURL}${delBatchInfomationNotes}`;
const res = await request.post(url, {
book_id: this.book_id,
chapter_id: this.chapter_id,
notes_ids: notes.join(","),
});
return res.data;
},
// 点击划线或高亮的选择内容
async clickLineAndLightContent(all, target) {
const _that = this;
// 创建 Range 对象
const range = document.createRange();
const selection = window.getSelection();
if (all.length > 1) {
const lineRange1 = document.createRange();
lineRange1.selectNodeContents(
document.getElementById(`line-none-${_that.nowLineId}-0`)
);
const lineRange2 = document.createRange();
lineRange2.selectNodeContents(
document.getElementById(
`line-none-${_that.nowLineId}-${all.length - 1}`
)
);
var mergedRange = document.createRange();
mergedRange.setStartBefore(lineRange1.startContainer); // 设置起始位置为range1的开头之前
mergedRange.setEndAfter(lineRange2.endContainer); // 设置结束位置为range2的结尾之后
// 将合并后的范围应用到文档的选区中
selection.removeAllRanges();
selection.addRange(mergedRange);
let rangePosition = {
type: "more",
info: [],
};
all.forEach((item, index) => {
// 添加数据
let startOffset = item.getAttribute("data-startoffset");
let endOffset = item.getAttribute("data-endoffset");
let parentTagName = item.getAttribute("data-parentTagName");
let sideIndex = item.getAttribute("data-sideIndex");
let obj = {
startOffset: startOffset,
endOffset: endOffset,
parentTagName: parentTagName,
parentIdBook: `chapter-item`,
sideIndex: sideIndex,
};
rangePosition.info.push(obj);
});
_that.rangePosition = rangePosition;
_that.selectRangeType = "more";
} else {
// 添加数据
let startOffset = target.getAttribute("data-startoffset");
let endOffset = target.getAttribute("data-endoffset");
let parentTagName = target.getAttribute("data-parentTagName");
let sideIndex = target.getAttribute("data-sideIndex");
range.setStart(target.firstChild, 0);
range.setEnd(target.firstChild, endOffset - startOffset);
// 用 Range 选中文本
selection.removeAllRanges();
selection.addRange(range);
let obj = {
startOffset: startOffset,
endOffset: endOffset,
parentTagName: parentTagName,
parentIdBook: `chapter-item`,
sideIndex: sideIndex,
};
let rangePosition = {
type: "line",
info: [obj],
};
_that.rangePosition = rangePosition;
_that.selectRangeType = "line";
}
// this.side = range.getBoundingClientRect();
_that.selectedText = range.toString();
},
// 回显划线和高亮
async line_listFilterShow() {
this.line_list.length &&
this.line_list.forEach((item) => {
try {
const positioning = JSON.parse(item.positioning);
const { type, info } = positioning;
if (type === "line") {
this.findTextAndReplaceText("line", info[0], item, 0);
} else if (type === "more") {
positioning.info.forEach((citem, index) => {
this.findTextAndReplaceText("line", citem, item, index);
});
}
} catch (e) {}
});
this.color_line.length &&
this.color_line.forEach((item) => {
try {
const positioning = JSON.parse(item.positioning);
const { type, info } = positioning;
if (type === "line") {
this.findTextAndReplaceText("light", info[0], item, 0);
} else if (type === "more") {
positioning.info.forEach((citem, index) => {
this.findTextAndReplaceText("light", citem, item, index);
});
}
} catch (e) {}
});
},
// 查找替换文本高亮设置
findTextAndReplaceText(type, citem, item, index) {
const itemInfo = citem;
const parentNode = document.querySelector(`#chapter-item`);
const allParagraphs = parentNode.children;
const targetParagraph = allParagraphs[itemInfo.sideIndex];
const textContent = targetParagraph.textContent;
const textHtml = targetParagraph.innerHTML;
const text = textContent.substring(
itemInfo.startOffset,
itemInfo.endOffset
);
const span = document.createElement(type);
span.innerHTML = text;
if (type === "line") {
span.setAttribute("data-line-id", item.line_id);
span.setAttribute("data-id", item.line_id);
span.setAttribute("class", `line-none-${item.line_id}`);
span.setAttribute("id", `line-none-${item.line_id}-${index}`);
itemInfo.line_id = item.line_id;
} else if (type === "light") {
span.setAttribute("data-light-id", item.color_id);
span.setAttribute("data-id", item.color_id);
span.setAttribute(
"class",
`light-none-${item.color_id} c-${item.color.replace("#", "")}`
);
span.setAttribute("id", `light-none-${item.color_id}-${index}`);
itemInfo.color_id = item.color_id;
}
span.setAttribute("data-startoffset", itemInfo.startOffset);
span.setAttribute("data-endoffset", itemInfo.endOffset);
span.setAttribute("data-parentTagName", itemInfo.parentTagName);
span.setAttribute("data-sideIndex", itemInfo.sideIndex);
const lineArr = targetParagraph.querySelectorAll("line");
const lightArr = targetParagraph.querySelectorAll("light");
if (lineArr.length === 0 && lightArr.length === 0) {
const beforeText = textContent.substring(0, itemInfo.startOffset);
const endText = textContent.substring(itemInfo.endOffset);
$(targetParagraph).html(beforeText + span.outerHTML + endText);
} else {
const newHtml = textHtml.replace(text, span.outerHTML);
$(targetParagraph).html(newHtml);
}
},
// 根据文本内容找所在的标签
findElementByTextContent(root, targetText) {
const walker = document.createTreeWalker(
root,
NodeFilter.SHOW_TEXT,
null,
false
);
while (walker.nextNode()) {
const node = walker.currentNode;
if (node.nodeValue && node.nodeValue.includes(targetText)) {
// 返回包含目标文本的父节点
return node.parentNode;
}
}
// 没有找到匹配的节点
return null;
},
// 找到父级的p
async getParentNode(element, id) {
if (id) {
if (
element.id &&
/^chapter\-item\-\d+$/.test(element.id) &&
Array.from(element.classList).includes("chapter-item")
) {
return element;
}
} else {
const tagArr = ["H1", "H2", "H3", "H4", "H5", "H6", "P"];
if (tagArr.includes(element.nodeName)) {
return element;
}
}
if (element.parentNode) {
return this.getParentNode(element.parentNode, id);
}
return null;
},
// 获取两个标签之间的元素
getParagraphsBetween(startParagraph, endParagraph) {
const paragraphs = [];
let currentParagraph = startParagraph;
while (
currentParagraph &&
currentParagraph !== endParagraph.nextSibling
) {
if (currentParagraph.nodeType === 1) {
paragraphs.push(currentParagraph);
}
currentParagraph = currentParagraph.nextSibling;
}
return paragraphs;
},
// 替换标签
replaceWithElement(lineElementId) {
// 获取包含 line 标签的元素
var lineElement = document.getElementById(lineElementId);
if (lineElement) {
// 创建一个文本节点,包含 line 元素的文本内容
var textNode = document.createTextNode(lineElement.textContent);
// 将文本节点插入到 line 元素之前
lineElement.parentNode.insertBefore(textNode, lineElement);
// 移除原始的 line 元素
lineElement.parentNode.removeChild(lineElement);
}
},
// 检测选中内容是否是划线或高亮区域
checkRangeIsLineOrLight(container) {
const selection = window.getSelection();
const range = selection.getRangeAt(0);
const startContainer = range.startContainer;
const endContainer = range.endContainer;
const all = document.querySelector(`#chapter-item`).children;
const startParent = startContainer.parentNode;
const endParent = endContainer.parentNode;
const tagNameStart =
startContainer.parentNode.nodeName.toLowerCase();
const tagNameEnd = endContainer.parentNode.nodeName.toLowerCase();
const allStartLine = startParent.querySelectorAll("line");
const allEndLine = endParent.querySelectorAll("line");
const allStartLight = startParent.querySelectorAll("light");
const allEndLight = endParent.querySelectorAll("light");
if (this.lineAndLight) {
this.containerHasType = false;
return;
}
if (
tagNameStart === "line" ||
tagNameEnd === "line" ||
(allStartLine.length > 0 &&
tagNameStart == "line" &&
tagNameEnd == "line" &&
allEndLine.length > 0)
) {
this.containerHasType = "line";
return;
}
if (
tagNameStart === "light" ||
tagNameEnd === "light" ||
(allStartLine.length > 0 &&
tagNameStart == "light" &&
tagNameEnd == "light" &&
allEndLine.length > 0)
) {
this.containerHasType = "light";
return;
}
if (this.rangePosition.info.length > 2) {
this.rangePosition.info.forEach((item, index) => {
const allLine = all[item.sideIndex].querySelectorAll("line");
const allLight = all[item.sideIndex].querySelectorAll("light");
if (allLine.length > 0) {
this.nowLineId = $(allLine[0]).attr("data-line-id");
this.containerHasType = "line";
return;
} else if (allLight.length > 0) {
this.nowColorId = $(allLine[0]).attr("data-light-id");
this.containerHasType = "light";
return;
}
});
} else {
this.containerHasType = false;
}
},
// 计算气泡弹窗位置
calcPosition(ele, modalEle) {
const clickEleSide = $(ele)[0].getBoundingClientRect();
const showEleSide = $(modalEle)[0].getBoundingClientRect();
const showWidth = $(modalEle).innerWidth();
const showHeight = $(modalEle).outerHeight(true);
let squareMiddler = null; // 点击元素正中的位置
let modelLeft = 0;
let modelTop = clickEleSide.top + showHeight + 10;
const lineHeight = this.getLineHeightInPixels($(ele)[0]);
if (clickEleSide.height / 1.5 > lineHeight) {
// 跨行了
squareMiddler = clickEleSide.width - clickEleSide.width / 2;
modelLeft = clickEleSide.right - showWidth;
// 设置尖角的位置
$(modalEle)
.find(".square")
.addClass("square_bottom")
.css({ left: showWidth - 20 });
} else {
console.log(clickEleSide);
squareMiddler = clickEleSide.left + clickEleSide.width / 2;
if (showWidth >= this.clientWidth / 2) {
modelLeft = (this.clientWidth - showWidth) / 2;
} else {
if (squareMiddler - showWidth / 2 > 0) {
modelLeft = squareMiddler - showWidth / 2;
} else if (showWidth) {
} else {
modelLeft = squareMiddler - showWidth / 2;
}
}
// 设置尖角的位置
$(modalEle)
.find(".square")
.css({ left: squareMiddler - modelLeft + 8 });
if (modelTop + showEleSide.height >= this.windowHeight) {
$(modalEle).find('.square').addClass("square_bottom");
modelTop = clickEleSide.top - showEleSide.height - 10;
} else {
$(modalEle).find('.square').addClass("square_top");
modelTop = clickEleSide.top + clickEleSide.height + 10;
}
}
$(modalEle).css({ left: modelLeft, top: modelTop, opacity: 1 });
},
// 计算操作位置
calcPositionRange(side) {
const newSide = side || this.side;
const $elem = $(".controll-container");
const top = `${newSide.top - this.rangeOperaTextHeight - 20}px`;
let style1Left = 0; // 操作菜单位置
let squareLeft = 0; // 角的位置
// 角的位置
const center = newSide.width / 2 + newSide.left;
if (this.selectRangeType === "line") {
// 这是单行
if (center > (this.clientWidth * 3) / 4) {
style1Left = this.clientWidth - $elem.outerWidth() - 20;
squareLeft = center - style1Left - 5;
} else if (center < (this.clientWidth * 1) / 4) {
style1Left = newSide.left - 10;
squareLeft = center - style1Left;
} else {
style1Left = (this.clientWidth - $elem.innerWidth()) / 2;
squareLeft = center - style1Left;
}
} else {
// 这是多行
style1Left = newSide.right - $elem.innerWidth();
squareLeft = $elem.innerWidth() - 30;
}
if (style1Left <= 0) {
style1Left = 10;
squareLeft = this.side.right;
}
$elem.css({ opacity: 1, top: top, left: style1Left });
$(".controll-light-container").css({ top: top, left: style1Left });
$(".controll-container .controll-triangle").css({
left: squareLeft,
}); // 角的位置
},
// 获取选区的html内容
getSelectedHTML() {
var range = window.getSelection().getRangeAt(0);
var div = document.createElement("div");
div.appendChild(range.cloneContents());
return div.innerHTML;
},
// 获取选区的html 属性
checkSelectionContainsHTML() {
this.expandLine = [];
this.expandLight = [];
this.rangePositionExpand = {};
this.selectedTextExpand = "";
this.expandIds = null;
var range = window.getSelection().getRangeAt(0);
if (range) {
var selectedText = this.getSelectedHTML();
if (selectedText !== "") {
var containsHTML = /<[a-z][\s\S]*>/i.test(selectedText); // 利用正则表达式检查选中的文本
if (containsHTML) {
var div = document.createElement("div");
div.innerHTML = selectedText;
const tagNameStart = /^<(light|line)[\s\S]*>/;
const tagNameEnd = /<\/(light|line)>$/;
var children = div.children;
if (this.selectRangeType === "line") {
let startOffset, endOffset;
const innerText = document.querySelector(
`#${this.rangePosition.info[0].parentIdBook}`
).children[this.rangePosition.info[0].sideIndex]
.textContent;
if (
tagNameStart.test(selectedText) &&
tagNameEnd.test(selectedText)
) {
// 都有标签
startOffset =
children[0].getAttribute("data-startoffset");
endOffset =
children[children.length - 1].getAttribute(
"data-endoffset"
);
} else {
if (tagNameEnd.test(selectedText)) {
// 标签在结尾
startOffset = this.rangePosition.info[0].startOffset;
endOffset =
children[children.length - 1].getAttribute(
"data-endoffset"
);
} else if (tagNameStart.test(selectedText)) {
// 标签在开头
startOffset =
children[0].getAttribute("data-startoffset");
endOffset = this.rangePosition.info[0].endOffset;
}
}
this.rangePosition.info[0].startOffset = startOffset;
this.rangePosition.info[0].endOffset = endOffset;
this.selectedText = innerText.substring(
startOffset,
endOffset
);
this.rangePositionExpand = this.rangePosition;
this.selectedTextExpand = this.selectedText;
if (children.length > 0) {
for (var i = 0; i < children.length; i++) {
var tagName = children[i].tagName.toLowerCase();
var attributes = children[i].attributes;
var attributeList = {};
attributeList.tagName = tagName;
attributeList.innerText = children[i].textContent;
for (var j = 0; j < attributes.length; j++) {
var attributeName = attributes[j].name;
var attributeValue = attributes[j].value;
attributeList[attributeName] = attributeValue;
if (attributeName === "data-id") {
if (tagName === "line") {
this.expandLine.push(attributeList);
} else if (tagName === "light") {
this.expandLight.push(attributeList);
}
}
}
}
}
} else if (this.selectRangeType === "more") {
const firstChild = div.firstChild.firstChild;
const lastChild = div.lastChild.lastChild;
if (firstChild.nodeType === 1) {
// 如果第一个有light 或 line
const parentfirst = document.querySelector(
`#${this.rangePosition.info[0].parentIdBook}`
).children[this.rangePosition.info[0].sideIndex];
let startOffset =
firstChild.getAttribute("data-startoffset");
this.rangePosition.info[0].startOffset = startOffset;
this.rangePosition.info[0].content =
parentfirst.textContent.substring(startOffset);
}
if (lastChild.nodeType === 1) {
// 如果最后一个有light 或 line
const lastInfoIndex = this.rangePosition.info.length - 1;
const parentLast = document.querySelector(
`#${this.rangePosition.info[lastInfoIndex].parentIdBook}`
).children[
this.rangePosition.info[lastInfoIndex].sideIndex
];
let endoffset = lastChild.getAttribute("data-endoffset");
this.rangePosition.info[lastInfoIndex].endOffset =
endoffset;
this.rangePosition.info[lastInfoIndex].content =
parentLast.textContent.substring(0, endoffset);
}
this.rangePositionExpand = this.rangePosition;
this.selectedTextExpand = div.textContent;
for (let i = 0; i < children.length; i++) {
const allLine = children[i].querySelectorAll("line");
const allLight = children[i].querySelectorAll("light");
for (let j = 0; j < allLine.length; j++) {
var tagName = allLine[j].tagName.toLowerCase();
var attributes = allLine[j].attributes;
var attributeList = {};
attributeList.tagName = tagName;
attributeList.innerText = allLine[j].textContent;
for (var k = 0; k < attributes.length; k++) {
var attributeName = attributes[k].name;
var attributeValue = attributes[k].value;
attributeList[attributeName] = attributeValue;
}
this.expandLine.push(attributeList);
}
for (let j = 0; j < allLight.length; j++) {
var tagName = allLight[j].tagName.toLowerCase();
var attributes = allLight[j].attributes;
var attributeList = {};
attributeList.tagName = tagName;
attributeList.innerText = allLight[j].textContent;
for (var k = 0; k < attributes.length; k++) {
var attributeName = attributes[k].name;
var attributeValue = attributes[k].value;
attributeList[attributeName] = attributeValue;
}
this.expandLight.push(attributeList);
}
}
}
}
}
}
},
// 回复初始化
initArags() {
this.nowLineId = -1;
this.nowColorId = -1;
this.boolLightColor = false;
this.boolControllStatus = false;
this.tempCloneRange = null;
this.selectedText = "";
this.rangePosition = {};
this.side = {};
this.containerHasType = false;
this.lineAndLight = false;
this.expandLine = [];
this.expandLight = [];
$(".controll-position .controll-list").css({
transform: `translateY(0px)`,
WebkitTranform: `translateY(0px)`,
});
this.rangeMenuStatus = false;
},
getLineHeightInPixels(element) {
const computedStyle = window.getComputedStyle(element);
const lineHeight = computedStyle.getPropertyValue("line-height");
if (lineHeight === "normal") {
// 创建一个临时元素来计算行高
const tempElement = document.createElement("div");
tempElement.style.fontSize =
computedStyle.getPropertyValue("font-size");
tempElement.innerHTML = "&nbsp;";
element.appendChild(tempElement);
const tempHeight = tempElement.offsetHeight;
element.removeChild(tempElement);
return tempHeight;
} else if (/\dpx$/.test(lineHeight)) {
// 如果 line-height 的值已经是像素值,直接返回
return parseInt(lineHeight, 10);
} else if (/\d+$/.test(lineHeight)) {
// 如果 line-height 的值是纯数字,表示倍数,需要计算实际像素值
return (
parseInt(computedStyle.getPropertyValue("font-size"), 10) *
parseFloat(lineHeight)
);
} else if (/\d+%$/.test(lineHeight)) {
// 如果 line-height 的值是百分比,需要计算实际像素值
return (
parseInt(computedStyle.getPropertyValue("font-size"), 10) *
(parseFloat(lineHeight) / 100)
);
} else {
// 其他情况,暂时返回 0
return 0;
}
},
// 获取位置
isTextWrapped(element) {
// 获取元素的样式
const elementStyle = window.getComputedStyle(element);
// 获取元素的宽度
const elementWidth = parseInt(
elementStyle.getPropertyValue("width"),
10
);
// 获取元素的文本内容
const text = element.innerText || element.textContent;
// 创建一个临时元素,用于测量文本内容的宽度
const tempElement = document.createElement("span");
tempElement.style.visibility = "hidden";
tempElement.style.whiteSpace = "nowrap";
tempElement.textContent = text;
// 将临时元素插入到文档中
document.body.appendChild(tempElement);
// 获取文本内容的宽度
const textWidth = tempElement.offsetWidth;
// 移除临时元素
document.body.removeChild(tempElement);
// 如果文本内容的宽度大于元素的宽度,则表示文本内容跨行了
return textWidth > elementWidth;
},
// 接收到了高亮或划线的id
toNoteIdSide() {
if (this.noteId > 0) {
$("line, light").each((index, item) => {
const id = $(item).data("id");
if (parseInt(id) === parseInt(this.noteId)) {
const idSide = $(item)[0].getBoundingClientRect();
$("#chapter-content-list .show").css({
transform: `translateY(-${idSide.top - 50}px)`,
WebkitTranform: `translateY(-${idSide.top - 50}px)`,
});
}
});
this.noteId = -1;
}
$("video, audio").each((index, item) => {
$(item).attr("controlslist", "nodownload");
});
},
// flutter 回调
async callbackInFlutterComponent(args) {
try {
const data = args.split(",");
// this.baseURL = data[0];
this.book_id = data[1];
this.chapter_id = data[2];
this.token = data[3];
this.noteId = data[4];
this.searchText = data[5];
localStorage.setItem("token", data[3]);
setTimeout(async () => {
await this.getBookChapterData();
if (this.searchText) {
await this.searchTextInSide();
}
}, 200);
} catch (e) {
alert(e);
}
},
// 通知flutter组件
callHandlerNoticeFlutterSubmit(funcname = "evaluatingSubmit", data) {
if (
window.flutter_inappwebview &&
window.flutter_inappwebview.callHandler
) {
window.flutter_inappwebview
.callHandler(funcname, data)
.then(function (result) {
console.log("Result from Flutter:", result);
});
}
},
getViewportAncestor(element, targetClass) {
// 逐级迭代元素的父级
let currentElement = element;
while (currentElement) {
// 检查元素是否包含指定的 class
if (currentElement.classList.contains(targetClass)) {
return currentElement; // 返回包含指定 class 的元素
}
// 继续向上查找父级
currentElement = currentElement.parentElement;
}
// 如果没有找到包含指定 class 的元素,则返回 null 或其他适当的值
return null;
},
},
});
const callbackInFlutterComponent = (arguments) => {
return app.callbackInFlutterComponent(arguments);
};
// callbackInFlutterComponent();
</script>
</body>
</html>
...@@ -71,11 +71,21 @@ class _ReadPageState extends State<ReadPage> { ...@@ -71,11 +71,21 @@ class _ReadPageState extends State<ReadPage> {
child: Stack( child: Stack(
children: [ children: [
InAppWebView( InAppWebView(
initialUrlRequest:URLRequest( // initialUrlRequest: URLRequest(
// url: Uri.parse(kReadBook), // url: WebUri.uri(Uri.parse('assets/html/read.html')),
url: readController.localHtml5Path.isNotEmpty?WebUri.uri(Uri.parse(readController.localHtml5Path)): WebUri.uri(Uri.parse(kReadBook)) // ),
// url: Uri.parse("/storage/emulated/0/Android/data/com.zijin.book.flutter_book/files/174/7-325.html"), // initialOptions: InAppWebViewGroupOptions(
), // android: AndroidInAppWebViewOptions(
// allowFileAccess: true,
// ),
// ),
initialFile: 'assets/html/read.html',
// initialUrlRequest:URLRequest(
// // assets/images/course_select.png
// url: WebUri.uri(Uri.parse('assets/html/read.html'))
// // url: readController.localHtml5Path.isNotEmpty?WebUri.uri(Uri.parse(readController.localHtml5Path)): WebUri.uri(Uri.parse(kReadBook))
// // url: Uri.parse("/storage/emulated/0/Android/data/com.zijin.book.flutter_book/files/174/7-325.html"),
// ),
initialSettings:InAppWebViewSettings( initialSettings:InAppWebViewSettings(
clearCache:true, clearCache:true,
), ),
...@@ -84,6 +94,17 @@ class _ReadPageState extends State<ReadPage> { ...@@ -84,6 +94,17 @@ class _ReadPageState extends State<ReadPage> {
// clearCache: true // clearCache: true
// ) // )
// ), // ),
// shouldOverrideUrlLoading: (controller,navigationAction) async {
// var uri = navigationAction.request.url!;
// // 判断请求是否为文件路径,如果是则重定向到远程服务器
// if (uri.scheme == 'file' && uri.path == '/v1/book/Information/getSectionContent') {
// var newUrl = 'http://1507.superge.cn:81${uri.path}';
// await controller.loadUrl(urlRequest: URLRequest(url: WebUri.uri(Uri.parse(newUrl))));
// return NavigationActionPolicy.CANCEL;
// }
//
// return NavigationActionPolicy.ALLOW;
// },
contextMenu: ContextMenu( contextMenu: ContextMenu(
// options: ContextMenuOptions(hideDefaultSystemContextMenuItems: true), // options: ContextMenuOptions(hideDefaultSystemContextMenuItems: true),
settings: ContextMenuSettings( settings: ContextMenuSettings(
......
...@@ -149,6 +149,14 @@ flutter: ...@@ -149,6 +149,14 @@ flutter:
# To add assets to your application, add an assets section, like this: # To add assets to your application, add an assets section, like this:
assets: assets:
- assets/images/ - assets/images/
- assets/html/
- assets/html/assets/css/
- assets/html/assets/fonts/
- assets/html/assets/images/
- assets/html/assets/js/
- assets/html/assets/less/
- assets/html/src/assets/images/
- assets/html/src/assets/images/editor/
# An image asset can refer to one or more resolution-specific "variants", see # An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware # https://flutter.dev/assets-and-images/#resolution-aware
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论