diff --git a/packages/uni-app-plus/dist/style.css b/packages/uni-app-plus/dist/style.css index 807da2aa49fbb11f0c587d5b3bf5d09ba6105c5c..f83d2f2cacf8e04079fc1854986af64138e2fffb 100644 --- a/packages/uni-app-plus/dist/style.css +++ b/packages/uni-app-plus/dist/style.css @@ -1,1894 +1 @@ -* { - margin: 0; - -webkit-tap-highlight-color: rgba(0, 0, 0, 0); - -webkit-tap-highlight-color: transparent; -} - -html, -body { - -webkit-user-select: none; - user-select: none; - width: 100%; -} - -html { - height: 100%; - height: 100vh; - width: 100%; - width: 100vw; -} - -body { - overflow-x: hidden; - background-color: white; -} - -input[type='search']::-webkit-search-cancel-button { - display: none; -} - -.uni-loading, -uni-button[loading]:before { - background: transparent - url('data:image/svg+xml;base64, PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjAiIGhlaWdodD0iMTIwIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgxMDB2MTAwSDB6Ii8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTlFOUU5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgLTMwKSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iIzk4OTY5NyIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgzMCAxMDUuOTggNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjOUI5OTlBIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDYwIDc1Ljk4IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0EzQTFBMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSg5MCA2NSA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNBQkE5QUEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoMTIwIDU4LjY2IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0IyQjJCMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgxNTAgNTQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjQkFCOEI5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDE4MCA1MCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDMkMwQzEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTE1MCA0NS45OCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDQkNCQ0IiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTEyMCA0MS4zNCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNEMkQyRDIiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTkwIDM1IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0RBREFEQSIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgtNjAgMjQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTJFMkUyIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKC0zMCAtNS45OCA2NSkiLz48L3N2Zz4=') - no-repeat; -} - -.uni-loading { - width: 20px; - height: 20px; - display: inline-block; - vertical-align: middle; - animation: uni-loading 1s steps(12, end) infinite; - background-size: 100%; -} - -@keyframes uni-loading { - 0% { - transform: rotate3d(0, 0, 1, 0deg); - } - - 100% { - transform: rotate3d(0, 0, 1, 360deg); - } -} -[nvue] uni-view, -[nvue] uni-label, -[nvue] uni-swiper-item, -[nvue] uni-scroll-view { - display: flex; - flex-shrink: 0; - flex-grow: 0; - flex-basis: auto; - align-items: stretch; - align-content: flex-start; -} - -[nvue] uni-button { - margin: 0; -} - -[nvue-dir-row] uni-view, -[nvue-dir-row] uni-label, -[nvue-dir-row] uni-swiper-item { - flex-direction: row; -} - -[nvue-dir-column] uni-view, -[nvue-dir-column] uni-label, -[nvue-dir-column] uni-swiper-item { - flex-direction: column; -} - -[nvue-dir-row-reverse] uni-view, -[nvue-dir-row-reverse] uni-label, -[nvue-dir-row-reverse] uni-swiper-item { - flex-direction: row-reverse; -} - -[nvue-dir-column-reverse] uni-view, -[nvue-dir-column-reverse] uni-label, -[nvue-dir-column-reverse] uni-swiper-item { - flex-direction: column-reverse; -} - -[nvue] uni-view, -[nvue] uni-image, -[nvue] uni-input, -[nvue] uni-scroll-view, -[nvue] uni-swiper, -[nvue] uni-swiper-item, -[nvue] uni-text, -[nvue] uni-textarea, -[nvue] uni-video { - position: relative; - border: 0px solid #000000; - box-sizing: border-box; -} - -[nvue] uni-swiper-item { - position: absolute; -} -@keyframes once-show { - from { - top: 0; - } -} -uni-resize-sensor, -uni-resize-sensor > div { - position: absolute; - left: 0; - top: 0; - right: 0; - bottom: 0; - overflow: hidden; -} -uni-resize-sensor { - display: block; - z-index: -1; - visibility: hidden; - animation: once-show 1ms; -} -uni-resize-sensor > div > div { - position: absolute; - left: 0; - top: 0; -} -uni-resize-sensor > div:first-child > div { - width: 100000px; - height: 100000px; -} -uni-resize-sensor > div:last-child > div { - width: 200%; - height: 200%; -} -uni-text[selectable] { - cursor: auto; - -webkit-user-select: text; - user-select: text; -} - -uni-text { - white-space: pre-line; -} -uni-view { - display: block; -} -uni-view[hidden] { - display: none; -} -uni-button { - position: relative; - display: block; - margin-left: auto; - margin-right: auto; - padding-left: 14px; - padding-right: 14px; - box-sizing: border-box; - font-size: 18px; - text-align: center; - text-decoration: none; - line-height: 2.55555556; - border-radius: 5px; - -webkit-tap-highlight-color: transparent; - overflow: hidden; - color: #000000; - background-color: #f8f8f8; - cursor: pointer; -} - -uni-button[hidden] { - display: none !important; -} - -uni-button:after { - content: ' '; - width: 200%; - height: 200%; - position: absolute; - top: 0; - left: 0; - border: 1px solid rgba(0, 0, 0, 0.2); - transform: scale(0.5); - transform-origin: 0 0; - box-sizing: border-box; - border-radius: 10px; -} - -uni-button[native] { - padding-left: 0; - padding-right: 0; -} - -uni-button[native] .uni-button-cover-view-wrapper { - border: inherit; - border-color: inherit; - border-radius: inherit; - background-color: inherit; -} - -uni-button[native] .uni-button-cover-view-inner { - padding-left: 14px; - padding-right: 14px; -} - -uni-button uni-cover-view { - line-height: inherit; - white-space: inherit; -} - -uni-button[type='default'] { - color: #000000; - background-color: #f8f8f8; -} - -uni-button[type='primary'] { - color: #ffffff; - background-color: #007aff; -} - -uni-button[type='warn'] { - color: #ffffff; - background-color: #e64340; -} - -uni-button[disabled] { - color: rgba(255, 255, 255, 0.6); - cursor: not-allowed; -} - -uni-button[disabled][type='default'], -uni-button[disabled]:not([type]) { - color: rgba(0, 0, 0, 0.3); - background-color: #f7f7f7; -} - -uni-button[disabled][type='primary'] { - background-color: rgba(0, 122, 255, 0.6); -} - -uni-button[disabled][type='warn'] { - background-color: #ec8b89; -} - -uni-button[type='primary'][plain] { - color: #007aff; - border: 1px solid #007aff; - background-color: transparent; -} - -uni-button[type='primary'][plain][disabled] { - color: rgba(0, 0, 0, 0.2); - border-color: rgba(0, 0, 0, 0.2); -} - -uni-button[type='primary'][plain]:after { - border-width: 0; -} - -uni-button[type='default'][plain] { - color: #353535; - border: 1px solid #353535; - background-color: transparent; -} - -uni-button[type='default'][plain][disabled] { - color: rgba(0, 0, 0, 0.2); - border-color: rgba(0, 0, 0, 0.2); -} - -uni-button[type='default'][plain]:after { - border-width: 0; -} - -uni-button[plain] { - color: #353535; - border: 1px solid #353535; - background-color: transparent; -} - -uni-button[plain][disabled] { - color: rgba(0, 0, 0, 0.2); - border-color: rgba(0, 0, 0, 0.2); -} - -uni-button[plain]:after { - border-width: 0; -} - -uni-button[plain][native] .uni-button-cover-view-inner { - padding: 0; -} - -uni-button[type='warn'][plain] { - color: #e64340; - border: 1px solid #e64340; - background-color: transparent; -} - -uni-button[type='warn'][plain][disabled] { - color: rgba(0, 0, 0, 0.2); - border-color: rgba(0, 0, 0, 0.2); -} - -uni-button[type='warn'][plain]:after { - border-width: 0; -} - -uni-button[size='mini'] { - display: inline-block; - line-height: 2.3; - font-size: 13px; - padding: 0 1.34em; -} - -uni-button[size='mini'][native] { - padding: 0; -} - -uni-button[size='mini'][native] .uni-button-cover-view-inner { - padding: 0 1.34em; -} - -uni-button[loading]:not([disabled]) { - cursor: progress; -} - -uni-button[loading]:before { - content: ' '; - display: inline-block; - width: 18px; - height: 18px; - vertical-align: middle; - animation: uni-loading 1s steps(12, end) infinite; - background-size: 100%; -} - -uni-button[loading][type='primary'] { - color: rgba(255, 255, 255, 0.6); - background-color: #0062cc; -} - -uni-button[loading][type='primary'][plain] { - color: #007aff; - background-color: transparent; -} - -uni-button[loading][type='default'] { - color: rgba(0, 0, 0, 0.6); - background-color: #dedede; -} - -uni-button[loading][type='default'][plain] { - color: #353535; - background-color: transparent; -} - -uni-button[loading][type='warn'] { - color: rgba(255, 255, 255, 0.6); - background-color: #ce3c39; -} - -uni-button[loading][type='warn'][plain] { - color: #e64340; - background-color: transparent; -} - -uni-button[loading][native]:before { - content: none; -} - -.button-hover { - color: rgba(0, 0, 0, 0.6); - background-color: #dedede; -} - -.button-hover[plain] { - color: rgba(53, 53, 53, 0.6); - border-color: rgba(53, 53, 53, 0.6); - background-color: transparent; -} - -.button-hover[type='primary'] { - color: rgba(255, 255, 255, 0.6); - background-color: #0062cc; -} - -.button-hover[type='primary'][plain] { - color: rgba(26, 173, 25, 0.6); - border-color: rgba(26, 173, 25, 0.6); - background-color: transparent; -} - -.button-hover[type='default'] { - color: rgba(0, 0, 0, 0.6); - background-color: #dedede; -} - -.button-hover[type='default'][plain] { - color: rgba(53, 53, 53, 0.6); - border-color: rgba(53, 53, 53, 0.6); - background-color: transparent; -} - -.button-hover[type='warn'] { - color: rgba(255, 255, 255, 0.6); - background-color: #ce3c39; -} - -.button-hover[type='warn'][plain] { - color: rgba(230, 67, 64, 0.6); - border-color: rgba(230, 67, 64, 0.6); - background-color: transparent; -} -uni-canvas { - width: 300px; - height: 150px; - display: block; - position: relative; -} - -uni-canvas > .uni-canvas-canvas { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; -} -uni-checkbox { - -webkit-tap-highlight-color: transparent; - display: inline-block; - cursor: pointer; -} - -uni-checkbox[hidden] { - display: none; -} - -uni-checkbox[disabled] { - cursor: not-allowed; -} - -.uni-checkbox-wrapper { - display: inline-flex; - align-items: center; - vertical-align: middle; -} - -.uni-checkbox-input { - margin-right: 5px; - -webkit-appearance: none; - appearance: none; - outline: 0; - border: 1px solid #d1d1d1; - background-color: #ffffff; - border-radius: 3px; - width: 22px; - height: 22px; - position: relative; -} - -.uni-checkbox-input svg { - color: #007aff; - font-size: 22px; - position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%, -48%) scale(0.73); -} - -uni-checkbox:not([disabled]) .uni-checkbox-input:hover { - border-color: #007aff; -} - -.uni-checkbox-input.uni-checkbox-input-disabled { - background-color: #e1e1e1; -} - -.uni-checkbox-input.uni-checkbox-input-disabled:before { - color: #adadad; -} - -uni-checkbox-group { - display: block; -} -uni-checkbox-group { - display: block; -} - -uni-checkbox-group[hidden] { - display: none; -} -uni-cover-image { - display: block; - line-height: 1.2; - overflow: hidden; - height: 100%; - width: 100%; - pointer-events: auto; -} - -uni-cover-image[hidden] { - display: none; -} - -uni-cover-image .uni-cover-image { - width: 100%; - height: 100%; -} -uni-cover-view { - display: block; - line-height: 1.2; - overflow: hidden; - white-space: nowrap; - pointer-events: auto; -} - -uni-cover-view[hidden] { - display: none; -} - -uni-cover-view .uni-cover-view { - width: 100%; - height: 100%; - visibility: hidden; -} -.ql-container { - display: block; - position: relative; - box-sizing: border-box; - -webkit-user-select: text; - user-select: text; - outline: none; - overflow: hidden; - width: 100%; - height: 200px; - min-height: 200px; -} -.ql-container[hidden] { - display: none; -} -.ql-container .ql-editor { - position: relative; - font-size: inherit; - line-height: inherit; - font-family: inherit; - min-height: inherit; - width: 100%; - height: 100%; - padding: 0; - overflow-x: hidden; - overflow-y: auto; - -webkit-tap-highlight-color: transparent; - -webkit-touch-callout: none; - -webkit-overflow-scrolling: touch; -} -.ql-container .ql-editor::-webkit-scrollbar { - width: 0 !important; -} -.ql-container .ql-editor.scroll-disabled { - overflow: hidden; -} -.ql-container .ql-image-overlay { - display: flex; - position: absolute; - box-sizing: border-box; - border: 1px dashed #ccc; - justify-content: center; - align-items: center; - -webkit-user-select: none; - user-select: none; -} -.ql-container .ql-image-overlay .ql-image-size { - position: absolute; - padding: 4px 8px; - text-align: center; - background-color: #fff; - color: #888; - border: 1px solid #ccc; - box-sizing: border-box; - opacity: 0.8; - right: 4px; - top: 4px; - font-size: 12px; - display: inline-block; - width: auto; -} -.ql-container .ql-image-overlay .ql-image-toolbar { - position: relative; - text-align: center; - box-sizing: border-box; - background: #000; - border-radius: 5px; - color: #fff; - font-size: 0; - min-height: 24px; - z-index: 100; -} -.ql-container .ql-image-overlay .ql-image-toolbar span { - display: inline-block; - cursor: pointer; - padding: 5px; - font-size: 12px; - border-right: 1px solid #fff; -} -.ql-container .ql-image-overlay .ql-image-toolbar span:last-child { - border-right: 0; -} -.ql-container .ql-image-overlay .ql-image-toolbar span.triangle-up { - padding: 0; - position: absolute; - top: -12px; - left: 50%; - transform: translatex(-50%); - width: 0; - height: 0; - border-width: 6px; - border-style: solid; - border-color: transparent transparent black transparent; -} -.ql-container .ql-image-overlay .ql-image-handle { - position: absolute; - height: 12px; - width: 12px; - border-radius: 50%; - border: 1px solid #ccc; - box-sizing: border-box; - background: #fff; -} -.ql-container img { - display: inline-block; - max-width: 100%; -} -.ql-clipboard p { - margin: 0; - padding: 0; -} -.ql-editor { - box-sizing: border-box; - height: 100%; - outline: none; - overflow-y: auto; - tab-size: 4; - -moz-tab-size: 4; - text-align: left; - white-space: pre-wrap; - word-wrap: break-word; -} -.ql-editor > * { - cursor: text; -} -.ql-editor p, -.ql-editor ol, -.ql-editor ul, -.ql-editor pre, -.ql-editor blockquote, -.ql-editor h1, -.ql-editor h2, -.ql-editor h3, -.ql-editor h4, -.ql-editor h5, -.ql-editor h6 { - margin: 0; - padding: 0; - counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9; -} -.ql-editor ol > li, -.ql-editor ul > li { - list-style-type: none; -} -.ql-editor ul > li::before { - content: '\2022'; -} -.ql-editor ul[data-checked=true], -.ql-editor ul[data-checked=false] { - pointer-events: none; -} -.ql-editor ul[data-checked=true] > li *, -.ql-editor ul[data-checked=false] > li * { - pointer-events: all; -} -.ql-editor ul[data-checked=true] > li::before, -.ql-editor ul[data-checked=false] > li::before { - color: #777; - cursor: pointer; - pointer-events: all; -} -.ql-editor ul[data-checked=true] > li::before { - content: '\2611'; -} -.ql-editor ul[data-checked=false] > li::before { - content: '\2610'; -} -.ql-editor li::before { - display: inline-block; - white-space: nowrap; - width: 2em; -} -.ql-editor ol li { - counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9; - counter-increment: list-0; -} -.ql-editor ol li:before { - content: counter(list-0, decimal) '. '; -} -.ql-editor ol li.ql-indent-1 { - counter-increment: list-1; -} -.ql-editor ol li.ql-indent-1:before { - content: counter(list-1, lower-alpha) '. '; -} -.ql-editor ol li.ql-indent-1 { - counter-reset: list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9; -} -.ql-editor ol li.ql-indent-2 { - counter-increment: list-2; -} -.ql-editor ol li.ql-indent-2:before { - content: counter(list-2, lower-roman) '. '; -} -.ql-editor ol li.ql-indent-2 { - counter-reset: list-3 list-4 list-5 list-6 list-7 list-8 list-9; -} -.ql-editor ol li.ql-indent-3 { - counter-increment: list-3; -} -.ql-editor ol li.ql-indent-3:before { - content: counter(list-3, decimal) '. '; -} -.ql-editor ol li.ql-indent-3 { - counter-reset: list-4 list-5 list-6 list-7 list-8 list-9; -} -.ql-editor ol li.ql-indent-4 { - counter-increment: list-4; -} -.ql-editor ol li.ql-indent-4:before { - content: counter(list-4, lower-alpha) '. '; -} -.ql-editor ol li.ql-indent-4 { - counter-reset: list-5 list-6 list-7 list-8 list-9; -} -.ql-editor ol li.ql-indent-5 { - counter-increment: list-5; -} -.ql-editor ol li.ql-indent-5:before { - content: counter(list-5, lower-roman) '. '; -} -.ql-editor ol li.ql-indent-5 { - counter-reset: list-6 list-7 list-8 list-9; -} -.ql-editor ol li.ql-indent-6 { - counter-increment: list-6; -} -.ql-editor ol li.ql-indent-6:before { - content: counter(list-6, decimal) '. '; -} -.ql-editor ol li.ql-indent-6 { - counter-reset: list-7 list-8 list-9; -} -.ql-editor ol li.ql-indent-7 { - counter-increment: list-7; -} -.ql-editor ol li.ql-indent-7:before { - content: counter(list-7, lower-alpha) '. '; -} -.ql-editor ol li.ql-indent-7 { - counter-reset: list-8 list-9; -} -.ql-editor ol li.ql-indent-8 { - counter-increment: list-8; -} -.ql-editor ol li.ql-indent-8:before { - content: counter(list-8, lower-roman) '. '; -} -.ql-editor ol li.ql-indent-8 { - counter-reset: list-9; -} -.ql-editor ol li.ql-indent-9 { - counter-increment: list-9; -} -.ql-editor ol li.ql-indent-9:before { - content: counter(list-9, decimal) '. '; -} -.ql-editor .ql-indent-1:not(.ql-direction-rtl) { - padding-left: 2em; -} -.ql-editor li.ql-indent-1:not(.ql-direction-rtl) { - padding-left: 2em; -} -.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right { - padding-right: 2em; -} -.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right { - padding-right: 2em; -} -.ql-editor .ql-indent-2:not(.ql-direction-rtl) { - padding-left: 4em; -} -.ql-editor li.ql-indent-2:not(.ql-direction-rtl) { - padding-left: 4em; -} -.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right { - padding-right: 4em; -} -.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right { - padding-right: 4em; -} -.ql-editor .ql-indent-3:not(.ql-direction-rtl) { - padding-left: 6em; -} -.ql-editor li.ql-indent-3:not(.ql-direction-rtl) { - padding-left: 6em; -} -.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right { - padding-right: 6em; -} -.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right { - padding-right: 6em; -} -.ql-editor .ql-indent-4:not(.ql-direction-rtl) { - padding-left: 8em; -} -.ql-editor li.ql-indent-4:not(.ql-direction-rtl) { - padding-left: 8em; -} -.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right { - padding-right: 8em; -} -.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right { - padding-right: 8em; -} -.ql-editor .ql-indent-5:not(.ql-direction-rtl) { - padding-left: 10em; -} -.ql-editor li.ql-indent-5:not(.ql-direction-rtl) { - padding-left: 10em; -} -.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right { - padding-right: 10em; -} -.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right { - padding-right: 10em; -} -.ql-editor .ql-indent-6:not(.ql-direction-rtl) { - padding-left: 12em; -} -.ql-editor li.ql-indent-6:not(.ql-direction-rtl) { - padding-left: 12em; -} -.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right { - padding-right: 12em; -} -.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right { - padding-right: 12em; -} -.ql-editor .ql-indent-7:not(.ql-direction-rtl) { - padding-left: 14em; -} -.ql-editor li.ql-indent-7:not(.ql-direction-rtl) { - padding-left: 14em; -} -.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right { - padding-right: 14em; -} -.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right { - padding-right: 14em; -} -.ql-editor .ql-indent-8:not(.ql-direction-rtl) { - padding-left: 16em; -} -.ql-editor li.ql-indent-8:not(.ql-direction-rtl) { - padding-left: 16em; -} -.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right { - padding-right: 16em; -} -.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right { - padding-right: 16em; -} -.ql-editor .ql-indent-9:not(.ql-direction-rtl) { - padding-left: 18em; -} -.ql-editor li.ql-indent-9:not(.ql-direction-rtl) { - padding-left: 18em; -} -.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right { - padding-right: 18em; -} -.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right { - padding-right: 18em; -} -.ql-editor .ql-direction-rtl { - direction: rtl; - text-align: inherit; -} -.ql-editor .ql-align-center { - text-align: center; -} -.ql-editor .ql-align-justify { - text-align: justify; -} -.ql-editor .ql-align-right { - text-align: right; -} -.ql-editor.ql-blank::before { - color: rgba(0, 0, 0, 0.6); - content: attr(data-placeholder); - font-style: italic; - pointer-events: none; - position: absolute; -} -.ql-container.ql-disabled .ql-editor ul[data-checked] > li::before { - pointer-events: none; -} -.ql-clipboard { - left: -100000px; - height: 1px; - overflow-y: hidden; - position: absolute; - top: 50%; -} -uni-icon { - display: inline-block; - font-size: 0; - box-sizing: border-box; -} - -uni-icon[hidden] { - display: none; -} -uni-image { - width: 320px; - height: 240px; - display: inline-block; - overflow: hidden; - position: relative; -} - -uni-image[hidden] { - display: none; -} - -uni-image > div { - width: 100%; - height: 100%; - background-repeat:no-repeat; -} - -uni-image > img { - -webkit-touch-callout: none; - -webkit-user-select: none; - user-select: none; - display: block; - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - opacity: 0; -} - -uni-image > .uni-image-will-change { - will-change: transform; -} -uni-input { - display: block; - font-size: 16px; - line-height: 1.4em; - height: 1.4em; - min-height: 1.4em; - overflow: hidden; -} - -uni-input[hidden] { - display: none; -} - -.uni-input-wrapper, -.uni-input-placeholder, -.uni-input-form, -.uni-input-input { - outline: none; - border: none; - padding: 0; - margin: 0; - text-decoration: inherit; -} - -.uni-input-wrapper, -.uni-input-form { - display: flex; - position: relative; - width: 100%; - height: 100%; - flex-direction: column; - justify-content: center; -} - -.uni-input-placeholder, -.uni-input-input { - width: 100%; -} - -.uni-input-placeholder { - position: absolute; - top: auto !important; - left: 0; - color: gray; - overflow: hidden; - text-overflow: clip; - white-space: pre; - word-break: keep-all; - pointer-events: none; - line-height: inherit; -} - -.uni-input-input { - position: relative; - display: block; - height: 100%; - background: none; - color: inherit; - opacity: 1; - font: inherit; - line-height: inherit; - letter-spacing: inherit; - text-align: inherit; - text-indent: inherit; - text-transform: inherit; - text-shadow: inherit; -} - -.uni-input-input[type='search']::-webkit-search-cancel-button, -.uni-input-input[type="search"]::-webkit-search-decoration { - display: none; -} - -.uni-input-input::-webkit-outer-spin-button, -.uni-input-input::-webkit-inner-spin-button { - -webkit-appearance: none; - appearance: none; - margin: 0; -} - -.uni-input-input[type='number'] { - -moz-appearance: textfield; -} - -.uni-input-input:disabled { - /* 用于重置iOS14以下禁用状态文字颜色 */ - -webkit-text-fill-color: currentcolor; -} -.uni-label-pointer { - cursor: pointer; -} -uni-live-pusher { - width: 320px; - height: 240px; - display: inline-block; - line-height: 0; - overflow: hidden; - position: relative; -} - -uni-live-pusher[hidden] { - display: none; -} - -.uni-live-pusher-container { - width: 100%; - height: 100%; - position: absolute; - top: 0; - left: 0; - overflow: hidden; - background-color: black; -} - -.uni-live-pusher-slot { - position: absolute; - top: 0; - width: 100%; - height: 100%; - overflow: hidden; - pointer-events: none; -} -uni-map { - width: 300px; - height: 225px; - display: inline-block; - line-height: 0; - overflow: hidden; - position: relative; -} - -uni-map[hidden] { - display: none; -} - -.uni-map-container { - width: 100%; - height: 100%; - position: absolute; - top: 0; - left: 0; - overflow: hidden; - background-color: black; -} - -.uni-map-slot { - position: absolute; - top: 0; - width: 100%; - height: 100%; - overflow: hidden; - pointer-events: none; -}uni-movable-area { - display: block; - position: relative; - width: 10px; - height: 10px; -} - -uni-movable-area[hidden] { - display: none; -} -uni-movable-view { - display: inline-block; - width: 10px; - height: 10px; - top: 0px; - left: 0px; - position: absolute; - cursor: grab; -} - -uni-movable-view[hidden] { - display: none; -} -uni-navigator { - height: auto; - width: auto; - display: block; - cursor: pointer; -} - -uni-navigator[hidden] { - display: none; -} - -.navigator-hover { - background-color: rgba(0, 0, 0, 0.1); - opacity: 0.7; -} - -.navigator-wrap { - text-decoration: none; - color: inherit; - cursor: pointer; -} - -.navigator-wrap:link { - text-decoration: none; - color: inherit; - cursor: pointer; -} - -.navigator-wrap:visited { - text-decoration: none; - color: inherit; - cursor: pointer; -} - -.navigator-wrap:hover { - text-decoration: none; - color: inherit; - cursor: pointer; -} - -.navigator-wrap:active { - text-decoration: none; - color: inherit; - cursor: pointer; -} -uni-picker-view { - display: block; -} - -.uni-picker-view-wrapper { - display: flex; - position: relative; - overflow: hidden; - height: 100%; -} - -uni-picker-view[hidden] { - display: none; -} -uni-picker-view-column { - flex: 1; - position: relative; - height: 100%; - overflow: hidden; -} - -uni-picker-view-column[hidden] { - display: none; -} - -.uni-picker-view-group { - height: 100%; - overflow: hidden; -} - -.uni-picker-view-mask { - transform: translateZ(0); -} - -.uni-picker-view-indicator, -.uni-picker-view-mask { - position: absolute; - left: 0; - width: 100%; - z-index: 3; - pointer-events: none; -} - -.uni-picker-view-mask { - top: 0; - height: 100%; - margin: 0 auto; - background: linear-gradient( - 180deg, - hsla(0, 0%, 100%, 0.95), - hsla(0, 0%, 100%, 0.6) - ), - linear-gradient(0deg, hsla(0, 0%, 100%, 0.95), hsla(0, 0%, 100%, 0.6)); - background-position: top, bottom; - background-size: 100% 102px; - background-repeat: no-repeat; -} - -.uni-picker-view-indicator { - height: 34px; - /* top: 102px; */ - top: 50%; - transform: translateY(-50%); -} - -.uni-picker-view-content { - position: absolute; - top: 0; - left: 0; - width: 100%; - will-change: transform; - padding: 102px 0; - cursor: pointer; -} - -.uni-picker-view-content > * { - height: 34px; - overflow: hidden; -} - -.uni-picker-view-indicator:after, -.uni-picker-view-indicator:before { - content: ' '; - position: absolute; - left: 0; - right: 0; - height: 1px; - color: #e5e5e5; -} - -.uni-picker-view-indicator:before { - top: 0; - border-top: 1px solid #e5e5e5; - transform-origin: 0 0; - transform: scaleY(0.5); -} - -.uni-picker-view-indicator:after { - bottom: 0; - border-bottom: 1px solid #e5e5e5; - transform-origin: 0 100%; - transform: scaleY(0.5); -} - -.uni-picker-view-indicator:after, -.uni-picker-view-indicator:before { - content: ' '; - position: absolute; - left: 0; - right: 0; - height: 1px; - color: #e5e5e5; -} -uni-progress { - display: flex; - align-items: center; -} - -uni-progress[hidden] { - display: none; -} - -.uni-progress-bar { - flex: 1; -} - -.uni-progress-inner-bar { - width: 0; - height: 100%; -} - -.uni-progress-info { - margin-top: 0; - margin-bottom: 0; - min-width: 2em; - margin-left: 15px; - font-size: 16px; -} -uni-radio { - -webkit-tap-highlight-color: transparent; - display: inline-block; - cursor: pointer; -} - -uni-radio[hidden] { - display: none; -} - -uni-radio[disabled] { - cursor: not-allowed; -} - -.uni-radio-wrapper { - display: inline-flex; - align-items: center; - vertical-align: middle; -} - -.uni-radio-input { - -webkit-appearance: none; - appearance: none; - margin-right: 5px; - outline: 0; - border: 1px solid #d1d1d1; - background-color: #ffffff; - border-radius: 50%; - width: 22px; - height: 22px; - position: relative; -} - -uni-radio:not([disabled]) .uni-radio-input:hover { - border-color: #007aff; -} - -.uni-radio-input svg { - color: #ffffff; - font-size: 18px; - position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%, -48%) scale(0.73); -} - -.uni-radio-input.uni-radio-input-disabled { - background-color: #e1e1e1; - border-color: #d1d1d1; -} - -.uni-radio-input.uni-radio-input-disabled:before { - color: #adadad; -} -uni-radio-group { - display: block; -} -uni-radio-group[hidden] { - display: none; -} -uni-scroll-view { - display: block; - width: 100%; -} - -uni-scroll-view[hidden] { - display: none; -} - -.uni-scroll-view { - position: relative; - -webkit-overflow-scrolling: touch; - width: 100%; - /* display: flex; 时在安卓下会导致scrollWidth和offsetWidth一样 */ - height: 100%; - max-height: inherit; -} - -.uni-scroll-view-content { - width: 100%; - height: 100%; -} - -.uni-scroll-view-refresher { - position: relative; - overflow: hidden; -} - -.uni-scroll-view-refresh { - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - display: flex; - flex-direction: row; - justify-content: center; - align-items: center; -} - -.uni-scroll-view-refresh-inner { - display: flex; - align-items: center; - justify-content: center; - line-height: 0; - width: 40px; - height: 40px; - border-radius: 50%; - background-color: #fff; - box-shadow: 0 1px 6px rgba(0, 0, 0, 0.117647), - 0 1px 4px rgba(0, 0, 0, 0.117647); -} - -.uni-scroll-view-refresh__spinner { - transform-origin: center center; - animation: uni-scroll-view-refresh-rotate 2s linear infinite; -} - -.uni-scroll-view-refresh__spinner > circle { - stroke: currentColor; - stroke-linecap: round; - animation: uni-scroll-view-refresh-dash 2s linear infinite; -} - -@keyframes uni-scroll-view-refresh-rotate { - 0% { - transform: rotate(0deg); - } - - 100% { - transform: rotate(360deg); - } -} - -@keyframes uni-scroll-view-refresh-dash { - 0% { - stroke-dasharray: 1, 200; - stroke-dashoffset: 0; - } - - 50% { - stroke-dasharray: 89, 200; - stroke-dashoffset: -35px; - } - - 100% { - stroke-dasharray: 89, 200; - stroke-dashoffset: -124px; - } -} -uni-slider { - margin: 10px 18px; - padding: 0; - display: block; -} - -uni-slider[hidden] { - display: none; -} - -uni-slider .uni-slider-wrapper { - display: flex; - align-items: center; - min-height: 16px; -} - -uni-slider .uni-slider-tap-area { - flex: 1; - padding: 8px 0; -} - -uni-slider .uni-slider-handle-wrapper { - position: relative; - height: 2px; - border-radius: 5px; - background-color: #e9e9e9; - cursor: pointer; - transition: background-color 0.3s ease; - -webkit-tap-highlight-color: transparent; -} - -uni-slider .uni-slider-track { - height: 100%; - border-radius: 6px; - background-color: #007aff; - transition: background-color 0.3s ease; -} - -uni-slider .uni-slider-handle, -uni-slider .uni-slider-thumb { - position: absolute; - left: 50%; - top: 50%; - cursor: pointer; - border-radius: 50%; - transition: border-color 0.3s ease; -} - -uni-slider .uni-slider-handle { - width: 28px; - height: 28px; - margin-top: -14px; - margin-left: -14px; - background-color: transparent; - z-index: 3; - cursor: grab; -} - -uni-slider .uni-slider-thumb { - z-index: 2; - box-shadow: 0 0 4px rgba(0, 0, 0, 0.2); -} - -uni-slider .uni-slider-step { - position: absolute; - width: 100%; - height: 2px; - background: transparent; - z-index: 1; -} - -uni-slider .uni-slider-value { - width: 3ch; - color: #888; - font-size: 14px; - margin-left: 1em; -} - -uni-slider .uni-slider-disabled .uni-slider-track { - background-color: #ccc; -} - -uni-slider .uni-slider-disabled .uni-slider-thumb { - background-color: #fff; - border-color: #ccc; -} -uni-swiper { - display: block; - height: 150px; -} - -uni-swiper[hidden] { - display: none; -} - -.uni-swiper-wrapper { - overflow: hidden; - position: relative; - width: 100%; - height: 100%; - transform: translateZ(0); -} - -.uni-swiper-slides { - position: absolute; - left: 0; - top: 0; - right: 0; - bottom: 0; -} - -.uni-swiper-slide-frame { - position: absolute; - left: 0; - top: 0; - width: 100%; - height: 100%; - will-change: transform; -} - -.uni-swiper-dots { - position: absolute; - font-size: 0; -} - -.uni-swiper-dots-horizontal { - left: 50%; - bottom: 10px; - text-align: center; - white-space: nowrap; - transform: translate(-50%, 0); -} - -.uni-swiper-dots-horizontal .uni-swiper-dot { - margin-right: 8px; -} - -.uni-swiper-dots-horizontal .uni-swiper-dot:last-child { - margin-right: 0; -} - -.uni-swiper-dots-vertical { - right: 10px; - top: 50%; - text-align: right; - transform: translate(0, -50%); -} - -.uni-swiper-dots-vertical .uni-swiper-dot { - display: block; - margin-bottom: 9px; -} - -.uni-swiper-dots-vertical .uni-swiper-dot:last-child { - margin-bottom: 0; -} - -.uni-swiper-dot { - display: inline-block; - width: 8px; - height: 8px; - cursor: pointer; - transition-property: background-color; - transition-timing-function: ease; - background: rgba(0, 0, 0, 0.3); - border-radius: 50%; -} - -.uni-swiper-dot-active { - background-color: #000000; -} -uni-swiper-item { - display: block; - overflow: hidden; - will-change: transform; - position: absolute; - width: 100%; - height: 100%; - cursor: grab; -} - -uni-swiper-item[hidden] { - display: none; -} -uni-switch { - -webkit-tap-highlight-color: transparent; - display: inline-block; - cursor: pointer; -} - -uni-switch[hidden] { - display: none; -} - -uni-switch[disabled] { - cursor: not-allowed; -} - -.uni-switch-wrapper { - display: inline-flex; - align-items: center; - vertical-align: middle; -} - -.uni-switch-input { - -webkit-appearance: none; - appearance: none; - position: relative; - width: 52px; - height: 32px; - margin-right: 5px; - border: 1px solid #dfdfdf; - outline: 0; - border-radius: 16px; - box-sizing: border-box; - background-color: #dfdfdf; - transition: background-color 0.1s, border 0.1s; -} - -uni-switch[disabled] .uni-switch-input { - opacity: 0.7; -} - -.uni-switch-input:before { - content: ' '; - position: absolute; - top: 0; - left: 0; - width: 50px; - height: 30px; - border-radius: 15px; - background-color: #fdfdfd; - transition: transform 0.3s; -} - -.uni-switch-input:after { - content: ' '; - position: absolute; - top: 0; - left: 0; - width: 30px; - height: 30px; - border-radius: 15px; - background-color: #ffffff; - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); - transition: transform 0.3s; -} - -.uni-switch-input.uni-switch-input-checked { - border-color: #007aff; - background-color: #007aff; -} - -.uni-switch-input.uni-switch-input-checked:before { - transform: scale(0); -} - -.uni-switch-input.uni-switch-input-checked:after { - transform: translateX(20px); -} - -uni-switch .uni-checkbox-input { - margin-right: 5px; - -webkit-appearance: none; - appearance: none; - outline: 0; - border: 1px solid #d1d1d1; - background-color: #ffffff; - border-radius: 3px; - width: 22px; - height: 22px; - position: relative; - color: #007aff; -} - -uni-switch:not([disabled]) .uni-checkbox-input:hover { - border-color: #007aff; -} - -uni-switch .uni-checkbox-input svg { - color: inherit; - font-size: 22px; - position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%, -48%) scale(0.73); -} - -.uni-checkbox-input.uni-checkbox-input-disabled { - background-color: #e1e1e1; -} - -.uni-checkbox-input.uni-checkbox-input-disabled:before { - color: #adadad; -} -uni-textarea { - width: 300px; - height: 150px; - display: block; - position: relative; - font-size: 16px; - line-height: normal; - white-space: pre-wrap; - word-break: break-all; - box-sizing: content-box !important; -} -uni-textarea[hidden] { - display: none; -} -.uni-textarea-wrapper, -.uni-textarea-placeholder, -.uni-textarea-line, -.uni-textarea-compute, -.uni-textarea-textarea { - outline: none; - border: none; - padding: 0; - margin: 0; - text-decoration: inherit; -} -.uni-textarea-wrapper { - display: block; - position: relative; - width: 100%; - height: 100%; - min-height: inherit; -} -.uni-textarea-placeholder, -.uni-textarea-line, -.uni-textarea-compute, -.uni-textarea-textarea { - position: absolute; - width: 100%; - height: 100%; - left: 0; - top: 0; - white-space: inherit; - word-break: inherit; -} -.uni-textarea-placeholder { - color: grey; - overflow: hidden; -} -.uni-textarea-line, -.uni-textarea-compute { - visibility: hidden; - height: auto; -} -.uni-textarea-line { - width: 1em; -} -.uni-textarea-textarea { - resize: none; - background: none; - color: inherit; - opacity: 1; - font: inherit; - line-height: inherit; - letter-spacing: inherit; - text-align: inherit; - text-indent: inherit; - text-transform: inherit; - text-shadow: inherit; -} -/* 用于解决 iOS textarea 内部默认边距 */ -.uni-textarea-textarea-fix-margin { - width: auto; - right: 0; - margin: 0 -3px; -} -.uni-textarea-textarea:disabled { - /* 用于重置iOS14以下禁用状态文字颜色 */ - -webkit-text-fill-color: currentcolor; -} -uni-video { - width: 300px; - height: 225px; - display: inline-block; - line-height: 0; - overflow: hidden; - position: relative; -} - -uni-video[hidden] { - display: none; -} - -.uni-video-container { - width: 100%; - height: 100%; - position: absolute; - top: 0; - left: 0; - overflow: hidden; - background-color: black; -} - -.uni-video-slot { - position: absolute; - top: 0; - width: 100%; - height: 100%; - overflow: hidden; - pointer-events: none; -} -uni-web-view { - display: inline-block; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; -} +*{margin:0;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:transparent}html,body{-webkit-user-select:none;user-select:none;width:100%}html{height:100%;height:100vh;width:100%;width:100vw}body{overflow-x:hidden;background-color:#fff}input[type=search]::-webkit-search-cancel-button{display:none}.uni-loading,uni-button[loading]:before{background:transparent url(data:image/svg+xml;base64,\ PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjAiIGhlaWdodD0iMTIwIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgxMDB2MTAwSDB6Ii8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTlFOUU5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgLTMwKSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iIzk4OTY5NyIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgzMCAxMDUuOTggNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjOUI5OTlBIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDYwIDc1Ljk4IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0EzQTFBMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSg5MCA2NSA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNBQkE5QUEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoMTIwIDU4LjY2IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0IyQjJCMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgxNTAgNTQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjQkFCOEI5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDE4MCA1MCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDMkMwQzEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTE1MCA0NS45OCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDQkNCQ0IiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTEyMCA0MS4zNCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNEMkQyRDIiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTkwIDM1IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0RBREFEQSIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgtNjAgMjQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTJFMkUyIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKC0zMCAtNS45OCA2NSkiLz48L3N2Zz4=) no-repeat}.uni-loading{width:20px;height:20px;display:inline-block;vertical-align:middle;animation:uni-loading 1s steps(12,end) infinite;background-size:100%}@keyframes uni-loading{0%{transform:rotate(0)}to{transform:rotate(360deg)}}[nvue] uni-view,[nvue] uni-label,[nvue] uni-swiper-item,[nvue] uni-scroll-view{display:flex;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}[nvue] uni-button{margin:0}[nvue-dir-row] uni-view,[nvue-dir-row] uni-label,[nvue-dir-row] uni-swiper-item{flex-direction:row}[nvue-dir-column] uni-view,[nvue-dir-column] uni-label,[nvue-dir-column] uni-swiper-item{flex-direction:column}[nvue-dir-row-reverse] uni-view,[nvue-dir-row-reverse] uni-label,[nvue-dir-row-reverse] uni-swiper-item{flex-direction:row-reverse}[nvue-dir-column-reverse] uni-view,[nvue-dir-column-reverse] uni-label,[nvue-dir-column-reverse] uni-swiper-item{flex-direction:column-reverse}[nvue] uni-view,[nvue] uni-image,[nvue] uni-input,[nvue] uni-scroll-view,[nvue] uni-swiper,[nvue] uni-swiper-item,[nvue] uni-text,[nvue] uni-textarea,[nvue] uni-video{position:relative;border:0px solid #000000;box-sizing:border-box}[nvue] uni-swiper-item{position:absolute}@keyframes once-show{0%{top:0}}uni-resize-sensor,uni-resize-sensor>div{position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden}uni-resize-sensor{display:block;z-index:-1;visibility:hidden;animation:once-show 1ms}uni-resize-sensor>div>div{position:absolute;left:0;top:0}uni-resize-sensor>div:first-child>div{width:100000px;height:100000px}uni-resize-sensor>div:last-child>div{width:200%;height:200%}uni-text[selectable]{cursor:auto;-webkit-user-select:text;user-select:text}uni-text{white-space:pre-line}uni-view{display:block}uni-view[hidden]{display:none}uni-button{position:relative;display:block;margin-left:auto;margin-right:auto;padding-left:14px;padding-right:14px;box-sizing:border-box;font-size:18px;text-align:center;text-decoration:none;line-height:2.55555556;border-radius:5px;-webkit-tap-highlight-color:transparent;overflow:hidden;color:#000;background-color:#f8f8f8;cursor:pointer}uni-button[hidden]{display:none!important}uni-button:after{content:" ";width:200%;height:200%;position:absolute;top:0;left:0;border:1px solid rgba(0,0,0,.2);transform:scale(.5);transform-origin:0 0;box-sizing:border-box;border-radius:10px}uni-button[native]{padding-left:0;padding-right:0}uni-button[native] .uni-button-cover-view-wrapper{border:inherit;border-color:inherit;border-radius:inherit;background-color:inherit}uni-button[native] .uni-button-cover-view-inner{padding-left:14px;padding-right:14px}uni-button uni-cover-view{line-height:inherit;white-space:inherit}uni-button[type=default]{color:#000;background-color:#f8f8f8}uni-button[type=primary]{color:#fff;background-color:#007aff}uni-button[type=warn]{color:#fff;background-color:#e64340}uni-button[disabled]{color:rgba(255,255,255,.6);cursor:not-allowed}uni-button[disabled][type=default],uni-button[disabled]:not([type]){color:rgba(0,0,0,.3);background-color:#f7f7f7}uni-button[disabled][type=primary]{background-color:rgba(0,122,255,.6)}uni-button[disabled][type=warn]{background-color:#ec8b89}uni-button[type=primary][plain]{color:#007aff;border:1px solid #007aff;background-color:transparent}uni-button[type=primary][plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[type=primary][plain]:after{border-width:0}uni-button[type=default][plain]{color:#353535;border:1px solid #353535;background-color:transparent}uni-button[type=default][plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[type=default][plain]:after{border-width:0}uni-button[plain]{color:#353535;border:1px solid #353535;background-color:transparent}uni-button[plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[plain]:after{border-width:0}uni-button[plain][native] .uni-button-cover-view-inner{padding:0}uni-button[type=warn][plain]{color:#e64340;border:1px solid #e64340;background-color:transparent}uni-button[type=warn][plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[type=warn][plain]:after{border-width:0}uni-button[size=mini]{display:inline-block;line-height:2.3;font-size:13px;padding:0 1.34em}uni-button[size=mini][native]{padding:0}uni-button[size=mini][native] .uni-button-cover-view-inner{padding:0 1.34em}uni-button[loading]:not([disabled]){cursor:progress}uni-button[loading]:before{content:" ";display:inline-block;width:18px;height:18px;vertical-align:middle;animation:uni-loading 1s steps(12,end) infinite;background-size:100%}uni-button[loading][type=primary]{color:rgba(255,255,255,.6);background-color:#0062cc}uni-button[loading][type=primary][plain]{color:#007aff;background-color:transparent}uni-button[loading][type=default]{color:rgba(0,0,0,.6);background-color:#dedede}uni-button[loading][type=default][plain]{color:#353535;background-color:transparent}uni-button[loading][type=warn]{color:rgba(255,255,255,.6);background-color:#ce3c39}uni-button[loading][type=warn][plain]{color:#e64340;background-color:transparent}uni-button[loading][native]:before{content:none}.button-hover{color:rgba(0,0,0,.6);background-color:#dedede}.button-hover[plain]{color:rgba(53,53,53,.6);border-color:rgba(53,53,53,.6);background-color:transparent}.button-hover[type=primary]{color:rgba(255,255,255,.6);background-color:#0062cc}.button-hover[type=primary][plain]{color:rgba(26,173,25,.6);border-color:rgba(26,173,25,.6);background-color:transparent}.button-hover[type=default]{color:rgba(0,0,0,.6);background-color:#dedede}.button-hover[type=default][plain]{color:rgba(53,53,53,.6);border-color:rgba(53,53,53,.6);background-color:transparent}.button-hover[type=warn]{color:rgba(255,255,255,.6);background-color:#ce3c39}.button-hover[type=warn][plain]{color:rgba(230,67,64,.6);border-color:rgba(230,67,64,.6);background-color:transparent}uni-canvas{width:300px;height:150px;display:block;position:relative}uni-canvas>.uni-canvas-canvas{position:absolute;top:0;left:0;width:100%;height:100%}uni-checkbox{-webkit-tap-highlight-color:transparent;display:inline-block;cursor:pointer}uni-checkbox[hidden]{display:none}uni-checkbox[disabled]{cursor:not-allowed}.uni-checkbox-wrapper{display:inline-flex;align-items:center;vertical-align:middle}.uni-checkbox-input{margin-right:5px;-webkit-appearance:none;appearance:none;outline:0;border:1px solid #d1d1d1;background-color:#fff;border-radius:3px;width:22px;height:22px;position:relative}.uni-checkbox-input svg{color:#007aff;font-size:22px;position:absolute;top:50%;left:50%;transform:translate(-50%,-48%) scale(.73)}uni-checkbox:not([disabled]) .uni-checkbox-input:hover{border-color:#007aff}uni-checkbox-group{display:block}uni-checkbox-group[hidden]{display:none}uni-cover-image{display:block;line-height:1.2;overflow:hidden;height:100%;width:100%;pointer-events:auto}uni-cover-image[hidden]{display:none}uni-cover-image .uni-cover-image{width:100%;height:100%}uni-cover-view{display:block;line-height:1.2;overflow:hidden;white-space:nowrap;pointer-events:auto}uni-cover-view[hidden]{display:none}uni-cover-view .uni-cover-view{width:100%;height:100%;visibility:hidden}.ql-container{display:block;position:relative;box-sizing:border-box;-webkit-user-select:text;user-select:text;outline:none;overflow:hidden;width:100%;height:200px;min-height:200px}.ql-container[hidden]{display:none}.ql-container .ql-editor{position:relative;font-size:inherit;line-height:inherit;font-family:inherit;min-height:inherit;width:100%;height:100%;padding:0;overflow-x:hidden;overflow-y:auto;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-overflow-scrolling:touch}.ql-container .ql-editor::-webkit-scrollbar{width:0!important}.ql-container .ql-editor.scroll-disabled{overflow:hidden}.ql-container .ql-image-overlay{display:flex;position:absolute;box-sizing:border-box;border:1px dashed #ccc;justify-content:center;align-items:center;-webkit-user-select:none;user-select:none}.ql-container .ql-image-overlay .ql-image-size{position:absolute;padding:4px 8px;text-align:center;background-color:#fff;color:#888;border:1px solid #ccc;box-sizing:border-box;opacity:.8;right:4px;top:4px;font-size:12px;display:inline-block;width:auto}.ql-container .ql-image-overlay .ql-image-toolbar{position:relative;text-align:center;box-sizing:border-box;background:#000;border-radius:5px;color:#fff;font-size:0;min-height:24px;z-index:100}.ql-container .ql-image-overlay .ql-image-toolbar span{display:inline-block;cursor:pointer;padding:5px;font-size:12px;border-right:1px solid #fff}.ql-container .ql-image-overlay .ql-image-toolbar span:last-child{border-right:0}.ql-container .ql-image-overlay .ql-image-toolbar span.triangle-up{padding:0;position:absolute;top:-12px;left:50%;transform:translate(-50%);width:0;height:0;border-width:6px;border-style:solid;border-color:transparent transparent black transparent}.ql-container .ql-image-overlay .ql-image-handle{position:absolute;height:12px;width:12px;border-radius:50%;border:1px solid #ccc;box-sizing:border-box;background:#fff}.ql-container img{display:inline-block;max-width:100%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;height:100%;outline:none;overflow-y:auto;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor p,.ql-editor ol,.ql-editor ul,.ql-editor pre,.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{margin:0;padding:0;counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol>li,.ql-editor ul>li{list-style-type:none}.ql-editor ul>li:before{content:"\2022"}.ql-editor ul[data-checked=true],.ql-editor ul[data-checked=false]{pointer-events:none}.ql-editor ul[data-checked=true]>li *,.ql-editor ul[data-checked=false]>li *{pointer-events:all}.ql-editor ul[data-checked=true]>li:before,.ql-editor ul[data-checked=false]>li:before{color:#777;cursor:pointer;pointer-events:all}.ql-editor ul[data-checked=true]>li:before{content:"\2611"}.ql-editor ul[data-checked=false]>li:before{content:"\2610"}.ql-editor li:before{display:inline-block;white-space:nowrap;width:2em}.ql-editor ol li{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;counter-increment:list-0}.ql-editor ol li:before{content:counter(list-0,decimal) ". "}.ql-editor ol li.ql-indent-1{counter-increment:list-1}.ql-editor ol li.ql-indent-1:before{content:counter(list-1,lower-alpha) ". "}.ql-editor ol li.ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-2{counter-increment:list-2}.ql-editor ol li.ql-indent-2:before{content:counter(list-2,lower-roman) ". "}.ql-editor ol li.ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-3{counter-increment:list-3}.ql-editor ol li.ql-indent-3:before{content:counter(list-3,decimal) ". "}.ql-editor ol li.ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-4{counter-increment:list-4}.ql-editor ol li.ql-indent-4:before{content:counter(list-4,lower-alpha) ". "}.ql-editor ol li.ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-5{counter-increment:list-5}.ql-editor ol li.ql-indent-5:before{content:counter(list-5,lower-roman) ". "}.ql-editor ol li.ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-6{counter-increment:list-6}.ql-editor ol li.ql-indent-6:before{content:counter(list-6,decimal) ". "}.ql-editor ol li.ql-indent-6{counter-reset:list-7 list-8 list-9}.ql-editor ol li.ql-indent-7{counter-increment:list-7}.ql-editor ol li.ql-indent-7:before{content:counter(list-7,lower-alpha) ". "}.ql-editor ol li.ql-indent-7{counter-reset:list-8 list-9}.ql-editor ol li.ql-indent-8{counter-increment:list-8}.ql-editor ol li.ql-indent-8:before{content:counter(list-8,lower-roman) ". "}.ql-editor ol li.ql-indent-8{counter-reset:list-9}.ql-editor ol li.ql-indent-9{counter-increment:list-9}.ql-editor ol li.ql-indent-9:before{content:counter(list-9,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:2em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:2em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:2em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:4em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:4em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:4em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:6em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:8em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:8em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:8em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:10em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:10em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:10em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:12em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:14em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:14em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:14em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:16em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:16em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:16em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:18em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor.ql-blank:before{color:rgba(0,0,0,.6);content:attr(data-placeholder);font-style:italic;pointer-events:none;position:absolute}.ql-container.ql-disabled .ql-editor ul[data-checked]>li:before{pointer-events:none}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}uni-icon{display:inline-block;font-size:0;box-sizing:border-box}uni-icon[hidden]{display:none}uni-image{width:320px;height:240px;display:inline-block;overflow:hidden;position:relative}uni-image[hidden]{display:none}uni-image>div{width:100%;height:100%;background-repeat:no-repeat}uni-image>img{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;display:block;position:absolute;top:0;left:0;width:100%;height:100%;opacity:0}uni-image>.uni-image-will-change{will-change:transform}uni-input{display:block;font-size:16px;line-height:1.4em;height:1.4em;min-height:1.4em;overflow:hidden}uni-input[hidden]{display:none}.uni-input-wrapper,.uni-input-placeholder,.uni-input-form,.uni-input-input{outline:none;border:none;padding:0;margin:0;text-decoration:inherit}.uni-input-wrapper,.uni-input-form{display:flex;position:relative;width:100%;height:100%;flex-direction:column;justify-content:center}.uni-input-placeholder,.uni-input-input{width:100%}.uni-input-placeholder{position:absolute;top:auto!important;left:0;color:gray;overflow:hidden;text-overflow:clip;white-space:pre;word-break:keep-all;pointer-events:none;line-height:inherit}.uni-input-input{position:relative;display:block;height:100%;background:none;color:inherit;opacity:1;font:inherit;line-height:inherit;letter-spacing:inherit;text-align:inherit;text-indent:inherit;text-transform:inherit;text-shadow:inherit}.uni-input-input[type=search]::-webkit-search-cancel-button,.uni-input-input[type=search]::-webkit-search-decoration{display:none}.uni-input-input::-webkit-outer-spin-button,.uni-input-input::-webkit-inner-spin-button{-webkit-appearance:none;appearance:none;margin:0}.uni-input-input[type=number]{-moz-appearance:textfield}.uni-input-input:disabled{-webkit-text-fill-color:currentcolor}.uni-label-pointer{cursor:pointer}uni-live-pusher{width:320px;height:240px;display:inline-block;line-height:0;overflow:hidden;position:relative}uni-live-pusher[hidden]{display:none}.uni-live-pusher-container{width:100%;height:100%;position:absolute;top:0;left:0;overflow:hidden;background-color:#000}.uni-live-pusher-slot{position:absolute;top:0;width:100%;height:100%;overflow:hidden;pointer-events:none}uni-map{width:300px;height:225px;display:inline-block;line-height:0;overflow:hidden;position:relative}uni-map[hidden]{display:none}.uni-map-container{width:100%;height:100%;position:absolute;top:0;left:0;overflow:hidden;background-color:#000}.uni-map-slot{position:absolute;top:0;width:100%;height:100%;overflow:hidden;pointer-events:none}uni-movable-area{display:block;position:relative;width:10px;height:10px}uni-movable-area[hidden]{display:none}uni-movable-view{display:inline-block;width:10px;height:10px;top:0px;left:0px;position:absolute;cursor:grab}uni-movable-view[hidden]{display:none}uni-navigator{height:auto;width:auto;display:block;cursor:pointer}uni-navigator[hidden]{display:none}.navigator-hover{background-color:rgba(0,0,0,.1);opacity:.7}.navigator-wrap,.navigator-wrap:link,.navigator-wrap:visited,.navigator-wrap:hover,.navigator-wrap:active{text-decoration:none;color:inherit;cursor:pointer}uni-picker-view{display:block}.uni-picker-view-wrapper{display:flex;position:relative;overflow:hidden;height:100%}uni-picker-view[hidden]{display:none}uni-picker-view-column{flex:1;position:relative;height:100%;overflow:hidden}uni-picker-view-column[hidden]{display:none}.uni-picker-view-group{height:100%;overflow:hidden}.uni-picker-view-mask{transform:translateZ(0)}.uni-picker-view-indicator,.uni-picker-view-mask{position:absolute;left:0;width:100%;z-index:3;pointer-events:none}.uni-picker-view-mask{top:0;height:100%;margin:0 auto;background:linear-gradient(180deg,hsla(0,0%,100%,.95),hsla(0,0%,100%,.6)),linear-gradient(0deg,hsla(0,0%,100%,.95),hsla(0,0%,100%,.6));background-position:top,bottom;background-size:100% 102px;background-repeat:no-repeat}.uni-picker-view-indicator{height:34px;top:50%;transform:translateY(-50%)}.uni-picker-view-content{position:absolute;top:0;left:0;width:100%;will-change:transform;padding:102px 0;cursor:pointer}.uni-picker-view-content>*{height:34px;overflow:hidden}.uni-picker-view-indicator:before{top:0;border-top:1px solid #e5e5e5;transform-origin:0 0;transform:scaleY(.5)}.uni-picker-view-indicator:after{bottom:0;border-bottom:1px solid #e5e5e5;transform-origin:0 100%;transform:scaleY(.5)}.uni-picker-view-indicator:after,.uni-picker-view-indicator:before{content:" ";position:absolute;left:0;right:0;height:1px;color:#e5e5e5}uni-progress{display:flex;align-items:center}uni-progress[hidden]{display:none}.uni-progress-bar{flex:1}.uni-progress-inner-bar{width:0;height:100%}.uni-progress-info{margin-top:0;margin-bottom:0;min-width:2em;margin-left:15px;font-size:16px}uni-radio{-webkit-tap-highlight-color:transparent;display:inline-block;cursor:pointer}uni-radio[hidden]{display:none}uni-radio[disabled]{cursor:not-allowed}.uni-radio-wrapper{display:inline-flex;align-items:center;vertical-align:middle}.uni-radio-input{-webkit-appearance:none;appearance:none;margin-right:5px;outline:0;border:1px solid #d1d1d1;background-color:#fff;border-radius:50%;width:22px;height:22px;position:relative}uni-radio:not([disabled]) .uni-radio-input:hover{border-color:#007aff}.uni-radio-input svg{color:#fff;font-size:18px;position:absolute;top:50%;left:50%;transform:translate(-50%,-48%) scale(.73)}.uni-radio-input.uni-radio-input-disabled{background-color:#e1e1e1;border-color:#d1d1d1}.uni-radio-input.uni-radio-input-disabled:before{color:#adadad}uni-radio-group{display:block}uni-radio-group[hidden]{display:none}uni-scroll-view{display:block;width:100%}uni-scroll-view[hidden]{display:none}.uni-scroll-view{position:relative;-webkit-overflow-scrolling:touch;width:100%;height:100%;max-height:inherit}.uni-scroll-view-content{width:100%;height:100%}.uni-scroll-view-refresher{position:relative;overflow:hidden}.uni-scroll-view-refresh{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:row;justify-content:center;align-items:center}.uni-scroll-view-refresh-inner{display:flex;align-items:center;justify-content:center;line-height:0;width:40px;height:40px;border-radius:50%;background-color:#fff;box-shadow:0 1px 6px rgba(0,0,0,.118),0 1px 4px rgba(0,0,0,.118)}.uni-scroll-view-refresh__spinner{transform-origin:center center;animation:uni-scroll-view-refresh-rotate 2s linear infinite}.uni-scroll-view-refresh__spinner>circle{stroke:currentColor;stroke-linecap:round;animation:uni-scroll-view-refresh-dash 2s linear infinite}@keyframes uni-scroll-view-refresh-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes uni-scroll-view-refresh-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}uni-slider{margin:10px 18px;padding:0;display:block}uni-slider[hidden]{display:none}uni-slider .uni-slider-wrapper{display:flex;align-items:center;min-height:16px}uni-slider .uni-slider-tap-area{flex:1;padding:8px 0}uni-slider .uni-slider-handle-wrapper{position:relative;height:2px;border-radius:5px;background-color:#e9e9e9;cursor:pointer;transition:background-color .3s ease;-webkit-tap-highlight-color:transparent}uni-slider .uni-slider-track{height:100%;border-radius:6px;background-color:#007aff;transition:background-color .3s ease}uni-slider .uni-slider-handle,uni-slider .uni-slider-thumb{position:absolute;left:50%;top:50%;cursor:pointer;border-radius:50%;transition:border-color .3s ease}uni-slider .uni-slider-handle{width:28px;height:28px;margin-top:-14px;margin-left:-14px;background-color:transparent;z-index:3;cursor:grab}uni-slider .uni-slider-thumb{z-index:2;box-shadow:0 0 4px rgba(0,0,0,.2)}uni-slider .uni-slider-step{position:absolute;width:100%;height:2px;background:transparent;z-index:1}uni-slider .uni-slider-value{width:3ch;color:#888;font-size:14px;margin-left:1em}uni-slider .uni-slider-disabled .uni-slider-track{background-color:#ccc}uni-slider .uni-slider-disabled .uni-slider-thumb{background-color:#fff;border-color:#ccc}uni-swiper{display:block;height:150px}uni-swiper[hidden]{display:none}.uni-swiper-wrapper{overflow:hidden;position:relative;width:100%;height:100%;transform:translateZ(0)}.uni-swiper-slides{position:absolute;left:0;top:0;right:0;bottom:0}.uni-swiper-slide-frame{position:absolute;left:0;top:0;width:100%;height:100%;will-change:transform}.uni-swiper-dots{position:absolute;font-size:0}.uni-swiper-dots-horizontal{left:50%;bottom:10px;text-align:center;white-space:nowrap;transform:translate(-50%)}.uni-swiper-dots-horizontal .uni-swiper-dot{margin-right:8px}.uni-swiper-dots-horizontal .uni-swiper-dot:last-child{margin-right:0}.uni-swiper-dots-vertical{right:10px;top:50%;text-align:right;transform:translateY(-50%)}.uni-swiper-dots-vertical .uni-swiper-dot{display:block;margin-bottom:9px}.uni-swiper-dots-vertical .uni-swiper-dot:last-child{margin-bottom:0}.uni-swiper-dot{display:inline-block;width:8px;height:8px;cursor:pointer;transition-property:background-color;transition-timing-function:ease;background:rgba(0,0,0,.3);border-radius:50%}.uni-swiper-dot-active{background-color:#000}uni-swiper-item{display:block;overflow:hidden;will-change:transform;position:absolute;width:100%;height:100%;cursor:grab}uni-swiper-item[hidden]{display:none}uni-switch{-webkit-tap-highlight-color:transparent;display:inline-block;cursor:pointer}uni-switch[hidden]{display:none}uni-switch[disabled]{cursor:not-allowed}.uni-switch-wrapper{display:inline-flex;align-items:center;vertical-align:middle}.uni-switch-input{-webkit-appearance:none;appearance:none;position:relative;width:52px;height:32px;margin-right:5px;border:1px solid #dfdfdf;outline:0;border-radius:16px;box-sizing:border-box;background-color:#dfdfdf;transition:background-color .1s,border .1s}uni-switch[disabled] .uni-switch-input{opacity:.7}.uni-switch-input:before{content:" ";position:absolute;top:0;left:0;width:50px;height:30px;border-radius:15px;background-color:#fdfdfd;transition:transform .3s}.uni-switch-input:after{content:" ";position:absolute;top:0;left:0;width:30px;height:30px;border-radius:15px;background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.4);transition:transform .3s}.uni-switch-input.uni-switch-input-checked{border-color:#007aff;background-color:#007aff}.uni-switch-input.uni-switch-input-checked:before{transform:scale(0)}.uni-switch-input.uni-switch-input-checked:after{transform:translate(20px)}uni-switch .uni-checkbox-input{margin-right:5px;-webkit-appearance:none;appearance:none;outline:0;border:1px solid #d1d1d1;background-color:#fff;border-radius:3px;width:22px;height:22px;position:relative;color:#007aff}uni-switch:not([disabled]) .uni-checkbox-input:hover{border-color:#007aff}uni-switch .uni-checkbox-input svg{color:inherit;font-size:22px;position:absolute;top:50%;left:50%;transform:translate(-50%,-48%) scale(.73)}.uni-checkbox-input.uni-checkbox-input-disabled{background-color:#e1e1e1}.uni-checkbox-input.uni-checkbox-input-disabled:before{color:#adadad}uni-textarea{width:300px;height:150px;display:block;position:relative;font-size:16px;line-height:normal;white-space:pre-wrap;word-break:break-all;box-sizing:content-box!important}uni-textarea[hidden]{display:none}.uni-textarea-wrapper,.uni-textarea-placeholder,.uni-textarea-line,.uni-textarea-compute,.uni-textarea-textarea{outline:none;border:none;padding:0;margin:0;text-decoration:inherit}.uni-textarea-wrapper{display:block;position:relative;width:100%;height:100%;min-height:inherit}.uni-textarea-placeholder,.uni-textarea-line,.uni-textarea-compute,.uni-textarea-textarea{position:absolute;width:100%;height:100%;left:0;top:0;white-space:inherit;word-break:inherit}.uni-textarea-placeholder{color:gray;overflow:hidden}.uni-textarea-line,.uni-textarea-compute{visibility:hidden;height:auto}.uni-textarea-line{width:1em}.uni-textarea-textarea{resize:none;background:none;color:inherit;opacity:1;font:inherit;line-height:inherit;letter-spacing:inherit;text-align:inherit;text-indent:inherit;text-transform:inherit;text-shadow:inherit}.uni-textarea-textarea-fix-margin{width:auto;right:0;margin:0 -3px}.uni-textarea-textarea:disabled{-webkit-text-fill-color:currentcolor}uni-video{width:300px;height:225px;display:inline-block;line-height:0;overflow:hidden;position:relative}uni-video[hidden]{display:none}.uni-video-container{width:100%;height:100%;position:absolute;top:0;left:0;overflow:hidden;background-color:#000}.uni-video-slot{position:absolute;top:0;width:100%;height:100%;overflow:hidden;pointer-events:none}uni-web-view{display:inline-block;position:absolute;left:0;right:0;top:0;bottom:0} diff --git a/packages/uni-app-plus/dist/uni-app-view.umd.js b/packages/uni-app-plus/dist/uni-app-view.umd.js index 9c0f53a3b512a04460e5ecc0dfa0f5e0018b83e2..ff1c99e692a2f1bd17915658bf6ce45d06b9e4dd 100644 --- a/packages/uni-app-plus/dist/uni-app-view.umd.js +++ b/packages/uni-app-plus/dist/uni-app-view.umd.js @@ -1,23417 +1,3 @@ -(function(factory) { - typeof define === "function" && define.amd ? define(factory) : factory(); -})(function() { - "use strict"; - var base = ""; - var nvue = ""; - var resizeSensor = ""; - var _wks = { exports: {} }; - var _shared = { exports: {} }; - var _core = { exports: {} }; - var core$2 = _core.exports = { - version: "2.6.12" - }; - if (typeof __e == "number") - __e = core$2; - var _global = { exports: {} }; - _global.exports = typeof window != "undefined" && window.Math == Math ? window : typeof self != "undefined" && self.Math == Math ? self : Function("return this")(); - if (typeof __g == "number") - __g = window; - var core$1 = _core.exports; - var SHARED = "__core-js_shared__"; - var store$1 = window[SHARED] || (window[SHARED] = {}); - (_shared.exports = function(key2, value) { - return store$1[key2] || (store$1[key2] = value !== void 0 ? value : {}); - })("versions", []).push({ - version: core$1.version, - mode: "window", - copyright: "\xA9 2020 Denis Pushkarev (zloirock.ru)" - }); - var id$1 = 0; - var px = Math.random(); - var _uid = function(key2) { - return "Symbol(".concat(key2 === void 0 ? "" : key2, ")_", (++id$1 + px).toString(36)); - }; - var store = _shared.exports("wks"); - var uid$3 = _uid; - var Symbol$1 = _global.exports.Symbol; - var USE_SYMBOL = typeof Symbol$1 == "function"; - var $exports = _wks.exports = function(name) { - return store[name] || (store[name] = USE_SYMBOL && Symbol$1[name] || (USE_SYMBOL ? Symbol$1 : uid$3)("Symbol." + name)); - }; - $exports.store = store; - var _objectDp = {}; - var _isObject = function(it) { - return typeof it === "object" ? it !== null : typeof it === "function"; - }; - var isObject$4 = _isObject; - var _anObject = function(it) { - if (!isObject$4(it)) - throw TypeError(it + " is not an object!"); - return it; - }; - var _fails = function(exec) { - try { - return !!exec(); - } catch (e2) { - return true; - } - }; - var _descriptors = !_fails(function() { - return Object.defineProperty({}, "a", { - get: function() { - return 7; - } - }).a != 7; - }); - var isObject$3 = _isObject; - var document$2 = _global.exports.document; - var is = isObject$3(document$2) && isObject$3(document$2.createElement); - var _domCreate = function(it) { - return is ? document$2.createElement(it) : {}; - }; - var _ie8DomDefine = !_descriptors && !_fails(function() { - return Object.defineProperty(_domCreate("div"), "a", { - get: function() { - return 7; - } - }).a != 7; - }); - var isObject$2 = _isObject; - var _toPrimitive = function(it, S) { - if (!isObject$2(it)) - return it; - var fn, val; - if (S && typeof (fn = it.toString) == "function" && !isObject$2(val = fn.call(it))) - return val; - if (typeof (fn = it.valueOf) == "function" && !isObject$2(val = fn.call(it))) - return val; - if (!S && typeof (fn = it.toString) == "function" && !isObject$2(val = fn.call(it))) - return val; - throw TypeError("Can't convert object to primitive value"); - }; - var anObject$2 = _anObject; - var IE8_DOM_DEFINE = _ie8DomDefine; - var toPrimitive = _toPrimitive; - var dP$2 = Object.defineProperty; - _objectDp.f = _descriptors ? Object.defineProperty : function defineProperty(O, P, Attributes) { - anObject$2(O); - P = toPrimitive(P, true); - anObject$2(Attributes); - if (IE8_DOM_DEFINE) - try { - return dP$2(O, P, Attributes); - } catch (e2) { - } - if ("get" in Attributes || "set" in Attributes) - throw TypeError("Accessors not supported!"); - if ("value" in Attributes) - O[P] = Attributes.value; - return O; - }; - var _propertyDesc = function(bitmap, value) { - return { - enumerable: !(bitmap & 1), - configurable: !(bitmap & 2), - writable: !(bitmap & 4), - value - }; - }; - var dP$1 = _objectDp; - var createDesc = _propertyDesc; - var _hide = _descriptors ? function(object, key2, value) { - return dP$1.f(object, key2, createDesc(1, value)); - } : function(object, key2, value) { - object[key2] = value; - return object; - }; - var UNSCOPABLES = _wks.exports("unscopables"); - var ArrayProto = Array.prototype; - if (ArrayProto[UNSCOPABLES] == void 0) - _hide(ArrayProto, UNSCOPABLES, {}); - var _addToUnscopables = function(key2) { - ArrayProto[UNSCOPABLES][key2] = true; - }; - var _iterStep = function(done, value) { - return { - value, - done: !!done - }; - }; - var _iterators = {}; - var toString$2 = {}.toString; - var _cof = function(it) { - return toString$2.call(it).slice(8, -1); - }; - var cof = _cof; - var _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) { - return cof(it) == "String" ? it.split("") : Object(it); - }; - var _defined = function(it) { - if (it == void 0) - throw TypeError("Can't call method on " + it); - return it; - }; - var IObject = _iobject; - var defined$1 = _defined; - var _toIobject = function(it) { - return IObject(defined$1(it)); - }; - var _redefine = { exports: {} }; - var hasOwnProperty$2 = {}.hasOwnProperty; - var _has = function(it, key2) { - return hasOwnProperty$2.call(it, key2); - }; - var _functionToString = _shared.exports("native-function-to-string", Function.toString); - var hide$3 = _hide; - var has$5 = _has; - var SRC = _uid("src"); - var $toString = _functionToString; - var TO_STRING = "toString"; - var TPL = ("" + $toString).split(TO_STRING); - _core.exports.inspectSource = function(it) { - return $toString.call(it); - }; - (_redefine.exports = function(O, key2, val, safe) { - var isFunction2 = typeof val == "function"; - if (isFunction2) - has$5(val, "name") || hide$3(val, "name", key2); - if (O[key2] === val) - return; - if (isFunction2) - has$5(val, SRC) || hide$3(val, SRC, O[key2] ? "" + O[key2] : TPL.join(String(key2))); - if (O === window) { - O[key2] = val; - } else if (!safe) { - delete O[key2]; - hide$3(O, key2, val); - } else if (O[key2]) { - O[key2] = val; - } else { - hide$3(O, key2, val); - } - })(Function.prototype, TO_STRING, function toString2() { - return typeof this == "function" && this[SRC] || $toString.call(this); - }); - var _aFunction = function(it) { - if (typeof it != "function") - throw TypeError(it + " is not a function!"); - return it; - }; - var aFunction$1 = _aFunction; - var _ctx = function(fn, that, length) { - aFunction$1(fn); - if (that === void 0) - return fn; - switch (length) { - case 1: - return function(a2) { - return fn.call(that, a2); - }; - case 2: - return function(a2, b) { - return fn.call(that, a2, b); - }; - case 3: - return function(a2, b, c2) { - return fn.call(that, a2, b, c2); - }; - } - return function() { - return fn.apply(that, arguments); - }; - }; - var core = _core.exports; - var hide$2 = _hide; - var redefine$2 = _redefine.exports; - var ctx = _ctx; - var PROTOTYPE$1 = "prototype"; - var $export$3 = function(type, name, source) { - var IS_FORCED = type & $export$3.F; - var IS_GLOBAL = type & $export$3.G; - var IS_STATIC = type & $export$3.S; - var IS_PROTO = type & $export$3.P; - var IS_BIND = type & $export$3.B; - var target = IS_GLOBAL ? window : IS_STATIC ? window[name] || (window[name] = {}) : (window[name] || {})[PROTOTYPE$1]; - var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); - var expProto = exports[PROTOTYPE$1] || (exports[PROTOTYPE$1] = {}); - var key2, own, out2, exp; - if (IS_GLOBAL) - source = name; - for (key2 in source) { - own = !IS_FORCED && target && target[key2] !== void 0; - out2 = (own ? target : source)[key2]; - exp = IS_BIND && own ? ctx(out2, window) : IS_PROTO && typeof out2 == "function" ? ctx(Function.call, out2) : out2; - if (target) - redefine$2(target, key2, out2, type & $export$3.U); - if (exports[key2] != out2) - hide$2(exports, key2, exp); - if (IS_PROTO && expProto[key2] != out2) - expProto[key2] = out2; - } - }; - window.core = core; - $export$3.F = 1; - $export$3.G = 2; - $export$3.S = 4; - $export$3.P = 8; - $export$3.B = 16; - $export$3.W = 32; - $export$3.U = 64; - $export$3.R = 128; - var _export = $export$3; - var ceil = Math.ceil; - var floor = Math.floor; - var _toInteger = function(it) { - return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); - }; - var toInteger$1 = _toInteger; - var min$1 = Math.min; - var _toLength = function(it) { - return it > 0 ? min$1(toInteger$1(it), 9007199254740991) : 0; - }; - var toInteger = _toInteger; - var max = Math.max; - var min = Math.min; - var _toAbsoluteIndex = function(index2, length) { - index2 = toInteger(index2); - return index2 < 0 ? max(index2 + length, 0) : min(index2, length); - }; - var toIObject$3 = _toIobject; - var toLength = _toLength; - var toAbsoluteIndex = _toAbsoluteIndex; - var _arrayIncludes = function(IS_INCLUDES) { - return function($this, el, fromIndex) { - var O = toIObject$3($this); - var length = toLength(O.length); - var index2 = toAbsoluteIndex(fromIndex, length); - var value; - if (IS_INCLUDES && el != el) - while (length > index2) { - value = O[index2++]; - if (value != value) - return true; - } - else - for (; length > index2; index2++) { - if (IS_INCLUDES || index2 in O) { - if (O[index2] === el) - return IS_INCLUDES || index2 || 0; - } - } - return !IS_INCLUDES && -1; - }; - }; - var shared = _shared.exports("keys"); - var uid$2 = _uid; - var _sharedKey = function(key2) { - return shared[key2] || (shared[key2] = uid$2(key2)); - }; - var has$4 = _has; - var toIObject$2 = _toIobject; - var arrayIndexOf = _arrayIncludes(false); - var IE_PROTO$2 = _sharedKey("IE_PROTO"); - var _objectKeysInternal = function(object, names) { - var O = toIObject$2(object); - var i2 = 0; - var result = []; - var key2; - for (key2 in O) { - if (key2 != IE_PROTO$2) - has$4(O, key2) && result.push(key2); - } - while (names.length > i2) { - if (has$4(O, key2 = names[i2++])) { - ~arrayIndexOf(result, key2) || result.push(key2); - } - } - return result; - }; - var _enumBugKeys = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","); - var $keys = _objectKeysInternal; - var enumBugKeys$1 = _enumBugKeys; - var _objectKeys = Object.keys || function keys(O) { - return $keys(O, enumBugKeys$1); - }; - var dP = _objectDp; - var anObject$1 = _anObject; - var getKeys$2 = _objectKeys; - var _objectDps = _descriptors ? Object.defineProperties : function defineProperties(O, Properties) { - anObject$1(O); - var keys = getKeys$2(Properties); - var length = keys.length; - var i2 = 0; - var P; - while (length > i2) { - dP.f(O, P = keys[i2++], Properties[P]); - } - return O; - }; - var document$1 = _global.exports.document; - var _html = document$1 && document$1.documentElement; - var anObject = _anObject; - var dPs = _objectDps; - var enumBugKeys = _enumBugKeys; - var IE_PROTO$1 = _sharedKey("IE_PROTO"); - var Empty = function() { - }; - var PROTOTYPE = "prototype"; - var createDict = function() { - var iframe = _domCreate("iframe"); - var i2 = enumBugKeys.length; - var lt = "<"; - var gt = ">"; - var iframeDocument; - iframe.style.display = "none"; - _html.appendChild(iframe); - iframe.src = "javascript:"; - iframeDocument = iframe.contentWindow.document; - iframeDocument.open(); - iframeDocument.write(lt + "script" + gt + "document.F=Object" + lt + "/script" + gt); - iframeDocument.close(); - createDict = iframeDocument.F; - while (i2--) { - delete createDict[PROTOTYPE][enumBugKeys[i2]]; - } - return createDict(); - }; - var _objectCreate = Object.create || function create2(O, Properties) { - var result; - if (O !== null) { - Empty[PROTOTYPE] = anObject(O); - result = new Empty(); - Empty[PROTOTYPE] = null; - result[IE_PROTO$1] = O; - } else - result = createDict(); - return Properties === void 0 ? result : dPs(result, Properties); - }; - var def$1 = _objectDp.f; - var has$3 = _has; - var TAG = _wks.exports("toStringTag"); - var _setToStringTag = function(it, tag, stat) { - if (it && !has$3(it = stat ? it : it.prototype, TAG)) - def$1(it, TAG, { - configurable: true, - value: tag - }); - }; - var create = _objectCreate; - var descriptor = _propertyDesc; - var setToStringTag$1 = _setToStringTag; - var IteratorPrototype = {}; - _hide(IteratorPrototype, _wks.exports("iterator"), function() { - return this; - }); - var _iterCreate = function(Constructor, NAME2, next) { - Constructor.prototype = create(IteratorPrototype, { - next: descriptor(1, next) - }); - setToStringTag$1(Constructor, NAME2 + " Iterator"); - }; - var defined = _defined; - var _toObject = function(it) { - return Object(defined(it)); - }; - var has$2 = _has; - var toObject$1 = _toObject; - var IE_PROTO = _sharedKey("IE_PROTO"); - var ObjectProto = Object.prototype; - var _objectGpo = Object.getPrototypeOf || function(O) { - O = toObject$1(O); - if (has$2(O, IE_PROTO)) - return O[IE_PROTO]; - if (typeof O.constructor == "function" && O instanceof O.constructor) { - return O.constructor.prototype; - } - return O instanceof Object ? ObjectProto : null; - }; - var $export$2 = _export; - var redefine$1 = _redefine.exports; - var hide$1 = _hide; - var Iterators$2 = _iterators; - var $iterCreate = _iterCreate; - var setToStringTag = _setToStringTag; - var getPrototypeOf = _objectGpo; - var ITERATOR$1 = _wks.exports("iterator"); - var BUGGY = !([].keys && "next" in [].keys()); - var FF_ITERATOR = "@@iterator"; - var KEYS = "keys"; - var VALUES = "values"; - var returnThis = function() { - return this; - }; - var _iterDefine = function(Base, NAME2, Constructor, next, DEFAULT, IS_SET, FORCED) { - $iterCreate(Constructor, NAME2, next); - var getMethod = function(kind) { - if (!BUGGY && kind in proto2) - return proto2[kind]; - switch (kind) { - case KEYS: - return function keys() { - return new Constructor(this, kind); - }; - case VALUES: - return function values() { - return new Constructor(this, kind); - }; - } - return function entries2() { - return new Constructor(this, kind); - }; - }; - var TAG2 = NAME2 + " Iterator"; - var DEF_VALUES = DEFAULT == VALUES; - var VALUES_BUG = false; - var proto2 = Base.prototype; - var $native = proto2[ITERATOR$1] || proto2[FF_ITERATOR] || DEFAULT && proto2[DEFAULT]; - var $default = $native || getMethod(DEFAULT); - var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod("entries") : void 0; - var $anyNative = NAME2 == "Array" ? proto2.entries || $native : $native; - var methods2, key2, IteratorPrototype2; - if ($anyNative) { - IteratorPrototype2 = getPrototypeOf($anyNative.call(new Base())); - if (IteratorPrototype2 !== Object.prototype && IteratorPrototype2.next) { - setToStringTag(IteratorPrototype2, TAG2, true); - if (typeof IteratorPrototype2[ITERATOR$1] != "function") - hide$1(IteratorPrototype2, ITERATOR$1, returnThis); - } - } - if (DEF_VALUES && $native && $native.name !== VALUES) { - VALUES_BUG = true; - $default = function values() { - return $native.call(this); - }; - } - if (BUGGY || VALUES_BUG || !proto2[ITERATOR$1]) { - hide$1(proto2, ITERATOR$1, $default); - } - Iterators$2[NAME2] = $default; - Iterators$2[TAG2] = returnThis; - if (DEFAULT) { - methods2 = { - values: DEF_VALUES ? $default : getMethod(VALUES), - keys: IS_SET ? $default : getMethod(KEYS), - entries: $entries - }; - if (FORCED) - for (key2 in methods2) { - if (!(key2 in proto2)) - redefine$1(proto2, key2, methods2[key2]); - } - else - $export$2($export$2.P + $export$2.F * (BUGGY || VALUES_BUG), NAME2, methods2); - } - return methods2; - }; - var addToUnscopables = _addToUnscopables; - var step = _iterStep; - var Iterators$1 = _iterators; - var toIObject$1 = _toIobject; - var es6_array_iterator = _iterDefine(Array, "Array", function(iterated, kind) { - this._t = toIObject$1(iterated); - this._i = 0; - this._k = kind; - }, function() { - var O = this._t; - var kind = this._k; - var index2 = this._i++; - if (!O || index2 >= O.length) { - this._t = void 0; - return step(1); - } - if (kind == "keys") - return step(0, index2); - if (kind == "values") - return step(0, O[index2]); - return step(0, [index2, O[index2]]); - }, "values"); - Iterators$1.Arguments = Iterators$1.Array; - addToUnscopables("keys"); - addToUnscopables("values"); - addToUnscopables("entries"); - var $iterators = es6_array_iterator; - var getKeys$1 = _objectKeys; - var redefine = _redefine.exports; - var hide = _hide; - var Iterators = _iterators; - var wks = _wks.exports; - var ITERATOR = wks("iterator"); - var TO_STRING_TAG = wks("toStringTag"); - var ArrayValues = Iterators.Array; - var DOMIterables = { - CSSRuleList: true, - CSSStyleDeclaration: false, - CSSValueList: false, - ClientRectList: false, - DOMRectList: false, - DOMStringList: false, - DOMTokenList: true, - DataTransferItemList: false, - FileList: false, - HTMLAllCollection: false, - HTMLCollection: false, - HTMLFormElement: false, - HTMLSelectElement: false, - MediaList: true, - MimeTypeArray: false, - NamedNodeMap: false, - NodeList: true, - PaintRequestList: false, - Plugin: false, - PluginArray: false, - SVGLengthList: false, - SVGNumberList: false, - SVGPathSegList: false, - SVGPointList: false, - SVGStringList: false, - SVGTransformList: false, - SourceBufferList: false, - StyleSheetList: true, - TextTrackCueList: false, - TextTrackList: false, - TouchList: false - }; - for (var collections = getKeys$1(DOMIterables), i = 0; i < collections.length; i++) { - var NAME$1 = collections[i]; - var explicit = DOMIterables[NAME$1]; - var Collection = window[NAME$1]; - var proto = Collection && Collection.prototype; - var key; - if (proto) { - if (!proto[ITERATOR]) - hide(proto, ITERATOR, ArrayValues); - if (!proto[TO_STRING_TAG]) - hide(proto, TO_STRING_TAG, NAME$1); - Iterators[NAME$1] = ArrayValues; - if (explicit) - for (key in $iterators) { - if (!proto[key]) - redefine(proto, key, $iterators[key], true); - } - } - } - function makeMap$1(str, expectsLowerCase) { - var map2 = /* @__PURE__ */ Object.create(null); - var list2 = str.split(","); - for (var i2 = 0; i2 < list2.length; i2++) { - map2[list2[i2]] = true; - } - return expectsLowerCase ? (val) => !!map2[val.toLowerCase()] : (val) => !!map2[val]; - } - var specialBooleanAttrs = "itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly"; - var isSpecialBooleanAttr = /* @__PURE__ */ makeMap$1(specialBooleanAttrs); - function includeBooleanAttr(value) { - return !!value || value === ""; - } - var isNoUnitNumericStyleProp = /* @__PURE__ */ makeMap$1("animation-iteration-count,border-image-outset,border-image-slice,border-image-width,box-flex,box-flex-group,box-ordinal-group,column-count,columns,flex,flex-grow,flex-positive,flex-shrink,flex-negative,flex-order,grid-row,grid-row-end,grid-row-span,grid-row-start,grid-column,grid-column-end,grid-column-span,grid-column-start,font-weight,line-clamp,line-height,opacity,order,orphans,tab-size,widows,z-index,zoom,fill-opacity,flood-opacity,stop-opacity,stroke-dasharray,stroke-dashoffset,stroke-miterlimit,stroke-opacity,stroke-width"); - function normalizeStyle(value) { - if (isArray$1(value)) { - var res = {}; - for (var i2 = 0; i2 < value.length; i2++) { - var item = value[i2]; - var normalized = isString(item) ? parseStringStyle(item) : normalizeStyle(item); - if (normalized) { - for (var key2 in normalized) { - res[key2] = normalized[key2]; - } - } - } - return res; - } else if (isString(value)) { - return value; - } else if (isObject$1(value)) { - return value; - } - } - var listDelimiterRE = /;(?![^(]*\))/g; - var propertyDelimiterRE = /:(.+)/; - function parseStringStyle(cssText) { - var ret = {}; - cssText.split(listDelimiterRE).forEach((item) => { - if (item) { - var tmp = item.split(propertyDelimiterRE); - tmp.length > 1 && (ret[tmp[0].trim()] = tmp[1].trim()); - } - }); - return ret; - } - function stringifyStyle(styles) { - var ret = ""; - if (!styles || isString(styles)) { - return ret; - } - for (var key2 in styles) { - var value = styles[key2]; - var normalizedKey = key2.startsWith("--") ? key2 : hyphenate(key2); - if (isString(value) || typeof value === "number" && isNoUnitNumericStyleProp(normalizedKey)) { - ret += "".concat(normalizedKey, ":").concat(value, ";"); - } - } - return ret; - } - function normalizeClass(value) { - var res = ""; - if (isString(value)) { - res = value; - } else if (isArray$1(value)) { - for (var i2 = 0; i2 < value.length; i2++) { - var normalized = normalizeClass(value[i2]); - if (normalized) { - res += normalized + " "; - } - } - } else if (isObject$1(value)) { - for (var name in value) { - if (value[name]) { - res += name + " "; - } - } - } - return res.trim(); - } - var EMPTY_OBJ = {}; - var EMPTY_ARR = []; - var NOOP = () => { - }; - var NO = () => false; - var onRE = /^on[^a-z]/; - var isOn = (key2) => onRE.test(key2); - var isModelListener = (key2) => key2.startsWith("onUpdate:"); - var extend = Object.assign; - var remove = (arr, el) => { - var i2 = arr.indexOf(el); - if (i2 > -1) { - arr.splice(i2, 1); - } - }; - var hasOwnProperty$1 = Object.prototype.hasOwnProperty; - var hasOwn$1 = (val, key2) => hasOwnProperty$1.call(val, key2); - var isArray$1 = Array.isArray; - var isMap = (val) => toTypeString(val) === "[object Map]"; - var isSet = (val) => toTypeString(val) === "[object Set]"; - var isFunction = (val) => typeof val === "function"; - var isString = (val) => typeof val === "string"; - var isSymbol = (val) => typeof val === "symbol"; - var isObject$1 = (val) => val !== null && typeof val === "object"; - var isPromise = (val) => { - return isObject$1(val) && isFunction(val.then) && isFunction(val.catch); - }; - var objectToString = Object.prototype.toString; - var toTypeString = (value) => objectToString.call(value); - var toRawType = (value) => { - return toTypeString(value).slice(8, -1); - }; - var isPlainObject = (val) => toTypeString(val) === "[object Object]"; - var isIntegerKey = (key2) => isString(key2) && key2 !== "NaN" && key2[0] !== "-" && "" + parseInt(key2, 10) === key2; - var isReservedProp = /* @__PURE__ */ makeMap$1(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"); - var cacheStringFunction$1 = (fn) => { - var cache2 = /* @__PURE__ */ Object.create(null); - return (str) => { - var hit = cache2[str]; - return hit || (cache2[str] = fn(str)); - }; - }; - var camelizeRE = /-(\w)/g; - var camelize = cacheStringFunction$1((str) => { - return str.replace(camelizeRE, (_, c2) => c2 ? c2.toUpperCase() : ""); - }); - var hyphenateRE = /\B([A-Z])/g; - var hyphenate = cacheStringFunction$1((str) => str.replace(hyphenateRE, "-$1").toLowerCase()); - var capitalize = cacheStringFunction$1((str) => str.charAt(0).toUpperCase() + str.slice(1)); - var toHandlerKey = cacheStringFunction$1((str) => str ? "on".concat(capitalize(str)) : ""); - var hasChanged = (value, oldValue) => !Object.is(value, oldValue); - var invokeArrayFns = (fns, arg) => { - for (var i2 = 0; i2 < fns.length; i2++) { - fns[i2](arg); - } - }; - var def = (obj, key2, value) => { - Object.defineProperty(obj, key2, { - configurable: true, - enumerable: false, - value - }); - }; - var toNumber = (val) => { - var n = parseFloat(val); - return isNaN(n) ? val : n; - }; - var _globalThis; - var getGlobalThis = () => { - return _globalThis || (_globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof window !== "undefined" ? window : {}); - }; - var LINEFEED = "\n"; - var NAVBAR_HEIGHT = 44; - var PRIMARY_COLOR = "#007aff"; - var SCHEME_RE = /^([a-z-]+:)?\/\//i; - var DATA_RE = /^data:.*,.*/; - var WXS_PROTOCOL = "wxs://"; - var JSON_PROTOCOL = "json://"; - var WXS_MODULES = "wxsModules"; - var RENDERJS_MODULES = "renderjsModules"; - var ON_PAGE_SCROLL = "onPageScroll"; - var ON_REACH_BOTTOM = "onReachBottom"; - var ON_WXS_INVOKE_CALL_METHOD = "onWxsInvokeCallMethod"; - var lastLogTime = 0; - function formatLog(module) { - var now = Date.now(); - var diff = lastLogTime ? now - lastLogTime : 0; - lastLogTime = now; - for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; - } - return "[".concat(now, "][").concat(diff, "ms][").concat(module, "]\uFF1A").concat(args.map((arg) => JSON.stringify(arg)).join(" ")); - } - function cache(fn) { - var cache2 = /* @__PURE__ */ Object.create(null); - return (str) => { - var hit = cache2[str]; - return hit || (cache2[str] = fn(str)); - }; - } - function cacheStringFunction(fn) { - return cache(fn); - } - function hasLeadingSlash(str) { - return str.indexOf("/") === 0; - } - function addLeadingSlash(str) { - return hasLeadingSlash(str) ? str : "/" + str; - } - function once(fn) { - var ctx2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null; - var res; - return function() { - if (fn) { - for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - args[_key2] = arguments[_key2]; - } - res = fn.apply(ctx2, args); - fn = null; - } - return res; - }; - } - function getValueByDataPath(obj, path) { - if (!isString(path)) { - return; - } - path = path.replace(/\[(\d+)\]/g, ".$1"); - var parts = path.split("."); - var key2 = parts[0]; - if (!obj) { - obj = {}; - } - if (parts.length === 1) { - return obj[key2]; - } - return getValueByDataPath(obj[key2], parts.slice(1).join(".")); - } - function formatKey(key2) { - return camelize(key2.substring(5)); - } - var initCustomDatasetOnce = /* @__PURE__ */ once(() => { - var prototype = HTMLElement.prototype; - var setAttribute = prototype.setAttribute; - prototype.setAttribute = function(key2, value) { - if (key2.startsWith("data-") && this.tagName.startsWith("UNI-")) { - var dataset = this.__uniDataset || (this.__uniDataset = {}); - dataset[formatKey(key2)] = value; - } - setAttribute.call(this, key2, value); - }; - var removeAttribute = prototype.removeAttribute; - prototype.removeAttribute = function(key2) { - if (this.__uniDataset && key2.startsWith("data-") && this.tagName.startsWith("UNI-")) { - delete this.__uniDataset[formatKey(key2)]; - } - removeAttribute.call(this, key2); - }; - }); - function getCustomDataset(el) { - return extend({}, el.dataset, el.__uniDataset); - } - function passive(passive2) { - return { - passive: passive2 - }; - } - function normalizeTarget(el) { - var { - id: id2, - offsetTop, - offsetLeft - } = el; - return { - id: id2, - dataset: getCustomDataset(el), - offsetTop, - offsetLeft - }; - } - function addFont(family, source, desc) { - var fonts = document.fonts; - if (fonts) { - var fontFace = new FontFace(family, source, desc); - return fontFace.load().then(() => { - fonts.add && fonts.add(fontFace); - }); - } - return new Promise((resolve) => { - var style = document.createElement("style"); - var values = []; - if (desc) { - var { - style: _style, - weight, - stretch, - unicodeRange, - variant, - featureSettings - } = desc; - _style && values.push("font-style:".concat(_style)); - weight && values.push("font-weight:".concat(weight)); - stretch && values.push("font-stretch:".concat(stretch)); - unicodeRange && values.push("unicode-range:".concat(unicodeRange)); - variant && values.push("font-variant:".concat(variant)); - featureSettings && values.push("font-feature-settings:".concat(featureSettings)); - } - style.innerText = '@font-face{font-family:"'.concat(family, '";src:').concat(source, ";").concat(values.join(";"), "}"); - document.head.appendChild(style); - resolve(); - }); - } - function scrollTo(scrollTop, duration) { - if (isString(scrollTop)) { - var el = document.querySelector(scrollTop); - if (el) { - scrollTop = el.getBoundingClientRect().top + window.pageYOffset; - } - } - if (scrollTop < 0) { - scrollTop = 0; - } - var documentElement = document.documentElement; - var { - clientHeight, - scrollHeight - } = documentElement; - scrollTop = Math.min(scrollTop, scrollHeight - clientHeight); - if (duration === 0) { - documentElement.scrollTop = document.body.scrollTop = scrollTop; - return; - } - if (window.scrollY === scrollTop) { - return; - } - var scrollTo2 = (duration2) => { - if (duration2 <= 0) { - window.scrollTo(0, scrollTop); - return; - } - var distaince = scrollTop - window.scrollY; - requestAnimationFrame(function() { - window.scrollTo(0, window.scrollY + distaince / duration2 * 10); - scrollTo2(duration2 - 10); - }); - }; - scrollTo2(duration); - } - function isDebugMode() { - return typeof __channelId__ === "string" && __channelId__; - } - function jsonStringifyReplacer(k, p2) { - switch (toRawType(p2)) { - case "Function": - return "function() { [native code] }"; - default: - return p2; - } - } - function normalizeLog(type, filename, args) { - if (isDebugMode()) { - args.push(filename.replace("at ", "uni-app:///")); - return console[type].apply(console, args); - } - var msgs = args.map(function(v2) { - var type2 = toTypeString(v2).toLowerCase(); - if (type2 === "[object object]" || type2 === "[object array]") { - try { - v2 = "---BEGIN:JSON---" + JSON.stringify(v2, jsonStringifyReplacer) + "---END:JSON---"; - } catch (e2) { - v2 = type2; - } - } else { - if (v2 === null) { - v2 = "---NULL---"; - } else if (v2 === void 0) { - v2 = "---UNDEFINED---"; - } else { - var vType = toRawType(v2).toUpperCase(); - if (vType === "NUMBER" || vType === "BOOLEAN") { - v2 = "---BEGIN:" + vType + "---" + v2 + "---END:" + vType + "---"; - } else { - v2 = String(v2); - } - } - } - return v2; - }); - return msgs.join("---COMMA---") + " " + filename; - } - function formatAppLog(type, filename) { - for (var _len3 = arguments.length, args = new Array(_len3 > 2 ? _len3 - 2 : 0), _key3 = 2; _key3 < _len3; _key3++) { - args[_key3 - 2] = arguments[_key3]; - } - var res = normalizeLog(type, filename, args); - res && console[type](res); - } - function plusReady(callback) { - if (typeof callback !== "function") { - return; - } - if (window.plus) { - return callback(); - } - document.addEventListener("plusready", callback); - } - function normalizeEventType(type, options) { - if (options) { - if (options.capture) { - type += "Capture"; - } - if (options.once) { - type += "Once"; - } - if (options.passive) { - type += "Passive"; - } - } - return "on".concat(capitalize(camelize(type))); - } - var optionsModifierRE$1 = /(?:Once|Passive|Capture)$/; - function parseEventName(name) { - var options; - if (optionsModifierRE$1.test(name)) { - options = {}; - var m; - while (m = name.match(optionsModifierRE$1)) { - name = name.slice(0, name.length - m[0].length); - options[m[0].toLowerCase()] = true; - } - } - return [hyphenate(name.slice(2)), options]; - } - var EventModifierFlags = /* @__PURE__ */ (() => { - return { - stop: 1, - prevent: 1 << 1, - self: 1 << 2 - }; - })(); - var ATTR_CLASS = "class"; - var ATTR_STYLE = "style"; - var ATTR_INNER_HTML = "innerHTML"; - var ATTR_TEXT_CONTENT = "textContent"; - var ATTR_V_SHOW = ".vShow"; - var ATTR_V_OWNER_ID = ".vOwnerId"; - var ATTR_V_RENDERJS = ".vRenderjs"; - var ATTR_CHANGE_PREFIX = "change:"; - var ACTION_TYPE_PAGE_CREATE = 1; - var ACTION_TYPE_PAGE_CREATED = 2; - var ACTION_TYPE_CREATE = 3; - var ACTION_TYPE_INSERT = 4; - var ACTION_TYPE_REMOVE = 5; - var ACTION_TYPE_SET_ATTRIBUTE = 6; - var ACTION_TYPE_REMOVE_ATTRIBUTE = 7; - var ACTION_TYPE_ADD_EVENT = 8; - var ACTION_TYPE_REMOVE_EVENT = 9; - var ACTION_TYPE_SET_TEXT = 10; - var ACTION_TYPE_ADD_WXS_EVENT = 12; - var ACTION_TYPE_PAGE_SCROLL = 15; - var ACTION_TYPE_EVENT = 20; - function debounce(fn, delay) { - var timeout; - var newFn = function() { - clearTimeout(timeout); - var timerFn = () => fn.apply(this, arguments); - timeout = setTimeout(timerFn, delay); - }; - newFn.cancel = function() { - clearTimeout(timeout); - }; - return newFn; - } - var E = function() { - }; - E.prototype = { - on: function(name, callback, ctx2) { - var e2 = this.e || (this.e = {}); - (e2[name] || (e2[name] = [])).push({ - fn: callback, - ctx: ctx2 - }); - return this; - }, - once: function(name, callback, ctx2) { - var self2 = this; - function listener() { - self2.off(name, listener); - callback.apply(ctx2, arguments); - } - listener._ = callback; - return this.on(name, listener, ctx2); - }, - emit: function(name) { - var data = [].slice.call(arguments, 1); - var evtArr = ((this.e || (this.e = {}))[name] || []).slice(); - var i2 = 0; - var len = evtArr.length; - for (i2; i2 < len; i2++) { - evtArr[i2].fn.apply(evtArr[i2].ctx, data); - } - return this; - }, - off: function(name, callback) { - var e2 = this.e || (this.e = {}); - var evts = e2[name]; - var liveEvents = []; - if (evts && callback) { - for (var i2 = 0, len = evts.length; i2 < len; i2++) { - if (evts[i2].fn !== callback && evts[i2].fn._ !== callback) - liveEvents.push(evts[i2]); - } - } - liveEvents.length ? e2[name] = liveEvents : delete e2[name]; - return this; - } - }; - var E$1 = E; - var isArray = Array.isArray; - var isObject = (val) => val !== null && typeof val === "object"; - var defaultDelimiters = ["{", "}"]; - class BaseFormatter { - constructor() { - this._caches = /* @__PURE__ */ Object.create(null); - } - interpolate(message, values) { - var delimiters = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : defaultDelimiters; - if (!values) { - return [message]; - } - var tokens = this._caches[message]; - if (!tokens) { - tokens = parse(message, delimiters); - this._caches[message] = tokens; - } - return compile$1(tokens, values); - } - } - var RE_TOKEN_LIST_VALUE = /^(?:\d)+/; - var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/; - function parse(format, _ref) { - var [startDelimiter, endDelimiter] = _ref; - var tokens = []; - var position = 0; - var text2 = ""; - while (position < format.length) { - var char = format[position++]; - if (char === startDelimiter) { - if (text2) { - tokens.push({ - type: "text", - value: text2 - }); - } - text2 = ""; - var sub = ""; - char = format[position++]; - while (char !== void 0 && char !== endDelimiter) { - sub += char; - char = format[position++]; - } - var isClosed = char === endDelimiter; - var type = RE_TOKEN_LIST_VALUE.test(sub) ? "list" : isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ? "named" : "unknown"; - tokens.push({ - value: sub, - type - }); - } else { - text2 += char; - } - } - text2 && tokens.push({ - type: "text", - value: text2 - }); - return tokens; - } - function compile$1(tokens, values) { - var compiled = []; - var index2 = 0; - var mode2 = isArray(values) ? "list" : isObject(values) ? "named" : "unknown"; - if (mode2 === "unknown") { - return compiled; - } - while (index2 < tokens.length) { - var token = tokens[index2]; - switch (token.type) { - case "text": - compiled.push(token.value); - break; - case "list": - compiled.push(values[parseInt(token.value, 10)]); - break; - case "named": - if (mode2 === "named") { - compiled.push(values[token.value]); - } - break; - } - index2++; - } - return compiled; - } - var LOCALE_ZH_HANS = "zh-Hans"; - var LOCALE_ZH_HANT = "zh-Hant"; - var LOCALE_EN = "en"; - var LOCALE_FR = "fr"; - var LOCALE_ES = "es"; - var hasOwnProperty = Object.prototype.hasOwnProperty; - var hasOwn = (val, key2) => hasOwnProperty.call(val, key2); - var defaultFormatter = new BaseFormatter(); - function include(str, parts) { - return !!parts.find((part) => str.indexOf(part) !== -1); - } - function startsWith(str, parts) { - return parts.find((part) => str.indexOf(part) === 0); - } - function normalizeLocale(locale, messages2) { - if (!locale) { - return; - } - locale = locale.trim().replace(/_/g, "-"); - if (messages2 && messages2[locale]) { - return locale; - } - locale = locale.toLowerCase(); - if (locale === "chinese") { - return LOCALE_ZH_HANS; - } - if (locale.indexOf("zh") === 0) { - if (locale.indexOf("-hans") > -1) { - return LOCALE_ZH_HANS; - } - if (locale.indexOf("-hant") > -1) { - return LOCALE_ZH_HANT; - } - if (include(locale, ["-tw", "-hk", "-mo", "-cht"])) { - return LOCALE_ZH_HANT; - } - return LOCALE_ZH_HANS; - } - var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]); - if (lang) { - return lang; - } - } - class I18n { - constructor(_ref2) { - var { - locale, - fallbackLocale, - messages: messages2, - watcher, - formater - } = _ref2; - this.locale = LOCALE_EN; - this.fallbackLocale = LOCALE_EN; - this.message = {}; - this.messages = {}; - this.watchers = []; - if (fallbackLocale) { - this.fallbackLocale = fallbackLocale; - } - this.formater = formater || defaultFormatter; - this.messages = messages2 || {}; - this.setLocale(locale || LOCALE_EN); - if (watcher) { - this.watchLocale(watcher); - } - } - setLocale(locale) { - var oldLocale = this.locale; - this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale; - if (!this.messages[this.locale]) { - this.messages[this.locale] = {}; - } - this.message = this.messages[this.locale]; - if (oldLocale !== this.locale) { - this.watchers.forEach((watcher) => { - watcher(this.locale, oldLocale); - }); - } - } - getLocale() { - return this.locale; - } - watchLocale(fn) { - var index2 = this.watchers.push(fn) - 1; - return () => { - this.watchers.splice(index2, 1); - }; - } - add(locale, message) { - var override = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; - var curMessages = this.messages[locale]; - if (curMessages) { - if (override) { - Object.assign(curMessages, message); - } else { - Object.keys(message).forEach((key2) => { - if (!hasOwn(curMessages, key2)) { - curMessages[key2] = message[key2]; - } - }); - } - } else { - this.messages[locale] = message; - } - } - f(message, values, delimiters) { - return this.formater.interpolate(message, values, delimiters).join(""); - } - t(key2, locale, values) { - var message = this.message; - if (typeof locale === "string") { - locale = normalizeLocale(locale, this.messages); - locale && (message = this.messages[locale]); - } else { - values = locale; - } - if (!hasOwn(message, key2)) { - console.warn("Cannot translate the value of keypath ".concat(key2, ". Use the value of keypath as default.")); - return key2; - } - return this.formater.interpolate(message[key2], values).join(""); - } - } - function watchAppLocale(appVm, i18n2) { - if (appVm.$watchLocale) { - appVm.$watchLocale((newLocale) => { - i18n2.setLocale(newLocale); - }); - } else { - appVm.$watch(() => appVm.$locale, (newLocale) => { - i18n2.setLocale(newLocale); - }); - } - } - function getDefaultLocale() { - if (typeof uni !== "undefined" && uni.getLocale) { - return uni.getLocale(); - } - if (typeof window !== "undefined" && window.getLocale) { - return window.getLocale(); - } - return LOCALE_EN; - } - function initVueI18n(locale) { - var messages2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; - var fallbackLocale = arguments.length > 2 ? arguments[2] : void 0; - var watcher = arguments.length > 3 ? arguments[3] : void 0; - if (typeof locale !== "string") { - [locale, messages2] = [messages2, locale]; - } - if (typeof locale !== "string") { - locale = getDefaultLocale(); - } - if (typeof fallbackLocale !== "string") { - fallbackLocale = typeof __uniConfig !== "undefined" && __uniConfig.fallbackLocale || LOCALE_EN; - } - var i18n2 = new I18n({ - locale, - fallbackLocale, - messages: messages2, - watcher - }); - var t2 = (key2, values) => { - if (typeof getApp !== "function") { - t2 = function(key3, values2) { - return i18n2.t(key3, values2); - }; - } else { - var isWatchedAppLocale = false; - t2 = function(key3, values2) { - var appVm = getApp().$vm; - if (appVm) { - appVm.$locale; - if (!isWatchedAppLocale) { - isWatchedAppLocale = true; - watchAppLocale(appVm, i18n2); - } - } - return i18n2.t(key3, values2); - }; - } - return t2(key2, values); - }; - return { - i18n: i18n2, - f(message, values, delimiters) { - return i18n2.f(message, values, delimiters); - }, - t(key2, values) { - return t2(key2, values); - }, - add(locale2, message) { - var override = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; - return i18n2.add(locale2, message, override); - }, - watch(fn) { - return i18n2.watchLocale(fn); - }, - getLocale() { - return i18n2.getLocale(); - }, - setLocale(newLocale) { - return i18n2.setLocale(newLocale); - } - }; - } - var isEnableLocale = /* @__PURE__ */ once(() => typeof __uniConfig !== "undefined" && __uniConfig.locales && !!Object.keys(__uniConfig.locales).length); - var i18n; - function useI18n() { - if (!i18n) { - var locale; - { - if (typeof getApp === "function") { - locale = weex.requireModule("plus").getLanguage(); - } else { - locale = plus.webview.currentWebview().getStyle().locale; - } - } - i18n = initVueI18n(locale); - if (isEnableLocale()) { - var localeKeys = Object.keys(__uniConfig.locales || {}); - if (localeKeys.length) { - localeKeys.forEach((locale2) => i18n.add(locale2, __uniConfig.locales[locale2])); - } - i18n.setLocale(locale); - } - } - return i18n; - } - function normalizeMessages(module, keys, values) { - return keys.reduce((res, name, index2) => { - res[module + name] = values[index2]; - return res; - }, {}); - } - var initI18nPickerMsgsOnce = /* @__PURE__ */ once(() => { - var name = "uni.picker."; - var keys = ["done", "cancel"]; - { - useI18n().add(LOCALE_EN, normalizeMessages(name, keys, ["Done", "Cancel"]), false); - } - { - useI18n().add(LOCALE_ES, normalizeMessages(name, keys, ["OK", "Cancelar"]), false); - } - { - useI18n().add(LOCALE_FR, normalizeMessages(name, keys, ["OK", "Annuler"]), false); - } - { - useI18n().add(LOCALE_ZH_HANS, normalizeMessages(name, keys, ["\u5B8C\u6210", "\u53D6\u6D88"]), false); - } - { - useI18n().add(LOCALE_ZH_HANT, normalizeMessages(name, keys, ["\u5B8C\u6210", "\u53D6\u6D88"]), false); - } - }); - var initI18nButtonMsgsOnce = /* @__PURE__ */ once(() => { - var name = "uni.button."; - var keys = ["feedback.title", "feedback.send"]; - { - useI18n().add(LOCALE_EN, normalizeMessages(name, keys, ["feedback", "send"]), false); - } - { - useI18n().add(LOCALE_ES, normalizeMessages(name, keys, ["realimentaci\xF3n", "enviar"]), false); - } - { - useI18n().add(LOCALE_FR, normalizeMessages(name, keys, ["retour d'information", "envoyer"]), false); - } - { - useI18n().add(LOCALE_ZH_HANS, normalizeMessages(name, keys, ["\u95EE\u9898\u53CD\u9988", "\u53D1\u9001"]), false); - } - { - useI18n().add(LOCALE_ZH_HANT, normalizeMessages(name, keys, ["\u554F\u984C\u53CD\u994B", "\u767C\u9001"]), false); - } - }); - function initBridge(subscribeNamespace) { - var emitter = new E$1(); - return { - on(event, callback) { - return emitter.on(event, callback); - }, - once(event, callback) { - return emitter.once(event, callback); - }, - off(event, callback) { - return emitter.off(event, callback); - }, - emit(event) { - for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; - } - return emitter.emit(event, ...args); - }, - subscribe(event, callback) { - var once2 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false; - emitter[once2 ? "once" : "on"]("".concat(subscribeNamespace, ".").concat(event), callback); - }, - unsubscribe(event, callback) { - emitter.off("".concat(subscribeNamespace, ".").concat(event), callback); - }, - subscribeHandler(event, args, pageId) { - emitter.emit("".concat(subscribeNamespace, ".").concat(event), args, pageId); - } - }; - } - var INVOKE_VIEW_API = "invokeViewApi"; - var INVOKE_SERVICE_API = "invokeServiceApi"; - var invokeServiceMethodId = 1; - var invokeServiceMethod = (name, args, callback) => { - var { - subscribe, - publishHandler: publishHandler2 - } = UniViewJSBridge; - var id2 = callback ? invokeServiceMethodId++ : 0; - callback && subscribe(INVOKE_SERVICE_API + "." + id2, callback, true); - publishHandler2(INVOKE_SERVICE_API, { - id: id2, - name, - args - }); - }; - var viewMethods = /* @__PURE__ */ Object.create(null); - function normalizeViewMethodName(pageId, name) { - return pageId + "." + name; - } - function subscribeViewMethod(pageId, wrapper2) { - UniViewJSBridge.subscribe(normalizeViewMethodName(pageId, INVOKE_VIEW_API), wrapper2 ? wrapper2(onInvokeViewMethod) : onInvokeViewMethod); - } - function registerViewMethod(pageId, name, fn) { - name = normalizeViewMethodName(pageId, name); - if (!viewMethods[name]) { - viewMethods[name] = fn; - } - } - function unregisterViewMethod(pageId, name) { - name = normalizeViewMethodName(pageId, name); - delete viewMethods[name]; - } - function onInvokeViewMethod(_ref, pageId) { - var { - id: id2, - name, - args - } = _ref; - name = normalizeViewMethodName(pageId, name); - var publish = (res) => { - id2 && UniViewJSBridge.publishHandler(INVOKE_VIEW_API + "." + id2, res); - }; - var handler = viewMethods[name]; - if (handler) { - handler(args, publish); - } else { - publish({}); - } - } - var ViewJSBridge = /* @__PURE__ */ extend(/* @__PURE__ */ initBridge("service"), { - invokeServiceMethod - }); - var LONGPRESS_TIMEOUT = 350; - var LONGPRESS_THRESHOLD = 10; - var passiveOptions$2 = /* @__PURE__ */ passive(true); - var longPressTimer; - function clearLongPressTimer() { - if (longPressTimer) { - clearTimeout(longPressTimer); - longPressTimer = null; - } - } - var startPageX = 0; - var startPageY = 0; - function touchstart(evt) { - clearLongPressTimer(); - if (evt.touches.length !== 1) { - return; - } - var { - pageX, - pageY - } = evt.touches[0]; - startPageX = pageX; - startPageY = pageY; - longPressTimer = setTimeout(function() { - var customEvent = new CustomEvent("longpress", { - bubbles: true, - cancelable: true, - target: evt.target, - currentTarget: evt.currentTarget - }); - customEvent.touches = evt.touches; - customEvent.changedTouches = evt.changedTouches; - evt.target.dispatchEvent(customEvent); - }, LONGPRESS_TIMEOUT); - } - function touchmove(evt) { - if (!longPressTimer) { - return; - } - if (evt.touches.length !== 1) { - return clearLongPressTimer(); - } - var { - pageX, - pageY - } = evt.touches[0]; - if (Math.abs(pageX - startPageX) > LONGPRESS_THRESHOLD || Math.abs(pageY - startPageY) > LONGPRESS_THRESHOLD) { - return clearLongPressTimer(); - } - } - function initLongPress() { - window.addEventListener("touchstart", touchstart, passiveOptions$2); - window.addEventListener("touchmove", touchmove, passiveOptions$2); - window.addEventListener("touchend", clearLongPressTimer, passiveOptions$2); - window.addEventListener("touchcancel", clearLongPressTimer, passiveOptions$2); - } - function checkValue$1(value, defaultValue) { - var newValue = Number(value); - return isNaN(newValue) ? defaultValue : newValue; - } - function getWindowWidth() { - var screenFix = /^Apple/.test(navigator.vendor) && typeof window.orientation === "number"; - var landscape = screenFix && Math.abs(window.orientation) === 90; - var screenWidth = screenFix ? Math[landscape ? "max" : "min"](screen.width, screen.height) : screen.width; - var windowWidth = Math.min(window.innerWidth, document.documentElement.clientWidth, screenWidth) || screenWidth; - return windowWidth; - } - function useRem() { - var config = __uniConfig.globalStyle || {}; - var maxWidth2 = checkValue$1(config.rpxCalcMaxDeviceWidth, 960); - var baseWidth2 = checkValue$1(config.rpxCalcBaseDeviceWidth, 375); - function updateRem() { - var width = getWindowWidth(); - width = width <= maxWidth2 ? width : baseWidth2; - document.documentElement.style.fontSize = width / 23.4375 + "px"; - } - updateRem(); - document.addEventListener("DOMContentLoaded", updateRem); - window.addEventListener("load", updateRem); - window.addEventListener("resize", updateRem); - } - function initView() { - useRem(); - initCustomDatasetOnce(); - { - initLongPress(); - } - } - var fails$1 = _fails; - var _strictMethod = function(method, arg) { - return !!method && fails$1(function() { - arg ? method.call(null, function() { - }, 1) : method.call(null); - }); - }; - var $export$1 = _export; - var aFunction = _aFunction; - var toObject = _toObject; - var fails = _fails; - var $sort = [].sort; - var test = [1, 2, 3]; - $export$1($export$1.P + $export$1.F * (fails(function() { - test.sort(void 0); - }) || !fails(function() { - test.sort(null); - }) || !_strictMethod($sort)), "Array", { - sort: function sort(comparefn) { - return comparefn === void 0 ? $sort.call(toObject(this)) : $sort.call(toObject(this), aFunction(comparefn)); - } - }); - var activeEffectScope; - class EffectScope { - constructor() { - var detached = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false; - this.active = true; - this.effects = []; - this.cleanups = []; - if (!detached && activeEffectScope) { - this.parent = activeEffectScope; - this.index = (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(this) - 1; - } - } - run(fn) { - if (this.active) { - try { - activeEffectScope = this; - return fn(); - } finally { - activeEffectScope = this.parent; - } - } - } - on() { - activeEffectScope = this; - } - off() { - activeEffectScope = this.parent; - } - stop(fromParent) { - if (this.active) { - var i2, l; - for (i2 = 0, l = this.effects.length; i2 < l; i2++) { - this.effects[i2].stop(); - } - for (i2 = 0, l = this.cleanups.length; i2 < l; i2++) { - this.cleanups[i2](); - } - if (this.scopes) { - for (i2 = 0, l = this.scopes.length; i2 < l; i2++) { - this.scopes[i2].stop(true); - } - } - if (this.parent && !fromParent) { - var last = this.parent.scopes.pop(); - if (last && last !== this) { - this.parent.scopes[this.index] = last; - last.index = this.index; - } - } - this.active = false; - } - } - } - function recordEffectScope(effect) { - var scope = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : activeEffectScope; - if (scope && scope.active) { - scope.effects.push(effect); - } - } - var createDep = (effects) => { - var dep = new Set(effects); - dep.w = 0; - dep.n = 0; - return dep; - }; - var wasTracked = (dep) => (dep.w & trackOpBit) > 0; - var newTracked = (dep) => (dep.n & trackOpBit) > 0; - var initDepMarkers = (_ref) => { - var { - deps - } = _ref; - if (deps.length) { - for (var i2 = 0; i2 < deps.length; i2++) { - deps[i2].w |= trackOpBit; - } - } - }; - var finalizeDepMarkers = (effect) => { - var { - deps - } = effect; - if (deps.length) { - var ptr = 0; - for (var i2 = 0; i2 < deps.length; i2++) { - var dep = deps[i2]; - if (wasTracked(dep) && !newTracked(dep)) { - dep.delete(effect); - } else { - deps[ptr++] = dep; - } - dep.w &= ~trackOpBit; - dep.n &= ~trackOpBit; - } - deps.length = ptr; - } - }; - var targetMap = /* @__PURE__ */ new WeakMap(); - var effectTrackDepth = 0; - var trackOpBit = 1; - var maxMarkerBits = 30; - var activeEffect; - var ITERATE_KEY = Symbol(""); - var MAP_KEY_ITERATE_KEY = Symbol(""); - class ReactiveEffect { - constructor(fn) { - var scheduler = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null; - var scope = arguments.length > 2 ? arguments[2] : void 0; - this.fn = fn; - this.scheduler = scheduler; - this.active = true; - this.deps = []; - this.parent = void 0; - recordEffectScope(this, scope); - } - run() { - if (!this.active) { - return this.fn(); - } - var parent = activeEffect; - var lastShouldTrack = shouldTrack; - while (parent) { - if (parent === this) { - return; - } - parent = parent.parent; - } - try { - this.parent = activeEffect; - activeEffect = this; - shouldTrack = true; - trackOpBit = 1 << ++effectTrackDepth; - if (effectTrackDepth <= maxMarkerBits) { - initDepMarkers(this); - } else { - cleanupEffect(this); - } - return this.fn(); - } finally { - if (effectTrackDepth <= maxMarkerBits) { - finalizeDepMarkers(this); - } - trackOpBit = 1 << --effectTrackDepth; - activeEffect = this.parent; - shouldTrack = lastShouldTrack; - this.parent = void 0; - } - } - stop() { - if (this.active) { - cleanupEffect(this); - if (this.onStop) { - this.onStop(); - } - this.active = false; - } - } - } - function cleanupEffect(effect) { - var { - deps - } = effect; - if (deps.length) { - for (var i2 = 0; i2 < deps.length; i2++) { - deps[i2].delete(effect); - } - deps.length = 0; - } - } - var shouldTrack = true; - var trackStack = []; - function pauseTracking() { - trackStack.push(shouldTrack); - shouldTrack = false; - } - function resetTracking() { - var last = trackStack.pop(); - shouldTrack = last === void 0 ? true : last; - } - function track(target, type, key2) { - if (shouldTrack && activeEffect) { - var depsMap = targetMap.get(target); - if (!depsMap) { - targetMap.set(target, depsMap = /* @__PURE__ */ new Map()); - } - var dep = depsMap.get(key2); - if (!dep) { - depsMap.set(key2, dep = createDep()); - } - trackEffects(dep); - } - } - function trackEffects(dep, debuggerEventExtraInfo) { - var shouldTrack2 = false; - if (effectTrackDepth <= maxMarkerBits) { - if (!newTracked(dep)) { - dep.n |= trackOpBit; - shouldTrack2 = !wasTracked(dep); - } - } else { - shouldTrack2 = !dep.has(activeEffect); - } - if (shouldTrack2) { - dep.add(activeEffect); - activeEffect.deps.push(dep); - } - } - function trigger(target, type, key2, newValue, oldValue, oldTarget) { - var depsMap = targetMap.get(target); - if (!depsMap) { - return; - } - var deps = []; - if (type === "clear") { - deps = [...depsMap.values()]; - } else if (key2 === "length" && isArray$1(target)) { - depsMap.forEach((dep2, key3) => { - if (key3 === "length" || key3 >= newValue) { - deps.push(dep2); - } - }); - } else { - if (key2 !== void 0) { - deps.push(depsMap.get(key2)); - } - switch (type) { - case "add": - if (!isArray$1(target)) { - deps.push(depsMap.get(ITERATE_KEY)); - if (isMap(target)) { - deps.push(depsMap.get(MAP_KEY_ITERATE_KEY)); - } - } else if (isIntegerKey(key2)) { - deps.push(depsMap.get("length")); - } - break; - case "delete": - if (!isArray$1(target)) { - deps.push(depsMap.get(ITERATE_KEY)); - if (isMap(target)) { - deps.push(depsMap.get(MAP_KEY_ITERATE_KEY)); - } - } - break; - case "set": - if (isMap(target)) { - deps.push(depsMap.get(ITERATE_KEY)); - } - break; - } - } - if (deps.length === 1) { - if (deps[0]) { - { - triggerEffects(deps[0]); - } - } - } else { - var effects = []; - for (var dep of deps) { - if (dep) { - effects.push(...dep); - } - } - { - triggerEffects(createDep(effects)); - } - } - } - function triggerEffects(dep, debuggerEventExtraInfo) { - for (var _effect2 of isArray$1(dep) ? dep : [...dep]) { - if (_effect2 !== activeEffect || _effect2.allowRecurse) { - if (_effect2.scheduler) { - _effect2.scheduler(); - } else { - _effect2.run(); - } - } - } - } - var isNonTrackableKeys = /* @__PURE__ */ makeMap$1("__proto__,__v_isRef,__isVue"); - var builtInSymbols = new Set(Object.getOwnPropertyNames(Symbol).map((key2) => Symbol[key2]).filter(isSymbol)); - var get = /* @__PURE__ */ createGetter(); - var shallowGet = /* @__PURE__ */ createGetter(false, true); - var readonlyGet = /* @__PURE__ */ createGetter(true); - var arrayInstrumentations = /* @__PURE__ */ createArrayInstrumentations(); - function createArrayInstrumentations() { - var instrumentations = {}; - ["includes", "indexOf", "lastIndexOf"].forEach((key2) => { - instrumentations[key2] = function() { - var arr = toRaw(this); - for (var i2 = 0, l = this.length; i2 < l; i2++) { - track(arr, "get", i2 + ""); - } - for (var _len2 = arguments.length, args = new Array(_len2), _key3 = 0; _key3 < _len2; _key3++) { - args[_key3] = arguments[_key3]; - } - var res = arr[key2](...args); - if (res === -1 || res === false) { - return arr[key2](...args.map(toRaw)); - } else { - return res; - } - }; - }); - ["push", "pop", "shift", "unshift", "splice"].forEach((key2) => { - instrumentations[key2] = function() { - pauseTracking(); - for (var _len3 = arguments.length, args = new Array(_len3), _key4 = 0; _key4 < _len3; _key4++) { - args[_key4] = arguments[_key4]; - } - var res = toRaw(this)[key2].apply(this, args); - resetTracking(); - return res; - }; - }); - return instrumentations; - } - function createGetter() { - var isReadonly2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false; - var shallow = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false; - return function get2(target, key2, receiver) { - if (key2 === "__v_isReactive") { - return !isReadonly2; - } else if (key2 === "__v_isReadonly") { - return isReadonly2; - } else if (key2 === "__v_isShallow") { - return shallow; - } else if (key2 === "__v_raw" && receiver === (isReadonly2 ? shallow ? shallowReadonlyMap : readonlyMap : shallow ? shallowReactiveMap : reactiveMap).get(target)) { - return target; - } - var targetIsArray = isArray$1(target); - if (!isReadonly2 && targetIsArray && hasOwn$1(arrayInstrumentations, key2)) { - return Reflect.get(arrayInstrumentations, key2, receiver); - } - var res = Reflect.get(target, key2, receiver); - if (isSymbol(key2) ? builtInSymbols.has(key2) : isNonTrackableKeys(key2)) { - return res; - } - if (!isReadonly2) { - track(target, "get", key2); - } - if (shallow) { - return res; - } - if (isRef(res)) { - var shouldUnwrap = !targetIsArray || !isIntegerKey(key2); - return shouldUnwrap ? res.value : res; - } - if (isObject$1(res)) { - return isReadonly2 ? readonly(res) : reactive(res); - } - return res; - }; - } - var set = /* @__PURE__ */ createSetter(); - var shallowSet = /* @__PURE__ */ createSetter(true); - function createSetter() { - var shallow = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false; - return function set2(target, key2, value, receiver) { - var oldValue = target[key2]; - if (isReadonly(oldValue) && isRef(oldValue) && !isRef(value)) { - return false; - } - if (!shallow && !isReadonly(value)) { - if (!isShallow(value)) { - value = toRaw(value); - oldValue = toRaw(oldValue); - } - if (!isArray$1(target) && isRef(oldValue) && !isRef(value)) { - oldValue.value = value; - return true; - } - } - var hadKey = isArray$1(target) && isIntegerKey(key2) ? Number(key2) < target.length : hasOwn$1(target, key2); - var result = Reflect.set(target, key2, value, receiver); - if (target === toRaw(receiver)) { - if (!hadKey) { - trigger(target, "add", key2, value); - } else if (hasChanged(value, oldValue)) { - trigger(target, "set", key2, value); - } - } - return result; - }; - } - function deleteProperty(target, key2) { - var hadKey = hasOwn$1(target, key2); - target[key2]; - var result = Reflect.deleteProperty(target, key2); - if (result && hadKey) { - trigger(target, "delete", key2, void 0); - } - return result; - } - function has(target, key2) { - var result = Reflect.has(target, key2); - if (!isSymbol(key2) || !builtInSymbols.has(key2)) { - track(target, "has", key2); - } - return result; - } - function ownKeys(target) { - track(target, "iterate", isArray$1(target) ? "length" : ITERATE_KEY); - return Reflect.ownKeys(target); - } - var mutableHandlers = { - get, - set, - deleteProperty, - has, - ownKeys - }; - var readonlyHandlers = { - get: readonlyGet, - set(target, key2) { - return true; - }, - deleteProperty(target, key2) { - return true; - } - }; - var shallowReactiveHandlers = /* @__PURE__ */ extend({}, mutableHandlers, { - get: shallowGet, - set: shallowSet - }); - var toShallow = (value) => value; - var getProto = (v2) => Reflect.getPrototypeOf(v2); - function get$1(target, key2) { - var isReadonly2 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false; - var isShallow2 = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false; - target = target["__v_raw"]; - var rawTarget = toRaw(target); - var rawKey = toRaw(key2); - if (key2 !== rawKey) { - !isReadonly2 && track(rawTarget, "get", key2); - } - !isReadonly2 && track(rawTarget, "get", rawKey); - var { - has: has2 - } = getProto(rawTarget); - var wrap = isShallow2 ? toShallow : isReadonly2 ? toReadonly : toReactive; - if (has2.call(rawTarget, key2)) { - return wrap(target.get(key2)); - } else if (has2.call(rawTarget, rawKey)) { - return wrap(target.get(rawKey)); - } else if (target !== rawTarget) { - target.get(key2); - } - } - function has$1(key2) { - var isReadonly2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false; - var target = this["__v_raw"]; - var rawTarget = toRaw(target); - var rawKey = toRaw(key2); - if (key2 !== rawKey) { - !isReadonly2 && track(rawTarget, "has", key2); - } - !isReadonly2 && track(rawTarget, "has", rawKey); - return key2 === rawKey ? target.has(key2) : target.has(key2) || target.has(rawKey); - } - function size(target) { - var isReadonly2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false; - target = target["__v_raw"]; - !isReadonly2 && track(toRaw(target), "iterate", ITERATE_KEY); - return Reflect.get(target, "size", target); - } - function add(value) { - value = toRaw(value); - var target = toRaw(this); - var proto2 = getProto(target); - var hadKey = proto2.has.call(target, value); - if (!hadKey) { - target.add(value); - trigger(target, "add", value, value); - } - return this; - } - function set$1(key2, value) { - value = toRaw(value); - var target = toRaw(this); - var { - has: has2, - get: get2 - } = getProto(target); - var hadKey = has2.call(target, key2); - if (!hadKey) { - key2 = toRaw(key2); - hadKey = has2.call(target, key2); - } - var oldValue = get2.call(target, key2); - target.set(key2, value); - if (!hadKey) { - trigger(target, "add", key2, value); - } else if (hasChanged(value, oldValue)) { - trigger(target, "set", key2, value); - } - return this; - } - function deleteEntry(key2) { - var target = toRaw(this); - var { - has: has2, - get: get2 - } = getProto(target); - var hadKey = has2.call(target, key2); - if (!hadKey) { - key2 = toRaw(key2); - hadKey = has2.call(target, key2); - } - get2 ? get2.call(target, key2) : void 0; - var result = target.delete(key2); - if (hadKey) { - trigger(target, "delete", key2, void 0); - } - return result; - } - function clear() { - var target = toRaw(this); - var hadItems = target.size !== 0; - var result = target.clear(); - if (hadItems) { - trigger(target, "clear", void 0, void 0); - } - return result; - } - function createForEach(isReadonly2, isShallow2) { - return function forEach(callback, thisArg) { - var observed = this; - var target = observed["__v_raw"]; - var rawTarget = toRaw(target); - var wrap = isShallow2 ? toShallow : isReadonly2 ? toReadonly : toReactive; - !isReadonly2 && track(rawTarget, "iterate", ITERATE_KEY); - return target.forEach((value, key2) => { - return callback.call(thisArg, wrap(value), wrap(key2), observed); - }); - }; - } - function createIterableMethod(method, isReadonly2, isShallow2) { - return function() { - var target = this["__v_raw"]; - var rawTarget = toRaw(target); - var targetIsMap = isMap(rawTarget); - var isPair = method === "entries" || method === Symbol.iterator && targetIsMap; - var isKeyOnly = method === "keys" && targetIsMap; - var innerIterator = target[method](...arguments); - var wrap = isShallow2 ? toShallow : isReadonly2 ? toReadonly : toReactive; - !isReadonly2 && track(rawTarget, "iterate", isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY); - return { - next() { - var { - value, - done - } = innerIterator.next(); - return done ? { - value, - done - } : { - value: isPair ? [wrap(value[0]), wrap(value[1])] : wrap(value), - done - }; - }, - [Symbol.iterator]() { - return this; - } - }; - }; - } - function createReadonlyMethod(type) { - return function() { - return type === "delete" ? false : this; - }; - } - function createInstrumentations() { - var mutableInstrumentations2 = { - get(key2) { - return get$1(this, key2); - }, - get size() { - return size(this); - }, - has: has$1, - add, - set: set$1, - delete: deleteEntry, - clear, - forEach: createForEach(false, false) - }; - var shallowInstrumentations2 = { - get(key2) { - return get$1(this, key2, false, true); - }, - get size() { - return size(this); - }, - has: has$1, - add, - set: set$1, - delete: deleteEntry, - clear, - forEach: createForEach(false, true) - }; - var readonlyInstrumentations2 = { - get(key2) { - return get$1(this, key2, true); - }, - get size() { - return size(this, true); - }, - has(key2) { - return has$1.call(this, key2, true); - }, - add: createReadonlyMethod("add"), - set: createReadonlyMethod("set"), - delete: createReadonlyMethod("delete"), - clear: createReadonlyMethod("clear"), - forEach: createForEach(true, false) - }; - var shallowReadonlyInstrumentations2 = { - get(key2) { - return get$1(this, key2, true, true); - }, - get size() { - return size(this, true); - }, - has(key2) { - return has$1.call(this, key2, true); - }, - add: createReadonlyMethod("add"), - set: createReadonlyMethod("set"), - delete: createReadonlyMethod("delete"), - clear: createReadonlyMethod("clear"), - forEach: createForEach(true, true) - }; - var iteratorMethods = ["keys", "values", "entries", Symbol.iterator]; - iteratorMethods.forEach((method) => { - mutableInstrumentations2[method] = createIterableMethod(method, false, false); - readonlyInstrumentations2[method] = createIterableMethod(method, true, false); - shallowInstrumentations2[method] = createIterableMethod(method, false, true); - shallowReadonlyInstrumentations2[method] = createIterableMethod(method, true, true); - }); - return [mutableInstrumentations2, readonlyInstrumentations2, shallowInstrumentations2, shallowReadonlyInstrumentations2]; - } - var [mutableInstrumentations, readonlyInstrumentations, shallowInstrumentations, shallowReadonlyInstrumentations] = /* @__PURE__ */ createInstrumentations(); - function createInstrumentationGetter(isReadonly2, shallow) { - var instrumentations = shallow ? isReadonly2 ? shallowReadonlyInstrumentations : shallowInstrumentations : isReadonly2 ? readonlyInstrumentations : mutableInstrumentations; - return (target, key2, receiver) => { - if (key2 === "__v_isReactive") { - return !isReadonly2; - } else if (key2 === "__v_isReadonly") { - return isReadonly2; - } else if (key2 === "__v_raw") { - return target; - } - return Reflect.get(hasOwn$1(instrumentations, key2) && key2 in target ? instrumentations : target, key2, receiver); - }; - } - var mutableCollectionHandlers = { - get: /* @__PURE__ */ createInstrumentationGetter(false, false) - }; - var shallowCollectionHandlers = { - get: /* @__PURE__ */ createInstrumentationGetter(false, true) - }; - var readonlyCollectionHandlers = { - get: /* @__PURE__ */ createInstrumentationGetter(true, false) - }; - var reactiveMap = /* @__PURE__ */ new WeakMap(); - var shallowReactiveMap = /* @__PURE__ */ new WeakMap(); - var readonlyMap = /* @__PURE__ */ new WeakMap(); - var shallowReadonlyMap = /* @__PURE__ */ new WeakMap(); - function targetTypeMap(rawType) { - switch (rawType) { - case "Object": - case "Array": - return 1; - case "Map": - case "Set": - case "WeakMap": - case "WeakSet": - return 2; - default: - return 0; - } - } - function getTargetType(value) { - return value["__v_skip"] || !Object.isExtensible(value) ? 0 : targetTypeMap(toRawType(value)); - } - function reactive(target) { - if (isReadonly(target)) { - return target; - } - return createReactiveObject(target, false, mutableHandlers, mutableCollectionHandlers, reactiveMap); - } - function shallowReactive(target) { - return createReactiveObject(target, false, shallowReactiveHandlers, shallowCollectionHandlers, shallowReactiveMap); - } - function readonly(target) { - return createReactiveObject(target, true, readonlyHandlers, readonlyCollectionHandlers, readonlyMap); - } - function createReactiveObject(target, isReadonly2, baseHandlers, collectionHandlers, proxyMap) { - if (!isObject$1(target)) { - return target; - } - if (target["__v_raw"] && !(isReadonly2 && target["__v_isReactive"])) { - return target; - } - var existingProxy = proxyMap.get(target); - if (existingProxy) { - return existingProxy; - } - var targetType = getTargetType(target); - if (targetType === 0) { - return target; - } - var proxy = new Proxy(target, targetType === 2 ? collectionHandlers : baseHandlers); - proxyMap.set(target, proxy); - return proxy; - } - function isReactive(value) { - if (isReadonly(value)) { - return isReactive(value["__v_raw"]); - } - return !!(value && value["__v_isReactive"]); - } - function isReadonly(value) { - return !!(value && value["__v_isReadonly"]); - } - function isShallow(value) { - return !!(value && value["__v_isShallow"]); - } - function isProxy(value) { - return isReactive(value) || isReadonly(value); - } - function toRaw(observed) { - var raw = observed && observed["__v_raw"]; - return raw ? toRaw(raw) : observed; - } - function markRaw(value) { - def(value, "__v_skip", true); - return value; - } - var toReactive = (value) => isObject$1(value) ? reactive(value) : value; - var toReadonly = (value) => isObject$1(value) ? readonly(value) : value; - function trackRefValue(ref2) { - if (shouldTrack && activeEffect) { - ref2 = toRaw(ref2); - { - trackEffects(ref2.dep || (ref2.dep = createDep())); - } - } - } - function triggerRefValue(ref2, newVal) { - ref2 = toRaw(ref2); - if (ref2.dep) { - { - triggerEffects(ref2.dep); - } - } - } - function isRef(r) { - return !!(r && r.__v_isRef === true); - } - function ref(value) { - return createRef(value, false); - } - function shallowRef(value) { - return createRef(value, true); - } - function createRef(rawValue, shallow) { - if (isRef(rawValue)) { - return rawValue; - } - return new RefImpl(rawValue, shallow); - } - class RefImpl { - constructor(value, __v_isShallow) { - this.__v_isShallow = __v_isShallow; - this.dep = void 0; - this.__v_isRef = true; - this._rawValue = __v_isShallow ? value : toRaw(value); - this._value = __v_isShallow ? value : toReactive(value); - } - get value() { - trackRefValue(this); - return this._value; - } - set value(newVal) { - newVal = this.__v_isShallow ? newVal : toRaw(newVal); - if (hasChanged(newVal, this._rawValue)) { - this._rawValue = newVal; - this._value = this.__v_isShallow ? newVal : toReactive(newVal); - triggerRefValue(this); - } - } - } - function unref(ref2) { - return isRef(ref2) ? ref2.value : ref2; - } - var shallowUnwrapHandlers = { - get: (target, key2, receiver) => unref(Reflect.get(target, key2, receiver)), - set: (target, key2, value, receiver) => { - var oldValue = target[key2]; - if (isRef(oldValue) && !isRef(value)) { - oldValue.value = value; - return true; - } else { - return Reflect.set(target, key2, value, receiver); - } - } - }; - function proxyRefs(objectWithRefs) { - return isReactive(objectWithRefs) ? objectWithRefs : new Proxy(objectWithRefs, shallowUnwrapHandlers); - } - class ComputedRefImpl { - constructor(getter, _setter, isReadonly2, isSSR) { - this._setter = _setter; - this.dep = void 0; - this.__v_isRef = true; - this._dirty = true; - this.effect = new ReactiveEffect(getter, () => { - if (!this._dirty) { - this._dirty = true; - triggerRefValue(this); - } - }); - this.effect.computed = this; - this.effect.active = this._cacheable = !isSSR; - this["__v_isReadonly"] = isReadonly2; - } - get value() { - var self2 = toRaw(this); - trackRefValue(self2); - if (self2._dirty || !self2._cacheable) { - self2._dirty = false; - self2._value = self2.effect.run(); - } - return self2._value; - } - set value(newValue) { - this._setter(newValue); - } - } - function computed(getterOrOptions, debugOptions) { - var isSSR = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false; - var getter; - var setter; - var onlyGetter = isFunction(getterOrOptions); - if (onlyGetter) { - getter = getterOrOptions; - setter = NOOP; - } else { - getter = getterOrOptions.get; - setter = getterOrOptions.set; - } - var cRef = new ComputedRefImpl(getter, setter, onlyGetter || !setter, isSSR); - return cRef; - } - function callWithErrorHandling(fn, instance, type, args) { - var res; - try { - res = args ? fn(...args) : fn(); - } catch (err2) { - handleError(err2, instance, type); - } - return res; - } - function callWithAsyncErrorHandling(fn, instance, type, args) { - if (isFunction(fn)) { - var res = callWithErrorHandling(fn, instance, type, args); - if (res && isPromise(res)) { - res.catch((err2) => { - handleError(err2, instance, type); - }); - } - return res; - } - var values = []; - for (var i2 = 0; i2 < fn.length; i2++) { - values.push(callWithAsyncErrorHandling(fn[i2], instance, type, args)); - } - return values; - } - function handleError(err2, instance, type) { - instance ? instance.vnode : null; - if (instance) { - var cur = instance.parent; - var exposedInstance = instance.proxy; - var errorInfo = type; - while (cur) { - var errorCapturedHooks = cur.ec; - if (errorCapturedHooks) { - for (var i2 = 0; i2 < errorCapturedHooks.length; i2++) { - if (errorCapturedHooks[i2](err2, exposedInstance, errorInfo) === false) { - return; - } - } - } - cur = cur.parent; - } - var appErrorHandler = instance.appContext.config.errorHandler; - if (appErrorHandler) { - callWithErrorHandling(appErrorHandler, null, 10, [err2, exposedInstance, errorInfo]); - return; - } - } - logError(err2); - } - function logError(err2, type, contextVNode) { - { - if (err2 instanceof Error) { - console.error(err2.message + "\n" + err2.stack); - } else { - console.error(err2); - } - } - } - var isFlushing = false; - var isFlushPending = false; - var queue = []; - var flushIndex = 0; - var pendingPreFlushCbs = []; - var activePreFlushCbs = null; - var preFlushIndex = 0; - var pendingPostFlushCbs = []; - var activePostFlushCbs = null; - var postFlushIndex = 0; - var resolvedPromise = Promise.resolve(); - var currentFlushPromise = null; - var currentPreFlushParentJob = null; - function nextTick(fn) { - var p2 = currentFlushPromise || resolvedPromise; - return fn ? p2.then(this ? fn.bind(this) : fn) : p2; - } - function findInsertionIndex(id2) { - var start = flushIndex + 1; - var end = queue.length; - while (start < end) { - var middle = start + end >>> 1; - var middleJobId = getId(queue[middle]); - middleJobId < id2 ? start = middle + 1 : end = middle; - } - return start; - } - function queueJob(job) { - if ((!queue.length || !queue.includes(job, isFlushing && job.allowRecurse ? flushIndex + 1 : flushIndex)) && job !== currentPreFlushParentJob) { - if (job.id == null) { - queue.push(job); - } else { - queue.splice(findInsertionIndex(job.id), 0, job); - } - queueFlush(); - } - } - function queueFlush() { - if (!isFlushing && !isFlushPending) { - isFlushPending = true; - currentFlushPromise = resolvedPromise.then(flushJobs); - } - } - function invalidateJob(job) { - var i2 = queue.indexOf(job); - if (i2 > flushIndex) { - queue.splice(i2, 1); - } - } - function queueCb(cb, activeQueue, pendingQueue, index2) { - if (!isArray$1(cb)) { - if (!activeQueue || !activeQueue.includes(cb, cb.allowRecurse ? index2 + 1 : index2)) { - pendingQueue.push(cb); - } - } else { - pendingQueue.push(...cb); - } - queueFlush(); - } - function queuePreFlushCb(cb) { - queueCb(cb, activePreFlushCbs, pendingPreFlushCbs, preFlushIndex); - } - function queuePostFlushCb(cb) { - queueCb(cb, activePostFlushCbs, pendingPostFlushCbs, postFlushIndex); - } - function flushPreFlushCbs(seen) { - var parentJob = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null; - if (pendingPreFlushCbs.length) { - currentPreFlushParentJob = parentJob; - activePreFlushCbs = [...new Set(pendingPreFlushCbs)]; - pendingPreFlushCbs.length = 0; - for (preFlushIndex = 0; preFlushIndex < activePreFlushCbs.length; preFlushIndex++) { - activePreFlushCbs[preFlushIndex](); - } - activePreFlushCbs = null; - preFlushIndex = 0; - currentPreFlushParentJob = null; - flushPreFlushCbs(seen, parentJob); - } - } - function flushPostFlushCbs(seen) { - if (pendingPostFlushCbs.length) { - var deduped = [...new Set(pendingPostFlushCbs)]; - pendingPostFlushCbs.length = 0; - if (activePostFlushCbs) { - activePostFlushCbs.push(...deduped); - return; - } - activePostFlushCbs = deduped; - activePostFlushCbs.sort((a2, b) => getId(a2) - getId(b)); - for (postFlushIndex = 0; postFlushIndex < activePostFlushCbs.length; postFlushIndex++) { - activePostFlushCbs[postFlushIndex](); - } - activePostFlushCbs = null; - postFlushIndex = 0; - } - } - var getId = (job) => job.id == null ? Infinity : job.id; - function flushJobs(seen) { - isFlushPending = false; - isFlushing = true; - flushPreFlushCbs(seen); - queue.sort((a2, b) => getId(a2) - getId(b)); - var check = NOOP; - try { - for (flushIndex = 0; flushIndex < queue.length; flushIndex++) { - var job = queue[flushIndex]; - if (job && job.active !== false) { - if (false) - ; - callWithErrorHandling(job, null, 14); - } - } - } finally { - flushIndex = 0; - queue.length = 0; - flushPostFlushCbs(); - isFlushing = false; - currentFlushPromise = null; - if (queue.length || pendingPreFlushCbs.length || pendingPostFlushCbs.length) { - flushJobs(seen); - } - } - } - function emit$1$1(instance, event) { - var props2 = instance.vnode.props || EMPTY_OBJ; - for (var _len6 = arguments.length, rawArgs = new Array(_len6 > 2 ? _len6 - 2 : 0), _key7 = 2; _key7 < _len6; _key7++) { - rawArgs[_key7 - 2] = arguments[_key7]; - } - var args = rawArgs; - var isModelListener2 = event.startsWith("update:"); - var modelArg = isModelListener2 && event.slice(7); - if (modelArg && modelArg in props2) { - var modifiersKey = "".concat(modelArg === "modelValue" ? "model" : modelArg, "Modifiers"); - var { - number, - trim - } = props2[modifiersKey] || EMPTY_OBJ; - if (trim) { - args = rawArgs.map((a2) => a2.trim()); - } else if (number) { - args = rawArgs.map(toNumber); - } - } - var handlerName; - var handler = props2[handlerName = toHandlerKey(event)] || props2[handlerName = toHandlerKey(camelize(event))]; - if (!handler && isModelListener2) { - handler = props2[handlerName = toHandlerKey(hyphenate(event))]; - } - if (handler) { - callWithAsyncErrorHandling(handler, instance, 6, args); - } - var onceHandler = props2[handlerName + "Once"]; - if (onceHandler) { - if (!instance.emitted) { - instance.emitted = {}; - } else if (instance.emitted[handlerName]) { - return; - } - instance.emitted[handlerName] = true; - callWithAsyncErrorHandling(onceHandler, instance, 6, args); - } - } - function normalizeEmitsOptions(comp, appContext) { - var asMixin = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false; - var cache2 = appContext.emitsCache; - var cached = cache2.get(comp); - if (cached !== void 0) { - return cached; - } - var raw = comp.emits; - var normalized = {}; - var hasExtends = false; - if (!isFunction(comp)) { - var extendEmits = (raw2) => { - var normalizedFromExtend = normalizeEmitsOptions(raw2, appContext, true); - if (normalizedFromExtend) { - hasExtends = true; - extend(normalized, normalizedFromExtend); - } - }; - if (!asMixin && appContext.mixins.length) { - appContext.mixins.forEach(extendEmits); - } - if (comp.extends) { - extendEmits(comp.extends); - } - if (comp.mixins) { - comp.mixins.forEach(extendEmits); - } - } - if (!raw && !hasExtends) { - cache2.set(comp, null); - return null; - } - if (isArray$1(raw)) { - raw.forEach((key2) => normalized[key2] = null); - } else { - extend(normalized, raw); - } - cache2.set(comp, normalized); - return normalized; - } - function isEmitListener(options, key2) { - if (!options || !isOn(key2)) { - return false; - } - key2 = key2.slice(2).replace(/Once$/, ""); - return hasOwn$1(options, key2[0].toLowerCase() + key2.slice(1)) || hasOwn$1(options, hyphenate(key2)) || hasOwn$1(options, key2); - } - var currentRenderingInstance = null; - var currentScopeId = null; - function setCurrentRenderingInstance(instance) { - var prev = currentRenderingInstance; - currentRenderingInstance = instance; - currentScopeId = instance && instance.type.__scopeId || null; - return prev; - } - function withCtx(fn) { - var ctx2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : currentRenderingInstance; - if (!ctx2) - return fn; - if (fn._n) { - return fn; - } - var renderFnWithContext = function() { - if (renderFnWithContext._d) { - setBlockTracking(-1); - } - var prevInstance = setCurrentRenderingInstance(ctx2); - var res = fn(...arguments); - setCurrentRenderingInstance(prevInstance); - if (renderFnWithContext._d) { - setBlockTracking(1); - } - return res; - }; - renderFnWithContext._n = true; - renderFnWithContext._c = true; - renderFnWithContext._d = true; - return renderFnWithContext; - } - function markAttrsAccessed() { - } - function renderComponentRoot(instance) { - var { - type: Component, - vnode, - proxy, - withProxy, - props: props2, - propsOptions: [propsOptions], - slots, - attrs: attrs2, - emit: emit2, - render, - renderCache, - data, - setupState, - ctx: ctx2, - inheritAttrs - } = instance; - var result; - var fallthroughAttrs; - var prev = setCurrentRenderingInstance(instance); - try { - if (vnode.shapeFlag & 4) { - var proxyToUse = withProxy || proxy; - result = normalizeVNode(render.call(proxyToUse, proxyToUse, renderCache, props2, setupState, data, ctx2)); - fallthroughAttrs = attrs2; - } else { - var _render = Component; - if (false) - ; - result = normalizeVNode(_render.length > 1 ? _render(props2, false ? { - get attrs() { - markAttrsAccessed(); - return attrs2; - }, - slots, - emit: emit2 - } : { - attrs: attrs2, - slots, - emit: emit2 - }) : _render(props2, null)); - fallthroughAttrs = Component.props ? attrs2 : getFunctionalFallthrough(attrs2); - } - } catch (err2) { - handleError(err2, instance, 1); - result = createVNode(Comment); - } - var root = result; - if (fallthroughAttrs && inheritAttrs !== false) { - var keys = Object.keys(fallthroughAttrs); - var { - shapeFlag - } = root; - if (keys.length) { - if (shapeFlag & (1 | 6)) { - if (propsOptions && keys.some(isModelListener)) { - fallthroughAttrs = filterModelListeners(fallthroughAttrs, propsOptions); - } - root = cloneVNode(root, fallthroughAttrs); - } - } - } - if (vnode.dirs) { - root.dirs = root.dirs ? root.dirs.concat(vnode.dirs) : vnode.dirs; - } - if (vnode.transition) { - root.transition = vnode.transition; - } - { - result = root; - } - setCurrentRenderingInstance(prev); - return result; - } - var getFunctionalFallthrough = (attrs2) => { - var res; - for (var key2 in attrs2) { - if (key2 === "class" || key2 === "style" || isOn(key2)) { - (res || (res = {}))[key2] = attrs2[key2]; - } - } - return res; - }; - var filterModelListeners = (attrs2, props2) => { - var res = {}; - for (var key2 in attrs2) { - if (!isModelListener(key2) || !(key2.slice(9) in props2)) { - res[key2] = attrs2[key2]; - } - } - return res; - }; - function shouldUpdateComponent(prevVNode, nextVNode, optimized) { - var { - props: prevProps, - children: prevChildren, - component - } = prevVNode; - var { - props: nextProps, - children: nextChildren, - patchFlag - } = nextVNode; - var emits2 = component.emitsOptions; - if (nextVNode.dirs || nextVNode.transition) { - return true; - } - if (optimized && patchFlag >= 0) { - if (patchFlag & 1024) { - return true; - } - if (patchFlag & 16) { - if (!prevProps) { - return !!nextProps; - } - return hasPropsChanged(prevProps, nextProps, emits2); - } else if (patchFlag & 8) { - var dynamicProps = nextVNode.dynamicProps; - for (var i2 = 0; i2 < dynamicProps.length; i2++) { - var key2 = dynamicProps[i2]; - if (nextProps[key2] !== prevProps[key2] && !isEmitListener(emits2, key2)) { - return true; - } - } - } - } else { - if (prevChildren || nextChildren) { - if (!nextChildren || !nextChildren.$stable) { - return true; - } - } - if (prevProps === nextProps) { - return false; - } - if (!prevProps) { - return !!nextProps; - } - if (!nextProps) { - return true; - } - return hasPropsChanged(prevProps, nextProps, emits2); - } - return false; - } - function hasPropsChanged(prevProps, nextProps, emitsOptions) { - var nextKeys = Object.keys(nextProps); - if (nextKeys.length !== Object.keys(prevProps).length) { - return true; - } - for (var i2 = 0; i2 < nextKeys.length; i2++) { - var key2 = nextKeys[i2]; - if (nextProps[key2] !== prevProps[key2] && !isEmitListener(emitsOptions, key2)) { - return true; - } - } - return false; - } - function updateHOCHostEl(_ref5, el) { - var { - vnode, - parent - } = _ref5; - while (parent && parent.subTree === vnode) { - (vnode = parent.vnode).el = el; - parent = parent.parent; - } - } - var isSuspense = (type) => type.__isSuspense; - function queueEffectWithSuspense(fn, suspense) { - if (suspense && suspense.pendingBranch) { - if (isArray$1(fn)) { - suspense.effects.push(...fn); - } else { - suspense.effects.push(fn); - } - } else { - queuePostFlushCb(fn); - } - } - function provide(key2, value) { - if (!currentInstance) - ; - else { - var provides = currentInstance.provides; - var parentProvides = currentInstance.parent && currentInstance.parent.provides; - if (parentProvides === provides) { - provides = currentInstance.provides = Object.create(parentProvides); - } - provides[key2] = value; - } - } - function inject(key2, defaultValue) { - var treatDefaultAsFactory = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false; - var instance = currentInstance || currentRenderingInstance; - if (instance) { - var provides = instance.parent == null ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides; - if (provides && key2 in provides) { - return provides[key2]; - } else if (arguments.length > 1) { - return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance.proxy) : defaultValue; - } else - ; - } - } - function watchEffect(effect, options) { - return doWatch(effect, null, options); - } - var INITIAL_WATCHER_VALUE = {}; - function watch(source, cb, options) { - return doWatch(source, cb, options); - } - function doWatch(source, cb) { - var { - immediate, - deep, - flush, - onTrack, - onTrigger - } = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : EMPTY_OBJ; - var instance = currentInstance; - var getter; - var forceTrigger = false; - var isMultiSource = false; - if (isRef(source)) { - getter = () => source.value; - forceTrigger = isShallow(source); - } else if (isReactive(source)) { - getter = () => source; - deep = true; - } else if (isArray$1(source)) { - isMultiSource = true; - forceTrigger = source.some(isReactive); - getter = () => source.map((s) => { - if (isRef(s)) { - return s.value; - } else if (isReactive(s)) { - return traverse(s); - } else if (isFunction(s)) { - return callWithErrorHandling(s, instance, 2); - } else - ; - }); - } else if (isFunction(source)) { - if (cb) { - getter = () => callWithErrorHandling(source, instance, 2); - } else { - getter = () => { - if (instance && instance.isUnmounted) { - return; - } - if (cleanup) { - cleanup(); - } - return callWithAsyncErrorHandling(source, instance, 3, [onCleanup]); - }; - } - } else { - getter = NOOP; - } - if (cb && deep) { - var baseGetter = getter; - getter = () => traverse(baseGetter()); - } - var cleanup; - var onCleanup = (fn) => { - cleanup = effect.onStop = () => { - callWithErrorHandling(fn, instance, 4); - }; - }; - if (isInSSRComponentSetup) { - onCleanup = NOOP; - if (!cb) { - getter(); - } else if (immediate) { - callWithAsyncErrorHandling(cb, instance, 3, [getter(), isMultiSource ? [] : void 0, onCleanup]); - } - return NOOP; - } - var oldValue = isMultiSource ? [] : INITIAL_WATCHER_VALUE; - var job = () => { - if (!effect.active) { - return; - } - if (cb) { - var newValue = effect.run(); - if (deep || forceTrigger || (isMultiSource ? newValue.some((v2, i2) => hasChanged(v2, oldValue[i2])) : hasChanged(newValue, oldValue)) || false) { - if (cleanup) { - cleanup(); - } - callWithAsyncErrorHandling(cb, instance, 3, [ - newValue, - oldValue === INITIAL_WATCHER_VALUE ? void 0 : oldValue, - onCleanup - ]); - oldValue = newValue; - } - } else { - effect.run(); - } - }; - job.allowRecurse = !!cb; - var scheduler; - if (flush === "sync") { - scheduler = job; - } else if (flush === "post") { - scheduler = () => queuePostRenderEffect(job, instance && instance.suspense); - } else { - scheduler = () => { - if (!instance || instance.isMounted) { - queuePreFlushCb(job); - } else { - job(); - } - }; - } - var effect = new ReactiveEffect(getter, scheduler); - if (cb) { - if (immediate) { - job(); - } else { - oldValue = effect.run(); - } - } else if (flush === "post") { - queuePostRenderEffect(effect.run.bind(effect), instance && instance.suspense); - } else { - effect.run(); - } - return () => { - effect.stop(); - if (instance && instance.scope) { - remove(instance.scope.effects, effect); - } - }; - } - function instanceWatch(source, value, options) { - var publicThis = this.proxy; - var getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis); - var cb; - if (isFunction(value)) { - cb = value; - } else { - cb = value.handler; - options = value; - } - var cur = currentInstance; - setCurrentInstance(this); - var res = doWatch(getter, cb.bind(publicThis), options); - if (cur) { - setCurrentInstance(cur); - } else { - unsetCurrentInstance(); - } - return res; - } - function createPathGetter(ctx2, path) { - var segments = path.split("."); - return () => { - var cur = ctx2; - for (var i2 = 0; i2 < segments.length && cur; i2++) { - cur = cur[segments[i2]]; - } - return cur; - }; - } - function traverse(value, seen) { - if (!isObject$1(value) || value["__v_skip"]) { - return value; - } - seen = seen || /* @__PURE__ */ new Set(); - if (seen.has(value)) { - return value; - } - seen.add(value); - if (isRef(value)) { - traverse(value.value, seen); - } else if (isArray$1(value)) { - for (var i2 = 0; i2 < value.length; i2++) { - traverse(value[i2], seen); - } - } else if (isSet(value) || isMap(value)) { - value.forEach((v2) => { - traverse(v2, seen); - }); - } else if (isPlainObject(value)) { - for (var key2 in value) { - traverse(value[key2], seen); - } - } - return value; - } - function defineComponent(options) { - return isFunction(options) ? { - setup: options, - name: options.name - } : options; - } - var isAsyncWrapper = (i2) => !!i2.type.__asyncLoader; - var isKeepAlive = (vnode) => vnode.type.__isKeepAlive; - function onActivated(hook, target) { - registerKeepAliveHook(hook, "a", target); - } - function onDeactivated(hook, target) { - registerKeepAliveHook(hook, "da", target); - } - function registerKeepAliveHook(hook, type) { - var target = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : currentInstance; - var wrappedHook = hook.__wdc || (hook.__wdc = () => { - var current2 = target; - while (current2) { - if (current2.isDeactivated) { - return; - } - current2 = current2.parent; - } - return hook(); - }); - injectHook(type, wrappedHook, target); - if (target) { - var current = target.parent; - while (current && current.parent) { - if (isKeepAlive(current.parent.vnode)) { - injectToKeepAliveRoot(wrappedHook, type, target, current); - } - current = current.parent; - } - } - } - function injectToKeepAliveRoot(hook, type, target, keepAliveRoot) { - var injected = injectHook(type, hook, keepAliveRoot, true); - onUnmounted(() => { - remove(keepAliveRoot[type], injected); - }, target); - } - function injectHook(type, hook) { - var target = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : currentInstance; - var prepend = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false; - if (target) { - var hooks = target[type] || (target[type] = []); - var wrappedHook = hook.__weh || (hook.__weh = function() { - if (target.isUnmounted) { - return; - } - pauseTracking(); - setCurrentInstance(target); - for (var _len7 = arguments.length, args = new Array(_len7), _key8 = 0; _key8 < _len7; _key8++) { - args[_key8] = arguments[_key8]; - } - var res = callWithAsyncErrorHandling(hook, target, type, args); - unsetCurrentInstance(); - resetTracking(); - return res; - }); - if (prepend) { - hooks.unshift(wrappedHook); - } else { - hooks.push(wrappedHook); - } - return wrappedHook; - } - } - var createHook = (lifecycle) => function(hook) { - var target = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : currentInstance; - return (!isInSSRComponentSetup || lifecycle === "sp") && injectHook(lifecycle, hook, target); - }; - var onBeforeMount = createHook("bm"); - var onMounted = createHook("m"); - var onBeforeUpdate = createHook("bu"); - var onUpdated = createHook("u"); - var onBeforeUnmount = createHook("bum"); - var onUnmounted = createHook("um"); - var onServerPrefetch = createHook("sp"); - var onRenderTriggered = createHook("rtg"); - var onRenderTracked = createHook("rtc"); - function onErrorCaptured(hook) { - var target = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : currentInstance; - injectHook("ec", hook, target); - } - var shouldCacheAccess = true; - function applyOptions(instance) { - var options = resolveMergedOptions(instance); - var publicThis = instance.proxy; - var ctx2 = instance.ctx; - shouldCacheAccess = false; - if (options.beforeCreate) { - callHook(options.beforeCreate, instance, "bc"); - } - var { - data: dataOptions, - computed: computedOptions, - methods: methods2, - watch: watchOptions, - provide: provideOptions, - inject: injectOptions, - created, - beforeMount, - mounted, - beforeUpdate, - updated, - activated, - deactivated, - beforeDestroy, - beforeUnmount, - destroyed, - unmounted, - render, - renderTracked, - renderTriggered, - errorCaptured, - serverPrefetch, - expose, - inheritAttrs, - components, - directives, - filters - } = options; - var checkDuplicateProperties = null; - if (injectOptions) { - resolveInjections(injectOptions, ctx2, checkDuplicateProperties, instance.appContext.config.unwrapInjectedRef); - } - if (methods2) { - for (var _key9 in methods2) { - var methodHandler = methods2[_key9]; - if (isFunction(methodHandler)) { - { - ctx2[_key9] = methodHandler.bind(publicThis); - } - } - } - } - if (dataOptions) { - (function() { - var data = dataOptions.call(publicThis, publicThis); - if (!isObject$1(data)) - ; - else { - instance.data = reactive(data); - } - })(); - } - shouldCacheAccess = true; - if (computedOptions) { - var _loop2 = function(_key112) { - var opt = computedOptions[_key112]; - var get2 = isFunction(opt) ? opt.bind(publicThis, publicThis) : isFunction(opt.get) ? opt.get.bind(publicThis, publicThis) : NOOP; - var set2 = !isFunction(opt) && isFunction(opt.set) ? opt.set.bind(publicThis) : NOOP; - var c2 = computed$1({ - get: get2, - set: set2 - }); - Object.defineProperty(ctx2, _key112, { - enumerable: true, - configurable: true, - get: () => c2.value, - set: (v2) => c2.value = v2 - }); - }; - for (var _key11 in computedOptions) { - _loop2(_key11); - } - } - if (watchOptions) { - for (var _key12 in watchOptions) { - createWatcher(watchOptions[_key12], ctx2, publicThis, _key12); - } - } - if (provideOptions) { - var provides = isFunction(provideOptions) ? provideOptions.call(publicThis) : provideOptions; - Reflect.ownKeys(provides).forEach((key2) => { - provide(key2, provides[key2]); - }); - } - if (created) { - callHook(created, instance, "c"); - } - function registerLifecycleHook(register2, hook) { - if (isArray$1(hook)) { - hook.forEach((_hook) => register2(_hook.bind(publicThis))); - } else if (hook) { - register2(hook.bind(publicThis)); - } - } - registerLifecycleHook(onBeforeMount, beforeMount); - registerLifecycleHook(onMounted, mounted); - registerLifecycleHook(onBeforeUpdate, beforeUpdate); - registerLifecycleHook(onUpdated, updated); - registerLifecycleHook(onActivated, activated); - registerLifecycleHook(onDeactivated, deactivated); - registerLifecycleHook(onErrorCaptured, errorCaptured); - registerLifecycleHook(onRenderTracked, renderTracked); - registerLifecycleHook(onRenderTriggered, renderTriggered); - registerLifecycleHook(onBeforeUnmount, beforeUnmount); - registerLifecycleHook(onUnmounted, unmounted); - registerLifecycleHook(onServerPrefetch, serverPrefetch); - if (isArray$1(expose)) { - if (expose.length) { - var exposed = instance.exposed || (instance.exposed = {}); - expose.forEach((key2) => { - Object.defineProperty(exposed, key2, { - get: () => publicThis[key2], - set: (val) => publicThis[key2] = val - }); - }); - } else if (!instance.exposed) { - instance.exposed = {}; - } - } - if (render && instance.render === NOOP) { - instance.render = render; - } - if (inheritAttrs != null) { - instance.inheritAttrs = inheritAttrs; - } - if (components) - instance.components = components; - if (directives) - instance.directives = directives; - } - function resolveInjections(injectOptions, ctx2) { - var unwrapRef = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false; - if (isArray$1(injectOptions)) { - injectOptions = normalizeInject(injectOptions); - } - var _loop3 = function(key3) { - var opt = injectOptions[key3]; - var injected = void 0; - if (isObject$1(opt)) { - if ("default" in opt) { - injected = inject(opt.from || key3, opt.default, true); - } else { - injected = inject(opt.from || key3); - } - } else { - injected = inject(opt); - } - if (isRef(injected)) { - if (unwrapRef) { - Object.defineProperty(ctx2, key3, { - enumerable: true, - configurable: true, - get: () => injected.value, - set: (v2) => injected.value = v2 - }); - } else { - ctx2[key3] = injected; - } - } else { - ctx2[key3] = injected; - } - }; - for (var key2 in injectOptions) { - _loop3(key2); - } - } - function callHook(hook, instance, type) { - callWithAsyncErrorHandling(isArray$1(hook) ? hook.map((h2) => h2.bind(instance.proxy)) : hook.bind(instance.proxy), instance, type); - } - function createWatcher(raw, ctx2, publicThis, key2) { - var getter = key2.includes(".") ? createPathGetter(publicThis, key2) : () => publicThis[key2]; - if (isString(raw)) { - var handler = ctx2[raw]; - if (isFunction(handler)) { - watch(getter, handler); - } - } else if (isFunction(raw)) { - watch(getter, raw.bind(publicThis)); - } else if (isObject$1(raw)) { - if (isArray$1(raw)) { - raw.forEach((r) => createWatcher(r, ctx2, publicThis, key2)); - } else { - var _handler = isFunction(raw.handler) ? raw.handler.bind(publicThis) : ctx2[raw.handler]; - if (isFunction(_handler)) { - watch(getter, _handler, raw); - } - } - } else - ; - } - function resolveMergedOptions(instance) { - var base2 = instance.type; - var { - mixins, - extends: extendsOptions - } = base2; - var { - mixins: globalMixins, - optionsCache: cache2, - config: { - optionMergeStrategies - } - } = instance.appContext; - var cached = cache2.get(base2); - var resolved; - if (cached) { - resolved = cached; - } else if (!globalMixins.length && !mixins && !extendsOptions) { - { - resolved = base2; - } - } else { - resolved = {}; - if (globalMixins.length) { - globalMixins.forEach((m) => mergeOptions(resolved, m, optionMergeStrategies, true)); - } - mergeOptions(resolved, base2, optionMergeStrategies); - } - cache2.set(base2, resolved); - return resolved; - } - function mergeOptions(to, from, strats) { - var asMixin = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false; - var { - mixins, - extends: extendsOptions - } = from; - if (extendsOptions) { - mergeOptions(to, extendsOptions, strats, true); - } - if (mixins) { - mixins.forEach((m) => mergeOptions(to, m, strats, true)); - } - for (var key2 in from) { - if (asMixin && key2 === "expose") - ; - else { - var strat = internalOptionMergeStrats[key2] || strats && strats[key2]; - to[key2] = strat ? strat(to[key2], from[key2]) : from[key2]; - } - } - return to; - } - var internalOptionMergeStrats = { - data: mergeDataFn, - props: mergeObjectOptions, - emits: mergeObjectOptions, - methods: mergeObjectOptions, - computed: mergeObjectOptions, - beforeCreate: mergeAsArray, - created: mergeAsArray, - beforeMount: mergeAsArray, - mounted: mergeAsArray, - beforeUpdate: mergeAsArray, - updated: mergeAsArray, - beforeDestroy: mergeAsArray, - beforeUnmount: mergeAsArray, - destroyed: mergeAsArray, - unmounted: mergeAsArray, - activated: mergeAsArray, - deactivated: mergeAsArray, - errorCaptured: mergeAsArray, - serverPrefetch: mergeAsArray, - components: mergeObjectOptions, - directives: mergeObjectOptions, - watch: mergeWatchOptions, - provide: mergeDataFn, - inject: mergeInject - }; - function mergeDataFn(to, from) { - if (!from) { - return to; - } - if (!to) { - return from; - } - return function mergedDataFn() { - return extend(isFunction(to) ? to.call(this, this) : to, isFunction(from) ? from.call(this, this) : from); - }; - } - function mergeInject(to, from) { - return mergeObjectOptions(normalizeInject(to), normalizeInject(from)); - } - function normalizeInject(raw) { - if (isArray$1(raw)) { - var res = {}; - for (var i2 = 0; i2 < raw.length; i2++) { - res[raw[i2]] = raw[i2]; - } - return res; - } - return raw; - } - function mergeAsArray(to, from) { - return to ? [...new Set([].concat(to, from))] : from; - } - function mergeObjectOptions(to, from) { - return to ? extend(extend(/* @__PURE__ */ Object.create(null), to), from) : from; - } - function mergeWatchOptions(to, from) { - if (!to) - return from; - if (!from) - return to; - var merged = extend(/* @__PURE__ */ Object.create(null), to); - for (var key2 in from) { - merged[key2] = mergeAsArray(to[key2], from[key2]); - } - return merged; - } - function initProps(instance, rawProps, isStateful) { - var isSSR = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false; - var props2 = {}; - var attrs2 = {}; - def(attrs2, InternalObjectKey, 1); - instance.propsDefaults = /* @__PURE__ */ Object.create(null); - setFullProps(instance, rawProps, props2, attrs2); - for (var key2 in instance.propsOptions[0]) { - if (!(key2 in props2)) { - props2[key2] = void 0; - } - } - if (isStateful) { - instance.props = isSSR ? props2 : shallowReactive(props2); - } else { - if (!instance.type.props) { - instance.props = attrs2; - } else { - instance.props = props2; - } - } - instance.attrs = attrs2; - } - function updateProps(instance, rawProps, rawPrevProps, optimized) { - var { - props: props2, - attrs: attrs2, - vnode: { - patchFlag - } - } = instance; - var rawCurrentProps = toRaw(props2); - var [options] = instance.propsOptions; - var hasAttrsChanged = false; - if ((optimized || patchFlag > 0) && !(patchFlag & 16)) { - if (patchFlag & 8) { - var propsToUpdate = instance.vnode.dynamicProps; - for (var i2 = 0; i2 < propsToUpdate.length; i2++) { - var key2 = propsToUpdate[i2]; - var value = rawProps[key2]; - if (options) { - if (hasOwn$1(attrs2, key2)) { - if (value !== attrs2[key2]) { - attrs2[key2] = value; - hasAttrsChanged = true; - } - } else { - var camelizedKey = camelize(key2); - props2[camelizedKey] = resolvePropValue(options, rawCurrentProps, camelizedKey, value, instance, false); - } - } else { - if (value !== attrs2[key2]) { - attrs2[key2] = value; - hasAttrsChanged = true; - } - } - } - } - } else { - if (setFullProps(instance, rawProps, props2, attrs2)) { - hasAttrsChanged = true; - } - var kebabKey; - for (var _key13 in rawCurrentProps) { - if (!rawProps || !hasOwn$1(rawProps, _key13) && ((kebabKey = hyphenate(_key13)) === _key13 || !hasOwn$1(rawProps, kebabKey))) { - if (options) { - if (rawPrevProps && (rawPrevProps[_key13] !== void 0 || rawPrevProps[kebabKey] !== void 0)) { - props2[_key13] = resolvePropValue(options, rawCurrentProps, _key13, void 0, instance, true); - } - } else { - delete props2[_key13]; - } - } - } - if (attrs2 !== rawCurrentProps) { - for (var _key14 in attrs2) { - if (!rawProps || !hasOwn$1(rawProps, _key14) && true) { - delete attrs2[_key14]; - hasAttrsChanged = true; - } - } - } - } - if (hasAttrsChanged) { - trigger(instance, "set", "$attrs"); - } - } - function setFullProps(instance, rawProps, props2, attrs2) { - var [options, needCastKeys] = instance.propsOptions; - var hasAttrsChanged = false; - var rawCastValues; - if (rawProps) { - for (var key2 in rawProps) { - if (isReservedProp(key2)) { - continue; - } - var value = rawProps[key2]; - var camelKey = void 0; - if (options && hasOwn$1(options, camelKey = camelize(key2))) { - if (!needCastKeys || !needCastKeys.includes(camelKey)) { - props2[camelKey] = value; - } else { - (rawCastValues || (rawCastValues = {}))[camelKey] = value; - } - } else if (!isEmitListener(instance.emitsOptions, key2)) { - if (!(key2 in attrs2) || value !== attrs2[key2]) { - attrs2[key2] = value; - hasAttrsChanged = true; - } - } - } - } - if (needCastKeys) { - var rawCurrentProps = toRaw(props2); - var castValues = rawCastValues || EMPTY_OBJ; - for (var i2 = 0; i2 < needCastKeys.length; i2++) { - var _key15 = needCastKeys[i2]; - props2[_key15] = resolvePropValue(options, rawCurrentProps, _key15, castValues[_key15], instance, !hasOwn$1(castValues, _key15)); - } - } - return hasAttrsChanged; - } - function resolvePropValue(options, props2, key2, value, instance, isAbsent) { - var opt = options[key2]; - if (opt != null) { - var hasDefault = hasOwn$1(opt, "default"); - if (hasDefault && value === void 0) { - var defaultValue = opt.default; - if (opt.type !== Function && isFunction(defaultValue)) { - var { - propsDefaults - } = instance; - if (key2 in propsDefaults) { - value = propsDefaults[key2]; - } else { - setCurrentInstance(instance); - value = propsDefaults[key2] = defaultValue.call(null, props2); - unsetCurrentInstance(); - } - } else { - value = defaultValue; - } - } - if (opt[0]) { - if (isAbsent && !hasDefault) { - value = false; - } else if (opt[1] && (value === "" || value === hyphenate(key2))) { - value = true; - } - } - } - return value; - } - function normalizePropsOptions(comp, appContext) { - var asMixin = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false; - var cache2 = appContext.propsCache; - var cached = cache2.get(comp); - if (cached) { - return cached; - } - var raw = comp.props; - var normalized = {}; - var needCastKeys = []; - var hasExtends = false; - if (!isFunction(comp)) { - var extendProps = (raw2) => { - hasExtends = true; - var [props2, keys] = normalizePropsOptions(raw2, appContext, true); - extend(normalized, props2); - if (keys) - needCastKeys.push(...keys); - }; - if (!asMixin && appContext.mixins.length) { - appContext.mixins.forEach(extendProps); - } - if (comp.extends) { - extendProps(comp.extends); - } - if (comp.mixins) { - comp.mixins.forEach(extendProps); - } - } - if (!raw && !hasExtends) { - cache2.set(comp, EMPTY_ARR); - return EMPTY_ARR; - } - if (isArray$1(raw)) { - for (var i2 = 0; i2 < raw.length; i2++) { - var normalizedKey = camelize(raw[i2]); - if (validatePropName(normalizedKey)) { - normalized[normalizedKey] = EMPTY_OBJ; - } - } - } else if (raw) { - for (var key2 in raw) { - var _normalizedKey = camelize(key2); - if (validatePropName(_normalizedKey)) { - var opt = raw[key2]; - var prop = normalized[_normalizedKey] = isArray$1(opt) || isFunction(opt) ? { - type: opt - } : opt; - if (prop) { - var booleanIndex = getTypeIndex(Boolean, prop.type); - var stringIndex = getTypeIndex(String, prop.type); - prop[0] = booleanIndex > -1; - prop[1] = stringIndex < 0 || booleanIndex < stringIndex; - if (booleanIndex > -1 || hasOwn$1(prop, "default")) { - needCastKeys.push(_normalizedKey); - } - } - } - } - } - var res = [normalized, needCastKeys]; - cache2.set(comp, res); - return res; - } - function validatePropName(key2) { - if (key2[0] !== "$") { - return true; - } - return false; - } - function getType(ctor) { - var match = ctor && ctor.toString().match(/^\s*function (\w+)/); - return match ? match[1] : ctor === null ? "null" : ""; - } - function isSameType(a2, b) { - return getType(a2) === getType(b); - } - function getTypeIndex(type, expectedTypes) { - if (isArray$1(expectedTypes)) { - return expectedTypes.findIndex((t2) => isSameType(t2, type)); - } else if (isFunction(expectedTypes)) { - return isSameType(expectedTypes, type) ? 0 : -1; - } - return -1; - } - var isInternalKey = (key2) => key2[0] === "_" || key2 === "$stable"; - var normalizeSlotValue = (value) => isArray$1(value) ? value.map(normalizeVNode) : [normalizeVNode(value)]; - var normalizeSlot = (key2, rawSlot, ctx2) => { - var normalized = withCtx(function() { - return normalizeSlotValue(rawSlot(...arguments)); - }, ctx2); - normalized._c = false; - return normalized; - }; - var normalizeObjectSlots = (rawSlots, slots, instance) => { - var ctx2 = rawSlots._ctx; - for (var key2 in rawSlots) { - if (isInternalKey(key2)) - continue; - var value = rawSlots[key2]; - if (isFunction(value)) { - slots[key2] = normalizeSlot(key2, value, ctx2); - } else if (value != null) { - (function() { - var normalized = normalizeSlotValue(value); - slots[key2] = () => normalized; - })(); - } - } - }; - var normalizeVNodeSlots = (instance, children) => { - var normalized = normalizeSlotValue(children); - instance.slots.default = () => normalized; - }; - var initSlots = (instance, children) => { - if (instance.vnode.shapeFlag & 32) { - var type = children._; - if (type) { - instance.slots = toRaw(children); - def(children, "_", type); - } else { - normalizeObjectSlots(children, instance.slots = {}); - } - } else { - instance.slots = {}; - if (children) { - normalizeVNodeSlots(instance, children); - } - } - def(instance.slots, InternalObjectKey, 1); - }; - var updateSlots = (instance, children, optimized) => { - var { - vnode, - slots - } = instance; - var needDeletionCheck = true; - var deletionComparisonTarget = EMPTY_OBJ; - if (vnode.shapeFlag & 32) { - var type = children._; - if (type) { - if (optimized && type === 1) { - needDeletionCheck = false; - } else { - extend(slots, children); - if (!optimized && type === 1) { - delete slots._; - } - } - } else { - needDeletionCheck = !children.$stable; - normalizeObjectSlots(children, slots); - } - deletionComparisonTarget = children; - } else if (children) { - normalizeVNodeSlots(instance, children); - deletionComparisonTarget = { - default: 1 - }; - } - if (needDeletionCheck) { - for (var key2 in slots) { - if (!isInternalKey(key2) && !(key2 in deletionComparisonTarget)) { - delete slots[key2]; - } - } - } - }; - function withDirectives(vnode, directives) { - var internalInstance = currentRenderingInstance; - if (internalInstance === null) { - return vnode; - } - var instance = internalInstance.proxy; - var bindings = vnode.dirs || (vnode.dirs = []); - for (var i2 = 0; i2 < directives.length; i2++) { - var [dir, value, arg, modifiers = EMPTY_OBJ] = directives[i2]; - if (isFunction(dir)) { - dir = { - mounted: dir, - updated: dir - }; - } - if (dir.deep) { - traverse(value); - } - bindings.push({ - dir, - instance, - value, - oldValue: void 0, - arg, - modifiers - }); - } - return vnode; - } - function invokeDirectiveHook(vnode, prevVNode, instance, name) { - var bindings = vnode.dirs; - var oldBindings = prevVNode && prevVNode.dirs; - for (var i2 = 0; i2 < bindings.length; i2++) { - var binding = bindings[i2]; - if (oldBindings) { - binding.oldValue = oldBindings[i2].value; - } - var hook = binding.dir[name]; - if (hook) { - pauseTracking(); - callWithAsyncErrorHandling(hook, instance, 8, [vnode.el, binding, vnode, prevVNode]); - resetTracking(); - } - } - } - function createAppContext() { - return { - app: null, - config: { - isNativeTag: NO, - performance: false, - globalProperties: {}, - optionMergeStrategies: {}, - errorHandler: void 0, - warnHandler: void 0, - compilerOptions: {} - }, - mixins: [], - components: {}, - directives: {}, - provides: /* @__PURE__ */ Object.create(null), - optionsCache: /* @__PURE__ */ new WeakMap(), - propsCache: /* @__PURE__ */ new WeakMap(), - emitsCache: /* @__PURE__ */ new WeakMap() - }; - } - var uid = 0; - function createAppAPI(render, hydrate) { - return function createApp2(rootComponent) { - var rootProps = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null; - if (rootProps != null && !isObject$1(rootProps)) { - rootProps = null; - } - var context = createAppContext(); - var installedPlugins = /* @__PURE__ */ new Set(); - var isMounted = false; - var app = context.app = { - _uid: uid++, - _component: rootComponent, - _props: rootProps, - _container: null, - _context: context, - _instance: null, - version, - get config() { - return context.config; - }, - set config(v2) { - }, - use(plugin) { - for (var _len9 = arguments.length, options = new Array(_len9 > 1 ? _len9 - 1 : 0), _key17 = 1; _key17 < _len9; _key17++) { - options[_key17 - 1] = arguments[_key17]; - } - if (installedPlugins.has(plugin)) - ; - else if (plugin && isFunction(plugin.install)) { - installedPlugins.add(plugin); - plugin.install(app, ...options); - } else if (isFunction(plugin)) { - installedPlugins.add(plugin); - plugin(app, ...options); - } else - ; - return app; - }, - mixin(mixin) { - { - if (!context.mixins.includes(mixin)) { - context.mixins.push(mixin); - } - } - return app; - }, - component(name, component) { - if (!component) { - return context.components[name]; - } - context.components[name] = component; - return app; - }, - directive(name, directive) { - if (!directive) { - return context.directives[name]; - } - context.directives[name] = directive; - return app; - }, - mount(rootContainer, isHydrate, isSVG) { - if (!isMounted) { - var vnode = createVNode(rootComponent, rootProps); - vnode.appContext = context; - if (isHydrate && hydrate) { - hydrate(vnode, rootContainer); - } else { - render(vnode, rootContainer, isSVG); - } - isMounted = true; - app._container = rootContainer; - rootContainer.__vue_app__ = app; - return getExposeProxy(vnode.component) || vnode.component.proxy; - } - }, - unmount() { - if (isMounted) { - render(null, app._container); - delete app._container.__vue_app__; - } - }, - provide(key2, value) { - context.provides[key2] = value; - return app; - } - }; - return app; - }; - } - function setRef(rawRef, oldRawRef, parentSuspense, vnode) { - var isUnmount = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : false; - if (isArray$1(rawRef)) { - rawRef.forEach((r, i2) => setRef(r, oldRawRef && (isArray$1(oldRawRef) ? oldRawRef[i2] : oldRawRef), parentSuspense, vnode, isUnmount)); - return; - } - if (isAsyncWrapper(vnode) && !isUnmount) { - return; - } - var refValue = vnode.shapeFlag & 4 ? getExposeProxy(vnode.component) || vnode.component.proxy : vnode.el; - var value = isUnmount ? null : refValue; - var { - i: owner, - r: ref2 - } = rawRef; - var oldRef = oldRawRef && oldRawRef.r; - var refs = owner.refs === EMPTY_OBJ ? owner.refs = {} : owner.refs; - var setupState = owner.setupState; - if (oldRef != null && oldRef !== ref2) { - if (isString(oldRef)) { - refs[oldRef] = null; - if (hasOwn$1(setupState, oldRef)) { - setupState[oldRef] = null; - } - } else if (isRef(oldRef)) { - oldRef.value = null; - } - } - if (isFunction(ref2)) { - callWithErrorHandling(ref2, owner, 12, [value, refs]); - } else { - var _isString = isString(ref2); - var _isRef = isRef(ref2); - if (_isString || _isRef) { - var doSet = () => { - if (rawRef.f) { - var existing = _isString ? refs[ref2] : ref2.value; - if (isUnmount) { - isArray$1(existing) && remove(existing, refValue); - } else { - if (!isArray$1(existing)) { - if (_isString) { - refs[ref2] = [refValue]; - } else { - ref2.value = [refValue]; - if (rawRef.k) - refs[rawRef.k] = ref2.value; - } - } else if (!existing.includes(refValue)) { - existing.push(refValue); - } - } - } else if (_isString) { - refs[ref2] = value; - if (hasOwn$1(setupState, ref2)) { - setupState[ref2] = value; - } - } else if (isRef(ref2)) { - ref2.value = value; - if (rawRef.k) - refs[rawRef.k] = value; - } else - ; - }; - if (value) { - doSet.id = -1; - queuePostRenderEffect(doSet, parentSuspense); - } else { - doSet(); - } - } - } - } - var queuePostRenderEffect = queueEffectWithSuspense; - function createRenderer(options) { - return baseCreateRenderer(options); - } - function baseCreateRenderer(options, createHydrationFns) { - var target = getGlobalThis(); - target.__VUE__ = true; - var { - insert: hostInsert, - remove: hostRemove, - patchProp: hostPatchProp, - createElement: hostCreateElement, - createText: hostCreateText, - createComment: hostCreateComment, - setText: hostSetText, - setElementText: hostSetElementText, - parentNode: hostParentNode, - nextSibling: hostNextSibling, - setScopeId: hostSetScopeId = NOOP, - cloneNode: hostCloneNode, - insertStaticContent: hostInsertStaticContent - } = options; - var patch = function(n1, n2, container) { - var anchor = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : null; - var parentComponent = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : null; - var parentSuspense = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : null; - var isSVG = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : false; - var slotScopeIds = arguments.length > 7 && arguments[7] !== void 0 ? arguments[7] : null; - var optimized = arguments.length > 8 && arguments[8] !== void 0 ? arguments[8] : !!n2.dynamicChildren; - if (n1 === n2) { - return; - } - if (n1 && !isSameVNodeType(n1, n2)) { - anchor = getNextHostNode(n1); - unmount(n1, parentComponent, parentSuspense, true); - n1 = null; - } - if (n2.patchFlag === -2) { - optimized = false; - n2.dynamicChildren = null; - } - var { - type, - ref: ref2, - shapeFlag - } = n2; - switch (type) { - case Text$1: - processText(n1, n2, container, anchor); - break; - case Comment: - processCommentNode(n1, n2, container, anchor); - break; - case Static: - if (n1 == null) { - mountStaticNode(n2, container, anchor, isSVG); - } - break; - case Fragment: - processFragment(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); - break; - default: - if (shapeFlag & 1) { - processElement(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); - } else if (shapeFlag & 6) { - processComponent(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); - } else if (shapeFlag & 64) { - type.process(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, internals); - } else if (shapeFlag & 128) { - type.process(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, internals); - } else - ; - } - if (ref2 != null && parentComponent) { - setRef(ref2, n1 && n1.ref, parentSuspense, n2 || n1, !n2); - } - }; - var processText = (n1, n2, container, anchor) => { - if (n1 == null) { - hostInsert(n2.el = hostCreateText(n2.children), container, anchor); - } else { - var el = n2.el = n1.el; - if (n2.children !== n1.children) { - hostSetText(el, n2.children); - } - } - }; - var processCommentNode = (n1, n2, container, anchor) => { - if (n1 == null) { - hostInsert(n2.el = hostCreateComment(n2.children || ""), container, anchor); - } else { - n2.el = n1.el; - } - }; - var mountStaticNode = (n2, container, anchor, isSVG) => { - [n2.el, n2.anchor] = hostInsertStaticContent(n2.children, container, anchor, isSVG, n2.el, n2.anchor); - }; - var moveStaticNode = (_ref11, container, nextSibling) => { - var { - el, - anchor - } = _ref11; - var next; - while (el && el !== anchor) { - next = hostNextSibling(el); - hostInsert(el, container, nextSibling); - el = next; - } - hostInsert(anchor, container, nextSibling); - }; - var removeStaticNode = (_ref12) => { - var { - el, - anchor - } = _ref12; - var next; - while (el && el !== anchor) { - next = hostNextSibling(el); - hostRemove(el); - el = next; - } - hostRemove(anchor); - }; - var processElement = (n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => { - isSVG = isSVG || n2.type === "svg"; - if (n1 == null) { - mountElement(n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); - } else { - patchElement(n1, n2, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); - } - }; - var mountElement = (vnode, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => { - var el; - var vnodeHook; - var { - type, - props: props2, - shapeFlag, - transition, - patchFlag, - dirs - } = vnode; - if (vnode.el && hostCloneNode !== void 0 && patchFlag === -1) { - el = vnode.el = hostCloneNode(vnode.el); - } else { - el = vnode.el = hostCreateElement(vnode.type, isSVG, props2 && props2.is, props2); - if (shapeFlag & 8) { - hostSetElementText(el, vnode.children); - } else if (shapeFlag & 16) { - mountChildren(vnode.children, el, null, parentComponent, parentSuspense, isSVG && type !== "foreignObject", slotScopeIds, optimized); - } - if (dirs) { - invokeDirectiveHook(vnode, null, parentComponent, "created"); - } - if (props2) { - for (var key2 in props2) { - if (key2 !== "value" && !isReservedProp(key2)) { - hostPatchProp(el, key2, null, props2[key2], isSVG, vnode.children, parentComponent, parentSuspense, unmountChildren); - } - } - if ("value" in props2) { - hostPatchProp(el, "value", null, props2.value); - } - if (vnodeHook = props2.onVnodeBeforeMount) { - invokeVNodeHook(vnodeHook, parentComponent, vnode); - } - } - setScopeId(el, vnode, vnode.scopeId, slotScopeIds, parentComponent); - } - Object.defineProperty(el, "__vueParentComponent", { - value: parentComponent, - enumerable: false - }); - if (dirs) { - invokeDirectiveHook(vnode, null, parentComponent, "beforeMount"); - } - var needCallTransitionHooks = (!parentSuspense || parentSuspense && !parentSuspense.pendingBranch) && transition && !transition.persisted; - if (needCallTransitionHooks) { - transition.beforeEnter(el); - } - hostInsert(el, container, anchor); - if ((vnodeHook = props2 && props2.onVnodeMounted) || needCallTransitionHooks || dirs) { - queuePostRenderEffect(() => { - vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, vnode); - needCallTransitionHooks && transition.enter(el); - dirs && invokeDirectiveHook(vnode, null, parentComponent, "mounted"); - }, parentSuspense); - } - }; - var setScopeId = (el, vnode, scopeId, slotScopeIds, parentComponent) => { - if (scopeId) { - hostSetScopeId(el, scopeId); - } - if (slotScopeIds) { - for (var i2 = 0; i2 < slotScopeIds.length; i2++) { - hostSetScopeId(el, slotScopeIds[i2]); - } - } - if (parentComponent) { - var subTree = parentComponent.subTree; - if (vnode === subTree) { - var parentVNode = parentComponent.vnode; - setScopeId(el, parentVNode, parentVNode.scopeId, parentVNode.slotScopeIds, parentComponent.parent); - } - } - }; - var mountChildren = function(children, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) { - var start = arguments.length > 8 && arguments[8] !== void 0 ? arguments[8] : 0; - for (var i2 = start; i2 < children.length; i2++) { - var child = children[i2] = optimized ? cloneIfMounted(children[i2]) : normalizeVNode(children[i2]); - patch(null, child, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); - } - }; - var patchElement = (n1, n2, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => { - var el = n2.el = n1.el; - var { - patchFlag, - dynamicChildren, - dirs - } = n2; - patchFlag |= n1.patchFlag & 16; - var oldProps = n1.props || EMPTY_OBJ; - var newProps = n2.props || EMPTY_OBJ; - var vnodeHook; - parentComponent && toggleRecurse(parentComponent, false); - if (vnodeHook = newProps.onVnodeBeforeUpdate) { - invokeVNodeHook(vnodeHook, parentComponent, n2, n1); - } - if (dirs) { - invokeDirectiveHook(n2, n1, parentComponent, "beforeUpdate"); - } - parentComponent && toggleRecurse(parentComponent, true); - var areChildrenSVG = isSVG && n2.type !== "foreignObject"; - if (dynamicChildren) { - patchBlockChildren(n1.dynamicChildren, dynamicChildren, el, parentComponent, parentSuspense, areChildrenSVG, slotScopeIds); - } else if (!optimized) { - patchChildren(n1, n2, el, null, parentComponent, parentSuspense, areChildrenSVG, slotScopeIds, false); - } - if (patchFlag > 0) { - if (patchFlag & 16) { - patchProps(el, n2, oldProps, newProps, parentComponent, parentSuspense, isSVG); - } else { - if (patchFlag & 2) { - if (oldProps.class !== newProps.class) { - hostPatchProp(el, "class", null, newProps.class, isSVG); - } - } - if (patchFlag & 4) { - hostPatchProp(el, "style", oldProps.style, newProps.style, isSVG); - } - if (patchFlag & 8) { - var propsToUpdate = n2.dynamicProps; - for (var i2 = 0; i2 < propsToUpdate.length; i2++) { - var key2 = propsToUpdate[i2]; - var prev = oldProps[key2]; - var next = newProps[key2]; - if (next !== prev || key2 === "value") { - hostPatchProp(el, key2, prev, next, isSVG, n1.children, parentComponent, parentSuspense, unmountChildren); - } - } - } - } - if (patchFlag & 1) { - if (n1.children !== n2.children) { - hostSetElementText(el, n2.children); - } - } - } else if (!optimized && dynamicChildren == null) { - patchProps(el, n2, oldProps, newProps, parentComponent, parentSuspense, isSVG); - } - if ((vnodeHook = newProps.onVnodeUpdated) || dirs) { - queuePostRenderEffect(() => { - vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, n2, n1); - dirs && invokeDirectiveHook(n2, n1, parentComponent, "updated"); - }, parentSuspense); - } - }; - var patchBlockChildren = (oldChildren, newChildren, fallbackContainer, parentComponent, parentSuspense, isSVG, slotScopeIds) => { - for (var i2 = 0; i2 < newChildren.length; i2++) { - var oldVNode = oldChildren[i2]; - var newVNode = newChildren[i2]; - var container = oldVNode.el && (oldVNode.type === Fragment || !isSameVNodeType(oldVNode, newVNode) || oldVNode.shapeFlag & (6 | 64)) ? hostParentNode(oldVNode.el) : fallbackContainer; - patch(oldVNode, newVNode, container, null, parentComponent, parentSuspense, isSVG, slotScopeIds, true); - } - }; - var patchProps = (el, vnode, oldProps, newProps, parentComponent, parentSuspense, isSVG) => { - if (oldProps !== newProps) { - for (var key2 in newProps) { - if (isReservedProp(key2)) - continue; - var next = newProps[key2]; - var prev = oldProps[key2]; - if (next !== prev && key2 !== "value") { - hostPatchProp(el, key2, prev, next, isSVG, vnode.children, parentComponent, parentSuspense, unmountChildren); - } - } - if (oldProps !== EMPTY_OBJ) { - for (var _key18 in oldProps) { - if (!isReservedProp(_key18) && !(_key18 in newProps)) { - hostPatchProp(el, _key18, oldProps[_key18], null, isSVG, vnode.children, parentComponent, parentSuspense, unmountChildren); - } - } - } - if ("value" in newProps) { - hostPatchProp(el, "value", oldProps.value, newProps.value); - } - } - }; - var processFragment = (n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => { - var fragmentStartAnchor = n2.el = n1 ? n1.el : hostCreateText(""); - var fragmentEndAnchor = n2.anchor = n1 ? n1.anchor : hostCreateText(""); - var { - patchFlag, - dynamicChildren, - slotScopeIds: fragmentSlotScopeIds - } = n2; - if (fragmentSlotScopeIds) { - slotScopeIds = slotScopeIds ? slotScopeIds.concat(fragmentSlotScopeIds) : fragmentSlotScopeIds; - } - if (n1 == null) { - hostInsert(fragmentStartAnchor, container, anchor); - hostInsert(fragmentEndAnchor, container, anchor); - mountChildren(n2.children, container, fragmentEndAnchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); - } else { - if (patchFlag > 0 && patchFlag & 64 && dynamicChildren && n1.dynamicChildren) { - patchBlockChildren(n1.dynamicChildren, dynamicChildren, container, parentComponent, parentSuspense, isSVG, slotScopeIds); - if (n2.key != null || parentComponent && n2 === parentComponent.subTree) { - traverseStaticChildren(n1, n2, true); - } - } else { - patchChildren(n1, n2, container, fragmentEndAnchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); - } - } - }; - var processComponent = (n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => { - n2.slotScopeIds = slotScopeIds; - if (n1 == null) { - if (n2.shapeFlag & 512) { - parentComponent.ctx.activate(n2, container, anchor, isSVG, optimized); - } else { - mountComponent(n2, container, anchor, parentComponent, parentSuspense, isSVG, optimized); - } - } else { - updateComponent(n1, n2, optimized); - } - }; - var mountComponent = (initialVNode, container, anchor, parentComponent, parentSuspense, isSVG, optimized) => { - var instance = initialVNode.component = createComponentInstance(initialVNode, parentComponent, parentSuspense); - if (isKeepAlive(initialVNode)) { - instance.ctx.renderer = internals; - } - { - setupComponent(instance); - } - if (instance.asyncDep) { - parentSuspense && parentSuspense.registerDep(instance, setupRenderEffect); - if (!initialVNode.el) { - var placeholder = instance.subTree = createVNode(Comment); - processCommentNode(null, placeholder, container, anchor); - } - return; - } - setupRenderEffect(instance, initialVNode, container, anchor, parentSuspense, isSVG, optimized); - }; - var updateComponent = (n1, n2, optimized) => { - var instance = n2.component = n1.component; - if (shouldUpdateComponent(n1, n2, optimized)) { - if (instance.asyncDep && !instance.asyncResolved) { - updateComponentPreRender(instance, n2, optimized); - return; - } else { - instance.next = n2; - invalidateJob(instance.update); - instance.update(); - } - } else { - n2.component = n1.component; - n2.el = n1.el; - instance.vnode = n2; - } - }; - var setupRenderEffect = (instance, initialVNode, container, anchor, parentSuspense, isSVG, optimized) => { - var componentUpdateFn = () => { - if (!instance.isMounted) { - var vnodeHook; - var { - el, - props: props2 - } = initialVNode; - var { - bm, - m, - parent - } = instance; - var isAsyncWrapperVNode = isAsyncWrapper(initialVNode); - toggleRecurse(instance, false); - if (bm) { - invokeArrayFns(bm); - } - if (!isAsyncWrapperVNode && (vnodeHook = props2 && props2.onVnodeBeforeMount)) { - invokeVNodeHook(vnodeHook, parent, initialVNode); - } - toggleRecurse(instance, true); - if (el && hydrateNode) { - var hydrateSubTree = () => { - instance.subTree = renderComponentRoot(instance); - hydrateNode(el, instance.subTree, instance, parentSuspense, null); - }; - if (isAsyncWrapperVNode) { - initialVNode.type.__asyncLoader().then(() => !instance.isUnmounted && hydrateSubTree()); - } else { - hydrateSubTree(); - } - } else { - var subTree = instance.subTree = renderComponentRoot(instance); - patch(null, subTree, container, anchor, instance, parentSuspense, isSVG); - initialVNode.el = subTree.el; - } - if (m) { - queuePostRenderEffect(m, parentSuspense); - } - if (!isAsyncWrapperVNode && (vnodeHook = props2 && props2.onVnodeMounted)) { - var scopedInitialVNode = initialVNode; - queuePostRenderEffect(() => invokeVNodeHook(vnodeHook, parent, scopedInitialVNode), parentSuspense); - } - if (initialVNode.shapeFlag & 256) { - instance.a && queuePostRenderEffect(instance.a, parentSuspense); - } - instance.isMounted = true; - initialVNode = container = anchor = null; - } else { - var { - next, - bu, - u, - parent: _parent, - vnode - } = instance; - var originNext = next; - var _vnodeHook; - toggleRecurse(instance, false); - if (next) { - next.el = vnode.el; - updateComponentPreRender(instance, next, optimized); - } else { - next = vnode; - } - if (bu) { - invokeArrayFns(bu); - } - if (_vnodeHook = next.props && next.props.onVnodeBeforeUpdate) { - invokeVNodeHook(_vnodeHook, _parent, next, vnode); - } - toggleRecurse(instance, true); - var nextTree = renderComponentRoot(instance); - var prevTree = instance.subTree; - instance.subTree = nextTree; - patch(prevTree, nextTree, hostParentNode(prevTree.el), getNextHostNode(prevTree), instance, parentSuspense, isSVG); - next.el = nextTree.el; - if (originNext === null) { - updateHOCHostEl(instance, nextTree.el); - } - if (u) { - queuePostRenderEffect(u, parentSuspense); - } - if (_vnodeHook = next.props && next.props.onVnodeUpdated) { - queuePostRenderEffect(() => invokeVNodeHook(_vnodeHook, _parent, next, vnode), parentSuspense); - } - } - }; - var effect = instance.effect = new ReactiveEffect(componentUpdateFn, () => queueJob(instance.update), instance.scope); - var update = instance.update = effect.run.bind(effect); - update.id = instance.uid; - toggleRecurse(instance, true); - update(); - }; - var updateComponentPreRender = (instance, nextVNode, optimized) => { - nextVNode.component = instance; - var prevProps = instance.vnode.props; - instance.vnode = nextVNode; - instance.next = null; - updateProps(instance, nextVNode.props, prevProps, optimized); - updateSlots(instance, nextVNode.children, optimized); - pauseTracking(); - flushPreFlushCbs(void 0, instance.update); - resetTracking(); - }; - var patchChildren = function(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds) { - var optimized = arguments.length > 8 && arguments[8] !== void 0 ? arguments[8] : false; - var c1 = n1 && n1.children; - var prevShapeFlag = n1 ? n1.shapeFlag : 0; - var c2 = n2.children; - var { - patchFlag, - shapeFlag - } = n2; - if (patchFlag > 0) { - if (patchFlag & 128) { - patchKeyedChildren(c1, c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); - return; - } else if (patchFlag & 256) { - patchUnkeyedChildren(c1, c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); - return; - } - } - if (shapeFlag & 8) { - if (prevShapeFlag & 16) { - unmountChildren(c1, parentComponent, parentSuspense); - } - if (c2 !== c1) { - hostSetElementText(container, c2); - } - } else { - if (prevShapeFlag & 16) { - if (shapeFlag & 16) { - patchKeyedChildren(c1, c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); - } else { - unmountChildren(c1, parentComponent, parentSuspense, true); - } - } else { - if (prevShapeFlag & 8) { - hostSetElementText(container, ""); - } - if (shapeFlag & 16) { - mountChildren(c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); - } - } - } - }; - var patchUnkeyedChildren = (c1, c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => { - c1 = c1 || EMPTY_ARR; - c2 = c2 || EMPTY_ARR; - var oldLength = c1.length; - var newLength = c2.length; - var commonLength = Math.min(oldLength, newLength); - var i2; - for (i2 = 0; i2 < commonLength; i2++) { - var nextChild = c2[i2] = optimized ? cloneIfMounted(c2[i2]) : normalizeVNode(c2[i2]); - patch(c1[i2], nextChild, container, null, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); - } - if (oldLength > newLength) { - unmountChildren(c1, parentComponent, parentSuspense, true, false, commonLength); - } else { - mountChildren(c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, commonLength); - } - }; - var patchKeyedChildren = (c1, c2, container, parentAnchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => { - var i2 = 0; - var l2 = c2.length; - var e1 = c1.length - 1; - var e2 = l2 - 1; - while (i2 <= e1 && i2 <= e2) { - var n1 = c1[i2]; - var n2 = c2[i2] = optimized ? cloneIfMounted(c2[i2]) : normalizeVNode(c2[i2]); - if (isSameVNodeType(n1, n2)) { - patch(n1, n2, container, null, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); - } else { - break; - } - i2++; - } - while (i2 <= e1 && i2 <= e2) { - var _n = c1[e1]; - var _n2 = c2[e2] = optimized ? cloneIfMounted(c2[e2]) : normalizeVNode(c2[e2]); - if (isSameVNodeType(_n, _n2)) { - patch(_n, _n2, container, null, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); - } else { - break; - } - e1--; - e2--; - } - if (i2 > e1) { - if (i2 <= e2) { - var nextPos = e2 + 1; - var anchor = nextPos < l2 ? c2[nextPos].el : parentAnchor; - while (i2 <= e2) { - patch(null, c2[i2] = optimized ? cloneIfMounted(c2[i2]) : normalizeVNode(c2[i2]), container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); - i2++; - } - } - } else if (i2 > e2) { - while (i2 <= e1) { - unmount(c1[i2], parentComponent, parentSuspense, true); - i2++; - } - } else { - var s1 = i2; - var s2 = i2; - var keyToNewIndexMap = /* @__PURE__ */ new Map(); - for (i2 = s2; i2 <= e2; i2++) { - var nextChild = c2[i2] = optimized ? cloneIfMounted(c2[i2]) : normalizeVNode(c2[i2]); - if (nextChild.key != null) { - keyToNewIndexMap.set(nextChild.key, i2); - } - } - var j; - var patched = 0; - var toBePatched = e2 - s2 + 1; - var moved = false; - var maxNewIndexSoFar = 0; - var newIndexToOldIndexMap = new Array(toBePatched); - for (i2 = 0; i2 < toBePatched; i2++) { - newIndexToOldIndexMap[i2] = 0; - } - for (i2 = s1; i2 <= e1; i2++) { - var prevChild = c1[i2]; - if (patched >= toBePatched) { - unmount(prevChild, parentComponent, parentSuspense, true); - continue; - } - var newIndex = void 0; - if (prevChild.key != null) { - newIndex = keyToNewIndexMap.get(prevChild.key); - } else { - for (j = s2; j <= e2; j++) { - if (newIndexToOldIndexMap[j - s2] === 0 && isSameVNodeType(prevChild, c2[j])) { - newIndex = j; - break; - } - } - } - if (newIndex === void 0) { - unmount(prevChild, parentComponent, parentSuspense, true); - } else { - newIndexToOldIndexMap[newIndex - s2] = i2 + 1; - if (newIndex >= maxNewIndexSoFar) { - maxNewIndexSoFar = newIndex; - } else { - moved = true; - } - patch(prevChild, c2[newIndex], container, null, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); - patched++; - } - } - var increasingNewIndexSequence = moved ? getSequence(newIndexToOldIndexMap) : EMPTY_ARR; - j = increasingNewIndexSequence.length - 1; - for (i2 = toBePatched - 1; i2 >= 0; i2--) { - var nextIndex = s2 + i2; - var _nextChild = c2[nextIndex]; - var _anchor2 = nextIndex + 1 < l2 ? c2[nextIndex + 1].el : parentAnchor; - if (newIndexToOldIndexMap[i2] === 0) { - patch(null, _nextChild, container, _anchor2, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); - } else if (moved) { - if (j < 0 || i2 !== increasingNewIndexSequence[j]) { - move(_nextChild, container, _anchor2, 2); - } else { - j--; - } - } - } - } - }; - var move = function(vnode, container, anchor, moveType) { - var parentSuspense = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : null; - var { - el, - type, - transition, - children, - shapeFlag - } = vnode; - if (shapeFlag & 6) { - move(vnode.component.subTree, container, anchor, moveType); - return; - } - if (shapeFlag & 128) { - vnode.suspense.move(container, anchor, moveType); - return; - } - if (shapeFlag & 64) { - type.move(vnode, container, anchor, internals); - return; - } - if (type === Fragment) { - hostInsert(el, container, anchor); - for (var i2 = 0; i2 < children.length; i2++) { - move(children[i2], container, anchor, moveType); - } - hostInsert(vnode.anchor, container, anchor); - return; - } - if (type === Static) { - moveStaticNode(vnode, container, anchor); - return; - } - var needTransition = moveType !== 2 && shapeFlag & 1 && transition; - if (needTransition) { - if (moveType === 0) { - transition.beforeEnter(el); - hostInsert(el, container, anchor); - queuePostRenderEffect(() => transition.enter(el), parentSuspense); - } else { - var { - leave, - delayLeave, - afterLeave - } = transition; - var _remove = () => hostInsert(el, container, anchor); - var performLeave = () => { - leave(el, () => { - _remove(); - afterLeave && afterLeave(); - }); - }; - if (delayLeave) { - delayLeave(el, _remove, performLeave); - } else { - performLeave(); - } - } - } else { - hostInsert(el, container, anchor); - } - }; - var unmount = function(vnode, parentComponent, parentSuspense) { - var doRemove = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false; - var optimized = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : false; - var { - type, - props: props2, - ref: ref2, - children, - dynamicChildren, - shapeFlag, - patchFlag, - dirs - } = vnode; - if (ref2 != null) { - setRef(ref2, null, parentSuspense, vnode, true); - } - if (shapeFlag & 256) { - parentComponent.ctx.deactivate(vnode); - return; - } - var shouldInvokeDirs = shapeFlag & 1 && dirs; - var shouldInvokeVnodeHook = !isAsyncWrapper(vnode); - var vnodeHook; - if (shouldInvokeVnodeHook && (vnodeHook = props2 && props2.onVnodeBeforeUnmount)) { - invokeVNodeHook(vnodeHook, parentComponent, vnode); - } - if (shapeFlag & 6) { - unmountComponent(vnode.component, parentSuspense, doRemove); - } else { - if (shapeFlag & 128) { - vnode.suspense.unmount(parentSuspense, doRemove); - return; - } - if (shouldInvokeDirs) { - invokeDirectiveHook(vnode, null, parentComponent, "beforeUnmount"); - } - if (shapeFlag & 64) { - vnode.type.remove(vnode, parentComponent, parentSuspense, optimized, internals, doRemove); - } else if (dynamicChildren && (type !== Fragment || patchFlag > 0 && patchFlag & 64)) { - unmountChildren(dynamicChildren, parentComponent, parentSuspense, false, true); - } else if (type === Fragment && patchFlag & (128 | 256) || !optimized && shapeFlag & 16) { - unmountChildren(children, parentComponent, parentSuspense); - } - if (doRemove) { - remove2(vnode); - } - } - if (shouldInvokeVnodeHook && (vnodeHook = props2 && props2.onVnodeUnmounted) || shouldInvokeDirs) { - queuePostRenderEffect(() => { - vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, vnode); - shouldInvokeDirs && invokeDirectiveHook(vnode, null, parentComponent, "unmounted"); - }, parentSuspense); - } - }; - var remove2 = (vnode) => { - var { - type, - el, - anchor, - transition - } = vnode; - if (type === Fragment) { - removeFragment(el, anchor); - return; - } - if (type === Static) { - removeStaticNode(vnode); - return; - } - var performRemove = () => { - hostRemove(el); - if (transition && !transition.persisted && transition.afterLeave) { - transition.afterLeave(); - } - }; - if (vnode.shapeFlag & 1 && transition && !transition.persisted) { - var { - leave, - delayLeave - } = transition; - var performLeave = () => leave(el, performRemove); - if (delayLeave) { - delayLeave(vnode.el, performRemove, performLeave); - } else { - performLeave(); - } - } else { - performRemove(); - } - }; - var removeFragment = (cur, end) => { - var next; - while (cur !== end) { - next = hostNextSibling(cur); - hostRemove(cur); - cur = next; - } - hostRemove(end); - }; - var unmountComponent = (instance, parentSuspense, doRemove) => { - var { - bum, - scope, - update, - subTree, - um - } = instance; - if (bum) { - invokeArrayFns(bum); - } - scope.stop(); - if (update) { - update.active = false; - unmount(subTree, instance, parentSuspense, doRemove); - } - if (um) { - queuePostRenderEffect(um, parentSuspense); - } - queuePostRenderEffect(() => { - instance.isUnmounted = true; - }, parentSuspense); - if (parentSuspense && parentSuspense.pendingBranch && !parentSuspense.isUnmounted && instance.asyncDep && !instance.asyncResolved && instance.suspenseId === parentSuspense.pendingId) { - parentSuspense.deps--; - if (parentSuspense.deps === 0) { - parentSuspense.resolve(); - } - } - }; - var unmountChildren = function(children, parentComponent, parentSuspense) { - var doRemove = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false; - var optimized = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : false; - var start = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : 0; - for (var i2 = start; i2 < children.length; i2++) { - unmount(children[i2], parentComponent, parentSuspense, doRemove, optimized); - } - }; - var getNextHostNode = (vnode) => { - if (vnode.shapeFlag & 6) { - return getNextHostNode(vnode.component.subTree); - } - if (vnode.shapeFlag & 128) { - return vnode.suspense.next(); - } - return hostNextSibling(vnode.anchor || vnode.el); - }; - var render = (vnode, container, isSVG) => { - if (vnode == null) { - if (container._vnode) { - unmount(container._vnode, null, null, true); - } - } else { - var _p = container.__vueParent; - patch(container._vnode || null, vnode, container, null, _p, null, isSVG); - } - container._vnode = vnode; - }; - var internals = { - p: patch, - um: unmount, - m: move, - r: remove2, - mt: mountComponent, - mc: mountChildren, - pc: patchChildren, - pbc: patchBlockChildren, - n: getNextHostNode, - o: options - }; - var hydrate; - var hydrateNode; - if (createHydrationFns) { - [hydrate, hydrateNode] = createHydrationFns(internals); - } - return { - render, - hydrate, - createApp: createAppAPI(render, hydrate) - }; - } - function toggleRecurse(_ref13, allowed) { - var { - effect, - update - } = _ref13; - effect.allowRecurse = update.allowRecurse = allowed; - } - function traverseStaticChildren(n1, n2) { - var shallow = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false; - var ch1 = n1.children; - var ch2 = n2.children; - if (isArray$1(ch1) && isArray$1(ch2)) { - for (var i2 = 0; i2 < ch1.length; i2++) { - var c1 = ch1[i2]; - var c2 = ch2[i2]; - if (c2.shapeFlag & 1 && !c2.dynamicChildren) { - if (c2.patchFlag <= 0 || c2.patchFlag === 32) { - c2 = ch2[i2] = cloneIfMounted(ch2[i2]); - c2.el = c1.el; - } - if (!shallow) - traverseStaticChildren(c1, c2); - } - } - } - } - function getSequence(arr) { - var p2 = arr.slice(); - var result = [0]; - var i2, j, u, v2, c2; - var len = arr.length; - for (i2 = 0; i2 < len; i2++) { - var arrI = arr[i2]; - if (arrI !== 0) { - j = result[result.length - 1]; - if (arr[j] < arrI) { - p2[i2] = j; - result.push(i2); - continue; - } - u = 0; - v2 = result.length - 1; - while (u < v2) { - c2 = u + v2 >> 1; - if (arr[result[c2]] < arrI) { - u = c2 + 1; - } else { - v2 = c2; - } - } - if (arrI < arr[result[u]]) { - if (u > 0) { - p2[i2] = result[u - 1]; - } - result[u] = i2; - } - } - } - u = result.length; - v2 = result[u - 1]; - while (u-- > 0) { - result[u] = v2; - v2 = p2[v2]; - } - return result; - } - var isTeleport = (type) => type.__isTeleport; - var NULL_DYNAMIC_COMPONENT = Symbol(); - var Fragment = Symbol(void 0); - var Text$1 = Symbol(void 0); - var Comment = Symbol(void 0); - var Static = Symbol(void 0); - var currentBlock = null; - var isBlockTreeEnabled = 1; - function setBlockTracking(value) { - isBlockTreeEnabled += value; - } - function isVNode(value) { - return value ? value.__v_isVNode === true : false; - } - function isSameVNodeType(n1, n2) { - return n1.type === n2.type && n1.key === n2.key; - } - var InternalObjectKey = "__vInternal"; - var normalizeKey = (_ref17) => { - var { - key: key2 - } = _ref17; - return key2 != null ? key2 : null; - }; - var normalizeRef = (_ref18) => { - var { - ref: ref2, - ref_key, - ref_for - } = _ref18; - return ref2 != null ? isString(ref2) || isRef(ref2) || isFunction(ref2) ? { - i: currentRenderingInstance, - r: ref2, - k: ref_key, - f: !!ref_for - } : ref2 : null; - }; - function createBaseVNode(type) { - var props2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null; - var children = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; - var patchFlag = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0; - var dynamicProps = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : null; - var shapeFlag = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : type === Fragment ? 0 : 1; - var isBlockNode = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : false; - var needFullChildrenNormalization = arguments.length > 7 && arguments[7] !== void 0 ? arguments[7] : false; - var vnode = { - __v_isVNode: true, - __v_skip: true, - type, - props: props2, - key: props2 && normalizeKey(props2), - ref: props2 && normalizeRef(props2), - scopeId: currentScopeId, - slotScopeIds: null, - children, - component: null, - suspense: null, - ssContent: null, - ssFallback: null, - dirs: null, - transition: null, - el: null, - anchor: null, - target: null, - targetAnchor: null, - staticCount: 0, - shapeFlag, - patchFlag, - dynamicProps, - dynamicChildren: null, - appContext: null - }; - if (needFullChildrenNormalization) { - normalizeChildren(vnode, children); - if (shapeFlag & 128) { - type.normalize(vnode); - } - } else if (children) { - vnode.shapeFlag |= isString(children) ? 8 : 16; - } - if (isBlockTreeEnabled > 0 && !isBlockNode && currentBlock && (vnode.patchFlag > 0 || shapeFlag & 6) && vnode.patchFlag !== 32) { - currentBlock.push(vnode); - } - return vnode; - } - var createVNode = _createVNode; - function _createVNode(type) { - var props2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null; - var children = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; - var patchFlag = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0; - var dynamicProps = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : null; - var isBlockNode = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : false; - if (!type || type === NULL_DYNAMIC_COMPONENT) { - type = Comment; - } - if (isVNode(type)) { - var cloned = cloneVNode(type, props2, true); - if (children) { - normalizeChildren(cloned, children); - } - return cloned; - } - if (isClassComponent(type)) { - type = type.__vccOpts; - } - if (props2) { - props2 = guardReactiveProps(props2); - var { - class: klass, - style - } = props2; - if (klass && !isString(klass)) { - props2.class = normalizeClass(klass); - } - if (isObject$1(style)) { - if (isProxy(style) && !isArray$1(style)) { - style = extend({}, style); - } - props2.style = normalizeStyle(style); - } - } - var shapeFlag = isString(type) ? 1 : isSuspense(type) ? 128 : isTeleport(type) ? 64 : isObject$1(type) ? 4 : isFunction(type) ? 2 : 0; - return createBaseVNode(type, props2, children, patchFlag, dynamicProps, shapeFlag, isBlockNode, true); - } - function guardReactiveProps(props2) { - if (!props2) - return null; - return isProxy(props2) || InternalObjectKey in props2 ? extend({}, props2) : props2; - } - function cloneVNode(vnode, extraProps) { - var mergeRef = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false; - var { - props: props2, - ref: ref2, - patchFlag, - children - } = vnode; - var mergedProps = extraProps ? mergeProps(props2 || {}, extraProps) : props2; - var cloned = { - __v_isVNode: true, - __v_skip: true, - type: vnode.type, - props: mergedProps, - key: mergedProps && normalizeKey(mergedProps), - ref: extraProps && extraProps.ref ? mergeRef && ref2 ? isArray$1(ref2) ? ref2.concat(normalizeRef(extraProps)) : [ref2, normalizeRef(extraProps)] : normalizeRef(extraProps) : ref2, - scopeId: vnode.scopeId, - slotScopeIds: vnode.slotScopeIds, - children, - target: vnode.target, - targetAnchor: vnode.targetAnchor, - staticCount: vnode.staticCount, - shapeFlag: vnode.shapeFlag, - patchFlag: extraProps && vnode.type !== Fragment ? patchFlag === -1 ? 16 : patchFlag | 16 : patchFlag, - dynamicProps: vnode.dynamicProps, - dynamicChildren: vnode.dynamicChildren, - appContext: vnode.appContext, - dirs: vnode.dirs, - transition: vnode.transition, - component: vnode.component, - suspense: vnode.suspense, - ssContent: vnode.ssContent && cloneVNode(vnode.ssContent), - ssFallback: vnode.ssFallback && cloneVNode(vnode.ssFallback), - el: vnode.el, - anchor: vnode.anchor - }; - return cloned; - } - function createTextVNode() { - var text2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : " "; - var flag = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0; - return createVNode(Text$1, null, text2, flag); - } - function normalizeVNode(child) { - if (child == null || typeof child === "boolean") { - return createVNode(Comment); - } else if (isArray$1(child)) { - return createVNode(Fragment, null, child.slice()); - } else if (typeof child === "object") { - return cloneIfMounted(child); - } else { - return createVNode(Text$1, null, String(child)); - } - } - function cloneIfMounted(child) { - return child.el === null || child.memo ? child : cloneVNode(child); - } - function normalizeChildren(vnode, children) { - var type = 0; - var { - shapeFlag - } = vnode; - if (children == null) { - children = null; - } else if (isArray$1(children)) { - type = 16; - } else if (typeof children === "object") { - if (shapeFlag & (1 | 64)) { - var slot = children.default; - if (slot) { - slot._c && (slot._d = false); - normalizeChildren(vnode, slot()); - slot._c && (slot._d = true); - } - return; - } else { - type = 32; - var slotFlag = children._; - if (!slotFlag && !(InternalObjectKey in children)) { - children._ctx = currentRenderingInstance; - } else if (slotFlag === 3 && currentRenderingInstance) { - if (currentRenderingInstance.slots._ === 1) { - children._ = 1; - } else { - children._ = 2; - vnode.patchFlag |= 1024; - } - } - } - } else if (isFunction(children)) { - children = { - default: children, - _ctx: currentRenderingInstance - }; - type = 32; - } else { - children = String(children); - if (shapeFlag & 64) { - type = 16; - children = [createTextVNode(children)]; - } else { - type = 8; - } - } - vnode.children = children; - vnode.shapeFlag |= type; - } - function mergeProps() { - var ret = {}; - for (var i2 = 0; i2 < arguments.length; i2++) { - var toMerge = i2 < 0 || arguments.length <= i2 ? void 0 : arguments[i2]; - for (var key2 in toMerge) { - if (key2 === "class") { - if (ret.class !== toMerge.class) { - ret.class = normalizeClass([ret.class, toMerge.class]); - } - } else if (key2 === "style") { - ret.style = normalizeStyle([ret.style, toMerge.style]); - } else if (isOn(key2)) { - var existing = ret[key2]; - var incoming = toMerge[key2]; - if (incoming && existing !== incoming && !(isArray$1(existing) && existing.includes(incoming))) { - ret[key2] = existing ? [].concat(existing, incoming) : incoming; - } - } else if (key2 !== "") { - ret[key2] = toMerge[key2]; - } - } - } - return ret; - } - function invokeVNodeHook(hook, instance, vnode) { - var prevVNode = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : null; - callWithAsyncErrorHandling(hook, instance, 7, [vnode, prevVNode]); - } - var getPublicInstance = (i2) => { - if (!i2) - return null; - if (isStatefulComponent(i2)) - return getExposeProxy(i2) || i2.proxy; - return getPublicInstance(i2.parent); - }; - var publicPropertiesMap = extend(/* @__PURE__ */ Object.create(null), { - $: (i2) => i2, - $el: (i2) => i2.vnode.el, - $data: (i2) => i2.data, - $props: (i2) => i2.props, - $attrs: (i2) => i2.attrs, - $slots: (i2) => i2.slots, - $refs: (i2) => i2.refs, - $parent: (i2) => getPublicInstance(i2.parent), - $root: (i2) => getPublicInstance(i2.root), - $emit: (i2) => i2.emit, - $options: (i2) => resolveMergedOptions(i2), - $forceUpdate: (i2) => () => queueJob(i2.update), - $nextTick: (i2) => nextTick.bind(i2.proxy), - $watch: (i2) => instanceWatch.bind(i2) - }); - var PublicInstanceProxyHandlers = { - get(_ref19, key2) { - var { - _: instance - } = _ref19; - var { - ctx: ctx2, - setupState, - data, - props: props2, - accessCache, - type, - appContext - } = instance; - var normalizedProps; - if (key2[0] !== "$") { - var n = accessCache[key2]; - if (n !== void 0) { - switch (n) { - case 1: - return setupState[key2]; - case 2: - return data[key2]; - case 4: - return ctx2[key2]; - case 3: - return props2[key2]; - } - } else if (setupState !== EMPTY_OBJ && hasOwn$1(setupState, key2)) { - accessCache[key2] = 1; - return setupState[key2]; - } else if (data !== EMPTY_OBJ && hasOwn$1(data, key2)) { - accessCache[key2] = 2; - return data[key2]; - } else if ((normalizedProps = instance.propsOptions[0]) && hasOwn$1(normalizedProps, key2)) { - accessCache[key2] = 3; - return props2[key2]; - } else if (ctx2 !== EMPTY_OBJ && hasOwn$1(ctx2, key2)) { - accessCache[key2] = 4; - return ctx2[key2]; - } else if (shouldCacheAccess) { - accessCache[key2] = 0; - } - } - var publicGetter = publicPropertiesMap[key2]; - var cssModule, globalProperties; - if (publicGetter) { - if (key2 === "$attrs") { - track(instance, "get", key2); - } - return publicGetter(instance); - } else if ((cssModule = type.__cssModules) && (cssModule = cssModule[key2])) { - return cssModule; - } else if (ctx2 !== EMPTY_OBJ && hasOwn$1(ctx2, key2)) { - accessCache[key2] = 4; - return ctx2[key2]; - } else if (globalProperties = appContext.config.globalProperties, hasOwn$1(globalProperties, key2)) { - { - return globalProperties[key2]; - } - } else - ; - }, - set(_ref20, key2, value) { - var { - _: instance - } = _ref20; - var { - data, - setupState, - ctx: ctx2 - } = instance; - if (setupState !== EMPTY_OBJ && hasOwn$1(setupState, key2)) { - setupState[key2] = value; - return true; - } else if (data !== EMPTY_OBJ && hasOwn$1(data, key2)) { - data[key2] = value; - return true; - } else if (hasOwn$1(instance.props, key2)) { - return false; - } - if (key2[0] === "$" && key2.slice(1) in instance) { - return false; - } else { - { - ctx2[key2] = value; - } - } - return true; - }, - has(_ref21, key2) { - var { - _: { - data, - setupState, - accessCache, - ctx: ctx2, - appContext, - propsOptions - } - } = _ref21; - var normalizedProps; - return !!accessCache[key2] || data !== EMPTY_OBJ && hasOwn$1(data, key2) || setupState !== EMPTY_OBJ && hasOwn$1(setupState, key2) || (normalizedProps = propsOptions[0]) && hasOwn$1(normalizedProps, key2) || hasOwn$1(ctx2, key2) || hasOwn$1(publicPropertiesMap, key2) || hasOwn$1(appContext.config.globalProperties, key2); - }, - defineProperty(target, key2, descriptor2) { - if (descriptor2.get != null) { - this.set(target, key2, descriptor2.get(), null); - } else if (descriptor2.value != null) { - this.set(target, key2, descriptor2.value, null); - } - return Reflect.defineProperty(target, key2, descriptor2); - } - }; - var emptyAppContext = createAppContext(); - var uid$1 = 0; - function createComponentInstance(vnode, parent, suspense) { - var type = vnode.type; - var appContext = (parent ? parent.appContext : vnode.appContext) || emptyAppContext; - var instance = { - uid: uid$1++, - vnode, - type, - parent, - appContext, - root: null, - next: null, - subTree: null, - effect: null, - update: null, - scope: new EffectScope(true), - render: null, - proxy: null, - exposed: null, - exposeProxy: null, - withProxy: null, - provides: parent ? parent.provides : Object.create(appContext.provides), - accessCache: null, - renderCache: [], - components: null, - directives: null, - propsOptions: normalizePropsOptions(type, appContext), - emitsOptions: normalizeEmitsOptions(type, appContext), - emit: null, - emitted: null, - propsDefaults: EMPTY_OBJ, - inheritAttrs: type.inheritAttrs, - ctx: EMPTY_OBJ, - data: EMPTY_OBJ, - props: EMPTY_OBJ, - attrs: EMPTY_OBJ, - slots: EMPTY_OBJ, - refs: EMPTY_OBJ, - setupState: EMPTY_OBJ, - setupContext: null, - suspense, - suspenseId: suspense ? suspense.pendingId : 0, - asyncDep: null, - asyncResolved: false, - isMounted: false, - isUnmounted: false, - isDeactivated: false, - bc: null, - c: null, - bm: null, - m: null, - bu: null, - u: null, - um: null, - bum: null, - da: null, - a: null, - rtg: null, - rtc: null, - ec: null, - sp: null - }; - { - instance.ctx = { - _: instance - }; - } - instance.root = parent ? parent.root : instance; - instance.emit = emit$1$1.bind(null, instance); - if (vnode.ce) { - vnode.ce(instance); - } - return instance; - } - var currentInstance = null; - var getCurrentInstance = () => currentInstance || currentRenderingInstance; - var setCurrentInstance = (instance) => { - currentInstance = instance; - instance.scope.on(); - }; - var unsetCurrentInstance = () => { - currentInstance && currentInstance.scope.off(); - currentInstance = null; - }; - function isStatefulComponent(instance) { - return instance.vnode.shapeFlag & 4; - } - var isInSSRComponentSetup = false; - function setupComponent(instance) { - var isSSR = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false; - isInSSRComponentSetup = isSSR; - var { - props: props2, - children - } = instance.vnode; - var isStateful = isStatefulComponent(instance); - initProps(instance, props2, isStateful, isSSR); - initSlots(instance, children); - var setupResult = isStateful ? setupStatefulComponent(instance, isSSR) : void 0; - isInSSRComponentSetup = false; - return setupResult; - } - function setupStatefulComponent(instance, isSSR) { - var Component = instance.type; - instance.accessCache = /* @__PURE__ */ Object.create(null); - instance.proxy = markRaw(new Proxy(instance.ctx, PublicInstanceProxyHandlers)); - var { - setup - } = Component; - if (setup) { - var setupContext = instance.setupContext = setup.length > 1 ? createSetupContext(instance) : null; - setCurrentInstance(instance); - pauseTracking(); - var setupResult = callWithErrorHandling(setup, instance, 0, [instance.props, setupContext]); - resetTracking(); - unsetCurrentInstance(); - if (isPromise(setupResult)) { - setupResult.then(unsetCurrentInstance, unsetCurrentInstance); - if (isSSR) { - return setupResult.then((resolvedResult) => { - handleSetupResult(instance, resolvedResult, isSSR); - }).catch((e2) => { - handleError(e2, instance, 0); - }); - } else { - instance.asyncDep = setupResult; - } - } else { - handleSetupResult(instance, setupResult, isSSR); - } - } else { - finishComponentSetup(instance, isSSR); - } - } - function handleSetupResult(instance, setupResult, isSSR) { - if (isFunction(setupResult)) { - if (instance.type.__ssrInlineRender) { - instance.ssrRender = setupResult; - } else { - instance.render = setupResult; - } - } else if (isObject$1(setupResult)) { - instance.setupState = proxyRefs(setupResult); - } else - ; - finishComponentSetup(instance, isSSR); - } - var compile; - function finishComponentSetup(instance, isSSR, skipOptions) { - var Component = instance.type; - if (!instance.render) { - if (!isSSR && compile && !Component.render) { - var template = Component.template; - if (template) { - var { - isCustomElement, - compilerOptions - } = instance.appContext.config; - var { - delimiters, - compilerOptions: componentCompilerOptions - } = Component; - var finalCompilerOptions = extend(extend({ - isCustomElement, - delimiters - }, compilerOptions), componentCompilerOptions); - Component.render = compile(template, finalCompilerOptions); - } - } - instance.render = Component.render || NOOP; - } - { - setCurrentInstance(instance); - pauseTracking(); - applyOptions(instance); - resetTracking(); - unsetCurrentInstance(); - } - } - function createAttrsProxy(instance) { - return new Proxy(instance.attrs, { - get(target, key2) { - track(instance, "get", "$attrs"); - return target[key2]; - } - }); - } - function createSetupContext(instance) { - var expose = (exposed) => { - instance.exposed = exposed || {}; - }; - var attrs2; - { - return { - get attrs() { - return attrs2 || (attrs2 = createAttrsProxy(instance)); - }, - slots: instance.slots, - emit: instance.emit, - expose - }; - } - } - function getExposeProxy(instance) { - if (instance.exposed) { - return instance.exposeProxy || (instance.exposeProxy = new Proxy(proxyRefs(markRaw(instance.exposed)), { - get(target, key2) { - if (key2 in target) { - return target[key2]; - } else if (key2 in publicPropertiesMap) { - return publicPropertiesMap[key2](instance); - } - } - })); - } - } - function isClassComponent(value) { - return isFunction(value) && "__vccOpts" in value; - } - var computed$1 = (getterOrOptions, debugOptions) => { - return computed(getterOrOptions, debugOptions, isInSSRComponentSetup); - }; - function h(type, propsOrChildren, children) { - var l = arguments.length; - if (l === 2) { - if (isObject$1(propsOrChildren) && !isArray$1(propsOrChildren)) { - if (isVNode(propsOrChildren)) { - return createVNode(type, null, [propsOrChildren]); - } - return createVNode(type, propsOrChildren); - } else { - return createVNode(type, null, propsOrChildren); - } - } else { - if (l > 3) { - children = Array.prototype.slice.call(arguments, 2); - } else if (l === 3 && isVNode(children)) { - children = [children]; - } - return createVNode(type, propsOrChildren, children); - } - } - var version = "3.2.31"; - var svgNS = "http://www.w3.org/2000/svg"; - var doc = typeof document !== "undefined" ? document : null; - var templateContainer = doc && doc.createElement("template"); - var nodeOps = { - insert: (child, parent, anchor) => { - parent.insertBefore(child, anchor || null); - }, - remove: (child) => { - var parent = child.parentNode; - if (parent) { - parent.removeChild(child); - } - }, - createElement: (tag, isSVG, is2, props2) => { - var el = isSVG ? doc.createElementNS(svgNS, tag) : doc.createElement(tag, is2 ? { - is: is2 - } : void 0); - if (tag === "select" && props2 && props2.multiple != null) { - el.setAttribute("multiple", props2.multiple); - } - return el; - }, - createText: (text2) => doc.createTextNode(text2), - createComment: (text2) => doc.createComment(text2), - setText: (node, text2) => { - node.nodeValue = text2; - }, - setElementText: (el, text2) => { - el.textContent = text2; - }, - parentNode: (node) => node.parentNode, - nextSibling: (node) => node.nextSibling, - querySelector: (selector) => doc.querySelector(selector), - setScopeId(el, id2) { - el.setAttribute(id2, ""); - }, - cloneNode(el) { - var cloned = el.cloneNode(true); - if ("_value" in el) { - cloned._value = el._value; - } - return cloned; - }, - insertStaticContent(content, parent, anchor, isSVG, start, end) { - var before = anchor ? anchor.previousSibling : parent.lastChild; - if (start && (start === end || start.nextSibling)) { - while (true) { - parent.insertBefore(start.cloneNode(true), anchor); - if (start === end || !(start = start.nextSibling)) - break; - } - } else { - templateContainer.innerHTML = isSVG ? "".concat(content, "") : content; - var template = templateContainer.content; - if (isSVG) { - var wrapper2 = template.firstChild; - while (wrapper2.firstChild) { - template.appendChild(wrapper2.firstChild); - } - template.removeChild(wrapper2); - } - parent.insertBefore(template, anchor); - } - return [ - before ? before.nextSibling : parent.firstChild, - anchor ? anchor.previousSibling : parent.lastChild - ]; - } - }; - function patchClass$1(el, value, isSVG) { - var transitionClasses = el._vtc; - if (transitionClasses) { - value = (value ? [value, ...transitionClasses] : [...transitionClasses]).join(" "); - } - if (value == null) { - el.removeAttribute("class"); - } else if (isSVG) { - el.setAttribute("class", value); - } else { - el.className = value; - } - } - function patchStyle$1(el, prev, next) { - var style = el.style; - var isCssString = isString(next); - if (next && !isCssString) { - for (var key2 in next) { - setStyle$1(style, key2, next[key2]); - } - if (prev && !isString(prev)) { - for (var _key21 in prev) { - if (next[_key21] == null) { - setStyle$1(style, _key21, ""); - } - } - } - } else { - var currentDisplay = style.display; - if (isCssString) { - if (prev !== next) { - style.cssText = normalizeStyleValue(next); - } - } else if (prev) { - el.removeAttribute("style"); - } - if ("_vod" in el) { - style.display = currentDisplay; - } - } - } - var importantRE$1 = /\s*!important$/; - function setStyle$1(style, name, val) { - if (isArray$1(val)) { - val.forEach((v2) => setStyle$1(style, name, v2)); - } else { - val = normalizeStyleValue(val); - if (name.startsWith("--")) { - style.setProperty(name, val); - } else { - var prefixed = normalizeStyleName(style, name); - if (importantRE$1.test(val)) { - style.setProperty(hyphenate(prefixed), val.replace(importantRE$1, ""), "important"); - } else { - style[prefixed] = val; - } - } - } - } - var xlinkNS = "http://www.w3.org/1999/xlink"; - function patchAttr(el, key2, value, isSVG, instance) { - if (isSVG && key2.startsWith("xlink:")) { - if (value == null) { - el.removeAttributeNS(xlinkNS, key2.slice(6, key2.length)); - } else { - el.setAttributeNS(xlinkNS, key2, value); - } - } else { - var _isBoolean = isSpecialBooleanAttr(key2); - if (value == null || _isBoolean && !includeBooleanAttr(value)) { - el.removeAttribute(key2); - } else { - el.setAttribute(key2, _isBoolean ? "" : value); - } - } - } - function patchDOMProp(el, key2, value, prevChildren, parentComponent, parentSuspense, unmountChildren) { - if (key2 === "innerHTML" || key2 === "textContent") { - if (prevChildren) { - unmountChildren(prevChildren, parentComponent, parentSuspense); - } - el[key2] = value == null ? "" : value; - return; - } - if (key2 === "value" && el.tagName !== "PROGRESS" && !el.tagName.includes("-")) { - el._value = value; - var newValue = value == null ? "" : value; - if (el.value !== newValue || el.tagName === "OPTION") { - el.value = newValue; - } - if (value == null) { - el.removeAttribute(key2); - } - return; - } - if (value === "" || value == null) { - var type = typeof el[key2]; - if (type === "boolean") { - el[key2] = includeBooleanAttr(value); - return; - } else if (value == null && type === "string") { - el[key2] = ""; - el.removeAttribute(key2); - return; - } else if (type === "number") { - try { - el[key2] = 0; - } catch (_a) { - } - el.removeAttribute(key2); - return; - } - } - try { - el[key2] = value; - } catch (e2) { - } - } - var _getNow = Date.now; - var skipTimestampCheck = false; - if (typeof window !== "undefined") { - if (_getNow() > document.createEvent("Event").timeStamp) { - _getNow = () => performance.now(); - } - var ffMatch = navigator.userAgent.match(/firefox\/(\d+)/i); - skipTimestampCheck = !!(ffMatch && Number(ffMatch[1]) <= 53); - } - var cachedNow = 0; - var p$1 = Promise.resolve(); - var reset = () => { - cachedNow = 0; - }; - var getNow = () => cachedNow || (p$1.then(reset), cachedNow = _getNow()); - function addEventListener$1(el, event, handler, options) { - el.addEventListener(event, handler, options); - } - function removeEventListener$1(el, event, handler, options) { - el.removeEventListener(event, handler, options); - } - function patchEvent$1(el, rawName, prevValue, nextValue) { - var instance = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : null; - var invokers = el._vei || (el._vei = {}); - var existingInvoker = invokers[rawName]; - if (nextValue && existingInvoker) { - existingInvoker.value = nextValue; - } else { - var [name, options] = parseName(rawName); - if (nextValue) { - var invoker = invokers[rawName] = createInvoker$1(nextValue, instance); - addEventListener$1(el, name, invoker, options); - } else if (existingInvoker) { - removeEventListener$1(el, name, existingInvoker, options); - invokers[rawName] = void 0; - } - } - } - var optionsModifierRE = /(?:Once|Passive|Capture)$/; - function parseName(name) { - var options; - if (optionsModifierRE.test(name)) { - options = {}; - var m; - while (m = name.match(optionsModifierRE)) { - name = name.slice(0, name.length - m[0].length); - options[m[0].toLowerCase()] = true; - } - } - return [hyphenate(name.slice(2)), options]; - } - function createInvoker$1(initialValue, instance) { - var invoker = (e2) => { - var timeStamp = e2.timeStamp || _getNow(); - if (skipTimestampCheck || timeStamp >= invoker.attached - 1) { - callWithAsyncErrorHandling(patchStopImmediatePropagation(e2, invoker.value), instance, 5, [e2]); - } - }; - invoker.value = initialValue; - invoker.attached = getNow(); - return invoker; - } - function patchStopImmediatePropagation(e2, value) { - if (isArray$1(value)) { - var originalStop = e2.stopImmediatePropagation; - e2.stopImmediatePropagation = () => { - originalStop.call(e2); - e2._stopped = true; - }; - return value.map((fn) => (e3) => !e3._stopped && fn && fn(e3)); - } else { - return value; - } - } - var nativeOnRE = /^on[a-z]/; - var patchProp = function(el, key2, prevValue, nextValue) { - var isSVG = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : false; - var prevChildren = arguments.length > 5 ? arguments[5] : void 0; - var parentComponent = arguments.length > 6 ? arguments[6] : void 0; - var parentSuspense = arguments.length > 7 ? arguments[7] : void 0; - var unmountChildren = arguments.length > 8 ? arguments[8] : void 0; - if (key2 === "class") { - patchClass$1(el, nextValue, isSVG); - } else if (key2 === "style") { - patchStyle$1(el, prevValue, nextValue); - } else if (isOn(key2)) { - if (!isModelListener(key2)) { - patchEvent$1(el, key2, prevValue, nextValue, parentComponent); - } - } else if (key2[0] === "." ? (key2 = key2.slice(1), true) : key2[0] === "^" ? (key2 = key2.slice(1), false) : shouldSetAsProp(el, key2, nextValue, isSVG)) { - patchDOMProp(el, key2, nextValue, prevChildren, parentComponent, parentSuspense, unmountChildren); - } else { - if (key2 === "true-value") { - el._trueValue = nextValue; - } else if (key2 === "false-value") { - el._falseValue = nextValue; - } - patchAttr(el, key2, nextValue, isSVG); - } - }; - function shouldSetAsProp(el, key2, value, isSVG) { - if (isSVG) { - if (key2 === "innerHTML" || key2 === "textContent") { - return true; - } - if (key2 in el && nativeOnRE.test(key2) && isFunction(value)) { - return true; - } - return false; - } - if (key2 === "spellcheck" || key2 === "draggable") { - return false; - } - if (key2 === "form") { - return false; - } - if (key2 === "list" && el.tagName === "INPUT") { - return false; - } - if (key2 === "type" && el.tagName === "TEXTAREA") { - return false; - } - if (nativeOnRE.test(key2) && isString(value)) { - return false; - } - return key2 in el; - } - var systemModifiers = ["ctrl", "shift", "alt", "meta"]; - var modifierGuards = { - stop: (e2) => e2.stopPropagation(), - prevent: (e2) => e2.preventDefault(), - self: (e2) => e2.target !== e2.currentTarget, - ctrl: (e2) => !e2.ctrlKey, - shift: (e2) => !e2.shiftKey, - alt: (e2) => !e2.altKey, - meta: (e2) => !e2.metaKey, - left: (e2) => "button" in e2 && e2.button !== 0, - middle: (e2) => "button" in e2 && e2.button !== 1, - right: (e2) => "button" in e2 && e2.button !== 2, - exact: (e2, modifiers) => systemModifiers.some((m) => e2["".concat(m, "Key")] && !modifiers.includes(m)) - }; - var withModifiers = (fn, modifiers) => { - return function(event) { - for (var i2 = 0; i2 < modifiers.length; i2++) { - var guard = modifierGuards[modifiers[i2]]; - if (guard && guard(event, modifiers)) - return; - } - for (var _len13 = arguments.length, args = new Array(_len13 > 1 ? _len13 - 1 : 0), _key25 = 1; _key25 < _len13; _key25++) { - args[_key25 - 1] = arguments[_key25]; - } - return fn(event, ...args); - }; - }; - var vShow = { - beforeMount(el, _ref36, _ref37) { - var { - value - } = _ref36; - var { - transition - } = _ref37; - el._vod = el.style.display === "none" ? "" : el.style.display; - if (transition && value) { - transition.beforeEnter(el); - } else { - setDisplay(el, value); - } - }, - mounted(el, _ref38, _ref39) { - var { - value - } = _ref38; - var { - transition - } = _ref39; - if (transition && value) { - transition.enter(el); - } - }, - updated(el, _ref40, _ref41) { - var { - value, - oldValue - } = _ref40; - var { - transition - } = _ref41; - if (!value === !oldValue) - return; - if (transition) { - if (value) { - transition.beforeEnter(el); - setDisplay(el, true); - transition.enter(el); - } else { - transition.leave(el, () => { - setDisplay(el, false); - }); - } - } else { - setDisplay(el, value); - } - }, - beforeUnmount(el, _ref42) { - var { - value - } = _ref42; - setDisplay(el, value); - } - }; - function setDisplay(el, value) { - el.style.display = value ? el._vod : "none"; - } - var rendererOptions = extend({ - patchProp - }, nodeOps); - var renderer; - function ensureRenderer() { - return renderer || (renderer = createRenderer(rendererOptions)); - } - var createApp = function() { - var app = ensureRenderer().createApp(...arguments); - var { - mount - } = app; - app.mount = (containerOrSelector) => { - var container = normalizeContainer(containerOrSelector); - if (!container) - return; - var component = app._component; - if (!isFunction(component) && !component.render && !component.template) { - component.template = container.innerHTML; - } - container.innerHTML = ""; - var proxy = mount(container, false, container instanceof SVGElement); - if (container instanceof Element) { - container.removeAttribute("v-cloak"); - container.setAttribute("data-v-app", ""); - } - return proxy; - }; - return app; - }; - function normalizeContainer(container) { - if (isString(container)) { - var res = document.querySelector(container); - return res; - } - return container; - } - var attrs = ["top", "left", "right", "bottom"]; - var inited$1; - var elementComputedStyle = {}; - var support; - function getSupport() { - if (!("CSS" in window) || typeof CSS.supports != "function") { - support = ""; - } else if (CSS.supports("top: env(safe-area-inset-top)")) { - support = "env"; - } else if (CSS.supports("top: constant(safe-area-inset-top)")) { - support = "constant"; - } else { - support = ""; - } - return support; - } - function init() { - support = typeof support === "string" ? support : getSupport(); - if (!support) { - attrs.forEach(function(attr2) { - elementComputedStyle[attr2] = 0; - }); - return; - } - function setStyle2(el, style) { - var elStyle = el.style; - Object.keys(style).forEach(function(key2) { - var val = style[key2]; - elStyle[key2] = val; - }); - } - var cbs = []; - function parentReady(callback) { - if (callback) { - cbs.push(callback); - } else { - cbs.forEach(function(cb) { - cb(); - }); - } - } - var passiveEvents = false; - try { - var opts = Object.defineProperty({}, "passive", { - get: function() { - passiveEvents = { - passive: true - }; - } - }); - window.addEventListener("test", null, opts); - } catch (e2) { - } - function addChild(parent, attr2) { - var a1 = document.createElement("div"); - var a2 = document.createElement("div"); - var a1Children = document.createElement("div"); - var a2Children = document.createElement("div"); - var W = 100; - var MAX = 1e4; - var aStyle = { - position: "absolute", - width: W + "px", - height: "200px", - boxSizing: "border-box", - overflow: "hidden", - paddingBottom: support + "(safe-area-inset-" + attr2 + ")" - }; - setStyle2(a1, aStyle); - setStyle2(a2, aStyle); - setStyle2(a1Children, { - transition: "0s", - animation: "none", - width: "400px", - height: "400px" - }); - setStyle2(a2Children, { - transition: "0s", - animation: "none", - width: "250%", - height: "250%" - }); - a1.appendChild(a1Children); - a2.appendChild(a2Children); - parent.appendChild(a1); - parent.appendChild(a2); - parentReady(function() { - a1.scrollTop = a2.scrollTop = MAX; - var a1LastScrollTop = a1.scrollTop; - var a2LastScrollTop = a2.scrollTop; - function onScroll() { - if (this.scrollTop === (this === a1 ? a1LastScrollTop : a2LastScrollTop)) { - return; - } - a1.scrollTop = a2.scrollTop = MAX; - a1LastScrollTop = a1.scrollTop; - a2LastScrollTop = a2.scrollTop; - attrChange(attr2); - } - a1.addEventListener("scroll", onScroll, passiveEvents); - a2.addEventListener("scroll", onScroll, passiveEvents); - }); - var computedStyle = getComputedStyle(a1); - Object.defineProperty(elementComputedStyle, attr2, { - configurable: true, - get: function() { - return parseFloat(computedStyle.paddingBottom); - } - }); - } - var parentDiv = document.createElement("div"); - setStyle2(parentDiv, { - position: "absolute", - left: "0", - top: "0", - width: "0", - height: "0", - zIndex: "-1", - overflow: "hidden", - visibility: "hidden" - }); - attrs.forEach(function(key2) { - addChild(parentDiv, key2); - }); - document.body.appendChild(parentDiv); - parentReady(); - inited$1 = true; - } - function getAttr(attr2) { - if (!inited$1) { - init(); - } - return elementComputedStyle[attr2]; - } - var changeAttrs = []; - function attrChange(attr2) { - if (!changeAttrs.length) { - setTimeout(function() { - var style = {}; - changeAttrs.forEach(function(attr3) { - style[attr3] = elementComputedStyle[attr3]; - }); - changeAttrs.length = 0; - callbacks$1.forEach(function(callback) { - callback(style); - }); - }, 0); - } - changeAttrs.push(attr2); - } - var callbacks$1 = []; - function onChange(callback) { - if (!getSupport()) { - return; - } - if (!inited$1) { - init(); - } - if (typeof callback === "function") { - callbacks$1.push(callback); - } - } - function offChange(callback) { - var index2 = callbacks$1.indexOf(callback); - if (index2 >= 0) { - callbacks$1.splice(index2, 1); - } - } - var safeAreaInsets = { - get support() { - return (typeof support === "string" ? support : getSupport()).length != 0; - }, - get top() { - return getAttr("top"); - }, - get left() { - return getAttr("left"); - }, - get right() { - return getAttr("right"); - }, - get bottom() { - return getAttr("bottom"); - }, - onChange, - offChange - }; - var out = safeAreaInsets; - var onEventPrevent = /* @__PURE__ */ withModifiers(() => { - }, ["prevent"]); - function getWindowOffsetCssVar(style, name) { - return parseInt((style.getPropertyValue(name).match(/\d+/) || ["0"])[0]); - } - function getWindowTop() { - var style = document.documentElement.style; - var top = getWindowOffsetCssVar(style, "--window-top"); - return top ? top + out.top : 0; - } - function getWindowOffset() { - var style = document.documentElement.style; - var top = getWindowTop(); - var bottom = getWindowOffsetCssVar(style, "--window-bottom"); - var left = getWindowOffsetCssVar(style, "--window-left"); - var right = getWindowOffsetCssVar(style, "--window-right"); - return { - top, - bottom: bottom ? bottom + out.bottom : 0, - left: left ? left + out.left : 0, - right: right ? right + out.right : 0 - }; - } - function updateCssVar(cssVars) { - var style = document.documentElement.style; - Object.keys(cssVars).forEach((name) => { - style.setProperty(name, cssVars[name]); - }); - } - function PolySymbol(name) { - return Symbol(name); - } - function hasRpx(str) { - str = str + ""; - return str.indexOf("rpx") !== -1 || str.indexOf("upx") !== -1; - } - function rpx2px(str) { - var replace = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false; - if (replace) { - return rpx2pxWithReplace(str); - } - if (typeof str === "string") { - var res = parseInt(str) || 0; - if (hasRpx(str)) { - return uni.upx2px(res); - } - return res; - } - return str; - } - function rpx2pxWithReplace(str) { - if (!hasRpx(str)) { - return str; - } - return str.replace(/(\d+(\.\d+)?)[ru]px/g, (_a, b) => { - return uni.upx2px(parseFloat(b)) + "px"; - }); - } - var ICON_PATH_CANCEL = "M20.928 10.176l-4.928 4.928-4.928-4.928-0.896 0.896 4.928 4.928-4.928 4.928 0.896 0.896 4.928-4.928 4.928 4.928 0.896-0.896-4.928-4.928 4.928-4.928-0.896-0.896zM16 2.080q-3.776 0-7.040 1.888-3.136 1.856-4.992 4.992-1.888 3.264-1.888 7.040t1.888 7.040q1.856 3.136 4.992 4.992 3.264 1.888 7.040 1.888t7.040-1.888q3.136-1.856 4.992-4.992 1.888-3.264 1.888-7.040t-1.888-7.040q-1.856-3.136-4.992-4.992-3.264-1.888-7.040-1.888zM16 28.64q-3.424 0-6.4-1.728-2.848-1.664-4.512-4.512-1.728-2.976-1.728-6.4t1.728-6.4q1.664-2.848 4.512-4.512 2.976-1.728 6.4-1.728t6.4 1.728q2.848 1.664 4.512 4.512 1.728 2.976 1.728 6.4t-1.728 6.4q-1.664 2.848-4.512 4.512-2.976 1.728-6.4 1.728z"; - var ICON_PATH_CLEAR = "M16 0q-4.352 0-8.064 2.176-3.616 2.144-5.76 5.76-2.176 3.712-2.176 8.064t2.176 8.064q2.144 3.616 5.76 5.76 3.712 2.176 8.064 2.176t8.064-2.176q3.616-2.144 5.76-5.76 2.176-3.712 2.176-8.064t-2.176-8.064q-2.144-3.616-5.76-5.76-3.712-2.176-8.064-2.176zM22.688 21.408q0.32 0.32 0.304 0.752t-0.336 0.736-0.752 0.304-0.752-0.32l-5.184-5.376-5.376 5.184q-0.32 0.32-0.752 0.304t-0.736-0.336-0.304-0.752 0.32-0.752l5.376-5.184-5.184-5.376q-0.32-0.32-0.304-0.752t0.336-0.752 0.752-0.304 0.752 0.336l5.184 5.376 5.376-5.184q0.32-0.32 0.752-0.304t0.752 0.336 0.304 0.752-0.336 0.752l-5.376 5.184 5.184 5.376z"; - var ICON_PATH_DOWNLOAD = "M15.808 1.696q-3.776 0-7.072 1.984-3.2 1.888-5.088 5.152-1.952 3.392-1.952 7.36 0 3.776 1.952 7.072 1.888 3.2 5.088 5.088 3.296 1.952 7.072 1.952 3.968 0 7.36-1.952 3.264-1.888 5.152-5.088 1.984-3.296 1.984-7.072 0-4-1.984-7.36-1.888-3.264-5.152-5.152-3.36-1.984-7.36-1.984zM20.864 18.592l-3.776 4.928q-0.448 0.576-1.088 0.576t-1.088-0.576l-3.776-4.928q-0.448-0.576-0.24-0.992t0.944-0.416h2.976v-8.928q0-0.256 0.176-0.432t0.4-0.176h1.216q0.224 0 0.4 0.176t0.176 0.432v8.928h2.976q0.736 0 0.944 0.416t-0.24 0.992z"; - var ICON_PATH_INFO = "M15.808 0.128q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.176 3.776-2.176 8.16 0 4.224 2.176 7.872 2.080 3.552 5.632 5.632 3.648 2.176 7.872 2.176 4.384 0 8.16-2.176 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.416-2.176-8.16-2.112-3.616-5.728-5.728-3.744-2.176-8.16-2.176zM16.864 23.776q0 0.064-0.064 0.064h-1.568q-0.096 0-0.096-0.064l-0.256-11.328q0-0.064 0.064-0.064h2.112q0.096 0 0.064 0.064l-0.256 11.328zM16 10.88q-0.576 0-0.976-0.4t-0.4-0.96 0.4-0.96 0.976-0.4 0.976 0.4 0.4 0.96-0.4 0.96-0.976 0.4z"; - var ICON_PATH_SEARCH = "M20.928 22.688q-1.696 1.376-3.744 2.112-2.112 0.768-4.384 0.768-3.488 0-6.464-1.728-2.88-1.696-4.576-4.608-1.76-2.976-1.76-6.464t1.76-6.464q1.696-2.88 4.576-4.576 2.976-1.76 6.464-1.76t6.464 1.76q2.912 1.696 4.608 4.576 1.728 2.976 1.728 6.464 0 2.272-0.768 4.384-0.736 2.048-2.112 3.744l9.312 9.28-1.824 1.824-9.28-9.312zM12.8 23.008q2.784 0 5.184-1.376 2.304-1.376 3.68-3.68 1.376-2.4 1.376-5.184t-1.376-5.152q-1.376-2.336-3.68-3.68-2.4-1.408-5.184-1.408t-5.152 1.408q-2.336 1.344-3.68 3.68-1.408 2.368-1.408 5.152t1.408 5.184q1.344 2.304 3.68 3.68 2.368 1.376 5.152 1.376zM12.8 23.008v0z"; - var ICON_PATH_SUCCESS_NO_CIRCLE = "M1.952 18.080q-0.32-0.352-0.416-0.88t0.128-0.976l0.16-0.352q0.224-0.416 0.64-0.528t0.8 0.176l6.496 4.704q0.384 0.288 0.912 0.272t0.88-0.336l17.312-14.272q0.352-0.288 0.848-0.256t0.848 0.352l-0.416-0.416q0.32 0.352 0.32 0.816t-0.32 0.816l-18.656 18.912q-0.32 0.352-0.8 0.352t-0.8-0.32l-7.936-8.064z"; - var ICON_PATH_SUCCESS = "M15.808 0.16q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM24.832 11.328l-11.264 11.104q-0.032 0.032-0.112 0.032t-0.112-0.032l-5.216-5.376q-0.096-0.128 0-0.288l0.704-0.96q0.032-0.064 0.112-0.064t0.112 0.032l4.256 3.264q0.064 0.032 0.144 0.032t0.112-0.032l10.336-8.608q0.064-0.064 0.144-0.064t0.112 0.064l0.672 0.672q0.128 0.128 0 0.224z"; - var ICON_PATH_WAITING = "M15.84 0.096q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM23.008 21.92l-0.512 0.896q-0.096 0.128-0.224 0.064l-8-3.808q-0.096-0.064-0.16-0.128-0.128-0.096-0.128-0.288l0.512-12.096q0-0.064 0.048-0.112t0.112-0.048h1.376q0.064 0 0.112 0.048t0.048 0.112l0.448 10.848 6.304 4.256q0.064 0.064 0.080 0.128t-0.016 0.128z"; - var ICON_PATH_WARN = "M15.808 0.16q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM15.136 8.672h1.728q0.128 0 0.224 0.096t0.096 0.256l-0.384 10.24q0 0.064-0.048 0.112t-0.112 0.048h-1.248q-0.096 0-0.144-0.048t-0.048-0.112l-0.384-10.24q0-0.16 0.096-0.256t0.224-0.096zM16 23.328q-0.48 0-0.832-0.352t-0.352-0.848 0.352-0.848 0.832-0.352 0.832 0.352 0.352 0.848-0.352 0.848-0.832 0.352z"; - function createSvgIconVNode(path) { - var color = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "#000"; - var size2 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 27; - return createVNode("svg", { - width: size2, - height: size2, - viewBox: "0 0 32 32" - }, [createVNode("path", { - d: path, - fill: color - }, null, 8, ["d", "fill"])], 8, ["width", "height"]); - } - function useCurrentPageId() { - { - return getCurrentPageId(); - } - } - function getCurrentPage() { - { - return window.__PAGE_INFO__; - } - } - function getCurrentPageId() { - { - if (!window.__id__) { - window.__id__ = plus.webview.currentWebview().id; - } - return parseInt(window.__id__); - } - } - function disableScrollListener(evt) { - evt.preventDefault(); - } - var testReachBottomTimer; - var lastScrollHeight = 0; - function createScrollListener(_ref) { - var { - onPageScroll, - onReachBottom, - onReachBottomDistance - } = _ref; - var ticking = false; - var hasReachBottom = false; - var reachBottomLocking = true; - var isReachBottom = () => { - var { - scrollHeight - } = document.documentElement; - var windowHeight = window.innerHeight; - var scrollY = window.scrollY; - var isBottom = scrollY > 0 && scrollHeight > windowHeight && scrollY + windowHeight + onReachBottomDistance >= scrollHeight; - var heightChanged = Math.abs(scrollHeight - lastScrollHeight) > onReachBottomDistance; - if (isBottom && (!hasReachBottom || heightChanged)) { - lastScrollHeight = scrollHeight; - hasReachBottom = true; - return true; - } - if (!isBottom && hasReachBottom) { - hasReachBottom = false; - } - return false; - }; - var trigger2 = () => { - onPageScroll && onPageScroll(window.pageYOffset); - function testReachBottom() { - if (isReachBottom()) { - onReachBottom && onReachBottom(); - reachBottomLocking = false; - setTimeout(function() { - reachBottomLocking = true; - }, 350); - return true; - } - } - if (onReachBottom && reachBottomLocking) { - if (testReachBottom()) - ; - else { - testReachBottomTimer = setTimeout(testReachBottom, 300); - } - } - ticking = false; - }; - return function onScroll() { - clearTimeout(testReachBottomTimer); - if (!ticking) { - requestAnimationFrame(trigger2); - } - ticking = true; - }; - } - function getRealRoute(fromRoute, toRoute) { - if (toRoute.indexOf("/") === 0) { - return toRoute; - } - if (toRoute.indexOf("./") === 0) { - return getRealRoute(fromRoute, toRoute.substr(2)); - } - var toRouteArray = toRoute.split("/"); - var toRouteLength = toRouteArray.length; - var i2 = 0; - for (; i2 < toRouteLength && toRouteArray[i2] === ".."; i2++) { - } - toRouteArray.splice(0, i2); - toRoute = toRouteArray.join("/"); - var fromRouteArray = fromRoute.length > 0 ? fromRoute.split("/") : []; - fromRouteArray.splice(fromRouteArray.length - i2 - 1, i2 + 1); - return addLeadingSlash(fromRouteArray.concat(toRouteArray).join("/")); - } - var plus_; - var weex_; - var BroadcastChannel_; - function getRuntime() { - return typeof window === "object" && typeof navigator === "object" && typeof document === "object" ? "webview" : "v8"; - } - function getPageId() { - return plus_.webview.currentWebview().id; - } - var channel; - var globalEvent; - var callbacks = {}; - function onPlusMessage(res) { - var message = res.data && res.data.__message; - if (!message || !message.__page) { - return; - } - var pageId = message.__page; - var callback = callbacks[pageId]; - callback && callback(message); - if (!message.keep) { - delete callbacks[pageId]; - } - } - function addEventListener(pageId, callback) { - if (getRuntime() === "v8") { - if (BroadcastChannel_) { - channel && channel.close(); - channel = new BroadcastChannel_(getPageId()); - channel.onmessage = onPlusMessage; - } else if (!globalEvent) { - globalEvent = weex_.requireModule("globalEvent"); - globalEvent.addEventListener("plusMessage", onPlusMessage); - } - } else { - window.__plusMessage = onPlusMessage; - } - callbacks[pageId] = callback; - } - class Page { - constructor(webview2) { - this.webview = webview2; - } - sendMessage(data) { - var message = JSON.parse(JSON.stringify({ - __message: { - data - } - })); - var id2 = this.webview.id; - if (BroadcastChannel_) { - var channel2 = new BroadcastChannel_(id2); - channel2.postMessage(message); - } else { - plus_.webview.postMessageToUniNView && plus_.webview.postMessageToUniNView(message, id2); - } - } - close() { - this.webview.close(); - } - } - function showPage(_ref) { - var { - context = {}, - url, - data = {}, - style = {}, - onMessage, - onClose - } = _ref; - plus_ = context.plus || plus; - weex_ = context.weex || (typeof weex === "object" ? weex : null); - BroadcastChannel_ = context.BroadcastChannel || (typeof BroadcastChannel === "object" ? BroadcastChannel : null); - var titleNView = { - autoBackButton: true, - titleSize: "17px" - }; - var pageId = "page".concat(Date.now()); - style = extend({}, style); - if (style.titleNView !== false && style.titleNView !== "none") { - style.titleNView = extend(titleNView, style.titleNView); - } - var defaultStyle = { - top: 0, - bottom: 0, - usingComponents: {}, - popGesture: "close", - scrollIndicator: "none", - animationType: "pop-in", - animationDuration: 200, - uniNView: { - path: "/".concat(url, ".js"), - defaultFontSize: 16, - viewport: plus_.screen.resolutionWidth - } - }; - style = extend(defaultStyle, style); - var page = plus_.webview.create("", pageId, style, { - extras: { - from: getPageId(), - runtime: getRuntime(), - data, - useGlobalEvent: !BroadcastChannel_ - } - }); - page.addEventListener("close", onClose); - addEventListener(pageId, (message) => { - if (typeof onMessage === "function") { - onMessage(message.data); - } - if (!message.keep) { - page.close("auto"); - } - }); - page.show(style.animationType, style.animationDuration); - return new Page(page); - } - class ComponentDescriptor { - constructor(vm) { - this.$bindClass = false; - this.$bindStyle = false; - this.$vm = vm; - { - this.$el = vm.$el; - } - if (this.$el.getAttribute) { - this.$bindClass = !!this.$el.getAttribute("class"); - this.$bindStyle = !!this.$el.getAttribute("style"); - } - } - selectComponent(selector) { - if (!this.$el || !selector) { - return; - } - var wxsVm = getWxsVm(this.$el.querySelector(selector)); - if (!wxsVm) { - return; - } - return createComponentDescriptor(wxsVm); - } - selectAllComponents(selector) { - if (!this.$el || !selector) { - return []; - } - var descriptors = []; - var els = this.$el.querySelectorAll(selector); - for (var i2 = 0; i2 < els.length; i2++) { - var wxsVm = getWxsVm(els[i2]); - if (wxsVm) { - descriptors.push(createComponentDescriptor(wxsVm)); - } - } - return descriptors; - } - forceUpdate(type) { - if (type === "class") { - if (this.$bindClass) { - this.$el.__wxsClassChanged = true; - this.$vm.$forceUpdate(); - } else { - this.updateWxsClass(); - } - } else if (type === "style") { - if (this.$bindStyle) { - this.$el.__wxsStyleChanged = true; - this.$vm.$forceUpdate(); - } else { - this.updateWxsStyle(); - } - } - } - updateWxsClass() { - var { - __wxsAddClass - } = this.$el; - if (__wxsAddClass.length) { - this.$el.className = __wxsAddClass.join(" "); - } - } - updateWxsStyle() { - var { - __wxsStyle - } = this.$el; - if (__wxsStyle) { - this.$el.setAttribute("style", stringifyStyle(__wxsStyle)); - } - } - setStyle(style) { - if (!this.$el || !style) { - return this; - } - if (typeof style === "string") { - style = parseStringStyle(style); - } - if (isPlainObject(style)) { - this.$el.__wxsStyle = style; - this.forceUpdate("style"); - } - return this; - } - addClass(clazz) { - if (!this.$el || !clazz) { - return this; - } - var __wxsAddClass = this.$el.__wxsAddClass || (this.$el.__wxsAddClass = []); - if (__wxsAddClass.indexOf(clazz) === -1) { - __wxsAddClass.push(clazz); - this.forceUpdate("class"); - } - return this; - } - removeClass(clazz) { - if (!this.$el || !clazz) { - return this; - } - var { - __wxsAddClass - } = this.$el; - if (__wxsAddClass) { - var index2 = __wxsAddClass.indexOf(clazz); - if (index2 > -1) { - __wxsAddClass.splice(index2, 1); - } - } - var __wxsRemoveClass = this.$el.__wxsRemoveClass || (this.$el.__wxsRemoveClass = []); - if (__wxsRemoveClass.indexOf(clazz) === -1) { - __wxsRemoveClass.push(clazz); - this.forceUpdate("class"); - } - return this; - } - hasClass(cls) { - return this.$el && this.$el.classList.contains(cls); - } - getDataset() { - return this.$el && this.$el.dataset; - } - callMethod(funcName) { - var args = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; - var func = this.$vm[funcName]; - if (isFunction(func)) { - func(JSON.parse(JSON.stringify(args))); - } else if (this.$vm.ownerId) { - UniViewJSBridge.publishHandler(ON_WXS_INVOKE_CALL_METHOD, { - nodeId: this.$el.__id, - ownerId: this.$vm.ownerId, - method: funcName, - args - }); - } - } - requestAnimationFrame(callback) { - return window.requestAnimationFrame(callback); - } - getState() { - return this.$el && (this.$el.__wxsState || (this.$el.__wxsState = {})); - } - triggerEvent(eventName) { - var detail = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; - return this.$vm.$emit(eventName, detail), this; - } - getComputedStyle(names) { - if (this.$el) { - var styles = window.getComputedStyle(this.$el); - if (names && names.length) { - return names.reduce((res, n) => { - res[n] = styles[n]; - return res; - }, {}); - } - return styles; - } - return {}; - } - setTimeout(handler, timeout) { - return window.setTimeout(handler, timeout); - } - clearTimeout(handle) { - return window.clearTimeout(handle); - } - getBoundingClientRect() { - return this.$el.getBoundingClientRect(); - } - } - function createComponentDescriptor(vm) { - if (vm && vm.$el) { - if (!vm.$el.__wxsComponentDescriptor) { - vm.$el.__wxsComponentDescriptor = new ComponentDescriptor(vm); - } - return vm.$el.__wxsComponentDescriptor; - } - } - function getComponentDescriptor(instance, isOwnerInstance) { - return createComponentDescriptor(instance); - } - function getWxsVm(el) { - if (!el) { - return; - } - { - return createComponentDescriptorVm(el); - } - } - function createComponentDescriptorVm(el) { - return el.__wxsVm || (el.__wxsVm = { - ownerId: el.__ownerId, - $el: el, - $emit() { - }, - $forceUpdate() { - var { - __wxsStyle, - __wxsAddClass, - __wxsRemoveClass, - __wxsStyleChanged, - __wxsClassChanged - } = el; - var updateClass; - var updateStyle; - if (__wxsStyleChanged) { - el.__wxsStyleChanged = false; - __wxsStyle && (updateStyle = () => { - Object.keys(__wxsStyle).forEach((n) => { - el.style[n] = __wxsStyle[n]; - }); - }); - } - if (__wxsClassChanged) { - el.__wxsClassChanged = false; - updateClass = () => { - __wxsRemoveClass && __wxsRemoveClass.forEach((clazz) => { - el.classList.remove(clazz); - }); - __wxsAddClass && __wxsAddClass.forEach((clazz) => { - el.classList.add(clazz); - }); - }; - } - requestAnimationFrame(() => { - updateClass && updateClass(); - updateStyle && updateStyle(); - }); - } - }); - } - var isClickEvent = (val) => val.type === "click"; - function $nne(evt, eventValue, instance) { - var { - currentTarget - } = evt; - if (!(evt instanceof Event) || !(currentTarget instanceof HTMLElement)) { - return [evt]; - } - var isHTMLTarget = currentTarget.tagName.indexOf("UNI-") !== 0; - var res = createNativeEvent(evt, isHTMLTarget); - if (isClickEvent(evt)) { - normalizeClickEvent(res, evt); - } else if (evt instanceof TouchEvent) { - var top = getWindowTop(); - res.touches = normalizeTouchEvent(evt.touches, top); - res.changedTouches = normalizeTouchEvent(evt.changedTouches, top); - } - return [res]; - } - function findUniTarget(target) { - while (target && target.tagName.indexOf("UNI-") !== 0) { - target = target.parentElement; - } - return target; - } - function createNativeEvent(evt) { - var htmlElement = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false; - var { - type, - timeStamp, - target, - currentTarget - } = evt; - var event = { - type, - timeStamp, - target: normalizeTarget(htmlElement ? target : findUniTarget(target)), - detail: {}, - currentTarget: normalizeTarget(currentTarget) - }; - if (evt._stopped) { - event._stopped = true; - } - if (evt.type.startsWith("touch")) { - event.touches = evt.touches; - event.changedTouches = evt.changedTouches; - } - return event; - } - function normalizeClickEvent(evt, mouseEvt) { - var { - x, - y - } = mouseEvt; - var top = getWindowTop(); - evt.detail = { - x, - y: y - top - }; - evt.touches = evt.changedTouches = [createTouchEvent(mouseEvt, top)]; - } - function createTouchEvent(evt, top) { - return { - force: 1, - identifier: 0, - clientX: evt.clientX, - clientY: evt.clientY - top, - pageX: evt.pageX, - pageY: evt.pageY - top - }; - } - function normalizeTouchEvent(touches, top) { - var res = []; - for (var i2 = 0; i2 < touches.length; i2++) { - var { - identifier, - pageX, - pageY, - clientX, - clientY, - force - } = touches[i2]; - res.push({ - identifier, - pageX, - pageY: pageY - top, - clientX, - clientY: clientY - top, - force: force || 0 - }); - } - return res; - } - var VD_SYNC = "vdSync"; - var APP_SERVICE_ID = "__uniapp__service"; - var ON_WEBVIEW_READY = "onWebviewReady"; - var ACTION_TYPE_DICT = 0; - var WEBVIEW_INSERTED = "webviewInserted"; - var WEBVIEW_REMOVED = "webviewRemoved"; - var WEBVIEW_ID_PREFIX = "webviewId"; - var API_SET_LOCALE = "setLocale"; - var UniViewJSBridge$1 = /* @__PURE__ */ extend(ViewJSBridge, { - publishHandler - }); - function publishHandler(event) { - var args = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; - var pageId = getCurrentPageId() + ""; - plus.webview.postMessageToUniNView({ - type: "subscribeHandler", - args: { - type: event, - data: args, - pageId - } - }, APP_SERVICE_ID); - } - function formatApiArgs(args, options) { - var params = args[0]; - if (!options || !isPlainObject(options.formatArgs) && isPlainObject(params)) { - return; - } - var formatArgs = options.formatArgs; - var keys = Object.keys(formatArgs); - for (var i2 = 0; i2 < keys.length; i2++) { - var name = keys[i2]; - var formatterOrDefaultValue = formatArgs[name]; - if (isFunction(formatterOrDefaultValue)) { - var errMsg = formatterOrDefaultValue(args[0][name], params); - if (isString(errMsg)) { - return errMsg; - } - } else { - if (!hasOwn$1(params, name)) { - params[name] = formatterOrDefaultValue; - } - } - } - } - function beforeInvokeApi(name, args, protocol, options) { - if (options && options.beforeInvoke) { - var errMsg2 = options.beforeInvoke(args); - if (isString(errMsg2)) { - return errMsg2; - } - } - var errMsg = formatApiArgs(args, options); - if (errMsg) { - return errMsg; - } - } - function wrapperSyncApi(name, fn, protocol, options) { - return function() { - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - var errMsg = beforeInvokeApi(name, args, protocol, options); - if (errMsg) { - throw new Error(errMsg); - } - return fn.apply(null, args); - }; - } - function defineSyncApi(name, fn, protocol, options) { - return wrapperSyncApi(name, fn, void 0, options); - } - function getBaseSystemInfo() { - if (typeof __SYSTEM_INFO__ !== "undefined") { - return window.__SYSTEM_INFO__; - } - var { - resolutionWidth - } = plus.screen.getCurrentSize() || { - resolutionWidth: 0 - }; - return { - platform: (plus.os.name || "").toLowerCase(), - pixelRatio: plus.screen.scale, - windowWidth: Math.round(resolutionWidth) - }; - } - function getRealPath(filepath) { - if (filepath.indexOf("//") === 0) { - return "https:" + filepath; - } - if (SCHEME_RE.test(filepath) || DATA_RE.test(filepath)) { - return filepath; - } - if (isSystemURL(filepath)) { - return "file://" + normalizeLocalPath(filepath); - } - var wwwPath = "file://" + normalizeLocalPath("_www"); - if (filepath.indexOf("/") === 0) { - if (filepath.startsWith("/storage/") || filepath.startsWith("/sdcard/") || filepath.includes("/Containers/Data/Application/")) { - return "file://" + filepath; - } - return wwwPath + filepath; - } - if (filepath.indexOf("../") === 0 || filepath.indexOf("./") === 0) { - if (typeof __id__ === "string") { - return wwwPath + getRealRoute(addLeadingSlash(__id__), filepath); - } else { - var page = getCurrentPage(); - if (page) { - return wwwPath + getRealRoute(addLeadingSlash(page.route), filepath); - } - } - } - return filepath; - } - var normalizeLocalPath = cacheStringFunction((filepath) => { - return plus.io.convertLocalFileSystemURL(filepath).replace(/^\/?apps\//, "/android_asset/apps/").replace(/\/$/, ""); - }); - function isSystemURL(filepath) { - if (filepath.indexOf("_www") === 0 || filepath.indexOf("_doc") === 0 || filepath.indexOf("_documents") === 0 || filepath.indexOf("_downloads") === 0) { - return true; - } - return false; - } - var index$1 = 0; - function saveImage(dataURL, dirname, callback) { - var id2 = "".concat(Date.now()).concat(index$1++); - var array = dataURL.split(","); - var scheme = array[0]; - var base64 = array[1]; - var format = (scheme.match(/data:image\/(\S+?);/) || ["", "png"])[1].replace("jpeg", "jpg"); - var fileName = "".concat(id2, ".").concat(format); - var tempFilePath = "".concat(dirname, "/").concat(fileName); - var i2 = dirname.indexOf("/"); - var basePath = dirname.substring(0, i2); - var dirPath = dirname.substring(i2 + 1); - plus.io.resolveLocalFileSystemURL(basePath, function(entry) { - entry.getDirectory(dirPath, { - create: true, - exclusive: false - }, function(entry2) { - entry2.getFile(fileName, { - create: true, - exclusive: false - }, function(entry3) { - entry3.createWriter(function(writer) { - writer.onwrite = function() { - callback(null, tempFilePath); - }; - writer.onerror = callback; - writer.seek(0); - writer.writeAsBinary(base64); - }, callback); - }, callback); - }, callback); - }, callback); - } - function getBase64(path) { - return new Promise(function(resolve, reject) { - function onError() { - var bitmap = new plus.nativeObj.Bitmap("bitmap_".concat(Date.now(), "_").concat(Math.random(), "}")); - bitmap.load(path, function() { - resolve(bitmap.toBase64Data()); - bitmap.clear(); - }, function(err2) { - bitmap.clear(); - reject(err2); - }); - } - plus.io.resolveLocalFileSystemURL(path, function(entry) { - entry.file(function(file) { - var fileReader = new plus.io.FileReader(); - fileReader.onload = function(data) { - resolve(data.target.result); - }; - fileReader.onerror = onError; - fileReader.readAsDataURL(file); - }, onError); - }, onError); - }); - } - function download(url) { - return new Promise(function(resolve, reject) { - if (url.indexOf("http://") !== 0 && url.indexOf("https://") !== 0) { - resolve(url); - return; - } - plus.downloader.createDownload(url, { - filename: "_doc/uniapp_temp/download/" - }, function(d, status) { - if (status === 200) { - resolve(d.filename); - } else { - reject(new Error("network fail")); - } - }).start(); - }); - } - function getSameOriginUrl(url) { - return download(url).then(function(url2) { - var g2 = window; - if (g2.webkit && g2.webkit.messageHandlers) { - return getBase64(url2); - } - return plus.io.convertLocalFileSystemURL(url2); - }); - } - var common = {}; - (function(exports) { - var TYPED_OK = typeof Uint8Array !== "undefined" && typeof Uint16Array !== "undefined" && typeof Int32Array !== "undefined"; - function _has2(obj, key2) { - return Object.prototype.hasOwnProperty.call(obj, key2); - } - exports.assign = function(obj) { - var sources = Array.prototype.slice.call(arguments, 1); - while (sources.length) { - var source = sources.shift(); - if (!source) { - continue; - } - if (typeof source !== "object") { - throw new TypeError(source + "must be non-object"); - } - for (var p2 in source) { - if (_has2(source, p2)) { - obj[p2] = source[p2]; - } - } - } - return obj; - }; - exports.shrinkBuf = function(buf, size2) { - if (buf.length === size2) { - return buf; - } - if (buf.subarray) { - return buf.subarray(0, size2); - } - buf.length = size2; - return buf; - }; - var fnTyped = { - arraySet: function(dest, src, src_offs, len, dest_offs) { - if (src.subarray && dest.subarray) { - dest.set(src.subarray(src_offs, src_offs + len), dest_offs); - return; - } - for (var i2 = 0; i2 < len; i2++) { - dest[dest_offs + i2] = src[src_offs + i2]; - } - }, - flattenChunks: function(chunks) { - var i2, l, len, pos, chunk, result; - len = 0; - for (i2 = 0, l = chunks.length; i2 < l; i2++) { - len += chunks[i2].length; - } - result = new Uint8Array(len); - pos = 0; - for (i2 = 0, l = chunks.length; i2 < l; i2++) { - chunk = chunks[i2]; - result.set(chunk, pos); - pos += chunk.length; - } - return result; - } - }; - var fnUntyped = { - arraySet: function(dest, src, src_offs, len, dest_offs) { - for (var i2 = 0; i2 < len; i2++) { - dest[dest_offs + i2] = src[src_offs + i2]; - } - }, - flattenChunks: function(chunks) { - return [].concat.apply([], chunks); - } - }; - exports.setTyped = function(on) { - if (on) { - exports.Buf8 = Uint8Array; - exports.Buf16 = Uint16Array; - exports.Buf32 = Int32Array; - exports.assign(exports, fnTyped); - } else { - exports.Buf8 = Array; - exports.Buf16 = Array; - exports.Buf32 = Array; - exports.assign(exports, fnUntyped); - } - }; - exports.setTyped(TYPED_OK); - })(common); - var deflate$4 = {}; - var deflate$3 = {}; - var trees$1 = {}; - var utils$6 = common; - var Z_FIXED$1 = 4; - var Z_BINARY = 0; - var Z_TEXT = 1; - var Z_UNKNOWN$1 = 2; - function zero$1(buf) { - var len = buf.length; - while (--len >= 0) { - buf[len] = 0; - } - } - var STORED_BLOCK = 0; - var STATIC_TREES = 1; - var DYN_TREES = 2; - var MIN_MATCH$1 = 3; - var MAX_MATCH$1 = 258; - var LENGTH_CODES$1 = 29; - var LITERALS$1 = 256; - var L_CODES$1 = LITERALS$1 + 1 + LENGTH_CODES$1; - var D_CODES$1 = 30; - var BL_CODES$1 = 19; - var HEAP_SIZE$1 = 2 * L_CODES$1 + 1; - var MAX_BITS$1 = 15; - var Buf_size = 16; - var MAX_BL_BITS = 7; - var END_BLOCK = 256; - var REP_3_6 = 16; - var REPZ_3_10 = 17; - var REPZ_11_138 = 18; - var extra_lbits = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0]; - var extra_dbits = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13]; - var extra_blbits = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7]; - var bl_order = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]; - var DIST_CODE_LEN = 512; - var static_ltree = new Array((L_CODES$1 + 2) * 2); - zero$1(static_ltree); - var static_dtree = new Array(D_CODES$1 * 2); - zero$1(static_dtree); - var _dist_code = new Array(DIST_CODE_LEN); - zero$1(_dist_code); - var _length_code = new Array(MAX_MATCH$1 - MIN_MATCH$1 + 1); - zero$1(_length_code); - var base_length = new Array(LENGTH_CODES$1); - zero$1(base_length); - var base_dist = new Array(D_CODES$1); - zero$1(base_dist); - function StaticTreeDesc(static_tree, extra_bits, extra_base, elems, max_length) { - this.static_tree = static_tree; - this.extra_bits = extra_bits; - this.extra_base = extra_base; - this.elems = elems; - this.max_length = max_length; - this.has_stree = static_tree && static_tree.length; - } - var static_l_desc; - var static_d_desc; - var static_bl_desc; - function TreeDesc(dyn_tree, stat_desc) { - this.dyn_tree = dyn_tree; - this.max_code = 0; - this.stat_desc = stat_desc; - } - function d_code(dist) { - return dist < 256 ? _dist_code[dist] : _dist_code[256 + (dist >>> 7)]; - } - function put_short(s, w) { - s.pending_buf[s.pending++] = w & 255; - s.pending_buf[s.pending++] = w >>> 8 & 255; - } - function send_bits(s, value, length) { - if (s.bi_valid > Buf_size - length) { - s.bi_buf |= value << s.bi_valid & 65535; - put_short(s, s.bi_buf); - s.bi_buf = value >> Buf_size - s.bi_valid; - s.bi_valid += length - Buf_size; - } else { - s.bi_buf |= value << s.bi_valid & 65535; - s.bi_valid += length; - } - } - function send_code(s, c2, tree) { - send_bits(s, tree[c2 * 2], tree[c2 * 2 + 1]); - } - function bi_reverse(code, len) { - var res = 0; - do { - res |= code & 1; - code >>>= 1; - res <<= 1; - } while (--len > 0); - return res >>> 1; - } - function bi_flush(s) { - if (s.bi_valid === 16) { - put_short(s, s.bi_buf); - s.bi_buf = 0; - s.bi_valid = 0; - } else if (s.bi_valid >= 8) { - s.pending_buf[s.pending++] = s.bi_buf & 255; - s.bi_buf >>= 8; - s.bi_valid -= 8; - } - } - function gen_bitlen(s, desc) { - var tree = desc.dyn_tree; - var max_code = desc.max_code; - var stree = desc.stat_desc.static_tree; - var has_stree = desc.stat_desc.has_stree; - var extra = desc.stat_desc.extra_bits; - var base2 = desc.stat_desc.extra_base; - var max_length = desc.stat_desc.max_length; - var h2; - var n, m; - var bits; - var xbits; - var f2; - var overflow = 0; - for (bits = 0; bits <= MAX_BITS$1; bits++) { - s.bl_count[bits] = 0; - } - tree[s.heap[s.heap_max] * 2 + 1] = 0; - for (h2 = s.heap_max + 1; h2 < HEAP_SIZE$1; h2++) { - n = s.heap[h2]; - bits = tree[tree[n * 2 + 1] * 2 + 1] + 1; - if (bits > max_length) { - bits = max_length; - overflow++; - } - tree[n * 2 + 1] = bits; - if (n > max_code) { - continue; - } - s.bl_count[bits]++; - xbits = 0; - if (n >= base2) { - xbits = extra[n - base2]; - } - f2 = tree[n * 2]; - s.opt_len += f2 * (bits + xbits); - if (has_stree) { - s.static_len += f2 * (stree[n * 2 + 1] + xbits); - } - } - if (overflow === 0) { - return; - } - do { - bits = max_length - 1; - while (s.bl_count[bits] === 0) { - bits--; - } - s.bl_count[bits]--; - s.bl_count[bits + 1] += 2; - s.bl_count[max_length]--; - overflow -= 2; - } while (overflow > 0); - for (bits = max_length; bits !== 0; bits--) { - n = s.bl_count[bits]; - while (n !== 0) { - m = s.heap[--h2]; - if (m > max_code) { - continue; - } - if (tree[m * 2 + 1] !== bits) { - s.opt_len += (bits - tree[m * 2 + 1]) * tree[m * 2]; - tree[m * 2 + 1] = bits; - } - n--; - } - } - } - function gen_codes(tree, max_code, bl_count) { - var next_code = new Array(MAX_BITS$1 + 1); - var code = 0; - var bits; - var n; - for (bits = 1; bits <= MAX_BITS$1; bits++) { - next_code[bits] = code = code + bl_count[bits - 1] << 1; - } - for (n = 0; n <= max_code; n++) { - var len = tree[n * 2 + 1]; - if (len === 0) { - continue; - } - tree[n * 2] = bi_reverse(next_code[len]++, len); - } - } - function tr_static_init() { - var n; - var bits; - var length; - var code; - var dist; - var bl_count = new Array(MAX_BITS$1 + 1); - length = 0; - for (code = 0; code < LENGTH_CODES$1 - 1; code++) { - base_length[code] = length; - for (n = 0; n < 1 << extra_lbits[code]; n++) { - _length_code[length++] = code; - } - } - _length_code[length - 1] = code; - dist = 0; - for (code = 0; code < 16; code++) { - base_dist[code] = dist; - for (n = 0; n < 1 << extra_dbits[code]; n++) { - _dist_code[dist++] = code; - } - } - dist >>= 7; - for (; code < D_CODES$1; code++) { - base_dist[code] = dist << 7; - for (n = 0; n < 1 << extra_dbits[code] - 7; n++) { - _dist_code[256 + dist++] = code; - } - } - for (bits = 0; bits <= MAX_BITS$1; bits++) { - bl_count[bits] = 0; - } - n = 0; - while (n <= 143) { - static_ltree[n * 2 + 1] = 8; - n++; - bl_count[8]++; - } - while (n <= 255) { - static_ltree[n * 2 + 1] = 9; - n++; - bl_count[9]++; - } - while (n <= 279) { - static_ltree[n * 2 + 1] = 7; - n++; - bl_count[7]++; - } - while (n <= 287) { - static_ltree[n * 2 + 1] = 8; - n++; - bl_count[8]++; - } - gen_codes(static_ltree, L_CODES$1 + 1, bl_count); - for (n = 0; n < D_CODES$1; n++) { - static_dtree[n * 2 + 1] = 5; - static_dtree[n * 2] = bi_reverse(n, 5); - } - static_l_desc = new StaticTreeDesc(static_ltree, extra_lbits, LITERALS$1 + 1, L_CODES$1, MAX_BITS$1); - static_d_desc = new StaticTreeDesc(static_dtree, extra_dbits, 0, D_CODES$1, MAX_BITS$1); - static_bl_desc = new StaticTreeDesc(new Array(0), extra_blbits, 0, BL_CODES$1, MAX_BL_BITS); - } - function init_block(s) { - var n; - for (n = 0; n < L_CODES$1; n++) { - s.dyn_ltree[n * 2] = 0; - } - for (n = 0; n < D_CODES$1; n++) { - s.dyn_dtree[n * 2] = 0; - } - for (n = 0; n < BL_CODES$1; n++) { - s.bl_tree[n * 2] = 0; - } - s.dyn_ltree[END_BLOCK * 2] = 1; - s.opt_len = s.static_len = 0; - s.last_lit = s.matches = 0; - } - function bi_windup(s) { - if (s.bi_valid > 8) { - put_short(s, s.bi_buf); - } else if (s.bi_valid > 0) { - s.pending_buf[s.pending++] = s.bi_buf; - } - s.bi_buf = 0; - s.bi_valid = 0; - } - function copy_block(s, buf, len, header) { - bi_windup(s); - if (header) { - put_short(s, len); - put_short(s, ~len); - } - utils$6.arraySet(s.pending_buf, s.window, buf, len, s.pending); - s.pending += len; - } - function smaller(tree, n, m, depth) { - var _n2 = n * 2; - var _m2 = m * 2; - return tree[_n2] < tree[_m2] || tree[_n2] === tree[_m2] && depth[n] <= depth[m]; - } - function pqdownheap(s, tree, k) { - var v2 = s.heap[k]; - var j = k << 1; - while (j <= s.heap_len) { - if (j < s.heap_len && smaller(tree, s.heap[j + 1], s.heap[j], s.depth)) { - j++; - } - if (smaller(tree, v2, s.heap[j], s.depth)) { - break; - } - s.heap[k] = s.heap[j]; - k = j; - j <<= 1; - } - s.heap[k] = v2; - } - function compress_block(s, ltree, dtree) { - var dist; - var lc; - var lx = 0; - var code; - var extra; - if (s.last_lit !== 0) { - do { - dist = s.pending_buf[s.d_buf + lx * 2] << 8 | s.pending_buf[s.d_buf + lx * 2 + 1]; - lc = s.pending_buf[s.l_buf + lx]; - lx++; - if (dist === 0) { - send_code(s, lc, ltree); - } else { - code = _length_code[lc]; - send_code(s, code + LITERALS$1 + 1, ltree); - extra = extra_lbits[code]; - if (extra !== 0) { - lc -= base_length[code]; - send_bits(s, lc, extra); - } - dist--; - code = d_code(dist); - send_code(s, code, dtree); - extra = extra_dbits[code]; - if (extra !== 0) { - dist -= base_dist[code]; - send_bits(s, dist, extra); - } - } - } while (lx < s.last_lit); - } - send_code(s, END_BLOCK, ltree); - } - function build_tree(s, desc) { - var tree = desc.dyn_tree; - var stree = desc.stat_desc.static_tree; - var has_stree = desc.stat_desc.has_stree; - var elems = desc.stat_desc.elems; - var n, m; - var max_code = -1; - var node; - s.heap_len = 0; - s.heap_max = HEAP_SIZE$1; - for (n = 0; n < elems; n++) { - if (tree[n * 2] !== 0) { - s.heap[++s.heap_len] = max_code = n; - s.depth[n] = 0; - } else { - tree[n * 2 + 1] = 0; - } - } - while (s.heap_len < 2) { - node = s.heap[++s.heap_len] = max_code < 2 ? ++max_code : 0; - tree[node * 2] = 1; - s.depth[node] = 0; - s.opt_len--; - if (has_stree) { - s.static_len -= stree[node * 2 + 1]; - } - } - desc.max_code = max_code; - for (n = s.heap_len >> 1; n >= 1; n--) { - pqdownheap(s, tree, n); - } - node = elems; - do { - n = s.heap[1]; - s.heap[1] = s.heap[s.heap_len--]; - pqdownheap(s, tree, 1); - m = s.heap[1]; - s.heap[--s.heap_max] = n; - s.heap[--s.heap_max] = m; - tree[node * 2] = tree[n * 2] + tree[m * 2]; - s.depth[node] = (s.depth[n] >= s.depth[m] ? s.depth[n] : s.depth[m]) + 1; - tree[n * 2 + 1] = tree[m * 2 + 1] = node; - s.heap[1] = node++; - pqdownheap(s, tree, 1); - } while (s.heap_len >= 2); - s.heap[--s.heap_max] = s.heap[1]; - gen_bitlen(s, desc); - gen_codes(tree, max_code, s.bl_count); - } - function scan_tree(s, tree, max_code) { - var n; - var prevlen = -1; - var curlen; - var nextlen = tree[0 * 2 + 1]; - var count = 0; - var max_count = 7; - var min_count = 4; - if (nextlen === 0) { - max_count = 138; - min_count = 3; - } - tree[(max_code + 1) * 2 + 1] = 65535; - for (n = 0; n <= max_code; n++) { - curlen = nextlen; - nextlen = tree[(n + 1) * 2 + 1]; - if (++count < max_count && curlen === nextlen) { - continue; - } else if (count < min_count) { - s.bl_tree[curlen * 2] += count; - } else if (curlen !== 0) { - if (curlen !== prevlen) { - s.bl_tree[curlen * 2]++; - } - s.bl_tree[REP_3_6 * 2]++; - } else if (count <= 10) { - s.bl_tree[REPZ_3_10 * 2]++; - } else { - s.bl_tree[REPZ_11_138 * 2]++; - } - count = 0; - prevlen = curlen; - if (nextlen === 0) { - max_count = 138; - min_count = 3; - } else if (curlen === nextlen) { - max_count = 6; - min_count = 3; - } else { - max_count = 7; - min_count = 4; - } - } - } - function send_tree(s, tree, max_code) { - var n; - var prevlen = -1; - var curlen; - var nextlen = tree[0 * 2 + 1]; - var count = 0; - var max_count = 7; - var min_count = 4; - if (nextlen === 0) { - max_count = 138; - min_count = 3; - } - for (n = 0; n <= max_code; n++) { - curlen = nextlen; - nextlen = tree[(n + 1) * 2 + 1]; - if (++count < max_count && curlen === nextlen) { - continue; - } else if (count < min_count) { - do { - send_code(s, curlen, s.bl_tree); - } while (--count !== 0); - } else if (curlen !== 0) { - if (curlen !== prevlen) { - send_code(s, curlen, s.bl_tree); - count--; - } - send_code(s, REP_3_6, s.bl_tree); - send_bits(s, count - 3, 2); - } else if (count <= 10) { - send_code(s, REPZ_3_10, s.bl_tree); - send_bits(s, count - 3, 3); - } else { - send_code(s, REPZ_11_138, s.bl_tree); - send_bits(s, count - 11, 7); - } - count = 0; - prevlen = curlen; - if (nextlen === 0) { - max_count = 138; - min_count = 3; - } else if (curlen === nextlen) { - max_count = 6; - min_count = 3; - } else { - max_count = 7; - min_count = 4; - } - } - } - function build_bl_tree(s) { - var max_blindex; - scan_tree(s, s.dyn_ltree, s.l_desc.max_code); - scan_tree(s, s.dyn_dtree, s.d_desc.max_code); - build_tree(s, s.bl_desc); - for (max_blindex = BL_CODES$1 - 1; max_blindex >= 3; max_blindex--) { - if (s.bl_tree[bl_order[max_blindex] * 2 + 1] !== 0) { - break; - } - } - s.opt_len += 3 * (max_blindex + 1) + 5 + 5 + 4; - return max_blindex; - } - function send_all_trees(s, lcodes, dcodes, blcodes) { - var rank2; - send_bits(s, lcodes - 257, 5); - send_bits(s, dcodes - 1, 5); - send_bits(s, blcodes - 4, 4); - for (rank2 = 0; rank2 < blcodes; rank2++) { - send_bits(s, s.bl_tree[bl_order[rank2] * 2 + 1], 3); - } - send_tree(s, s.dyn_ltree, lcodes - 1); - send_tree(s, s.dyn_dtree, dcodes - 1); - } - function detect_data_type(s) { - var black_mask = 4093624447; - var n; - for (n = 0; n <= 31; n++, black_mask >>>= 1) { - if (black_mask & 1 && s.dyn_ltree[n * 2] !== 0) { - return Z_BINARY; - } - } - if (s.dyn_ltree[9 * 2] !== 0 || s.dyn_ltree[10 * 2] !== 0 || s.dyn_ltree[13 * 2] !== 0) { - return Z_TEXT; - } - for (n = 32; n < LITERALS$1; n++) { - if (s.dyn_ltree[n * 2] !== 0) { - return Z_TEXT; - } - } - return Z_BINARY; - } - var static_init_done = false; - function _tr_init(s) { - if (!static_init_done) { - tr_static_init(); - static_init_done = true; - } - s.l_desc = new TreeDesc(s.dyn_ltree, static_l_desc); - s.d_desc = new TreeDesc(s.dyn_dtree, static_d_desc); - s.bl_desc = new TreeDesc(s.bl_tree, static_bl_desc); - s.bi_buf = 0; - s.bi_valid = 0; - init_block(s); - } - function _tr_stored_block(s, buf, stored_len, last) { - send_bits(s, (STORED_BLOCK << 1) + (last ? 1 : 0), 3); - copy_block(s, buf, stored_len, true); - } - function _tr_align(s) { - send_bits(s, STATIC_TREES << 1, 3); - send_code(s, END_BLOCK, static_ltree); - bi_flush(s); - } - function _tr_flush_block(s, buf, stored_len, last) { - var opt_lenb, static_lenb; - var max_blindex = 0; - if (s.level > 0) { - if (s.strm.data_type === Z_UNKNOWN$1) { - s.strm.data_type = detect_data_type(s); - } - build_tree(s, s.l_desc); - build_tree(s, s.d_desc); - max_blindex = build_bl_tree(s); - opt_lenb = s.opt_len + 3 + 7 >>> 3; - static_lenb = s.static_len + 3 + 7 >>> 3; - if (static_lenb <= opt_lenb) { - opt_lenb = static_lenb; - } - } else { - opt_lenb = static_lenb = stored_len + 5; - } - if (stored_len + 4 <= opt_lenb && buf !== -1) { - _tr_stored_block(s, buf, stored_len, last); - } else if (s.strategy === Z_FIXED$1 || static_lenb === opt_lenb) { - send_bits(s, (STATIC_TREES << 1) + (last ? 1 : 0), 3); - compress_block(s, static_ltree, static_dtree); - } else { - send_bits(s, (DYN_TREES << 1) + (last ? 1 : 0), 3); - send_all_trees(s, s.l_desc.max_code + 1, s.d_desc.max_code + 1, max_blindex + 1); - compress_block(s, s.dyn_ltree, s.dyn_dtree); - } - init_block(s); - if (last) { - bi_windup(s); - } - } - function _tr_tally(s, dist, lc) { - s.pending_buf[s.d_buf + s.last_lit * 2] = dist >>> 8 & 255; - s.pending_buf[s.d_buf + s.last_lit * 2 + 1] = dist & 255; - s.pending_buf[s.l_buf + s.last_lit] = lc & 255; - s.last_lit++; - if (dist === 0) { - s.dyn_ltree[lc * 2]++; - } else { - s.matches++; - dist--; - s.dyn_ltree[(_length_code[lc] + LITERALS$1 + 1) * 2]++; - s.dyn_dtree[d_code(dist) * 2]++; - } - return s.last_lit === s.lit_bufsize - 1; - } - trees$1._tr_init = _tr_init; - trees$1._tr_stored_block = _tr_stored_block; - trees$1._tr_flush_block = _tr_flush_block; - trees$1._tr_tally = _tr_tally; - trees$1._tr_align = _tr_align; - function adler32$2(adler, buf, len, pos) { - var s1 = adler & 65535 | 0, s2 = adler >>> 16 & 65535 | 0, n = 0; - while (len !== 0) { - n = len > 2e3 ? 2e3 : len; - len -= n; - do { - s1 = s1 + buf[pos++] | 0; - s2 = s2 + s1 | 0; - } while (--n); - s1 %= 65521; - s2 %= 65521; - } - return s1 | s2 << 16 | 0; - } - var adler32_1 = adler32$2; - function makeTable() { - var c2, table = []; - for (var n = 0; n < 256; n++) { - c2 = n; - for (var k = 0; k < 8; k++) { - c2 = c2 & 1 ? 3988292384 ^ c2 >>> 1 : c2 >>> 1; - } - table[n] = c2; - } - return table; - } - var crcTable = makeTable(); - function crc32$2(crc, buf, len, pos) { - var t2 = crcTable, end = pos + len; - crc ^= -1; - for (var i2 = pos; i2 < end; i2++) { - crc = crc >>> 8 ^ t2[(crc ^ buf[i2]) & 255]; - } - return crc ^ -1; - } - var crc32_1 = crc32$2; - var messages = { - 2: "need dictionary", - 1: "stream end", - 0: "", - "-1": "file error", - "-2": "stream error", - "-3": "data error", - "-4": "insufficient memory", - "-5": "buffer error", - "-6": "incompatible version" - }; - var utils$5 = common; - var trees = trees$1; - var adler32$1 = adler32_1; - var crc32$1 = crc32_1; - var msg$2 = messages; - var Z_NO_FLUSH$1 = 0; - var Z_PARTIAL_FLUSH = 1; - var Z_FULL_FLUSH = 3; - var Z_FINISH$2 = 4; - var Z_BLOCK$1 = 5; - var Z_OK$2 = 0; - var Z_STREAM_END$2 = 1; - var Z_STREAM_ERROR$1 = -2; - var Z_DATA_ERROR$1 = -3; - var Z_BUF_ERROR$1 = -5; - var Z_DEFAULT_COMPRESSION$1 = -1; - var Z_FILTERED = 1; - var Z_HUFFMAN_ONLY = 2; - var Z_RLE = 3; - var Z_FIXED = 4; - var Z_DEFAULT_STRATEGY$1 = 0; - var Z_UNKNOWN = 2; - var Z_DEFLATED$2 = 8; - var MAX_MEM_LEVEL = 9; - var MAX_WBITS$1 = 15; - var DEF_MEM_LEVEL = 8; - var LENGTH_CODES = 29; - var LITERALS = 256; - var L_CODES = LITERALS + 1 + LENGTH_CODES; - var D_CODES = 30; - var BL_CODES = 19; - var HEAP_SIZE = 2 * L_CODES + 1; - var MAX_BITS = 15; - var MIN_MATCH = 3; - var MAX_MATCH = 258; - var MIN_LOOKAHEAD = MAX_MATCH + MIN_MATCH + 1; - var PRESET_DICT = 32; - var INIT_STATE = 42; - var EXTRA_STATE = 69; - var NAME_STATE = 73; - var COMMENT_STATE = 91; - var HCRC_STATE = 103; - var BUSY_STATE = 113; - var FINISH_STATE = 666; - var BS_NEED_MORE = 1; - var BS_BLOCK_DONE = 2; - var BS_FINISH_STARTED = 3; - var BS_FINISH_DONE = 4; - var OS_CODE = 3; - function err(strm, errorCode) { - strm.msg = msg$2[errorCode]; - return errorCode; - } - function rank(f2) { - return (f2 << 1) - (f2 > 4 ? 9 : 0); - } - function zero(buf) { - var len = buf.length; - while (--len >= 0) { - buf[len] = 0; - } - } - function flush_pending(strm) { - var s = strm.state; - var len = s.pending; - if (len > strm.avail_out) { - len = strm.avail_out; - } - if (len === 0) { - return; - } - utils$5.arraySet(strm.output, s.pending_buf, s.pending_out, len, strm.next_out); - strm.next_out += len; - s.pending_out += len; - strm.total_out += len; - strm.avail_out -= len; - s.pending -= len; - if (s.pending === 0) { - s.pending_out = 0; - } - } - function flush_block_only(s, last) { - trees._tr_flush_block(s, s.block_start >= 0 ? s.block_start : -1, s.strstart - s.block_start, last); - s.block_start = s.strstart; - flush_pending(s.strm); - } - function put_byte(s, b) { - s.pending_buf[s.pending++] = b; - } - function putShortMSB(s, b) { - s.pending_buf[s.pending++] = b >>> 8 & 255; - s.pending_buf[s.pending++] = b & 255; - } - function read_buf(strm, buf, start, size2) { - var len = strm.avail_in; - if (len > size2) { - len = size2; - } - if (len === 0) { - return 0; - } - strm.avail_in -= len; - utils$5.arraySet(buf, strm.input, strm.next_in, len, start); - if (strm.state.wrap === 1) { - strm.adler = adler32$1(strm.adler, buf, len, start); - } else if (strm.state.wrap === 2) { - strm.adler = crc32$1(strm.adler, buf, len, start); - } - strm.next_in += len; - strm.total_in += len; - return len; - } - function longest_match(s, cur_match) { - var chain_length = s.max_chain_length; - var scan = s.strstart; - var match; - var len; - var best_len = s.prev_length; - var nice_match = s.nice_match; - var limit = s.strstart > s.w_size - MIN_LOOKAHEAD ? s.strstart - (s.w_size - MIN_LOOKAHEAD) : 0; - var _win = s.window; - var wmask = s.w_mask; - var prev = s.prev; - var strend = s.strstart + MAX_MATCH; - var scan_end1 = _win[scan + best_len - 1]; - var scan_end = _win[scan + best_len]; - if (s.prev_length >= s.good_match) { - chain_length >>= 2; - } - if (nice_match > s.lookahead) { - nice_match = s.lookahead; - } - do { - match = cur_match; - if (_win[match + best_len] !== scan_end || _win[match + best_len - 1] !== scan_end1 || _win[match] !== _win[scan] || _win[++match] !== _win[scan + 1]) { - continue; - } - scan += 2; - match++; - do { - } while (_win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && scan < strend); - len = MAX_MATCH - (strend - scan); - scan = strend - MAX_MATCH; - if (len > best_len) { - s.match_start = cur_match; - best_len = len; - if (len >= nice_match) { - break; - } - scan_end1 = _win[scan + best_len - 1]; - scan_end = _win[scan + best_len]; - } - } while ((cur_match = prev[cur_match & wmask]) > limit && --chain_length !== 0); - if (best_len <= s.lookahead) { - return best_len; - } - return s.lookahead; - } - function fill_window(s) { - var _w_size = s.w_size; - var p2, n, m, more, str; - do { - more = s.window_size - s.lookahead - s.strstart; - if (s.strstart >= _w_size + (_w_size - MIN_LOOKAHEAD)) { - utils$5.arraySet(s.window, s.window, _w_size, _w_size, 0); - s.match_start -= _w_size; - s.strstart -= _w_size; - s.block_start -= _w_size; - n = s.hash_size; - p2 = n; - do { - m = s.head[--p2]; - s.head[p2] = m >= _w_size ? m - _w_size : 0; - } while (--n); - n = _w_size; - p2 = n; - do { - m = s.prev[--p2]; - s.prev[p2] = m >= _w_size ? m - _w_size : 0; - } while (--n); - more += _w_size; - } - if (s.strm.avail_in === 0) { - break; - } - n = read_buf(s.strm, s.window, s.strstart + s.lookahead, more); - s.lookahead += n; - if (s.lookahead + s.insert >= MIN_MATCH) { - str = s.strstart - s.insert; - s.ins_h = s.window[str]; - s.ins_h = (s.ins_h << s.hash_shift ^ s.window[str + 1]) & s.hash_mask; - while (s.insert) { - s.ins_h = (s.ins_h << s.hash_shift ^ s.window[str + MIN_MATCH - 1]) & s.hash_mask; - s.prev[str & s.w_mask] = s.head[s.ins_h]; - s.head[s.ins_h] = str; - str++; - s.insert--; - if (s.lookahead + s.insert < MIN_MATCH) { - break; - } - } - } - } while (s.lookahead < MIN_LOOKAHEAD && s.strm.avail_in !== 0); - } - function deflate_stored(s, flush) { - var max_block_size = 65535; - if (max_block_size > s.pending_buf_size - 5) { - max_block_size = s.pending_buf_size - 5; - } - for (; ; ) { - if (s.lookahead <= 1) { - fill_window(s); - if (s.lookahead === 0 && flush === Z_NO_FLUSH$1) { - return BS_NEED_MORE; - } - if (s.lookahead === 0) { - break; - } - } - s.strstart += s.lookahead; - s.lookahead = 0; - var max_start = s.block_start + max_block_size; - if (s.strstart === 0 || s.strstart >= max_start) { - s.lookahead = s.strstart - max_start; - s.strstart = max_start; - flush_block_only(s, false); - if (s.strm.avail_out === 0) { - return BS_NEED_MORE; - } - } - if (s.strstart - s.block_start >= s.w_size - MIN_LOOKAHEAD) { - flush_block_only(s, false); - if (s.strm.avail_out === 0) { - return BS_NEED_MORE; - } - } - } - s.insert = 0; - if (flush === Z_FINISH$2) { - flush_block_only(s, true); - if (s.strm.avail_out === 0) { - return BS_FINISH_STARTED; - } - return BS_FINISH_DONE; - } - if (s.strstart > s.block_start) { - flush_block_only(s, false); - if (s.strm.avail_out === 0) { - return BS_NEED_MORE; - } - } - return BS_NEED_MORE; - } - function deflate_fast(s, flush) { - var hash_head; - var bflush; - for (; ; ) { - if (s.lookahead < MIN_LOOKAHEAD) { - fill_window(s); - if (s.lookahead < MIN_LOOKAHEAD && flush === Z_NO_FLUSH$1) { - return BS_NEED_MORE; - } - if (s.lookahead === 0) { - break; - } - } - hash_head = 0; - if (s.lookahead >= MIN_MATCH) { - s.ins_h = (s.ins_h << s.hash_shift ^ s.window[s.strstart + MIN_MATCH - 1]) & s.hash_mask; - hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h]; - s.head[s.ins_h] = s.strstart; - } - if (hash_head !== 0 && s.strstart - hash_head <= s.w_size - MIN_LOOKAHEAD) { - s.match_length = longest_match(s, hash_head); - } - if (s.match_length >= MIN_MATCH) { - bflush = trees._tr_tally(s, s.strstart - s.match_start, s.match_length - MIN_MATCH); - s.lookahead -= s.match_length; - if (s.match_length <= s.max_lazy_match && s.lookahead >= MIN_MATCH) { - s.match_length--; - do { - s.strstart++; - s.ins_h = (s.ins_h << s.hash_shift ^ s.window[s.strstart + MIN_MATCH - 1]) & s.hash_mask; - hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h]; - s.head[s.ins_h] = s.strstart; - } while (--s.match_length !== 0); - s.strstart++; - } else { - s.strstart += s.match_length; - s.match_length = 0; - s.ins_h = s.window[s.strstart]; - s.ins_h = (s.ins_h << s.hash_shift ^ s.window[s.strstart + 1]) & s.hash_mask; - } - } else { - bflush = trees._tr_tally(s, 0, s.window[s.strstart]); - s.lookahead--; - s.strstart++; - } - if (bflush) { - flush_block_only(s, false); - if (s.strm.avail_out === 0) { - return BS_NEED_MORE; - } - } - } - s.insert = s.strstart < MIN_MATCH - 1 ? s.strstart : MIN_MATCH - 1; - if (flush === Z_FINISH$2) { - flush_block_only(s, true); - if (s.strm.avail_out === 0) { - return BS_FINISH_STARTED; - } - return BS_FINISH_DONE; - } - if (s.last_lit) { - flush_block_only(s, false); - if (s.strm.avail_out === 0) { - return BS_NEED_MORE; - } - } - return BS_BLOCK_DONE; - } - function deflate_slow(s, flush) { - var hash_head; - var bflush; - var max_insert; - for (; ; ) { - if (s.lookahead < MIN_LOOKAHEAD) { - fill_window(s); - if (s.lookahead < MIN_LOOKAHEAD && flush === Z_NO_FLUSH$1) { - return BS_NEED_MORE; - } - if (s.lookahead === 0) { - break; - } - } - hash_head = 0; - if (s.lookahead >= MIN_MATCH) { - s.ins_h = (s.ins_h << s.hash_shift ^ s.window[s.strstart + MIN_MATCH - 1]) & s.hash_mask; - hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h]; - s.head[s.ins_h] = s.strstart; - } - s.prev_length = s.match_length; - s.prev_match = s.match_start; - s.match_length = MIN_MATCH - 1; - if (hash_head !== 0 && s.prev_length < s.max_lazy_match && s.strstart - hash_head <= s.w_size - MIN_LOOKAHEAD) { - s.match_length = longest_match(s, hash_head); - if (s.match_length <= 5 && (s.strategy === Z_FILTERED || s.match_length === MIN_MATCH && s.strstart - s.match_start > 4096)) { - s.match_length = MIN_MATCH - 1; - } - } - if (s.prev_length >= MIN_MATCH && s.match_length <= s.prev_length) { - max_insert = s.strstart + s.lookahead - MIN_MATCH; - bflush = trees._tr_tally(s, s.strstart - 1 - s.prev_match, s.prev_length - MIN_MATCH); - s.lookahead -= s.prev_length - 1; - s.prev_length -= 2; - do { - if (++s.strstart <= max_insert) { - s.ins_h = (s.ins_h << s.hash_shift ^ s.window[s.strstart + MIN_MATCH - 1]) & s.hash_mask; - hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h]; - s.head[s.ins_h] = s.strstart; - } - } while (--s.prev_length !== 0); - s.match_available = 0; - s.match_length = MIN_MATCH - 1; - s.strstart++; - if (bflush) { - flush_block_only(s, false); - if (s.strm.avail_out === 0) { - return BS_NEED_MORE; - } - } - } else if (s.match_available) { - bflush = trees._tr_tally(s, 0, s.window[s.strstart - 1]); - if (bflush) { - flush_block_only(s, false); - } - s.strstart++; - s.lookahead--; - if (s.strm.avail_out === 0) { - return BS_NEED_MORE; - } - } else { - s.match_available = 1; - s.strstart++; - s.lookahead--; - } - } - if (s.match_available) { - bflush = trees._tr_tally(s, 0, s.window[s.strstart - 1]); - s.match_available = 0; - } - s.insert = s.strstart < MIN_MATCH - 1 ? s.strstart : MIN_MATCH - 1; - if (flush === Z_FINISH$2) { - flush_block_only(s, true); - if (s.strm.avail_out === 0) { - return BS_FINISH_STARTED; - } - return BS_FINISH_DONE; - } - if (s.last_lit) { - flush_block_only(s, false); - if (s.strm.avail_out === 0) { - return BS_NEED_MORE; - } - } - return BS_BLOCK_DONE; - } - function deflate_rle(s, flush) { - var bflush; - var prev; - var scan, strend; - var _win = s.window; - for (; ; ) { - if (s.lookahead <= MAX_MATCH) { - fill_window(s); - if (s.lookahead <= MAX_MATCH && flush === Z_NO_FLUSH$1) { - return BS_NEED_MORE; - } - if (s.lookahead === 0) { - break; - } - } - s.match_length = 0; - if (s.lookahead >= MIN_MATCH && s.strstart > 0) { - scan = s.strstart - 1; - prev = _win[scan]; - if (prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan]) { - strend = s.strstart + MAX_MATCH; - do { - } while (prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && scan < strend); - s.match_length = MAX_MATCH - (strend - scan); - if (s.match_length > s.lookahead) { - s.match_length = s.lookahead; - } - } - } - if (s.match_length >= MIN_MATCH) { - bflush = trees._tr_tally(s, 1, s.match_length - MIN_MATCH); - s.lookahead -= s.match_length; - s.strstart += s.match_length; - s.match_length = 0; - } else { - bflush = trees._tr_tally(s, 0, s.window[s.strstart]); - s.lookahead--; - s.strstart++; - } - if (bflush) { - flush_block_only(s, false); - if (s.strm.avail_out === 0) { - return BS_NEED_MORE; - } - } - } - s.insert = 0; - if (flush === Z_FINISH$2) { - flush_block_only(s, true); - if (s.strm.avail_out === 0) { - return BS_FINISH_STARTED; - } - return BS_FINISH_DONE; - } - if (s.last_lit) { - flush_block_only(s, false); - if (s.strm.avail_out === 0) { - return BS_NEED_MORE; - } - } - return BS_BLOCK_DONE; - } - function deflate_huff(s, flush) { - var bflush; - for (; ; ) { - if (s.lookahead === 0) { - fill_window(s); - if (s.lookahead === 0) { - if (flush === Z_NO_FLUSH$1) { - return BS_NEED_MORE; - } - break; - } - } - s.match_length = 0; - bflush = trees._tr_tally(s, 0, s.window[s.strstart]); - s.lookahead--; - s.strstart++; - if (bflush) { - flush_block_only(s, false); - if (s.strm.avail_out === 0) { - return BS_NEED_MORE; - } - } - } - s.insert = 0; - if (flush === Z_FINISH$2) { - flush_block_only(s, true); - if (s.strm.avail_out === 0) { - return BS_FINISH_STARTED; - } - return BS_FINISH_DONE; - } - if (s.last_lit) { - flush_block_only(s, false); - if (s.strm.avail_out === 0) { - return BS_NEED_MORE; - } - } - return BS_BLOCK_DONE; - } - function Config(good_length, max_lazy, nice_length, max_chain, func) { - this.good_length = good_length; - this.max_lazy = max_lazy; - this.nice_length = nice_length; - this.max_chain = max_chain; - this.func = func; - } - var configuration_table; - configuration_table = [ - new Config(0, 0, 0, 0, deflate_stored), - new Config(4, 4, 8, 4, deflate_fast), - new Config(4, 5, 16, 8, deflate_fast), - new Config(4, 6, 32, 32, deflate_fast), - new Config(4, 4, 16, 16, deflate_slow), - new Config(8, 16, 32, 32, deflate_slow), - new Config(8, 16, 128, 128, deflate_slow), - new Config(8, 32, 128, 256, deflate_slow), - new Config(32, 128, 258, 1024, deflate_slow), - new Config(32, 258, 258, 4096, deflate_slow) - ]; - function lm_init(s) { - s.window_size = 2 * s.w_size; - zero(s.head); - s.max_lazy_match = configuration_table[s.level].max_lazy; - s.good_match = configuration_table[s.level].good_length; - s.nice_match = configuration_table[s.level].nice_length; - s.max_chain_length = configuration_table[s.level].max_chain; - s.strstart = 0; - s.block_start = 0; - s.lookahead = 0; - s.insert = 0; - s.match_length = s.prev_length = MIN_MATCH - 1; - s.match_available = 0; - s.ins_h = 0; - } - function DeflateState() { - this.strm = null; - this.status = 0; - this.pending_buf = null; - this.pending_buf_size = 0; - this.pending_out = 0; - this.pending = 0; - this.wrap = 0; - this.gzhead = null; - this.gzindex = 0; - this.method = Z_DEFLATED$2; - this.last_flush = -1; - this.w_size = 0; - this.w_bits = 0; - this.w_mask = 0; - this.window = null; - this.window_size = 0; - this.prev = null; - this.head = null; - this.ins_h = 0; - this.hash_size = 0; - this.hash_bits = 0; - this.hash_mask = 0; - this.hash_shift = 0; - this.block_start = 0; - this.match_length = 0; - this.prev_match = 0; - this.match_available = 0; - this.strstart = 0; - this.match_start = 0; - this.lookahead = 0; - this.prev_length = 0; - this.max_chain_length = 0; - this.max_lazy_match = 0; - this.level = 0; - this.strategy = 0; - this.good_match = 0; - this.nice_match = 0; - this.dyn_ltree = new utils$5.Buf16(HEAP_SIZE * 2); - this.dyn_dtree = new utils$5.Buf16((2 * D_CODES + 1) * 2); - this.bl_tree = new utils$5.Buf16((2 * BL_CODES + 1) * 2); - zero(this.dyn_ltree); - zero(this.dyn_dtree); - zero(this.bl_tree); - this.l_desc = null; - this.d_desc = null; - this.bl_desc = null; - this.bl_count = new utils$5.Buf16(MAX_BITS + 1); - this.heap = new utils$5.Buf16(2 * L_CODES + 1); - zero(this.heap); - this.heap_len = 0; - this.heap_max = 0; - this.depth = new utils$5.Buf16(2 * L_CODES + 1); - zero(this.depth); - this.l_buf = 0; - this.lit_bufsize = 0; - this.last_lit = 0; - this.d_buf = 0; - this.opt_len = 0; - this.static_len = 0; - this.matches = 0; - this.insert = 0; - this.bi_buf = 0; - this.bi_valid = 0; - } - function deflateResetKeep(strm) { - var s; - if (!strm || !strm.state) { - return err(strm, Z_STREAM_ERROR$1); - } - strm.total_in = strm.total_out = 0; - strm.data_type = Z_UNKNOWN; - s = strm.state; - s.pending = 0; - s.pending_out = 0; - if (s.wrap < 0) { - s.wrap = -s.wrap; - } - s.status = s.wrap ? INIT_STATE : BUSY_STATE; - strm.adler = s.wrap === 2 ? 0 : 1; - s.last_flush = Z_NO_FLUSH$1; - trees._tr_init(s); - return Z_OK$2; - } - function deflateReset(strm) { - var ret = deflateResetKeep(strm); - if (ret === Z_OK$2) { - lm_init(strm.state); - } - return ret; - } - function deflateSetHeader(strm, head) { - if (!strm || !strm.state) { - return Z_STREAM_ERROR$1; - } - if (strm.state.wrap !== 2) { - return Z_STREAM_ERROR$1; - } - strm.state.gzhead = head; - return Z_OK$2; - } - function deflateInit2(strm, level, method, windowBits, memLevel, strategy) { - if (!strm) { - return Z_STREAM_ERROR$1; - } - var wrap = 1; - if (level === Z_DEFAULT_COMPRESSION$1) { - level = 6; - } - if (windowBits < 0) { - wrap = 0; - windowBits = -windowBits; - } else if (windowBits > 15) { - wrap = 2; - windowBits -= 16; - } - if (memLevel < 1 || memLevel > MAX_MEM_LEVEL || method !== Z_DEFLATED$2 || windowBits < 8 || windowBits > 15 || level < 0 || level > 9 || strategy < 0 || strategy > Z_FIXED) { - return err(strm, Z_STREAM_ERROR$1); - } - if (windowBits === 8) { - windowBits = 9; - } - var s = new DeflateState(); - strm.state = s; - s.strm = strm; - s.wrap = wrap; - s.gzhead = null; - s.w_bits = windowBits; - s.w_size = 1 << s.w_bits; - s.w_mask = s.w_size - 1; - s.hash_bits = memLevel + 7; - s.hash_size = 1 << s.hash_bits; - s.hash_mask = s.hash_size - 1; - s.hash_shift = ~~((s.hash_bits + MIN_MATCH - 1) / MIN_MATCH); - s.window = new utils$5.Buf8(s.w_size * 2); - s.head = new utils$5.Buf16(s.hash_size); - s.prev = new utils$5.Buf16(s.w_size); - s.lit_bufsize = 1 << memLevel + 6; - s.pending_buf_size = s.lit_bufsize * 4; - s.pending_buf = new utils$5.Buf8(s.pending_buf_size); - s.d_buf = 1 * s.lit_bufsize; - s.l_buf = (1 + 2) * s.lit_bufsize; - s.level = level; - s.strategy = strategy; - s.method = method; - return deflateReset(strm); - } - function deflateInit(strm, level) { - return deflateInit2(strm, level, Z_DEFLATED$2, MAX_WBITS$1, DEF_MEM_LEVEL, Z_DEFAULT_STRATEGY$1); - } - function deflate$2(strm, flush) { - var old_flush, s; - var beg, val; - if (!strm || !strm.state || flush > Z_BLOCK$1 || flush < 0) { - return strm ? err(strm, Z_STREAM_ERROR$1) : Z_STREAM_ERROR$1; - } - s = strm.state; - if (!strm.output || !strm.input && strm.avail_in !== 0 || s.status === FINISH_STATE && flush !== Z_FINISH$2) { - return err(strm, strm.avail_out === 0 ? Z_BUF_ERROR$1 : Z_STREAM_ERROR$1); - } - s.strm = strm; - old_flush = s.last_flush; - s.last_flush = flush; - if (s.status === INIT_STATE) { - if (s.wrap === 2) { - strm.adler = 0; - put_byte(s, 31); - put_byte(s, 139); - put_byte(s, 8); - if (!s.gzhead) { - put_byte(s, 0); - put_byte(s, 0); - put_byte(s, 0); - put_byte(s, 0); - put_byte(s, 0); - put_byte(s, s.level === 9 ? 2 : s.strategy >= Z_HUFFMAN_ONLY || s.level < 2 ? 4 : 0); - put_byte(s, OS_CODE); - s.status = BUSY_STATE; - } else { - put_byte(s, (s.gzhead.text ? 1 : 0) + (s.gzhead.hcrc ? 2 : 0) + (!s.gzhead.extra ? 0 : 4) + (!s.gzhead.name ? 0 : 8) + (!s.gzhead.comment ? 0 : 16)); - put_byte(s, s.gzhead.time & 255); - put_byte(s, s.gzhead.time >> 8 & 255); - put_byte(s, s.gzhead.time >> 16 & 255); - put_byte(s, s.gzhead.time >> 24 & 255); - put_byte(s, s.level === 9 ? 2 : s.strategy >= Z_HUFFMAN_ONLY || s.level < 2 ? 4 : 0); - put_byte(s, s.gzhead.os & 255); - if (s.gzhead.extra && s.gzhead.extra.length) { - put_byte(s, s.gzhead.extra.length & 255); - put_byte(s, s.gzhead.extra.length >> 8 & 255); - } - if (s.gzhead.hcrc) { - strm.adler = crc32$1(strm.adler, s.pending_buf, s.pending, 0); - } - s.gzindex = 0; - s.status = EXTRA_STATE; - } - } else { - var header = Z_DEFLATED$2 + (s.w_bits - 8 << 4) << 8; - var level_flags = -1; - if (s.strategy >= Z_HUFFMAN_ONLY || s.level < 2) { - level_flags = 0; - } else if (s.level < 6) { - level_flags = 1; - } else if (s.level === 6) { - level_flags = 2; - } else { - level_flags = 3; - } - header |= level_flags << 6; - if (s.strstart !== 0) { - header |= PRESET_DICT; - } - header += 31 - header % 31; - s.status = BUSY_STATE; - putShortMSB(s, header); - if (s.strstart !== 0) { - putShortMSB(s, strm.adler >>> 16); - putShortMSB(s, strm.adler & 65535); - } - strm.adler = 1; - } - } - if (s.status === EXTRA_STATE) { - if (s.gzhead.extra) { - beg = s.pending; - while (s.gzindex < (s.gzhead.extra.length & 65535)) { - if (s.pending === s.pending_buf_size) { - if (s.gzhead.hcrc && s.pending > beg) { - strm.adler = crc32$1(strm.adler, s.pending_buf, s.pending - beg, beg); - } - flush_pending(strm); - beg = s.pending; - if (s.pending === s.pending_buf_size) { - break; - } - } - put_byte(s, s.gzhead.extra[s.gzindex] & 255); - s.gzindex++; - } - if (s.gzhead.hcrc && s.pending > beg) { - strm.adler = crc32$1(strm.adler, s.pending_buf, s.pending - beg, beg); - } - if (s.gzindex === s.gzhead.extra.length) { - s.gzindex = 0; - s.status = NAME_STATE; - } - } else { - s.status = NAME_STATE; - } - } - if (s.status === NAME_STATE) { - if (s.gzhead.name) { - beg = s.pending; - do { - if (s.pending === s.pending_buf_size) { - if (s.gzhead.hcrc && s.pending > beg) { - strm.adler = crc32$1(strm.adler, s.pending_buf, s.pending - beg, beg); - } - flush_pending(strm); - beg = s.pending; - if (s.pending === s.pending_buf_size) { - val = 1; - break; - } - } - if (s.gzindex < s.gzhead.name.length) { - val = s.gzhead.name.charCodeAt(s.gzindex++) & 255; - } else { - val = 0; - } - put_byte(s, val); - } while (val !== 0); - if (s.gzhead.hcrc && s.pending > beg) { - strm.adler = crc32$1(strm.adler, s.pending_buf, s.pending - beg, beg); - } - if (val === 0) { - s.gzindex = 0; - s.status = COMMENT_STATE; - } - } else { - s.status = COMMENT_STATE; - } - } - if (s.status === COMMENT_STATE) { - if (s.gzhead.comment) { - beg = s.pending; - do { - if (s.pending === s.pending_buf_size) { - if (s.gzhead.hcrc && s.pending > beg) { - strm.adler = crc32$1(strm.adler, s.pending_buf, s.pending - beg, beg); - } - flush_pending(strm); - beg = s.pending; - if (s.pending === s.pending_buf_size) { - val = 1; - break; - } - } - if (s.gzindex < s.gzhead.comment.length) { - val = s.gzhead.comment.charCodeAt(s.gzindex++) & 255; - } else { - val = 0; - } - put_byte(s, val); - } while (val !== 0); - if (s.gzhead.hcrc && s.pending > beg) { - strm.adler = crc32$1(strm.adler, s.pending_buf, s.pending - beg, beg); - } - if (val === 0) { - s.status = HCRC_STATE; - } - } else { - s.status = HCRC_STATE; - } - } - if (s.status === HCRC_STATE) { - if (s.gzhead.hcrc) { - if (s.pending + 2 > s.pending_buf_size) { - flush_pending(strm); - } - if (s.pending + 2 <= s.pending_buf_size) { - put_byte(s, strm.adler & 255); - put_byte(s, strm.adler >> 8 & 255); - strm.adler = 0; - s.status = BUSY_STATE; - } - } else { - s.status = BUSY_STATE; - } - } - if (s.pending !== 0) { - flush_pending(strm); - if (strm.avail_out === 0) { - s.last_flush = -1; - return Z_OK$2; - } - } else if (strm.avail_in === 0 && rank(flush) <= rank(old_flush) && flush !== Z_FINISH$2) { - return err(strm, Z_BUF_ERROR$1); - } - if (s.status === FINISH_STATE && strm.avail_in !== 0) { - return err(strm, Z_BUF_ERROR$1); - } - if (strm.avail_in !== 0 || s.lookahead !== 0 || flush !== Z_NO_FLUSH$1 && s.status !== FINISH_STATE) { - var bstate = s.strategy === Z_HUFFMAN_ONLY ? deflate_huff(s, flush) : s.strategy === Z_RLE ? deflate_rle(s, flush) : configuration_table[s.level].func(s, flush); - if (bstate === BS_FINISH_STARTED || bstate === BS_FINISH_DONE) { - s.status = FINISH_STATE; - } - if (bstate === BS_NEED_MORE || bstate === BS_FINISH_STARTED) { - if (strm.avail_out === 0) { - s.last_flush = -1; - } - return Z_OK$2; - } - if (bstate === BS_BLOCK_DONE) { - if (flush === Z_PARTIAL_FLUSH) { - trees._tr_align(s); - } else if (flush !== Z_BLOCK$1) { - trees._tr_stored_block(s, 0, 0, false); - if (flush === Z_FULL_FLUSH) { - zero(s.head); - if (s.lookahead === 0) { - s.strstart = 0; - s.block_start = 0; - s.insert = 0; - } - } - } - flush_pending(strm); - if (strm.avail_out === 0) { - s.last_flush = -1; - return Z_OK$2; - } - } - } - if (flush !== Z_FINISH$2) { - return Z_OK$2; - } - if (s.wrap <= 0) { - return Z_STREAM_END$2; - } - if (s.wrap === 2) { - put_byte(s, strm.adler & 255); - put_byte(s, strm.adler >> 8 & 255); - put_byte(s, strm.adler >> 16 & 255); - put_byte(s, strm.adler >> 24 & 255); - put_byte(s, strm.total_in & 255); - put_byte(s, strm.total_in >> 8 & 255); - put_byte(s, strm.total_in >> 16 & 255); - put_byte(s, strm.total_in >> 24 & 255); - } else { - putShortMSB(s, strm.adler >>> 16); - putShortMSB(s, strm.adler & 65535); - } - flush_pending(strm); - if (s.wrap > 0) { - s.wrap = -s.wrap; - } - return s.pending !== 0 ? Z_OK$2 : Z_STREAM_END$2; - } - function deflateEnd(strm) { - var status; - if (!strm || !strm.state) { - return Z_STREAM_ERROR$1; - } - status = strm.state.status; - if (status !== INIT_STATE && status !== EXTRA_STATE && status !== NAME_STATE && status !== COMMENT_STATE && status !== HCRC_STATE && status !== BUSY_STATE && status !== FINISH_STATE) { - return err(strm, Z_STREAM_ERROR$1); - } - strm.state = null; - return status === BUSY_STATE ? err(strm, Z_DATA_ERROR$1) : Z_OK$2; - } - function deflateSetDictionary(strm, dictionary) { - var dictLength = dictionary.length; - var s; - var str, n; - var wrap; - var avail; - var next; - var input2; - var tmpDict; - if (!strm || !strm.state) { - return Z_STREAM_ERROR$1; - } - s = strm.state; - wrap = s.wrap; - if (wrap === 2 || wrap === 1 && s.status !== INIT_STATE || s.lookahead) { - return Z_STREAM_ERROR$1; - } - if (wrap === 1) { - strm.adler = adler32$1(strm.adler, dictionary, dictLength, 0); - } - s.wrap = 0; - if (dictLength >= s.w_size) { - if (wrap === 0) { - zero(s.head); - s.strstart = 0; - s.block_start = 0; - s.insert = 0; - } - tmpDict = new utils$5.Buf8(s.w_size); - utils$5.arraySet(tmpDict, dictionary, dictLength - s.w_size, s.w_size, 0); - dictionary = tmpDict; - dictLength = s.w_size; - } - avail = strm.avail_in; - next = strm.next_in; - input2 = strm.input; - strm.avail_in = dictLength; - strm.next_in = 0; - strm.input = dictionary; - fill_window(s); - while (s.lookahead >= MIN_MATCH) { - str = s.strstart; - n = s.lookahead - (MIN_MATCH - 1); - do { - s.ins_h = (s.ins_h << s.hash_shift ^ s.window[str + MIN_MATCH - 1]) & s.hash_mask; - s.prev[str & s.w_mask] = s.head[s.ins_h]; - s.head[s.ins_h] = str; - str++; - } while (--n); - s.strstart = str; - s.lookahead = MIN_MATCH - 1; - fill_window(s); - } - s.strstart += s.lookahead; - s.block_start = s.strstart; - s.insert = s.lookahead; - s.lookahead = 0; - s.match_length = s.prev_length = MIN_MATCH - 1; - s.match_available = 0; - strm.next_in = next; - strm.input = input2; - strm.avail_in = avail; - s.wrap = wrap; - return Z_OK$2; - } - deflate$3.deflateInit = deflateInit; - deflate$3.deflateInit2 = deflateInit2; - deflate$3.deflateReset = deflateReset; - deflate$3.deflateResetKeep = deflateResetKeep; - deflate$3.deflateSetHeader = deflateSetHeader; - deflate$3.deflate = deflate$2; - deflate$3.deflateEnd = deflateEnd; - deflate$3.deflateSetDictionary = deflateSetDictionary; - deflate$3.deflateInfo = "pako deflate (from Nodeca project)"; - var strings$2 = {}; - var utils$4 = common; - var STR_APPLY_OK = true; - var STR_APPLY_UIA_OK = true; - try { - String.fromCharCode.apply(null, [0]); - } catch (__) { - STR_APPLY_OK = false; - } - try { - String.fromCharCode.apply(null, new Uint8Array(1)); - } catch (__) { - STR_APPLY_UIA_OK = false; - } - var _utf8len = new utils$4.Buf8(256); - for (var q = 0; q < 256; q++) { - _utf8len[q] = q >= 252 ? 6 : q >= 248 ? 5 : q >= 240 ? 4 : q >= 224 ? 3 : q >= 192 ? 2 : 1; - } - _utf8len[254] = _utf8len[254] = 1; - strings$2.string2buf = function(str) { - var buf, c2, c22, m_pos, i2, str_len = str.length, buf_len = 0; - for (m_pos = 0; m_pos < str_len; m_pos++) { - c2 = str.charCodeAt(m_pos); - if ((c2 & 64512) === 55296 && m_pos + 1 < str_len) { - c22 = str.charCodeAt(m_pos + 1); - if ((c22 & 64512) === 56320) { - c2 = 65536 + (c2 - 55296 << 10) + (c22 - 56320); - m_pos++; - } - } - buf_len += c2 < 128 ? 1 : c2 < 2048 ? 2 : c2 < 65536 ? 3 : 4; - } - buf = new utils$4.Buf8(buf_len); - for (i2 = 0, m_pos = 0; i2 < buf_len; m_pos++) { - c2 = str.charCodeAt(m_pos); - if ((c2 & 64512) === 55296 && m_pos + 1 < str_len) { - c22 = str.charCodeAt(m_pos + 1); - if ((c22 & 64512) === 56320) { - c2 = 65536 + (c2 - 55296 << 10) + (c22 - 56320); - m_pos++; - } - } - if (c2 < 128) { - buf[i2++] = c2; - } else if (c2 < 2048) { - buf[i2++] = 192 | c2 >>> 6; - buf[i2++] = 128 | c2 & 63; - } else if (c2 < 65536) { - buf[i2++] = 224 | c2 >>> 12; - buf[i2++] = 128 | c2 >>> 6 & 63; - buf[i2++] = 128 | c2 & 63; - } else { - buf[i2++] = 240 | c2 >>> 18; - buf[i2++] = 128 | c2 >>> 12 & 63; - buf[i2++] = 128 | c2 >>> 6 & 63; - buf[i2++] = 128 | c2 & 63; - } - } - return buf; - }; - function buf2binstring(buf, len) { - if (len < 65534) { - if (buf.subarray && STR_APPLY_UIA_OK || !buf.subarray && STR_APPLY_OK) { - return String.fromCharCode.apply(null, utils$4.shrinkBuf(buf, len)); - } - } - var result = ""; - for (var i2 = 0; i2 < len; i2++) { - result += String.fromCharCode(buf[i2]); - } - return result; - } - strings$2.buf2binstring = function(buf) { - return buf2binstring(buf, buf.length); - }; - strings$2.binstring2buf = function(str) { - var buf = new utils$4.Buf8(str.length); - for (var i2 = 0, len = buf.length; i2 < len; i2++) { - buf[i2] = str.charCodeAt(i2); - } - return buf; - }; - strings$2.buf2string = function(buf, max2) { - var i2, out2, c2, c_len; - var len = max2 || buf.length; - var utf16buf = new Array(len * 2); - for (out2 = 0, i2 = 0; i2 < len; ) { - c2 = buf[i2++]; - if (c2 < 128) { - utf16buf[out2++] = c2; - continue; - } - c_len = _utf8len[c2]; - if (c_len > 4) { - utf16buf[out2++] = 65533; - i2 += c_len - 1; - continue; - } - c2 &= c_len === 2 ? 31 : c_len === 3 ? 15 : 7; - while (c_len > 1 && i2 < len) { - c2 = c2 << 6 | buf[i2++] & 63; - c_len--; - } - if (c_len > 1) { - utf16buf[out2++] = 65533; - continue; - } - if (c2 < 65536) { - utf16buf[out2++] = c2; - } else { - c2 -= 65536; - utf16buf[out2++] = 55296 | c2 >> 10 & 1023; - utf16buf[out2++] = 56320 | c2 & 1023; - } - } - return buf2binstring(utf16buf, out2); - }; - strings$2.utf8border = function(buf, max2) { - var pos; - max2 = max2 || buf.length; - if (max2 > buf.length) { - max2 = buf.length; - } - pos = max2 - 1; - while (pos >= 0 && (buf[pos] & 192) === 128) { - pos--; - } - if (pos < 0) { - return max2; - } - if (pos === 0) { - return max2; - } - return pos + _utf8len[buf[pos]] > max2 ? pos : max2; - }; - function ZStream$2() { - this.input = null; - this.next_in = 0; - this.avail_in = 0; - this.total_in = 0; - this.output = null; - this.next_out = 0; - this.avail_out = 0; - this.total_out = 0; - this.msg = ""; - this.state = null; - this.data_type = 2; - this.adler = 0; - } - var zstream = ZStream$2; - var zlib_deflate = deflate$3; - var utils$3 = common; - var strings$1 = strings$2; - var msg$1 = messages; - var ZStream$1 = zstream; - var toString$1 = Object.prototype.toString; - var Z_NO_FLUSH = 0; - var Z_FINISH$1 = 4; - var Z_OK$1 = 0; - var Z_STREAM_END$1 = 1; - var Z_SYNC_FLUSH = 2; - var Z_DEFAULT_COMPRESSION = -1; - var Z_DEFAULT_STRATEGY = 0; - var Z_DEFLATED$1 = 8; - function Deflate(options) { - if (!(this instanceof Deflate)) - return new Deflate(options); - this.options = utils$3.assign({ - level: Z_DEFAULT_COMPRESSION, - method: Z_DEFLATED$1, - chunkSize: 16384, - windowBits: 15, - memLevel: 8, - strategy: Z_DEFAULT_STRATEGY, - to: "" - }, options || {}); - var opt = this.options; - if (opt.raw && opt.windowBits > 0) { - opt.windowBits = -opt.windowBits; - } else if (opt.gzip && opt.windowBits > 0 && opt.windowBits < 16) { - opt.windowBits += 16; - } - this.err = 0; - this.msg = ""; - this.ended = false; - this.chunks = []; - this.strm = new ZStream$1(); - this.strm.avail_out = 0; - var status = zlib_deflate.deflateInit2(this.strm, opt.level, opt.method, opt.windowBits, opt.memLevel, opt.strategy); - if (status !== Z_OK$1) { - throw new Error(msg$1[status]); - } - if (opt.header) { - zlib_deflate.deflateSetHeader(this.strm, opt.header); - } - if (opt.dictionary) { - var dict; - if (typeof opt.dictionary === "string") { - dict = strings$1.string2buf(opt.dictionary); - } else if (toString$1.call(opt.dictionary) === "[object ArrayBuffer]") { - dict = new Uint8Array(opt.dictionary); - } else { - dict = opt.dictionary; - } - status = zlib_deflate.deflateSetDictionary(this.strm, dict); - if (status !== Z_OK$1) { - throw new Error(msg$1[status]); - } - this._dict_set = true; - } - } - Deflate.prototype.push = function(data, mode2) { - var strm = this.strm; - var chunkSize = this.options.chunkSize; - var status, _mode; - if (this.ended) { - return false; - } - _mode = mode2 === ~~mode2 ? mode2 : mode2 === true ? Z_FINISH$1 : Z_NO_FLUSH; - if (typeof data === "string") { - strm.input = strings$1.string2buf(data); - } else if (toString$1.call(data) === "[object ArrayBuffer]") { - strm.input = new Uint8Array(data); - } else { - strm.input = data; - } - strm.next_in = 0; - strm.avail_in = strm.input.length; - do { - if (strm.avail_out === 0) { - strm.output = new utils$3.Buf8(chunkSize); - strm.next_out = 0; - strm.avail_out = chunkSize; - } - status = zlib_deflate.deflate(strm, _mode); - if (status !== Z_STREAM_END$1 && status !== Z_OK$1) { - this.onEnd(status); - this.ended = true; - return false; - } - if (strm.avail_out === 0 || strm.avail_in === 0 && (_mode === Z_FINISH$1 || _mode === Z_SYNC_FLUSH)) { - if (this.options.to === "string") { - this.onData(strings$1.buf2binstring(utils$3.shrinkBuf(strm.output, strm.next_out))); - } else { - this.onData(utils$3.shrinkBuf(strm.output, strm.next_out)); - } - } - } while ((strm.avail_in > 0 || strm.avail_out === 0) && status !== Z_STREAM_END$1); - if (_mode === Z_FINISH$1) { - status = zlib_deflate.deflateEnd(this.strm); - this.onEnd(status); - this.ended = true; - return status === Z_OK$1; - } - if (_mode === Z_SYNC_FLUSH) { - this.onEnd(Z_OK$1); - strm.avail_out = 0; - return true; - } - return true; - }; - Deflate.prototype.onData = function(chunk) { - this.chunks.push(chunk); - }; - Deflate.prototype.onEnd = function(status) { - if (status === Z_OK$1) { - if (this.options.to === "string") { - this.result = this.chunks.join(""); - } else { - this.result = utils$3.flattenChunks(this.chunks); - } - } - this.chunks = []; - this.err = status; - this.msg = this.strm.msg; - }; - function deflate$1(input2, options) { - var deflator = new Deflate(options); - deflator.push(input2, true); - if (deflator.err) { - throw deflator.msg || msg$1[deflator.err]; - } - return deflator.result; - } - function deflateRaw(input2, options) { - options = options || {}; - options.raw = true; - return deflate$1(input2, options); - } - function gzip(input2, options) { - options = options || {}; - options.gzip = true; - return deflate$1(input2, options); - } - deflate$4.Deflate = Deflate; - deflate$4.deflate = deflate$1; - deflate$4.deflateRaw = deflateRaw; - deflate$4.gzip = gzip; - var inflate$4 = {}; - var inflate$3 = {}; - var BAD$1 = 30; - var TYPE$1 = 12; - var inffast = function inflate_fast2(strm, start) { - var state; - var _in; - var last; - var _out; - var beg; - var end; - var dmax; - var wsize; - var whave; - var wnext; - var s_window; - var hold; - var bits; - var lcode; - var dcode; - var lmask; - var dmask; - var here; - var op; - var len; - var dist; - var from; - var from_source; - var input2, output; - state = strm.state; - _in = strm.next_in; - input2 = strm.input; - last = _in + (strm.avail_in - 5); - _out = strm.next_out; - output = strm.output; - beg = _out - (start - strm.avail_out); - end = _out + (strm.avail_out - 257); - dmax = state.dmax; - wsize = state.wsize; - whave = state.whave; - wnext = state.wnext; - s_window = state.window; - hold = state.hold; - bits = state.bits; - lcode = state.lencode; - dcode = state.distcode; - lmask = (1 << state.lenbits) - 1; - dmask = (1 << state.distbits) - 1; - top: - do { - if (bits < 15) { - hold += input2[_in++] << bits; - bits += 8; - hold += input2[_in++] << bits; - bits += 8; - } - here = lcode[hold & lmask]; - dolen: - for (; ; ) { - op = here >>> 24; - hold >>>= op; - bits -= op; - op = here >>> 16 & 255; - if (op === 0) { - output[_out++] = here & 65535; - } else if (op & 16) { - len = here & 65535; - op &= 15; - if (op) { - if (bits < op) { - hold += input2[_in++] << bits; - bits += 8; - } - len += hold & (1 << op) - 1; - hold >>>= op; - bits -= op; - } - if (bits < 15) { - hold += input2[_in++] << bits; - bits += 8; - hold += input2[_in++] << bits; - bits += 8; - } - here = dcode[hold & dmask]; - dodist: - for (; ; ) { - op = here >>> 24; - hold >>>= op; - bits -= op; - op = here >>> 16 & 255; - if (op & 16) { - dist = here & 65535; - op &= 15; - if (bits < op) { - hold += input2[_in++] << bits; - bits += 8; - if (bits < op) { - hold += input2[_in++] << bits; - bits += 8; - } - } - dist += hold & (1 << op) - 1; - if (dist > dmax) { - strm.msg = "invalid distance too far back"; - state.mode = BAD$1; - break top; - } - hold >>>= op; - bits -= op; - op = _out - beg; - if (dist > op) { - op = dist - op; - if (op > whave) { - if (state.sane) { - strm.msg = "invalid distance too far back"; - state.mode = BAD$1; - break top; - } - } - from = 0; - from_source = s_window; - if (wnext === 0) { - from += wsize - op; - if (op < len) { - len -= op; - do { - output[_out++] = s_window[from++]; - } while (--op); - from = _out - dist; - from_source = output; - } - } else if (wnext < op) { - from += wsize + wnext - op; - op -= wnext; - if (op < len) { - len -= op; - do { - output[_out++] = s_window[from++]; - } while (--op); - from = 0; - if (wnext < len) { - op = wnext; - len -= op; - do { - output[_out++] = s_window[from++]; - } while (--op); - from = _out - dist; - from_source = output; - } - } - } else { - from += wnext - op; - if (op < len) { - len -= op; - do { - output[_out++] = s_window[from++]; - } while (--op); - from = _out - dist; - from_source = output; - } - } - while (len > 2) { - output[_out++] = from_source[from++]; - output[_out++] = from_source[from++]; - output[_out++] = from_source[from++]; - len -= 3; - } - if (len) { - output[_out++] = from_source[from++]; - if (len > 1) { - output[_out++] = from_source[from++]; - } - } - } else { - from = _out - dist; - do { - output[_out++] = output[from++]; - output[_out++] = output[from++]; - output[_out++] = output[from++]; - len -= 3; - } while (len > 2); - if (len) { - output[_out++] = output[from++]; - if (len > 1) { - output[_out++] = output[from++]; - } - } - } - } else if ((op & 64) === 0) { - here = dcode[(here & 65535) + (hold & (1 << op) - 1)]; - continue dodist; - } else { - strm.msg = "invalid distance code"; - state.mode = BAD$1; - break top; - } - break; - } - } else if ((op & 64) === 0) { - here = lcode[(here & 65535) + (hold & (1 << op) - 1)]; - continue dolen; - } else if (op & 32) { - state.mode = TYPE$1; - break top; - } else { - strm.msg = "invalid literal/length code"; - state.mode = BAD$1; - break top; - } - break; - } - } while (_in < last && _out < end); - len = bits >> 3; - _in -= len; - bits -= len << 3; - hold &= (1 << bits) - 1; - strm.next_in = _in; - strm.next_out = _out; - strm.avail_in = _in < last ? 5 + (last - _in) : 5 - (_in - last); - strm.avail_out = _out < end ? 257 + (end - _out) : 257 - (_out - end); - state.hold = hold; - state.bits = bits; - return; - }; - var utils$2 = common; - var MAXBITS = 15; - var ENOUGH_LENS$1 = 852; - var ENOUGH_DISTS$1 = 592; - var CODES$1 = 0; - var LENS$1 = 1; - var DISTS$1 = 2; - var lbase = [ - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 13, - 15, - 17, - 19, - 23, - 27, - 31, - 35, - 43, - 51, - 59, - 67, - 83, - 99, - 115, - 131, - 163, - 195, - 227, - 258, - 0, - 0 - ]; - var lext = [ - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 17, - 17, - 17, - 17, - 18, - 18, - 18, - 18, - 19, - 19, - 19, - 19, - 20, - 20, - 20, - 20, - 21, - 21, - 21, - 21, - 16, - 72, - 78 - ]; - var dbase = [ - 1, - 2, - 3, - 4, - 5, - 7, - 9, - 13, - 17, - 25, - 33, - 49, - 65, - 97, - 129, - 193, - 257, - 385, - 513, - 769, - 1025, - 1537, - 2049, - 3073, - 4097, - 6145, - 8193, - 12289, - 16385, - 24577, - 0, - 0 - ]; - var dext = [ - 16, - 16, - 16, - 16, - 17, - 17, - 18, - 18, - 19, - 19, - 20, - 20, - 21, - 21, - 22, - 22, - 23, - 23, - 24, - 24, - 25, - 25, - 26, - 26, - 27, - 27, - 28, - 28, - 29, - 29, - 64, - 64 - ]; - var inftrees = function inflate_table2(type, lens, lens_index, codes, table, table_index, work, opts) { - var bits = opts.bits; - var len = 0; - var sym = 0; - var min2 = 0, max2 = 0; - var root = 0; - var curr = 0; - var drop = 0; - var left = 0; - var used = 0; - var huff = 0; - var incr; - var fill; - var low; - var mask; - var next; - var base2 = null; - var base_index = 0; - var end; - var count = new utils$2.Buf16(MAXBITS + 1); - var offs = new utils$2.Buf16(MAXBITS + 1); - var extra = null; - var extra_index = 0; - var here_bits, here_op, here_val; - for (len = 0; len <= MAXBITS; len++) { - count[len] = 0; - } - for (sym = 0; sym < codes; sym++) { - count[lens[lens_index + sym]]++; - } - root = bits; - for (max2 = MAXBITS; max2 >= 1; max2--) { - if (count[max2] !== 0) { - break; - } - } - if (root > max2) { - root = max2; - } - if (max2 === 0) { - table[table_index++] = 1 << 24 | 64 << 16 | 0; - table[table_index++] = 1 << 24 | 64 << 16 | 0; - opts.bits = 1; - return 0; - } - for (min2 = 1; min2 < max2; min2++) { - if (count[min2] !== 0) { - break; - } - } - if (root < min2) { - root = min2; - } - left = 1; - for (len = 1; len <= MAXBITS; len++) { - left <<= 1; - left -= count[len]; - if (left < 0) { - return -1; - } - } - if (left > 0 && (type === CODES$1 || max2 !== 1)) { - return -1; - } - offs[1] = 0; - for (len = 1; len < MAXBITS; len++) { - offs[len + 1] = offs[len] + count[len]; - } - for (sym = 0; sym < codes; sym++) { - if (lens[lens_index + sym] !== 0) { - work[offs[lens[lens_index + sym]]++] = sym; - } - } - if (type === CODES$1) { - base2 = extra = work; - end = 19; - } else if (type === LENS$1) { - base2 = lbase; - base_index -= 257; - extra = lext; - extra_index -= 257; - end = 256; - } else { - base2 = dbase; - extra = dext; - end = -1; - } - huff = 0; - sym = 0; - len = min2; - next = table_index; - curr = root; - drop = 0; - low = -1; - used = 1 << root; - mask = used - 1; - if (type === LENS$1 && used > ENOUGH_LENS$1 || type === DISTS$1 && used > ENOUGH_DISTS$1) { - return 1; - } - for (; ; ) { - here_bits = len - drop; - if (work[sym] < end) { - here_op = 0; - here_val = work[sym]; - } else if (work[sym] > end) { - here_op = extra[extra_index + work[sym]]; - here_val = base2[base_index + work[sym]]; - } else { - here_op = 32 + 64; - here_val = 0; - } - incr = 1 << len - drop; - fill = 1 << curr; - min2 = fill; - do { - fill -= incr; - table[next + (huff >> drop) + fill] = here_bits << 24 | here_op << 16 | here_val | 0; - } while (fill !== 0); - incr = 1 << len - 1; - while (huff & incr) { - incr >>= 1; - } - if (incr !== 0) { - huff &= incr - 1; - huff += incr; - } else { - huff = 0; - } - sym++; - if (--count[len] === 0) { - if (len === max2) { - break; - } - len = lens[lens_index + work[sym]]; - } - if (len > root && (huff & mask) !== low) { - if (drop === 0) { - drop = root; - } - next += min2; - curr = len - drop; - left = 1 << curr; - while (curr + drop < max2) { - left -= count[curr + drop]; - if (left <= 0) { - break; - } - curr++; - left <<= 1; - } - used += 1 << curr; - if (type === LENS$1 && used > ENOUGH_LENS$1 || type === DISTS$1 && used > ENOUGH_DISTS$1) { - return 1; - } - low = huff & mask; - table[low] = root << 24 | curr << 16 | next - table_index | 0; - } - } - if (huff !== 0) { - table[next + huff] = len - drop << 24 | 64 << 16 | 0; - } - opts.bits = root; - return 0; - }; - var utils$1 = common; - var adler32 = adler32_1; - var crc32 = crc32_1; - var inflate_fast = inffast; - var inflate_table = inftrees; - var CODES = 0; - var LENS = 1; - var DISTS = 2; - var Z_FINISH = 4; - var Z_BLOCK = 5; - var Z_TREES = 6; - var Z_OK = 0; - var Z_STREAM_END = 1; - var Z_NEED_DICT = 2; - var Z_STREAM_ERROR = -2; - var Z_DATA_ERROR = -3; - var Z_MEM_ERROR = -4; - var Z_BUF_ERROR = -5; - var Z_DEFLATED = 8; - var HEAD = 1; - var FLAGS = 2; - var TIME = 3; - var OS = 4; - var EXLEN = 5; - var EXTRA = 6; - var NAME = 7; - var COMMENT = 8; - var HCRC = 9; - var DICTID = 10; - var DICT = 11; - var TYPE = 12; - var TYPEDO = 13; - var STORED = 14; - var COPY_ = 15; - var COPY = 16; - var TABLE = 17; - var LENLENS = 18; - var CODELENS = 19; - var LEN_ = 20; - var LEN = 21; - var LENEXT = 22; - var DIST = 23; - var DISTEXT = 24; - var MATCH = 25; - var LIT = 26; - var CHECK = 27; - var LENGTH = 28; - var DONE = 29; - var BAD = 30; - var MEM = 31; - var SYNC = 32; - var ENOUGH_LENS = 852; - var ENOUGH_DISTS = 592; - var MAX_WBITS = 15; - var DEF_WBITS = MAX_WBITS; - function zswap32(q2) { - return (q2 >>> 24 & 255) + (q2 >>> 8 & 65280) + ((q2 & 65280) << 8) + ((q2 & 255) << 24); - } - function InflateState() { - this.mode = 0; - this.last = false; - this.wrap = 0; - this.havedict = false; - this.flags = 0; - this.dmax = 0; - this.check = 0; - this.total = 0; - this.head = null; - this.wbits = 0; - this.wsize = 0; - this.whave = 0; - this.wnext = 0; - this.window = null; - this.hold = 0; - this.bits = 0; - this.length = 0; - this.offset = 0; - this.extra = 0; - this.lencode = null; - this.distcode = null; - this.lenbits = 0; - this.distbits = 0; - this.ncode = 0; - this.nlen = 0; - this.ndist = 0; - this.have = 0; - this.next = null; - this.lens = new utils$1.Buf16(320); - this.work = new utils$1.Buf16(288); - this.lendyn = null; - this.distdyn = null; - this.sane = 0; - this.back = 0; - this.was = 0; - } - function inflateResetKeep(strm) { - var state; - if (!strm || !strm.state) { - return Z_STREAM_ERROR; - } - state = strm.state; - strm.total_in = strm.total_out = state.total = 0; - strm.msg = ""; - if (state.wrap) { - strm.adler = state.wrap & 1; - } - state.mode = HEAD; - state.last = 0; - state.havedict = 0; - state.dmax = 32768; - state.head = null; - state.hold = 0; - state.bits = 0; - state.lencode = state.lendyn = new utils$1.Buf32(ENOUGH_LENS); - state.distcode = state.distdyn = new utils$1.Buf32(ENOUGH_DISTS); - state.sane = 1; - state.back = -1; - return Z_OK; - } - function inflateReset(strm) { - var state; - if (!strm || !strm.state) { - return Z_STREAM_ERROR; - } - state = strm.state; - state.wsize = 0; - state.whave = 0; - state.wnext = 0; - return inflateResetKeep(strm); - } - function inflateReset2(strm, windowBits) { - var wrap; - var state; - if (!strm || !strm.state) { - return Z_STREAM_ERROR; - } - state = strm.state; - if (windowBits < 0) { - wrap = 0; - windowBits = -windowBits; - } else { - wrap = (windowBits >> 4) + 1; - if (windowBits < 48) { - windowBits &= 15; - } - } - if (windowBits && (windowBits < 8 || windowBits > 15)) { - return Z_STREAM_ERROR; - } - if (state.window !== null && state.wbits !== windowBits) { - state.window = null; - } - state.wrap = wrap; - state.wbits = windowBits; - return inflateReset(strm); - } - function inflateInit2(strm, windowBits) { - var ret; - var state; - if (!strm) { - return Z_STREAM_ERROR; - } - state = new InflateState(); - strm.state = state; - state.window = null; - ret = inflateReset2(strm, windowBits); - if (ret !== Z_OK) { - strm.state = null; - } - return ret; - } - function inflateInit(strm) { - return inflateInit2(strm, DEF_WBITS); - } - var virgin = true; - var lenfix, distfix; - function fixedtables(state) { - if (virgin) { - var sym; - lenfix = new utils$1.Buf32(512); - distfix = new utils$1.Buf32(32); - sym = 0; - while (sym < 144) { - state.lens[sym++] = 8; - } - while (sym < 256) { - state.lens[sym++] = 9; - } - while (sym < 280) { - state.lens[sym++] = 7; - } - while (sym < 288) { - state.lens[sym++] = 8; - } - inflate_table(LENS, state.lens, 0, 288, lenfix, 0, state.work, { - bits: 9 - }); - sym = 0; - while (sym < 32) { - state.lens[sym++] = 5; - } - inflate_table(DISTS, state.lens, 0, 32, distfix, 0, state.work, { - bits: 5 - }); - virgin = false; - } - state.lencode = lenfix; - state.lenbits = 9; - state.distcode = distfix; - state.distbits = 5; - } - function updatewindow(strm, src, end, copy) { - var dist; - var state = strm.state; - if (state.window === null) { - state.wsize = 1 << state.wbits; - state.wnext = 0; - state.whave = 0; - state.window = new utils$1.Buf8(state.wsize); - } - if (copy >= state.wsize) { - utils$1.arraySet(state.window, src, end - state.wsize, state.wsize, 0); - state.wnext = 0; - state.whave = state.wsize; - } else { - dist = state.wsize - state.wnext; - if (dist > copy) { - dist = copy; - } - utils$1.arraySet(state.window, src, end - copy, dist, state.wnext); - copy -= dist; - if (copy) { - utils$1.arraySet(state.window, src, end - copy, copy, 0); - state.wnext = copy; - state.whave = state.wsize; - } else { - state.wnext += dist; - if (state.wnext === state.wsize) { - state.wnext = 0; - } - if (state.whave < state.wsize) { - state.whave += dist; - } - } - } - return 0; - } - function inflate$2(strm, flush) { - var state; - var input2, output; - var next; - var put; - var have, left; - var hold; - var bits; - var _in, _out; - var copy; - var from; - var from_source; - var here = 0; - var here_bits, here_op, here_val; - var last_bits, last_op, last_val; - var len; - var ret; - var hbuf = new utils$1.Buf8(4); - var opts; - var n; - var order = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]; - if (!strm || !strm.state || !strm.output || !strm.input && strm.avail_in !== 0) { - return Z_STREAM_ERROR; - } - state = strm.state; - if (state.mode === TYPE) { - state.mode = TYPEDO; - } - put = strm.next_out; - output = strm.output; - left = strm.avail_out; - next = strm.next_in; - input2 = strm.input; - have = strm.avail_in; - hold = state.hold; - bits = state.bits; - _in = have; - _out = left; - ret = Z_OK; - inf_leave: - for (; ; ) { - switch (state.mode) { - case HEAD: - if (state.wrap === 0) { - state.mode = TYPEDO; - break; - } - while (bits < 16) { - if (have === 0) { - break inf_leave; - } - have--; - hold += input2[next++] << bits; - bits += 8; - } - if (state.wrap & 2 && hold === 35615) { - state.check = 0; - hbuf[0] = hold & 255; - hbuf[1] = hold >>> 8 & 255; - state.check = crc32(state.check, hbuf, 2, 0); - hold = 0; - bits = 0; - state.mode = FLAGS; - break; - } - state.flags = 0; - if (state.head) { - state.head.done = false; - } - if (!(state.wrap & 1) || (((hold & 255) << 8) + (hold >> 8)) % 31) { - strm.msg = "incorrect header check"; - state.mode = BAD; - break; - } - if ((hold & 15) !== Z_DEFLATED) { - strm.msg = "unknown compression method"; - state.mode = BAD; - break; - } - hold >>>= 4; - bits -= 4; - len = (hold & 15) + 8; - if (state.wbits === 0) { - state.wbits = len; - } else if (len > state.wbits) { - strm.msg = "invalid window size"; - state.mode = BAD; - break; - } - state.dmax = 1 << len; - strm.adler = state.check = 1; - state.mode = hold & 512 ? DICTID : TYPE; - hold = 0; - bits = 0; - break; - case FLAGS: - while (bits < 16) { - if (have === 0) { - break inf_leave; - } - have--; - hold += input2[next++] << bits; - bits += 8; - } - state.flags = hold; - if ((state.flags & 255) !== Z_DEFLATED) { - strm.msg = "unknown compression method"; - state.mode = BAD; - break; - } - if (state.flags & 57344) { - strm.msg = "unknown header flags set"; - state.mode = BAD; - break; - } - if (state.head) { - state.head.text = hold >> 8 & 1; - } - if (state.flags & 512) { - hbuf[0] = hold & 255; - hbuf[1] = hold >>> 8 & 255; - state.check = crc32(state.check, hbuf, 2, 0); - } - hold = 0; - bits = 0; - state.mode = TIME; - case TIME: - while (bits < 32) { - if (have === 0) { - break inf_leave; - } - have--; - hold += input2[next++] << bits; - bits += 8; - } - if (state.head) { - state.head.time = hold; - } - if (state.flags & 512) { - hbuf[0] = hold & 255; - hbuf[1] = hold >>> 8 & 255; - hbuf[2] = hold >>> 16 & 255; - hbuf[3] = hold >>> 24 & 255; - state.check = crc32(state.check, hbuf, 4, 0); - } - hold = 0; - bits = 0; - state.mode = OS; - case OS: - while (bits < 16) { - if (have === 0) { - break inf_leave; - } - have--; - hold += input2[next++] << bits; - bits += 8; - } - if (state.head) { - state.head.xflags = hold & 255; - state.head.os = hold >> 8; - } - if (state.flags & 512) { - hbuf[0] = hold & 255; - hbuf[1] = hold >>> 8 & 255; - state.check = crc32(state.check, hbuf, 2, 0); - } - hold = 0; - bits = 0; - state.mode = EXLEN; - case EXLEN: - if (state.flags & 1024) { - while (bits < 16) { - if (have === 0) { - break inf_leave; - } - have--; - hold += input2[next++] << bits; - bits += 8; - } - state.length = hold; - if (state.head) { - state.head.extra_len = hold; - } - if (state.flags & 512) { - hbuf[0] = hold & 255; - hbuf[1] = hold >>> 8 & 255; - state.check = crc32(state.check, hbuf, 2, 0); - } - hold = 0; - bits = 0; - } else if (state.head) { - state.head.extra = null; - } - state.mode = EXTRA; - case EXTRA: - if (state.flags & 1024) { - copy = state.length; - if (copy > have) { - copy = have; - } - if (copy) { - if (state.head) { - len = state.head.extra_len - state.length; - if (!state.head.extra) { - state.head.extra = new Array(state.head.extra_len); - } - utils$1.arraySet(state.head.extra, input2, next, copy, len); - } - if (state.flags & 512) { - state.check = crc32(state.check, input2, copy, next); - } - have -= copy; - next += copy; - state.length -= copy; - } - if (state.length) { - break inf_leave; - } - } - state.length = 0; - state.mode = NAME; - case NAME: - if (state.flags & 2048) { - if (have === 0) { - break inf_leave; - } - copy = 0; - do { - len = input2[next + copy++]; - if (state.head && len && state.length < 65536) { - state.head.name += String.fromCharCode(len); - } - } while (len && copy < have); - if (state.flags & 512) { - state.check = crc32(state.check, input2, copy, next); - } - have -= copy; - next += copy; - if (len) { - break inf_leave; - } - } else if (state.head) { - state.head.name = null; - } - state.length = 0; - state.mode = COMMENT; - case COMMENT: - if (state.flags & 4096) { - if (have === 0) { - break inf_leave; - } - copy = 0; - do { - len = input2[next + copy++]; - if (state.head && len && state.length < 65536) { - state.head.comment += String.fromCharCode(len); - } - } while (len && copy < have); - if (state.flags & 512) { - state.check = crc32(state.check, input2, copy, next); - } - have -= copy; - next += copy; - if (len) { - break inf_leave; - } - } else if (state.head) { - state.head.comment = null; - } - state.mode = HCRC; - case HCRC: - if (state.flags & 512) { - while (bits < 16) { - if (have === 0) { - break inf_leave; - } - have--; - hold += input2[next++] << bits; - bits += 8; - } - if (hold !== (state.check & 65535)) { - strm.msg = "header crc mismatch"; - state.mode = BAD; - break; - } - hold = 0; - bits = 0; - } - if (state.head) { - state.head.hcrc = state.flags >> 9 & 1; - state.head.done = true; - } - strm.adler = state.check = 0; - state.mode = TYPE; - break; - case DICTID: - while (bits < 32) { - if (have === 0) { - break inf_leave; - } - have--; - hold += input2[next++] << bits; - bits += 8; - } - strm.adler = state.check = zswap32(hold); - hold = 0; - bits = 0; - state.mode = DICT; - case DICT: - if (state.havedict === 0) { - strm.next_out = put; - strm.avail_out = left; - strm.next_in = next; - strm.avail_in = have; - state.hold = hold; - state.bits = bits; - return Z_NEED_DICT; - } - strm.adler = state.check = 1; - state.mode = TYPE; - case TYPE: - if (flush === Z_BLOCK || flush === Z_TREES) { - break inf_leave; - } - case TYPEDO: - if (state.last) { - hold >>>= bits & 7; - bits -= bits & 7; - state.mode = CHECK; - break; - } - while (bits < 3) { - if (have === 0) { - break inf_leave; - } - have--; - hold += input2[next++] << bits; - bits += 8; - } - state.last = hold & 1; - hold >>>= 1; - bits -= 1; - switch (hold & 3) { - case 0: - state.mode = STORED; - break; - case 1: - fixedtables(state); - state.mode = LEN_; - if (flush === Z_TREES) { - hold >>>= 2; - bits -= 2; - break inf_leave; - } - break; - case 2: - state.mode = TABLE; - break; - case 3: - strm.msg = "invalid block type"; - state.mode = BAD; - } - hold >>>= 2; - bits -= 2; - break; - case STORED: - hold >>>= bits & 7; - bits -= bits & 7; - while (bits < 32) { - if (have === 0) { - break inf_leave; - } - have--; - hold += input2[next++] << bits; - bits += 8; - } - if ((hold & 65535) !== (hold >>> 16 ^ 65535)) { - strm.msg = "invalid stored block lengths"; - state.mode = BAD; - break; - } - state.length = hold & 65535; - hold = 0; - bits = 0; - state.mode = COPY_; - if (flush === Z_TREES) { - break inf_leave; - } - case COPY_: - state.mode = COPY; - case COPY: - copy = state.length; - if (copy) { - if (copy > have) { - copy = have; - } - if (copy > left) { - copy = left; - } - if (copy === 0) { - break inf_leave; - } - utils$1.arraySet(output, input2, next, copy, put); - have -= copy; - next += copy; - left -= copy; - put += copy; - state.length -= copy; - break; - } - state.mode = TYPE; - break; - case TABLE: - while (bits < 14) { - if (have === 0) { - break inf_leave; - } - have--; - hold += input2[next++] << bits; - bits += 8; - } - state.nlen = (hold & 31) + 257; - hold >>>= 5; - bits -= 5; - state.ndist = (hold & 31) + 1; - hold >>>= 5; - bits -= 5; - state.ncode = (hold & 15) + 4; - hold >>>= 4; - bits -= 4; - if (state.nlen > 286 || state.ndist > 30) { - strm.msg = "too many length or distance symbols"; - state.mode = BAD; - break; - } - state.have = 0; - state.mode = LENLENS; - case LENLENS: - while (state.have < state.ncode) { - while (bits < 3) { - if (have === 0) { - break inf_leave; - } - have--; - hold += input2[next++] << bits; - bits += 8; - } - state.lens[order[state.have++]] = hold & 7; - hold >>>= 3; - bits -= 3; - } - while (state.have < 19) { - state.lens[order[state.have++]] = 0; - } - state.lencode = state.lendyn; - state.lenbits = 7; - opts = { - bits: state.lenbits - }; - ret = inflate_table(CODES, state.lens, 0, 19, state.lencode, 0, state.work, opts); - state.lenbits = opts.bits; - if (ret) { - strm.msg = "invalid code lengths set"; - state.mode = BAD; - break; - } - state.have = 0; - state.mode = CODELENS; - case CODELENS: - while (state.have < state.nlen + state.ndist) { - for (; ; ) { - here = state.lencode[hold & (1 << state.lenbits) - 1]; - here_bits = here >>> 24; - here_op = here >>> 16 & 255; - here_val = here & 65535; - if (here_bits <= bits) { - break; - } - if (have === 0) { - break inf_leave; - } - have--; - hold += input2[next++] << bits; - bits += 8; - } - if (here_val < 16) { - hold >>>= here_bits; - bits -= here_bits; - state.lens[state.have++] = here_val; - } else { - if (here_val === 16) { - n = here_bits + 2; - while (bits < n) { - if (have === 0) { - break inf_leave; - } - have--; - hold += input2[next++] << bits; - bits += 8; - } - hold >>>= here_bits; - bits -= here_bits; - if (state.have === 0) { - strm.msg = "invalid bit length repeat"; - state.mode = BAD; - break; - } - len = state.lens[state.have - 1]; - copy = 3 + (hold & 3); - hold >>>= 2; - bits -= 2; - } else if (here_val === 17) { - n = here_bits + 3; - while (bits < n) { - if (have === 0) { - break inf_leave; - } - have--; - hold += input2[next++] << bits; - bits += 8; - } - hold >>>= here_bits; - bits -= here_bits; - len = 0; - copy = 3 + (hold & 7); - hold >>>= 3; - bits -= 3; - } else { - n = here_bits + 7; - while (bits < n) { - if (have === 0) { - break inf_leave; - } - have--; - hold += input2[next++] << bits; - bits += 8; - } - hold >>>= here_bits; - bits -= here_bits; - len = 0; - copy = 11 + (hold & 127); - hold >>>= 7; - bits -= 7; - } - if (state.have + copy > state.nlen + state.ndist) { - strm.msg = "invalid bit length repeat"; - state.mode = BAD; - break; - } - while (copy--) { - state.lens[state.have++] = len; - } - } - } - if (state.mode === BAD) { - break; - } - if (state.lens[256] === 0) { - strm.msg = "invalid code -- missing end-of-block"; - state.mode = BAD; - break; - } - state.lenbits = 9; - opts = { - bits: state.lenbits - }; - ret = inflate_table(LENS, state.lens, 0, state.nlen, state.lencode, 0, state.work, opts); - state.lenbits = opts.bits; - if (ret) { - strm.msg = "invalid literal/lengths set"; - state.mode = BAD; - break; - } - state.distbits = 6; - state.distcode = state.distdyn; - opts = { - bits: state.distbits - }; - ret = inflate_table(DISTS, state.lens, state.nlen, state.ndist, state.distcode, 0, state.work, opts); - state.distbits = opts.bits; - if (ret) { - strm.msg = "invalid distances set"; - state.mode = BAD; - break; - } - state.mode = LEN_; - if (flush === Z_TREES) { - break inf_leave; - } - case LEN_: - state.mode = LEN; - case LEN: - if (have >= 6 && left >= 258) { - strm.next_out = put; - strm.avail_out = left; - strm.next_in = next; - strm.avail_in = have; - state.hold = hold; - state.bits = bits; - inflate_fast(strm, _out); - put = strm.next_out; - output = strm.output; - left = strm.avail_out; - next = strm.next_in; - input2 = strm.input; - have = strm.avail_in; - hold = state.hold; - bits = state.bits; - if (state.mode === TYPE) { - state.back = -1; - } - break; - } - state.back = 0; - for (; ; ) { - here = state.lencode[hold & (1 << state.lenbits) - 1]; - here_bits = here >>> 24; - here_op = here >>> 16 & 255; - here_val = here & 65535; - if (here_bits <= bits) { - break; - } - if (have === 0) { - break inf_leave; - } - have--; - hold += input2[next++] << bits; - bits += 8; - } - if (here_op && (here_op & 240) === 0) { - last_bits = here_bits; - last_op = here_op; - last_val = here_val; - for (; ; ) { - here = state.lencode[last_val + ((hold & (1 << last_bits + last_op) - 1) >> last_bits)]; - here_bits = here >>> 24; - here_op = here >>> 16 & 255; - here_val = here & 65535; - if (last_bits + here_bits <= bits) { - break; - } - if (have === 0) { - break inf_leave; - } - have--; - hold += input2[next++] << bits; - bits += 8; - } - hold >>>= last_bits; - bits -= last_bits; - state.back += last_bits; - } - hold >>>= here_bits; - bits -= here_bits; - state.back += here_bits; - state.length = here_val; - if (here_op === 0) { - state.mode = LIT; - break; - } - if (here_op & 32) { - state.back = -1; - state.mode = TYPE; - break; - } - if (here_op & 64) { - strm.msg = "invalid literal/length code"; - state.mode = BAD; - break; - } - state.extra = here_op & 15; - state.mode = LENEXT; - case LENEXT: - if (state.extra) { - n = state.extra; - while (bits < n) { - if (have === 0) { - break inf_leave; - } - have--; - hold += input2[next++] << bits; - bits += 8; - } - state.length += hold & (1 << state.extra) - 1; - hold >>>= state.extra; - bits -= state.extra; - state.back += state.extra; - } - state.was = state.length; - state.mode = DIST; - case DIST: - for (; ; ) { - here = state.distcode[hold & (1 << state.distbits) - 1]; - here_bits = here >>> 24; - here_op = here >>> 16 & 255; - here_val = here & 65535; - if (here_bits <= bits) { - break; - } - if (have === 0) { - break inf_leave; - } - have--; - hold += input2[next++] << bits; - bits += 8; - } - if ((here_op & 240) === 0) { - last_bits = here_bits; - last_op = here_op; - last_val = here_val; - for (; ; ) { - here = state.distcode[last_val + ((hold & (1 << last_bits + last_op) - 1) >> last_bits)]; - here_bits = here >>> 24; - here_op = here >>> 16 & 255; - here_val = here & 65535; - if (last_bits + here_bits <= bits) { - break; - } - if (have === 0) { - break inf_leave; - } - have--; - hold += input2[next++] << bits; - bits += 8; - } - hold >>>= last_bits; - bits -= last_bits; - state.back += last_bits; - } - hold >>>= here_bits; - bits -= here_bits; - state.back += here_bits; - if (here_op & 64) { - strm.msg = "invalid distance code"; - state.mode = BAD; - break; - } - state.offset = here_val; - state.extra = here_op & 15; - state.mode = DISTEXT; - case DISTEXT: - if (state.extra) { - n = state.extra; - while (bits < n) { - if (have === 0) { - break inf_leave; - } - have--; - hold += input2[next++] << bits; - bits += 8; - } - state.offset += hold & (1 << state.extra) - 1; - hold >>>= state.extra; - bits -= state.extra; - state.back += state.extra; - } - if (state.offset > state.dmax) { - strm.msg = "invalid distance too far back"; - state.mode = BAD; - break; - } - state.mode = MATCH; - case MATCH: - if (left === 0) { - break inf_leave; - } - copy = _out - left; - if (state.offset > copy) { - copy = state.offset - copy; - if (copy > state.whave) { - if (state.sane) { - strm.msg = "invalid distance too far back"; - state.mode = BAD; - break; - } - } - if (copy > state.wnext) { - copy -= state.wnext; - from = state.wsize - copy; - } else { - from = state.wnext - copy; - } - if (copy > state.length) { - copy = state.length; - } - from_source = state.window; - } else { - from_source = output; - from = put - state.offset; - copy = state.length; - } - if (copy > left) { - copy = left; - } - left -= copy; - state.length -= copy; - do { - output[put++] = from_source[from++]; - } while (--copy); - if (state.length === 0) { - state.mode = LEN; - } - break; - case LIT: - if (left === 0) { - break inf_leave; - } - output[put++] = state.length; - left--; - state.mode = LEN; - break; - case CHECK: - if (state.wrap) { - while (bits < 32) { - if (have === 0) { - break inf_leave; - } - have--; - hold |= input2[next++] << bits; - bits += 8; - } - _out -= left; - strm.total_out += _out; - state.total += _out; - if (_out) { - strm.adler = state.check = state.flags ? crc32(state.check, output, _out, put - _out) : adler32(state.check, output, _out, put - _out); - } - _out = left; - if ((state.flags ? hold : zswap32(hold)) !== state.check) { - strm.msg = "incorrect data check"; - state.mode = BAD; - break; - } - hold = 0; - bits = 0; - } - state.mode = LENGTH; - case LENGTH: - if (state.wrap && state.flags) { - while (bits < 32) { - if (have === 0) { - break inf_leave; - } - have--; - hold += input2[next++] << bits; - bits += 8; - } - if (hold !== (state.total & 4294967295)) { - strm.msg = "incorrect length check"; - state.mode = BAD; - break; - } - hold = 0; - bits = 0; - } - state.mode = DONE; - case DONE: - ret = Z_STREAM_END; - break inf_leave; - case BAD: - ret = Z_DATA_ERROR; - break inf_leave; - case MEM: - return Z_MEM_ERROR; - case SYNC: - default: - return Z_STREAM_ERROR; - } - } - strm.next_out = put; - strm.avail_out = left; - strm.next_in = next; - strm.avail_in = have; - state.hold = hold; - state.bits = bits; - if (state.wsize || _out !== strm.avail_out && state.mode < BAD && (state.mode < CHECK || flush !== Z_FINISH)) { - if (updatewindow(strm, strm.output, strm.next_out, _out - strm.avail_out)) - ; - } - _in -= strm.avail_in; - _out -= strm.avail_out; - strm.total_in += _in; - strm.total_out += _out; - state.total += _out; - if (state.wrap && _out) { - strm.adler = state.check = state.flags ? crc32(state.check, output, _out, strm.next_out - _out) : adler32(state.check, output, _out, strm.next_out - _out); - } - strm.data_type = state.bits + (state.last ? 64 : 0) + (state.mode === TYPE ? 128 : 0) + (state.mode === LEN_ || state.mode === COPY_ ? 256 : 0); - if ((_in === 0 && _out === 0 || flush === Z_FINISH) && ret === Z_OK) { - ret = Z_BUF_ERROR; - } - return ret; - } - function inflateEnd(strm) { - if (!strm || !strm.state) { - return Z_STREAM_ERROR; - } - var state = strm.state; - if (state.window) { - state.window = null; - } - strm.state = null; - return Z_OK; - } - function inflateGetHeader(strm, head) { - var state; - if (!strm || !strm.state) { - return Z_STREAM_ERROR; - } - state = strm.state; - if ((state.wrap & 2) === 0) { - return Z_STREAM_ERROR; - } - state.head = head; - head.done = false; - return Z_OK; - } - function inflateSetDictionary(strm, dictionary) { - var dictLength = dictionary.length; - var state; - var dictid; - var ret; - if (!strm || !strm.state) { - return Z_STREAM_ERROR; - } - state = strm.state; - if (state.wrap !== 0 && state.mode !== DICT) { - return Z_STREAM_ERROR; - } - if (state.mode === DICT) { - dictid = 1; - dictid = adler32(dictid, dictionary, dictLength, 0); - if (dictid !== state.check) { - return Z_DATA_ERROR; - } - } - ret = updatewindow(strm, dictionary, dictLength, dictLength); - if (ret) { - state.mode = MEM; - return Z_MEM_ERROR; - } - state.havedict = 1; - return Z_OK; - } - inflate$3.inflateReset = inflateReset; - inflate$3.inflateReset2 = inflateReset2; - inflate$3.inflateResetKeep = inflateResetKeep; - inflate$3.inflateInit = inflateInit; - inflate$3.inflateInit2 = inflateInit2; - inflate$3.inflate = inflate$2; - inflate$3.inflateEnd = inflateEnd; - inflate$3.inflateGetHeader = inflateGetHeader; - inflate$3.inflateSetDictionary = inflateSetDictionary; - inflate$3.inflateInfo = "pako inflate (from Nodeca project)"; - var constants$1 = { - Z_NO_FLUSH: 0, - Z_PARTIAL_FLUSH: 1, - Z_SYNC_FLUSH: 2, - Z_FULL_FLUSH: 3, - Z_FINISH: 4, - Z_BLOCK: 5, - Z_TREES: 6, - Z_OK: 0, - Z_STREAM_END: 1, - Z_NEED_DICT: 2, - Z_ERRNO: -1, - Z_STREAM_ERROR: -2, - Z_DATA_ERROR: -3, - Z_BUF_ERROR: -5, - Z_NO_COMPRESSION: 0, - Z_BEST_SPEED: 1, - Z_BEST_COMPRESSION: 9, - Z_DEFAULT_COMPRESSION: -1, - Z_FILTERED: 1, - Z_HUFFMAN_ONLY: 2, - Z_RLE: 3, - Z_FIXED: 4, - Z_DEFAULT_STRATEGY: 0, - Z_BINARY: 0, - Z_TEXT: 1, - Z_UNKNOWN: 2, - Z_DEFLATED: 8 - }; - function GZheader$1() { - this.text = 0; - this.time = 0; - this.xflags = 0; - this.os = 0; - this.extra = null; - this.extra_len = 0; - this.name = ""; - this.comment = ""; - this.hcrc = 0; - this.done = false; - } - var gzheader = GZheader$1; - var zlib_inflate = inflate$3; - var utils = common; - var strings = strings$2; - var c = constants$1; - var msg = messages; - var ZStream = zstream; - var GZheader = gzheader; - var toString = Object.prototype.toString; - function Inflate(options) { - if (!(this instanceof Inflate)) - return new Inflate(options); - this.options = utils.assign({ - chunkSize: 16384, - windowBits: 0, - to: "" - }, options || {}); - var opt = this.options; - if (opt.raw && opt.windowBits >= 0 && opt.windowBits < 16) { - opt.windowBits = -opt.windowBits; - if (opt.windowBits === 0) { - opt.windowBits = -15; - } - } - if (opt.windowBits >= 0 && opt.windowBits < 16 && !(options && options.windowBits)) { - opt.windowBits += 32; - } - if (opt.windowBits > 15 && opt.windowBits < 48) { - if ((opt.windowBits & 15) === 0) { - opt.windowBits |= 15; - } - } - this.err = 0; - this.msg = ""; - this.ended = false; - this.chunks = []; - this.strm = new ZStream(); - this.strm.avail_out = 0; - var status = zlib_inflate.inflateInit2(this.strm, opt.windowBits); - if (status !== c.Z_OK) { - throw new Error(msg[status]); - } - this.header = new GZheader(); - zlib_inflate.inflateGetHeader(this.strm, this.header); - if (opt.dictionary) { - if (typeof opt.dictionary === "string") { - opt.dictionary = strings.string2buf(opt.dictionary); - } else if (toString.call(opt.dictionary) === "[object ArrayBuffer]") { - opt.dictionary = new Uint8Array(opt.dictionary); - } - if (opt.raw) { - status = zlib_inflate.inflateSetDictionary(this.strm, opt.dictionary); - if (status !== c.Z_OK) { - throw new Error(msg[status]); - } - } - } - } - Inflate.prototype.push = function(data, mode2) { - var strm = this.strm; - var chunkSize = this.options.chunkSize; - var dictionary = this.options.dictionary; - var status, _mode; - var next_out_utf8, tail, utf8str; - var allowBufError = false; - if (this.ended) { - return false; - } - _mode = mode2 === ~~mode2 ? mode2 : mode2 === true ? c.Z_FINISH : c.Z_NO_FLUSH; - if (typeof data === "string") { - strm.input = strings.binstring2buf(data); - } else if (toString.call(data) === "[object ArrayBuffer]") { - strm.input = new Uint8Array(data); - } else { - strm.input = data; - } - strm.next_in = 0; - strm.avail_in = strm.input.length; - do { - if (strm.avail_out === 0) { - strm.output = new utils.Buf8(chunkSize); - strm.next_out = 0; - strm.avail_out = chunkSize; - } - status = zlib_inflate.inflate(strm, c.Z_NO_FLUSH); - if (status === c.Z_NEED_DICT && dictionary) { - status = zlib_inflate.inflateSetDictionary(this.strm, dictionary); - } - if (status === c.Z_BUF_ERROR && allowBufError === true) { - status = c.Z_OK; - allowBufError = false; - } - if (status !== c.Z_STREAM_END && status !== c.Z_OK) { - this.onEnd(status); - this.ended = true; - return false; - } - if (strm.next_out) { - if (strm.avail_out === 0 || status === c.Z_STREAM_END || strm.avail_in === 0 && (_mode === c.Z_FINISH || _mode === c.Z_SYNC_FLUSH)) { - if (this.options.to === "string") { - next_out_utf8 = strings.utf8border(strm.output, strm.next_out); - tail = strm.next_out - next_out_utf8; - utf8str = strings.buf2string(strm.output, next_out_utf8); - strm.next_out = tail; - strm.avail_out = chunkSize - tail; - if (tail) { - utils.arraySet(strm.output, strm.output, next_out_utf8, tail, 0); - } - this.onData(utf8str); - } else { - this.onData(utils.shrinkBuf(strm.output, strm.next_out)); - } - } - } - if (strm.avail_in === 0 && strm.avail_out === 0) { - allowBufError = true; - } - } while ((strm.avail_in > 0 || strm.avail_out === 0) && status !== c.Z_STREAM_END); - if (status === c.Z_STREAM_END) { - _mode = c.Z_FINISH; - } - if (_mode === c.Z_FINISH) { - status = zlib_inflate.inflateEnd(this.strm); - this.onEnd(status); - this.ended = true; - return status === c.Z_OK; - } - if (_mode === c.Z_SYNC_FLUSH) { - this.onEnd(c.Z_OK); - strm.avail_out = 0; - return true; - } - return true; - }; - Inflate.prototype.onData = function(chunk) { - this.chunks.push(chunk); - }; - Inflate.prototype.onEnd = function(status) { - if (status === c.Z_OK) { - if (this.options.to === "string") { - this.result = this.chunks.join(""); - } else { - this.result = utils.flattenChunks(this.chunks); - } - } - this.chunks = []; - this.err = status; - this.msg = this.strm.msg; - }; - function inflate$1(input2, options) { - var inflator = new Inflate(options); - inflator.push(input2, true); - if (inflator.err) { - throw inflator.msg || msg[inflator.err]; - } - return inflator.result; - } - function inflateRaw(input2, options) { - options = options || {}; - options.raw = true; - return inflate$1(input2, options); - } - inflate$4.Inflate = Inflate; - inflate$4.inflate = inflate$1; - inflate$4.inflateRaw = inflateRaw; - inflate$4.ungzip = inflate$1; - var assign = common.assign; - var deflate = deflate$4; - var inflate = inflate$4; - var constants = constants$1; - var pako = {}; - assign(pako, deflate, inflate, constants); - var pako_1 = pako; - var API_UPX2PX = "upx2px"; - var EPS = 1e-4; - var BASE_DEVICE_WIDTH = 750; - var isIOS = false; - var deviceWidth = 0; - var deviceDPR = 0; - var maxWidth = 960; - var baseWidth = 375; - function checkDeviceWidth() { - var { - platform, - pixelRatio: pixelRatio2, - windowWidth - } = getBaseSystemInfo(); - deviceWidth = windowWidth; - deviceDPR = pixelRatio2; - isIOS = platform === "ios"; - } - function checkValue(value, defaultValue) { - var newValue = Number(value); - return isNaN(newValue) ? defaultValue : newValue; - } - function checkMaxWidth() { - var config = __uniConfig.globalStyle || {}; - maxWidth = checkValue(config.rpxCalcMaxDeviceWidth, 960); - baseWidth = checkValue(config.rpxCalcBaseDeviceWidth, 375); - } - var upx2px = /* @__PURE__ */ defineSyncApi(API_UPX2PX, (number, newDeviceWidth) => { - if (deviceWidth === 0) { - checkDeviceWidth(); - { - checkMaxWidth(); - } - } - number = Number(number); - if (number === 0) { - return 0; - } - var width = newDeviceWidth || deviceWidth; - { - width = width <= maxWidth ? width : baseWidth; - } - var result = number / BASE_DEVICE_WIDTH * width; - if (result < 0) { - result = -result; - } - result = Math.floor(result + EPS); - if (result === 0) { - if (deviceDPR === 1 || !isIOS) { - result = 1; - } else { - result = 0.5; - } - } - return number < 0 ? -result : result; - }); - new E$1(); - var validator = [{ - name: "id", - type: String, - required: true - }]; - validator.concat({ - name: "componentInstance", - type: Object - }); - var _objectPie = {}; - _objectPie.f = {}.propertyIsEnumerable; - var DESCRIPTORS = _descriptors; - var getKeys = _objectKeys; - var toIObject = _toIobject; - var isEnum = _objectPie.f; - var _objectToArray = function(isEntries) { - return function(it) { - var O = toIObject(it); - var keys = getKeys(O); - var length = keys.length; - var i2 = 0; - var result = []; - var key2; - while (length > i2) { - key2 = keys[i2++]; - if (!DESCRIPTORS || isEnum.call(O, key2)) { - result.push(isEntries ? [key2, O[key2]] : O[key2]); - } - } - return result; - }; - }; - var $export = _export; - var $values = _objectToArray(false); - $export($export.S, "Object", { - values: function values(it) { - return $values(it); - } - }); - var API_SET_PAGE_META = "setPageMeta"; - var API_LOAD_FONT_FACE = "loadFontFace"; - var API_PAGE_SCROLL_TO = "pageScrollTo"; - var initIntersectionObserverPolyfill = function() { - if (typeof window !== "object") { - return; - } - if ("IntersectionObserver" in window && "IntersectionObserverEntry" in window && "intersectionRatio" in window.IntersectionObserverEntry.prototype) { - if (!("isIntersecting" in window.IntersectionObserverEntry.prototype)) { - Object.defineProperty(window.IntersectionObserverEntry.prototype, "isIntersecting", { - get: function() { - return this.intersectionRatio > 0; - } - }); - } - return; - } - function getFrameElement(doc2) { - try { - return doc2.defaultView && doc2.defaultView.frameElement || null; - } catch (e2) { - return null; - } - } - var document2 = function(startDoc) { - var doc2 = startDoc; - var frame = getFrameElement(doc2); - while (frame) { - doc2 = frame.ownerDocument; - frame = getFrameElement(doc2); - } - return doc2; - }(window.document); - var registry = []; - var crossOriginUpdater = null; - var crossOriginRect = null; - function IntersectionObserverEntry(entry) { - this.time = entry.time; - this.target = entry.target; - this.rootBounds = ensureDOMRect(entry.rootBounds); - this.boundingClientRect = ensureDOMRect(entry.boundingClientRect); - this.intersectionRect = ensureDOMRect(entry.intersectionRect || getEmptyRect()); - this.isIntersecting = !!entry.intersectionRect; - var targetRect = this.boundingClientRect; - var targetArea = targetRect.width * targetRect.height; - var intersectionRect = this.intersectionRect; - var intersectionArea = intersectionRect.width * intersectionRect.height; - if (targetArea) { - this.intersectionRatio = Number((intersectionArea / targetArea).toFixed(4)); - } else { - this.intersectionRatio = this.isIntersecting ? 1 : 0; - } - } - function IntersectionObserver2(callback, opt_options) { - var options = opt_options || {}; - if (typeof callback != "function") { - throw new Error("callback must be a function"); - } - if (options.root && options.root.nodeType != 1 && options.root.nodeType != 9) { - throw new Error("root must be a Document or Element"); - } - this._checkForIntersections = throttle2(this._checkForIntersections.bind(this), this.THROTTLE_TIMEOUT); - this._callback = callback; - this._observationTargets = []; - this._queuedEntries = []; - this._rootMarginValues = this._parseRootMargin(options.rootMargin); - this.thresholds = this._initThresholds(options.threshold); - this.root = options.root || null; - this.rootMargin = this._rootMarginValues.map(function(margin) { - return margin.value + margin.unit; - }).join(" "); - this._monitoringDocuments = []; - this._monitoringUnsubscribes = []; - } - IntersectionObserver2.prototype.THROTTLE_TIMEOUT = 100; - IntersectionObserver2.prototype.POLL_INTERVAL = null; - IntersectionObserver2.prototype.USE_MUTATION_OBSERVER = true; - IntersectionObserver2._setupCrossOriginUpdater = function() { - if (!crossOriginUpdater) { - crossOriginUpdater = function(boundingClientRect, intersectionRect) { - if (!boundingClientRect || !intersectionRect) { - crossOriginRect = getEmptyRect(); - } else { - crossOriginRect = convertFromParentRect(boundingClientRect, intersectionRect); - } - registry.forEach(function(observer) { - observer._checkForIntersections(); - }); - }; - } - return crossOriginUpdater; - }; - IntersectionObserver2._resetCrossOriginUpdater = function() { - crossOriginUpdater = null; - crossOriginRect = null; - }; - IntersectionObserver2.prototype.observe = function(target) { - var isTargetAlreadyObserved = this._observationTargets.some(function(item) { - return item.element == target; - }); - if (isTargetAlreadyObserved) { - return; - } - if (!(target && target.nodeType == 1)) { - throw new Error("target must be an Element"); - } - this._registerInstance(); - this._observationTargets.push({ - element: target, - entry: null - }); - this._monitorIntersections(target.ownerDocument); - this._checkForIntersections(); - }; - IntersectionObserver2.prototype.unobserve = function(target) { - this._observationTargets = this._observationTargets.filter(function(item) { - return item.element != target; - }); - this._unmonitorIntersections(target.ownerDocument); - if (this._observationTargets.length == 0) { - this._unregisterInstance(); - } - }; - IntersectionObserver2.prototype.disconnect = function() { - this._observationTargets = []; - this._unmonitorAllIntersections(); - this._unregisterInstance(); - }; - IntersectionObserver2.prototype.takeRecords = function() { - var records = this._queuedEntries.slice(); - this._queuedEntries = []; - return records; - }; - IntersectionObserver2.prototype._initThresholds = function(opt_threshold) { - var threshold = opt_threshold || [0]; - if (!Array.isArray(threshold)) - threshold = [threshold]; - return threshold.sort().filter(function(t2, i2, a2) { - if (typeof t2 != "number" || isNaN(t2) || t2 < 0 || t2 > 1) { - throw new Error("threshold must be a number between 0 and 1 inclusively"); - } - return t2 !== a2[i2 - 1]; - }); - }; - IntersectionObserver2.prototype._parseRootMargin = function(opt_rootMargin) { - var marginString = opt_rootMargin || "0px"; - var margins = marginString.split(/\s+/).map(function(margin) { - var parts = /^(-?\d*\.?\d+)(px|%)$/.exec(margin); - if (!parts) { - throw new Error("rootMargin must be specified in pixels or percent"); - } - return { - value: parseFloat(parts[1]), - unit: parts[2] - }; - }); - margins[1] = margins[1] || margins[0]; - margins[2] = margins[2] || margins[0]; - margins[3] = margins[3] || margins[1]; - return margins; - }; - IntersectionObserver2.prototype._monitorIntersections = function(doc2) { - var win = doc2.defaultView; - if (!win) { - return; - } - if (this._monitoringDocuments.indexOf(doc2) != -1) { - return; - } - var callback = this._checkForIntersections; - var monitoringInterval = null; - var domObserver = null; - if (this.POLL_INTERVAL) { - monitoringInterval = win.setInterval(callback, this.POLL_INTERVAL); - } else { - addEvent(win, "resize", callback, true); - addEvent(doc2, "scroll", callback, true); - if (this.USE_MUTATION_OBSERVER && "MutationObserver" in win) { - domObserver = new win.MutationObserver(callback); - domObserver.observe(doc2, { - attributes: true, - childList: true, - characterData: true, - subtree: true - }); - } - } - this._monitoringDocuments.push(doc2); - this._monitoringUnsubscribes.push(function() { - var win2 = doc2.defaultView; - if (win2) { - if (monitoringInterval) { - win2.clearInterval(monitoringInterval); - } - removeEvent(win2, "resize", callback, true); - } - removeEvent(doc2, "scroll", callback, true); - if (domObserver) { - domObserver.disconnect(); - } - }); - var rootDoc = this.root && (this.root.ownerDocument || this.root) || document2; - if (doc2 != rootDoc) { - var frame = getFrameElement(doc2); - if (frame) { - this._monitorIntersections(frame.ownerDocument); - } - } - }; - IntersectionObserver2.prototype._unmonitorIntersections = function(doc2) { - var index2 = this._monitoringDocuments.indexOf(doc2); - if (index2 == -1) { - return; - } - var rootDoc = this.root && (this.root.ownerDocument || this.root) || document2; - var hasDependentTargets = this._observationTargets.some(function(item) { - var itemDoc = item.element.ownerDocument; - if (itemDoc == doc2) { - return true; - } - while (itemDoc && itemDoc != rootDoc) { - var frame2 = getFrameElement(itemDoc); - itemDoc = frame2 && frame2.ownerDocument; - if (itemDoc == doc2) { - return true; - } - } - return false; - }); - if (hasDependentTargets) { - return; - } - var unsubscribe = this._monitoringUnsubscribes[index2]; - this._monitoringDocuments.splice(index2, 1); - this._monitoringUnsubscribes.splice(index2, 1); - unsubscribe(); - if (doc2 != rootDoc) { - var frame = getFrameElement(doc2); - if (frame) { - this._unmonitorIntersections(frame.ownerDocument); - } - } - }; - IntersectionObserver2.prototype._unmonitorAllIntersections = function() { - var unsubscribes = this._monitoringUnsubscribes.slice(0); - this._monitoringDocuments.length = 0; - this._monitoringUnsubscribes.length = 0; - for (var i2 = 0; i2 < unsubscribes.length; i2++) { - unsubscribes[i2](); - } - }; - IntersectionObserver2.prototype._checkForIntersections = function() { - if (!this.root && crossOriginUpdater && !crossOriginRect) { - return; - } - var rootIsInDom = this._rootIsInDom(); - var rootRect = rootIsInDom ? this._getRootRect() : getEmptyRect(); - this._observationTargets.forEach(function(item) { - var target = item.element; - var targetRect = getBoundingClientRect(target); - var rootContainsTarget = this._rootContainsTarget(target); - var oldEntry = item.entry; - var intersectionRect = rootIsInDom && rootContainsTarget && this._computeTargetAndRootIntersection(target, targetRect, rootRect); - var rootBounds = null; - if (!this._rootContainsTarget(target)) { - rootBounds = getEmptyRect(); - } else if (!crossOriginUpdater || this.root) { - rootBounds = rootRect; - } - var newEntry = item.entry = new IntersectionObserverEntry({ - time: now(), - target, - boundingClientRect: targetRect, - rootBounds, - intersectionRect - }); - if (!oldEntry) { - this._queuedEntries.push(newEntry); - } else if (rootIsInDom && rootContainsTarget) { - if (this._hasCrossedThreshold(oldEntry, newEntry)) { - this._queuedEntries.push(newEntry); - } - } else { - if (oldEntry && oldEntry.isIntersecting) { - this._queuedEntries.push(newEntry); - } - } - }, this); - if (this._queuedEntries.length) { - this._callback(this.takeRecords(), this); - } - }; - IntersectionObserver2.prototype._computeTargetAndRootIntersection = function(target, targetRect, rootRect) { - if (window.getComputedStyle(target).display == "none") - return; - var intersectionRect = targetRect; - var parent = getParentNode(target); - var atRoot = false; - while (!atRoot && parent) { - var parentRect = null; - var parentComputedStyle = parent.nodeType == 1 ? window.getComputedStyle(parent) : {}; - if (parentComputedStyle.display == "none") - return null; - if (parent == this.root || parent.nodeType == 9) { - atRoot = true; - if (parent == this.root || parent == document2) { - if (crossOriginUpdater && !this.root) { - if (!crossOriginRect || crossOriginRect.width == 0 && crossOriginRect.height == 0) { - parent = null; - parentRect = null; - intersectionRect = null; - } else { - parentRect = crossOriginRect; - } - } else { - parentRect = rootRect; - } - } else { - var frame = getParentNode(parent); - var frameRect = frame && getBoundingClientRect(frame); - var frameIntersect = frame && this._computeTargetAndRootIntersection(frame, frameRect, rootRect); - if (frameRect && frameIntersect) { - parent = frame; - parentRect = convertFromParentRect(frameRect, frameIntersect); - } else { - parent = null; - intersectionRect = null; - } - } - } else { - var doc2 = parent.ownerDocument; - if (parent != doc2.body && parent != doc2.documentElement && parentComputedStyle.overflow != "visible") { - parentRect = getBoundingClientRect(parent); - } - } - if (parentRect) { - intersectionRect = computeRectIntersection(parentRect, intersectionRect); - } - if (!intersectionRect) - break; - parent = parent && getParentNode(parent); - } - return intersectionRect; - }; - IntersectionObserver2.prototype._getRootRect = function() { - var rootRect; - if (this.root && !isDoc(this.root)) { - rootRect = getBoundingClientRect(this.root); - } else { - var doc2 = isDoc(this.root) ? this.root : document2; - var html = doc2.documentElement; - var body = doc2.body; - rootRect = { - top: 0, - left: 0, - right: html.clientWidth || body.clientWidth, - width: html.clientWidth || body.clientWidth, - bottom: html.clientHeight || body.clientHeight, - height: html.clientHeight || body.clientHeight - }; - } - return this._expandRectByRootMargin(rootRect); - }; - IntersectionObserver2.prototype._expandRectByRootMargin = function(rect) { - var margins = this._rootMarginValues.map(function(margin, i2) { - return margin.unit == "px" ? margin.value : margin.value * (i2 % 2 ? rect.width : rect.height) / 100; - }); - var newRect = { - top: rect.top - margins[0], - right: rect.right + margins[1], - bottom: rect.bottom + margins[2], - left: rect.left - margins[3] - }; - newRect.width = newRect.right - newRect.left; - newRect.height = newRect.bottom - newRect.top; - return newRect; - }; - IntersectionObserver2.prototype._hasCrossedThreshold = function(oldEntry, newEntry) { - var oldRatio = oldEntry && oldEntry.isIntersecting ? oldEntry.intersectionRatio || 0 : -1; - var newRatio = newEntry.isIntersecting ? newEntry.intersectionRatio || 0 : -1; - if (oldRatio === newRatio) - return; - for (var i2 = 0; i2 < this.thresholds.length; i2++) { - var threshold = this.thresholds[i2]; - if (threshold == oldRatio || threshold == newRatio || threshold < oldRatio !== threshold < newRatio) { - return true; - } - } - }; - IntersectionObserver2.prototype._rootIsInDom = function() { - return !this.root || containsDeep(document2, this.root); - }; - IntersectionObserver2.prototype._rootContainsTarget = function(target) { - var rootDoc = this.root && (this.root.ownerDocument || this.root) || document2; - return containsDeep(rootDoc, target) && (!this.root || rootDoc == target.ownerDocument); - }; - IntersectionObserver2.prototype._registerInstance = function() { - if (registry.indexOf(this) < 0) { - registry.push(this); - } - }; - IntersectionObserver2.prototype._unregisterInstance = function() { - var index2 = registry.indexOf(this); - if (index2 != -1) - registry.splice(index2, 1); - }; - function now() { - return window.performance && performance.now && performance.now(); - } - function throttle2(fn, timeout) { - var timer = null; - return function() { - if (!timer) { - timer = setTimeout(function() { - fn(); - timer = null; - }, timeout); - } - }; - } - function addEvent(node, event, fn, opt_useCapture) { - if (typeof node.addEventListener == "function") { - node.addEventListener(event, fn, opt_useCapture || false); - } else if (typeof node.attachEvent == "function") { - node.attachEvent("on" + event, fn); - } - } - function removeEvent(node, event, fn, opt_useCapture) { - if (typeof node.removeEventListener == "function") { - node.removeEventListener(event, fn, opt_useCapture || false); - } else if (typeof node.detatchEvent == "function") { - node.detatchEvent("on" + event, fn); - } - } - function computeRectIntersection(rect1, rect2) { - var top = Math.max(rect1.top, rect2.top); - var bottom = Math.min(rect1.bottom, rect2.bottom); - var left = Math.max(rect1.left, rect2.left); - var right = Math.min(rect1.right, rect2.right); - var width = right - left; - var height = bottom - top; - return width >= 0 && height >= 0 && { - top, - bottom, - left, - right, - width, - height - } || null; - } - function getBoundingClientRect(el) { - var rect; - try { - rect = el.getBoundingClientRect(); - } catch (err2) { - } - if (!rect) - return getEmptyRect(); - if (!(rect.width && rect.height)) { - rect = { - top: rect.top, - right: rect.right, - bottom: rect.bottom, - left: rect.left, - width: rect.right - rect.left, - height: rect.bottom - rect.top - }; - } - return rect; - } - function getEmptyRect() { - return { - top: 0, - bottom: 0, - left: 0, - right: 0, - width: 0, - height: 0 - }; - } - function ensureDOMRect(rect) { - if (!rect || "x" in rect) { - return rect; - } - return { - top: rect.top, - y: rect.top, - bottom: rect.bottom, - left: rect.left, - x: rect.left, - right: rect.right, - width: rect.width, - height: rect.height - }; - } - function convertFromParentRect(parentBoundingRect, parentIntersectionRect) { - var top = parentIntersectionRect.top - parentBoundingRect.top; - var left = parentIntersectionRect.left - parentBoundingRect.left; - return { - top, - left, - height: parentIntersectionRect.height, - width: parentIntersectionRect.width, - bottom: top + parentIntersectionRect.height, - right: left + parentIntersectionRect.width - }; - } - function containsDeep(parent, child) { - var node = child; - while (node) { - if (node == parent) - return true; - node = getParentNode(node); - } - return false; - } - function getParentNode(node) { - var parent = node.parentNode; - if (node.nodeType == 9 && node != document2) { - return getFrameElement(node); - } - if (parent && parent.assignedSlot) { - parent = parent.assignedSlot.parentNode; - } - if (parent && parent.nodeType == 11 && parent.host) { - return parent.host; - } - return parent; - } - function isDoc(node) { - return node && node.nodeType === 9; - } - window.IntersectionObserver = IntersectionObserver2; - window.IntersectionObserverEntry = IntersectionObserverEntry; - }; - function normalizeRect(rect) { - var { - bottom, - height, - left, - right, - top, - width - } = rect || {}; - return { - bottom, - height, - left, - right, - top, - width - }; - } - function rectifyIntersectionRatio(entrie) { - var { - intersectionRatio, - boundingClientRect: { - height: overAllHeight, - width: overAllWidth - }, - intersectionRect: { - height: intersectionHeight, - width: intersectionWidth - } - } = entrie; - if (intersectionRatio !== 0) - return intersectionRatio; - return intersectionHeight === overAllHeight ? intersectionWidth / overAllWidth : intersectionHeight / overAllHeight; - } - function requestComponentObserver($el, options, callback) { - initIntersectionObserverPolyfill(); - var root = options.relativeToSelector ? $el.querySelector(options.relativeToSelector) : null; - var intersectionObserver = new IntersectionObserver((entries2) => { - entries2.forEach((entrie) => { - callback({ - intersectionRatio: rectifyIntersectionRatio(entrie), - intersectionRect: normalizeRect(entrie.intersectionRect), - boundingClientRect: normalizeRect(entrie.boundingClientRect), - relativeRect: normalizeRect(entrie.rootBounds), - time: Date.now(), - dataset: getCustomDataset(entrie.target), - id: entrie.target.id - }); - }); - }, { - root, - rootMargin: options.rootMargin, - threshold: options.thresholds - }); - if (options.observeAll) { - intersectionObserver.USE_MUTATION_OBSERVER = true; - var nodeList = $el.querySelectorAll(options.selector); - for (var i2 = 0; i2 < nodeList.length; i2++) { - intersectionObserver.observe(nodeList[i2]); - } - } else { - intersectionObserver.USE_MUTATION_OBSERVER = false; - var el = $el.querySelector(options.selector); - if (!el) { - console.warn("Node ".concat(options.selector, " is not found. Intersection observer will not trigger.")); - } else { - intersectionObserver.observe(el); - } - } - return intersectionObserver; - } - function navigateTo(args) { - UniViewJSBridge.invokeServiceMethod("navigateTo", args); - } - function navigateBack(args) { - UniViewJSBridge.invokeServiceMethod("navigateBack", args); - } - function reLaunch(args) { - UniViewJSBridge.invokeServiceMethod("reLaunch", args); - } - function redirectTo(args) { - UniViewJSBridge.invokeServiceMethod("redirectTo", args); - } - function switchTab(args) { - UniViewJSBridge.invokeServiceMethod("switchTab", args); - } - var uni$1 = /* @__PURE__ */ Object.freeze({ - __proto__: null, - [Symbol.toStringTag]: "Module", - upx2px, - navigateTo, - navigateBack, - reLaunch, - redirectTo, - switchTab - }); - function preventDoubleTap() { - if (String(navigator.vendor).indexOf("Apple") === 0) { - var firstEvent = null; - var timeout; - document.documentElement.addEventListener("click", (event) => { - var TIME_MAX = 450; - var PAGE_MAX = 44; - clearTimeout(timeout); - if (firstEvent && Math.abs(event.pageX - firstEvent.pageX) <= PAGE_MAX && Math.abs(event.pageY - firstEvent.pageY) <= PAGE_MAX && event.timeStamp - firstEvent.timeStamp <= TIME_MAX) { - event.preventDefault(); - } - firstEvent = event; - timeout = setTimeout(() => { - firstEvent = null; - }, TIME_MAX); - }); - } - } - function createGetDict(dict) { - if (!dict.length) { - return (v2) => v2; - } - var getDict = function(value) { - var includeValue = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true; - if (typeof value === "number") { - return dict[value]; - } - var res = {}; - value.forEach((_ref) => { - var [n, v2] = _ref; - if (includeValue) { - res[getDict(n)] = getDict(v2); - } else { - res[getDict(n)] = v2; - } - }); - return res; - }; - return getDict; - } - function decodeNodeJson(getDict, nodeJson) { - if (!nodeJson) { - return; - } - if (nodeJson.a) { - nodeJson.a = getDict(nodeJson.a); - } - if (nodeJson.e) { - nodeJson.e = getDict(nodeJson.e, false); - } - if (nodeJson.w) { - nodeJson.w = getWxsEventDict(nodeJson.w, getDict); - } - if (nodeJson.s) { - nodeJson.s = getDict(nodeJson.s); - } - if (nodeJson.t) { - nodeJson.t = getDict(nodeJson.t); - } - return nodeJson; - } - function getWxsEventDict(w, getDict) { - var res = {}; - w.forEach((_ref4) => { - var [name, [wxsEvent, flag]] = _ref4; - res[getDict(name)] = [getDict(wxsEvent), flag]; - }); - return res; - } - function createActionJob(fn, priority) { - return fn.priority = priority, fn; - } - var postActionJobs = /* @__PURE__ */ new Set(); - var JOB_PRIORITY_UPDATE = 1; - var JOB_PRIORITY_REBUILD = 2; - var JOB_PRIORITY_RENDERJS = 3; - var JOB_PRIORITY_WXS_PROPS = 4; - function queuePostActionJob(job, priority) { - postActionJobs.add(createActionJob(job, priority)); - } - function flushPostActionJobs() { - try { - ; - [...postActionJobs].sort((a2, b) => a2.priority - b.priority).forEach((fn) => fn()); - } finally { - postActionJobs.clear(); - } - } - function getViewModule(moduleId, ownerEl) { - var __wxsModules = window["__" + WXS_MODULES]; - var module = __wxsModules && __wxsModules[moduleId]; - if (module) { - return module; - } - if (ownerEl && ownerEl.__renderjsInstances) { - return ownerEl.__renderjsInstances[moduleId]; - } - } - var WXS_PROTOCOL_LEN = WXS_PROTOCOL.length; - function invokeWxs(el, wxsStr, invokerArgs) { - var [ownerId, moduleId, invoker, args] = parseWxs(wxsStr); - var ownerEl = resolveOwnerEl(el, ownerId); - if (isArray$1(invokerArgs) || isArray$1(args)) { - var [moduleName, mehtodName] = invoker.split("."); - return invokeWxsMethod(ownerEl, moduleId, moduleName, mehtodName, invokerArgs || args); - } - return getWxsProp(ownerEl, moduleId, invoker); - } - function invokeWxsEvent(el, wxsStr, event) { - var [ownerId, moduleId, invoker] = parseWxs(wxsStr); - var [moduleName, mehtodName] = invoker.split("."); - var ownerEl = resolveOwnerEl(el, ownerId); - return invokeWxsMethod(ownerEl, moduleId, moduleName, mehtodName, [wrapperWxsEvent(event, el), getComponentDescriptor(createComponentDescriptorVm(ownerEl))]); - } - function resolveOwnerEl(el, ownerId) { - if (el.__ownerId === ownerId) { - return el; - } - var parentElement = el.parentElement; - while (parentElement) { - if (parentElement.__ownerId === ownerId) { - return parentElement; - } - parentElement = parentElement.parentElement; - } - return el; - } - function parseWxs(wxsStr) { - return JSON.parse(wxsStr.substr(WXS_PROTOCOL_LEN)); - } - function invokeWxsProps(wxsStr, el, newValue, oldValue) { - var [ownerId, moduleId, invoker] = parseWxs(wxsStr); - var ownerEl = resolveOwnerEl(el, ownerId); - var [moduleName, mehtodName] = invoker.split("."); - return invokeWxsMethod(ownerEl, moduleId, moduleName, mehtodName, [newValue, oldValue, getComponentDescriptor(createComponentDescriptorVm(ownerEl)), getComponentDescriptor(createComponentDescriptorVm(el))]); - } - function invokeWxsMethod(ownerEl, moduleId, moduleName, methodName, args) { - var module = getViewModule(moduleId, ownerEl); - if (!module) { - return console.error(formatLog("wxs", "module " + moduleName + " not found")); - } - var method = module[methodName]; - if (!isFunction(method)) { - return console.error(moduleName + "." + methodName + " is not a function"); - } - return method.apply(module, args); - } - function getWxsProp(ownerEl, moduleId, dataPath) { - var module = getViewModule(moduleId, ownerEl); - if (!module) { - return console.error(formatLog("wxs", "module " + dataPath + " not found")); - } - return getValueByDataPath(module, dataPath.substr(dataPath.indexOf(".") + 1)); - } - function createWxsPropsInvoker(node, wxsInvoker, value) { - var oldValue = value; - return (newValue) => { - try { - invokeWxsProps(wxsInvoker, node.$, newValue, oldValue); - } catch (e2) { - console.error(e2); - } - oldValue = newValue; - }; - } - function wrapperWxsEvent(event, el) { - var vm = createComponentDescriptorVm(el); - Object.defineProperty(event, "instance", { - get() { - return getComponentDescriptor(vm); - } - }); - return event; - } - function initRenderjs(node, moduleIds) { - Object.keys(moduleIds).forEach((name) => { - initRenderjsModule(node, moduleIds[name]); - }); - } - function destroyRenderjs(node) { - var { - __renderjsInstances - } = node.$; - if (!__renderjsInstances) { - return; - } - Object.keys(__renderjsInstances).forEach((id2) => { - __renderjsInstances[id2].$.appContext.app.unmount(); - }); - } - function initRenderjsModule(node, moduleId) { - var options = getRenderjsModule(moduleId); - if (!options) { - return; - } - var el = node.$; - (el.__renderjsInstances || (el.__renderjsInstances = {}))[moduleId] = createRenderjsInstance(el, options); - } - function getRenderjsModule(moduleId) { - var __renderjsModules = window["__" + RENDERJS_MODULES]; - var module = __renderjsModules && __renderjsModules[moduleId]; - if (!module) { - return console.error(formatLog("renderjs", moduleId + " not found")); - } - return module; - } - function createRenderjsInstance(el, options) { - options = options.default || options; - options.render = () => { - }; - return createApp(options).mixin({ - mounted() { - this.$ownerInstance = getComponentDescriptor(createComponentDescriptorVm(el)); - } - }).mount(document.createElement("div")); - } - class UniNode { - constructor(id2, tag, parentNodeId, element) { - this.isMounted = false; - this.isUnmounted = false; - this.$hasWxsProps = false; - this.$children = []; - this.id = id2; - this.tag = tag; - this.pid = parentNodeId; - if (element) { - this.$ = element; - } - this.$wxsProps = /* @__PURE__ */ new Map(); - var parent = this.$parent = getElement(parentNodeId); - if (parent) { - parent.appendUniChild(this); - } - } - init(nodeJson) { - if (hasOwn$1(nodeJson, "t")) { - this.$.textContent = nodeJson.t; - } - } - setText(text2) { - this.$.textContent = text2; - } - insert(parentNodeId, refNodeId, nodeJson) { - if (nodeJson) { - this.init(nodeJson, false); - } - var node = this.$; - var parentNode = $(parentNodeId); - if (refNodeId === -1) { - parentNode.appendChild(node); - } else { - parentNode.insertBefore(node, $(refNodeId).$); - } - this.isMounted = true; - } - remove() { - this.removeUniParent(); - var { - $: $2 - } = this; - $2.parentNode.removeChild($2); - this.isUnmounted = true; - removeElement(this.id); - destroyRenderjs(this); - this.removeUniChildren(); - } - appendChild(node) { - return this.$.appendChild(node); - } - insertBefore(newChild, refChild) { - return this.$.insertBefore(newChild, refChild); - } - appendUniChild(node) { - this.$children.push(node); - } - removeUniChild(node) { - var index2 = this.$children.indexOf(node); - if (index2 >= 0) { - this.$children.splice(index2, 1); - } - } - removeUniParent() { - var { - $parent - } = this; - if ($parent) { - $parent.removeUniChild(this); - this.$parent = void 0; - } - } - removeUniChildren() { - this.$children.forEach((node) => node.remove()); - this.$children.length = 0; - } - setWxsProps(attrs2) { - Object.keys(attrs2).forEach((name) => { - if (name.indexOf(ATTR_CHANGE_PREFIX) === 0) { - var propName = name.replace(ATTR_CHANGE_PREFIX, ""); - var value = attrs2[propName]; - var invoker = createWxsPropsInvoker(this, attrs2[name], value); - queuePostActionJob(() => invoker(value), JOB_PRIORITY_WXS_PROPS); - this.$wxsProps.set(name, invoker); - delete attrs2[name]; - delete attrs2[propName]; - this.$hasWxsProps = true; - } - }); - } - addWxsEvents(events) { - Object.keys(events).forEach((name) => { - var [wxsEvent, flag] = events[name]; - this.addWxsEvent(name, wxsEvent, flag); - }); - } - addWxsEvent(name, wxsEvent, flag) { - } - wxsPropsInvoke(name, value) { - var isNextTick = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false; - var wxsPropsInvoker = this.$hasWxsProps && this.$wxsProps.get(ATTR_CHANGE_PREFIX + name); - if (wxsPropsInvoker) { - return queuePostActionJob(() => isNextTick ? nextTick(() => wxsPropsInvoker(value)) : wxsPropsInvoker(value), JOB_PRIORITY_WXS_PROPS), true; - } - } - } - function patchClass(el, clazz) { - var { - __wxsAddClass, - __wxsRemoveClass - } = el; - if (__wxsRemoveClass && __wxsRemoveClass.length) { - clazz = clazz.split(/\s+/).filter((v2) => __wxsRemoveClass.indexOf(v2) === -1).join(" "); - __wxsRemoveClass.length = 0; - } - if (__wxsAddClass && __wxsAddClass.length) { - clazz = clazz + " " + __wxsAddClass.join(" "); - } - el.className = clazz; - } - function normalizeStyleValue$1(val) { - return normalizeUrl(rpx2px(val, true)); - } - var urlRE = /url\(\s*'?"?([a-zA-Z0-9\.\-\_\/]+\.(jpg|gif|png))"?'?\s*\)/; - var normalizeUrl = (val) => { - if (isString(val) && val.indexOf("url(") !== -1) { - var matches2 = val.match(urlRE); - if (matches2 && matches2.length === 3) { - val = val.replace(matches2[1], getRealPath(matches2[1])); - } - } - return val; - }; - var prefixes = ["Webkit"]; - var prefixCache = {}; - function normalizeStyleName$1(style, rawName) { - var cached = prefixCache[rawName]; - if (cached) { - return cached; - } - var name = camelize(rawName); - if (name !== "filter" && name in style) { - return prefixCache[rawName] = name; - } - name = capitalize(name); - for (var i2 = 0; i2 < prefixes.length; i2++) { - var prefixed = prefixes[i2] + name; - if (prefixed in style) { - return prefixCache[rawName] = prefixed; - } - } - return rawName; - } - function patchStyle(el, value) { - var style = el.style; - if (isString(value)) { - if (value === "") { - el.removeAttribute("style"); - } else { - style.cssText = normalizeStyleValue$1(value); - } - } else { - for (var key2 in value) { - setStyle(style, key2, value[key2]); - } - } - var { - __wxsStyle - } = el; - if (__wxsStyle) { - for (var _key in __wxsStyle) { - setStyle(style, _key, __wxsStyle[_key]); - } - } - } - var importantRE = /\s*!important$/; - function setStyle(style, name, val) { - if (isArray$1(val)) { - val.forEach((v2) => setStyle(style, name, v2)); - } else { - val = normalizeStyleValue$1(val); - if (name.startsWith("--")) { - style.setProperty(name, val); - } else { - var prefixed = normalizeStyleName$1(style, name); - if (importantRE.test(val)) { - style.setProperty(hyphenate(prefixed), val.replace(importantRE, ""), "important"); - } else { - style[prefixed] = val; - } - } - } - } - var JSON_PROTOCOL_LEN = JSON_PROTOCOL.length; - function decodeAttr(el, value) { - if (!isString(value)) { - return value; - } - if (value.indexOf(JSON_PROTOCOL) === 0) { - value = JSON.parse(value.substr(JSON_PROTOCOL_LEN)); - } else if (value.indexOf(WXS_PROTOCOL) === 0) { - value = invokeWxs(el, value); - } - return value; - } - function isCssVar(name) { - return name.indexOf("--") === 0; - } - function isUniComponent(el) { - return !!el.addWxsEvent; - } - function removeEventListener(el, type) { - var listener = el.__listeners[type]; - if (listener) { - el.removeEventListener(type, listener); - } - } - function isEventListenerExists(el, type) { - if (el.__listeners[type]) { - return true; - } - } - function patchEvent(el, name, flag) { - var [type, options] = parseEventName(name); - if (flag === -1) { - removeEventListener(el, type); - } else { - if (!isEventListenerExists(el, type)) { - el.addEventListener(type, el.__listeners[type] = createInvoker(el.__id, flag, options), options); - } - } - } - function createInvoker(id2, flag, options) { - var invoker = (evt) => { - var [event] = $nne(evt); - event.type = normalizeEventType(evt.type, options); - UniViewJSBridge.publishHandler(VD_SYNC, [[ACTION_TYPE_EVENT, id2, event]]); - }; - if (!flag) { - return invoker; - } - return withModifiers(invoker, resolveModifier(flag)); - } - function resolveModifier(flag) { - var modifiers = []; - if (flag & EventModifierFlags.prevent) { - modifiers.push("prevent"); - } - if (flag & EventModifierFlags.self) { - modifiers.push("self"); - } - if (flag & EventModifierFlags.stop) { - modifiers.push("stop"); - } - return modifiers; - } - function patchWxsEvent(el, name, wxsEvent, flag) { - var [type, options] = parseEventName(name); - if (flag === -1) { - removeEventListener(el, type); - } else { - if (!isEventListenerExists(el, type)) { - el.addEventListener(type, el.__listeners[type] = createWxsEventInvoker(el, wxsEvent, flag), options); - } - } - } - function createWxsEventInvoker(el, wxsEvent, flag) { - var invoker = (evt) => { - invokeWxsEvent(isUniComponent(el) ? el.$ : el, wxsEvent, $nne(evt)[0]); - }; - if (!flag) { - return invoker; - } - return withModifiers(invoker, resolveModifier(flag)); - } - function patchVShow(el, value) { - el._vod = el.style.display === "none" ? "" : el.style.display; - el.style.display = value ? el._vod : "none"; - } - class UniElement extends UniNode { - constructor(id2, element, parentNodeId, refNodeId, nodeJson) { - var propNames = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : []; - super(id2, element.tagName, parentNodeId, element); - this.$props = reactive({}); - this.$.__id = id2; - this.$.__listeners = /* @__PURE__ */ Object.create(null); - this.$propNames = propNames; - this._update = this.update.bind(this); - this.init(nodeJson); - this.insert(parentNodeId, refNodeId); - } - init(nodeJson) { - var isCreate = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true; - if (hasOwn$1(nodeJson, "a")) { - this.setAttrs(nodeJson.a); - } - if (hasOwn$1(nodeJson, "s")) { - this.setAttr("style", nodeJson.s); - } - if (hasOwn$1(nodeJson, "e")) { - this.addEvents(nodeJson.e); - } - if (hasOwn$1(nodeJson, "w")) { - this.addWxsEvents(nodeJson.w); - } - super.init(nodeJson); - if (isCreate) { - watch(this.$props, () => { - queuePostActionJob(this._update, JOB_PRIORITY_UPDATE); - }, { - flush: "sync" - }); - this.update(true); - } - } - setAttrs(attrs2) { - this.setWxsProps(attrs2); - Object.keys(attrs2).forEach((name) => { - this.setAttr(name, attrs2[name]); - }); - } - addEvents(events) { - Object.keys(events).forEach((name) => { - this.addEvent(name, events[name]); - }); - } - addWxsEvent(name, wxsEvent, flag) { - patchWxsEvent(this.$, name, wxsEvent, flag); - } - addEvent(name, value) { - patchEvent(this.$, name, value); - } - removeEvent(name) { - patchEvent(this.$, name, -1); - } - setAttr(name, value) { - if (name === ATTR_CLASS) { - patchClass(this.$, value); - } else if (name === ATTR_STYLE) { - patchStyle(this.$, value); - } else if (name === ATTR_V_SHOW) { - patchVShow(this.$, value); - } else if (name === ATTR_V_OWNER_ID) { - this.$.__ownerId = value; - } else if (name === ATTR_V_RENDERJS) { - queuePostActionJob(() => initRenderjs(this, value), JOB_PRIORITY_RENDERJS); - } else if (name === ATTR_INNER_HTML) { - this.$.innerHTML = value; - } else if (name === ATTR_TEXT_CONTENT) { - this.setText(value); - } else { - this.setAttribute(name, value); - } - } - removeAttr(name) { - if (name === ATTR_CLASS) { - patchClass(this.$, ""); - } else if (name === ATTR_STYLE) { - patchStyle(this.$, ""); - } else { - this.removeAttribute(name); - } - } - setAttribute(name, value) { - value = decodeAttr(this.$, value); - if (this.$propNames.indexOf(name) !== -1) { - this.$props[name] = value; - } else if (isCssVar(name)) { - this.$.style.setProperty(name, value); - } else { - if (!this.wxsPropsInvoke(name, value)) { - this.$.setAttribute(name, value); - } - } - } - removeAttribute(name) { - if (this.$propNames.indexOf(name) !== -1) { - delete this.$props[name]; - } else if (isCssVar(name)) { - this.$.style.removeProperty(name); - } else { - this.$.removeAttribute(name); - } - } - update() { - } - } - class UniComment extends UniNode { - constructor(id2, parentNodeId, refNodeId) { - super(id2, "#comment", parentNodeId, document.createComment("")); - this.insert(parentNodeId, refNodeId); - } - } - var text$1 = ""; - function converPx(value) { - if (/^-?\d+[ur]px$/i.test(value)) { - return value.replace(/(^-?\d+)[ur]px$/i, (text2, num) => { - return "".concat(uni.upx2px(parseFloat(num)), "px"); - }); - } else if (/^-?[\d\.]+$/.test(value)) { - return "".concat(value, "px"); - } - return value || ""; - } - function converType(type) { - return type.replace(/[A-Z]/g, (text2) => { - return "-".concat(text2.toLowerCase()); - }).replace("webkit", "-webkit"); - } - function getStyle(action) { - var animateTypes1 = ["matrix", "matrix3d", "scale", "scale3d", "rotate3d", "skew", "translate", "translate3d"]; - var animateTypes2 = ["scaleX", "scaleY", "scaleZ", "rotate", "rotateX", "rotateY", "rotateZ", "skewX", "skewY", "translateX", "translateY", "translateZ"]; - var animateTypes3 = ["opacity", "background-color"]; - var animateTypes4 = ["width", "height", "left", "right", "top", "bottom"]; - var animates = action.animates; - var option = action.option; - var transition = option.transition; - var style = {}; - var transform = []; - animates.forEach((animate) => { - var type = animate.type; - var args = [...animate.args]; - if (animateTypes1.concat(animateTypes2).includes(type)) { - if (type.startsWith("rotate") || type.startsWith("skew")) { - args = args.map((value2) => parseFloat(value2) + "deg"); - } else if (type.startsWith("translate")) { - args = args.map(converPx); - } - if (animateTypes2.indexOf(type) >= 0) { - args.length = 1; - } - transform.push("".concat(type, "(").concat(args.join(","), ")")); - } else if (animateTypes3.concat(animateTypes4).includes(args[0])) { - type = args[0]; - var value = args[1]; - style[type] = animateTypes4.includes(type) ? converPx(value) : value; - } - }); - style.transform = style.webkitTransform = transform.join(" "); - style.transition = style.webkitTransition = Object.keys(style).map((type) => "".concat(converType(type), " ").concat(transition.duration, "ms ").concat(transition.timingFunction, " ").concat(transition.delay, "ms")).join(","); - style.transformOrigin = style.webkitTransformOrigin = option.transformOrigin; - return style; - } - function startAnimation(context) { - var animation2 = context.animation; - if (!animation2 || !animation2.actions || !animation2.actions.length) { - return; - } - var index2 = 0; - var actions = animation2.actions; - var length = animation2.actions.length; - function animate() { - var action = actions[index2]; - var transition = action.option.transition; - var style = getStyle(action); - Object.keys(style).forEach((key2) => { - context.$el.style[key2] = style[key2]; - }); - index2 += 1; - if (index2 < length) { - setTimeout(animate, transition.duration + transition.delay); - } - } - setTimeout(() => { - animate(); - }, 0); - } - var animation = { - props: ["animation"], - watch: { - animation: { - deep: true, - handler() { - startAnimation(this); - } - } - }, - mounted() { - startAnimation(this); - } - }; - var defineBuiltInComponent = (options) => { - options.__reserved = true; - var { - props: props2, - mixins - } = options; - if (!props2 || !props2.animation) { - (mixins || (options.mixins = [])).push(animation); - } - return defineSystemComponent(options); - }; - var defineSystemComponent = (options) => { - options.__reserved = true; - options.compatConfig = { - MODE: 3 - }; - return defineComponent(options); - }; - var hoverProps = { - hoverClass: { - type: String, - default: "none" - }, - hoverStopPropagation: { - type: Boolean, - default: false - }, - hoverStartTime: { - type: [Number, String], - default: 50 - }, - hoverStayTime: { - type: [Number, String], - default: 400 - } - }; - function useHover(props2) { - var hovering = ref(false); - var hoverTouch = false; - var hoverStartTimer; - var hoverStayTimer; - function hoverReset() { - requestAnimationFrame(() => { - clearTimeout(hoverStayTimer); - hoverStayTimer = setTimeout(() => { - hovering.value = false; - }, parseInt(props2.hoverStayTime)); - }); - } - function onTouchstartPassive(evt) { - if (evt._hoverPropagationStopped) { - return; - } - if (!props2.hoverClass || props2.hoverClass === "none" || props2.disabled) { - return; - } - if (evt.touches.length > 1) { - return; - } - if (props2.hoverStopPropagation) { - evt._hoverPropagationStopped = true; - } - hoverTouch = true; - hoverStartTimer = setTimeout(() => { - hovering.value = true; - if (!hoverTouch) { - hoverReset(); - } - }, parseInt(props2.hoverStartTime)); - } - function onTouchend() { - hoverTouch = false; - if (hovering.value) { - hoverReset(); - } - } - function onTouchcancel() { - hoverTouch = false; - hovering.value = false; - clearTimeout(hoverStartTimer); - } - return { - hovering, - binding: { - onTouchstartPassive, - onTouchend, - onTouchcancel - } - }; - } - function useBooleanAttr(props2, keys) { - if (isString(keys)) { - keys = [keys]; - } - return keys.reduce((res, key2) => { - if (props2[key2]) { - res[key2] = true; - } - return res; - }, /* @__PURE__ */ Object.create(null)); - } - function withWebEvent(fn) { - return fn.__wwe = true, fn; - } - function useCustomEvent(ref2, emit2) { - return (name, evt, detail) => { - if (ref2.value) { - emit2(name, normalizeCustomEvent(name, evt, ref2.value, detail || {})); - } - }; - } - function useNativeEvent(emit2) { - return (name, evt) => { - emit2(name, createNativeEvent(evt)); - }; - } - function normalizeCustomEvent(name, domEvt, el, detail) { - var target = normalizeTarget(el); - return { - type: detail.type || name, - timeStamp: domEvt.timeStamp || 0, - target, - currentTarget: target, - detail - }; - } - var uniFormKey = PolySymbol("uf"); - var Form = /* @__PURE__ */ defineBuiltInComponent({ - name: "Form", - emits: ["submit", "reset"], - setup(_props, _ref) { - var { - slots, - emit: emit2 - } = _ref; - var rootRef = ref(null); - provideForm(useCustomEvent(rootRef, emit2)); - return () => createVNode("uni-form", { - "ref": rootRef - }, [createVNode("span", null, [slots.default && slots.default()])], 512); - } - }); - function provideForm(trigger2) { - var fields2 = []; - provide(uniFormKey, { - addField(field) { - fields2.push(field); - }, - removeField(field) { - fields2.splice(fields2.indexOf(field), 1); - }, - submit(evt) { - trigger2("submit", evt, { - value: fields2.reduce((res, field) => { - if (field.submit) { - var [name, value] = field.submit(); - name && (res[name] = value); - } - return res; - }, /* @__PURE__ */ Object.create(null)) - }); - }, - reset(evt) { - fields2.forEach((field) => field.reset && field.reset()); - trigger2("reset", evt); - } - }); - return fields2; - } - var labelProps = { - for: { - type: String, - default: "" - } - }; - var uniLabelKey = PolySymbol("ul"); - function useProvideLabel() { - var handlers = []; - provide(uniLabelKey, { - addHandler(handler) { - handlers.push(handler); - }, - removeHandler(handler) { - handlers.splice(handlers.indexOf(handler), 1); - } - }); - return handlers; - } - var Label = /* @__PURE__ */ defineBuiltInComponent({ - name: "Label", - props: labelProps, - setup(props2, _ref) { - var { - slots - } = _ref; - var pageId = useCurrentPageId(); - var handlers = useProvideLabel(); - var pointer = computed$1(() => props2.for || slots.default && slots.default.length); - var _onClick = withWebEvent(($event) => { - var EventTarget = $event.target; - var stopPropagation = /^uni-(checkbox|radio|switch)-/.test(EventTarget.className); - if (!stopPropagation) { - stopPropagation = /^uni-(checkbox|radio|switch|button)$|^(svg|path)$/i.test(EventTarget.tagName); - } - if (stopPropagation) { - return; - } - if (props2.for) { - UniViewJSBridge.emit("uni-label-click-" + pageId + "-" + props2.for, $event, true); - } else { - handlers.length && handlers[0]($event, true); - } - }); - return () => createVNode("uni-label", { - "class": { - "uni-label-pointer": pointer - }, - "onClick": _onClick - }, [slots.default && slots.default()], 10, ["onClick"]); - } - }); - function useListeners$1(props2, listeners2) { - _addListeners(props2.id, listeners2); - watch(() => props2.id, (newId, oldId) => { - _removeListeners(oldId, listeners2, true); - _addListeners(newId, listeners2, true); - }); - onUnmounted(() => { - _removeListeners(props2.id, listeners2); - }); - } - function _addListeners(id2, listeners2, watch2) { - var pageId = useCurrentPageId(); - if (watch2 && !id2) { - return; - } - if (!isPlainObject(listeners2)) { - return; - } - Object.keys(listeners2).forEach((name) => { - if (watch2) { - if (name.indexOf("@") !== 0 && name.indexOf("uni-") !== 0) { - UniViewJSBridge.on("uni-".concat(name, "-").concat(pageId, "-").concat(id2), listeners2[name]); - } - } else { - if (name.indexOf("uni-") === 0) { - UniViewJSBridge.on(name, listeners2[name]); - } else if (id2) { - UniViewJSBridge.on("uni-".concat(name, "-").concat(pageId, "-").concat(id2), listeners2[name]); - } - } - }); - } - function _removeListeners(id2, listeners2, watch2) { - var pageId = useCurrentPageId(); - if (watch2 && !id2) { - return; - } - if (!isPlainObject(listeners2)) { - return; - } - Object.keys(listeners2).forEach((name) => { - if (watch2) { - if (name.indexOf("@") !== 0 && name.indexOf("uni-") !== 0) { - UniViewJSBridge.off("uni-".concat(name, "-").concat(pageId, "-").concat(id2), listeners2[name]); - } - } else { - if (name.indexOf("uni-") === 0) { - UniViewJSBridge.off(name, listeners2[name]); - } else if (id2) { - UniViewJSBridge.off("uni-".concat(name, "-").concat(pageId, "-").concat(id2), listeners2[name]); - } - } - }); - } - var buttonProps = { - id: { - type: String, - default: "" - }, - hoverClass: { - type: String, - default: "button-hover" - }, - hoverStartTime: { - type: [Number, String], - default: 20 - }, - hoverStayTime: { - type: [Number, String], - default: 70 - }, - hoverStopPropagation: { - type: Boolean, - default: false - }, - disabled: { - type: [Boolean, String], - default: false - }, - formType: { - type: String, - default: "" - }, - openType: { - type: String, - default: "" - }, - loading: { - type: [Boolean, String], - default: false - }, - plain: { - type: [Boolean, String], - default: false - } - }; - var Button = /* @__PURE__ */ defineBuiltInComponent({ - name: "Button", - props: buttonProps, - setup(props2, _ref) { - var { - slots - } = _ref; - var rootRef = ref(null); - { - initI18nButtonMsgsOnce(); - } - var uniForm = inject(uniFormKey, false); - var { - hovering, - binding - } = useHover(props2); - var { - t: t2 - } = useI18n(); - var onClick = withWebEvent((e2, isLabelClick) => { - if (props2.disabled) { - return e2.stopImmediatePropagation(); - } - if (isLabelClick) { - rootRef.value.click(); - } - var formType = props2.formType; - if (formType) { - if (!uniForm) { - return; - } - if (formType === "submit") { - uniForm.submit(e2); - } else if (formType === "reset") { - uniForm.reset(e2); - } - return; - } - if (props2.openType === "feedback") { - openFeedback(t2("uni.button.feedback.title"), t2("uni.button.feedback.send")); - } - }); - var uniLabel = inject(uniLabelKey, false); - if (uniLabel) { - uniLabel.addHandler(onClick); - onBeforeUnmount(() => { - uniLabel.removeHandler(onClick); - }); - } - useListeners$1(props2, { - "label-click": onClick - }); - return () => { - var hoverClass = props2.hoverClass; - var booleanAttrs = useBooleanAttr(props2, "disabled"); - var loadingAttrs = useBooleanAttr(props2, "loading"); - var plainAttrs = useBooleanAttr(props2, "plain"); - var hasHoverClass = hoverClass && hoverClass !== "none"; - return createVNode("uni-button", mergeProps({ - "ref": rootRef, - "onClick": onClick, - "class": hasHoverClass && hovering.value ? hoverClass : "" - }, hasHoverClass && binding, booleanAttrs, loadingAttrs, plainAttrs), [slots.default && slots.default()], 16, ["onClick"]); - }; - } - }); - function openFeedback(titleText, sendText) { - var feedback = plus.webview.create("https://service.dcloud.net.cn/uniapp/feedback.html", "feedback", { - titleNView: { - titleText, - autoBackButton: true, - backgroundColor: "#F7F7F7", - titleColor: "#007aff", - buttons: [{ - text: sendText, - color: "#007aff", - fontSize: "16px", - fontWeight: "bold", - onclick: function() { - feedback.evalJS('typeof mui !== "undefined" && mui.trigger(document.getElementById("submit"),"tap")'); - } - }] - } - }); - feedback.show("slide-in-right"); - } - var ResizeSensor = /* @__PURE__ */ defineBuiltInComponent({ - name: "ResizeSensor", - props: { - initial: { - type: Boolean, - default: false - } - }, - emits: ["resize"], - setup(props2, _ref) { - var { - emit: emit2 - } = _ref; - var rootRef = ref(null); - var reset2 = useResizeSensorReset(rootRef); - var update = useResizeSensorUpdate(rootRef, emit2, reset2); - useResizeSensorLifecycle(rootRef, props2, update, reset2); - return () => createVNode("uni-resize-sensor", { - "ref": rootRef, - "onAnimationstartOnce": update - }, [createVNode("div", { - "onScroll": update - }, [createVNode("div", null, null)], 40, ["onScroll"]), createVNode("div", { - "onScroll": update - }, [createVNode("div", null, null)], 40, ["onScroll"])], 40, ["onAnimationstartOnce"]); - } - }); - function useResizeSensorUpdate(rootRef, emit2, reset2) { - var size2 = reactive({ - width: -1, - height: -1 - }); - watch(() => extend({}, size2), (value) => emit2("resize", value)); - return () => { - var rootEl = rootRef.value; - size2.width = rootEl.offsetWidth; - size2.height = rootEl.offsetHeight; - reset2(); - }; - } - function useResizeSensorReset(rootRef) { - return () => { - var { - firstElementChild, - lastElementChild - } = rootRef.value; - firstElementChild.scrollLeft = 1e5; - firstElementChild.scrollTop = 1e5; - lastElementChild.scrollLeft = 1e5; - lastElementChild.scrollTop = 1e5; - }; - } - function useResizeSensorLifecycle(rootRef, props2, update, reset2) { - onActivated(reset2); - onMounted(() => { - if (props2.initial) { - nextTick(update); - } - var rootEl = rootRef.value; - if (rootEl.offsetParent !== rootEl.parentElement) { - rootEl.parentElement.style.position = "relative"; - } - if (!("AnimationEvent" in window)) { - reset2(); - } - }); - } - var pixelRatio = /* @__PURE__ */ function() { - var canvas2 = document.createElement("canvas"); - canvas2.height = canvas2.width = 0; - var context = canvas2.getContext("2d"); - var backingStore = context.backingStorePixelRatio || context.webkitBackingStorePixelRatio || context.mozBackingStorePixelRatio || context.msBackingStorePixelRatio || context.oBackingStorePixelRatio || context.backingStorePixelRatio || 1; - return (window.devicePixelRatio || 1) / backingStore; - }(); - function wrapper(canvas2) { - var hidpi = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true; - canvas2.width = canvas2.offsetWidth * (hidpi ? pixelRatio : 1); - canvas2.height = canvas2.offsetHeight * (hidpi ? pixelRatio : 1); - canvas2.getContext("2d").__hidpi__ = hidpi; - } - var isHidpi = false; - function initHidpi() { - if (isHidpi) { - return; - } - isHidpi = true; - var forEach = function(obj, func) { - for (var key2 in obj) { - if (hasOwn$1(obj, key2)) { - func(obj[key2], key2); - } - } - }; - var ratioArgs = { - fillRect: "all", - clearRect: "all", - strokeRect: "all", - moveTo: "all", - lineTo: "all", - arc: [0, 1, 2], - arcTo: "all", - bezierCurveTo: "all", - isPointinPath: "all", - isPointinStroke: "all", - quadraticCurveTo: "all", - rect: "all", - translate: "all", - createRadialGradient: "all", - createLinearGradient: "all", - setTransform: [4, 5] - }; - var proto2 = CanvasRenderingContext2D.prototype; - proto2.drawImageByCanvas = function(_super) { - return function(canvas2, srcx, srcy, srcw, srch, desx, desy, desw, desh, isScale) { - if (!this.__hidpi__) { - return _super.apply(this, arguments); - } - srcx *= pixelRatio; - srcy *= pixelRatio; - srcw *= pixelRatio; - srch *= pixelRatio; - desx *= pixelRatio; - desy *= pixelRatio; - desw = isScale ? desw * pixelRatio : desw; - desh = isScale ? desh * pixelRatio : desh; - _super.call(this, canvas2, srcx, srcy, srcw, srch, desx, desy, desw, desh); - }; - }(proto2.drawImage); - if (pixelRatio !== 1) { - forEach(ratioArgs, function(value, key2) { - proto2[key2] = function(_super) { - return function() { - if (!this.__hidpi__) { - return _super.apply(this, arguments); - } - var args = Array.prototype.slice.call(arguments); - if (value === "all") { - args = args.map(function(a2) { - return a2 * pixelRatio; - }); - } else if (Array.isArray(value)) { - for (var i2 = 0; i2 < value.length; i2++) { - args[value[i2]] *= pixelRatio; - } - } - return _super.apply(this, args); - }; - }(proto2[key2]); - }); - proto2.stroke = function(_super) { - return function() { - if (!this.__hidpi__) { - return _super.apply(this, arguments); - } - this.lineWidth *= pixelRatio; - _super.apply(this, arguments); - this.lineWidth /= pixelRatio; - }; - }(proto2.stroke); - proto2.fillText = function(_super) { - return function() { - if (!this.__hidpi__) { - return _super.apply(this, arguments); - } - var args = Array.prototype.slice.call(arguments); - args[1] *= pixelRatio; - args[2] *= pixelRatio; - if (args[3] && typeof args[3] === "number") { - args[3] *= pixelRatio; - } - var font2 = this.font; - this.font = font2.replace(/(\d+\.?\d*)(px|em|rem|pt)/g, function(w, m, u) { - return m * pixelRatio + u; - }); - _super.apply(this, args); - this.font = font2; - }; - }(proto2.fillText); - proto2.strokeText = function(_super) { - return function() { - if (!this.__hidpi__) { - return _super.apply(this, arguments); - } - var args = Array.prototype.slice.call(arguments); - args[1] *= pixelRatio; - args[2] *= pixelRatio; - if (args[3] && typeof args[3] === "number") { - args[3] *= pixelRatio; - } - var font2 = this.font; - this.font = font2.replace(/(\d+\.?\d*)(px|em|rem|pt)/g, function(w, m, u) { - return m * pixelRatio + u; - }); - _super.apply(this, args); - this.font = font2; - }; - }(proto2.strokeText); - proto2.drawImage = function(_super) { - return function() { - if (!this.__hidpi__) { - return _super.apply(this, arguments); - } - this.scale(pixelRatio, pixelRatio); - _super.apply(this, arguments); - this.scale(1 / pixelRatio, 1 / pixelRatio); - }; - }(proto2.drawImage); - } - } - var initHidpiOnce = /* @__PURE__ */ once(() => { - return initHidpi(); - }); - function $getRealPath(src) { - return src ? getRealPath(src) : src; - } - function resolveColor(color) { - color = color.slice(0); - color[3] = color[3] / 255; - return "rgba(" + color.join(",") + ")"; - } - function processTouches(target, touches) { - var eventTarget = target; - return Array.from(touches).map((touch) => { - var boundingClientRect = eventTarget.getBoundingClientRect(); - return { - identifier: touch.identifier, - x: touch.clientX - boundingClientRect.left, - y: touch.clientY - boundingClientRect.top - }; - }); - } - var tempCanvas; - function getTempCanvas() { - var width = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0; - var height = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0; - if (!tempCanvas) { - tempCanvas = document.createElement("canvas"); - } - tempCanvas.width = width; - tempCanvas.height = height; - return tempCanvas; - } - var props$m = { - canvasId: { - type: String, - default: "" - }, - disableScroll: { - type: [Boolean, String], - default: false - }, - hidpi: { - type: Boolean, - default: true - } - }; - var Canvas = /* @__PURE__ */ defineBuiltInComponent({ - inheritAttrs: false, - name: "Canvas", - compatConfig: { - MODE: 3 - }, - props: props$m, - computed: { - id() { - return this.canvasId; - } - }, - setup(props2, _ref) { - var { - emit: emit2, - slots - } = _ref; - initHidpiOnce(); - var canvas2 = ref(null); - var sensor = ref(null); - var actionsWaiting = ref(false); - var trigger2 = useNativeEvent(emit2); - var { - $attrs, - $excludeAttrs, - $listeners - } = useAttrs({ - excludeListeners: true - }); - var { - _listeners - } = useListeners(props2, $listeners, trigger2); - var { - _handleSubscribe, - _resize - } = useMethods(props2, canvas2, actionsWaiting); - useSubscribe(_handleSubscribe, useContextInfo(props2.canvasId), true); - onMounted(() => { - _resize(); - }); - return () => { - var { - canvasId, - disableScroll - } = props2; - return createVNode("uni-canvas", mergeProps({ - "canvas-id": canvasId, - "disable-scroll": disableScroll - }, $attrs.value, $excludeAttrs.value, _listeners.value), [createVNode("canvas", { - "ref": canvas2, - "class": "uni-canvas-canvas", - "width": "300", - "height": "150" - }, null, 512), createVNode("div", { - "style": "position: absolute;top: 0;left: 0;width: 100%;height: 100%;overflow: hidden;" - }, [slots.default && slots.default()]), createVNode(ResizeSensor, { - "ref": sensor, - "onResize": _resize - }, null, 8, ["onResize"])], 16, ["canvas-id", "disable-scroll"]); - }; - } - }); - function useListeners(props2, Listeners, trigger2) { - var _listeners = computed$1(() => { - var events = ["onTouchstart", "onTouchmove", "onTouchend"]; - var _$listeners = Listeners.value; - var $listeners = extend({}, (() => { - var obj = {}; - for (var key2 in _$listeners) { - if (Object.prototype.hasOwnProperty.call(_$listeners, key2)) { - var event = _$listeners[key2]; - obj[key2] = event; - } - } - return obj; - })()); - events.forEach((event) => { - var existing = $listeners[event]; - var eventHandler = []; - if (existing) { - eventHandler.push(withWebEvent(($event) => { - trigger2(event.replace("on", "").toLocaleLowerCase(), extend({}, (() => { - var obj = {}; - for (var key2 in $event) { - obj[key2] = $event[key2]; - } - return obj; - })(), { - touches: processTouches($event.currentTarget, $event.touches), - changedTouches: processTouches($event.currentTarget, $event.changedTouches) - })); - })); - } - if (props2.disableScroll && event === "onTouchmove") { - eventHandler.push(onEventPrevent); - } - $listeners[event] = eventHandler; - }); - return $listeners; - }); - return { - _listeners - }; - } - function useMethods(props2, canvasRef, actionsWaiting) { - var _actionsDefer = []; - var _images = {}; - var _pixelRatio = computed$1(() => props2.hidpi ? pixelRatio : 1); - function _resize(size2) { - var canvas2 = canvasRef.value; - var hasChanged2 = !size2 || canvas2.width !== Math.floor(size2.width * _pixelRatio.value) || canvas2.height !== Math.floor(size2.height * _pixelRatio.value); - if (!hasChanged2) - return; - if (canvas2.width > 0 && canvas2.height > 0) { - var context = canvas2.getContext("2d"); - var imageData = context.getImageData(0, 0, canvas2.width, canvas2.height); - wrapper(canvas2, props2.hidpi); - context.putImageData(imageData, 0, 0); - } else { - wrapper(canvas2, props2.hidpi); - } - } - function actionsChanged(_ref2, resolve) { - var { - actions, - reserve - } = _ref2; - if (!actions) { - return; - } - if (actionsWaiting.value) { - _actionsDefer.push([actions, reserve]); - return; - } - var canvas2 = canvasRef.value; - var c2d = canvas2.getContext("2d"); - if (!reserve) { - c2d.fillStyle = "#000000"; - c2d.strokeStyle = "#000000"; - c2d.shadowColor = "#000000"; - c2d.shadowBlur = 0; - c2d.shadowOffsetX = 0; - c2d.shadowOffsetY = 0; - c2d.setTransform(1, 0, 0, 1, 0, 0); - c2d.clearRect(0, 0, canvas2.width, canvas2.height); - } - preloadImage(actions); - var _loop = function(index3) { - var action = actions[index3]; - var method = action.method; - var data = action.data; - var actionType = data[0]; - if (/^set/.test(method) && method !== "setTransform") { - var method1 = method[3].toLowerCase() + method.slice(4); - var color; - if (method1 === "fillStyle" || method1 === "strokeStyle") { - if (actionType === "normal") { - color = resolveColor(data[1]); - } else if (actionType === "linear") { - var LinearGradient = c2d.createLinearGradient(...data[1]); - data[2].forEach(function(data2) { - var offset = data2[0]; - var color2 = resolveColor(data2[1]); - LinearGradient.addColorStop(offset, color2); - }); - color = LinearGradient; - } else if (actionType === "radial") { - var _data = data[1]; - var x = _data[0]; - var y = _data[1]; - var r = _data[2]; - var _LinearGradient = c2d.createRadialGradient(x, y, 0, x, y, r); - data[2].forEach(function(data2) { - var offset = data2[0]; - var color2 = resolveColor(data2[1]); - _LinearGradient.addColorStop(offset, color2); - }); - color = _LinearGradient; - } else if (actionType === "pattern") { - var loaded = checkImageLoaded(data[1], actions.slice(index3 + 1), resolve, function(image2) { - if (image2) { - c2d[method1] = c2d.createPattern(image2, data[2]); - } - }); - if (!loaded) { - return "break"; - } - return "continue"; - } - c2d[method1] = color; - } else if (method1 === "globalAlpha") { - c2d[method1] = Number(actionType) / 255; - } else if (method1 === "shadow") { - var shadowArray = ["shadowOffsetX", "shadowOffsetY", "shadowBlur", "shadowColor"]; - data.forEach(function(color_, method_) { - c2d[shadowArray[method_]] = shadowArray[method_] === "shadowColor" ? resolveColor(color_) : color_; - }); - } else if (method1 === "fontSize") { - var font2 = c2d.__font__ || c2d.font; - c2d.__font__ = c2d.font = font2.replace(/\d+\.?\d*px/, actionType + "px"); - } else if (method1 === "lineDash") { - c2d.setLineDash(actionType); - c2d.lineDashOffset = data[1] || 0; - } else if (method1 === "textBaseline") { - if (actionType === "normal") { - data[0] = "alphabetic"; - } - c2d[method1] = actionType; - } else if (method1 === "font") { - c2d.__font__ = c2d.font = actionType; - } else { - c2d[method1] = actionType; - } - } else if (method === "fillPath" || method === "strokePath") { - method = method.replace(/Path/, ""); - c2d.beginPath(); - data.forEach(function(data_) { - c2d[data_.method].apply(c2d, data_.data); - }); - c2d[method](); - } else if (method === "fillText") { - c2d.fillText.apply(c2d, data); - } else if (method === "drawImage") { - var drawImage = function() { - var dataArray = [...data]; - var url = dataArray[0]; - var otherData = dataArray.slice(1); - _images = _images || {}; - if (checkImageLoaded(url, actions.slice(index3 + 1), resolve, function(image2) { - if (image2) { - c2d.drawImage.apply(c2d, [image2].concat([...otherData.slice(4, 8)], [...otherData.slice(0, 4)])); - } - })) - return "break"; - }(); - if (drawImage === "break") { - return "break"; - } - } else { - if (method === "clip") { - data.forEach(function(data_) { - c2d[data_.method].apply(c2d, data_.data); - }); - c2d.clip(); - } else { - c2d[method].apply(c2d, data); - } - } - }; - for (var index2 = 0; index2 < actions.length; index2++) { - var _ret = _loop(index2); - if (_ret === "break") - break; - if (_ret === "continue") - continue; - } - if (!actionsWaiting.value) { - resolve({ - errMsg: "drawCanvas:ok" - }); - } - } - function preloadImage(actions) { - actions.forEach(function(action) { - var method = action.method; - var data = action.data; - var src = ""; - if (method === "drawImage") { - src = data[0]; - src = $getRealPath(src); - data[0] = src; - } else if (method === "setFillStyle" && data[0] === "pattern") { - src = data[1]; - src = $getRealPath(src); - data[1] = src; - } - if (src && !_images[src]) { - loadImage(); - } - function loadImage() { - var image2 = _images[src] = new Image(); - image2.onload = function() { - image2.ready = true; - }; - if (navigator.vendor === "Google Inc.") { - if (src.indexOf("file://") === 0) { - image2.crossOrigin = "anonymous"; - } - image2.src = src; - return; - } - getSameOriginUrl(src).then((src2) => { - image2.src = src2; - }).catch(() => { - image2.src = src; - }); - } - }); - } - function checkImageLoaded(src, actions, resolve, fn) { - var image2 = _images[src]; - if (image2.ready) { - fn(image2); - return true; - } else { - _actionsDefer.unshift([actions, true]); - actionsWaiting.value = true; - image2.onload = function() { - image2.ready = true; - fn(image2); - actionsWaiting.value = false; - var actions2 = _actionsDefer.slice(0); - _actionsDefer = []; - for (var action = actions2.shift(); action; ) { - actionsChanged({ - actions: action[0], - reserve: action[1] - }, resolve); - action = actions2.shift(); - } - }; - return false; - } - } - function getImageData(_ref3, resolve) { - var { - x = 0, - y = 0, - width, - height, - destWidth, - destHeight, - hidpi = true, - dataType, - quality = 1, - type = "png" - } = _ref3; - var canvas2 = canvasRef.value; - var data; - var maxWidth2 = canvas2.offsetWidth - x; - width = width ? Math.min(width, maxWidth2) : maxWidth2; - var maxHeight = canvas2.offsetHeight - y; - height = height ? Math.min(height, maxHeight) : maxHeight; - if (!hidpi) { - if (!destWidth && !destHeight) { - destWidth = Math.round(width * _pixelRatio.value); - destHeight = Math.round(height * _pixelRatio.value); - } else if (!destWidth) { - destWidth = Math.round(width / height * destHeight); - } else if (!destHeight) { - destHeight = Math.round(height / width * destWidth); - } - } else { - destWidth = width; - destHeight = height; - } - var newCanvas = getTempCanvas(destWidth, destHeight); - var context = newCanvas.getContext("2d"); - if (type === "jpeg" || type === "jpg") { - type = "jpeg"; - context.fillStyle = "#fff"; - context.fillRect(0, 0, destWidth, destHeight); - } - context.__hidpi__ = true; - context.drawImageByCanvas(canvas2, x, y, width, height, 0, 0, destWidth, destHeight, false); - var result; - try { - var compressed; - if (dataType === "base64") { - data = newCanvas.toDataURL("image/".concat(type), quality); - } else { - var imgData = context.getImageData(0, 0, destWidth, destHeight); - if (true) { - data = pako_1.deflateRaw(imgData.data, { - to: "string" - }); - compressed = true; - } - } - result = { - data, - compressed, - width: destWidth, - height: destHeight - }; - } catch (error) { - result = { - errMsg: "canvasGetImageData:fail ".concat(error) - }; - } - newCanvas.height = newCanvas.width = 0; - context.__hidpi__ = false; - if (!resolve) { - return result; - } else { - resolve(result); - } - } - function putImageData(_ref4, resolve) { - var { - data, - x, - y, - width, - height, - compressed - } = _ref4; - try { - if (compressed) { - data = pako_1.inflateRaw(data); - } - if (!height) { - height = Math.round(data.length / 4 / width); - } - var canvas2 = getTempCanvas(width, height); - var context = canvas2.getContext("2d"); - context.putImageData(new ImageData(new Uint8ClampedArray(data), width, height), 0, 0); - canvasRef.value.getContext("2d").drawImage(canvas2, x, y, width, height); - canvas2.height = canvas2.width = 0; - } catch (error) { - resolve({ - errMsg: "canvasPutImageData:fail" - }); - return; - } - resolve({ - errMsg: "canvasPutImageData:ok" - }); - } - function toTempFilePath(_ref5, resolve) { - var { - x = 0, - y = 0, - width, - height, - destWidth, - destHeight, - fileType, - quality, - dirname - } = _ref5; - var res = getImageData({ - x, - y, - width, - height, - destWidth, - destHeight, - hidpi: false, - dataType: "base64", - type: fileType, - quality - }); - if (!res.data || !res.data.length) { - resolve({ - errMsg: res.errMsg.replace("canvasPutImageData", "toTempFilePath") - }); - return; - } - saveImage(res.data, dirname, (error, tempFilePath) => { - var errMsg = "toTempFilePath:".concat(error ? "fail" : "ok"); - if (error) { - errMsg += " ".concat(error.message); - } - resolve({ - errMsg, - tempFilePath - }); - }); - } - var methods2 = { - actionsChanged, - getImageData, - putImageData, - toTempFilePath - }; - function _handleSubscribe(type, data, resolve) { - var method = methods2[type]; - if (type.indexOf("_") !== 0 && typeof method === "function") { - method(data, resolve); - } - } - return extend(methods2, { - _resize, - _handleSubscribe - }); - } - var uniCheckGroupKey = PolySymbol("ucg"); - var props$l = { - name: { - type: String, - default: "" - } - }; - var CheckboxGroup = /* @__PURE__ */ defineBuiltInComponent({ - name: "CheckboxGroup", - props: props$l, - emits: ["change"], - setup(props2, _ref) { - var { - emit: emit2, - slots - } = _ref; - var rootRef = ref(null); - var trigger2 = useCustomEvent(rootRef, emit2); - useProvideCheckGroup(props2, trigger2); - return () => { - return createVNode("uni-checkbox-group", { - "ref": rootRef - }, [slots.default && slots.default()], 512); - }; - } - }); - function useProvideCheckGroup(props2, trigger2) { - var fields2 = []; - var getFieldsValue = () => fields2.reduce((res, field) => { - if (field.value.checkboxChecked) { - res.push(field.value.value); - } - return res; - }, new Array()); - provide(uniCheckGroupKey, { - addField(field) { - fields2.push(field); - }, - removeField(field) { - fields2.splice(fields2.indexOf(field), 1); - }, - checkboxChange($event) { - trigger2("change", $event, { - value: getFieldsValue() - }); - } - }); - var uniForm = inject(uniFormKey, false); - if (uniForm) { - uniForm.addField({ - submit: () => { - var data = ["", null]; - if (props2.name !== "") { - data[0] = props2.name; - data[1] = getFieldsValue(); - } - return data; - } - }); - } - return getFieldsValue; - } - var props$k = { - checked: { - type: [Boolean, String], - default: false - }, - id: { - type: String, - default: "" - }, - disabled: { - type: [Boolean, String], - default: false - }, - color: { - type: String, - default: "#007aff" - }, - value: { - type: String, - default: "" - } - }; - var Checkbox = /* @__PURE__ */ defineBuiltInComponent({ - name: "Checkbox", - props: props$k, - setup(props2, _ref) { - var { - slots - } = _ref; - var checkboxChecked = ref(props2.checked); - var checkboxValue = ref(props2.value); - watch([() => props2.checked, () => props2.value], (_ref2) => { - var [newChecked, newModelValue] = _ref2; - checkboxChecked.value = newChecked; - checkboxValue.value = newModelValue; - }); - var reset2 = () => { - checkboxChecked.value = false; - }; - var { - uniCheckGroup, - uniLabel - } = useCheckboxInject(checkboxChecked, checkboxValue, reset2); - var _onClick = ($event) => { - if (props2.disabled) { - return; - } - checkboxChecked.value = !checkboxChecked.value; - uniCheckGroup && uniCheckGroup.checkboxChange($event); - }; - if (!!uniLabel) { - uniLabel.addHandler(_onClick); - onBeforeUnmount(() => { - uniLabel.removeHandler(_onClick); - }); - } - useListeners$1(props2, { - "label-click": _onClick - }); - return () => { - var booleanAttrs = useBooleanAttr(props2, "disabled"); - return createVNode("uni-checkbox", mergeProps(booleanAttrs, { - "onClick": _onClick - }), [createVNode("div", { - "class": "uni-checkbox-wrapper" - }, [createVNode("div", { - "class": ["uni-checkbox-input", { - "uni-checkbox-input-disabled": props2.disabled - }] - }, [checkboxChecked.value ? createSvgIconVNode(ICON_PATH_SUCCESS_NO_CIRCLE, props2.color, 22) : ""], 2), slots.default && slots.default()])], 16, ["onClick"]); - }; - } - }); - function useCheckboxInject(checkboxChecked, checkboxValue, reset2) { - var field = computed$1(() => ({ - checkboxChecked: Boolean(checkboxChecked.value), - value: checkboxValue.value - })); - var formField = { - reset: reset2 - }; - var uniCheckGroup = inject(uniCheckGroupKey, false); - if (!!uniCheckGroup) { - uniCheckGroup.addField(field); - } - var uniForm = inject(uniFormKey, false); - if (!!uniForm) { - uniForm.addField(formField); - } - var uniLabel = inject(uniLabelKey, false); - onBeforeUnmount(() => { - uniCheckGroup && uniCheckGroup.removeField(field); - uniForm && uniForm.removeField(formField); - }); - return { - uniCheckGroup, - uniForm, - uniLabel - }; - } - var resetTimer; - var isAndroid; - var osVersion; - var keyboardHeight; - var keyboardChangeCallback; - var webviewStyle; - { - plusReady(() => { - isAndroid = plus.os.name === "Android"; - osVersion = plus.os.version || ""; - }); - document.addEventListener("keyboardchange", function(event) { - keyboardHeight = event.height; - keyboardChangeCallback && keyboardChangeCallback(); - }, false); - } - function iosHideKeyboard() { - } - function setSoftinputTemporary(props2, el, reset2) { - plusReady(() => { - var MODE_ADJUSTRESIZE = "adjustResize"; - var MODE_ADJUSTPAN = "adjustPan"; - var MODE_NOTHING = "nothing"; - var currentWebview = plus.webview.currentWebview(); - var style = webviewStyle || currentWebview.getStyle() || {}; - var options = { - mode: reset2 || style.softinputMode === MODE_ADJUSTRESIZE ? MODE_ADJUSTRESIZE : props2.adjustPosition ? MODE_ADJUSTPAN : MODE_NOTHING, - position: { - top: 0, - height: 0 - } - }; - if (options.mode === MODE_ADJUSTPAN) { - var rect = el.getBoundingClientRect(); - options.position.top = rect.top; - options.position.height = rect.height + (Number(props2.cursorSpacing) || 0); - } - currentWebview.setSoftinputTemporary(options); - }); - } - function setSoftinputNavBar(props2, state) { - if (props2.showConfirmBar === "auto") { - delete state.softinputNavBar; - return; - } - plusReady(() => { - var currentWebview = plus.webview.currentWebview(); - var { - softinputNavBar - } = currentWebview.getStyle() || {}; - var showConfirmBar = softinputNavBar !== "none"; - if (showConfirmBar !== props2.showConfirmBar) { - state.softinputNavBar = softinputNavBar || "auto"; - currentWebview.setStyle({ - softinputNavBar: props2.showConfirmBar ? "auto" : "none" - }); - } else { - delete state.softinputNavBar; - } - }); - } - function resetSoftinputNavBar(state) { - var softinputNavBar = state.softinputNavBar; - if (softinputNavBar) { - plusReady(() => { - var currentWebview = plus.webview.currentWebview(); - currentWebview.setStyle({ - softinputNavBar - }); - }); - } - } - var props$j = { - cursorSpacing: { - type: [Number, String], - default: 0 - }, - showConfirmBar: { - type: [Boolean, String], - default: "auto" - }, - adjustPosition: { - type: [Boolean, String], - default: true - }, - autoBlur: { - type: [Boolean, String], - default: false - } - }; - var emit$1 = ["keyboardheightchange"]; - function useKeyboard(props2, elRef, trigger2) { - var state = {}; - function initKeyboard(el) { - var focus; - var keyboardChange = () => { - trigger2("keyboardheightchange", {}, { - height: keyboardHeight, - duration: 0.25 - }); - if (focus && keyboardHeight === 0) { - setSoftinputTemporary(props2, el); - } - if (props2.autoBlur && focus && keyboardHeight === 0 && (isAndroid || parseInt(osVersion) >= 13)) { - document.activeElement.blur(); - } - }; - el.addEventListener("focus", () => { - focus = true; - clearTimeout(resetTimer); - document.addEventListener("click", iosHideKeyboard, false); - { - keyboardChangeCallback = keyboardChange; - if (keyboardHeight) { - trigger2("keyboardheightchange", {}, { - height: keyboardHeight, - duration: 0 - }); - } - setSoftinputNavBar(props2, state); - setSoftinputTemporary(props2, el); - } - }); - { - if (isAndroid) { - el.addEventListener("click", () => { - if (!props2.disabled && !props2.readOnly && focus && keyboardHeight === 0) { - setSoftinputTemporary(props2, el); - } - }); - } - if (!isAndroid) { - if (parseInt(osVersion) < 12) { - el.addEventListener("touchstart", () => { - if (!props2.disabled && !props2.readOnly && !focus) { - setSoftinputTemporary(props2, el); - } - }); - } - if (parseFloat(osVersion) >= 14.6 && !webviewStyle) { - plusReady(() => { - var currentWebview = plus.webview.currentWebview(); - webviewStyle = currentWebview.getStyle() || {}; - }); - } - } - } - var onKeyboardHide = () => { - document.removeEventListener("click", iosHideKeyboard, false); - { - keyboardChangeCallback = null; - if (keyboardHeight) { - trigger2("keyboardheightchange", {}, { - height: 0, - duration: 0 - }); - } - resetSoftinputNavBar(state); - if (isAndroid) { - resetTimer = setTimeout(() => { - setSoftinputTemporary(props2, el, true); - }, 300); - } - } - if (String(navigator.vendor).indexOf("Apple") === 0) { - document.documentElement.scrollTo(document.documentElement.scrollLeft, document.documentElement.scrollTop); - } - }; - el.addEventListener("blur", () => { - el.blur(); - focus = false; - onKeyboardHide(); - }); - } - watch(() => elRef.value, (el) => initKeyboard(el)); - } - var startTag = /^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/; - var endTag = /^<\/([-A-Za-z0-9_]+)[^>]*>/; - var attr = /([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g; - var empty = /* @__PURE__ */ makeMap("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"); - var block = /* @__PURE__ */ makeMap("a,address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"); - var inline = /* @__PURE__ */ makeMap("abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"); - var closeSelf = /* @__PURE__ */ makeMap("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"); - var fillAttrs = /* @__PURE__ */ makeMap("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"); - var special = /* @__PURE__ */ makeMap("script,style"); - function HTMLParser(html, handler) { - var index2; - var chars; - var match; - var stack = []; - var last = html; - stack.last = function() { - return this[this.length - 1]; - }; - while (html) { - chars = true; - if (!stack.last() || !special[stack.last()]) { - if (html.indexOf(""); - if (index2 >= 0) { - if (handler.comment) { - handler.comment(html.substring(4, index2)); - } - html = html.substring(index2 + 3); - chars = false; - } - } else if (html.indexOf("]*>"), function(all, text3) { - text3 = text3.replace(/|/g, "$1$2"); - if (handler.chars) { - handler.chars(text3); - } - return ""; - }); - parseEndTag("", stack.last()); - } - if (html == last) { - throw "Parse Error: " + html; - } - last = html; - } - parseEndTag(); - function parseStartTag(tag, tagName, rest, unary) { - tagName = tagName.toLowerCase(); - if (block[tagName]) { - while (stack.last() && inline[stack.last()]) { - parseEndTag("", stack.last()); - } - } - if (closeSelf[tagName] && stack.last() == tagName) { - parseEndTag("", tagName); - } - unary = empty[tagName] || !!unary; - if (!unary) { - stack.push(tagName); - } - if (handler.start) { - var attrs2 = []; - rest.replace(attr, function(match2, name) { - var value = arguments[2] ? arguments[2] : arguments[3] ? arguments[3] : arguments[4] ? arguments[4] : fillAttrs[name] ? name : ""; - attrs2.push({ - name, - value, - escaped: value.replace(/(^|[^\\])"/g, '$1\\"') - }); - }); - if (handler.start) { - handler.start(tagName, attrs2, unary); - } - } - } - function parseEndTag(tag, tagName) { - if (!tagName) { - var pos = 0; - } else { - for (var pos = stack.length - 1; pos >= 0; pos--) { - if (stack[pos] == tagName) { - break; - } - } - } - if (pos >= 0) { - for (var i2 = stack.length - 1; i2 >= pos; i2--) { - if (handler.end) { - handler.end(stack[i2]); - } - } - stack.length = pos; - } - } - } - function makeMap(str) { - var obj = {}; - var items = str.split(","); - for (var i2 = 0; i2 < items.length; i2++) { - obj[items[i2]] = true; - } - return obj; - } - var scripts = {}; - function loadScript(globalName, src, callback) { - var globalObject = typeof globalName === "string" ? window[globalName] : globalName; - if (globalObject) { - callback(); - return; - } - var callbacks2 = scripts[src]; - if (!callbacks2) { - callbacks2 = scripts[src] = []; - var script = document.createElement("script"); - script.src = src; - document.body.appendChild(script); - script.onload = function() { - callbacks2.forEach((callback2) => callback2()); - delete scripts[src]; - }; - } - callbacks2.push(callback); - } - function divider(Quill) { - var BlockEmbed = Quill.import("blots/block/embed"); - class Divider extends BlockEmbed { - } - Divider.blotName = "divider"; - Divider.tagName = "HR"; - return { - "formats/divider": Divider - }; - } - function ins(Quill) { - var Inline = Quill.import("blots/inline"); - class Ins extends Inline { - } - Ins.blotName = "ins"; - Ins.tagName = "INS"; - return { - "formats/ins": Ins - }; - } - function align(Quill) { - var { - Scope, - Attributor - } = Quill.import("parchment"); - var config = { - scope: Scope.BLOCK, - whitelist: ["left", "right", "center", "justify"] - }; - var AlignStyle = new Attributor.Style("align", "text-align", config); - return { - "formats/align": AlignStyle - }; - } - function direction(Quill) { - var { - Scope, - Attributor - } = Quill.import("parchment"); - var config = { - scope: Scope.BLOCK, - whitelist: ["rtl"] - }; - var DirectionStyle = new Attributor.Style("direction", "direction", config); - return { - "formats/direction": DirectionStyle - }; - } - function list(Quill) { - var Parchment = Quill.import("parchment"); - var Container = Quill.import("blots/container"); - var ListItem = Quill.import("formats/list/item"); - class List extends Container { - static create(value) { - var tagName = value === "ordered" ? "OL" : "UL"; - var node = super.create(tagName); - if (value === "checked" || value === "unchecked") { - node.setAttribute("data-checked", value === "checked"); - } - return node; - } - static formats(domNode) { - if (domNode.tagName === "OL") - return "ordered"; - if (domNode.tagName === "UL") { - if (domNode.hasAttribute("data-checked")) { - return domNode.getAttribute("data-checked") === "true" ? "checked" : "unchecked"; - } else { - return "bullet"; - } - } - return void 0; - } - constructor(domNode) { - super(domNode); - var listEventHandler = (e2) => { - if (e2.target.parentNode !== domNode) - return; - var format = this.statics.formats(domNode); - var blot = Parchment.find(e2.target); - if (format === "checked") { - blot.format("list", "unchecked"); - } else if (format === "unchecked") { - blot.format("list", "checked"); - } - }; - domNode.addEventListener("click", listEventHandler); - } - format(name, value) { - if (this.children.length > 0) { - this.children.tail.format(name, value); - } - } - formats() { - return { - [this.statics.blotName]: this.statics.formats(this.domNode) - }; - } - insertBefore(blot, ref2) { - if (blot instanceof ListItem) { - super.insertBefore(blot, ref2); - } else { - var index2 = ref2 == null ? this.length() : ref2.offset(this); - var after = this.split(index2); - after.parent.insertBefore(blot, after); - } - } - optimize(context) { - super.optimize(context); - var next = this.next; - if (next != null && next.prev === this && next.statics.blotName === this.statics.blotName && next.domNode.tagName === this.domNode.tagName && next.domNode.getAttribute("data-checked") === this.domNode.getAttribute("data-checked")) { - next.moveChildren(this); - next.remove(); - } - } - replace(target) { - if (target.statics.blotName !== this.statics.blotName) { - var item = Parchment.create(this.statics.defaultChild); - target.moveChildren(item); - this.appendChild(item); - } - super.replace(target); - } - } - List.blotName = "list"; - List.scope = Parchment.Scope.BLOCK_BLOT; - List.tagName = ["OL", "UL"]; - List.defaultChild = "list-item"; - List.allowedChildren = [ListItem]; - return { - "formats/list": List - }; - } - function background(Quill) { - var { - Scope - } = Quill.import("parchment"); - var BackgroundStyle = Quill.import("formats/background"); - var BackgroundColorStyle = new BackgroundStyle.constructor("backgroundColor", "background-color", { - scope: Scope.INLINE - }); - return { - "formats/backgroundColor": BackgroundColorStyle - }; - } - function box(Quill) { - var { - Scope, - Attributor - } = Quill.import("parchment"); - var config = { - scope: Scope.BLOCK - }; - var margin = ["margin", "marginTop", "marginBottom", "marginLeft", "marginRight"]; - var padding = ["padding", "paddingTop", "paddingBottom", "paddingLeft", "paddingRight"]; - var result = {}; - margin.concat(padding).forEach((name) => { - result["formats/".concat(name)] = new Attributor.Style(name, hyphenate(name), config); - }); - return result; - } - function font(Quill) { - var { - Scope, - Attributor - } = Quill.import("parchment"); - var config = { - scope: Scope.INLINE - }; - var font2 = ["font", "fontSize", "fontStyle", "fontVariant", "fontWeight", "fontFamily"]; - var result = {}; - font2.forEach((name) => { - result["formats/".concat(name)] = new Attributor.Style(name, hyphenate(name), config); - }); - return result; - } - function text(Quill) { - var { - Scope, - Attributor - } = Quill.import("parchment"); - var text2 = [{ - name: "lineHeight", - scope: Scope.BLOCK - }, { - name: "letterSpacing", - scope: Scope.INLINE - }, { - name: "textDecoration", - scope: Scope.INLINE - }, { - name: "textIndent", - scope: Scope.BLOCK - }]; - var result = {}; - text2.forEach((_ref) => { - var { - name, - scope - } = _ref; - result["formats/".concat(name)] = new Attributor.Style(name, hyphenate(name), { - scope - }); - }); - return result; - } - function image$1(Quill) { - var Image2 = Quill.import("formats/image"); - var ATTRIBUTES = ["alt", "height", "width", "data-custom", "class", "data-local"]; - Image2.sanitize = (url) => url ? getRealPath(url) : url; - Image2.formats = function formats(domNode) { - return ATTRIBUTES.reduce(function(formats2, attribute) { - if (domNode.hasAttribute(attribute)) { - formats2[attribute] = domNode.getAttribute(attribute); - } - return formats2; - }, {}); - }; - var format = Image2.prototype.format; - Image2.prototype.format = function(name, value) { - if (ATTRIBUTES.indexOf(name) > -1) { - if (value) { - this.domNode.setAttribute(name, value); - } else { - this.domNode.removeAttribute(name); - } - } else { - format.call(this, name, value); - } - }; - } - function link(Quill) { - var Link = Quill.import("formats/link"); - Link.sanitize = (url) => { - var anchor = document.createElement("a"); - anchor.href = url; - var protocol = anchor.href.slice(0, anchor.href.indexOf(":")); - return Link.PROTOCOL_WHITELIST.concat("file").indexOf(protocol) > -1 ? url : Link.SANITIZED_URL; - }; - } - function register(Quill) { - var formats = { - divider, - ins, - align, - direction, - list, - background, - box, - font, - text, - image: image$1, - link - }; - var options = {}; - Object.values(formats).forEach((value) => extend(options, value(Quill))); - Quill.register(options, true); - } - function useQuill(props2, rootRef, trigger2) { - var quillReady; - var skipMatcher; - var quill; - var textChanging = false; - watch(() => props2.readOnly, (value) => { - if (quillReady) { - quill.enable(!value); - if (!value) { - quill.blur(); - } - } - }); - watch(() => props2.placeholder, (value) => { - if (quillReady) { - setPlaceHolder(value); - } - }); - function html2delta(html) { - var tags = ["span", "strong", "b", "ins", "em", "i", "u", "a", "del", "s", "sub", "sup", "img", "div", "p", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "ol", "ul", "li", "br"]; - var content = ""; - var disable; - HTMLParser(html, { - start: function(tag, attrs2, unary) { - if (!tags.includes(tag)) { - disable = !unary; - return; - } - disable = false; - var arrts = attrs2.map((_ref) => { - var { - name, - value - } = _ref; - return "".concat(name, '="').concat(value, '"'); - }).join(" "); - var start = "<".concat(tag, " ").concat(arrts, " ").concat(unary ? "/" : "", ">"); - content += start; - }, - end: function(tag) { - if (!disable) { - content += ""); - } - }, - chars: function(text2) { - if (!disable) { - content += text2; - } - } - }); - skipMatcher = true; - var delta = quill.clipboard.convert(content); - skipMatcher = false; - return delta; - } - function getContents() { - var html = quill.root.innerHTML; - var text2 = quill.getText(); - var delta = quill.getContents(); - return { - html, - text: text2, - delta - }; - } - function setPlaceHolder(placeholder) { - var placeHolderAttrName = "data-placeholder"; - var QuillRoot = quill.root; - QuillRoot.getAttribute(placeHolderAttrName) !== placeholder && QuillRoot.setAttribute(placeHolderAttrName, placeholder); - } - var oldStatus = {}; - function updateStatus(range) { - var status = range ? quill.getFormat(range) : {}; - var keys = Object.keys(status); - if (keys.length !== Object.keys(oldStatus).length || keys.find((key2) => status[key2] !== oldStatus[key2])) { - oldStatus = status; - trigger2("statuschange", {}, status); - } - } - function initQuill(imageResizeModules) { - var Quill = window.Quill; - register(Quill); - var options = { - toolbar: false, - readOnly: props2.readOnly, - placeholder: props2.placeholder - }; - if (imageResizeModules.length) { - Quill.register("modules/ImageResize", window.ImageResize.default); - options.modules = { - ImageResize: { - modules: imageResizeModules - } - }; - } - var rootEl = rootRef.value; - quill = new Quill(rootEl, options); - var $el = quill.root; - var events = ["focus", "blur", "input"]; - events.forEach((name) => { - $el.addEventListener(name, ($event) => { - var contents = getContents(); - if (name === "input") { - if (getBaseSystemInfo().platform === "ios") { - var regExpContent = (contents.html.match(/([\s\S]*)<\/span>/) || [])[1]; - var placeholder = regExpContent && regExpContent.replace(/\s/g, "") ? "" : props2.placeholder; - setPlaceHolder(placeholder); - } - $event.stopPropagation(); - } else { - trigger2(name, $event, contents); - } - }); - }); - quill.on("text-change", () => { - if (!textChanging) { - trigger2("input", {}, getContents()); - } - }); - quill.on("selection-change", updateStatus); - quill.on("scroll-optimize", () => { - var range = quill.selection.getRange()[0]; - updateStatus(range); - }); - quill.clipboard.addMatcher(Node.ELEMENT_NODE, (node, delta) => { - if (skipMatcher) { - return delta; - } - if (delta.ops) { - delta.ops = delta.ops.filter((_ref2) => { - var { - insert - } = _ref2; - return typeof insert === "string"; - }).map((_ref3) => { - var { - insert - } = _ref3; - return { - insert - }; - }); - } - return delta; - }); - quillReady = true; - trigger2("ready", {}, {}); - } - onMounted(() => { - var imageResizeModules = []; - if (props2.showImgSize) { - imageResizeModules.push("DisplaySize"); - } - if (props2.showImgToolbar) { - imageResizeModules.push("Toolbar"); - } - if (props2.showImgResize) { - imageResizeModules.push("Resize"); - } - var quillSrc = "./__uniappquill.js"; - loadScript(window.Quill, quillSrc, () => { - if (imageResizeModules.length) { - var imageResizeSrc = "./__uniappquillimageresize.js"; - loadScript(window.ImageResize, imageResizeSrc, () => { - initQuill(imageResizeModules); - }); - } else { - initQuill(imageResizeModules); - } - }); - }); - var id2 = useContextInfo(); - useSubscribe((type, data, resolve) => { - var { - options, - callbackId - } = data; - var res; - var range; - var errMsg; - if (quillReady) { - var Quill = window.Quill; - switch (type) { - case "format": - { - var { - name = "", - value = false - } = options; - range = quill.getSelection(true); - var format = quill.getFormat(range)[name] || false; - if (["bold", "italic", "underline", "strike", "ins"].includes(name)) { - value = !format; - } else if (name === "direction") { - value = value === "rtl" && format ? false : value; - var align2 = quill.getFormat(range).align; - if (value === "rtl" && !align2) { - quill.format("align", "right", "user"); - } else if (!value && align2 === "right") { - quill.format("align", false, "user"); - } - } else if (name === "indent") { - var rtl = quill.getFormat(range).direction === "rtl"; - value = value === "+1"; - if (rtl) { - value = !value; - } - value = value ? "+1" : "-1"; - } else { - if (name === "list") { - value = value === "check" ? "unchecked" : value; - format = format === "checked" ? "unchecked" : format; - } - value = format && format !== (value || false) || !format && value ? value : !format; - } - quill.format(name, value, "user"); - } - break; - case "insertDivider": - range = quill.getSelection(true); - quill.insertText(range.index, LINEFEED, "user"); - quill.insertEmbed(range.index + 1, "divider", true, "user"); - quill.setSelection(range.index + 2, 0, "silent"); - break; - case "insertImage": - { - range = quill.getSelection(true); - var { - src = "", - alt = "", - width = "", - height = "", - extClass = "", - data: data2 = {} - } = options; - var path = getRealPath(src); - quill.insertEmbed(range.index, "image", path, "user"); - var local = /^(file|blob):/.test(path) ? path : false; - textChanging = true; - quill.formatText(range.index, 1, "data-local", local); - quill.formatText(range.index, 1, "alt", alt); - quill.formatText(range.index, 1, "width", width); - quill.formatText(range.index, 1, "height", height); - quill.formatText(range.index, 1, "class", extClass); - textChanging = false; - quill.formatText(range.index, 1, "data-custom", Object.keys(data2).map((key2) => "".concat(key2, "=").concat(data2[key2])).join("&")); - quill.setSelection(range.index + 1, 0, "silent"); - } - break; - case "insertText": - { - range = quill.getSelection(true); - var { - text: text2 = "" - } = options; - quill.insertText(range.index, text2, "user"); - quill.setSelection(range.index + text2.length, 0, "silent"); - } - break; - case "setContents": - { - var { - delta, - html - } = options; - if (typeof delta === "object") { - quill.setContents(delta, "silent"); - } else if (typeof html === "string") { - quill.setContents(html2delta(html), "silent"); - } else { - errMsg = "contents is missing"; - } - } - break; - case "getContents": - res = getContents(); - break; - case "clear": - quill.setText(""); - break; - case "removeFormat": - { - range = quill.getSelection(true); - var parchment = Quill.import("parchment"); - if (range.length) { - quill.removeFormat(range.index, range.length, "user"); - } else { - Object.keys(quill.getFormat(range)).forEach((key2) => { - if (parchment.query(key2, parchment.Scope.INLINE)) { - quill.format(key2, false); - } - }); - } - } - break; - case "undo": - quill.history.undo(); - break; - case "redo": - quill.history.redo(); - break; - case "blur": - quill.blur(); - break; - case "getSelectionText": - range = quill.selection.savedRange; - res = { - text: "" - }; - if (range && range.length !== 0) { - res.text = quill.getText(range.index, range.length); - } - break; - case "scrollIntoView": - quill.scrollIntoView(); - break; - } - updateStatus(range); - } else { - errMsg = "not ready"; - } - if (callbackId) { - resolve({ - callbackId, - data: extend({}, res, { - errMsg: "".concat(type, ":").concat(errMsg ? "fail " + errMsg : "ok") - }) - }); - } - }, id2, true); - } - var props$i = /* @__PURE__ */ extend({}, props$j, { - id: { - type: String, - default: "" - }, - readOnly: { - type: [Boolean, String], - default: false - }, - placeholder: { - type: String, - default: "" - }, - showImgSize: { - type: [Boolean, String], - default: false - }, - showImgToolbar: { - type: [Boolean, String], - default: false - }, - showImgResize: { - type: [Boolean, String], - default: false - } - }); - var Editor = /* @__PURE__ */ defineBuiltInComponent({ - name: "Editor", - props: props$i, - emit: ["ready", "focus", "blur", "input", "statuschange", ...emit$1], - setup(props2, _ref) { - var { - emit: emit2 - } = _ref; - var rootRef = ref(null); - var trigger2 = useCustomEvent(rootRef, emit2); - useQuill(props2, rootRef, trigger2); - useKeyboard(props2, rootRef, trigger2); - return () => { - return createVNode("uni-editor", { - "ref": rootRef, - "id": props2.id, - "class": "ql-container" - }, null, 8, ["id"]); - }; - } - }); - var INFO_COLOR = "#10aeff"; - var WARN_COLOR = "#f76260"; - var GREY_COLOR = "#b2b2b2"; - var CANCEL_COLOR = "#f43530"; - var ICONS = { - success: { - d: ICON_PATH_SUCCESS, - c: PRIMARY_COLOR - }, - success_no_circle: { - d: ICON_PATH_SUCCESS_NO_CIRCLE, - c: PRIMARY_COLOR - }, - info: { - d: ICON_PATH_INFO, - c: INFO_COLOR - }, - warn: { - d: ICON_PATH_WARN, - c: WARN_COLOR - }, - waiting: { - d: ICON_PATH_WAITING, - c: INFO_COLOR - }, - cancel: { - d: ICON_PATH_CANCEL, - c: CANCEL_COLOR - }, - download: { - d: ICON_PATH_DOWNLOAD, - c: PRIMARY_COLOR - }, - search: { - d: ICON_PATH_SEARCH, - c: GREY_COLOR - }, - clear: { - d: ICON_PATH_CLEAR, - c: GREY_COLOR - } - }; - var Icon = /* @__PURE__ */ defineBuiltInComponent({ - name: "Icon", - props: { - type: { - type: String, - required: true, - default: "" - }, - size: { - type: [String, Number], - default: 23 - }, - color: { - type: String, - default: "" - } - }, - setup(props2) { - var path = computed$1(() => ICONS[props2.type]); - return () => { - var { - value - } = path; - return createVNode("uni-icon", null, [value && value.d && createSvgIconVNode(value.d, props2.color || value.c, rpx2px(props2.size))]); - }; - } - }); - var props$h = { - src: { - type: String, - default: "" - }, - mode: { - type: String, - default: "scaleToFill" - }, - lazyLoad: { - type: [Boolean, String], - default: false - }, - draggable: { - type: Boolean, - default: false - } - }; - var FIX_MODES = { - widthFix: ["offsetWidth", "height", (value, ratio) => value / ratio], - heightFix: ["offsetHeight", "width", (value, ratio) => value * ratio] - }; - var IMAGE_MODES = { - aspectFit: ["center center", "contain"], - aspectFill: ["center center", "cover"], - widthFix: [, "100% 100%"], - heightFix: [, "100% 100%"], - top: ["center top"], - bottom: ["center bottom"], - center: ["center center"], - left: ["left center"], - right: ["right center"], - "top left": ["left top"], - "top right": ["right top"], - "bottom left": ["left bottom"], - "bottom right": ["right bottom"] - }; - var Image$1 = /* @__PURE__ */ defineBuiltInComponent({ - name: "Image", - props: props$h, - setup(props2, _ref) { - var { - emit: emit2 - } = _ref; - var rootRef = ref(null); - var state = useImageState(rootRef, props2); - var trigger2 = useCustomEvent(rootRef, emit2); - var { - fixSize - } = useImageSize(rootRef, props2, state); - useImageLoader(state, fixSize, trigger2); - return () => { - var { - mode: mode2 - } = props2; - var { - imgSrc, - modeStyle, - src - } = state; - var imgTsx; - { - imgTsx = imgSrc ? createVNode("img", { - "src": imgSrc, - "draggable": props2.draggable - }, null, 8, ["src", "draggable"]) : createVNode("img", null, null); - } - return createVNode("uni-image", { - "ref": rootRef - }, [createVNode("div", { - "style": modeStyle - }, null, 4), imgTsx, FIX_MODES[mode2] ? createVNode(ResizeSensor, { - "onResize": fixSize - }, null, 8, ["onResize"]) : createVNode("span", null, null)], 512); - }; - } - }); - function useImageState(rootRef, props2) { - var imgSrc = ref(""); - var modeStyleRef = computed$1(() => { - var size2 = "auto"; - var position = ""; - var opts = IMAGE_MODES[props2.mode]; - if (!opts) { - position = "0% 0%"; - size2 = "100% 100%"; - } else { - opts[0] && (position = opts[0]); - opts[1] && (size2 = opts[1]); - } - return "background-image:".concat(imgSrc.value ? 'url("' + imgSrc.value + '")' : "none", ";background-position:").concat(position, ";background-size:").concat(size2, ";"); - }); - var state = reactive({ - rootEl: rootRef, - src: computed$1(() => props2.src ? getRealPath(props2.src) : ""), - origWidth: 0, - origHeight: 0, - origStyle: { - width: "", - height: "" - }, - modeStyle: modeStyleRef, - imgSrc - }); - onMounted(() => { - var rootEl = rootRef.value; - var style = rootEl.style; - state.origWidth = Number(style.width) || 0; - state.origHeight = Number(style.height) || 0; - }); - return state; - } - function useImageLoader(state, fixSize, trigger2) { - var img; - var setState = function() { - var width = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0; - var height = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0; - var imgSrc = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ""; - state.origWidth = width; - state.origHeight = height; - state.imgSrc = imgSrc; - }; - var loadImage = (src) => { - if (!src) { - resetImage(); - setState(); - return; - } - img = img || new Image(); - img.onload = (evt) => { - var { - width, - height - } = img; - setState(width, height, src); - fixSize(); - resetImage(); - trigger2("load", evt, { - width, - height - }); - }; - img.onerror = (evt) => { - setState(); - resetImage(); - trigger2("error", evt, { - errMsg: "GET ".concat(state.src, " 404 (Not Found)") - }); - }; - img.src = src; - }; - var resetImage = () => { - if (img) { - img.onload = null; - img.onerror = null; - img = null; - } - }; - watch(() => state.src, (value) => loadImage(value)); - onMounted(() => loadImage(state.src)); - onBeforeUnmount(() => resetImage()); - } - var isChrome = navigator.vendor === "Google Inc."; - function fixNumber(num) { - if (isChrome && num > 10) { - num = Math.round(num / 2) * 2; - } - return num; - } - function useImageSize(rootRef, props2, state) { - var fixSize = () => { - var { - mode: mode2 - } = props2; - var names = FIX_MODES[mode2]; - if (!names) { - return; - } - var { - origWidth, - origHeight - } = state; - var ratio = origWidth && origHeight ? origWidth / origHeight : 0; - if (!ratio) { - return; - } - var rootEl = rootRef.value; - var value = rootEl[names[0]]; - if (value) { - rootEl.style[names[1]] = fixNumber(names[2](value, ratio)) + "px"; - } - { - window.dispatchEvent(new CustomEvent("updateview")); - } - }; - var resetSize = () => { - var { - style - } = rootRef.value; - var { - origStyle: { - width, - height - } - } = state; - style.width = width; - style.height = height; - }; - watch(() => props2.mode, (value, oldValue) => { - if (FIX_MODES[oldValue]) { - resetSize(); - } - if (FIX_MODES[value]) { - fixSize(); - } - }); - return { - fixSize, - resetSize - }; - } - function throttle(fn, wait) { - var last = 0; - var timeout; - var waitCallback; - var newFn = function() { - for (var _len = arguments.length, arg = new Array(_len), _key = 0; _key < _len; _key++) { - arg[_key] = arguments[_key]; - } - var now = Date.now(); - clearTimeout(timeout); - waitCallback = () => { - waitCallback = null; - last = now; - fn.apply(this, arg); - }; - if (now - last < wait) { - timeout = setTimeout(waitCallback, wait - (now - last)); - return; - } - waitCallback(); - }; - newFn.cancel = function() { - clearTimeout(timeout); - waitCallback = null; - }; - newFn.flush = function() { - clearTimeout(timeout); - waitCallback && waitCallback(); - }; - return newFn; - } - var passiveOptions$1 = /* @__PURE__ */ passive(true); - var states = []; - var userInteract = 0; - var inited; - var setUserAction = (userAction) => states.forEach((vm) => vm.userAction = userAction); - function addInteractListener() { - var vm = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : { - userAction: false - }; - if (!inited) { - var eventNames = ["touchstart", "touchmove", "touchend", "mousedown", "mouseup"]; - eventNames.forEach((eventName) => { - document.addEventListener(eventName, function() { - !userInteract && setUserAction(true); - userInteract++; - setTimeout(() => { - !--userInteract && setUserAction(false); - }, 0); - }, passiveOptions$1); - }); - inited = true; - } - states.push(vm); - } - function removeInteractListener(vm) { - var index2 = states.indexOf(vm); - if (index2 >= 0) { - states.splice(index2, 1); - } - } - function useUserAction() { - var state = reactive({ - userAction: false - }); - onMounted(() => { - addInteractListener(state); - }); - onBeforeUnmount(() => { - removeInteractListener(state); - }); - return { - state - }; - } - function useScopedAttrs() { - var state = reactive({ - attrs: {} - }); - onMounted(() => { - var instance = getCurrentInstance(); - while (instance) { - var scopeId = instance.type.__scopeId; - if (scopeId) { - state.attrs[scopeId] = ""; - } - instance = instance.proxy && instance.proxy.$mpType === "page" ? null : instance.parent; - } - }); - return { - state - }; - } - function useFormField(nameKey, value) { - var uniForm = inject(uniFormKey, false); - if (!uniForm) { - return; - } - var instance = getCurrentInstance(); - var ctx2 = { - submit() { - var proxy = instance.proxy; - return [proxy[nameKey], typeof value === "string" ? proxy[value] : value.value]; - }, - reset() { - if (typeof value === "string") { - instance.proxy[value] = ""; - } else { - value.value = ""; - } - } - }; - uniForm.addField(ctx2); - onBeforeUnmount(() => { - uniForm.removeField(ctx2); - }); - } - function getSelectedTextRange(_, resolve) { - var activeElement = document.activeElement; - if (!activeElement) { - return resolve({}); - } - var data = {}; - if (["input", "textarea"].includes(activeElement.tagName.toLowerCase())) { - data.start = activeElement.selectionStart; - data.end = activeElement.selectionEnd; - } - resolve(data); - } - var UniViewJSBridgeSubscribe = function() { - registerViewMethod(getCurrentPageId(), "getSelectedTextRange", getSelectedTextRange); - }; - var FOCUS_DELAY = 200; - var startTime; - function getValueString(value, type) { - if (type === "number" && isNaN(Number(value))) { - value = ""; - } - return value === null ? "" : String(value); - } - var props$g = /* @__PURE__ */ extend({}, { - name: { - type: String, - default: "" - }, - modelValue: { - type: [String, Number], - default: "" - }, - value: { - type: [String, Number], - default: "" - }, - disabled: { - type: [Boolean, String], - default: false - }, - autoFocus: { - type: [Boolean, String], - default: false - }, - focus: { - type: [Boolean, String], - default: false - }, - cursor: { - type: [Number, String], - default: -1 - }, - selectionStart: { - type: [Number, String], - default: -1 - }, - selectionEnd: { - type: [Number, String], - default: -1 - }, - type: { - type: String, - default: "text" - }, - password: { - type: [Boolean, String], - default: false - }, - placeholder: { - type: String, - default: "" - }, - placeholderStyle: { - type: String, - default: "" - }, - placeholderClass: { - type: String, - default: "" - }, - maxlength: { - type: [Number, String], - default: 140 - }, - confirmType: { - type: String, - default: "done" - }, - confirmHold: { - type: Boolean, - default: false - } - }, props$j); - var emit = ["input", "focus", "blur", "update:value", "update:modelValue", "update:focus", ...emit$1]; - function useBase(props2, rootRef, emit2) { - var fieldRef = ref(null); - var trigger2 = useCustomEvent(rootRef, emit2); - var selectionStart = computed$1(() => { - var selectionStart2 = Number(props2.selectionStart); - return isNaN(selectionStart2) ? -1 : selectionStart2; - }); - var selectionEnd = computed$1(() => { - var selectionEnd2 = Number(props2.selectionEnd); - return isNaN(selectionEnd2) ? -1 : selectionEnd2; - }); - var cursor = computed$1(() => { - var cursor2 = Number(props2.cursor); - return isNaN(cursor2) ? -1 : cursor2; - }); - var maxlength = computed$1(() => { - var maxlength2 = Number(props2.maxlength); - return isNaN(maxlength2) ? 140 : maxlength2; - }); - var value = getValueString(props2.modelValue, props2.type) || getValueString(props2.value, props2.type); - var state = reactive({ - value, - valueOrigin: value, - maxlength, - focus: props2.focus, - composing: false, - selectionStart, - selectionEnd, - cursor - }); - watch(() => state.focus, (val) => emit2("update:focus", val)); - watch(() => state.maxlength, (val) => state.value = state.value.slice(0, val)); - return { - fieldRef, - state, - trigger: trigger2 - }; - } - function useValueSync(props2, state, emit2, trigger2) { - var valueChangeFn = debounce((val) => { - state.value = getValueString(val, props2.type); - }, 100); - watch(() => props2.modelValue, valueChangeFn); - watch(() => props2.value, valueChangeFn); - var triggerInputFn = throttle((event, detail) => { - valueChangeFn.cancel(); - emit2("update:modelValue", detail.value); - emit2("update:value", detail.value); - trigger2("input", event, detail); - }, 100); - var triggerInput = (event, detail, force) => { - valueChangeFn.cancel(); - triggerInputFn(event, detail); - if (force) { - triggerInputFn.flush(); - } - }; - onBeforeMount(() => { - valueChangeFn.cancel(); - triggerInputFn.cancel(); - }); - return { - trigger: trigger2, - triggerInput - }; - } - function useAutoFocus(props2, fieldRef) { - var { - state: userActionState - } = useUserAction(); - var needFocus = computed$1(() => props2.autoFocus || props2.focus); - function focus() { - if (!needFocus.value) { - return; - } - var field = fieldRef.value; - if (!field || !("plus" in window)) { - setTimeout(focus, 100); - return; - } - { - var timeout = FOCUS_DELAY - (Date.now() - startTime); - if (timeout > 0) { - setTimeout(focus, timeout); - return; - } - field.focus(); - if (!userActionState.userAction) { - plus.key.showSoftKeybord(); - } - } - } - function blur() { - var field = fieldRef.value; - if (field) { - field.blur(); - } - } - watch(() => props2.focus, (value) => { - if (value) { - focus(); - } else { - blur(); - } - }); - onMounted(() => { - startTime = startTime || Date.now(); - if (needFocus.value) { - nextTick(focus); - } - }); - } - function useEvent(fieldRef, state, trigger2, triggerInput, beforeInput) { - function checkSelection() { - var field = fieldRef.value; - if (field && state.focus && state.selectionStart > -1 && state.selectionEnd > -1 && field.type !== "number") { - field.selectionStart = state.selectionStart; - field.selectionEnd = state.selectionEnd; - } - } - function checkCursor() { - var field = fieldRef.value; - if (field && state.focus && state.selectionStart < 0 && state.selectionEnd < 0 && state.cursor > -1 && field.type !== "number") { - field.selectionEnd = field.selectionStart = state.cursor; - } - } - function getFieldSelectionEnd(field) { - if (field.type === "number") { - return null; - } else { - return field.selectionEnd; - } - } - function initField() { - var field = fieldRef.value; - var onFocus = function(event) { - state.focus = true; - trigger2("focus", event, { - value: state.value - }); - checkSelection(); - checkCursor(); - }; - var onInput = function(event, force) { - event.stopPropagation(); - if (typeof beforeInput === "function" && beforeInput(event, state) === false) { - return; - } - state.value = field.value; - if (!state.composing) { - triggerInput(event, { - value: field.value, - cursor: getFieldSelectionEnd(field) - }, force); - } - }; - var onBlur = function(event) { - if (state.composing) { - state.composing = false; - onInput(event, true); - } - state.focus = false; - trigger2("blur", event, { - value: state.value, - cursor: getFieldSelectionEnd(event.target) - }); - }; - field.addEventListener("change", (event) => event.stopPropagation()); - field.addEventListener("focus", onFocus); - field.addEventListener("blur", onBlur); - field.addEventListener("input", onInput); - field.addEventListener("compositionstart", (event) => { - event.stopPropagation(); - state.composing = true; - }); - field.addEventListener("compositionend", (event) => { - event.stopPropagation(); - if (state.composing) { - state.composing = false; - onInput(event); - } - }); - } - watch([() => state.selectionStart, () => state.selectionEnd], checkSelection); - watch(() => state.cursor, checkCursor); - watch(() => fieldRef.value, initField); - } - function useField(props2, rootRef, emit2, beforeInput) { - UniViewJSBridgeSubscribe(); - var { - fieldRef, - state, - trigger: trigger2 - } = useBase(props2, rootRef, emit2); - var { - triggerInput - } = useValueSync(props2, state, emit2, trigger2); - useAutoFocus(props2, fieldRef); - useKeyboard(props2, fieldRef, trigger2); - var { - state: scopedAttrsState - } = useScopedAttrs(); - useFormField("name", state); - useEvent(fieldRef, state, trigger2, triggerInput, beforeInput); - var fixDisabledColor = String(navigator.vendor).indexOf("Apple") === 0 && CSS.supports("image-orientation:from-image"); - return { - fieldRef, - state, - scopedAttrsState, - fixDisabledColor, - trigger: trigger2 - }; - } - var props$f = /* @__PURE__ */ extend({}, props$g, { - placeholderClass: { - type: String, - default: "input-placeholder" - }, - textContentType: { - type: String, - default: "" - } - }); - var Input = /* @__PURE__ */ defineBuiltInComponent({ - name: "Input", - props: props$f, - emits: ["confirm", ...emit], - setup(props2, _ref) { - var { - emit: emit2 - } = _ref; - var INPUT_TYPES = ["text", "number", "idcard", "digit", "password", "tel"]; - var AUTOCOMPLETES = ["off", "one-time-code"]; - var type = computed$1(() => { - var type2 = ""; - switch (props2.type) { - case "text": - if (props2.confirmType === "search") { - type2 = "search"; - } - break; - case "idcard": - type2 = "text"; - break; - case "digit": - type2 = "number"; - break; - default: - type2 = ~INPUT_TYPES.includes(props2.type) ? props2.type : "text"; - break; - } - return props2.password ? "password" : type2; - }); - var autocomplete = computed$1(() => { - var camelizeIndex = AUTOCOMPLETES.indexOf(props2.textContentType); - var kebabCaseIndex = AUTOCOMPLETES.indexOf(hyphenate(props2.textContentType)); - var index2 = camelizeIndex !== -1 ? camelizeIndex : kebabCaseIndex !== -1 ? kebabCaseIndex : 0; - return AUTOCOMPLETES[index2]; - }); - var cache2 = ref(""); - var resetCache; - var rootRef = ref(null); - var { - fieldRef, - state, - scopedAttrsState, - fixDisabledColor, - trigger: trigger2 - } = useField(props2, rootRef, emit2, (event, state2) => { - var input2 = event.target; - if (type.value === "number") { - if (resetCache) { - input2.removeEventListener("blur", resetCache); - resetCache = null; - } - if (input2.validity && !input2.validity.valid) { - if (!cache2.value && event.data === "-" || cache2.value[0] === "-" && event.inputType === "deleteContentBackward") { - cache2.value = "-"; - state2.value = ""; - resetCache = () => { - cache2.value = input2.value = ""; - }; - input2.addEventListener("blur", resetCache); - return false; - } - cache2.value = state2.value = input2.value = cache2.value === "-" ? "" : cache2.value; - return false; - } else { - cache2.value = input2.value; - } - var maxlength = state2.maxlength; - if (maxlength > 0 && input2.value.length > maxlength) { - input2.value = input2.value.slice(0, maxlength); - state2.value = input2.value; - return false; - } - } - }); - watch(() => state.value, (value) => { - if (props2.type === "number" && !(cache2.value === "-" && value === "")) { - cache2.value = value; - } - }); - var NUMBER_TYPES = ["number", "digit"]; - var step2 = computed$1(() => NUMBER_TYPES.includes(props2.type) ? "0.000000000000000001" : ""); - function onKeyUpEnter(event) { - if (event.key !== "Enter") { - return; - } - var input2 = event.target; - event.stopPropagation(); - trigger2("confirm", event, { - value: input2.value - }); - !props2.confirmHold && input2.blur(); - } - return () => { - var inputNode = props2.disabled && fixDisabledColor ? createVNode("input", { - "ref": fieldRef, - "value": state.value, - "tabindex": "-1", - "readonly": !!props2.disabled, - "type": type.value, - "maxlength": state.maxlength, - "step": step2.value, - "class": "uni-input-input", - "onFocus": (event) => event.target.blur() - }, null, 40, ["value", "readonly", "type", "maxlength", "step", "onFocus"]) : createVNode("input", { - "ref": fieldRef, - "value": state.value, - "disabled": !!props2.disabled, - "type": type.value, - "maxlength": state.maxlength, - "step": step2.value, - "enterkeyhint": props2.confirmType, - "pattern": props2.type === "number" ? "[0-9]*" : void 0, - "class": "uni-input-input", - "autocomplete": autocomplete.value, - "onKeyup": onKeyUpEnter - }, null, 40, ["value", "disabled", "type", "maxlength", "step", "enterkeyhint", "pattern", "autocomplete", "onKeyup"]); - return createVNode("uni-input", { - "ref": rootRef - }, [createVNode("div", { - "class": "uni-input-wrapper" - }, [withDirectives(createVNode("div", mergeProps(scopedAttrsState.attrs, { - "style": props2.placeholderStyle, - "class": ["uni-input-placeholder", props2.placeholderClass] - }), [props2.placeholder], 16), [[vShow, !(state.value.length || cache2.value === "-")]]), props2.confirmType === "search" ? createVNode("form", { - "action": "", - "onSubmit": (event) => event.preventDefault(), - "class": "uni-input-form" - }, [inputNode], 40, ["onSubmit"]) : inputNode])], 512); - }; - } - }); - function entries(obj) { - return Object.keys(obj).map((key2) => [key2, obj[key2]]); - } - var DEFAULT_EXCLUDE_KEYS = ["class", "style"]; - var LISTENER_PREFIX = /^on[A-Z]+/; - var useAttrs = function() { - var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; - var { - excludeListeners = false, - excludeKeys = [] - } = params; - var instance = getCurrentInstance(); - var attrs2 = shallowRef({}); - var listeners2 = shallowRef({}); - var excludeAttrs = shallowRef({}); - var allExcludeKeys = excludeKeys.concat(DEFAULT_EXCLUDE_KEYS); - instance.attrs = reactive(instance.attrs); - watchEffect(() => { - var res = entries(instance.attrs).reduce((acc, _ref) => { - var [key2, val] = _ref; - if (allExcludeKeys.includes(key2)) { - acc.exclude[key2] = val; - } else if (LISTENER_PREFIX.test(key2)) { - if (!excludeListeners) { - acc.attrs[key2] = val; - } - acc.listeners[key2] = val; - } else { - acc.attrs[key2] = val; - } - return acc; - }, { - exclude: {}, - attrs: {}, - listeners: {} - }); - attrs2.value = res.attrs; - listeners2.value = res.listeners; - excludeAttrs.value = res.exclude; - }); - return { - $attrs: attrs2, - $listeners: listeners2, - $excludeAttrs: excludeAttrs - }; - }; - var webview$2; - var pullToRefreshStyle; - function initScrollBounce() { - { - plusReady(() => { - if (!webview$2) { - webview$2 = plus.webview.currentWebview(); - } - if (!pullToRefreshStyle) { - pullToRefreshStyle = (webview$2.getStyle() || {}).pullToRefresh || {}; - } - }); - } - } - function disableScrollBounce(_ref) { - var { - disable - } = _ref; - { - if (pullToRefreshStyle && pullToRefreshStyle.support) { - webview$2.setPullToRefresh(Object.assign({}, pullToRefreshStyle, { - support: !disable - })); - } - } - } - function flatVNode(nodes) { - var array = []; - if (Array.isArray(nodes)) { - nodes.forEach((vnode) => { - if (isVNode(vnode)) { - if (vnode.type === Fragment) { - array.push(...flatVNode(vnode.children)); - } else { - array.push(vnode); - } - } else if (Array.isArray(vnode)) { - array.push(...flatVNode(vnode)); - } - }); - } - return array; - } - function useRebuild(callback) { - var instance = getCurrentInstance(); - instance.rebuild = callback; - } - var movableAreaProps = { - scaleArea: { - type: Boolean, - default: false - } - }; - var MovableArea = /* @__PURE__ */ defineBuiltInComponent({ - inheritAttrs: false, - name: "MovableArea", - props: movableAreaProps, - setup(props2, _ref) { - var { - slots - } = _ref; - var rootRef = ref(null); - var _isMounted = ref(false); - var { - setContexts, - events: movableAreaEvents - } = useMovableAreaState(props2, rootRef); - var { - $listeners, - $attrs, - $excludeAttrs - } = useAttrs(); - var _listeners = $listeners.value; - var events = ["onTouchstart", "onTouchmove", "onTouchend"]; - events.forEach((event) => { - var existing = _listeners[event]; - var ours = movableAreaEvents["_".concat(event)]; - _listeners[event] = existing ? [].concat(existing, ours) : ours; - }); - onMounted(() => { - movableAreaEvents._resize(); - initScrollBounce(); - _isMounted.value = true; - }); - var movableViewItems = []; - var originMovableViewContexts = []; - function updateMovableViewContexts() { - var contexts = []; - var _loop = function(index3) { - var movableViewItem = movableViewItems[index3]; - if (!(movableViewItem instanceof Element)) { - movableViewItem = movableViewItem.el; - } - var movableViewContext = originMovableViewContexts.find((context) => movableViewItem === context.rootRef.value); - if (movableViewContext) { - contexts.push(markRaw(movableViewContext)); - } - }; - for (var index2 = 0; index2 < movableViewItems.length; index2++) { - _loop(index2); - } - setContexts(contexts); - } - { - useRebuild(() => { - movableViewItems = rootRef.value.children; - updateMovableViewContexts(); - }); - } - var addMovableViewContext = (movableViewContext) => { - originMovableViewContexts.push(movableViewContext); - updateMovableViewContexts(); - }; - var removeMovableViewContext = (movableViewContext) => { - var index2 = originMovableViewContexts.indexOf(movableViewContext); - if (index2 >= 0) { - originMovableViewContexts.splice(index2, 1); - updateMovableViewContexts(); - } - }; - provide("_isMounted", _isMounted); - provide("movableAreaRootRef", rootRef); - provide("addMovableViewContext", addMovableViewContext); - provide("removeMovableViewContext", removeMovableViewContext); - return () => { - slots.default && slots.default(); - return createVNode("uni-movable-area", mergeProps({ - "ref": rootRef - }, $attrs.value, $excludeAttrs.value, _listeners), [createVNode(ResizeSensor, { - "onReize": movableAreaEvents._resize - }, null, 8, ["onReize"]), movableViewItems], 16); - }; - } - }); - function calc(e2) { - return Math.sqrt(e2.x * e2.x + e2.y * e2.y); - } - function useMovableAreaState(props2, rootRef) { - var width = ref(0); - var height = ref(0); - var gapV = reactive({ - x: null, - y: null - }); - var pinchStartLen = ref(null); - var _scaleMovableView = null; - var movableViewContexts = []; - function _updateScale(e2) { - if (e2 && e2 !== 1) { - if (props2.scaleArea) { - movableViewContexts.forEach(function(item) { - item._setScale(e2); - }); - } else { - if (_scaleMovableView) { - _scaleMovableView._setScale(e2); - } - } - } - } - function _find(target) { - var items = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : movableViewContexts; - var root = rootRef.value; - function get2(node) { - for (var i2 = 0; i2 < items.length; i2++) { - var item = items[i2]; - if (node === item.rootRef.value) { - return item; - } - } - if (node === root || node === document.body || node === document) { - return null; - } - return get2(node.parentNode); - } - return get2(target); - } - var _onTouchstart = withWebEvent((t2) => { - disableScrollBounce({ - disable: true - }); - var i2 = t2.touches; - if (i2) { - if (i2.length > 1) { - var r = { - x: i2[1].pageX - i2[0].pageX, - y: i2[1].pageY - i2[0].pageY - }; - pinchStartLen.value = calc(r); - gapV.x = r.x; - gapV.y = r.y; - if (!props2.scaleArea) { - var touch0 = _find(i2[0].target); - var touch1 = _find(i2[1].target); - _scaleMovableView = touch0 && touch0 === touch1 ? touch0 : null; - } - } - } - }); - var _onTouchmove = withWebEvent((t2) => { - var n = t2.touches; - if (n) { - if (n.length > 1) { - t2.preventDefault(); - var i2 = { - x: n[1].pageX - n[0].pageX, - y: n[1].pageY - n[0].pageY - }; - if (gapV.x !== null && pinchStartLen.value && pinchStartLen.value > 0) { - var r = calc(i2) / pinchStartLen.value; - _updateScale(r); - } - gapV.x = i2.x; - gapV.y = i2.y; - } - } - }); - var _onTouchend = withWebEvent((e2) => { - disableScrollBounce({ - disable: false - }); - var t2 = e2.touches; - if (!(t2 && t2.length)) { - if (e2.changedTouches) { - gapV.x = 0; - gapV.y = 0; - pinchStartLen.value = null; - if (props2.scaleArea) { - movableViewContexts.forEach(function(item) { - item._endScale(); - }); - } else { - if (_scaleMovableView) { - _scaleMovableView._endScale(); - } - } - } - } - }); - function _resize() { - _getWH(); - movableViewContexts.forEach(function(item, index2) { - item.setParent(); - }); - } - function _getWH() { - var style = window.getComputedStyle(rootRef.value); - var rect = rootRef.value.getBoundingClientRect(); - width.value = rect.width - ["Left", "Right"].reduce(function(all, item) { - var LEFT = "border" + item + "Width"; - var RIGHT = "padding" + item; - return all + parseFloat(style[LEFT]) + parseFloat(style[RIGHT]); - }, 0); - height.value = rect.height - ["Top", "Bottom"].reduce(function(all, item) { - var TOP = "border" + item + "Width"; - var BOTTOM = "padding" + item; - return all + parseFloat(style[TOP]) + parseFloat(style[BOTTOM]); - }, 0); - } - provide("movableAreaWidth", width); - provide("movableAreaHeight", height); - return { - setContexts(contexts) { - movableViewContexts = contexts; - }, - events: { - _onTouchstart, - _onTouchmove, - _onTouchend, - _resize - } - }; - } - var addListenerToElement = function(element, type, callback, capture) { - element.addEventListener(type, ($event) => { - if (typeof callback === "function") { - if (callback($event) === false) { - if (typeof $event.cancelable !== "undefined" ? $event.cancelable : true) { - $event.preventDefault(); - } - $event.stopPropagation(); - } - } - }, { - passive: false - }); - }; - var __mouseMoveEventListener; - var __mouseUpEventListener; - function useTouchtrack(element, method, useCancel) { - onBeforeUnmount(() => { - document.removeEventListener("mousemove", __mouseMoveEventListener); - document.removeEventListener("mouseup", __mouseUpEventListener); - }); - var x0 = 0; - var y0 = 0; - var x1 = 0; - var y1 = 0; - var fn = function($event, state, x, y) { - if (method({ - cancelable: $event.cancelable, - target: $event.target, - currentTarget: $event.currentTarget, - preventDefault: $event.preventDefault.bind($event), - stopPropagation: $event.stopPropagation.bind($event), - touches: $event.touches, - changedTouches: $event.changedTouches, - detail: { - state, - x, - y, - dx: x - x0, - dy: y - y0, - ddx: x - x1, - ddy: y - y1, - timeStamp: $event.timeStamp - } - }) === false) { - return false; - } - }; - var $eventOld = null; - var hasTouchStart; - var hasMouseDown; - addListenerToElement(element, "touchstart", function($event) { - hasTouchStart = true; - if ($event.touches.length === 1 && !$eventOld) { - $eventOld = $event; - x0 = x1 = $event.touches[0].pageX; - y0 = y1 = $event.touches[0].pageY; - return fn($event, "start", x0, y0); - } - }); - addListenerToElement(element, "mousedown", function($event) { - hasMouseDown = true; - if (!hasTouchStart && !$eventOld) { - $eventOld = $event; - x0 = x1 = $event.pageX; - y0 = y1 = $event.pageY; - return fn($event, "start", x0, y0); - } - }); - addListenerToElement(element, "touchmove", function($event) { - if ($event.touches.length === 1 && $eventOld) { - var res = fn($event, "move", $event.touches[0].pageX, $event.touches[0].pageY); - x1 = $event.touches[0].pageX; - y1 = $event.touches[0].pageY; - return res; - } - }); - var mouseMoveEventListener = __mouseMoveEventListener = function($event) { - if (!hasTouchStart && hasMouseDown && $eventOld) { - var res = fn($event, "move", $event.pageX, $event.pageY); - x1 = $event.pageX; - y1 = $event.pageY; - return res; - } - }; - document.addEventListener("mousemove", mouseMoveEventListener); - addListenerToElement(element, "touchend", function($event) { - if ($event.touches.length === 0 && $eventOld) { - hasTouchStart = false; - $eventOld = null; - return fn($event, "end", $event.changedTouches[0].pageX, $event.changedTouches[0].pageY); - } - }); - var mouseUpEventListener = __mouseUpEventListener = function($event) { - hasMouseDown = false; - if (!hasTouchStart && $eventOld) { - $eventOld = null; - return fn($event, "end", $event.pageX, $event.pageY); - } - }; - document.addEventListener("mouseup", mouseUpEventListener); - addListenerToElement(element, "touchcancel", function($event) { - if ($eventOld) { - hasTouchStart = false; - var $eventTemp = $eventOld; - $eventOld = null; - return fn($event, useCancel ? "cancel" : "end", $eventTemp.touches[0].pageX, $eventTemp.touches[0].pageY); - } - }); - } - function e(e2, t2, n) { - return e2 > t2 - n && e2 < t2 + n; - } - function t(t2, n) { - return e(t2, 0, n); - } - function Decline() { - } - Decline.prototype.x = function(e2) { - return Math.sqrt(e2); - }; - function Friction$1(e2, t2) { - this._m = e2; - this._f = 1e3 * t2; - this._startTime = 0; - this._v = 0; - } - Friction$1.prototype.setV = function(x, y) { - var n = Math.pow(Math.pow(x, 2) + Math.pow(y, 2), 0.5); - this._x_v = x; - this._y_v = y; - this._x_a = -this._f * this._x_v / n; - this._y_a = -this._f * this._y_v / n; - this._t = Math.abs(x / this._x_a) || Math.abs(y / this._y_a); - this._lastDt = null; - this._startTime = new Date().getTime(); - }; - Friction$1.prototype.setS = function(x, y) { - this._x_s = x; - this._y_s = y; - }; - Friction$1.prototype.s = function(t2) { - if (t2 === void 0) { - t2 = (new Date().getTime() - this._startTime) / 1e3; - } - if (t2 > this._t) { - t2 = this._t; - this._lastDt = t2; - } - var x = this._x_v * t2 + 0.5 * this._x_a * Math.pow(t2, 2) + this._x_s; - var y = this._y_v * t2 + 0.5 * this._y_a * Math.pow(t2, 2) + this._y_s; - if (this._x_a > 0 && x < this._endPositionX || this._x_a < 0 && x > this._endPositionX) { - x = this._endPositionX; - } - if (this._y_a > 0 && y < this._endPositionY || this._y_a < 0 && y > this._endPositionY) { - y = this._endPositionY; - } - return { - x, - y - }; - }; - Friction$1.prototype.ds = function(t2) { - if (t2 === void 0) { - t2 = (new Date().getTime() - this._startTime) / 1e3; - } - if (t2 > this._t) { - t2 = this._t; - } - return { - dx: this._x_v + this._x_a * t2, - dy: this._y_v + this._y_a * t2 - }; - }; - Friction$1.prototype.delta = function() { - return { - x: -1.5 * Math.pow(this._x_v, 2) / this._x_a || 0, - y: -1.5 * Math.pow(this._y_v, 2) / this._y_a || 0 - }; - }; - Friction$1.prototype.dt = function() { - return -this._x_v / this._x_a; - }; - Friction$1.prototype.done = function() { - var t2 = e(this.s().x, this._endPositionX) || e(this.s().y, this._endPositionY) || this._lastDt === this._t; - this._lastDt = null; - return t2; - }; - Friction$1.prototype.setEnd = function(x, y) { - this._endPositionX = x; - this._endPositionY = y; - }; - Friction$1.prototype.reconfigure = function(m, f2) { - this._m = m; - this._f = 1e3 * f2; - }; - function Spring$1(m, k, c2) { - this._m = m; - this._k = k; - this._c = c2; - this._solution = null; - this._endPosition = 0; - this._startTime = 0; - } - Spring$1.prototype._solve = function(e2, t2) { - var n = this._c; - var i2 = this._m; - var r = this._k; - var o2 = n * n - 4 * i2 * r; - if (o2 === 0) { - var a2 = -n / (2 * i2); - var s = e2; - var l = t2 / (a2 * e2); - return { - x: function(e3) { - return (s + l * e3) * Math.pow(Math.E, a2 * e3); - }, - dx: function(e3) { - var t3 = Math.pow(Math.E, a2 * e3); - return a2 * (s + l * e3) * t3 + l * t3; - } - }; - } - if (o2 > 0) { - var c2 = (-n - Math.sqrt(o2)) / (2 * i2); - var u = (-n + Math.sqrt(o2)) / (2 * i2); - var d = (t2 - c2 * e2) / (u - c2); - var h2 = e2 - d; - return { - x: function(e3) { - var t3; - var n2; - if (e3 === this._t) { - t3 = this._powER1T; - n2 = this._powER2T; - } - this._t = e3; - if (!t3) { - t3 = this._powER1T = Math.pow(Math.E, c2 * e3); - } - if (!n2) { - n2 = this._powER2T = Math.pow(Math.E, u * e3); - } - return h2 * t3 + d * n2; - }, - dx: function(e3) { - var t3; - var n2; - if (e3 === this._t) { - t3 = this._powER1T; - n2 = this._powER2T; - } - this._t = e3; - if (!t3) { - t3 = this._powER1T = Math.pow(Math.E, c2 * e3); - } - if (!n2) { - n2 = this._powER2T = Math.pow(Math.E, u * e3); - } - return h2 * c2 * t3 + d * u * n2; - } - }; - } - var p2 = Math.sqrt(4 * i2 * r - n * n) / (2 * i2); - var f2 = -n / 2 * i2; - var v2 = e2; - var g2 = (t2 - f2 * e2) / p2; - return { - x: function(e3) { - return Math.pow(Math.E, f2 * e3) * (v2 * Math.cos(p2 * e3) + g2 * Math.sin(p2 * e3)); - }, - dx: function(e3) { - var t3 = Math.pow(Math.E, f2 * e3); - var n2 = Math.cos(p2 * e3); - var i3 = Math.sin(p2 * e3); - return t3 * (g2 * p2 * n2 - v2 * p2 * i3) + f2 * t3 * (g2 * i3 + v2 * n2); - } - }; - }; - Spring$1.prototype.x = function(e2) { - if (e2 === void 0) { - e2 = (new Date().getTime() - this._startTime) / 1e3; - } - return this._solution ? this._endPosition + this._solution.x(e2) : 0; - }; - Spring$1.prototype.dx = function(e2) { - if (e2 === void 0) { - e2 = (new Date().getTime() - this._startTime) / 1e3; - } - return this._solution ? this._solution.dx(e2) : 0; - }; - Spring$1.prototype.setEnd = function(e2, n, i2) { - if (!i2) { - i2 = new Date().getTime(); - } - if (e2 !== this._endPosition || !t(n, 0.1)) { - n = n || 0; - var r = this._endPosition; - if (this._solution) { - if (t(n, 0.1)) { - n = this._solution.dx((i2 - this._startTime) / 1e3); - } - r = this._solution.x((i2 - this._startTime) / 1e3); - if (t(n, 0.1)) { - n = 0; - } - if (t(r, 0.1)) { - r = 0; - } - r += this._endPosition; - } - if (!(this._solution && t(r - e2, 0.1) && t(n, 0.1))) { - this._endPosition = e2; - this._solution = this._solve(r - this._endPosition, n); - this._startTime = i2; - } - } - }; - Spring$1.prototype.snap = function(e2) { - this._startTime = new Date().getTime(); - this._endPosition = e2; - this._solution = { - x: function() { - return 0; - }, - dx: function() { - return 0; - } - }; - }; - Spring$1.prototype.done = function(n) { - if (!n) { - n = new Date().getTime(); - } - return e(this.x(), this._endPosition, 0.1) && t(this.dx(), 0.1); - }; - Spring$1.prototype.reconfigure = function(m, t2, c2) { - this._m = m; - this._k = t2; - this._c = c2; - if (!this.done()) { - this._solution = this._solve(this.x() - this._endPosition, this.dx()); - this._startTime = new Date().getTime(); - } - }; - Spring$1.prototype.springConstant = function() { - return this._k; - }; - Spring$1.prototype.damping = function() { - return this._c; - }; - Spring$1.prototype.configuration = function() { - function e2(e3, t3) { - e3.reconfigure(1, t3, e3.damping()); - } - function t2(e3, t3) { - e3.reconfigure(1, e3.springConstant(), t3); - } - return [{ - label: "Spring Constant", - read: this.springConstant.bind(this), - write: e2.bind(this, this), - min: 100, - max: 1e3 - }, { - label: "Damping", - read: this.damping.bind(this), - write: t2.bind(this, this), - min: 1, - max: 500 - }]; - }; - function STD(e2, t2, n) { - this._springX = new Spring$1(e2, t2, n); - this._springY = new Spring$1(e2, t2, n); - this._springScale = new Spring$1(e2, t2, n); - this._startTime = 0; - } - STD.prototype.setEnd = function(e2, t2, n, i2) { - var r = new Date().getTime(); - this._springX.setEnd(e2, i2, r); - this._springY.setEnd(t2, i2, r); - this._springScale.setEnd(n, i2, r); - this._startTime = r; - }; - STD.prototype.x = function() { - var e2 = (new Date().getTime() - this._startTime) / 1e3; - return { - x: this._springX.x(e2), - y: this._springY.x(e2), - scale: this._springScale.x(e2) - }; - }; - STD.prototype.done = function() { - var e2 = new Date().getTime(); - return this._springX.done(e2) && this._springY.done(e2) && this._springScale.done(e2); - }; - STD.prototype.reconfigure = function(e2, t2, n) { - this._springX.reconfigure(e2, t2, n); - this._springY.reconfigure(e2, t2, n); - this._springScale.reconfigure(e2, t2, n); - }; - var movableViewProps = { - direction: { - type: String, - default: "none" - }, - inertia: { - type: [Boolean, String], - default: false - }, - outOfBounds: { - type: [Boolean, String], - default: false - }, - x: { - type: [Number, String], - default: 0 - }, - y: { - type: [Number, String], - default: 0 - }, - damping: { - type: [Number, String], - default: 20 - }, - friction: { - type: [Number, String], - default: 2 - }, - disabled: { - type: [Boolean, String], - default: false - }, - scale: { - type: [Boolean, String], - default: false - }, - scaleMin: { - type: [Number, String], - default: 0.5 - }, - scaleMax: { - type: [Number, String], - default: 10 - }, - scaleValue: { - type: [Number, String], - default: 1 - }, - animation: { - type: [Boolean, String], - default: true - } - }; - function v(a2, b) { - return +((1e3 * a2 - 1e3 * b) / 1e3).toFixed(1); - } - var MovableView = /* @__PURE__ */ defineBuiltInComponent({ - name: "MovableView", - props: movableViewProps, - emits: ["change", "scale"], - setup(props2, _ref) { - var { - slots, - emit: emit2 - } = _ref; - var rootRef = ref(null); - var trigger2 = useCustomEvent(rootRef, emit2); - var { - setParent - } = useMovableViewState(props2, trigger2, rootRef); - return () => { - return createVNode("uni-movable-view", { - "ref": rootRef - }, [createVNode(ResizeSensor, { - "onResize": setParent - }, null, 8, ["onResize"]), slots.default && slots.default()], 512); - }; - } - }); - var requesting = false; - function _requestAnimationFrame(e2) { - if (!requesting) { - requesting = true; - requestAnimationFrame(function() { - e2(); - requesting = false; - }); - } - } - function p(t2, n) { - if (t2 === n) { - return 0; - } - var i2 = t2.offsetLeft; - return t2.offsetParent ? i2 += p(t2.offsetParent, n) : 0; - } - function f(t2, n) { - if (t2 === n) { - return 0; - } - var i2 = t2.offsetTop; - return t2.offsetParent ? i2 += f(t2.offsetParent, n) : 0; - } - function g(friction, execute, endCallback) { - var record = { - id: 0, - cancelled: false - }; - var cancel = function(record2) { - if (record2 && record2.id) { - cancelAnimationFrame(record2.id); - } - if (record2) { - record2.cancelled = true; - } - }; - function fn(record2, friction2, execute2, endCallback2) { - if (!record2 || !record2.cancelled) { - execute2(friction2); - var isDone = friction2.done(); - if (!isDone) { - if (!record2.cancelled) { - record2.id = requestAnimationFrame(fn.bind(null, record2, friction2, execute2, endCallback2)); - } - } - if (isDone && endCallback2) { - endCallback2(friction2); - } - } - } - fn(record, friction, execute, endCallback); - return { - cancel: cancel.bind(null, record), - model: friction - }; - } - function _getPx(val) { - if (/\d+[ur]px$/i.test(val)) { - return uni.upx2px(parseFloat(val)); - } - return Number(val) || 0; - } - function useMovableViewState(props2, trigger2, rootRef) { - var movableAreaWidth = inject("movableAreaWidth", ref(0)); - var movableAreaHeight = inject("movableAreaHeight", ref(0)); - var _isMounted = inject("_isMounted", ref(false)); - var movableAreaRootRef = inject("movableAreaRootRef"); - var addMovableViewContext = inject("addMovableViewContext", () => { - }); - var removeMovableViewContext = inject("removeMovableViewContext", () => { - }); - var xSync = ref(_getPx(props2.x)); - var ySync = ref(_getPx(props2.y)); - var scaleValueSync = ref(Number(props2.scaleValue) || 1); - var width = ref(0); - var height = ref(0); - var minX = ref(0); - var minY = ref(0); - var maxX = ref(0); - var maxY = ref(0); - var _SFA = null; - var _FA = null; - var _offset = { - x: 0, - y: 0 - }; - var _scaleOffset = { - x: 0, - y: 0 - }; - var _scale = 1; - var _oldScale = 1; - var _translateX = 0; - var _translateY = 0; - var _isScaling = false; - var _isTouching = false; - var __baseX; - var __baseY; - var _checkCanMove = null; - var _firstMoveDirection = null; - var _declineX = new Decline(); - var _declineY = new Decline(); - var __touchInfo = { - historyX: [0, 0], - historyY: [0, 0], - historyT: [0, 0] - }; - var dampingNumber = computed$1(() => { - var val = Number(props2.damping); - return isNaN(val) ? 20 : val; - }); - var frictionNumber = computed$1(() => { - var val = Number(props2.friction); - return isNaN(val) || val <= 0 ? 2 : val; - }); - var scaleMinNumber = computed$1(() => { - var val = Number(props2.scaleMin); - return isNaN(val) ? 0.5 : val; - }); - var scaleMaxNumber = computed$1(() => { - var val = Number(props2.scaleMax); - return isNaN(val) ? 10 : val; - }); - var xMove = computed$1(() => props2.direction === "all" || props2.direction === "horizontal"); - var yMove = computed$1(() => props2.direction === "all" || props2.direction === "vertical"); - var _STD = new STD(1, 9 * Math.pow(dampingNumber.value, 2) / 40, dampingNumber.value); - var _friction = new Friction$1(1, frictionNumber.value); - watch(() => props2.x, (val) => { - xSync.value = _getPx(val); - }); - watch(() => props2.y, (val) => { - ySync.value = _getPx(val); - }); - watch(xSync, (val) => { - _setX(val); - }); - watch(ySync, (val) => { - _setY(val); - }); - watch(() => props2.scaleValue, (val) => { - scaleValueSync.value = Number(val) || 0; - }); - watch(scaleValueSync, (val) => { - _setScaleValue(val); - }); - watch(scaleMinNumber, () => { - _setScaleMinOrMax(); - }); - watch(scaleMaxNumber, () => { - _setScaleMinOrMax(); - }); - function FAandSFACancel() { - if (_FA) { - _FA.cancel(); - } - if (_SFA) { - _SFA.cancel(); - } - } - function _setX(val) { - if (xMove.value) { - if (val + _scaleOffset.x === _translateX) { - return _translateX; - } else { - if (_SFA) { - _SFA.cancel(); - } - _animationTo(val + _scaleOffset.x, ySync.value + _scaleOffset.y, _scale); - } - } - return val; - } - function _setY(val) { - if (yMove.value) { - if (val + _scaleOffset.y === _translateY) { - return _translateY; - } else { - if (_SFA) { - _SFA.cancel(); - } - _animationTo(xSync.value + _scaleOffset.x, val + _scaleOffset.y, _scale); - } - } - return val; - } - function _setScaleMinOrMax() { - if (!props2.scale) { - return false; - } - _updateScale(_scale, true); - _updateOldScale(_scale); - } - function _setScaleValue(scale) { - if (!props2.scale) { - return false; - } - scale = _adjustScale(scale); - _updateScale(scale, true); - _updateOldScale(scale); - return scale; - } - function __handleTouchStart() { - if (!_isScaling) { - if (!props2.disabled) { - disableScrollBounce({ - disable: true - }); - FAandSFACancel(); - __touchInfo.historyX = [0, 0]; - __touchInfo.historyY = [0, 0]; - __touchInfo.historyT = [0, 0]; - if (xMove.value) { - __baseX = _translateX; - } - if (yMove.value) { - __baseY = _translateY; - } - rootRef.value.style.willChange = "transform"; - _checkCanMove = null; - _firstMoveDirection = null; - _isTouching = true; - } - } - } - function __handleTouchMove(event) { - if (!_isScaling && !props2.disabled && _isTouching) { - var x = _translateX; - var y = _translateY; - if (_firstMoveDirection === null) { - _firstMoveDirection = Math.abs(event.detail.dx / event.detail.dy) > 1 ? "htouchmove" : "vtouchmove"; - } - if (xMove.value) { - x = event.detail.dx + __baseX; - __touchInfo.historyX.shift(); - __touchInfo.historyX.push(x); - if (!yMove.value && _checkCanMove === null) { - _checkCanMove = Math.abs(event.detail.dx / event.detail.dy) < 1; - } - } - if (yMove.value) { - y = event.detail.dy + __baseY; - __touchInfo.historyY.shift(); - __touchInfo.historyY.push(y); - if (!xMove.value && _checkCanMove === null) { - _checkCanMove = Math.abs(event.detail.dy / event.detail.dx) < 1; - } - } - __touchInfo.historyT.shift(); - __touchInfo.historyT.push(event.detail.timeStamp); - if (!_checkCanMove) { - event.preventDefault(); - var source = "touch"; - if (x < minX.value) { - if (props2.outOfBounds) { - source = "touch-out-of-bounds"; - x = minX.value - _declineX.x(minX.value - x); - } else { - x = minX.value; - } - } else if (x > maxX.value) { - if (props2.outOfBounds) { - source = "touch-out-of-bounds"; - x = maxX.value + _declineX.x(x - maxX.value); - } else { - x = maxX.value; - } - } - if (y < minY.value) { - if (props2.outOfBounds) { - source = "touch-out-of-bounds"; - y = minY.value - _declineY.x(minY.value - y); - } else { - y = minY.value; - } - } else { - if (y > maxY.value) { - if (props2.outOfBounds) { - source = "touch-out-of-bounds"; - y = maxY.value + _declineY.x(y - maxY.value); - } else { - y = maxY.value; - } - } - } - _requestAnimationFrame(function() { - _setTransform(x, y, _scale, source); - }); - } - } - } - function __handleTouchEnd() { - if (!_isScaling && !props2.disabled && _isTouching) { - disableScrollBounce({ - disable: false - }); - rootRef.value.style.willChange = "auto"; - _isTouching = false; - if (!_checkCanMove && !_revise("out-of-bounds") && props2.inertia) { - var xv = 1e3 * (__touchInfo.historyX[1] - __touchInfo.historyX[0]) / (__touchInfo.historyT[1] - __touchInfo.historyT[0]); - var yv = 1e3 * (__touchInfo.historyY[1] - __touchInfo.historyY[0]) / (__touchInfo.historyT[1] - __touchInfo.historyT[0]); - _friction.setV(xv, yv); - _friction.setS(_translateX, _translateY); - var x0 = _friction.delta().x; - var y0 = _friction.delta().y; - var x = x0 + _translateX; - var y = y0 + _translateY; - if (x < minX.value) { - x = minX.value; - y = _translateY + (minX.value - _translateX) * y0 / x0; - } else { - if (x > maxX.value) { - x = maxX.value; - y = _translateY + (maxX.value - _translateX) * y0 / x0; - } - } - if (y < minY.value) { - y = minY.value; - x = _translateX + (minY.value - _translateY) * x0 / y0; - } else { - if (y > maxY.value) { - y = maxY.value; - x = _translateX + (maxY.value - _translateY) * x0 / y0; - } - } - _friction.setEnd(x, y); - _FA = g(_friction, function() { - var t2 = _friction.s(); - var x2 = t2.x; - var y2 = t2.y; - _setTransform(x2, y2, _scale, "friction"); - }, function() { - _FA.cancel(); - }); - } - } - if (!props2.outOfBounds && !props2.inertia) { - FAandSFACancel(); - } - } - function _getLimitXY(x, y) { - var outOfBounds = false; - if (x > maxX.value) { - x = maxX.value; - outOfBounds = true; - } else { - if (x < minX.value) { - x = minX.value; - outOfBounds = true; - } - } - if (y > maxY.value) { - y = maxY.value; - outOfBounds = true; - } else { - if (y < minY.value) { - y = minY.value; - outOfBounds = true; - } - } - return { - x, - y, - outOfBounds - }; - } - function _updateOffset() { - _offset.x = p(rootRef.value, movableAreaRootRef.value); - _offset.y = f(rootRef.value, movableAreaRootRef.value); - } - function _updateWH(scale) { - scale = scale || _scale; - scale = _adjustScale(scale); - var rect = rootRef.value.getBoundingClientRect(); - height.value = rect.height / _scale; - width.value = rect.width / _scale; - var _height = height.value * scale; - var _width = width.value * scale; - _scaleOffset.x = (_width - width.value) / 2; - _scaleOffset.y = (_height - height.value) / 2; - } - function _updateBoundary() { - var x = 0 - _offset.x + _scaleOffset.x; - var _width = movableAreaWidth.value - width.value - _offset.x - _scaleOffset.x; - minX.value = Math.min(x, _width); - maxX.value = Math.max(x, _width); - var y = 0 - _offset.y + _scaleOffset.y; - var _height = movableAreaHeight.value - height.value - _offset.y - _scaleOffset.y; - minY.value = Math.min(y, _height); - maxY.value = Math.max(y, _height); - } - function _beginScale() { - _isScaling = true; - } - function _updateScale(scale, animat) { - if (props2.scale) { - scale = _adjustScale(scale); - _updateWH(scale); - _updateBoundary(); - var limitXY = _getLimitXY(_translateX, _translateY); - var x = limitXY.x; - var y = limitXY.y; - if (animat) { - _animationTo(x, y, scale, "", true, true); - } else { - _requestAnimationFrame(function() { - _setTransform(x, y, scale, "", true, true); - }); - } - } - } - function _updateOldScale(scale) { - _oldScale = scale; - } - function _adjustScale(scale) { - scale = Math.max(0.5, scaleMinNumber.value, scale); - scale = Math.min(10, scaleMaxNumber.value, scale); - return scale; - } - function _animationTo(x, y, scale, source, r, o2) { - FAandSFACancel(); - if (!xMove.value) { - x = _translateX; - } - if (!yMove.value) { - y = _translateY; - } - if (!props2.scale) { - scale = _scale; - } - var limitXY = _getLimitXY(x, y); - x = limitXY.x; - y = limitXY.y; - if (!props2.animation) { - _setTransform(x, y, scale, source, r, o2); - return; - } - _STD._springX._solution = null; - _STD._springY._solution = null; - _STD._springScale._solution = null; - _STD._springX._endPosition = _translateX; - _STD._springY._endPosition = _translateY; - _STD._springScale._endPosition = _scale; - _STD.setEnd(x, y, scale, 1); - _SFA = g(_STD, function() { - var data = _STD.x(); - var x2 = data.x; - var y2 = data.y; - var scale2 = data.scale; - _setTransform(x2, y2, scale2, source, r, o2); - }, function() { - _SFA.cancel(); - }); - } - function _revise(source) { - var limitXY = _getLimitXY(_translateX, _translateY); - var x = limitXY.x; - var y = limitXY.y; - var outOfBounds = limitXY.outOfBounds; - if (outOfBounds) { - _animationTo(x, y, _scale, source); - } - return outOfBounds; - } - function _setTransform(x, y, scale) { - var source = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ""; - var r = arguments.length > 4 ? arguments[4] : void 0; - var o2 = arguments.length > 5 ? arguments[5] : void 0; - if (!(x !== null && x.toString() !== "NaN" && typeof x === "number")) { - x = _translateX || 0; - } - if (!(y !== null && y.toString() !== "NaN" && typeof y === "number")) { - y = _translateY || 0; - } - x = Number(x.toFixed(1)); - y = Number(y.toFixed(1)); - scale = Number(scale.toFixed(1)); - if (!(_translateX === x && _translateY === y)) { - if (!r) { - trigger2("change", {}, { - x: v(x, _scaleOffset.x), - y: v(y, _scaleOffset.y), - source - }); - } - } - if (!props2.scale) { - scale = _scale; - } - scale = _adjustScale(scale); - scale = +scale.toFixed(3); - if (o2 && scale !== _scale) { - trigger2("scale", {}, { - x, - y, - scale - }); - } - var transform = "translateX(" + x + "px) translateY(" + y + "px) translateZ(0px) scale(" + scale + ")"; - rootRef.value.style.transform = transform; - rootRef.value.style.webkitTransform = transform; - _translateX = x; - _translateY = y; - _scale = scale; - } - function setParent() { - if (!_isMounted.value) { - return; - } - FAandSFACancel(); - var scale = props2.scale ? scaleValueSync.value : 1; - _updateOffset(); - _updateWH(scale); - _updateBoundary(); - _translateX = xSync.value + _scaleOffset.x; - _translateY = ySync.value + _scaleOffset.y; - var limitXY = _getLimitXY(_translateX, _translateY); - var x = limitXY.x; - var y = limitXY.y; - _setTransform(x, y, scale, "", true); - _updateOldScale(scale); - } - function _endScale() { - _isScaling = false; - _updateOldScale(_scale); - } - function _setScale(scale) { - if (scale) { - scale = _oldScale * scale; - _beginScale(); - _updateScale(scale); - } - } - onMounted(() => { - useTouchtrack(rootRef.value, (event) => { - switch (event.detail.state) { - case "start": - __handleTouchStart(); - break; - case "move": - __handleTouchMove(event); - break; - case "end": - __handleTouchEnd(); - } - }); - setParent(); - _friction.reconfigure(1, frictionNumber.value); - _STD.reconfigure(1, 9 * Math.pow(dampingNumber.value, 2) / 40, dampingNumber.value); - rootRef.value.style.transformOrigin = "center"; - initScrollBounce(); - var context = { - rootRef, - setParent, - _endScale, - _setScale - }; - addMovableViewContext(context); - onUnmounted(() => { - removeMovableViewContext(context); - }); - }); - onUnmounted(() => { - FAandSFACancel(); - }); - return { - setParent - }; - } - var OPEN_TYPES = ["navigate", "redirect", "switchTab", "reLaunch", "navigateBack"]; - var navigatorProps = { - hoverClass: { - type: String, - default: "navigator-hover" - }, - url: { - type: String, - default: "" - }, - openType: { - type: String, - default: "navigate", - validator(value) { - return Boolean(~OPEN_TYPES.indexOf(value)); - } - }, - delta: { - type: Number, - default: 1 - }, - hoverStartTime: { - type: [Number, String], - default: 50 - }, - hoverStayTime: { - type: [Number, String], - default: 600 - }, - exists: { - type: String, - default: "" - }, - hoverStopPropagation: { - type: Boolean, - default: false - } - }; - function createNavigatorOnClick(props2) { - return () => { - if (props2.openType !== "navigateBack" && !props2.url) { - console.error(" should have url attribute when using navigateTo, redirectTo, reLaunch or switchTab"); - return; - } - switch (props2.openType) { - case "navigate": - uni.navigateTo({ - url: props2.url - }); - break; - case "redirect": - uni.redirectTo({ - url: props2.url, - exists: props2.exists - }); - break; - case "switchTab": - uni.switchTab({ - url: props2.url - }); - break; - case "reLaunch": - uni.reLaunch({ - url: props2.url - }); - break; - case "navigateBack": - uni.navigateBack({ - delta: props2.delta - }); - break; - } - }; - } - var Navigator = /* @__PURE__ */ defineBuiltInComponent({ - name: "Navigator", - inheritAttrs: false, - compatConfig: { - MODE: 3 - }, - props: navigatorProps, - setup(props2, _ref) { - var { - slots - } = _ref; - var vm = getCurrentInstance(); - var __scopeId = vm && vm.vnode.scopeId || ""; - var { - hovering, - binding - } = useHover(props2); - var onClick = createNavigatorOnClick(props2); - return () => { - var { - hoverClass, - url - } = props2; - var hasHoverClass = props2.hoverClass && props2.hoverClass !== "none"; - return createVNode("a", { - "class": "navigator-wrap", - "href": url, - "onClick": onEventPrevent - }, [createVNode("uni-navigator", mergeProps({ - "class": hasHoverClass && hovering.value ? hoverClass : "" - }, hasHoverClass && binding, vm ? vm.attrs : {}, { - [__scopeId]: "" - }, { - "onClick": onClick - }), [slots.default && slots.default()], 16, ["onClick"])], 8, ["href", "onClick"]); - }; - } - }); - var pickerViewProps = { - value: { - type: Array, - default() { - return []; - }, - validator: function(val) { - return Array.isArray(val) && val.filter((val2) => typeof val2 === "number").length === val.length; - } - }, - indicatorStyle: { - type: String, - default: "" - }, - indicatorClass: { - type: String, - default: "" - }, - maskStyle: { - type: String, - default: "" - }, - maskClass: { - type: String, - default: "" - } - }; - function useState$1(props2) { - var value = reactive([...props2.value]); - var state = reactive({ - value, - height: 34 - }); - watch(() => props2.value, (val, oldVal) => { - if (val === oldVal || val.length !== oldVal.length || val.findIndex((item, index2) => item !== oldVal[index2]) >= 0) { - state.value.length = val.length; - val.forEach((val2, index2) => { - if (val2 !== state.value[index2]) { - state.value.splice(index2, 1, val2); - } - }); - } - }); - return state; - } - var PickerView = /* @__PURE__ */ defineBuiltInComponent({ - name: "PickerView", - props: pickerViewProps, - emits: ["change", "pickstart", "pickend", "update:value"], - setup(props2, _ref) { - var { - slots, - emit: emit2 - } = _ref; - var rootRef = ref(null); - var wrapperRef = ref(null); - var trigger2 = useCustomEvent(rootRef, emit2); - var state = useState$1(props2); - var resizeSensorRef = ref(null); - var onMountedCallback = () => { - var resizeSensor2 = resizeSensorRef.value; - state.height = resizeSensor2.$el.offsetHeight; - }; - var ColumnsPreRef = ref([]); - var columnsRef = ref([]); - function getItemIndex(vnode) { - var columnVNodes = columnsRef.value; - if (columnVNodes instanceof HTMLCollection) { - return Array.prototype.indexOf.call(columnVNodes, vnode.el); - } else { - columnVNodes = columnVNodes.filter((vnode2) => vnode2.type !== Comment); - } - var index2 = columnVNodes.indexOf(vnode); - return index2 !== -1 ? index2 : ColumnsPreRef.value.indexOf(vnode); - } - var getPickerViewColumn = function(columnInstance) { - var ref2 = computed$1({ - get() { - var index2 = getItemIndex(columnInstance.vnode); - return state.value[index2] || 0; - }, - set(current) { - var index2 = getItemIndex(columnInstance.vnode); - if (index2 < 0) { - return; - } - var oldCurrent = state.value[index2]; - if (oldCurrent !== current) { - state.value[index2] = current; - var value = state.value.map((val) => val); - emit2("update:value", value); - trigger2("change", {}, { - value - }); - } - } - }); - return ref2; - }; - provide("getPickerViewColumn", getPickerViewColumn); - provide("pickerViewProps", props2); - provide("pickerViewState", state); - { - useRebuild(() => { - onMountedCallback(); - columnsRef.value = wrapperRef.value.children; - }); - } - return () => { - var defaultSlots = slots.default && slots.default(); - return createVNode("uni-picker-view", { - "ref": rootRef - }, [createVNode(ResizeSensor, { - "ref": resizeSensorRef, - "onResize": (_ref2) => { - var { - height - } = _ref2; - return state.height = height; - } - }, null, 8, ["onResize"]), createVNode("div", { - "ref": wrapperRef, - "class": "uni-picker-view-wrapper" - }, [defaultSlots], 512)], 512); - }; - } - }); - class Friction { - constructor(drag) { - this._drag = drag; - this._dragLog = Math.log(drag); - this._x = 0; - this._v = 0; - this._startTime = 0; - } - set(x, v2) { - this._x = x; - this._v = v2; - this._startTime = new Date().getTime(); - } - setVelocityByEnd(e2) { - this._v = (e2 - this._x) * this._dragLog / (Math.pow(this._drag, 100) - 1); - } - x(e2) { - if (e2 === void 0) { - e2 = (new Date().getTime() - this._startTime) / 1e3; - } - var t2 = e2 === this._dt && this._powDragDt ? this._powDragDt : this._powDragDt = Math.pow(this._drag, e2); - this._dt = e2; - return this._x + this._v * t2 / this._dragLog - this._v / this._dragLog; - } - dx(e2) { - if (e2 === void 0) { - e2 = (new Date().getTime() - this._startTime) / 1e3; - } - var t2 = e2 === this._dt && this._powDragDt ? this._powDragDt : this._powDragDt = Math.pow(this._drag, e2); - this._dt = e2; - return this._v * t2; - } - done() { - return Math.abs(this.dx()) < 3; - } - reconfigure(e2) { - var t2 = this.x(); - var n = this.dx(); - this._drag = e2; - this._dragLog = Math.log(e2); - this.set(t2, n); - } - configuration() { - var e2 = this; - return [{ - label: "Friction", - read: function() { - return e2._drag; - }, - write: function(t2) { - e2.reconfigure(t2); - }, - min: 1e-3, - max: 0.1, - step: 1e-3 - }]; - } - } - function o(e2, t2, n) { - return e2 > t2 - n && e2 < t2 + n; - } - function a(e2, t2) { - return o(e2, 0, t2); - } - class Spring { - constructor(m, k, c2) { - this._m = m; - this._k = k; - this._c = c2; - this._solution = null; - this._endPosition = 0; - this._startTime = 0; - } - _solve(e2, t2) { - var n = this._c; - var i2 = this._m; - var r = this._k; - var o2 = n * n - 4 * i2 * r; - if (o2 === 0) { - var a3 = -n / (2 * i2); - var s2 = e2; - var l2 = t2 / (a3 * e2); - return { - x: function(e22) { - return (s2 + l2 * e22) * Math.pow(Math.E, a3 * e22); - }, - dx: function(e22) { - var t22 = Math.pow(Math.E, a3 * e22); - return a3 * (s2 + l2 * e22) * t22 + l2 * t22; - } - }; - } - if (o2 > 0) { - var c2 = (-n - Math.sqrt(o2)) / (2 * i2); - var u = (-n + Math.sqrt(o2)) / (2 * i2); - var _l = (t2 - c2 * e2) / (u - c2); - var _s = e2 - _l; - return { - x: function(e22) { - var t22; - var n2; - if (e22 === this._t) { - t22 = this._powER1T; - n2 = this._powER2T; - } - this._t = e22; - if (!t22) { - t22 = this._powER1T = Math.pow(Math.E, c2 * e22); - } - if (!n2) { - n2 = this._powER2T = Math.pow(Math.E, u * e22); - } - return _s * t22 + _l * n2; - }, - dx: function(e22) { - var t22; - var n2; - if (e22 === this._t) { - t22 = this._powER1T; - n2 = this._powER2T; - } - this._t = e22; - if (!t22) { - t22 = this._powER1T = Math.pow(Math.E, c2 * e22); - } - if (!n2) { - n2 = this._powER2T = Math.pow(Math.E, u * e22); - } - return _s * c2 * t22 + _l * u * n2; - } - }; - } - var d = Math.sqrt(4 * i2 * r - n * n) / (2 * i2); - var a2 = -n / 2 * i2; - var s = e2; - var l = (t2 - a2 * e2) / d; - return { - x: function(e22) { - return Math.pow(Math.E, a2 * e22) * (s * Math.cos(d * e22) + l * Math.sin(d * e22)); - }, - dx: function(e22) { - var t22 = Math.pow(Math.E, a2 * e22); - var n2 = Math.cos(d * e22); - var i22 = Math.sin(d * e22); - return t22 * (l * d * n2 - s * d * i22) + a2 * t22 * (l * i22 + s * n2); - } - }; - } - x(e2) { - if (e2 === void 0) { - e2 = (new Date().getTime() - this._startTime) / 1e3; - } - return this._solution ? this._endPosition + this._solution.x(e2) : 0; - } - dx(e2) { - if (e2 === void 0) { - e2 = (new Date().getTime() - this._startTime) / 1e3; - } - return this._solution ? this._solution.dx(e2) : 0; - } - setEnd(e2, t2, n) { - if (!n) { - n = new Date().getTime(); - } - if (e2 !== this._endPosition || !a(t2, 0.4)) { - t2 = t2 || 0; - var i2 = this._endPosition; - if (this._solution) { - if (a(t2, 0.4)) { - t2 = this._solution.dx((n - this._startTime) / 1e3); - } - i2 = this._solution.x((n - this._startTime) / 1e3); - if (a(t2, 0.4)) { - t2 = 0; - } - if (a(i2, 0.4)) { - i2 = 0; - } - i2 += this._endPosition; - } - if (!(this._solution && a(i2 - e2, 0.4) && a(t2, 0.4))) { - this._endPosition = e2; - this._solution = this._solve(i2 - this._endPosition, t2); - this._startTime = n; - } - } - } - snap(e2) { - this._startTime = new Date().getTime(); - this._endPosition = e2; - this._solution = { - x: function() { - return 0; - }, - dx: function() { - return 0; - } - }; - } - done(e2) { - if (!e2) { - e2 = new Date().getTime(); - } - return o(this.x(), this._endPosition, 0.4) && a(this.dx(), 0.4); - } - reconfigure(e2, t2, n) { - this._m = e2; - this._k = t2; - this._c = n; - if (!this.done()) { - this._solution = this._solve(this.x() - this._endPosition, this.dx()); - this._startTime = new Date().getTime(); - } - } - springConstant() { - return this._k; - } - damping() { - return this._c; - } - configuration() { - function e2(e22, t22) { - e22.reconfigure(1, t22, e22.damping()); - } - function t2(e22, t22) { - e22.reconfigure(1, e22.springConstant(), t22); - } - return [{ - label: "Spring Constant", - read: this.springConstant.bind(this), - write: e2.bind(this, this), - min: 100, - max: 1e3 - }, { - label: "Damping", - read: this.damping.bind(this), - write: t2.bind(this, this), - min: 1, - max: 500 - }]; - } - } - class Scroll { - constructor(extent, friction, spring) { - this._extent = extent; - this._friction = friction || new Friction(0.01); - this._spring = spring || new Spring(1, 90, 20); - this._startTime = 0; - this._springing = false; - this._springOffset = 0; - } - snap(e2, t2) { - this._springOffset = 0; - this._springing = true; - this._spring.snap(e2); - this._spring.setEnd(t2); - } - set(e2, t2) { - this._friction.set(e2, t2); - if (e2 > 0 && t2 >= 0) { - this._springOffset = 0; - this._springing = true; - this._spring.snap(e2); - this._spring.setEnd(0); - } else { - if (e2 < -this._extent && t2 <= 0) { - this._springOffset = 0; - this._springing = true; - this._spring.snap(e2); - this._spring.setEnd(-this._extent); - } else { - this._springing = false; - } - } - this._startTime = new Date().getTime(); - } - x(e2) { - if (!this._startTime) { - return 0; - } - if (!e2) { - e2 = (new Date().getTime() - this._startTime) / 1e3; - } - if (this._springing) { - return this._spring.x() + this._springOffset; - } - var t2 = this._friction.x(e2); - var n = this.dx(e2); - if (t2 > 0 && n >= 0 || t2 < -this._extent && n <= 0) { - this._springing = true; - this._spring.setEnd(0, n); - if (t2 < -this._extent) { - this._springOffset = -this._extent; - } else { - this._springOffset = 0; - } - t2 = this._spring.x() + this._springOffset; - } - return t2; - } - dx(e2) { - var t2; - if (this._lastTime === e2) { - t2 = this._lastDx; - } else { - t2 = this._springing ? this._spring.dx(e2) : this._friction.dx(e2); - } - this._lastTime = e2; - this._lastDx = t2; - return t2; - } - done() { - return this._springing ? this._spring.done() : this._friction.done(); - } - setVelocityByEnd(e2) { - this._friction.setVelocityByEnd(e2); - } - configuration() { - var e2 = this._friction.configuration(); - e2.push.apply(e2, this._spring.configuration()); - return e2; - } - } - function createAnimation(scroll, onScroll, onEnd) { - var state = { - id: 0, - cancelled: false - }; - function startAnimation2(state2, scroll2, onScroll2, onEnd2) { - if (!state2 || !state2.cancelled) { - onScroll2(scroll2); - var isDone = scroll2.done(); - if (!isDone) { - if (!state2.cancelled) { - state2.id = requestAnimationFrame(startAnimation2.bind(null, state2, scroll2, onScroll2, onEnd2)); - } - } - if (isDone && onEnd2) { - onEnd2(scroll2); - } - } - } - function cancel(state2) { - if (state2 && state2.id) { - cancelAnimationFrame(state2.id); - } - if (state2) { - state2.cancelled = true; - } - } - startAnimation2(state, scroll, onScroll, onEnd); - return { - cancel: cancel.bind(null, state), - model: scroll - }; - } - class Scroller { - constructor(element, options) { - options = options || {}; - this._element = element; - this._options = options; - this._enableSnap = options.enableSnap || false; - this._itemSize = options.itemSize || 0; - this._enableX = options.enableX || false; - this._enableY = options.enableY || false; - this._shouldDispatchScrollEvent = !!options.onScroll; - if (this._enableX) { - this._extent = (options.scrollWidth || this._element.offsetWidth) - this._element.parentElement.offsetWidth; - this._scrollWidth = options.scrollWidth; - } else { - this._extent = (options.scrollHeight || this._element.offsetHeight) - this._element.parentElement.offsetHeight; - this._scrollHeight = options.scrollHeight; - } - this._position = 0; - this._scroll = new Scroll(this._extent, options.friction, options.spring); - this._onTransitionEnd = this.onTransitionEnd.bind(this); - this.updatePosition(); - } - onTouchStart() { - this._startPosition = this._position; - this._lastChangePos = this._startPosition; - if (this._startPosition > 0) { - this._startPosition /= 0.5; - } else { - if (this._startPosition < -this._extent) { - this._startPosition = (this._startPosition + this._extent) / 0.5 - this._extent; - } - } - if (this._animation) { - this._animation.cancel(); - this._scrolling = false; - } - this.updatePosition(); - } - onTouchMove(x, y) { - var startPosition = this._startPosition; - if (this._enableX) { - startPosition += x; - } else if (this._enableY) { - startPosition += y; - } - if (startPosition > 0) { - startPosition *= 0.5; - } else if (startPosition < -this._extent) { - startPosition = 0.5 * (startPosition + this._extent) - this._extent; - } - this._position = startPosition; - this.updatePosition(); - this.dispatchScroll(); - } - onTouchEnd(x, y, o2) { - if (this._enableSnap && this._position > -this._extent && this._position < 0) { - if (this._enableY && (Math.abs(y) < this._itemSize && Math.abs(o2.y) < 300 || Math.abs(o2.y) < 150)) { - this.snap(); - return; - } - if (this._enableX && (Math.abs(x) < this._itemSize && Math.abs(o2.x) < 300 || Math.abs(o2.x) < 150)) { - this.snap(); - return; - } - } - if (this._enableX) { - this._scroll.set(this._position, o2.x); - } else if (this._enableY) { - this._scroll.set(this._position, o2.y); - } - var c2; - if (this._enableSnap) { - var s = this._scroll._friction.x(100); - var l = s % this._itemSize; - c2 = Math.abs(l) > this._itemSize / 2 ? s - (this._itemSize - Math.abs(l)) : s - l; - if (c2 <= 0 && c2 >= -this._extent) { - this._scroll.setVelocityByEnd(c2); - } - } - this._lastTime = Date.now(); - this._lastDelay = 0; - this._scrolling = true; - this._lastChangePos = this._position; - this._lastIdx = Math.floor(Math.abs(this._position / this._itemSize)); - this._animation = createAnimation(this._scroll, () => { - var e2 = Date.now(); - var i2 = (e2 - this._scroll._startTime) / 1e3; - var r = this._scroll.x(i2); - this._position = r; - this.updatePosition(); - var o22 = this._scroll.dx(i2); - if (this._shouldDispatchScrollEvent && e2 - this._lastTime > this._lastDelay) { - this.dispatchScroll(); - this._lastDelay = Math.abs(2e3 / o22); - this._lastTime = e2; - } - }, () => { - if (this._enableSnap) { - if (c2 <= 0 && c2 >= -this._extent) { - this._position = c2; - this.updatePosition(); - } - if (typeof this._options.onSnap === "function") { - this._options.onSnap(Math.floor(Math.abs(this._position) / this._itemSize)); - } - } - if (this._shouldDispatchScrollEvent) { - this.dispatchScroll(); - } - this._scrolling = false; - }); - } - onTransitionEnd() { - this._element.style.webkitTransition = ""; - this._element.style.transition = ""; - this._element.removeEventListener("transitionend", this._onTransitionEnd); - if (this._snapping) { - this._snapping = false; - } - this.dispatchScroll(); - } - snap() { - var itemSize = this._itemSize; - var position = this._position % itemSize; - var i2 = Math.abs(position) > this._itemSize / 2 ? this._position - (itemSize - Math.abs(position)) : this._position - position; - if (this._position !== i2) { - this._snapping = true; - this.scrollTo(-i2); - if (typeof this._options.onSnap === "function") { - this._options.onSnap(Math.floor(Math.abs(this._position) / this._itemSize)); - } - } - } - scrollTo(position, time) { - if (this._animation) { - this._animation.cancel(); - this._scrolling = false; - } - if (typeof position === "number") { - this._position = -position; - } - if (this._position < -this._extent) { - this._position = -this._extent; - } else { - if (this._position > 0) { - this._position = 0; - } - } - var transition = "transform " + (time || 0.2) + "s ease-out"; - this._element.style.webkitTransition = "-webkit-" + transition; - this._element.style.transition = transition; - this.updatePosition(); - this._element.addEventListener("transitionend", this._onTransitionEnd); - } - dispatchScroll() { - if (typeof this._options.onScroll === "function" && Math.round(Number(this._lastPos)) !== Math.round(this._position)) { - this._lastPos = this._position; - var event = { - target: { - scrollLeft: this._enableX ? -this._position : 0, - scrollTop: this._enableY ? -this._position : 0, - scrollHeight: this._scrollHeight || this._element.offsetHeight, - scrollWidth: this._scrollWidth || this._element.offsetWidth, - offsetHeight: this._element.parentElement.offsetHeight, - offsetWidth: this._element.parentElement.offsetWidth - } - }; - this._options.onScroll(event); - } - } - update(height, scrollHeight, itemSize) { - var extent = 0; - var position = this._position; - if (this._enableX) { - extent = this._element.childNodes.length ? (scrollHeight || this._element.offsetWidth) - this._element.parentElement.offsetWidth : 0; - this._scrollWidth = scrollHeight; - } else { - extent = this._element.childNodes.length ? (scrollHeight || this._element.offsetHeight) - this._element.parentElement.offsetHeight : 0; - this._scrollHeight = scrollHeight; - } - if (typeof height === "number") { - this._position = -height; - } - if (this._position < -extent) { - this._position = -extent; - } else { - if (this._position > 0) { - this._position = 0; - } - } - this._itemSize = itemSize || this._itemSize; - this.updatePosition(); - if (position !== this._position) { - this.dispatchScroll(); - if (typeof this._options.onSnap === "function") { - this._options.onSnap(Math.floor(Math.abs(this._position) / this._itemSize)); - } - } - this._extent = extent; - this._scroll._extent = extent; - } - updatePosition() { - var transform = ""; - if (this._enableX) { - transform = "translateX(" + this._position + "px) translateZ(0)"; - } else { - if (this._enableY) { - transform = "translateY(" + this._position + "px) translateZ(0)"; - } - } - this._element.style.webkitTransform = transform; - this._element.style.transform = transform; - } - isScrolling() { - return this._scrolling || this._snapping; - } - } - function useScroller(element, options) { - var touchInfo = { - trackingID: -1, - maxDy: 0, - maxDx: 0 - }; - var scroller = new Scroller(element, options); - function findDelta(event) { - var touchtrackEvent = event; - var mouseEvent = event; - return touchtrackEvent.detail.state === "move" || touchtrackEvent.detail.state === "end" ? { - x: touchtrackEvent.detail.dx, - y: touchtrackEvent.detail.dy - } : { - x: mouseEvent.screenX - touchInfo.x, - y: mouseEvent.screenY - touchInfo.y - }; - } - function handleTouchStart(event) { - var touchtrackEvent = event; - var mouseEvent = event; - if (touchtrackEvent.detail.state === "start") { - touchInfo.trackingID = "touch"; - touchInfo.x = touchtrackEvent.detail.x; - touchInfo.y = touchtrackEvent.detail.y; - } else { - touchInfo.trackingID = "mouse"; - touchInfo.x = mouseEvent.screenX; - touchInfo.y = mouseEvent.screenY; - } - touchInfo.maxDx = 0; - touchInfo.maxDy = 0; - touchInfo.historyX = [0]; - touchInfo.historyY = [0]; - touchInfo.historyTime = [touchtrackEvent.detail.timeStamp || mouseEvent.timeStamp]; - touchInfo.listener = scroller; - if (scroller.onTouchStart) { - scroller.onTouchStart(); - } - if (typeof event.cancelable !== "boolean" || event.cancelable) - event.preventDefault(); - } - function handleTouchMove(event) { - var touchtrackEvent = event; - var mouseEvent = event; - if (touchInfo.trackingID !== -1) { - if (typeof event.cancelable !== "boolean" || event.cancelable) - event.preventDefault(); - var delta = findDelta(event); - if (delta) { - for (touchInfo.maxDy = Math.max(touchInfo.maxDy, Math.abs(delta.y)), touchInfo.maxDx = Math.max(touchInfo.maxDx, Math.abs(delta.x)), touchInfo.historyX.push(delta.x), touchInfo.historyY.push(delta.y), touchInfo.historyTime.push(touchtrackEvent.detail.timeStamp || mouseEvent.timeStamp); touchInfo.historyTime.length > 10; ) { - touchInfo.historyTime.shift(); - touchInfo.historyX.shift(); - touchInfo.historyY.shift(); - } - if (touchInfo.listener && touchInfo.listener.onTouchMove) { - touchInfo.listener.onTouchMove(delta.x, delta.y); - } - } - } - } - function handleTouchEnd(event) { - if (touchInfo.trackingID !== -1) { - event.preventDefault(); - var delta = findDelta(event); - if (delta) { - var listener = touchInfo.listener; - touchInfo.trackingID = -1; - touchInfo.listener = null; - var length = touchInfo.historyTime.length; - var o2 = { - x: 0, - y: 0 - }; - if (length > 2) { - for (var i2 = touchInfo.historyTime.length - 1, time1 = touchInfo.historyTime[i2], x = touchInfo.historyX[i2], y = touchInfo.historyY[i2]; i2 > 0; ) { - i2--; - var time0 = touchInfo.historyTime[i2]; - var time = time1 - time0; - if (time > 30 && time < 50) { - o2.x = (x - touchInfo.historyX[i2]) / (time / 1e3); - o2.y = (y - touchInfo.historyY[i2]) / (time / 1e3); - break; - } - } - } - touchInfo.historyTime = []; - touchInfo.historyX = []; - touchInfo.historyY = []; - if (listener && listener.onTouchEnd) { - listener.onTouchEnd(delta.x, delta.y, o2); - } - } - } - } - return { - scroller, - handleTouchStart, - handleTouchMove, - handleTouchEnd - }; - } - var scopedIndex = 0; - function useScopedClass(indicatorHeightRef) { - var className = "uni-picker-view-content-".concat(scopedIndex++); - function updateStyle() { - var style = document.createElement("style"); - style.innerText = ".uni-picker-view-content.".concat(className, ">*{height: ").concat(indicatorHeightRef.value, "px;overflow: hidden;}"); - document.head.appendChild(style); - } - watch(() => indicatorHeightRef.value, updateStyle); - return className; - } - function useCustomClick(dom) { - var MAX_MOVE = 20; - var x = 0; - var y = 0; - dom.addEventListener("touchstart", (event) => { - var info = event.changedTouches[0]; - x = info.clientX; - y = info.clientY; - }); - dom.addEventListener("touchend", (event) => { - var info = event.changedTouches[0]; - if (Math.abs(info.clientX - x) < MAX_MOVE && Math.abs(info.clientY - y) < MAX_MOVE) { - var options = { - bubbles: true, - cancelable: true, - target: event.target, - currentTarget: event.currentTarget - }; - var customClick = new CustomEvent("click", options); - var props2 = ["screenX", "screenY", "clientX", "clientY", "pageX", "pageY"]; - props2.forEach((key2) => { - customClick[key2] = info[key2]; - }); - event.target.dispatchEvent(customClick); - } - }); - } - var PickerViewColumn = /* @__PURE__ */ defineBuiltInComponent({ - name: "PickerViewColumn", - setup(props2, _ref) { - var { - slots, - emit: emit2 - } = _ref; - var rootRef = ref(null); - var contentRef = ref(null); - var getPickerViewColumn = inject("getPickerViewColumn"); - var instance = getCurrentInstance(); - var currentRef = getPickerViewColumn ? getPickerViewColumn(instance) : ref(0); - var pickerViewProps2 = inject("pickerViewProps"); - var pickerViewState = inject("pickerViewState"); - var indicatorHeight = ref(34); - var resizeSensorRef = ref(null); - var initIndicatorHeight = () => { - var resizeSensor2 = resizeSensorRef.value; - indicatorHeight.value = resizeSensor2.$el.offsetHeight; - }; - var maskSize = computed$1(() => (pickerViewState.height - indicatorHeight.value) / 2); - var { - state: scopedAttrsState - } = useScopedAttrs(); - var className = useScopedClass(indicatorHeight); - var scroller; - var state = reactive({ - current: currentRef.value, - length: 0 - }); - var updatesScrollerRequest; - function updatesScroller() { - if (scroller && !updatesScrollerRequest) { - updatesScrollerRequest = true; - nextTick(() => { - updatesScrollerRequest = false; - var current = Math.min(state.current, state.length - 1); - current = Math.max(current, 0); - scroller.update(current * indicatorHeight.value, void 0, indicatorHeight.value); - }); - } - } - watch(() => currentRef.value, (current) => { - if (current !== state.current) { - state.current = current; - updatesScroller(); - } - }); - watch(() => state.current, (current) => currentRef.value = current); - watch([() => indicatorHeight.value, () => state.length, () => pickerViewState.height], updatesScroller); - var oldDeltaY = 0; - function handleWheel(event) { - var deltaY = oldDeltaY + event.deltaY; - if (Math.abs(deltaY) > 10) { - oldDeltaY = 0; - var current = Math.min(state.current + (deltaY < 0 ? -1 : 1), state.length - 1); - state.current = current = Math.max(current, 0); - scroller.scrollTo(current * indicatorHeight.value); - } else { - oldDeltaY = deltaY; - } - event.preventDefault(); - } - function handleTap(_ref2) { - var { - clientY - } = _ref2; - var el = rootRef.value; - if (!scroller.isScrolling()) { - var rect = el.getBoundingClientRect(); - var r = clientY - rect.top - pickerViewState.height / 2; - var o2 = indicatorHeight.value / 2; - if (!(Math.abs(r) <= o2)) { - var a2 = Math.ceil((Math.abs(r) - o2) / indicatorHeight.value); - var s = r < 0 ? -a2 : a2; - var current = Math.min(state.current + s, state.length - 1); - state.current = current = Math.max(current, 0); - scroller.scrollTo(current * indicatorHeight.value); - } - } - } - var initScroller = () => { - var el = rootRef.value; - var content = contentRef.value; - var { - scroller: scrollerOrigin, - handleTouchStart, - handleTouchMove, - handleTouchEnd - } = useScroller(content, { - enableY: true, - enableX: false, - enableSnap: true, - itemSize: indicatorHeight.value, - friction: new Friction(1e-4), - spring: new Spring(2, 90, 20), - onSnap: (index2) => { - if (!isNaN(index2) && index2 !== state.current) { - state.current = index2; - } - } - }); - scroller = scrollerOrigin; - useTouchtrack(el, (e2) => { - switch (e2.detail.state) { - case "start": - handleTouchStart(e2); - disableScrollBounce({ - disable: true - }); - break; - case "move": - handleTouchMove(e2); - e2.stopPropagation(); - break; - case "end": - case "cancel": - handleTouchEnd(e2); - disableScrollBounce({ - disable: false - }); - } - }, true); - useCustomClick(el); - initScrollBounce(); - updatesScroller(); - }; - { - var isMounted = false; - useRebuild(() => { - state.length = contentRef.value.children.length; - if (!isMounted) { - isMounted = true; - initIndicatorHeight(); - initScroller(); - } - }); - } - return () => { - var defaultSlots = slots.default && slots.default(); - var padding = "".concat(maskSize.value, "px 0"); - return createVNode("uni-picker-view-column", { - "ref": rootRef - }, [createVNode("div", { - "onWheel": handleWheel, - "onClick": handleTap, - "class": "uni-picker-view-group" - }, [createVNode("div", mergeProps(scopedAttrsState.attrs, { - "class": ["uni-picker-view-mask", pickerViewProps2.maskClass], - "style": "background-size: 100% ".concat(maskSize.value, "px;").concat(pickerViewProps2.maskStyle) - }), null, 16), createVNode("div", mergeProps(scopedAttrsState.attrs, { - "class": ["uni-picker-view-indicator", pickerViewProps2.indicatorClass], - "style": pickerViewProps2.indicatorStyle - }), [createVNode(ResizeSensor, { - "ref": resizeSensorRef, - "onResize": (_ref3) => { - var { - height - } = _ref3; - return indicatorHeight.value = height; - } - }, null, 8, ["onResize"])], 16), createVNode("div", { - "ref": contentRef, - "class": ["uni-picker-view-content", className], - "style": { - padding - } - }, [defaultSlots], 6)], 40, ["onWheel", "onClick"])], 512); - }; - } - }); - var FONT_SIZE = 16; - var PROGRESS_VALUES = { - activeColor: PRIMARY_COLOR, - backgroundColor: "#EBEBEB", - activeMode: "backwards" - }; - var progressProps = { - percent: { - type: [Number, String], - default: 0, - validator(value) { - return !isNaN(parseFloat(value)); - } - }, - fontSize: { - type: [String, Number], - default: FONT_SIZE - }, - showInfo: { - type: [Boolean, String], - default: false - }, - strokeWidth: { - type: [Number, String], - default: 6, - validator(value) { - return !isNaN(parseFloat(value)); - } - }, - color: { - type: String, - default: PROGRESS_VALUES.activeColor - }, - activeColor: { - type: String, - default: PROGRESS_VALUES.activeColor - }, - backgroundColor: { - type: String, - default: PROGRESS_VALUES.backgroundColor - }, - active: { - type: [Boolean, String], - default: false - }, - activeMode: { - type: String, - default: PROGRESS_VALUES.activeMode - }, - duration: { - type: [Number, String], - default: 30, - validator(value) { - return !isNaN(parseFloat(value)); - } - }, - borderRadius: { - type: [Number, String], - default: 0 - } - }; - var Progress = /* @__PURE__ */ defineBuiltInComponent({ - name: "Progress", - props: progressProps, - setup(props2) { - var state = useProgressState(props2); - _activeAnimation(state, props2); - watch(() => state.realPercent, (newValue, oldValue) => { - state.strokeTimer && clearInterval(state.strokeTimer); - state.lastPercent = oldValue || 0; - _activeAnimation(state, props2); - }); - return () => { - var { - showInfo - } = props2; - var { - outerBarStyle, - innerBarStyle, - currentPercent - } = state; - return createVNode("uni-progress", { - "class": "uni-progress" - }, [createVNode("div", { - "style": outerBarStyle, - "class": "uni-progress-bar" - }, [createVNode("div", { - "style": innerBarStyle, - "class": "uni-progress-inner-bar" - }, null, 4)], 4), showInfo ? createVNode("p", { - "class": "uni-progress-info" - }, [currentPercent + "%"]) : ""]); - }; - } - }); - function useProgressState(props2) { - var currentPercent = ref(0); - var outerBarStyle = computed$1(() => "background-color: ".concat(props2.backgroundColor, "; height: ").concat(props2.strokeWidth, "px;")); - var innerBarStyle = computed$1(() => { - var backgroundColor = props2.color !== PROGRESS_VALUES.activeColor && props2.activeColor === PROGRESS_VALUES.activeColor ? props2.color : props2.activeColor; - return "width: ".concat(currentPercent.value, "%;background-color: ").concat(backgroundColor); - }); - var realPercent = computed$1(() => { - var realValue = parseFloat(props2.percent); - realValue < 0 && (realValue = 0); - realValue > 100 && (realValue = 100); - return realValue; - }); - var state = reactive({ - outerBarStyle, - innerBarStyle, - realPercent, - currentPercent, - strokeTimer: 0, - lastPercent: 0 - }); - return state; - } - function _activeAnimation(state, props2) { - if (props2.active) { - state.currentPercent = props2.activeMode === PROGRESS_VALUES.activeMode ? 0 : state.lastPercent; - state.strokeTimer = setInterval(() => { - if (state.currentPercent + 1 > state.realPercent) { - state.currentPercent = state.realPercent; - state.strokeTimer && clearInterval(state.strokeTimer); - } else { - state.currentPercent += 1; - } - }, parseFloat(props2.duration)); - } else { - state.currentPercent = state.realPercent; - } - } - var uniRadioGroupKey = PolySymbol("ucg"); - var props$e = { - name: { - type: String, - default: "" - } - }; - var RadioGroup = /* @__PURE__ */ defineBuiltInComponent({ - name: "RadioGroup", - props: props$e, - setup(props2, _ref) { - var { - emit: emit2, - slots - } = _ref; - var rootRef = ref(null); - var trigger2 = useCustomEvent(rootRef, emit2); - useProvideRadioGroup(props2, trigger2); - return () => { - return createVNode("uni-radio-group", { - "ref": rootRef - }, [slots.default && slots.default()], 512); - }; - } - }); - function useProvideRadioGroup(props2, trigger2) { - var fields2 = []; - onMounted(() => { - _resetRadioGroupValue(fields2.length - 1); - }); - var getFieldsValue = () => { - var _fields$find; - return (_fields$find = fields2.find((field) => field.value.radioChecked)) === null || _fields$find === void 0 ? void 0 : _fields$find.value.value; - }; - provide(uniRadioGroupKey, { - addField(field) { - fields2.push(field); - }, - removeField(field) { - fields2.splice(fields2.indexOf(field), 1); - }, - radioChange($event, field) { - var index2 = fields2.indexOf(field); - _resetRadioGroupValue(index2, true); - trigger2("change", $event, { - value: getFieldsValue() - }); - } - }); - var uniForm = inject(uniFormKey, false); - var formField = { - submit: () => { - var data = ["", null]; - if (props2.name !== "") { - data[0] = props2.name; - data[1] = getFieldsValue(); - } - return data; - } - }; - if (uniForm) { - uniForm.addField(formField); - onBeforeUnmount(() => { - uniForm.removeField(formField); - }); - } - function setFieldChecked(field, radioChecked) { - field.value = { - radioChecked, - value: field.value.value - }; - } - function _resetRadioGroupValue(key2, change) { - fields2.forEach((value, index2) => { - if (index2 === key2) { - return; - } - if (change) { - setFieldChecked(fields2[index2], false); - } else { - fields2.forEach((v2, i2) => { - if (index2 >= i2) { - return; - } - if (fields2[i2].value.radioChecked) { - setFieldChecked(fields2[index2], false); - } - }); - } - }); - } - return fields2; - } - var props$d = { - checked: { - type: [Boolean, String], - default: false - }, - id: { - type: String, - default: "" - }, - disabled: { - type: [Boolean, String], - default: false - }, - color: { - type: String, - default: "#007aff" - }, - value: { - type: String, - default: "" - } - }; - var Radio = /* @__PURE__ */ defineBuiltInComponent({ - name: "Radio", - props: props$d, - setup(props2, _ref) { - var { - slots - } = _ref; - var radioChecked = ref(props2.checked); - var radioValue = ref(props2.value); - var checkedStyle = computed$1(() => "background-color: ".concat(props2.color, ";border-color: ").concat(props2.color, ";")); - watch([() => props2.checked, () => props2.value], (_ref2) => { - var [newChecked, newModelValue] = _ref2; - radioChecked.value = newChecked; - radioValue.value = newModelValue; - }); - var reset2 = () => { - radioChecked.value = false; - }; - var { - uniCheckGroup, - uniLabel, - field - } = useRadioInject(radioChecked, radioValue, reset2); - var _onClick = ($event) => { - if (props2.disabled) { - return; - } - radioChecked.value = true; - uniCheckGroup && uniCheckGroup.radioChange($event, field); - }; - if (!!uniLabel) { - uniLabel.addHandler(_onClick); - onBeforeUnmount(() => { - uniLabel.removeHandler(_onClick); - }); - } - useListeners$1(props2, { - "label-click": _onClick - }); - return () => { - var booleanAttrs = useBooleanAttr(props2, "disabled"); - return createVNode("uni-radio", mergeProps(booleanAttrs, { - "onClick": _onClick - }), [createVNode("div", { - "class": "uni-radio-wrapper" - }, [createVNode("div", { - "class": ["uni-radio-input", { - "uni-radio-input-disabled": props2.disabled - }], - "style": radioChecked.value ? checkedStyle.value : "" - }, [radioChecked.value ? createSvgIconVNode(ICON_PATH_SUCCESS_NO_CIRCLE, "#fff", 18) : ""], 6), slots.default && slots.default()])], 16, ["onClick"]); - }; - } - }); - function useRadioInject(radioChecked, radioValue, reset2) { - var field = computed$1({ - get: () => ({ - radioChecked: Boolean(radioChecked.value), - value: radioValue.value - }), - set: (_ref3) => { - var { - radioChecked: checked - } = _ref3; - radioChecked.value = checked; - } - }); - var formField = { - reset: reset2 - }; - var uniCheckGroup = inject(uniRadioGroupKey, false); - if (!!uniCheckGroup) { - uniCheckGroup.addField(field); - } - var uniForm = inject(uniFormKey, false); - if (!!uniForm) { - uniForm.addField(formField); - } - var uniLabel = inject(uniLabelKey, false); - onBeforeUnmount(() => { - uniCheckGroup && uniCheckGroup.removeField(field); - uniForm && uniForm.removeField(formField); - }); - return { - uniCheckGroup, - uniForm, - uniLabel, - field - }; - } - var TAGS = { - a: "", - abbr: "", - address: "", - article: "", - aside: "", - b: "", - bdi: "", - bdo: ["dir"], - big: "", - blockquote: "", - br: "", - caption: "", - center: "", - cite: "", - code: "", - col: ["span", "width"], - colgroup: ["span", "width"], - dd: "", - del: "", - div: "", - dl: "", - dt: "", - em: "", - fieldset: "", - font: "", - footer: "", - h1: "", - h2: "", - h3: "", - h4: "", - h5: "", - h6: "", - header: "", - hr: "", - i: "", - img: ["alt", "src", "height", "width"], - ins: "", - label: "", - legend: "", - li: "", - mark: "", - nav: "", - ol: ["start", "type"], - p: "", - pre: "", - q: "", - rt: "", - ruby: "", - s: "", - section: "", - small: "", - span: "", - strong: "", - sub: "", - sup: "", - table: ["width"], - tbody: "", - td: ["colspan", "height", "rowspan", "width"], - tfoot: "", - th: ["colspan", "height", "rowspan", "width"], - thead: "", - tr: ["colspan", "height", "rowspan", "width"], - tt: "", - u: "", - ul: "" - }; - var CHARS = { - amp: "&", - gt: ">", - lt: "<", - nbsp: " ", - quot: '"', - apos: "'" - }; - function decodeEntities(htmlString) { - return htmlString.replace(/&(([a-zA-Z]+)|(#x{0,1}[\da-zA-Z]+));/gi, function(match, stage) { - if (hasOwn$1(CHARS, stage) && CHARS[stage]) { - return CHARS[stage]; - } - if (/^#[0-9]{1,4}$/.test(stage)) { - return String.fromCharCode(stage.slice(1)); - } - if (/^#x[0-9a-f]{1,4}$/i.test(stage)) { - return String.fromCharCode("0" + stage.slice(1)); - } - var wrap = document.createElement("div"); - wrap.innerHTML = match; - return wrap.innerText || wrap.textContent; - }); - } - function normlizeValue(tagName, name, value) { - if (tagName === "img" && name === "src") - return getRealPath(value); - return value; - } - function parseNodes(nodes, parentNode, scopeId, triggerItemClick) { - nodes.forEach(function(node) { - if (!isPlainObject(node)) { - return; - } - if (!hasOwn$1(node, "type") || node.type === "node") { - if (!(typeof node.name === "string" && node.name)) { - return; - } - var tagName = node.name.toLowerCase(); - if (!hasOwn$1(TAGS, tagName)) { - return; - } - var elem = document.createElement(tagName); - if (!elem) { - return; - } - var attrs2 = node.attrs; - if (isPlainObject(attrs2)) { - var tagAttrs = TAGS[tagName] || []; - Object.keys(attrs2).forEach(function(name) { - var value = attrs2[name]; - switch (name) { - case "class": - Array.isArray(value) && (value = value.join(" ")); - case "style": - elem.setAttribute(name, value); - scopeId && elem.setAttribute(scopeId, ""); - break; - default: - if (tagAttrs.indexOf(name) !== -1) { - elem.setAttribute(name, normlizeValue(tagName, name, value)); - } - } - }); - } - processClickEvent(node, elem, triggerItemClick); - var children = node.children; - if (Array.isArray(children) && children.length) { - parseNodes(node.children, elem, scopeId, triggerItemClick); - } - parentNode.appendChild(elem); - } else { - if (node.type === "text" && typeof node.text === "string" && node.text !== "") { - parentNode.appendChild(document.createTextNode(decodeEntities(node.text))); - } - } - }); - return parentNode; - } - function processClickEvent(node, elem, triggerItemClick) { - if (["a", "img"].includes(node.name) && triggerItemClick) { - elem.setAttribute("onClick", "return false;"); - elem.addEventListener("click", (e2) => { - triggerItemClick(e2, { - node - }); - e2.stopPropagation(); - }, true); - } - } - function removeDOCTYPE(html) { - return html.replace(/<\?xml.*\?>\n/, "").replace(/\n/, "").replace(/\n/, ""); - } - function parseAttrs(attrs2) { - return attrs2.reduce(function(pre, attr2) { - var value = attr2.value; - var name = attr2.name; - if (value.match(/ /) && name !== "style") { - value = value.split(" "); - } - if (pre[name]) { - if (Array.isArray(pre[name])) { - pre[name].push(value); - } else { - pre[name] = [pre[name], value]; - } - } else { - pre[name] = value; - } - return pre; - }, {}); - } - function parseHtml(html) { - html = removeDOCTYPE(html); - var stacks = []; - var results = { - node: "root", - children: [] - }; - HTMLParser(html, { - start: function(tag, attrs2, unary) { - var node = { - name: tag - }; - if (attrs2.length !== 0) { - node.attrs = parseAttrs(attrs2); - } - if (unary) { - var parent = stacks[0] || results; - if (!parent.children) { - parent.children = []; - } - parent.children.push(node); - } else { - stacks.unshift(node); - } - }, - end: function(tag) { - var node = stacks.shift(); - if (node.name !== tag) - console.error("invalid state: mismatch end tag"); - if (stacks.length === 0) { - results.children.push(node); - } else { - var parent = stacks[0]; - if (!parent.children) { - parent.children = []; - } - parent.children.push(node); - } - }, - chars: function(text2) { - var node = { - type: "text", - text: text2 - }; - if (stacks.length === 0) { - results.children.push(node); - } else { - var parent = stacks[0]; - if (!parent.children) { - parent.children = []; - } - parent.children.push(node); - } - }, - comment: function(text2) { - var node = { - node: "comment", - text: text2 - }; - var parent = stacks[0]; - if (!parent.children) { - parent.children = []; - } - parent.children.push(node); - } - }); - return results.children; - } - var props$c = { - nodes: { - type: [Array, String], - default: function() { - return []; - } - } - }; - var RichText = /* @__PURE__ */ defineBuiltInComponent({ - name: "RichText", - compatConfig: { - MODE: 3 - }, - props: props$c, - emits: ["click", "touchstart", "touchmove", "touchcancel", "touchend", "longpress"], - setup(props2, _ref) { - var { - emit: emit2, - attrs: attrs2 - } = _ref; - var vm = getCurrentInstance(); - var rootRef = ref(null); - var trigger2 = useCustomEvent(rootRef, emit2); - var hasItemClick = !!attrs2.onItemclick; - function triggerItemClick(e2) { - var detail = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; - trigger2("itemclick", e2, detail); - } - function _renderNodes(nodes) { - if (typeof nodes === "string") { - nodes = parseHtml(nodes); - } - var nodeList = parseNodes(nodes, document.createDocumentFragment(), vm && vm.vnode.scopeId || "", hasItemClick && triggerItemClick); - rootRef.value.firstElementChild.innerHTML = ""; - rootRef.value.firstElementChild.appendChild(nodeList); - } - watch(() => props2.nodes, (value) => { - _renderNodes(value); - }); - onMounted(() => { - _renderNodes(props2.nodes); - }); - return () => { - return createVNode("uni-rich-text", { - "ref": rootRef - }, [createVNode("div", null, null)], 512); - }; - } - }); - var passiveOptions = /* @__PURE__ */ passive(true); - var props$b = { - scrollX: { - type: [Boolean, String], - default: false - }, - scrollY: { - type: [Boolean, String], - default: false - }, - upperThreshold: { - type: [Number, String], - default: 50 - }, - lowerThreshold: { - type: [Number, String], - default: 50 - }, - scrollTop: { - type: [Number, String], - default: 0 - }, - scrollLeft: { - type: [Number, String], - default: 0 - }, - scrollIntoView: { - type: String, - default: "" - }, - scrollWithAnimation: { - type: [Boolean, String], - default: false - }, - enableBackToTop: { - type: [Boolean, String], - default: false - }, - refresherEnabled: { - type: [Boolean, String], - default: false - }, - refresherThreshold: { - type: Number, - default: 45 - }, - refresherDefaultStyle: { - type: String, - default: "back" - }, - refresherBackground: { - type: String, - default: "#fff" - }, - refresherTriggered: { - type: [Boolean, String], - default: false - } - }; - var ScrollView = /* @__PURE__ */ defineBuiltInComponent({ - name: "ScrollView", - compatConfig: { - MODE: 3 - }, - props: props$b, - emits: ["scroll", "scrolltoupper", "scrolltolower", "refresherrefresh", "refresherrestore", "refresherpulling", "refresherabort", "update:refresherTriggered"], - setup(props2, _ref) { - var { - emit: emit2, - slots - } = _ref; - var rootRef = ref(null); - var main = ref(null); - var wrap = ref(null); - var content = ref(null); - var refresherinner = ref(null); - var trigger2 = useCustomEvent(rootRef, emit2); - var { - state, - scrollTopNumber, - scrollLeftNumber - } = useScrollViewState(props2); - useScrollViewLoader(props2, state, scrollTopNumber, scrollLeftNumber, trigger2, rootRef, main, content, emit2); - var mainStyle = computed$1(() => { - var style = ""; - props2.scrollX ? style += "overflow-x:auto;" : style += "overflow-x:hidden;"; - props2.scrollY ? style += "overflow-y:auto;" : style += "overflow-y:hidden;"; - return style; - }); - return () => { - var { - refresherEnabled, - refresherBackground, - refresherDefaultStyle - } = props2; - var { - refresherHeight, - refreshState, - refreshRotate - } = state; - return createVNode("uni-scroll-view", { - "ref": rootRef - }, [createVNode("div", { - "ref": wrap, - "class": "uni-scroll-view" - }, [createVNode("div", { - "ref": main, - "style": mainStyle.value, - "class": "uni-scroll-view" - }, [createVNode("div", { - "ref": content, - "class": "uni-scroll-view-content" - }, [refresherEnabled ? createVNode("div", { - "ref": refresherinner, - "style": { - backgroundColor: refresherBackground, - height: refresherHeight + "px" - }, - "class": "uni-scroll-view-refresher" - }, [refresherDefaultStyle !== "none" ? createVNode("div", { - "class": "uni-scroll-view-refresh" - }, [createVNode("div", { - "class": "uni-scroll-view-refresh-inner" - }, [refreshState == "pulling" ? createVNode("svg", { - "key": "refresh__icon", - "style": { - transform: "rotate(" + refreshRotate + "deg)" - }, - "fill": "#2BD009", - "class": "uni-scroll-view-refresh__icon", - "width": "24", - "height": "24", - "viewBox": "0 0 24 24" - }, [createVNode("path", { - "d": "M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z" - }, null), createVNode("path", { - "d": "M0 0h24v24H0z", - "fill": "none" - }, null)], 4) : null, refreshState == "refreshing" ? createVNode("svg", { - "key": "refresh__spinner", - "class": "uni-scroll-view-refresh__spinner", - "width": "24", - "height": "24", - "viewBox": "25 25 50 50" - }, [createVNode("circle", { - "cx": "50", - "cy": "50", - "r": "20", - "fill": "none", - "style": "color: #2bd009", - "stroke-width": "3" - }, null)]) : null])]) : null, refresherDefaultStyle == "none" ? slots.refresher && slots.refresher() : null], 4) : null, slots.default && slots.default()], 512)], 4)], 512)], 512); - }; - } - }); - function useScrollViewState(props2) { - var scrollTopNumber = computed$1(() => { - return Number(props2.scrollTop) || 0; - }); - var scrollLeftNumber = computed$1(() => { - return Number(props2.scrollLeft) || 0; - }); - var state = reactive({ - lastScrollTop: scrollTopNumber.value, - lastScrollLeft: scrollLeftNumber.value, - lastScrollToUpperTime: 0, - lastScrollToLowerTime: 0, - refresherHeight: 0, - refreshRotate: 0, - refreshState: "" - }); - return { - state, - scrollTopNumber, - scrollLeftNumber - }; - } - function useScrollViewLoader(props2, state, scrollTopNumber, scrollLeftNumber, trigger2, rootRef, main, content, emit2) { - var beforeRefreshing = false; - var toUpperNumber = 0; - var triggerAbort = false; - var __transitionEnd = () => { - }; - var upperThresholdNumber = computed$1(() => { - var val = Number(props2.upperThreshold); - return isNaN(val) ? 50 : val; - }); - var lowerThresholdNumber = computed$1(() => { - var val = Number(props2.lowerThreshold); - return isNaN(val) ? 50 : val; - }); - function scrollTo2(scrollToValue, direction2) { - var container = main.value; - var transformValue = 0; - var transform = ""; - scrollToValue < 0 ? scrollToValue = 0 : direction2 === "x" && scrollToValue > container.scrollWidth - container.offsetWidth ? scrollToValue = container.scrollWidth - container.offsetWidth : direction2 === "y" && scrollToValue > container.scrollHeight - container.offsetHeight && (scrollToValue = container.scrollHeight - container.offsetHeight); - direction2 === "x" ? transformValue = container.scrollLeft - scrollToValue : direction2 === "y" && (transformValue = container.scrollTop - scrollToValue); - if (transformValue === 0) - return; - var _content = content.value; - _content.style.transition = "transform .3s ease-out"; - _content.style.webkitTransition = "-webkit-transform .3s ease-out"; - if (direction2 === "x") { - transform = "translateX(" + transformValue + "px) translateZ(0)"; - } else { - direction2 === "y" && (transform = "translateY(" + transformValue + "px) translateZ(0)"); - } - _content.removeEventListener("transitionend", __transitionEnd); - _content.removeEventListener("webkitTransitionEnd", __transitionEnd); - __transitionEnd = () => _transitionEnd(scrollToValue, direction2); - _content.addEventListener("transitionend", __transitionEnd); - _content.addEventListener("webkitTransitionEnd", __transitionEnd); - if (direction2 === "x") { - container.style.overflowX = "hidden"; - } else if (direction2 === "y") { - container.style.overflowY = "hidden"; - } - _content.style.transform = transform; - _content.style.webkitTransform = transform; - } - function _handleScroll($event) { - var target = $event.target; - trigger2("scroll", $event, { - scrollLeft: target.scrollLeft, - scrollTop: target.scrollTop, - scrollHeight: target.scrollHeight, - scrollWidth: target.scrollWidth, - deltaX: state.lastScrollLeft - target.scrollLeft, - deltaY: state.lastScrollTop - target.scrollTop - }); - if (props2.scrollY) { - if (target.scrollTop <= upperThresholdNumber.value && state.lastScrollTop - target.scrollTop > 0 && $event.timeStamp - state.lastScrollToUpperTime > 200) { - trigger2("scrolltoupper", $event, { - direction: "top" - }); - state.lastScrollToUpperTime = $event.timeStamp; - } - if (target.scrollTop + target.offsetHeight + lowerThresholdNumber.value >= target.scrollHeight && state.lastScrollTop - target.scrollTop < 0 && $event.timeStamp - state.lastScrollToLowerTime > 200) { - trigger2("scrolltolower", $event, { - direction: "bottom" - }); - state.lastScrollToLowerTime = $event.timeStamp; - } - } - if (props2.scrollX) { - if (target.scrollLeft <= upperThresholdNumber.value && state.lastScrollLeft - target.scrollLeft > 0 && $event.timeStamp - state.lastScrollToUpperTime > 200) { - trigger2("scrolltoupper", $event, { - direction: "left" - }); - state.lastScrollToUpperTime = $event.timeStamp; - } - if (target.scrollLeft + target.offsetWidth + lowerThresholdNumber.value >= target.scrollWidth && state.lastScrollLeft - target.scrollLeft < 0 && $event.timeStamp - state.lastScrollToLowerTime > 200) { - trigger2("scrolltolower", $event, { - direction: "right" - }); - state.lastScrollToLowerTime = $event.timeStamp; - } - } - state.lastScrollTop = target.scrollTop; - state.lastScrollLeft = target.scrollLeft; - } - function _scrollTopChanged(val) { - if (props2.scrollY) { - { - if (props2.scrollWithAnimation) { - scrollTo2(val, "y"); - } else { - main.value.scrollTop = val; - } - } - } - } - function _scrollLeftChanged(val) { - if (props2.scrollX) { - { - if (props2.scrollWithAnimation) { - scrollTo2(val, "x"); - } else { - main.value.scrollLeft = val; - } - } - } - } - function _scrollIntoViewChanged(val) { - if (val) { - if (!/^[_a-zA-Z][-_a-zA-Z0-9:]*$/.test(val)) { - console.error("id error: scroll-into-view=".concat(val)); - return; - } - var element = rootRef.value.querySelector("#" + val); - if (element) { - var mainRect = main.value.getBoundingClientRect(); - var elRect = element.getBoundingClientRect(); - if (props2.scrollX) { - var left = elRect.left - mainRect.left; - var scrollLeft = main.value.scrollLeft; - var x = scrollLeft + left; - if (props2.scrollWithAnimation) { - scrollTo2(x, "x"); - } else { - main.value.scrollLeft = x; - } - } - if (props2.scrollY) { - var top = elRect.top - mainRect.top; - var scrollTop = main.value.scrollTop; - var y = scrollTop + top; - if (props2.scrollWithAnimation) { - scrollTo2(y, "y"); - } else { - main.value.scrollTop = y; - } - } - } - } - } - function _transitionEnd(val, direction2) { - content.value.style.transition = ""; - content.value.style.webkitTransition = ""; - content.value.style.transform = ""; - content.value.style.webkitTransform = ""; - var _main = main.value; - if (direction2 === "x") { - _main.style.overflowX = props2.scrollX ? "auto" : "hidden"; - _main.scrollLeft = val; - } else if (direction2 === "y") { - _main.style.overflowY = props2.scrollY ? "auto" : "hidden"; - _main.scrollTop = val; - } - content.value.removeEventListener("transitionend", __transitionEnd); - content.value.removeEventListener("webkitTransitionEnd", __transitionEnd); - } - function _setRefreshState(_state) { - switch (_state) { - case "refreshing": - state.refresherHeight = props2.refresherThreshold; - if (!beforeRefreshing) { - beforeRefreshing = true; - trigger2("refresherrefresh", {}, {}); - emit2("update:refresherTriggered", true); - } - break; - case "restore": - case "refresherabort": - beforeRefreshing = false; - state.refresherHeight = toUpperNumber = 0; - if (_state === "restore") { - triggerAbort = false; - trigger2("refresherrestore", {}, {}); - } - if (_state === "refresherabort" && triggerAbort) { - triggerAbort = false; - trigger2("refresherabort", {}, {}); - } - break; - } - state.refreshState = _state; - } - onMounted(() => { - nextTick(() => { - _scrollTopChanged(scrollTopNumber.value); - _scrollLeftChanged(scrollLeftNumber.value); - }); - _scrollIntoViewChanged(props2.scrollIntoView); - var __handleScroll = function(event) { - event.preventDefault(); - event.stopPropagation(); - _handleScroll(event); - }; - var touchStart = { - x: 0, - y: 0 - }; - var needStop = null; - var __handleTouchMove = function(event) { - if (touchStart === null) - return; - var x = event.touches[0].pageX; - var y = event.touches[0].pageY; - var _main = main.value; - if (Math.abs(x - touchStart.x) > Math.abs(y - touchStart.y)) { - if (props2.scrollX) { - if (_main.scrollLeft === 0 && x > touchStart.x) { - needStop = false; - return; - } else if (_main.scrollWidth === _main.offsetWidth + _main.scrollLeft && x < touchStart.x) { - needStop = false; - return; - } - needStop = true; - } else { - needStop = false; - } - } else { - if (props2.scrollY) { - if (_main.scrollTop === 0 && y > touchStart.y) { - needStop = false; - if (props2.refresherEnabled && event.cancelable !== false) - event.preventDefault(); - } else if (_main.scrollHeight === _main.offsetHeight + _main.scrollTop && y < touchStart.y) { - needStop = false; - return; - } else { - needStop = true; - } - } else { - needStop = false; - } - } - if (needStop) { - event.stopPropagation(); - } - if (_main.scrollTop === 0 && event.touches.length === 1) { - state.refreshState = "pulling"; - } - if (props2.refresherEnabled && state.refreshState === "pulling") { - var dy = y - touchStart.y; - if (toUpperNumber === 0) { - toUpperNumber = y; - } - if (!beforeRefreshing) { - state.refresherHeight = y - toUpperNumber; - if (state.refresherHeight > 0) { - triggerAbort = true; - trigger2("refresherpulling", event, { - deltaY: dy - }); - } - } else { - state.refresherHeight = dy + props2.refresherThreshold; - triggerAbort = false; - } - var route = state.refresherHeight / props2.refresherThreshold; - state.refreshRotate = (route > 1 ? 1 : route) * 360; - } - }; - var __handleTouchStart = function(event) { - if (event.touches.length === 1) { - disableScrollBounce({ - disable: true - }); - touchStart = { - x: event.touches[0].pageX, - y: event.touches[0].pageY - }; - } - }; - var __handleTouchEnd = function(event) { - touchStart = null; - disableScrollBounce({ - disable: false - }); - if (state.refresherHeight >= props2.refresherThreshold) { - _setRefreshState("refreshing"); - } else { - _setRefreshState("refresherabort"); - } - }; - main.value.addEventListener("touchstart", __handleTouchStart, passiveOptions); - main.value.addEventListener("touchmove", __handleTouchMove, passive(false)); - main.value.addEventListener("scroll", __handleScroll, passive(false)); - main.value.addEventListener("touchend", __handleTouchEnd, passiveOptions); - initScrollBounce(); - onBeforeUnmount(() => { - main.value.removeEventListener("touchstart", __handleTouchStart); - main.value.removeEventListener("touchmove", __handleTouchMove); - main.value.removeEventListener("scroll", __handleScroll); - main.value.removeEventListener("touchend", __handleTouchEnd); - }); - }); - onActivated(() => { - props2.scrollY && (main.value.scrollTop = state.lastScrollTop); - props2.scrollX && (main.value.scrollLeft = state.lastScrollLeft); - }); - watch(scrollTopNumber, (val) => { - _scrollTopChanged(val); - }); - watch(scrollLeftNumber, (val) => { - _scrollLeftChanged(val); - }); - watch(() => props2.scrollIntoView, (val) => { - _scrollIntoViewChanged(val); - }); - watch(() => props2.refresherTriggered, (val) => { - if (val === true) { - _setRefreshState("refreshing"); - } else if (val === false) { - _setRefreshState("restore"); - } - }); - } - var props$a = { - name: { - type: String, - default: "" - }, - min: { - type: [Number, String], - default: 0 - }, - max: { - type: [Number, String], - default: 100 - }, - value: { - type: [Number, String], - default: 0 - }, - step: { - type: [Number, String], - default: 1 - }, - disabled: { - type: [Boolean, String], - default: false - }, - color: { - type: String, - default: "#e9e9e9" - }, - backgroundColor: { - type: String, - default: "#e9e9e9" - }, - activeColor: { - type: String, - default: "#007aff" - }, - selectedColor: { - type: String, - default: "#007aff" - }, - blockColor: { - type: String, - default: "#ffffff" - }, - blockSize: { - type: [Number, String], - default: 28 - }, - showValue: { - type: [Boolean, String], - default: false - } - }; - var Slider = /* @__PURE__ */ defineBuiltInComponent({ - name: "Slider", - props: props$a, - emits: ["changing", "change"], - setup(props2, _ref) { - var { - emit: emit2 - } = _ref; - var sliderRef = ref(null); - var sliderValueRef = ref(null); - var sliderHandleRef = ref(null); - var sliderValue = ref(Number(props2.value)); - watch(() => props2.value, (val) => { - sliderValue.value = Number(val); - }); - var trigger2 = useCustomEvent(sliderRef, emit2); - var state = useSliderState(props2, sliderValue); - var { - _onClick, - _onTrack - } = useSliderLoader(props2, sliderValue, sliderRef, sliderValueRef, trigger2); - onMounted(() => { - useTouchtrack(sliderHandleRef.value, _onTrack); - }); - return () => { - var { - setBgColor, - setBlockBg, - setActiveColor, - setBlockStyle - } = state; - return createVNode("uni-slider", { - "ref": sliderRef, - "onClick": withWebEvent(_onClick) - }, [createVNode("div", { - "class": "uni-slider-wrapper" - }, [createVNode("div", { - "class": "uni-slider-tap-area" - }, [createVNode("div", { - "style": setBgColor.value, - "class": "uni-slider-handle-wrapper" - }, [createVNode("div", { - "ref": sliderHandleRef, - "style": setBlockBg.value, - "class": "uni-slider-handle" - }, null, 4), createVNode("div", { - "style": setBlockStyle.value, - "class": "uni-slider-thumb" - }, null, 4), createVNode("div", { - "style": setActiveColor.value, - "class": "uni-slider-track" - }, null, 4)], 4)]), withDirectives(createVNode("span", { - "ref": sliderValueRef, - "class": "uni-slider-value" - }, [sliderValue.value], 512), [[vShow, props2.showValue]])]), createVNode("slot", null, null)], 8, ["onClick"]); - }; - } - }); - function useSliderState(props2, sliderValue) { - var _getValueWidth = () => { - var max2 = Number(props2.max); - var min2 = Number(props2.min); - return 100 * (sliderValue.value - min2) / (max2 - min2) + "%"; - }; - var _getBgColor = () => { - return props2.backgroundColor !== "#e9e9e9" ? props2.backgroundColor : props2.color !== "#007aff" ? props2.color : "#007aff"; - }; - var _getActiveColor = () => { - return props2.activeColor !== "#007aff" ? props2.activeColor : props2.selectedColor !== "#e9e9e9" ? props2.selectedColor : "#e9e9e9"; - }; - var state = { - setBgColor: computed$1(() => ({ - backgroundColor: _getBgColor() - })), - setBlockBg: computed$1(() => ({ - left: _getValueWidth() - })), - setActiveColor: computed$1(() => ({ - backgroundColor: _getActiveColor(), - width: _getValueWidth() - })), - setBlockStyle: computed$1(() => ({ - width: props2.blockSize + "px", - height: props2.blockSize + "px", - marginLeft: -props2.blockSize / 2 + "px", - marginTop: -props2.blockSize / 2 + "px", - left: _getValueWidth(), - backgroundColor: props2.blockColor - })) - }; - return state; - } - function useSliderLoader(props2, sliderValue, sliderRef, sliderValueRef, trigger2) { - var _onClick = ($event) => { - if (props2.disabled) { - return; - } - _onUserChangedValue($event); - trigger2("change", $event, { - value: sliderValue.value - }); - }; - var _filterValue = (e2) => { - var max2 = Number(props2.max); - var min2 = Number(props2.min); - var step2 = Number(props2.step); - return e2 < min2 ? min2 : e2 > max2 ? max2 : computeController.mul.call(Math.round((e2 - min2) / step2), step2) + min2; - }; - var _onUserChangedValue = (e2) => { - var max2 = Number(props2.max); - var min2 = Number(props2.min); - var sliderRightBox = sliderValueRef.value; - var sliderRightBoxLeft = getComputedStyle(sliderRightBox, null).marginLeft; - var sliderRightBoxWidth = sliderRightBox.offsetWidth; - sliderRightBoxWidth = sliderRightBoxWidth + parseInt(sliderRightBoxLeft); - var slider2 = sliderRef.value; - var offsetWidth = slider2.offsetWidth - (props2.showValue ? sliderRightBoxWidth : 0); - var boxLeft = slider2.getBoundingClientRect().left; - var value = (e2.x - boxLeft) * (max2 - min2) / offsetWidth + min2; - sliderValue.value = _filterValue(value); - }; - var _onTrack = (e2) => { - if (!props2.disabled) { - return e2.detail.state === "move" ? (_onUserChangedValue({ - x: e2.detail.x - }), trigger2("changing", e2, { - value: sliderValue.value - }), false) : e2.detail.state === "end" && trigger2("change", e2, { - value: sliderValue.value - }); - } - }; - var uniForm = inject(uniFormKey, false); - if (!!uniForm) { - var field = { - reset: () => sliderValue.value = Number(props2.min), - submit: () => { - var data = ["", null]; - if (props2.name !== "") { - data[0] = props2.name; - data[1] = sliderValue.value; - } - return data; - } - }; - uniForm.addField(field); - onBeforeUnmount(() => { - uniForm.removeField(field); - }); - } - return { - _onClick, - _onTrack - }; - } - var computeController = { - mul: function(arg) { - var m = 0; - var s1 = this.toString(); - var s2 = arg.toString(); - try { - m += s1.split(".")[1].length; - } catch (e2) { - } - try { - m += s2.split(".")[1].length; - } catch (e2) { - } - return Number(s1.replace(".", "")) * Number(s2.replace(".", "")) / Math.pow(10, m); - } - }; - var props$9 = { - indicatorDots: { - type: [Boolean, String], - default: false - }, - vertical: { - type: [Boolean, String], - default: false - }, - autoplay: { - type: [Boolean, String], - default: false - }, - circular: { - type: [Boolean, String], - default: false - }, - interval: { - type: [Number, String], - default: 5e3 - }, - duration: { - type: [Number, String], - default: 500 - }, - current: { - type: [Number, String], - default: 0 - }, - indicatorColor: { - type: String, - default: "" - }, - indicatorActiveColor: { - type: String, - default: "" - }, - previousMargin: { - type: String, - default: "" - }, - nextMargin: { - type: String, - default: "" - }, - currentItemId: { - type: String, - default: "" - }, - skipHiddenItemLayout: { - type: [Boolean, String], - default: false - }, - displayMultipleItems: { - type: [Number, String], - default: 1 - }, - disableTouch: { - type: [Boolean, String], - default: false - } - }; - function useState(props2) { - var interval = computed$1(() => { - var interval2 = Number(props2.interval); - return isNaN(interval2) ? 5e3 : interval2; - }); - var duration = computed$1(() => { - var duration2 = Number(props2.duration); - return isNaN(duration2) ? 500 : duration2; - }); - var displayMultipleItems = computed$1(() => { - var displayMultipleItems2 = Math.round(props2.displayMultipleItems); - return isNaN(displayMultipleItems2) ? 1 : displayMultipleItems2; - }); - var state = reactive({ - interval, - duration, - displayMultipleItems, - current: Math.round(props2.current) || 0, - currentItemId: props2.currentItemId, - userTracking: false - }); - return state; - } - function useLayout(props2, state, swiperContexts, slideFrameRef, emit2, trigger2) { - function cancelSchedule() { - if (timer) { - clearTimeout(timer); - timer = null; - } - } - var timer = null; - var invalid = true; - var viewportPosition = 0; - var viewportMoveRatio = 1; - var animating = null; - var requestedAnimation = false; - var contentTrackViewport = 0; - var transitionStart; - var currentChangeSource = ""; - var animationFrame; - var circularEnabled = computed$1(() => props2.circular && swiperContexts.value.length > state.displayMultipleItems); - function checkCircularLayout(index2) { - if (!invalid) { - for (var items = swiperContexts.value, n = items.length, i2 = index2 + state.displayMultipleItems, r = 0; r < n; r++) { - var item = items[r]; - var s = Math.floor(index2 / n) * n + r; - var l = s + n; - var c2 = s - n; - var u = Math.max(index2 - (s + 1), s - i2, 0); - var d = Math.max(index2 - (l + 1), l - i2, 0); - var h2 = Math.max(index2 - (c2 + 1), c2 - i2, 0); - var p2 = Math.min(u, d, h2); - var position = [s, l, c2][[u, d, h2].indexOf(p2)]; - item.updatePosition(position, props2.vertical); - } - } - } - function updateViewport(index2) { - if (!(Math.floor(2 * viewportPosition) === Math.floor(2 * index2) && Math.ceil(2 * viewportPosition) === Math.ceil(2 * index2))) { - if (circularEnabled.value) { - checkCircularLayout(index2); - } - } - var x = props2.vertical ? "0" : 100 * -index2 * viewportMoveRatio + "%"; - var y = props2.vertical ? 100 * -index2 * viewportMoveRatio + "%" : "0"; - var transform = "translate(" + x + ", " + y + ") translateZ(0)"; - var slideFrame = slideFrameRef.value; - if (slideFrame) { - slideFrame.style.webkitTransform = transform; - slideFrame.style.transform = transform; - } - viewportPosition = index2; - if (!transitionStart) { - if (index2 % 1 === 0) { - return; - } - transitionStart = index2; - } - index2 -= Math.floor(transitionStart); - var items = swiperContexts.value; - if (index2 <= -(items.length - 1)) { - index2 += items.length; - } else if (index2 >= items.length) { - index2 -= items.length; - } - index2 = transitionStart % 1 > 0.5 || transitionStart < 0 ? index2 - 1 : index2; - trigger2("transition", {}, { - dx: props2.vertical ? 0 : index2 * slideFrame.offsetWidth, - dy: props2.vertical ? index2 * slideFrame.offsetHeight : 0 - }); - } - function endViewportAnimation() { - if (animating) { - updateViewport(animating.toPos); - animating = null; - } - } - function normalizeCurrentValue(current) { - var length = swiperContexts.value.length; - if (!length) { - return -1; - } - var index2 = (Math.round(current) % length + length) % length; - if (circularEnabled.value) { - if (length <= state.displayMultipleItems) { - return 0; - } - } else if (index2 > length - state.displayMultipleItems) { - return length - state.displayMultipleItems; - } - return index2; - } - function cancelViewportAnimation() { - animating = null; - } - function animateFrameFuncProto() { - if (!animating) { - requestedAnimation = false; - return; - } - var _animating = animating; - var toPos = _animating.toPos; - var acc = _animating.acc; - var endTime = _animating.endTime; - var source = _animating.source; - var time = endTime - Date.now(); - if (time <= 0) { - updateViewport(toPos); - animating = null; - requestedAnimation = false; - transitionStart = null; - var item = swiperContexts.value[state.current]; - if (item) { - var currentItemId = item.getItemId(); - trigger2("animationfinish", {}, { - current: state.current, - currentItemId, - source - }); - } - return; - } - var s = acc * time * time / 2; - var l = toPos + s; - updateViewport(l); - animationFrame = requestAnimationFrame(animateFrameFuncProto); - } - function animateViewport(current, source, n) { - cancelViewportAnimation(); - var duration = state.duration; - var length = swiperContexts.value.length; - var position = viewportPosition; - if (circularEnabled.value) { - if (n < 0) { - for (; position < current; ) { - position += length; - } - for (; position - length > current; ) { - position -= length; - } - } else if (n > 0) { - for (; position > current; ) { - position -= length; - } - for (; position + length < current; ) { - position += length; - } - if (position + length - current < current - position) { - position += length; - } - } else { - for (; position + length < current; ) { - position += length; - } - for (; position - length > current; ) { - position -= length; - } - if (position + length - current < current - position) { - position += length; - } - } - } - animating = { - toPos: current, - acc: 2 * (position - current) / (duration * duration), - endTime: Date.now() + duration, - source - }; - if (!requestedAnimation) { - requestedAnimation = true; - animationFrame = requestAnimationFrame(animateFrameFuncProto); - } - } - function scheduleAutoplay() { - cancelSchedule(); - var items = swiperContexts.value; - var callback = function() { - timer = null; - currentChangeSource = "autoplay"; - if (circularEnabled.value) { - state.current = normalizeCurrentValue(state.current + 1); - } else { - state.current = state.current + state.displayMultipleItems < items.length ? state.current + 1 : 0; - } - animateViewport(state.current, "autoplay", circularEnabled.value ? 1 : 0); - timer = setTimeout(callback, state.interval); - }; - if (!(invalid || items.length <= state.displayMultipleItems)) { - timer = setTimeout(callback, state.interval); - } - } - function resetLayout() { - cancelSchedule(); - endViewportAnimation(); - var items = swiperContexts.value; - for (var i2 = 0; i2 < items.length; i2++) { - items[i2].updatePosition(i2, props2.vertical); - } - viewportMoveRatio = 1; - var slideFrameEl = slideFrameRef.value; - if (state.displayMultipleItems === 1 && items.length) { - var itemRect = items[0].getBoundingClientRect(); - var slideFrameRect = slideFrameEl.getBoundingClientRect(); - viewportMoveRatio = itemRect.width / slideFrameRect.width; - if (!(viewportMoveRatio > 0 && viewportMoveRatio < 1)) { - viewportMoveRatio = 1; - } - } - var position = viewportPosition; - viewportPosition = -2; - var current = state.current; - if (current >= 0) { - invalid = false; - if (state.userTracking) { - updateViewport(position + current - contentTrackViewport); - contentTrackViewport = current; - } else { - updateViewport(current); - if (props2.autoplay) { - scheduleAutoplay(); - } - } - } else { - invalid = true; - updateViewport(-state.displayMultipleItems - 1); - } - } - watch([() => props2.current, () => props2.currentItemId, () => [...swiperContexts.value]], () => { - var current = -1; - if (props2.currentItemId) { - for (var i2 = 0, items = swiperContexts.value; i2 < items.length; i2++) { - var itemId = items[i2].getItemId(); - if (itemId === props2.currentItemId) { - current = i2; - break; - } - } - } - if (current < 0) { - current = Math.round(props2.current) || 0; - } - current = current < 0 ? 0 : current; - if (state.current !== current) { - currentChangeSource = ""; - state.current = current; - } - }); - watch([() => props2.vertical, () => circularEnabled.value, () => state.displayMultipleItems, () => [...swiperContexts.value]], resetLayout); - watch(() => state.interval, () => { - if (timer) { - cancelSchedule(); - scheduleAutoplay(); - } - }); - function currentChanged(current, history) { - var source = currentChangeSource; - currentChangeSource = ""; - var items = swiperContexts.value; - if (!source) { - var length = items.length; - animateViewport(current, "", circularEnabled.value && history + (length - current) % length > length / 2 ? 1 : 0); - } - var item = items[current]; - if (item) { - var currentItemId = state.currentItemId = item.getItemId(); - trigger2("change", {}, { - current: state.current, - currentItemId, - source - }); - } - } - watch(() => state.current, (val, oldVal) => { - currentChanged(val, oldVal); - emit2("update:current", val); - }); - watch(() => state.currentItemId, (val) => { - emit2("update:currentItemId", val); - }); - function inintAutoplay(enable) { - if (enable) { - scheduleAutoplay(); - } else { - cancelSchedule(); - } - } - watch(() => props2.autoplay && !state.userTracking, inintAutoplay); - inintAutoplay(props2.autoplay && !state.userTracking); - onMounted(() => { - var userDirectionChecked = false; - var contentTrackSpeed = 0; - var contentTrackT = 0; - function handleTrackStart() { - cancelSchedule(); - contentTrackViewport = viewportPosition; - contentTrackSpeed = 0; - contentTrackT = Date.now(); - cancelViewportAnimation(); - } - function handleTrackMove(data) { - var oldContentTrackT = contentTrackT; - contentTrackT = Date.now(); - var length = swiperContexts.value.length; - var other = length - state.displayMultipleItems; - function calc2(val) { - return 0.5 - 0.25 / (val + 0.5); - } - function move(oldVal, newVal) { - var val = contentTrackViewport + oldVal; - contentTrackSpeed = 0.6 * contentTrackSpeed + 0.4 * newVal; - if (!circularEnabled.value) { - if (val < 0 || val > other) { - if (val < 0) { - val = -calc2(-val); - } else { - if (val > other) { - val = other + calc2(val - other); - } - } - contentTrackSpeed = 0; - } - } - updateViewport(val); - } - var time = contentTrackT - oldContentTrackT || 1; - var slideFrameEl = slideFrameRef.value; - if (props2.vertical) { - move(-data.dy / slideFrameEl.offsetHeight, -data.ddy / time); - } else { - move(-data.dx / slideFrameEl.offsetWidth, -data.ddx / time); - } - } - function handleTrackEnd(isCancel) { - state.userTracking = false; - var t2 = contentTrackSpeed / Math.abs(contentTrackSpeed); - var n = 0; - if (!isCancel && Math.abs(contentTrackSpeed) > 0.2) { - n = 0.5 * t2; - } - var current = normalizeCurrentValue(viewportPosition + n); - if (isCancel) { - updateViewport(contentTrackViewport); - } else { - currentChangeSource = "touch"; - state.current = current; - animateViewport(current, "touch", n !== 0 ? n : current === 0 && circularEnabled.value && viewportPosition >= 1 ? 1 : 0); - } - } - useTouchtrack(slideFrameRef.value, (event) => { - if (props2.disableTouch) { - return; - } - if (!invalid) { - if (event.detail.state === "start") { - state.userTracking = true; - userDirectionChecked = false; - return handleTrackStart(); - } - if (event.detail.state === "end") { - return handleTrackEnd(false); - } - if (event.detail.state === "cancel") { - return handleTrackEnd(true); - } - if (state.userTracking) { - if (!userDirectionChecked) { - userDirectionChecked = true; - var t2 = Math.abs(event.detail.dx); - var n = Math.abs(event.detail.dy); - if (t2 >= n && props2.vertical) { - state.userTracking = false; - } else { - if (t2 <= n && !props2.vertical) { - state.userTracking = false; - } - } - if (!state.userTracking) { - if (props2.autoplay) { - scheduleAutoplay(); - } - return; - } - } - handleTrackMove(event.detail); - return false; - } - } - }); - }); - onUnmounted(() => { - cancelSchedule(); - cancelAnimationFrame(animationFrame); - }); - function onSwiperDotClick(index2) { - animateViewport(state.current = index2, currentChangeSource = "click", circularEnabled.value ? 1 : 0); - } - return { - onSwiperDotClick - }; - } - var Swiper = /* @__PURE__ */ defineBuiltInComponent({ - name: "Swiper", - props: props$9, - emits: ["change", "transition", "animationfinish", "update:current", "update:currentItemId"], - setup(props2, _ref) { - var { - slots, - emit: emit2 - } = _ref; - var rootRef = ref(null); - var trigger2 = useCustomEvent(rootRef, emit2); - var slidesWrapperRef = ref(null); - var slideFrameRef = ref(null); - var state = useState(props2); - var slidesStyle = computed$1(() => { - var style = {}; - if (props2.nextMargin || props2.previousMargin) { - style = props2.vertical ? { - left: 0, - right: 0, - top: rpx2px(props2.previousMargin, true), - bottom: rpx2px(props2.nextMargin, true) - } : { - top: 0, - bottom: 0, - left: rpx2px(props2.previousMargin, true), - right: rpx2px(props2.nextMargin, true) - }; - } - return style; - }); - var slideFrameStyle = computed$1(() => { - var value = Math.abs(100 / state.displayMultipleItems) + "%"; - return { - width: props2.vertical ? "100%" : value, - height: !props2.vertical ? "100%" : value - }; - }); - var swiperItems = []; - var originSwiperContexts = []; - var swiperContexts = ref([]); - function updateSwiperContexts() { - var contexts = []; - var _loop = function(index3) { - var swiperItem2 = swiperItems[index3]; - if (!(swiperItem2 instanceof Element)) { - swiperItem2 = swiperItem2.el; - } - var swiperContext = originSwiperContexts.find((context) => swiperItem2 === context.rootRef.value); - if (swiperContext) { - contexts.push(markRaw(swiperContext)); - } - }; - for (var index2 = 0; index2 < swiperItems.length; index2++) { - _loop(index2); - } - swiperContexts.value = contexts; - } - { - useRebuild(() => { - swiperItems = slideFrameRef.value.children; - updateSwiperContexts(); - }); - } - var addSwiperContext = function(swiperContext) { - originSwiperContexts.push(swiperContext); - updateSwiperContexts(); - }; - provide("addSwiperContext", addSwiperContext); - var removeSwiperContext = function(swiperContext) { - var index2 = originSwiperContexts.indexOf(swiperContext); - if (index2 >= 0) { - originSwiperContexts.splice(index2, 1); - updateSwiperContexts(); - } - }; - provide("removeSwiperContext", removeSwiperContext); - var { - onSwiperDotClick - } = useLayout(props2, state, swiperContexts, slideFrameRef, emit2, trigger2); - return () => { - var defaultSlots = slots.default && slots.default(); - swiperItems = flatVNode(defaultSlots); - return createVNode("uni-swiper", { - "ref": rootRef - }, [createVNode("div", { - "ref": slidesWrapperRef, - "class": "uni-swiper-wrapper" - }, [createVNode("div", { - "class": "uni-swiper-slides", - "style": slidesStyle.value - }, [createVNode("div", { - "ref": slideFrameRef, - "class": "uni-swiper-slide-frame", - "style": slideFrameStyle.value - }, [defaultSlots], 4)], 4), props2.indicatorDots && createVNode("div", { - "class": ["uni-swiper-dots", props2.vertical ? "uni-swiper-dots-vertical" : "uni-swiper-dots-horizontal"] - }, [swiperContexts.value.map((_, index2, array) => createVNode("div", { - "onClick": () => onSwiperDotClick(index2), - "class": { - "uni-swiper-dot": true, - "uni-swiper-dot-active": index2 < state.current + state.displayMultipleItems && index2 >= state.current || index2 < state.current + state.displayMultipleItems - array.length - }, - "style": { - background: index2 === state.current ? props2.indicatorActiveColor : props2.indicatorColor - } - }, null, 14, ["onClick"]))], 2)], 512)], 512); - }; - } - }); - var props$8 = { - itemId: { - type: String, - default: "" - } - }; - var SwiperItem = /* @__PURE__ */ defineBuiltInComponent({ - name: "SwiperItem", - props: props$8, - setup(props2, _ref) { - var { - slots - } = _ref; - var rootRef = ref(null); - var context = { - rootRef, - getItemId() { - return props2.itemId; - }, - getBoundingClientRect() { - var el = rootRef.value; - return el.getBoundingClientRect(); - }, - updatePosition(position, vertical) { - var x = vertical ? "0" : 100 * position + "%"; - var y = vertical ? 100 * position + "%" : "0"; - var rootEl = rootRef.value; - var value = "translate(".concat(x, ",").concat(y, ") translateZ(0)"); - if (rootEl) { - rootEl.style.webkitTransform = value; - rootEl.style.transform = value; - } - } - }; - onMounted(() => { - var addSwiperContext = inject("addSwiperContext"); - if (addSwiperContext) { - addSwiperContext(context); - } - }); - onUnmounted(() => { - var removeSwiperContext = inject("removeSwiperContext"); - if (removeSwiperContext) { - removeSwiperContext(context); - } - }); - return () => { - return createVNode("uni-swiper-item", { - "ref": rootRef, - "style": { - position: "absolute", - width: "100%", - height: "100%" - } - }, [slots.default && slots.default()], 512); - }; - } - }); - var props$7 = { - name: { - type: String, - default: "" - }, - checked: { - type: [Boolean, String], - default: false - }, - type: { - type: String, - default: "switch" - }, - id: { - type: String, - default: "" - }, - disabled: { - type: [Boolean, String], - default: false - }, - color: { - type: String, - default: "#007aff" - } - }; - var Switch = /* @__PURE__ */ defineBuiltInComponent({ - name: "Switch", - props: props$7, - emits: ["change"], - setup(props2, _ref) { - var { - emit: emit2 - } = _ref; - var rootRef = ref(null); - var switchChecked = ref(props2.checked); - var uniLabel = useSwitchInject(props2, switchChecked); - var trigger2 = useCustomEvent(rootRef, emit2); - watch(() => props2.checked, (val) => { - switchChecked.value = val; - }); - var _onClick = ($event) => { - if (props2.disabled) { - return; - } - switchChecked.value = !switchChecked.value; - trigger2("change", $event, { - value: switchChecked.value - }); - }; - if (!!uniLabel) { - uniLabel.addHandler(_onClick); - onBeforeUnmount(() => { - uniLabel.removeHandler(_onClick); - }); - } - useListeners$1(props2, { - "label-click": _onClick - }); - return () => { - var { - color, - type - } = props2; - var booleanAttrs = useBooleanAttr(props2, "disabled"); - return createVNode("uni-switch", mergeProps({ - "ref": rootRef - }, booleanAttrs, { - "onClick": _onClick - }), [createVNode("div", { - "class": "uni-switch-wrapper" - }, [withDirectives(createVNode("div", { - "class": ["uni-switch-input", [switchChecked.value ? "uni-switch-input-checked" : ""]], - "style": { - backgroundColor: switchChecked.value ? color : "#DFDFDF", - borderColor: switchChecked.value ? color : "#DFDFDF" - } - }, null, 6), [[vShow, type === "switch"]]), withDirectives(createVNode("div", { - "class": "uni-checkbox-input" - }, [switchChecked.value ? createSvgIconVNode(ICON_PATH_SUCCESS_NO_CIRCLE, props2.color, 22) : ""], 512), [[vShow, type === "checkbox"]])])], 16, ["onClick"]); - }; - } - }); - function useSwitchInject(props2, switchChecked) { - var uniForm = inject(uniFormKey, false); - var uniLabel = inject(uniLabelKey, false); - var formField = { - submit: () => { - var data = ["", null]; - if (props2.name) { - data[0] = props2.name; - data[1] = switchChecked.value; - } - return data; - }, - reset: () => { - switchChecked.value = false; - } - }; - if (!!uniForm) { - uniForm.addField(formField); - onUnmounted(() => { - uniForm.removeField(formField); - }); - } - return uniLabel; - } - var SPACE_UNICODE = { - ensp: "\u2002", - emsp: "\u2003", - nbsp: "\xA0" - }; - function parseText(text2, options) { - return text2.replace(/\\n/g, LINEFEED).split(LINEFEED).map((text22) => { - return normalizeText(text22, options); - }); - } - function normalizeText(text2, _ref) { - var { - space, - decode - } = _ref; - if (!text2) { - return text2; - } - if (space && SPACE_UNICODE[space]) { - text2 = text2.replace(/ /g, SPACE_UNICODE[space]); - } - if (!decode) { - return text2; - } - return text2.replace(/ /g, SPACE_UNICODE.nbsp).replace(/ /g, SPACE_UNICODE.ensp).replace(/ /g, SPACE_UNICODE.emsp).replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&").replace(/"/g, '"').replace(/'/g, "'"); - } - var props$6 = /* @__PURE__ */ extend({}, props$g, { - placeholderClass: { - type: String, - default: "input-placeholder" - }, - autoHeight: { - type: [Boolean, String], - default: false - }, - confirmType: { - type: String, - default: "" - } - }); - var fixMargin = false; - function setFixMargin() { - var DARK_TEST_STRING = "(prefers-color-scheme: dark)"; - fixMargin = String(navigator.platform).indexOf("iP") === 0 && String(navigator.vendor).indexOf("Apple") === 0 && window.matchMedia(DARK_TEST_STRING).media !== DARK_TEST_STRING; - } - var Textarea = /* @__PURE__ */ defineBuiltInComponent({ - name: "Textarea", - props: props$6, - emit: ["confirm", "linechange", ...emit], - setup(props2, _ref) { - var { - emit: emit2 - } = _ref; - var rootRef = ref(null); - var { - fieldRef, - state, - scopedAttrsState, - fixDisabledColor, - trigger: trigger2 - } = useField(props2, rootRef, emit2); - var valueCompute = computed$1(() => state.value.split(LINEFEED)); - var isDone = computed$1(() => ["done", "go", "next", "search", "send"].includes(props2.confirmType)); - var heightRef = ref(0); - var lineRef = ref(null); - watch(() => heightRef.value, (height) => { - var el = rootRef.value; - var lineEl = lineRef.value; - var lineHeight = parseFloat(getComputedStyle(el).lineHeight); - if (isNaN(lineHeight)) { - lineHeight = lineEl.offsetHeight; - } - var lineCount = Math.round(height / lineHeight); - trigger2("linechange", {}, { - height, - heightRpx: 750 / window.innerWidth * height, - lineCount - }); - if (props2.autoHeight) { - el.style.height = height + "px"; - } - }); - function onResize(_ref2) { - var { - height - } = _ref2; - heightRef.value = height; - } - function confirm(event) { - trigger2("confirm", event, { - value: state.value - }); - } - function onKeyDownEnter(event) { - if (event.key !== "Enter") { - return; - } - if (isDone.value) { - event.preventDefault(); - } - } - function onKeyUpEnter(event) { - if (event.key !== "Enter") { - return; - } - if (isDone.value) { - confirm(event); - var textarea2 = event.target; - !props2.confirmHold && textarea2.blur(); - } - } - { - setFixMargin(); - } - return () => { - var textareaNode = props2.disabled && fixDisabledColor ? createVNode("textarea", { - "ref": fieldRef, - "value": state.value, - "tabindex": "-1", - "readonly": !!props2.disabled, - "maxlength": state.maxlength, - "class": { - "uni-textarea-textarea": true, - "uni-textarea-textarea-fix-margin": fixMargin - }, - "style": { - overflowY: props2.autoHeight ? "hidden" : "auto" - }, - "onFocus": (event) => event.target.blur() - }, null, 46, ["value", "readonly", "maxlength", "onFocus"]) : createVNode("textarea", { - "ref": fieldRef, - "value": state.value, - "disabled": !!props2.disabled, - "maxlength": state.maxlength, - "enterkeyhint": props2.confirmType, - "class": { - "uni-textarea-textarea": true, - "uni-textarea-textarea-fix-margin": fixMargin - }, - "style": { - overflowY: props2.autoHeight ? "hidden" : "auto" - }, - "onKeydown": onKeyDownEnter, - "onKeyup": onKeyUpEnter - }, null, 46, ["value", "disabled", "maxlength", "enterkeyhint", "onKeydown", "onKeyup"]); - return createVNode("uni-textarea", { - "ref": rootRef - }, [createVNode("div", { - "class": "uni-textarea-wrapper" - }, [withDirectives(createVNode("div", mergeProps(scopedAttrsState.attrs, { - "style": props2.placeholderStyle, - "class": ["uni-textarea-placeholder", props2.placeholderClass] - }), [props2.placeholder], 16), [[vShow, !state.value.length]]), createVNode("div", { - "ref": lineRef, - "class": "uni-textarea-line" - }, [" "], 512), createVNode("div", { - "class": "uni-textarea-compute" - }, [valueCompute.value.map((item) => createVNode("div", null, [item.trim() ? item : "."])), createVNode(ResizeSensor, { - "initial": true, - "onResize": onResize - }, null, 8, ["initial", "onResize"])]), props2.confirmType === "search" ? createVNode("form", { - "action": "", - "onSubmit": () => false, - "class": "uni-input-form" - }, [textareaNode], 40, ["onSubmit"]) : textareaNode])], 512); - }; - } - }); - /* @__PURE__ */ defineBuiltInComponent({ - name: "View", - props: extend({}, hoverProps), - setup(props2, _ref) { - var { - slots - } = _ref; - var { - hovering, - binding - } = useHover(props2); - return () => { - var hoverClass = props2.hoverClass; - if (hoverClass && hoverClass !== "none") { - return createVNode("uni-view", mergeProps({ - "class": hovering.value ? hoverClass : "" - }, binding), [slots.default && slots.default()], 16); - } - return createVNode("uni-view", null, [slots.default && slots.default()]); - }; - } - }); - function normalizeEvent(vm, id2) { - if (!id2) { - id2 = vm.id; - } - if (!id2) { - return; - } - return vm.$options.name.toLowerCase() + "." + id2; - } - function addSubscribe(name, callback, pageId) { - if (!name) { - return; - } - registerViewMethod(pageId || getCurrentPageId(), name, (_ref, resolve) => { - var { - type, - data - } = _ref; - callback(type, data, resolve); - }); - } - function removeSubscribe(name, pageId) { - if (!name) { - return; - } - unregisterViewMethod(pageId || getCurrentPageId(), name); - } - function useSubscribe(callback, name, multiple, pageId) { - var instance = getCurrentInstance(); - var vm = instance.proxy; - onMounted(() => { - addSubscribe(name || normalizeEvent(vm), callback, pageId); - if (multiple || !name) { - watch(() => vm.id, (value, oldValue) => { - addSubscribe(normalizeEvent(vm, value), callback, pageId); - removeSubscribe(oldValue && normalizeEvent(vm, oldValue)); - }); - } - }); - onBeforeUnmount(() => { - removeSubscribe(name || normalizeEvent(vm), pageId); - }); - } - var index = 0; - function useContextInfo(_id) { - var page = useCurrentPageId(); - var instance = getCurrentInstance(); - var vm = instance.proxy; - var type = vm.$options.name.toLowerCase(); - var id2 = _id || vm.id || "context".concat(index++); - onMounted(() => { - var el = vm.$el; - el.__uniContextInfo = { - id: id2, - type, - page - }; - }); - return "".concat(type, ".").concat(id2); - } - function getContextInfo(el) { - return el.__uniContextInfo; - } - class UniAnimationElement extends UniElement { - constructor(id2, element, parentNodeId, refNodeId, nodeJson) { - var propNames = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : []; - super(id2, element, parentNodeId, refNodeId, nodeJson, [...animation.props, ...propNames]); - } - call(fn) { - var context = { - animation: this.$props.animation, - $el: this.$ - }; - fn.call(context); - } - setAttribute(name, value) { - if (name === "animation") { - this.$animate = true; - } - return super.setAttribute(name, value); - } - update() { - var isMounted = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false; - if (!this.$animate) { - return; - } - if (isMounted) { - return this.call(animation.mounted); - } - if (this.$animate) { - this.$animate = false; - this.call(animation.watch.animation.handler); - } - } - } - var PROP_NAMES_HOVER$1 = ["space", "decode"]; - class UniTextElement extends UniAnimationElement { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, document.createElement("uni-text"), parentNodeId, refNodeId, nodeJson, PROP_NAMES_HOVER$1); - this._text = ""; - } - init(nodeJson) { - this._text = nodeJson.t || ""; - super.init(nodeJson); - } - setText(text2) { - this._text = text2; - this.update(); - } - update() { - var isMounted = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false; - var { - $props: { - space, - decode - } - } = this; - this.$.textContent = parseText(this._text, { - space, - decode - }).join(LINEFEED); - super.update(isMounted); - } - } - class UniTextNode extends UniNode { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "#text", parentNodeId, document.createTextNode("")); - this.init(nodeJson); - this.insert(parentNodeId, refNodeId); - } - } - var view = ""; - var PROP_NAMES_HOVER = ["hover-class", "hover-stop-propagation", "hover-start-time", "hover-stay-time"]; - class UniHoverElement extends UniAnimationElement { - constructor(id2, element, parentNodeId, refNodeId, nodeJson) { - var propNames = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : []; - super(id2, element, parentNodeId, refNodeId, nodeJson, [...PROP_NAMES_HOVER, ...propNames]); - } - update() { - var isMounted = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false; - var hoverClass = this.$props["hover-class"]; - if (hoverClass && hoverClass !== "none") { - if (!this._hover) { - this._hover = new Hover(this.$, this.$props); - } - this._hover.addEvent(); - } else { - if (this._hover) { - this._hover.removeEvent(); - } - } - super.update(isMounted); - } - } - class Hover { - constructor($2, props2) { - this._listening = false; - this._hovering = false; - this._hoverTouch = false; - this.$ = $2; - this.props = props2; - this.__hoverTouchStart = this._hoverTouchStart.bind(this); - this.__hoverTouchEnd = this._hoverTouchEnd.bind(this); - this.__hoverTouchCancel = this._hoverTouchCancel.bind(this); - } - get hovering() { - return this._hovering; - } - set hovering(hovering) { - this._hovering = hovering; - var hoverClass = this.props["hover-class"]; - if (hovering) { - this.$.classList.add(hoverClass); - } else { - this.$.classList.remove(hoverClass); - } - } - addEvent() { - if (this._listening) { - return; - } - this._listening = true; - this.$.addEventListener("touchstart", this.__hoverTouchStart); - this.$.addEventListener("touchend", this.__hoverTouchEnd); - this.$.addEventListener("touchcancel", this.__hoverTouchCancel); - } - removeEvent() { - if (!this._listening) { - return; - } - this._listening = false; - this.$.removeEventListener("touchstart", this.__hoverTouchStart); - this.$.removeEventListener("touchend", this.__hoverTouchEnd); - this.$.removeEventListener("touchcancel", this.__hoverTouchCancel); - } - _hoverTouchStart(evt) { - if (evt._hoverPropagationStopped) { - return; - } - var hoverClass = this.props["hover-class"]; - if (!hoverClass || hoverClass === "none" || this.$.disabled) { - return; - } - if (evt.touches.length > 1) { - return; - } - if (this.props["hover-stop-propagation"]) { - evt._hoverPropagationStopped = true; - } - this._hoverTouch = true; - this._hoverStartTimer = setTimeout(() => { - this.hovering = true; - if (!this._hoverTouch) { - this._hoverReset(); - } - }, this.props["hover-start-time"]); - } - _hoverTouchEnd() { - this._hoverTouch = false; - if (this.hovering) { - this._hoverReset(); - } - } - _hoverReset() { - requestAnimationFrame(() => { - clearTimeout(this._hoverStayTimer); - this._hoverStayTimer = setTimeout(() => { - this.hovering = false; - }, this.props["hover-stay-time"]); - }); - } - _hoverTouchCancel() { - this._hoverTouch = false; - this.hovering = false; - clearTimeout(this._hoverStartTimer); - } - } - class UniViewElement extends UniHoverElement { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, document.createElement("uni-view"), parentNodeId, refNodeId, nodeJson); - } - } - function getStatusbarHeight() { - return plus.navigator.isImmersedStatusbar() ? Math.round(plus.os.name === "iOS" ? plus.navigator.getSafeAreaInsets().top : plus.navigator.getStatusbarHeight()) : 0; - } - function getNavigationBarHeight() { - var webview2 = plus.webview.currentWebview(); - var style = webview2.getStyle(); - var titleNView = style && style.titleNView; - if (titleNView && titleNView.type === "default") { - return NAVBAR_HEIGHT + getStatusbarHeight(); - } - return 0; - } - var onDrawKey = Symbol("onDraw"); - function getFixed($el) { - var fixed; - while ($el) { - var style = getComputedStyle($el); - var transform = style.transform || style.webkitTransform; - fixed = transform && transform !== "none" ? false : fixed; - fixed = style.position === "fixed" ? true : fixed; - $el = $el.parentElement; - } - return fixed; - } - function useNativeAttrs(props2, ignore) { - return computed$1(() => { - var object = {}; - Object.keys(props2).forEach((key2) => { - if (ignore && ignore.includes(key2)) { - return; - } - var val = props2[key2]; - val = key2 === "src" ? getRealPath(val) : val; - object[key2.replace(/[A-Z]/g, (str) => "-" + str.toLowerCase())] = val; - }); - return object; - }); - } - function useNative(rootRef) { - var position = reactive({ - top: "0px", - left: "0px", - width: "0px", - height: "0px", - position: "static" - }); - var hidden = ref(false); - function updatePosition() { - var el = rootRef.value; - var rect = el.getBoundingClientRect(); - var keys = ["width", "height"]; - hidden.value = rect.width === 0 || rect.height === 0; - if (!hidden.value) { - position.position = getFixed(el) ? "absolute" : "static"; - keys.push("top", "left"); - } - keys.forEach((key2) => { - var val = rect[key2]; - val = key2 === "top" ? val + (position.position === "static" ? document.documentElement.scrollTop || document.body.scrollTop || 0 : getNavigationBarHeight()) : val; - position[key2] = val + "px"; - }); - } - var request = null; - function requestPositionUpdate() { - if (request) { - cancelAnimationFrame(request); - } - request = requestAnimationFrame(() => { - request = null; - updatePosition(); - }); - } - window.addEventListener("updateview", requestPositionUpdate); - var onDrawCallbacks = []; - var onSelfReadyCallbacks = []; - function onSelfReady(callback) { - if (onSelfReadyCallbacks) { - onSelfReadyCallbacks.push(callback); - } else { - callback(); - } - } - function onParentReady(callback) { - var onDraw2 = inject(onDrawKey); - var newCallback = (parentPosition) => { - callback(parentPosition); - onDrawCallbacks.forEach((callback2) => callback2(position)); - onDrawCallbacks = null; - }; - onSelfReady(() => { - if (onDraw2) { - onDraw2(newCallback); - } else { - newCallback({ - top: "0px", - left: "0px", - width: Number.MAX_SAFE_INTEGER + "px", - height: Number.MAX_SAFE_INTEGER + "px", - position: "static" - }); - } - }); - } - var onDraw = function(callback) { - if (onDrawCallbacks) { - onDrawCallbacks.push(callback); - } else { - callback(position); - } - }; - provide(onDrawKey, onDraw); - onMounted(() => { - updatePosition(); - onSelfReadyCallbacks.forEach((callback) => callback()); - onSelfReadyCallbacks = null; - }); - onBeforeUnmount(() => { - window.removeEventListener("updateview", requestPositionUpdate); - }); - return { - position, - hidden, - onParentReady - }; - } - var Ad = /* @__PURE__ */ defineBuiltInComponent({ - name: "Ad", - props: { - adpid: { - type: [Number, String], - default: "" - }, - data: { - type: Object, - default: null - }, - dataCount: { - type: Number, - default: 5 - }, - channel: { - type: String, - default: "" - } - }, - setup(props2, _ref) { - var { - emit: emit2 - } = _ref; - var rootRef = ref(null); - var containerRef = ref(null); - var trigger2 = useCustomEvent(rootRef, emit2); - var attrs2 = useNativeAttrs(props2, ["id"]); - var { - position, - onParentReady - } = useNative(containerRef); - var adView; - onParentReady(() => { - adView = plus.ad.createAdView(Object.assign({}, attrs2.value, position)); - plus.webview.currentWebview().append(adView); - adView.setDislikeListener((data) => { - containerRef.value.style.height = "0"; - window.dispatchEvent(new CustomEvent("updateview")); - trigger2("close", {}, data); - }); - adView.setRenderingListener((data) => { - if (data.result === 0) { - containerRef.value.style.height = data.height + "px"; - window.dispatchEvent(new CustomEvent("updateview")); - } else { - trigger2("error", {}, { - errCode: data.result - }); - } - }); - adView.setAdClickedListener(() => { - trigger2("adclicked", {}, {}); - }); - watch(() => position, (position2) => adView.setStyle(position2), { - deep: true - }); - watch(() => props2.adpid, (val) => { - if (val) { - loadData(); - } - }); - watch(() => props2.data, (val) => { - if (val) { - adView.renderingBind(val); - } - }); - function loadData() { - var args = { - adpid: props2.adpid, - width: position.width, - count: props2.dataCount - }; - if (props2.channel !== void 0) { - args.ext = { - channel: props2.channel - }; - } - UniViewJSBridge.invokeServiceMethod("getAdData", args, (_ref2) => { - var { - code, - data, - message - } = _ref2; - if (code === 0) { - adView.renderingBind(data); - } else { - trigger2("error", {}, { - errMsg: message - }); - } - }); - } - if (props2.adpid) { - loadData(); - } - }); - onBeforeUnmount(() => { - if (adView) { - adView.close(); - } - }); - return () => { - return createVNode("uni-ad", { - "ref": rootRef - }, [createVNode("div", { - "ref": containerRef, - "class": "uni-ad-container" - }, null, 512)], 512); - }; - } - }); - class UniComponent extends UniNode { - constructor(id2, tag, component, parentNodeId, refNodeId, nodeJson, selector) { - super(id2, tag, parentNodeId); - var container = document.createElement("div"); - container.__vueParent = getVueParent(this); - this.$props = reactive({}); - this.init(nodeJson); - this.$app = createApp(createWrapper(component, this.$props)); - this.$app.mount(container); - this.$ = container.firstElementChild; - if (selector) { - this.$holder = this.$.querySelector(selector); - } - if (hasOwn$1(nodeJson, "t")) { - this.setText(nodeJson.t || ""); - } - if (nodeJson.a && hasOwn$1(nodeJson.a, ATTR_V_SHOW)) { - patchVShow(this.$, nodeJson.a[ATTR_V_SHOW]); - } - this.insert(parentNodeId, refNodeId); - flushPostFlushCbs(); - } - init(nodeJson) { - var { - a: a2, - e: e2, - w - } = nodeJson; - if (a2) { - this.setWxsProps(a2); - Object.keys(a2).forEach((n) => { - this.setAttr(n, a2[n]); - }); - } - if (hasOwn$1(nodeJson, "s")) { - this.setAttr("style", nodeJson.s); - } - if (e2) { - Object.keys(e2).forEach((n) => { - this.addEvent(n, e2[n]); - }); - } - if (w) { - this.addWxsEvents(nodeJson.w); - } - } - setText(text2) { - (this.$holder || this.$).textContent = text2; - } - addWxsEvent(name, wxsEvent, flag) { - this.$props[name] = createWxsEventInvoker(this, wxsEvent, flag); - } - addEvent(name, value) { - this.$props[name] = createInvoker(this.id, value, parseEventName(name)[1]); - } - removeEvent(name) { - this.$props[name] = null; - } - setAttr(name, value) { - if (name === ATTR_V_SHOW) { - if (this.$) { - patchVShow(this.$, value); - } - } else if (name === ATTR_V_OWNER_ID) { - this.$.__ownerId = value; - } else if (name === ATTR_V_RENDERJS) { - queuePostActionJob(() => initRenderjs(this, value), JOB_PRIORITY_RENDERJS); - } else if (name === ATTR_STYLE) { - var newStyle = decodeAttr(this.$ || $(this.pid).$, value); - var oldStyle = this.$props.style; - if (isPlainObject(newStyle) && isPlainObject(oldStyle)) { - Object.keys(newStyle).forEach((n) => { - oldStyle[n] = newStyle[n]; - }); - } else { - this.$props.style = newStyle; - } - } else if (isCssVar(name)) { - this.$.style.setProperty(name, value); - } else { - value = decodeAttr(this.$ || $(this.pid).$, value); - if (!this.wxsPropsInvoke(name, value, true)) { - this.$props[name] = value; - } - } - } - removeAttr(name) { - if (isCssVar(name)) { - this.$.style.removeProperty(name); - } else { - this.$props[name] = null; - } - } - remove() { - this.removeUniParent(); - this.isUnmounted = true; - this.$app.unmount(); - removeElement(this.id); - this.removeUniChildren(); - } - appendChild(node) { - return (this.$holder || this.$).appendChild(node); - } - insertBefore(newChild, refChild) { - return (this.$holder || this.$).insertBefore(newChild, refChild); - } - } - class UniContainerComponent extends UniComponent { - constructor(id2, tag, component, parentNodeId, refNodeId, nodeJson, selector) { - super(id2, tag, component, parentNodeId, refNodeId, nodeJson, selector); - } - getRebuildFn() { - if (!this._rebuild) { - this._rebuild = this.rebuild.bind(this); - } - return this._rebuild; - } - setText(text2) { - queuePostActionJob(this.getRebuildFn(), JOB_PRIORITY_REBUILD); - return super.setText(text2); - } - appendChild(node) { - queuePostActionJob(this.getRebuildFn(), JOB_PRIORITY_REBUILD); - return super.appendChild(node); - } - insertBefore(newChild, refChild) { - queuePostActionJob(this.getRebuildFn(), JOB_PRIORITY_REBUILD); - return super.insertBefore(newChild, refChild); - } - removeUniChild(node) { - queuePostActionJob(this.getRebuildFn(), JOB_PRIORITY_REBUILD); - return super.removeUniChild(node); - } - rebuild() { - var vm = this.$.__vueParentComponent; - if (vm.rebuild) { - vm.rebuild(); - } - } - } - function getVueParent(node) { - while (node && node.pid > 0) { - node = $(node.pid); - if (node) { - var { - __vueParentComponent - } = node.$; - if (__vueParentComponent) { - return __vueParentComponent; - } - } - } - return null; - } - function setHolderText(holder, clazz, text2) { - holder.childNodes.forEach((childNode) => { - if (childNode instanceof Element) { - if (childNode.className.indexOf(clazz) === -1) { - holder.removeChild(childNode); - } - } else { - holder.removeChild(childNode); - } - }); - holder.appendChild(document.createTextNode(text2)); - } - var vModelNames = ["value", "modelValue"]; - function initVModel(props2) { - vModelNames.forEach((name) => { - if (hasOwn$1(props2, name)) { - var event = "onUpdate:" + name; - if (!hasOwn$1(props2, event)) { - props2[event] = (v2) => props2[name] = v2; - } - } - }); - } - class UniAd extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-ad", Ad, parentNodeId, refNodeId, nodeJson); - } - } - var button = ""; - class UniButton extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-button", Button, parentNodeId, refNodeId, nodeJson); - } - } - class UniTodoNode extends UniNode { - constructor(id2, tag, parentNodeId, refNodeId) { - super(id2, tag, parentNodeId); - this.insert(parentNodeId, refNodeId); - } - } - class UniCamera extends UniTodoNode { - constructor(id2, parentNodeId, refNodeId) { - super(id2, "uni-camera", parentNodeId, refNodeId); - } - } - var canvas = ""; - class UniCanvas extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-canvas", Canvas, parentNodeId, refNodeId, nodeJson, "uni-canvas > div"); - } - } - var checkbox = ""; - class UniCheckbox extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-checkbox", Checkbox, parentNodeId, refNodeId, nodeJson, ".uni-checkbox-wrapper"); - } - setText(text2) { - setHolderText(this.$holder, "uni-checkbox-input", text2); - } - } - var checkboxGroup = ""; - class UniCheckboxGroup extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-checkbox-group", CheckboxGroup, parentNodeId, refNodeId, nodeJson); - } - } - var coverImage = ""; - var id = 0; - function useCover(rootRef, trigger2, content) { - var { - position, - hidden, - onParentReady - } = useNative(rootRef); - var cover; - var requestStyleUpdate; - onParentReady((parentPosition) => { - var viewPosition = computed$1(() => { - var object = {}; - for (var key2 in position) { - var val = position[key2]; - var valNumber = parseFloat(val); - var parentValNumber = parseFloat(parentPosition[key2]); - if (key2 === "top" || key2 === "left") { - val = Math.max(valNumber, parentValNumber) + "px"; - } else if (key2 === "width" || key2 === "height") { - var base2 = key2 === "width" ? "left" : "top"; - var parentStart = parseFloat(parentPosition[base2]); - var viewStart = parseFloat(position[base2]); - var diff1 = Math.max(parentStart - viewStart, 0); - var diff2 = Math.max(viewStart + valNumber - (parentStart + parentValNumber), 0); - val = Math.max(valNumber - diff1 - diff2, 0) + "px"; - } - object[key2] = val; - } - return object; - }); - var baseStyle = ["borderRadius", "borderColor", "borderWidth", "backgroundColor"]; - var textStyle = ["paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "color", "textAlign", "lineHeight", "fontSize", "fontWeight", "textOverflow", "whiteSpace"]; - var imageStyle = []; - var textAlign = { - start: "left", - end: "right" - }; - function updateStyle(style2) { - var computedStyle = getComputedStyle(rootRef.value); - baseStyle.concat(textStyle, imageStyle).forEach((key2) => { - style2[key2] = computedStyle[key2]; - }); - return style2; - } - var style = reactive(updateStyle({})); - var request = null; - requestStyleUpdate = function() { - if (request) { - cancelAnimationFrame(request); - } - request = requestAnimationFrame(() => { - request = null; - updateStyle(style); - }); - }; - window.addEventListener("updateview", requestStyleUpdate); - function getTagPosition() { - var position2 = {}; - for (var key2 in position2) { - var val = position2[key2]; - if (key2 === "top" || key2 === "left") { - val = Math.min(parseFloat(val) - parseFloat(parentPosition[key2]), 0) + "px"; - } - position2[key2] = val; - } - return position2; - } - var tags = computed$1(() => { - var position2 = getTagPosition(); - var tags2 = [{ - tag: "rect", - position: position2, - rectStyles: { - color: style.backgroundColor, - radius: style.borderRadius, - borderColor: style.borderColor, - borderWidth: style.borderWidth - } - }]; - if ("src" in content) { - if (content.src) { - tags2.push({ - tag: "img", - position: position2, - src: content.src - }); - } - } else { - var lineSpacing = parseFloat(style.lineHeight) - parseFloat(style.fontSize); - var width = parseFloat(position2.width) - parseFloat(style.paddingLeft) - parseFloat(style.paddingRight); - width = width < 0 ? 0 : width; - var height = parseFloat(position2.height) - parseFloat(style.paddingTop) - lineSpacing / 2 - parseFloat(style.paddingBottom); - height = height < 0 ? 0 : height; - tags2.push({ - tag: "font", - position: { - top: "".concat(parseFloat(position2.top) + parseFloat(style.paddingTop) + lineSpacing / 2, "px"), - left: "".concat(parseFloat(position2.left) + parseFloat(style.paddingLeft), "px"), - width: "".concat(width, "px"), - height: "".concat(height, "px") - }, - textStyles: { - align: textAlign[style.textAlign] || style.textAlign, - color: style.color, - decoration: "none", - lineSpacing: "".concat(lineSpacing, "px"), - margin: "0px", - overflow: style.textOverflow, - size: style.fontSize, - verticalAlign: "top", - weight: style.fontWeight, - whiteSpace: style.whiteSpace - }, - text: content.text - }); - } - return tags2; - }); - cover = new plus.nativeObj.View("cover-".concat(Date.now(), "-").concat(id++), viewPosition.value, tags.value); - plus.webview.currentWebview().append(cover); - if (hidden.value) { - cover.hide(); - } - cover.addEventListener("click", () => { - trigger2("click", {}, {}); - }); - watch(() => hidden.value, (val) => { - cover[val ? "hide" : "show"](); - }); - watch(() => viewPosition.value, (val) => { - cover.setStyle(val); - }, { - deep: true - }); - watch(() => tags.value, () => { - cover.reset(); - cover.draw(tags.value); - }, { - deep: true - }); - }); - onBeforeUnmount(() => { - if (cover) { - cover.close(); - } - if (requestStyleUpdate) { - window.removeEventListener("updateview", requestStyleUpdate); - } - }); - } - var TEMP_PATH = "_doc/uniapp_temp/"; - var props$5 = { - src: { - type: String, - default: "" - }, - autoSize: { - type: [Boolean, String], - default: false - } - }; - function useImageLoad(props2, content, trigger2) { - var style = ref(""); - var downloaTask; - function loadImage() { - content.src = ""; - style.value = props2.autoSize ? "width:0;height:0;" : ""; - var realPath = props2.src ? getRealPath(props2.src) : ""; - if (realPath.indexOf("http://") === 0 || realPath.indexOf("https://") === 0) { - downloaTask = plus.downloader.createDownload(realPath, { - filename: TEMP_PATH + "/download/" - }, (task, status) => { - if (status === 200) { - getImageInfo(task.filename); - } else { - trigger2("error", {}, { - errMsg: "error" - }); - } - }); - downloaTask.start(); - } else if (realPath) { - getImageInfo(realPath); - } - } - function getImageInfo(src) { - content.src = src; - plus.io.getImageInfo({ - src, - success: (_ref) => { - var { - width, - height - } = _ref; - if (props2.autoSize) { - style.value = "width:".concat(width, "px;height:").concat(height, "px;"); - window.dispatchEvent(new CustomEvent("updateview")); - } - trigger2("load", {}, { - width, - height - }); - }, - fail: () => { - trigger2("error", {}, { - errMsg: "error" - }); - } - }); - } - if (props2.src) { - loadImage(); - } - watch(() => props2.src, loadImage); - onBeforeUnmount(() => { - if (downloaTask) { - downloaTask.abort(); - } - }); - return style; - } - var CoverImage = /* @__PURE__ */ defineBuiltInComponent({ - name: "CoverImage", - props: props$5, - emits: ["click", "load", "error"], - setup(props2, _ref2) { - var { - emit: emit2 - } = _ref2; - var rootRef = ref(null); - var trigger2 = useCustomEvent(rootRef, emit2); - var content = reactive({ - src: "" - }); - var style = useImageLoad(props2, content, trigger2); - useCover(rootRef, trigger2, content); - return () => { - return createVNode("uni-cover-image", { - "ref": rootRef, - "style": style.value - }, [createVNode("div", { - "class": "uni-cover-image" - }, null)], 4); - }; - } - }); - class UniCoverImage extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-cover-image", CoverImage, parentNodeId, refNodeId, nodeJson); - } - } - var coverView = ""; - var CoverView = /* @__PURE__ */ defineBuiltInComponent({ - name: "CoverView", - emits: ["click"], - setup(_, _ref) { - var { - emit: emit2 - } = _ref; - var rootRef = ref(null); - var textRef = ref(null); - var trigger2 = useCustomEvent(rootRef, emit2); - var content = reactive({ - text: "" - }); - useCover(rootRef, trigger2, content); - useRebuild(() => { - var node = textRef.value.childNodes[0]; - content.text = node && node instanceof Text ? node.textContent : ""; - window.dispatchEvent(new CustomEvent("updateview")); - }); - return () => { - return createVNode("uni-cover-view", { - "ref": rootRef - }, [createVNode("div", { - "ref": textRef, - "class": "uni-cover-view" - }, null, 512)], 512); - }; - } - }); - class UniCoverView extends UniContainerComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-cover-view", CoverView, parentNodeId, refNodeId, nodeJson, ".uni-cover-view"); - } - } - var editor = ""; - class UniEditor extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-editor", Editor, parentNodeId, refNodeId, nodeJson); - } - } - var form = ""; - class UniForm extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-form", Form, parentNodeId, refNodeId, nodeJson, "span"); - } - } - class UniFunctionalPageNavigator extends UniTodoNode { - constructor(id2, parentNodeId, refNodeId) { - super(id2, "uni-functional-page-navigator", parentNodeId, refNodeId); - } - } - var icon = ""; - class UniIcon extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-icon", Icon, parentNodeId, refNodeId, nodeJson); - } - } - var image = ""; - class UniImage extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-image", Image$1, parentNodeId, refNodeId, nodeJson); - } - } - var input = ""; - class UniInput extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-input", Input, parentNodeId, refNodeId, nodeJson); - } - init(nodeJson) { - super.init(nodeJson); - initVModel(this.$props); - } - } - var label = ""; - class UniLabel extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-label", Label, parentNodeId, refNodeId, nodeJson); - } - } - class UniLivePlayer extends UniTodoNode { - constructor(id2, parentNodeId, refNodeId) { - super(id2, "uni-live-player", parentNodeId, refNodeId); - } - } - var livePusher = ""; - var props$4 = { - id: { - type: String, - default: "" - }, - url: { - type: String, - default: "" - }, - mode: { - type: String, - default: "SD" - }, - muted: { - type: [Boolean, String], - default: false - }, - enableCamera: { - type: [Boolean, String], - default: true - }, - autoFocus: { - type: [Boolean, String], - default: true - }, - beauty: { - type: [Number, String], - default: 0 - }, - whiteness: { - type: [Number, String], - default: 0 - }, - aspect: { - type: [String], - default: "3:2" - }, - minBitrate: { - type: [Number], - default: 200 - } - }; - var emits$1 = ["statechange", "netstatus", "error"]; - var LivePusher = /* @__PURE__ */ defineBuiltInComponent({ - name: "LivePusher", - props: props$4, - emits: emits$1, - setup(props2, _ref) { - var { - emit: emit2 - } = _ref; - var rootRef = ref(null); - var trigger2 = useCustomEvent(rootRef, emit2); - var containerRef = ref(null); - var attrs2 = useNativeAttrs(props2, ["id"]); - var { - position, - hidden, - onParentReady - } = useNative(containerRef); - var livePusher2; - onParentReady(() => { - livePusher2 = new plus.video.LivePusher("livePusher" + Date.now(), Object.assign({}, attrs2.value, position)); - plus.webview.currentWebview().append(livePusher2); - emits$1.forEach((key2) => { - livePusher2.addEventListener(key2, (event) => { - trigger2(key2, {}, event.detail); - }); - }); - watch(() => attrs2.value, (attrs3) => livePusher2.setStyles(attrs3), { - deep: true - }); - watch(() => position, (position2) => livePusher2.setStyles(position2), { - deep: true - }); - watch(() => hidden.value, (val) => { - if (!val) { - livePusher2.setStyles(position); - } - }); - }); - var id2 = useContextInfo(); - useSubscribe((type, data) => { - if (livePusher2) { - livePusher2[type](data); - } - }, id2, true); - onBeforeUnmount(() => { - if (livePusher2) { - livePusher2.close(); - } - }); - return () => { - return createVNode("uni-live-pusher", { - "ref": rootRef, - "id": props2.id - }, [createVNode("div", { - "ref": containerRef, - "class": "uni-live-pusher-container" - }, null, 512)], 8, ["id"]); - }; - } - }); - class UniLivePusher extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-live-pusher", LivePusher, parentNodeId, refNodeId, nodeJson, ".uni-live-pusher-slot"); - } - } - var map = ""; - var convertCoordinates = (lng, lat, callback) => { - callback({ - coord: { - latitude: lat, - longitude: lng - } - }); - }; - function parseHex(color) { - if (color.indexOf("#") !== 0) { - return { - color, - opacity: 1 - }; - } - var opacity = color.substr(7, 2); - return { - color: color.substr(0, 7), - opacity: opacity ? Number("0x" + opacity) / 255 : 1 - }; - } - var props$3 = { - id: { - type: String, - default: "" - }, - latitude: { - type: [Number, String], - default: "" - }, - longitude: { - type: [Number, String], - default: "" - }, - scale: { - type: [String, Number], - default: 16 - }, - markers: { - type: Array, - default() { - return []; - } - }, - polyline: { - type: Array, - default() { - return []; - } - }, - circles: { - type: Array, - default() { - return []; - } - }, - polygons: { - type: Array, - default() { - return []; - } - }, - controls: { - type: Array, - default() { - return []; - } - } - }; - var Map$1 = /* @__PURE__ */ defineBuiltInComponent({ - name: "Map", - props: props$3, - emits: ["click", "regionchange", "controltap", "markertap", "callouttap"], - setup(props2, _ref) { - var { - emit: emit2 - } = _ref; - var rootRef = ref(null); - var trigger2 = useCustomEvent(rootRef, emit2); - var containerRef = ref(null); - var attrs2 = useNativeAttrs(props2, ["id"]); - var { - position, - hidden, - onParentReady - } = useNative(containerRef); - var map2; - var { - _addMarkers, - _addMapLines, - _addMapCircles, - _addMapPolygons, - _setMap - } = useMapMethods(props2, trigger2); - onParentReady(() => { - map2 = extend(plus.maps.create(getCurrentPageId() + "-map-" + (props2.id || Date.now()), Object.assign({}, attrs2.value, position, (() => { - if (props2.latitude && props2.longitude) { - return { - center: new plus.maps.Point(Number(props2.longitude), Number(props2.latitude)) - }; - } - })())), { - __markers__: [], - __lines__: [], - __circles__: [], - __polygons__: [] - }); - map2.setZoom(parseInt(String(props2.scale))); - plus.webview.currentWebview().append(map2); - if (hidden.value) { - map2.hide(); - } - map2.onclick = (e2) => { - trigger2("click", {}, e2); - }; - map2.onstatuschanged = (e2) => { - trigger2("regionchange", {}, {}); - }; - _setMap(map2); - _addMarkers(props2.markers); - _addMapLines(props2.polyline); - _addMapCircles(props2.circles); - _addMapPolygons(props2.polygons); - watch(() => attrs2.value, (attrs3) => map2 && map2.setStyles(attrs3), { - deep: true - }); - watch(() => position, (position2) => map2 && map2.setStyles(position2), { - deep: true - }); - watch(hidden, (val) => { - map2 && map2[val ? "hide" : "show"](); - }); - watch(() => props2.scale, (val) => { - map2 && map2.setZoom(parseInt(String(val))); - }); - watch([() => props2.latitude, () => props2.longitude], (_ref2) => { - var [latitude, longitude] = _ref2; - map2 && map2.setStyles({ - center: new plus.maps.Point(Number(latitude), Number(longitude)) - }); - }); - watch(() => props2.markers, (val) => { - _addMarkers(val, true); - }, { - deep: true - }); - watch(() => props2.polyline, (val) => { - _addMapLines(val); - }, { - deep: true - }); - watch(() => props2.circles, (val) => { - _addMapCircles(val); - }, { - deep: true - }); - watch(() => props2.polygons, (val) => { - _addMapPolygons(val); - }, { - deep: true - }); - }); - var mapControls = computed$1(() => props2.controls.map((control) => { - var position2 = { - position: "absolute" - }; - ["top", "left", "width", "height"].forEach((key2) => { - if (control.position[key2]) { - position2[key2] = control.position[key2] + "px"; - } - }); - return { - id: control.id, - iconPath: getRealPath(control.iconPath), - position: position2, - clickable: control.clickable - }; - })); - onBeforeUnmount(() => { - if (map2) { - map2.close(); - _setMap(null); - } - }); - return () => { - return createVNode("uni-map", { - "ref": rootRef, - "id": props2.id - }, [createVNode("div", { - "ref": containerRef, - "class": "uni-map-container" - }, null, 512), mapControls.value.map((control, index2) => createVNode(CoverImage, { - "key": index2, - "src": control.iconPath, - "style": control.position, - "auto-size": true, - "onClick": () => control.clickable && trigger2("controltap", {}, { - controlId: control.id - }) - }, null, 8, ["src", "style", "auto-size", "onClick"])), createVNode("div", { - "class": "uni-map-slot" - }, null)], 8, ["id"]); - }; - } - }); - function useMapMethods(props2, trigger2) { - var map2; - function moveToLocation(resolve) { - var { - longitude, - latitude - } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; - if (!map2) - return; - map2.setCenter(new plus.maps.Point(Number(longitude || props2.longitude), Number(latitude || props2.latitude))); - resolve({ - errMsg: "moveToLocation:ok" - }); - } - function getCenterLocation(resolve) { - if (!map2) - return; - map2.getCurrentCenter((state, point) => { - resolve({ - longitude: point.getLng(), - latitude: point.getLat(), - errMsg: "getCenterLocation:ok" - }); - }); - } - function getRegion(resolve) { - if (!map2) - return; - var rect = map2.getBounds(); - resolve({ - southwest: rect.getSouthWest(), - northeast: rect.getNorthEast(), - errMsg: "getRegion:ok" - }); - } - function getScale(resolve) { - if (!map2) - return; - resolve({ - scale: map2.getZoom(), - errMsg: "getScale:ok" - }); - } - function _addMarker(marker) { - if (!map2) - return; - var { - id: id2, - latitude, - longitude, - iconPath, - callout, - label: label2 - } = marker; - convertCoordinates(longitude, latitude, (res) => { - var _map2; - var { - latitude: latitude2, - longitude: longitude2 - } = res.coord; - var nativeMarker = new plus.maps.Marker(new plus.maps.Point(longitude2, latitude2)); - if (iconPath) { - nativeMarker.setIcon(getRealPath(iconPath)); - } - if (label2 && label2.content) { - nativeMarker.setLabel(label2.content); - } - var nativeBubble = void 0; - if (callout && callout.content) { - nativeBubble = new plus.maps.Bubble(callout.content); - } - if (nativeBubble) { - nativeMarker.setBubble(nativeBubble); - } - if (id2 || id2 === 0) { - nativeMarker.onclick = (e2) => { - trigger2("markertap", {}, { - markerId: id2 - }); - }; - if (nativeBubble) { - nativeBubble.onclick = () => { - trigger2("callouttap", {}, { - markerId: id2 - }); - }; - } - } - (_map2 = map2) === null || _map2 === void 0 ? void 0 : _map2.addOverlay(nativeMarker); - map2.__markers__.push(nativeMarker); - }); - } - function _clearMarkers() { - if (!map2) - return; - var markers = map2.__markers__; - markers.forEach((marker) => { - var _map3; - (_map3 = map2) === null || _map3 === void 0 ? void 0 : _map3.removeOverlay(marker); - }); - map2.__markers__ = []; - } - function _addMarkers(markers, clear2) { - if (clear2) { - _clearMarkers(); - } - markers.forEach((marker) => { - _addMarker(marker); - }); - } - function _addMapLines(lines) { - if (!map2) - return; - if (map2.__lines__.length > 0) { - map2.__lines__.forEach((circle) => { - var _map4; - (_map4 = map2) === null || _map4 === void 0 ? void 0 : _map4.removeOverlay(circle); - }); - map2.__lines__ = []; - } - lines.forEach((line) => { - var _map5; - var { - color, - width - } = line; - var points = line.points.map((point) => new plus.maps.Point(point.longitude, point.latitude)); - var polyline = new plus.maps.Polyline(points); - if (color) { - var strokeStyle = parseHex(color); - polyline.setStrokeColor(strokeStyle.color); - polyline.setStrokeOpacity(strokeStyle.opacity); - } - if (width) { - polyline.setLineWidth(width); - } - (_map5 = map2) === null || _map5 === void 0 ? void 0 : _map5.addOverlay(polyline); - map2.__lines__.push(polyline); - }); - } - function _addMapCircles(circles) { - if (!map2) - return; - if (map2.__circles__.length > 0) { - map2.__circles__.forEach((circle) => { - var _map6; - (_map6 = map2) === null || _map6 === void 0 ? void 0 : _map6.removeOverlay(circle); - }); - map2.__circles__ = []; - } - circles.forEach((circle) => { - var _map7; - var { - latitude, - longitude, - color, - fillColor, - radius, - strokeWidth - } = circle; - var nativeCircle = new plus.maps.Circle(new plus.maps.Point(longitude, latitude), radius); - if (color) { - var strokeStyle = parseHex(color); - nativeCircle.setStrokeColor(strokeStyle.color); - nativeCircle.setStrokeOpacity(strokeStyle.opacity); - } - if (fillColor) { - var fillStyle = parseHex(fillColor); - nativeCircle.setFillColor(fillStyle.color); - nativeCircle.setFillOpacity(fillStyle.opacity); - } - if (strokeWidth) { - nativeCircle.setLineWidth(strokeWidth); - } - (_map7 = map2) === null || _map7 === void 0 ? void 0 : _map7.addOverlay(nativeCircle); - map2.__circles__.push(nativeCircle); - }); - } - function _addMapPolygons(polygons) { - if (!map2) - return; - var nativeMapPolygons = map2.__polygons__; - nativeMapPolygons.forEach((polygon) => { - var _map8; - (_map8 = map2) === null || _map8 === void 0 ? void 0 : _map8.removeOverlay(polygon); - }); - nativeMapPolygons.length = 0; - polygons.forEach((polygon) => { - var _map9; - var { - points, - strokeWidth, - strokeColor, - fillColor - } = polygon; - var plusPoints = []; - if (points) { - points.forEach((coordinate) => { - plusPoints.push(new plus.maps.Point(coordinate.longitude, coordinate.latitude)); - }); - } - var nativePolygon = new plus.maps.Polygon(plusPoints); - if (strokeColor) { - var strokeStyle = parseHex(strokeColor); - nativePolygon.setStrokeColor(strokeStyle.color); - nativePolygon.setStrokeOpacity(strokeStyle.opacity); - } - if (fillColor) { - var fillStyle = parseHex(fillColor); - nativePolygon.setFillColor(fillStyle.color); - nativePolygon.setFillOpacity(fillStyle.opacity); - } - if (strokeWidth) { - nativePolygon.setLineWidth(strokeWidth); - } - (_map9 = map2) === null || _map9 === void 0 ? void 0 : _map9.addOverlay(nativePolygon); - nativeMapPolygons.push(nativePolygon); - }); - } - var methods2 = { - moveToLocation, - getCenterLocation, - getRegion, - getScale - }; - useSubscribe((type, data, resolve) => { - methods2[type] && methods2[type](resolve, data); - }, useContextInfo(), true); - return { - _addMarkers, - _addMapLines, - _addMapCircles, - _addMapPolygons, - _setMap(_map) { - map2 = _map; - } - }; - } - class UniMap extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-map", Map$1, parentNodeId, refNodeId, nodeJson, ".uni-map-slot"); - } - } - var movableArea = ""; - class UniMovableArea extends UniContainerComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-movable-area", MovableArea, parentNodeId, refNodeId, nodeJson); - } - } - var movableView = ""; - class UniMovableView extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-movable-view", MovableView, parentNodeId, refNodeId, nodeJson); - } - } - var navigator$1 = ""; - class UniNavigator extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-navigator", Navigator, parentNodeId, refNodeId, nodeJson, "uni-navigator"); - } - } - class UniOfficialAccount extends UniTodoNode { - constructor(id2, parentNodeId, refNodeId) { - super(id2, "uni-official-account", parentNodeId, refNodeId); - } - } - class UniOpenData extends UniTodoNode { - constructor(id2, parentNodeId, refNodeId) { - super(id2, "uni-open-data", parentNodeId, refNodeId); - } - } - var mode = { - SELECTOR: "selector", - MULTISELECTOR: "multiSelector", - TIME: "time", - DATE: "date" - }; - var fields = { - YEAR: "year", - MONTH: "month", - DAY: "day" - }; - function padLeft(num) { - return num > 9 ? num : "0".concat(num); - } - function getDate(str, _mode) { - str = String(str || ""); - var date = new Date(); - if (_mode === mode.TIME) { - var strs = str.split(":"); - if (strs.length === 2) { - date.setHours(parseInt(strs[0]), parseInt(strs[1])); - } - } else { - var _strs = str.split("-"); - if (_strs.length === 3) { - date.setFullYear(parseInt(_strs[0]), parseInt(String(parseFloat(_strs[1]) - 1)), parseInt(_strs[2])); - } - } - return date; - } - function getDefaultStartValue(props2) { - if (props2.mode === mode.TIME) { - return "00:00"; - } - if (props2.mode === mode.DATE) { - var year = new Date().getFullYear() - 100; - switch (props2.fields) { - case fields.YEAR: - return year; - case fields.MONTH: - return year + "-01"; - default: - return year + "-01-01"; - } - } - return ""; - } - function getDefaultEndValue(props2) { - if (props2.mode === mode.TIME) { - return "23:59"; - } - if (props2.mode === mode.DATE) { - var year = new Date().getFullYear() + 100; - switch (props2.fields) { - case fields.YEAR: - return year; - case fields.MONTH: - return year + "-12"; - default: - return year + "-12-31"; - } - } - return ""; - } - var props$2 = { - name: { - type: String, - default: "" - }, - range: { - type: Array, - default() { - return []; - } - }, - rangeKey: { - type: String, - default: "" - }, - value: { - type: [Number, String, Array], - default: 0 - }, - mode: { - type: String, - default: mode.SELECTOR, - validator(val) { - return Object.values(mode).indexOf(val) >= 0; - } - }, - fields: { - type: String, - default: "" - }, - start: { - type: String, - default: getDefaultStartValue - }, - end: { - type: String, - default: getDefaultEndValue - }, - disabled: { - type: [Boolean, String], - default: false - } - }; - var Picker = /* @__PURE__ */ defineBuiltInComponent({ - name: "Picker", - props: props$2, - emits: ["change", "cancel", "columnchange"], - setup(props2, _ref) { - var { - emit: emit2 - } = _ref; - initI18nPickerMsgsOnce(); - var { - t: t2, - getLocale - } = useI18n(); - var rootRef = ref(null); - var trigger2 = useCustomEvent(rootRef, emit2); - var valueSync = ref(null); - var page = ref(null); - var _setValueSync = () => { - var val = props2.value; - switch (props2.mode) { - case mode.MULTISELECTOR: - { - if (!Array.isArray(val)) { - val = []; - } - if (!Array.isArray(valueSync.value)) { - valueSync.value = []; - } - var length = valueSync.value.length = Math.max(val.length, props2.range.length); - for (var index2 = 0; index2 < length; index2++) { - var val0 = Number(val[index2]); - var val1 = Number(valueSync.value[index2]); - var val2 = isNaN(val0) ? isNaN(val1) ? 0 : val1 : val0; - valueSync.value.splice(index2, 1, val2 < 0 ? 0 : val2); - } - } - break; - case mode.TIME: - case mode.DATE: - valueSync.value = String(val); - break; - default: { - var _valueSync = Number(val); - valueSync.value = _valueSync < 0 ? 0 : _valueSync; - break; - } - } - }; - var _updatePicker = (data) => { - page.value && page.value.sendMessage(data); - }; - var _showWeexPicker = (data) => { - var res = { - event: "cancel" - }; - page.value = showPage({ - url: "__uniapppicker", - data, - style: { - titleNView: false, - animationType: "none", - animationDuration: 0, - background: "rgba(0,0,0,0)", - popGesture: "none" - }, - onMessage: (message) => { - var event = message.event; - if (event === "created") { - _updatePicker(data); - return; - } - if (event === "columnchange") { - delete message.event; - trigger2(event, {}, message); - return; - } - res = message; - }, - onClose: () => { - page.value = null; - var event = res.event; - delete res.event; - event && trigger2(event, {}, res); - } - }); - }; - var _showNativePicker = (data, popover) => { - plus.nativeUI[props2.mode === mode.TIME ? "pickTime" : "pickDate"]((res) => { - var date = res.date; - trigger2("change", {}, { - value: props2.mode === mode.TIME ? "".concat(padLeft(date.getHours()), ":").concat(padLeft(date.getMinutes())) : "".concat(date.getFullYear(), "-").concat(padLeft(date.getMonth() + 1), "-").concat(padLeft(date.getDate())) - }); - }, () => { - trigger2("cancel", {}, {}); - }, props2.mode === mode.TIME ? { - time: getDate(props2.value, mode.TIME), - popover - } : { - date: getDate(props2.value, mode.DATE), - minDate: getDate(props2.start, mode.DATE), - maxDate: getDate(props2.end, mode.DATE), - popover - }); - }; - var _showPicker = (data, popover) => { - if ((data.mode === mode.TIME || data.mode === mode.DATE) && !data.fields) { - _showNativePicker(data, popover); - } else { - data.fields = Object.values(fields).includes(data.fields) ? data.fields : fields.DAY; - _showWeexPicker(data); - } - }; - var _show = (event) => { - if (props2.disabled) { - return; - } - var eventTarget = event.currentTarget; - var rect = eventTarget.getBoundingClientRect(); - _showPicker(Object.assign({}, props2, { - value: valueSync.value, - locale: getLocale(), - messages: { - done: t2("uni.picker.done"), - cancel: t2("uni.picker.cancel") - } - }), { - top: rect.top + getNavigationBarHeight(), - left: rect.left, - width: rect.width, - height: rect.height - }); - }; - var uniForm = inject(uniFormKey, false); - var formField = { - submit: () => [props2.name, valueSync.value], - reset: () => { - switch (props2.mode) { - case mode.SELECTOR: - valueSync.value = 0; - break; - case mode.MULTISELECTOR: - Array.isArray(props2.value) && (valueSync.value = props2.value.map((val) => 0)); - break; - case mode.DATE: - case mode.TIME: - valueSync.value = ""; - break; - } - } - }; - if (uniForm) { - uniForm.addField(formField); - onBeforeUnmount(() => uniForm.removeField(formField)); - } - Object.keys(props2).forEach((key2) => { - if (key2 !== "name") { - watch(() => props2[key2], (val) => { - var data = {}; - data[key2] = val; - _updatePicker(data); - }, { - deep: true - }); - } - }); - watch(() => props2.value, _setValueSync, { - deep: true - }); - _setValueSync(); - return () => createVNode("uni-picker", { - "ref": rootRef, - "onClick": _show - }, [createVNode("slot", null, null)], 8, ["onClick"]); - } - }); - class UniPicker extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-picker", Picker, parentNodeId, refNodeId, nodeJson); - } - } - var pickerView = ""; - class UniPickerView extends UniContainerComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-picker-view", PickerView, parentNodeId, refNodeId, nodeJson, ".uni-picker-view-wrapper"); - } - } - var pickerViewColumn = ""; - class UniPickerViewColumn extends UniContainerComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-picker-view-column", PickerViewColumn, parentNodeId, refNodeId, nodeJson, ".uni-picker-view-content"); - } - } - var progress = ""; - class UniProgress extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-progress", Progress, parentNodeId, refNodeId, nodeJson); - } - } - var radio = ""; - class UniRadio extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-radio", Radio, parentNodeId, refNodeId, nodeJson, ".uni-radio-wrapper"); - } - setText(text2) { - setHolderText(this.$holder, "uni-radio-input", text2); - } - } - var radioGroup = ""; - class UniRadioGroup extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-radio-group", RadioGroup, parentNodeId, refNodeId, nodeJson); - } - } - var richText = ""; - class UniRichText extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-rich-text", RichText, parentNodeId, refNodeId, nodeJson); - } - } - var scrollView = ""; - class UniScrollView extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-scroll-view", ScrollView, parentNodeId, refNodeId, nodeJson, ".uni-scroll-view-content"); - } - setText(text2) { - setHolderText(this.$holder, "uni-scroll-view-refresher", text2); - } - } - var slider = ""; - class UniSlider extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-slider", Slider, parentNodeId, refNodeId, nodeJson); - } - } - var swiper = ""; - class UniSwiper extends UniContainerComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-swiper", Swiper, parentNodeId, refNodeId, nodeJson, ".uni-swiper-slide-frame"); - } - } - var swiperItem = ""; - class UniSwiperItem extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-swiper-item", SwiperItem, parentNodeId, refNodeId, nodeJson); - } - } - var _switch = ""; - class UniSwitch extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-switch", Switch, parentNodeId, refNodeId, nodeJson); - } - } - var textarea = ""; - class UniTextarea extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-textarea", Textarea, parentNodeId, refNodeId, nodeJson); - } - init(nodeJson) { - super.init(nodeJson); - initVModel(this.$props); - } - } - var video = ""; - var props$1 = { - id: { - type: String, - default: "" - }, - src: { - type: String, - default: "" - }, - duration: { - type: [Number, String], - default: "" - }, - controls: { - type: [Boolean, String], - default: true - }, - danmuList: { - type: Array, - default() { - return []; - } - }, - danmuBtn: { - type: [Boolean, String], - default: false - }, - enableDanmu: { - type: [Boolean, String], - default: false - }, - autoplay: { - type: [Boolean, String], - default: false - }, - loop: { - type: [Boolean, String], - default: false - }, - muted: { - type: [Boolean, String], - default: false - }, - objectFit: { - type: String, - default: "contain" - }, - poster: { - type: String, - default: "" - }, - direction: { - type: [String, Number], - default: "" - }, - showProgress: { - type: Boolean, - default: true - }, - initialTime: { - type: [String, Number], - default: 0 - }, - showFullscreenBtn: { - type: [Boolean, String], - default: true - }, - pageGesture: { - type: [Boolean, String], - default: false - }, - enableProgressGesture: { - type: [Boolean, String], - default: true - }, - vslideGesture: { - type: [Boolean, String], - default: false - }, - vslideGestureInFullscreen: { - type: [Boolean, String], - default: false - }, - showPlayBtn: { - type: [Boolean, String], - default: true - }, - enablePlayGesture: { - type: [Boolean, String], - default: true - }, - showCenterPlayBtn: { - type: [Boolean, String], - default: true - }, - showLoading: { - type: [Boolean, String], - default: true - }, - codec: { - type: String, - default: "hardware" - }, - httpCache: { - type: [Boolean, String], - default: false - }, - playStrategy: { - type: [Number, String], - default: 0 - }, - header: { - type: Object, - default() { - return {}; - } - }, - advanced: { - type: Array, - default() { - return []; - } - } - }; - var emits = ["play", "pause", "ended", "timeupdate", "fullscreenchange", "fullscreenclick", "waiting", "error"]; - var methods = ["play", "pause", "stop", "seek", "sendDanmu", "playbackRate", "requestFullScreen", "exitFullScreen"]; - var Video = /* @__PURE__ */ defineBuiltInComponent({ - name: "Video", - props: props$1, - emits, - setup(props2, _ref) { - var { - emit: emit2 - } = _ref; - var rootRef = ref(null); - var trigger2 = useCustomEvent(rootRef, emit2); - var containerRef = ref(null); - var attrs2 = useNativeAttrs(props2, ["id"]); - var { - position, - hidden, - onParentReady - } = useNative(containerRef); - var video2; - onParentReady(() => { - video2 = plus.video.createVideoPlayer("video" + Date.now(), Object.assign({}, attrs2.value, position)); - plus.webview.currentWebview().append(video2); - if (hidden.value) { - video2.hide(); - } - emits.forEach((key2) => { - video2.addEventListener(key2, (event) => { - trigger2(key2, {}, event.detail); - }); - }); - watch(() => attrs2.value, (attrs3) => video2.setStyles(attrs3), { - deep: true - }); - watch(() => position, (position2) => video2.setStyles(position2), { - deep: true - }); - watch(() => hidden.value, (val) => { - video2[val ? "hide" : "show"](); - if (!val) { - video2.setStyles(position); - } - }); - }); - var id2 = useContextInfo(); - useSubscribe((type, data) => { - if (methods.includes(type)) { - var options; - switch (type) { - case "seek": - options = data.position; - break; - case "sendDanmu": - options = data; - break; - case "playbackRate": - options = data.rate; - break; - case "requestFullScreen": - options = data.direction; - break; - } - if (video2) { - video2[type](options); - } - } - }, id2, true); - onBeforeUnmount(() => { - if (video2) { - video2.close(); - } - }); - return () => { - return createVNode("uni-video", { - "ref": rootRef, - "id": props2.id - }, [createVNode("div", { - "ref": containerRef, - "class": "uni-video-container" - }, null, 512), createVNode("div", { - "class": "uni-video-slot" - }, null)], 8, ["id"]); - }; - } - }); - class UniVideo extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-video", Video, parentNodeId, refNodeId, nodeJson, ".uni-video-slot"); - } - } - var webview$1 = ""; - var props = { - src: { - type: String, - default: "" - }, - updateTitle: { - type: Boolean, - default: true - }, - webviewStyles: { - type: Object, - default() { - return {}; - } - } - }; - var webview; - var insertHTMLWebView = (_ref) => { - var { - htmlId, - src, - webviewStyles, - props: props2 - } = _ref; - var parentWebview = plus.webview.currentWebview(); - var styles = extend(webviewStyles, { - "uni-app": "none", - isUniH5: true - }); - var parentTitleNView = parentWebview.getTitleNView(); - if (parentTitleNView) { - var defaultTop = NAVBAR_HEIGHT + parseFloat(styles.top || "0"); - if (plus.navigator.isImmersedStatusbar()) { - defaultTop += getStatusbarHeight(); - } - styles.top = String(defaultTop); - styles.bottom = styles.bottom || "0"; - } - webview = plus.webview.create(src, htmlId, styles); - if (parentTitleNView) { - webview.addEventListener("titleUpdate", function() { - var _webview; - if (!props2.updateTitle) - return; - var title = (_webview = webview) === null || _webview === void 0 ? void 0 : _webview.getTitle(); - parentWebview.setStyle({ - titleNView: { - titleText: !title || title === "null" ? " " : title - } - }); - }); - } - plus.webview.currentWebview().append(webview); - }; - var removeHTMLWebView = () => { - var _webview2; - plus.webview.currentWebview().remove(webview); - (_webview2 = webview) === null || _webview2 === void 0 ? void 0 : _webview2.close("none"); - webview = null; - }; - var WebView = /* @__PURE__ */ defineBuiltInComponent({ - name: "WebView", - props, - setup(props2) { - var pageId = getCurrentPageId(); - var containerRef = ref(null); - var { - hidden, - onParentReady - } = useNative(containerRef); - var webviewStyles = computed$1(() => props2.webviewStyles); - onParentReady(() => { - var _webview3; - var htmlId = ref(WEBVIEW_ID_PREFIX + pageId); - insertHTMLWebView({ - htmlId: htmlId.value, - src: getRealPath(props2.src), - webviewStyles: webviewStyles.value, - props: props2 - }); - UniViewJSBridge.publishHandler(WEBVIEW_INSERTED, {}, pageId); - if (hidden.value) - (_webview3 = webview) === null || _webview3 === void 0 ? void 0 : _webview3.hide(); - }); - onBeforeUnmount(() => { - removeHTMLWebView(); - UniViewJSBridge.publishHandler(WEBVIEW_REMOVED, {}, pageId); - }); - watch(() => props2.src, (val) => { - var _webview5; - var realPath = getRealPath(val) || ""; - if (!realPath) { - return; - } - if (/^(http|https):\/\//.test(realPath) && props2.webviewStyles.progress) { - var _webview4; - (_webview4 = webview) === null || _webview4 === void 0 ? void 0 : _webview4.setStyle({ - progress: { - color: props2.webviewStyles.progress.color - } - }); - } - (_webview5 = webview) === null || _webview5 === void 0 ? void 0 : _webview5.loadURL(realPath); - }); - watch(webviewStyles, (webviewStyles2) => { - var _webview6; - (_webview6 = webview) === null || _webview6 === void 0 ? void 0 : _webview6.setStyle(webviewStyles2); - }); - watch(hidden, (val) => { - webview && webview[val ? "hide" : "show"](); - }); - return () => createVNode("uni-web-view", { - "ref": containerRef - }, null, 512); - } - }); - class UniWebView extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-web-view", WebView, parentNodeId, refNodeId, nodeJson); - } - } - var BuiltInComponents = { - "#text": UniTextNode, - "#comment": UniComment, - VIEW: UniViewElement, - IMAGE: UniImage, - TEXT: UniTextElement, - NAVIGATOR: UniNavigator, - FORM: UniForm, - BUTTON: UniButton, - INPUT: UniInput, - LABEL: UniLabel, - RADIO: UniRadio, - CHECKBOX: UniCheckbox, - "CHECKBOX-GROUP": UniCheckboxGroup, - AD: UniAd, - CAMERA: UniCamera, - CANVAS: UniCanvas, - "COVER-IMAGE": UniCoverImage, - "COVER-VIEW": UniCoverView, - EDITOR: UniEditor, - "FUNCTIONAL-PAGE-NAVIGATOR": UniFunctionalPageNavigator, - ICON: UniIcon, - "RADIO-GROUP": UniRadioGroup, - "LIVE-PLAYER": UniLivePlayer, - "LIVE-PUSHER": UniLivePusher, - MAP: UniMap, - "MOVABLE-AREA": UniMovableArea, - "MOVABLE-VIEW": UniMovableView, - "OFFICIAL-ACCOUNT": UniOfficialAccount, - "OPEN-DATA": UniOpenData, - PICKER: UniPicker, - "PICKER-VIEW": UniPickerView, - "PICKER-VIEW-COLUMN": UniPickerViewColumn, - PROGRESS: UniProgress, - "RICH-TEXT": UniRichText, - "SCROLL-VIEW": UniScrollView, - SLIDER: UniSlider, - SWIPER: UniSwiper, - "SWIPER-ITEM": UniSwiperItem, - SWITCH: UniSwitch, - TEXTAREA: UniTextarea, - VIDEO: UniVideo, - "WEB-VIEW": UniWebView - }; - function createWrapper(component, props2) { - return () => h(component, props2); - } - var elements = /* @__PURE__ */ new Map(); - function $(id2) { - return elements.get(id2); - } - function getElement(id2) { - return elements.get(id2); - } - function removeElement(id2) { - return elements.delete(id2); - } - function createElement(id2, tag, parentNodeId, refNodeId) { - var nodeJson = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {}; - var element; - if (id2 === 0) { - element = new UniNode(id2, tag, parentNodeId, document.createElement(tag)); - } else { - var Component = BuiltInComponents[tag]; - if (Component) { - element = new Component(id2, parentNodeId, refNodeId, nodeJson); - } else { - element = new UniElement(id2, document.createElement(tag), parentNodeId, refNodeId, nodeJson); - } - } - elements.set(id2, element); - return element; - } - var pageReadyCallbacks = []; - var isPageReady = false; - function onPageReady(callback) { - if (isPageReady) { - return callback(); - } - pageReadyCallbacks.push(callback); - } - function setPageReady() { - isPageReady = true; - pageReadyCallbacks.forEach((fn) => { - try { - fn(); - } catch (e2) { - console.error(e2); - } - }); - pageReadyCallbacks.length = 0; - } - function onPageCreated() { - } - function onPageCreate(_ref) { - var { - css, - route, - platform, - pixelRatio: pixelRatio2, - windowWidth, - disableScroll, - statusbarHeight, - windowTop, - windowBottom - } = _ref; - initPageInfo(route); - initSystemInfo(platform, pixelRatio2, windowWidth); - initPageElement(); - var pageId = plus.webview.currentWebview().id; - window.__id__ = pageId; - document.title = "".concat(route, "[").concat(pageId, "]"); - initCssVar(statusbarHeight, windowTop, windowBottom); - if (disableScroll) { - document.addEventListener("touchmove", disableScrollListener); - } - if (css) { - initPageCss(route); - } else { - setPageReady(); - } - } - function initPageInfo(route) { - window.__PAGE_INFO__ = { - route - }; - } - function initSystemInfo(platform, pixelRatio2, windowWidth) { - window.__SYSTEM_INFO__ = { - platform, - pixelRatio: pixelRatio2, - windowWidth - }; - } - function initPageElement() { - createElement(0, "div", -1, -1).$ = document.getElementById("app"); - } - function initPageCss(route) { - var element = document.createElement("link"); - element.type = "text/css"; - element.rel = "stylesheet"; - element.href = route + ".css"; - element.onload = setPageReady; - element.onerror = setPageReady; - document.head.appendChild(element); - } - function initCssVar(statusbarHeight, windowTop, windowBottom) { - var cssVars = { - "--window-left": "0px", - "--window-right": "0px", - "--window-top": windowTop + "px", - "--window-bottom": windowBottom + "px", - "--status-bar-height": statusbarHeight + "px" - }; - updateCssVar(cssVars); - } - var isPageScrollInited = false; - function initPageScroll(onReachBottomDistance) { - if (isPageScrollInited) { - return; - } - isPageScrollInited = true; - var opts = { - onReachBottomDistance, - onPageScroll(scrollTop) { - UniViewJSBridge.publishHandler(ON_PAGE_SCROLL, { - scrollTop - }); - }, - onReachBottom() { - UniViewJSBridge.publishHandler(ON_REACH_BOTTOM); - } - }; - requestAnimationFrame(() => document.addEventListener("scroll", createScrollListener(opts))); - } - function pageScrollTo(_ref2, publish) { - var { - scrollTop, - selector, - duration - } = _ref2; - scrollTo(selector || scrollTop || 0, duration); - publish(); - } - function onVdSync(actions) { - var firstAction = actions[0]; - if (firstAction[0] === ACTION_TYPE_PAGE_CREATE) { - onPageCreateSync(firstAction); - } else { - onPageReady(() => onPageUpdateSync(actions)); - } - } - function onPageCreateSync(action) { - return onPageCreate(action[1]); - } - function onPageUpdateSync(actions) { - var dictAction = actions[0]; - var getDict = createGetDict(dictAction[0] === ACTION_TYPE_DICT ? dictAction[1] : []); - actions.forEach((action) => { - switch (action[0]) { - case ACTION_TYPE_PAGE_CREATE: - return onPageCreate(action[1]); - case ACTION_TYPE_PAGE_CREATED: - return onPageCreated(); - case ACTION_TYPE_CREATE: - var parentNodeId = action[3]; - return createElement(action[1], getDict(action[2]), parentNodeId === -1 ? 0 : parentNodeId, action[4], decodeNodeJson(getDict, action[5])); - case ACTION_TYPE_INSERT: - return $(action[1]).insert(action[2], action[3], decodeNodeJson(getDict, action[4])); - case ACTION_TYPE_REMOVE: - return $(action[1]).remove(); - case ACTION_TYPE_SET_ATTRIBUTE: - return $(action[1]).setAttr(getDict(action[2]), getDict(action[3])); - case ACTION_TYPE_REMOVE_ATTRIBUTE: - return $(action[1]).removeAttr(getDict(action[2])); - case ACTION_TYPE_ADD_EVENT: - return $(action[1]).addEvent(getDict(action[2]), action[3]); - case ACTION_TYPE_ADD_WXS_EVENT: - return $(action[1]).addWxsEvent(getDict(action[2]), getDict(action[3]), action[4]); - case ACTION_TYPE_REMOVE_EVENT: - return $(action[1]).removeEvent(getDict(action[2])); - case ACTION_TYPE_SET_TEXT: - return $(action[1]).setText(getDict(action[2])); - case ACTION_TYPE_PAGE_SCROLL: - return initPageScroll(action[1]); - } - }); - flushPostActionJobs(); - } - function initSubscribeHandlers() { - var { - subscribe - } = UniViewJSBridge; - subscribe(VD_SYNC, onVdSync); - subscribe(API_SET_LOCALE, (local) => useI18n().setLocale(local)); - subscribe(ON_WEBVIEW_READY, onWebviewReady$1); - } - function onWebviewReady$1() { - UniViewJSBridge.publishHandler(ON_WEBVIEW_READY); - } - function findElem(vm) { - { - return window.__$__(vm).$; - } - } - function getRootInfo(fields2) { - var info = {}; - if (fields2.id) { - info.id = ""; - } - if (fields2.dataset) { - info.dataset = {}; - } - if (fields2.rect) { - info.left = 0; - info.right = 0; - info.top = 0; - info.bottom = 0; - } - if (fields2.size) { - info.width = document.documentElement.clientWidth; - info.height = document.documentElement.clientHeight; - } - if (fields2.scrollOffset) { - var documentElement = document.documentElement; - var body = document.body; - info.scrollLeft = documentElement.scrollLeft || body.scrollLeft || 0; - info.scrollTop = documentElement.scrollTop || body.scrollTop || 0; - info.scrollHeight = documentElement.scrollHeight || body.scrollHeight || 0; - info.scrollWidth = documentElement.scrollWidth || body.scrollWidth || 0; - } - return info; - } - function getNodeInfo(el, fields2) { - var info = {}; - var { - top - } = getWindowOffset(); - if (fields2.id) { - info.id = el.id; - } - if (fields2.dataset) { - info.dataset = getCustomDataset(el); - } - if (fields2.rect || fields2.size) { - var rect = el.getBoundingClientRect(); - if (fields2.rect) { - info.left = rect.left; - info.right = rect.right; - info.top = rect.top - top; - info.bottom = rect.bottom - top; - } - if (fields2.size) { - info.width = rect.width; - info.height = rect.height; - } - } - if (Array.isArray(fields2.properties)) { - fields2.properties.forEach((prop) => { - prop = prop.replace(/-([a-z])/g, function(e2, t2) { - return t2.toUpperCase(); - }); - }); - } - if (fields2.scrollOffset) { - if (el.tagName === "UNI-SCROLL-VIEW") { - var scroll = el.children[0].children[0]; - info.scrollLeft = scroll.scrollLeft; - info.scrollTop = scroll.scrollTop; - info.scrollHeight = scroll.scrollHeight; - info.scrollWidth = scroll.scrollWidth; - } else { - info.scrollLeft = 0; - info.scrollTop = 0; - info.scrollHeight = 0; - info.scrollWidth = 0; - } - } - if (Array.isArray(fields2.computedStyle)) { - var sytle = getComputedStyle(el); - fields2.computedStyle.forEach((name) => { - info[name] = sytle[name]; - }); - } - if (fields2.context) { - info.contextInfo = getContextInfo(el); - } - return info; - } - function findElm(component, pageVm2) { - if (!component) { - return pageVm2.$el; - } - { - return window.__$__(component).$; - } - } - function matches(element, selectors) { - var matches2 = element.matches || element.matchesSelector || element.mozMatchesSelector || element.msMatchesSelector || element.oMatchesSelector || element.webkitMatchesSelector || function(selectors2) { - var matches3 = this.parentElement.querySelectorAll(selectors2); - var i2 = matches3.length; - while (--i2 >= 0 && matches3.item(i2) !== this) { - } - return i2 > -1; - }; - return matches2.call(element, selectors); - } - function getNodesInfo(pageVm2, component, selector, single, fields2) { - var selfElement = findElm(component, pageVm2); - var parentElement = selfElement.parentElement; - if (!parentElement) { - return single ? null : []; - } - var { - nodeType - } = selfElement; - var maybeFragment = nodeType === 3 || nodeType === 8; - if (single) { - var node = maybeFragment ? parentElement.querySelector(selector) : matches(selfElement, selector) ? selfElement : selfElement.querySelector(selector); - if (node) { - return getNodeInfo(node, fields2); - } - return null; - } else { - var infos = []; - var nodeList = (maybeFragment ? parentElement : selfElement).querySelectorAll(selector); - if (nodeList && nodeList.length) { - [].forEach.call(nodeList, (node2) => { - infos.push(getNodeInfo(node2, fields2)); - }); - } - if (!maybeFragment && matches(selfElement, selector)) { - infos.unshift(getNodeInfo(selfElement, fields2)); - } - return infos; - } - } - function requestComponentInfo(page, reqs, callback) { - var result = []; - reqs.forEach((_ref) => { - var { - component, - selector, - single, - fields: fields2 - } = _ref; - if (component === null) { - result.push(getRootInfo(fields2)); - } else { - result.push(getNodesInfo(page, component, selector, single, fields2)); - } - }); - callback(result); - } - function setCurrentPageMeta(_page, _ref) { - var { - pageStyle, - rootFontSize - } = _ref; - if (pageStyle) { - var pageElm = document.querySelector("uni-page-body") || document.body; - pageElm.setAttribute("style", pageStyle); - } - if (rootFontSize && document.documentElement.style.fontSize !== rootFontSize) { - document.documentElement.style.fontSize = rootFontSize; - } - } - function addIntersectionObserver(_ref, _pageId) { - var { - reqId, - component, - options, - callback - } = _ref; - var $el = findElem(component); - ($el.__io || ($el.__io = {}))[reqId] = requestComponentObserver($el, options, callback); - } - function removeIntersectionObserver(_ref2, _pageId) { - var { - reqId, - component - } = _ref2; - var $el = findElem(component); - var intersectionObserver = $el.__io && $el.__io[reqId]; - if (intersectionObserver) { - intersectionObserver.disconnect(); - delete $el.__io[reqId]; - } - } - var mediaQueryObservers = {}; - var listeners = {}; - function handleMediaQueryStr($props) { - var mediaQueryArr = []; - var propsMenu = ["width", "minWidth", "maxWidth", "height", "minHeight", "maxHeight", "orientation"]; - for (var item of propsMenu) { - if (item !== "orientation" && $props[item] && Number($props[item] >= 0)) { - mediaQueryArr.push("(".concat(humpToLine(item), ": ").concat(Number($props[item]), "px)")); - } - if (item === "orientation" && $props[item]) { - mediaQueryArr.push("(".concat(humpToLine(item), ": ").concat($props[item], ")")); - } - } - var mediaQueryStr = mediaQueryArr.join(" and "); - return mediaQueryStr; - } - function humpToLine(name) { - return name.replace(/([A-Z])/g, "-$1").toLowerCase(); - } - function addMediaQueryObserver(_ref, _pageId) { - var { - reqId, - component, - options, - callback - } = _ref; - var mediaQueryObserver = mediaQueryObservers[reqId] = window.matchMedia(handleMediaQueryStr(options)); - var listener = listeners[reqId] = (observer) => callback(observer.matches); - listener(mediaQueryObserver); - mediaQueryObserver.addListener(listener); - } - function removeMediaQueryObserver(_ref2, _pageId) { - var { - reqId, - component - } = _ref2; - var listener = listeners[reqId]; - var mediaQueryObserver = mediaQueryObservers[reqId]; - if (mediaQueryObserver) { - mediaQueryObserver.removeListener(listener); - delete listeners[reqId]; - delete mediaQueryObservers[reqId]; - } - } - function loadFontFace(_ref, publish) { - var { - family, - source, - desc - } = _ref; - addFont(family, source, desc).then(() => { - publish(); - }).catch((err2) => { - publish(err2.toString()); - }); - } - var pageVm = { - $el: document.body - }; - function initViewMethods() { - var pageId = getCurrentPageId(); - subscribeViewMethod(pageId, (fn) => { - return function() { - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - onPageReady(() => { - fn.apply(null, args); - }); - }; - }); - registerViewMethod(pageId, "requestComponentInfo", (args, publish) => { - requestComponentInfo(pageVm, args.reqs, publish); - }); - registerViewMethod(pageId, "addIntersectionObserver", (args) => { - addIntersectionObserver(extend({}, args, { - callback(res) { - UniViewJSBridge.publishHandler(args.eventName, res); - } - })); - }); - registerViewMethod(pageId, "removeIntersectionObserver", (args) => { - removeIntersectionObserver(args); - }); - registerViewMethod(pageId, "addMediaQueryObserver", (args) => { - addMediaQueryObserver(extend({}, args, { - callback(res) { - UniViewJSBridge.publishHandler(args.eventName, res); - } - })); - }); - registerViewMethod(pageId, "removeMediaQueryObserver", (args) => { - removeMediaQueryObserver(args); - }); - registerViewMethod(pageId, API_PAGE_SCROLL_TO, pageScrollTo); - registerViewMethod(pageId, API_LOAD_FONT_FACE, loadFontFace); - registerViewMethod(pageId, API_SET_PAGE_META, (args) => { - setCurrentPageMeta(null, args); - }); - } - window.uni = uni$1; - window.UniViewJSBridge = UniViewJSBridge$1; - window.rpx2px = upx2px; - window.normalizeStyleName = normalizeStyleName$1; - window.normalizeStyleValue = normalizeStyleValue$1; - window.__$__ = $; - window.__f__ = formatAppLog; - function onWebviewReady() { - initView(); - initViewMethods(); - initSubscribeHandlers(); - preventDoubleTap(); - UniViewJSBridge$1.publishHandler(ON_WEBVIEW_READY); - } - if (typeof plus !== "undefined") { - onWebviewReady(); - } else { - document.addEventListener("plusready", onWebviewReady); - } -}); +(function(Kn){typeof define=="function"&&define.amd?define(Kn):Kn()})(function(){"use strict";var Kn="",XT="",ZT="",Lr={exports:{}},ha={exports:{}},ga={exports:{}},zh=ga.exports={version:"2.6.12"};typeof __e=="number"&&(__e=zh);var pa={exports:{}};pa.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")(),typeof __g=="number"&&(__g=window);var Uh=ga.exports,Pl="__core-js_shared__",Nl=window[Pl]||(window[Pl]={});(ha.exports=function(e,t){return Nl[e]||(Nl[e]=t!==void 0?t:{})})("versions",[]).push({version:Uh.version,mode:"window",copyright:"\xA9 2020 Denis Pushkarev (zloirock.ru)"});var Hh=0,Wh=Math.random(),Gn=function(e){return"Symbol(".concat(e===void 0?"":e,")_",(++Hh+Wh).toString(36))},Jn=ha.exports("wks"),Vh=Gn,Qn=pa.exports.Symbol,Dl=typeof Qn=="function",jh=Lr.exports=function(e){return Jn[e]||(Jn[e]=Dl&&Qn[e]||(Dl?Qn:Vh)("Symbol."+e))};jh.store=Jn;var ma={},eo=function(e){return typeof e=="object"?e!==null:typeof e=="function"},Yh=eo,to=function(e){if(!Yh(e))throw TypeError(e+" is not an object!");return e},_a=function(e){try{return!!e()}catch(t){return!0}},ui=!_a(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7}),Bl=eo,ro=pa.exports.document,qh=Bl(ro)&&Bl(ro.createElement),Fl=function(e){return qh?ro.createElement(e):{}},Xh=!ui&&!_a(function(){return Object.defineProperty(Fl("div"),"a",{get:function(){return 7}}).a!=7}),ba=eo,Zh=function(e,t){if(!ba(e))return e;var r,i;if(t&&typeof(r=e.toString)=="function"&&!ba(i=r.call(e))||typeof(r=e.valueOf)=="function"&&!ba(i=r.call(e))||!t&&typeof(r=e.toString)=="function"&&!ba(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")},$l=to,Kh=Xh,Gh=Zh,Jh=Object.defineProperty;ma.f=ui?Object.defineProperty:function(t,r,i){if($l(t),r=Gh(r,!0),$l(i),Kh)try{return Jh(t,r,i)}catch(a){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[r]=i.value),t};var zl=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}},Qh=ma,eg=zl,Pr=ui?function(e,t,r){return Qh.f(e,t,eg(1,r))}:function(e,t,r){return e[t]=r,e},io=Lr.exports("unscopables"),ao=Array.prototype;ao[io]==null&&Pr(ao,io,{});var tg=function(e){ao[io][e]=!0},rg=function(e,t){return{value:t,done:!!e}},no={},ig={}.toString,ag=function(e){return ig.call(e).slice(8,-1)},ng=ag,og=Object("z").propertyIsEnumerable(0)?Object:function(e){return ng(e)=="String"?e.split(""):Object(e)},Ul=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e},sg=og,lg=Ul,wa=function(e){return sg(lg(e))},ya={exports:{}},ug={}.hasOwnProperty,xa=function(e,t){return ug.call(e,t)},fg=ha.exports("native-function-to-string",Function.toString),Sa=Pr,Hl=xa,oo=Gn("src"),so=fg,Wl="toString",cg=(""+so).split(Wl);ga.exports.inspectSource=function(e){return so.call(e)},(ya.exports=function(e,t,r,i){var a=typeof r=="function";a&&(Hl(r,"name")||Sa(r,"name",t)),e[t]!==r&&(a&&(Hl(r,oo)||Sa(r,oo,e[t]?""+e[t]:cg.join(String(t)))),e===window?e[t]=r:i?e[t]?e[t]=r:Sa(e,t,r):(delete e[t],Sa(e,t,r)))})(Function.prototype,Wl,function(){return typeof this=="function"&&this[oo]||so.call(this)});var Vl=function(e){if(typeof e!="function")throw TypeError(e+" is not a function!");return e},vg=Vl,dg=function(e,t,r){if(vg(e),t===void 0)return e;switch(r){case 1:return function(i){return e.call(t,i)};case 2:return function(i,a){return e.call(t,i,a)};case 3:return function(i,a,n){return e.call(t,i,a,n)}}return function(){return e.apply(t,arguments)}},Ea=ga.exports,hg=Pr,gg=ya.exports,jl=dg,lo="prototype",je=function(e,t,r){var i=e&je.F,a=e&je.G,n=e&je.S,o=e&je.P,s=e&je.B,u=a?window:n?window[t]||(window[t]={}):(window[t]||{})[lo],l=a?Ea:Ea[t]||(Ea[t]={}),f=l[lo]||(l[lo]={}),d,p,h,y;a&&(r=t);for(d in r)p=!i&&u&&u[d]!==void 0,h=(p?u:r)[d],y=s&&p?jl(h,window):o&&typeof h=="function"?jl(Function.call,h):h,u&&gg(u,d,h,e&je.U),l[d]!=h&&hg(l,d,y),o&&f[d]!=h&&(f[d]=h)};window.core=Ea,je.F=1,je.G=2,je.S=4,je.P=8,je.B=16,je.W=32,je.U=64,je.R=128;var uo=je,pg=Math.ceil,mg=Math.floor,Yl=function(e){return isNaN(e=+e)?0:(e>0?mg:pg)(e)},_g=Yl,bg=Math.min,wg=function(e){return e>0?bg(_g(e),9007199254740991):0},yg=Yl,xg=Math.max,Sg=Math.min,Eg=function(e,t){return e=yg(e),e<0?xg(e+t,0):Sg(e,t)},Tg=wa,Cg=wg,Og=Eg,Ag=function(e){return function(t,r,i){var a=Tg(t),n=Cg(a.length),o=Og(i,n),s;if(e&&r!=r){for(;n>o;)if(s=a[o++],s!=s)return!0}else for(;n>o;o++)if((e||o in a)&&a[o]===r)return e||o||0;return!e&&-1}},ql=ha.exports("keys"),Ig=Gn,fo=function(e){return ql[e]||(ql[e]=Ig(e))},Xl=xa,kg=wa,Mg=Ag(!1),Rg=fo("IE_PROTO"),Lg=function(e,t){var r=kg(e),i=0,a=[],n;for(n in r)n!=Rg&&Xl(r,n)&&a.push(n);for(;t.length>i;)Xl(r,n=t[i++])&&(~Mg(a,n)||a.push(n));return a},Zl="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),Pg=Lg,Ng=Zl,co=Object.keys||function(t){return Pg(t,Ng)},Dg=ma,Bg=to,Fg=co,$g=ui?Object.defineProperties:function(t,r){Bg(t);for(var i=Fg(r),a=i.length,n=0,o;a>n;)Dg.f(t,o=i[n++],r[o]);return t},Kl=pa.exports.document,zg=Kl&&Kl.documentElement,Ug=to,Hg=$g,Gl=Zl,Wg=fo("IE_PROTO"),vo=function(){},ho="prototype",Ta=function(){var e=Fl("iframe"),t=Gl.length,r="<",i=">",a;for(e.style.display="none",zg.appendChild(e),e.src="javascript:",a=e.contentWindow.document,a.open(),a.write(r+"script"+i+"document.F=Object"+r+"/script"+i),a.close(),Ta=a.F;t--;)delete Ta[ho][Gl[t]];return Ta()},Vg=Object.create||function(t,r){var i;return t!==null?(vo[ho]=Ug(t),i=new vo,vo[ho]=null,i[Wg]=t):i=Ta(),r===void 0?i:Hg(i,r)},jg=ma.f,Yg=xa,Jl=Lr.exports("toStringTag"),Ql=function(e,t,r){e&&!Yg(e=r?e:e.prototype,Jl)&&jg(e,Jl,{configurable:!0,value:t})},qg=Vg,Xg=zl,Zg=Ql,eu={};Pr(eu,Lr.exports("iterator"),function(){return this});var Kg=function(e,t,r){e.prototype=qg(eu,{next:Xg(1,r)}),Zg(e,t+" Iterator")},Gg=Ul,tu=function(e){return Object(Gg(e))},Jg=xa,Qg=tu,ru=fo("IE_PROTO"),ep=Object.prototype,tp=Object.getPrototypeOf||function(e){return e=Qg(e),Jg(e,ru)?e[ru]:typeof e.constructor=="function"&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?ep:null},go=uo,rp=ya.exports,iu=Pr,au=no,ip=Kg,ap=Ql,np=tp,fi=Lr.exports("iterator"),po=!([].keys&&"next"in[].keys()),op="@@iterator",nu="keys",Ca="values",ou=function(){return this},sp=function(e,t,r,i,a,n,o){ip(r,t,i);var s=function(c){if(!po&&c in d)return d[c];switch(c){case nu:return function(){return new r(this,c)};case Ca:return function(){return new r(this,c)}}return function(){return new r(this,c)}},u=t+" Iterator",l=a==Ca,f=!1,d=e.prototype,p=d[fi]||d[op]||a&&d[a],h=p||s(a),y=a?l?s("entries"):h:void 0,b=t=="Array"&&d.entries||p,w,g,_;if(b&&(_=np(b.call(new e)),_!==Object.prototype&&_.next&&(ap(_,u,!0),typeof _[fi]!="function"&&iu(_,fi,ou))),l&&p&&p.name!==Ca&&(f=!0,h=function(){return p.call(this)}),(po||f||!d[fi])&&iu(d,fi,h),au[t]=h,au[u]=ou,a)if(w={values:l?h:s(Ca),keys:n?h:s(nu),entries:y},o)for(g in w)g in d||rp(d,g,w[g]);else go(go.P+go.F*(po||f),t,w);return w},mo=tg,Oa=rg,su=no,lp=wa,up=sp(Array,"Array",function(e,t){this._t=lp(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,Oa(1)):t=="keys"?Oa(0,r):t=="values"?Oa(0,e[r]):Oa(0,[r,e[r]])},"values");su.Arguments=su.Array,mo("keys"),mo("values"),mo("entries");for(var lu=up,fp=co,cp=ya.exports,uu=Pr,fu=no,cu=Lr.exports,vu=cu("iterator"),du=cu("toStringTag"),hu=fu.Array,gu={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},pu=fp(gu),_o=0;_o!!r[n.toLowerCase()]:n=>!!r[n]}var dp="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",hp=ka(dp);function _u(e){return!!e||e===""}var gp=ka("animation-iteration-count,border-image-outset,border-image-slice,border-image-width,box-flex,box-flex-group,box-ordinal-group,column-count,columns,flex,flex-grow,flex-positive,flex-shrink,flex-negative,flex-order,grid-row,grid-row-end,grid-row-span,grid-row-start,grid-column,grid-column-end,grid-column-span,grid-column-start,font-weight,line-clamp,line-height,opacity,order,orphans,tab-size,widows,z-index,zoom,fill-opacity,flood-opacity,stop-opacity,stroke-dasharray,stroke-dashoffset,stroke-miterlimit,stroke-opacity,stroke-width");function bo(e){if(ne(e)){for(var t={},r=0;r{if(r){var i=r.split(mp);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function _p(e){var t="";if(!e||Ee(e))return t;for(var r in e){var i=e[r],a=r.startsWith("--")?r:Je(r);(Ee(i)||typeof i=="number"&&gp(a))&&(t+="".concat(a,":").concat(i,";"))}return t}function wo(e){var t="";if(Ee(e))t=e;else if(ne(e))for(var r=0;r{},bp=()=>!1,wp=/^on[^a-z]/,Ma=e=>wp.test(e),yo=e=>e.startsWith("onUpdate:"),ce=Object.assign,xo=(e,t)=>{var r=e.indexOf(t);r>-1&&e.splice(r,1)},yp=Object.prototype.hasOwnProperty,ie=(e,t)=>yp.call(e,t),ne=Array.isArray,vi=e=>di(e)==="[object Map]",xp=e=>di(e)==="[object Set]",se=e=>typeof e=="function",Ee=e=>typeof e=="string",So=e=>typeof e=="symbol",We=e=>e!==null&&typeof e=="object",wu=e=>We(e)&&se(e.then)&&se(e.catch),Sp=Object.prototype.toString,di=e=>Sp.call(e),Eo=e=>di(e).slice(8,-1),mt=e=>di(e)==="[object Object]",To=e=>Ee(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ra=ka(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),La=e=>{var t=Object.create(null);return r=>{var i=t[r];return i||(t[r]=e(r))}},Ep=/-(\w)/g,Ht=La(e=>e.replace(Ep,(t,r)=>r?r.toUpperCase():"")),Tp=/\B([A-Z])/g,Je=La(e=>e.replace(Tp,"-$1").toLowerCase()),Co=La(e=>e.charAt(0).toUpperCase()+e.slice(1)),Oo=La(e=>e?"on".concat(Co(e)):""),hi=(e,t)=>!Object.is(e,t),Ao=(e,t)=>{for(var r=0;r{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},Cp=e=>{var t=parseFloat(e);return isNaN(t)?e:t},yu,Op=()=>yu||(yu=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"||typeof window!="undefined"?window:{}),gi=` +`,xu=44,Na="#007aff",Ap=/^([a-z-]+:)?\/\//i,Ip=/^data:.*,.*/,Su="wxs://",Eu="json://",kp="wxsModules",Mp="renderjsModules",Rp="onPageScroll",Lp="onReachBottom",Pp="onWxsInvokeCallMethod",Io=0;function ko(e){var t=Date.now(),r=Io?t-Io:0;Io=t;for(var i=arguments.length,a=new Array(i>1?i-1:0),n=1;nJSON.stringify(o)).join(" "))}function Np(e){var t=Object.create(null);return r=>{var i=t[r];return i||(t[r]=e(r))}}function Dp(e){return Np(e)}function Bp(e){return e.indexOf("/")===0}function Mo(e){return Bp(e)?e:"/"+e}function pi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r;return function(){if(e){for(var i=arguments.length,a=new Array(i),n=0;n{var e=HTMLElement.prototype,t=e.setAttribute;e.setAttribute=function(i,a){if(i.startsWith("data-")&&this.tagName.startsWith("UNI-")){var n=this.__uniDataset||(this.__uniDataset={});n[Cu(i)]=a}t.call(this,i,a)};var r=e.removeAttribute;e.removeAttribute=function(i){this.__uniDataset&&i.startsWith("data-")&&this.tagName.startsWith("UNI-")&&delete this.__uniDataset[Cu(i)],r.call(this,i)}});function Ro(e){return ce({},e.dataset,e.__uniDataset)}function mi(e){return{passive:e}}function Lo(e){var{id:t,offsetTop:r,offsetLeft:i}=e;return{id:t,dataset:Ro(e),offsetTop:r,offsetLeft:i}}function $p(e,t,r){var i=document.fonts;if(i){var a=new FontFace(e,t,r);return a.load().then(()=>{i.add&&i.add(a)})}return new Promise(n=>{var o=document.createElement("style"),s=[];if(r){var{style:u,weight:l,stretch:f,unicodeRange:d,variant:p,featureSettings:h}=r;u&&s.push("font-style:".concat(u)),l&&s.push("font-weight:".concat(l)),f&&s.push("font-stretch:".concat(f)),d&&s.push("unicode-range:".concat(d)),p&&s.push("font-variant:".concat(p)),h&&s.push("font-feature-settings:".concat(h))}o.innerText='@font-face{font-family:"'.concat(e,'";src:').concat(t,";").concat(s.join(";"),"}"),document.head.appendChild(o),n()})}function zp(e,t){if(Ee(e)){var r=document.querySelector(e);r&&(e=r.getBoundingClientRect().top+window.pageYOffset)}e<0&&(e=0);var i=document.documentElement,{clientHeight:a,scrollHeight:n}=i;if(e=Math.min(e,n-a),t===0){i.scrollTop=document.body.scrollTop=e;return}if(window.scrollY!==e){var o=s=>{if(s<=0){window.scrollTo(0,e);return}var u=e-window.scrollY;requestAnimationFrame(function(){window.scrollTo(0,window.scrollY+u/s*10),o(s-10)})};o(t)}}function Up(){return typeof __channelId__=="string"&&__channelId__}function Hp(e,t){switch(Eo(t)){case"Function":return"function() { [native code] }";default:return t}}function Wp(e,t,r){if(Up())return r.push(t.replace("at ","uni-app:///")),console[e].apply(console,r);var i=r.map(function(a){var n=di(a).toLowerCase();if(n==="[object object]"||n==="[object array]")try{a="---BEGIN:JSON---"+JSON.stringify(a,Hp)+"---END:JSON---"}catch(s){a=n}else if(a===null)a="---NULL---";else if(a===void 0)a="---UNDEFINED---";else{var o=Eo(a).toUpperCase();o==="NUMBER"||o==="BOOLEAN"?a="---BEGIN:"+o+"---"+a+"---END:"+o+"---":a=String(a)}return a});return i.join("---COMMA---")+" "+t}function Vp(e,t){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a({stop:1,prevent:1<<1,self:1<<2}))(),Au="class",Do="style",Yp="innerHTML",qp="textContent",Da=".vShow",Iu=".vOwnerId",ku=".vRenderjs",Bo="change:",Mu=1,Xp=2,Zp=3,Kp=4,Gp=5,Jp=6,Qp=7,em=8,tm=9,rm=10,im=12,am=15,nm=20;function om(e,t){var r,i=function(){clearTimeout(r);var a=()=>e.apply(this,arguments);r=setTimeout(a,t)};return i.cancel=function(){clearTimeout(r)},i}var Ru=function(){};Ru.prototype={on:function(e,t,r){var i=this.e||(this.e={});return(i[e]||(i[e]=[])).push({fn:t,ctx:r}),this},once:function(e,t,r){var i=this;function a(){i.off(e,a),t.apply(r,arguments)}return a._=t,this.on(e,a,r)},emit:function(e){var t=[].slice.call(arguments,1),r=((this.e||(this.e={}))[e]||[]).slice(),i=0,a=r.length;for(i;ie!==null&&typeof e=="object",um=["{","}"];class fm{constructor(){this._caches=Object.create(null)}interpolate(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:um;if(!r)return[t];var a=this._caches[t];return a||(a=dm(t,i),this._caches[t]=a),hm(a,r)}}var cm=/^(?:\d)+/,vm=/^(?:\w)+/;function dm(e,t){for(var[r,i]=t,a=[],n=0,o="";ngm.call(e,t),pm=new fm;function mm(e,t){return!!t.find(r=>e.indexOf(r)!==-1)}function _m(e,t){return t.find(r=>e.indexOf(r)===0)}function Nu(e,t){if(!!e){if(e=e.trim().replace(/_/g,"-"),t&&t[e])return e;if(e=e.toLowerCase(),e==="chinese")return _i;if(e.indexOf("zh")===0)return e.indexOf("-hans")>-1?_i:e.indexOf("-hant")>-1||mm(e,["-tw","-hk","-mo","-cht"])?Ba:_i;var r=_m(e,[Wt,Fo,$o]);if(r)return r}}class bm{constructor(t){var{locale:r,fallbackLocale:i,messages:a,watcher:n,formater:o}=t;this.locale=Wt,this.fallbackLocale=Wt,this.message={},this.messages={},this.watchers=[],i&&(this.fallbackLocale=i),this.formater=o||pm,this.messages=a||{},this.setLocale(r||Wt),n&&this.watchLocale(n)}setLocale(t){var r=this.locale;this.locale=Nu(t,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],r!==this.locale&&this.watchers.forEach(i=>{i(this.locale,r)})}getLocale(){return this.locale}watchLocale(t){var r=this.watchers.push(t)-1;return()=>{this.watchers.splice(r,1)}}add(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=this.messages[t];a?i?Object.assign(a,r):Object.keys(r).forEach(n=>{Pu(a,n)||(a[n]=r[n])}):this.messages[t]=r}f(t,r,i){return this.formater.interpolate(t,r,i).join("")}t(t,r,i){var a=this.message;return typeof r=="string"?(r=Nu(r,this.messages),r&&(a=this.messages[r])):i=r,Pu(a,t)?this.formater.interpolate(a[t],i).join(""):(console.warn("Cannot translate the value of keypath ".concat(t,". Use the value of keypath as default.")),t)}}function wm(e,t){e.$watchLocale?e.$watchLocale(r=>{t.setLocale(r)}):e.$watch(()=>e.$locale,r=>{t.setLocale(r)})}function ym(){return typeof uni!="undefined"&&uni.getLocale?uni.getLocale():typeof window!="undefined"&&window.getLocale?window.getLocale():Wt}function xm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;typeof e!="string"&&([e,t]=[t,e]),typeof e!="string"&&(e=ym()),typeof r!="string"&&(r=typeof __uniConfig!="undefined"&&__uniConfig.fallbackLocale||Wt);var a=new bm({locale:e,fallbackLocale:r,messages:t,watcher:i}),n=(o,s)=>{if(typeof getApp!="function")n=function(l,f){return a.t(l,f)};else{var u=!1;n=function(l,f){var d=getApp().$vm;return d&&(d.$locale,u||(u=!0,wm(d,a))),a.t(l,f)}}return n(o,s)};return{i18n:a,f(o,s,u){return a.f(o,s,u)},t(o,s){return n(o,s)},add(o,s){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return a.add(o,s,u)},watch(o){return a.watchLocale(o)},getLocale(){return a.getLocale()},setLocale(o){return a.setLocale(o)}}}var Sm=pi(()=>typeof __uniConfig!="undefined"&&__uniConfig.locales&&!!Object.keys(__uniConfig.locales).length),bi;function Qe(){if(!bi){var e;if(typeof getApp=="function"?e=weex.requireModule("plus").getLanguage():e=plus.webview.currentWebview().getStyle().locale,bi=xm(e),Sm()){var t=Object.keys(__uniConfig.locales||{});t.length&&t.forEach(r=>bi.add(r,__uniConfig.locales[r])),bi.setLocale(e)}}return bi}function _t(e,t,r){return t.reduce((i,a,n)=>(i[e+a]=r[n],i),{})}var Em=pi(()=>{var e="uni.picker.",t=["done","cancel"];Qe().add(Wt,_t(e,t,["Done","Cancel"]),!1),Qe().add($o,_t(e,t,["OK","Cancelar"]),!1),Qe().add(Fo,_t(e,t,["OK","Annuler"]),!1),Qe().add(_i,_t(e,t,["\u5B8C\u6210","\u53D6\u6D88"]),!1),Qe().add(Ba,_t(e,t,["\u5B8C\u6210","\u53D6\u6D88"]),!1)}),Tm=pi(()=>{var e="uni.button.",t=["feedback.title","feedback.send"];Qe().add(Wt,_t(e,t,["feedback","send"]),!1),Qe().add($o,_t(e,t,["realimentaci\xF3n","enviar"]),!1),Qe().add(Fo,_t(e,t,["retour d'information","envoyer"]),!1),Qe().add(_i,_t(e,t,["\u95EE\u9898\u53CD\u9988","\u53D1\u9001"]),!1),Qe().add(Ba,_t(e,t,["\u554F\u984C\u53CD\u994B","\u767C\u9001"]),!1)});function Cm(e){var t=new Lu;return{on(r,i){return t.on(r,i)},once(r,i){return t.once(r,i)},off(r,i){return t.off(r,i)},emit(r){for(var i=arguments.length,a=new Array(i>1?i-1:0),n=1;n2&&arguments[2]!==void 0?arguments[2]:!1;t[a?"once":"on"]("".concat(e,".").concat(r),i)},unsubscribe(r,i){t.off("".concat(e,".").concat(r),i)},subscribeHandler(r,i,a){t.emit("".concat(e,".").concat(r),i,a)}}}var Du="invokeViewApi",Bu="invokeServiceApi",Om=1,Am=(e,t,r)=>{var{subscribe:i,publishHandler:a}=UniViewJSBridge,n=r?Om++:0;r&&i(Bu+"."+n,r,!0),a(Bu,{id:n,name:e,args:t})},Fa=Object.create(null);function $a(e,t){return e+"."+t}function Im(e,t){UniViewJSBridge.subscribe($a(e,Du),t?t(Fu):Fu)}function bt(e,t,r){t=$a(e,t),Fa[t]||(Fa[t]=r)}function km(e,t){t=$a(e,t),delete Fa[t]}function Fu(e,t){var{id:r,name:i,args:a}=e;i=$a(t,i);var n=s=>{r&&UniViewJSBridge.publishHandler(Du+"."+r,s)},o=Fa[i];o?o(a,n):n({})}var Mm=ce(Cm("service"),{invokeServiceMethod:Am}),Rm=350,$u=10,za=mi(!0),wi;function yi(){wi&&(clearTimeout(wi),wi=null)}var zu=0,Uu=0;function Lm(e){if(yi(),e.touches.length===1){var{pageX:t,pageY:r}=e.touches[0];zu=t,Uu=r,wi=setTimeout(function(){var i=new CustomEvent("longpress",{bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget});i.touches=e.touches,i.changedTouches=e.changedTouches,e.target.dispatchEvent(i)},Rm)}}function Pm(e){if(!!wi){if(e.touches.length!==1)return yi();var{pageX:t,pageY:r}=e.touches[0];if(Math.abs(t-zu)>$u||Math.abs(r-Uu)>$u)return yi()}}function Nm(){window.addEventListener("touchstart",Lm,za),window.addEventListener("touchmove",Pm,za),window.addEventListener("touchend",yi,za),window.addEventListener("touchcancel",yi,za)}function Hu(e,t){var r=Number(e);return isNaN(r)?t:r}function Dm(){var e=/^Apple/.test(navigator.vendor)&&typeof window.orientation=="number",t=e&&Math.abs(window.orientation)===90,r=e?Math[t?"max":"min"](screen.width,screen.height):screen.width,i=Math.min(window.innerWidth,document.documentElement.clientWidth,r)||r;return i}function Bm(){var e=__uniConfig.globalStyle||{},t=Hu(e.rpxCalcMaxDeviceWidth,960),r=Hu(e.rpxCalcBaseDeviceWidth,375);function i(){var a=Dm();a=a<=t?a:r,document.documentElement.style.fontSize=a/23.4375+"px"}i(),document.addEventListener("DOMContentLoaded",i),window.addEventListener("load",i),window.addEventListener("resize",i)}function Fm(){Bm(),Fp(),Nm()}var $m=_a,zm=function(e,t){return!!e&&$m(function(){t?e.call(null,function(){},1):e.call(null)})},zo=uo,Um=Vl,Wu=tu,Vu=_a,Uo=[].sort,ju=[1,2,3];zo(zo.P+zo.F*(Vu(function(){ju.sort(void 0)})||!Vu(function(){ju.sort(null)})||!zm(Uo)),"Array",{sort:function(t){return t===void 0?Uo.call(Wu(this)):Uo.call(Wu(this),Um(t))}});var Rt;class Hm{constructor(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this.active=!0,this.effects=[],this.cleanups=[],!t&&Rt&&(this.parent=Rt,this.index=(Rt.scopes||(Rt.scopes=[])).push(this)-1)}run(t){if(this.active)try{return Rt=this,t()}finally{Rt=this.parent}}on(){Rt=this}off(){Rt=this.parent}stop(t){if(this.active){var r,i;for(r=0,i=this.effects.length;r1&&arguments[1]!==void 0?arguments[1]:Rt;t&&t.active&&t.effects.push(e)}var Ho=e=>{var t=new Set(e);return t.w=0,t.n=0,t},Yu=e=>(e.w&Vt)>0,qu=e=>(e.n&Vt)>0,Vm=e=>{var{deps:t}=e;if(t.length)for(var r=0;r{var{deps:t}=e;if(t.length){for(var r=0,i=0;i1&&arguments[1]!==void 0?arguments[1]:null,i=arguments.length>2?arguments[2]:void 0;this.fn=t,this.scheduler=r,this.active=!0,this.deps=[],this.parent=void 0,Wm(this,i)}run(){if(!this.active)return this.fn();for(var t=wt,r=jt;t;){if(t===this)return;t=t.parent}try{return this.parent=wt,wt=this,jt=!0,Vt=1<<++xi,xi<=Vo?Vm(this):Xu(this),this.fn()}finally{xi<=Vo&&jm(this),Vt=1<<--xi,wt=this.parent,jt=r,this.parent=void 0}}stop(){this.active&&(Xu(this),this.onStop&&this.onStop(),this.active=!1)}}function Xu(e){var{deps:t}=e;if(t.length){for(var r=0;r{(d==="length"||d>=i)&&s.push(f)});else switch(r!==void 0&&s.push(o.get(r)),t){case"add":ne(e)?To(r)&&s.push(o.get("length")):(s.push(o.get(fr)),vi(e)&&s.push(o.get(jo)));break;case"delete":ne(e)||(s.push(o.get(fr)),vi(e)&&s.push(o.get(jo)));break;case"set":vi(e)&&s.push(o.get(fr));break}if(s.length===1)s[0]&&qo(s[0]);else{var u=[];for(var l of s)l&&u.push(...l);qo(Ho(u))}}}function qo(e,t){for(var r of ne(e)?e:[...e])(r!==wt||r.allowRecurse)&&(r.scheduler?r.scheduler():r.run())}var Ym=ka("__proto__,__v_isRef,__isVue"),Gu=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(So)),qm=Xo(),Xm=Xo(!1,!0),Zm=Xo(!0),Ju=Km();function Km(){var e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(){for(var r=me(this),i=0,a=this.length;i{e[t]=function(){Dr();for(var r=arguments.length,i=new Array(r),a=0;a0&&arguments[0]!==void 0?arguments[0]:!1,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return function(i,a,n){if(a==="__v_isReactive")return!e;if(a==="__v_isReadonly")return e;if(a==="__v_isShallow")return t;if(a==="__v_raw"&&n===(e?t?v0:lf:t?sf:of).get(i))return i;var o=ne(i);if(!e&&o&&ie(Ju,a))return Reflect.get(Ju,a,n);var s=Reflect.get(i,a,n);if((So(a)?Gu.has(a):Ym(a))||(e||et(i,"get",a),t))return s;if($e(s)){var u=!o||!To(a);return u?s.value:s}return We(s)?e?uf(s):ke(s):s}}var Gm=Qu(),Jm=Qu(!0);function Qu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return function(r,i,a,n){var o=r[i];if(Si(o)&&$e(o)&&!$e(a))return!1;if(!e&&!Si(a)&&(ff(a)||(a=me(a),o=me(o)),!ne(r)&&$e(o)&&!$e(a)))return o.value=a,!0;var s=ne(r)&&To(i)?Number(i)e,Ua=e=>Reflect.getPrototypeOf(e);function Ha(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e=e.__v_raw;var a=me(e),n=me(t);t!==n&&!r&&et(a,"get",t),!r&&et(a,"get",n);var{has:o}=Ua(a),s=i?Zo:r?Jo:Ei;if(o.call(a,t))return s(e.get(t));if(o.call(a,n))return s(e.get(n));e!==a&&e.get(t)}function Wa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=this.__v_raw,i=me(r),a=me(e);return e!==a&&!t&&et(i,"has",e),!t&&et(i,"has",a),e===a?r.has(e):r.has(e)||r.has(a)}function Va(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return e=e.__v_raw,!t&&et(me(e),"iterate",fr),Reflect.get(e,"size",e)}function tf(e){e=me(e);var t=me(this),r=Ua(t),i=r.has.call(t,e);return i||(t.add(e),Lt(t,"add",e,e)),this}function rf(e,t){t=me(t);var r=me(this),{has:i,get:a}=Ua(r),n=i.call(r,e);n||(e=me(e),n=i.call(r,e));var o=a.call(r,e);return r.set(e,t),n?hi(t,o)&&Lt(r,"set",e,t):Lt(r,"add",e,t),this}function af(e){var t=me(this),{has:r,get:i}=Ua(t),a=r.call(t,e);a||(e=me(e),a=r.call(t,e)),i&&i.call(t,e);var n=t.delete(e);return a&&Lt(t,"delete",e,void 0),n}function nf(){var e=me(this),t=e.size!==0,r=e.clear();return t&&Lt(e,"clear",void 0,void 0),r}function ja(e,t){return function(i,a){var n=this,o=n.__v_raw,s=me(o),u=t?Zo:e?Jo:Ei;return!e&&et(s,"iterate",fr),o.forEach((l,f)=>i.call(a,u(l),u(f),n))}}function Ya(e,t,r){return function(){var i=this.__v_raw,a=me(i),n=vi(a),o=e==="entries"||e===Symbol.iterator&&n,s=e==="keys"&&n,u=i[e](...arguments),l=r?Zo:t?Jo:Ei;return!t&&et(a,"iterate",s?jo:fr),{next(){var{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:o?[l(f[0]),l(f[1])]:l(f),done:d}},[Symbol.iterator](){return this}}}}function Yt(e){return function(){return e==="delete"?!1:this}}function a0(){var e={get(n){return Ha(this,n)},get size(){return Va(this)},has:Wa,add:tf,set:rf,delete:af,clear:nf,forEach:ja(!1,!1)},t={get(n){return Ha(this,n,!1,!0)},get size(){return Va(this)},has:Wa,add:tf,set:rf,delete:af,clear:nf,forEach:ja(!1,!0)},r={get(n){return Ha(this,n,!0)},get size(){return Va(this,!0)},has(n){return Wa.call(this,n,!0)},add:Yt("add"),set:Yt("set"),delete:Yt("delete"),clear:Yt("clear"),forEach:ja(!0,!1)},i={get(n){return Ha(this,n,!0,!0)},get size(){return Va(this,!0)},has(n){return Wa.call(this,n,!0)},add:Yt("add"),set:Yt("set"),delete:Yt("delete"),clear:Yt("clear"),forEach:ja(!0,!0)},a=["keys","values","entries",Symbol.iterator];return a.forEach(n=>{e[n]=Ya(n,!1,!1),r[n]=Ya(n,!0,!1),t[n]=Ya(n,!1,!0),i[n]=Ya(n,!0,!0)}),[e,r,t,i]}var[n0,o0,s0,l0]=a0();function Ko(e,t){var r=t?e?l0:s0:e?o0:n0;return(i,a,n)=>a==="__v_isReactive"?!e:a==="__v_isReadonly"?e:a==="__v_raw"?i:Reflect.get(ie(r,a)&&a in i?r:i,a,n)}var u0={get:Ko(!1,!1)},f0={get:Ko(!1,!0)},c0={get:Ko(!0,!1)},of=new WeakMap,sf=new WeakMap,lf=new WeakMap,v0=new WeakMap;function d0(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function h0(e){return e.__v_skip||!Object.isExtensible(e)?0:d0(Eo(e))}function ke(e){return Si(e)?e:Go(e,!1,ef,u0,of)}function g0(e){return Go(e,!1,i0,f0,sf)}function uf(e){return Go(e,!0,r0,c0,lf)}function Go(e,t,r,i,a){if(!We(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;var n=a.get(e);if(n)return n;var o=h0(e);if(o===0)return e;var s=new Proxy(e,o===2?i:r);return a.set(e,s),s}function Fr(e){return Si(e)?Fr(e.__v_raw):!!(e&&e.__v_isReactive)}function Si(e){return!!(e&&e.__v_isReadonly)}function ff(e){return!!(e&&e.__v_isShallow)}function cf(e){return Fr(e)||Si(e)}function me(e){var t=e&&e.__v_raw;return t?me(t):e}function qa(e){return Pa(e,"__v_skip",!0),e}var Ei=e=>We(e)?ke(e):e,Jo=e=>We(e)?uf(e):e;function vf(e){jt&&wt&&(e=me(e),Ku(e.dep||(e.dep=Ho())))}function df(e,t){e=me(e),e.dep&&qo(e.dep)}function $e(e){return!!(e&&e.__v_isRef===!0)}function F(e){return hf(e,!1)}function Qo(e){return hf(e,!0)}function hf(e,t){return $e(e)?e:new p0(e,t)}class p0{constructor(t,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:me(t),this._value=r?t:Ei(t)}get value(){return vf(this),this._value}set value(t){t=this.__v_isShallow?t:me(t),hi(t,this._rawValue)&&(this._rawValue=t,this._value=this.__v_isShallow?t:Ei(t),df(this))}}function m0(e){return $e(e)?e.value:e}var _0={get:(e,t,r)=>m0(Reflect.get(e,t,r)),set:(e,t,r,i)=>{var a=e[t];return $e(a)&&!$e(r)?(a.value=r,!0):Reflect.set(e,t,r,i)}};function gf(e){return Fr(e)?e:new Proxy(e,_0)}class b0{constructor(t,r,i,a){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new Yo(t,()=>{this._dirty||(this._dirty=!0,df(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=i}get value(){var t=me(this);return vf(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function w0(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i,a,n=se(e);n?(i=e,a=pt):(i=e.get,a=e.set);var o=new b0(i,a,n||!a,r);return o}function qt(e,t,r,i){var a;try{a=i?e(...i):e()}catch(n){Xa(n,t,r)}return a}function ct(e,t,r,i){if(se(e)){var a=qt(e,t,r,i);return a&&wu(a)&&a.catch(s=>{Xa(s,t,r)}),a}for(var n=[],o=0;o>>1,a=Ai(tt[i]);aPt&&tt.splice(t,1)}function bf(e,t,r,i){ne(e)?r.push(...e):(!t||!t.includes(e,e.allowRecurse?i+1:i))&&r.push(e),_f()}function E0(e){bf(e,Ci,Ti,$r)}function T0(e){bf(e,Xt,Oi,zr)}function is(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(Ti.length){for(rs=t,Ci=[...new Set(Ti)],Ti.length=0,$r=0;$rAi(r)-Ai(i)),zr=0;zre.id==null?1/0:e.id;function yf(e){es=!1,Za=!0,is(e),tt.sort((i,a)=>Ai(i)-Ai(a));var t=pt;try{for(Pt=0;Pt2?i-2:0),n=2;nb.trim()):f&&(o=a.map(Cp))}var p,h=r[p=Oo(t)]||r[p=Oo(Ht(t))];!h&&s&&(h=r[p=Oo(Je(t))]),h&&ct(h,e,6,o);var y=r[p+"Once"];if(y){if(!e.emitted)e.emitted={};else if(e.emitted[p])return;e.emitted[p]=!0,ct(y,e,6,o)}}function xf(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=t.emitsCache,a=i.get(e);if(a!==void 0)return a;var n=e.emits,o={},s=!1;if(!se(e)){var u=l=>{var f=xf(l,t,!0);f&&(s=!0,ce(o,f))};!r&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!n&&!s?(i.set(e,null),null):(ne(n)?n.forEach(l=>o[l]=null):ce(o,n),i.set(e,o),o)}function as(e,t){return!e||!Ma(t)?!1:(t=t.slice(2).replace(/Once$/,""),ie(e,t[0].toLowerCase()+t.slice(1))||ie(e,Je(t))||ie(e,t))}var vt=null,Sf=null;function Ka(e){var t=vt;return vt=e,Sf=e&&e.type.__scopeId||null,t}function O0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:vt;if(!t||e._n)return e;var r=function(){r._d&&qf(-1);var i=Ka(t),a=e(...arguments);return Ka(i),r._d&&qf(1),a};return r._n=!0,r._c=!0,r._d=!0,r}function KT(){}function ns(e){var{type:t,vnode:r,proxy:i,withProxy:a,props:n,propsOptions:[o],slots:s,attrs:u,emit:l,render:f,renderCache:d,data:p,setupState:h,ctx:y,inheritAttrs:b}=e,w,g,_=Ka(e);try{if(r.shapeFlag&4){var c=a||i;w=xt(f.call(c,c,d,n,h,p,y)),g=u}else{var v=t;w=xt(v.length>1?v(n,{attrs:u,slots:s,emit:l}):v(n,null)),g=t.props?u:A0(u)}}catch(C){Xa(C,e,1),w=I(Hr)}var m=w;if(g&&b!==!1){var x=Object.keys(g),{shapeFlag:E}=m;x.length&&E&7&&(o&&x.some(yo)&&(g=I0(g,o)),m=Mi(m,g))}return r.dirs&&(m.dirs=m.dirs?m.dirs.concat(r.dirs):r.dirs),r.transition&&(m.transition=r.transition),w=m,Ka(_),w}var A0=e=>{var t;for(var r in e)(r==="class"||r==="style"||Ma(r))&&((t||(t={}))[r]=e[r]);return t},I0=(e,t)=>{var r={};for(var i in e)(!yo(i)||!(i.slice(9)in t))&&(r[i]=e[i]);return r};function k0(e,t,r){var{props:i,children:a,component:n}=e,{props:o,children:s,patchFlag:u}=t,l=n.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&u>=0){if(u&1024)return!0;if(u&16)return i?Ef(i,o,l):!!o;if(u&8)for(var f=t.dynamicProps,d=0;de.__isSuspense;function L0(e,t){t&&t.pendingBranch?ne(e)?t.effects.push(...e):t.effects.push(e):T0(e)}function ze(e,t){if(Ue){var r=Ue.provides,i=Ue.parent&&Ue.parent.provides;i===r&&(r=Ue.provides=Object.create(i)),r[e]=t}}function _e(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=Ue||vt;if(i){var a=i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides;if(a&&e in a)return a[e];if(arguments.length>1)return r&&se(t)?t.call(i.proxy):t}}function P0(e,t){return os(e,null,t)}var Tf={};function W(e,t,r){return os(e,t,r)}function os(e,t){var{immediate:r,deep:i,flush:a,onTrack:n,onTrigger:o}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Se,s=Ue,u,l=!1,f=!1;if($e(e)?(u=()=>e.value,l=ff(e)):Fr(e)?(u=()=>e,i=!0):ne(e)?(f=!0,l=e.some(Fr),u=()=>e.map(_=>{if($e(_))return _.value;if(Fr(_))return cr(_);if(se(_))return qt(_,s,2)})):se(e)?t?u=()=>qt(e,s,2):u=()=>{if(!(s&&s.isUnmounted))return p&&p(),ct(e,s,3,[h])}:u=pt,t&&i){var d=u;u=()=>cr(d())}var p,h=_=>{p=g.onStop=()=>{qt(_,s,4)}};if(Ri)return h=pt,t?r&&ct(t,s,3,[u(),f?[]:void 0,h]):u(),pt;var y=f?[]:Tf,b=()=>{if(!!g.active)if(t){var _=g.run();(i||l||(f?_.some((c,v)=>hi(c,y[v])):hi(_,y)))&&(p&&p(),ct(t,s,3,[_,y===Tf?void 0:y,h]),y=_)}else g.run()};b.allowRecurse=!!t;var w;a==="sync"?w=b:a==="post"?w=()=>Xe(b,s&&s.suspense):w=()=>{!s||s.isMounted?E0(b):b()};var g=new Yo(u,w);return t?r?b():y=g.run():a==="post"?Xe(g.run.bind(g),s&&s.suspense):g.run(),()=>{g.stop(),s&&s.scope&&xo(s.scope.effects,g)}}function N0(e,t,r){var i=this.proxy,a=Ee(e)?e.includes(".")?Cf(i,e):()=>i[e]:e.bind(i,i),n;se(t)?n=t:(n=t.handler,r=t);var o=Ue;Wr(this);var s=os(a,n.bind(i),r);return o?Wr(o):gr(),s}function Cf(e,t){var r=t.split(".");return()=>{for(var i=e,a=0;a{cr(a,t)});else if(mt(e))for(var i in e)cr(e[i],t);return e}function D0(e){return se(e)?{setup:e,name:e.name}:e}var ss=e=>!!e.type.__asyncLoader,Of=e=>e.type.__isKeepAlive;function ls(e,t){Af(e,"a",t)}function B0(e,t){Af(e,"da",t)}function Af(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ue,i=e.__wdc||(e.__wdc=()=>{for(var n=r;n;){if(n.isDeactivated)return;n=n.parent}return e()});if(Ga(t,i,r),r)for(var a=r.parent;a&&a.parent;)Of(a.parent.vnode)&&F0(i,t,r,a),a=a.parent}function F0(e,t,r,i){var a=Ga(t,e,i,!0);Zt(()=>{xo(i[t],a)},r)}function Ga(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ue,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(r){var a=r[e]||(r[e]=[]),n=t.__weh||(t.__weh=function(){if(!r.isUnmounted){Dr(),Wr(r);for(var o=arguments.length,s=new Array(o),u=0;ufunction(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ue;return(!Ri||e==="sp")&&Ga(e,t,r)},If=Nt("bm"),Re=Nt("m"),$0=Nt("bu"),z0=Nt("u"),Ce=Nt("bum"),Zt=Nt("um"),U0=Nt("sp"),H0=Nt("rtg"),W0=Nt("rtc");function V0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ue;Ga("ec",e,t)}var us=!0;function j0(e){var t=Rf(e),r=e.proxy,i=e.ctx;us=!1,t.beforeCreate&&kf(t.beforeCreate,e,"bc");var{data:a,computed:n,methods:o,watch:s,provide:u,inject:l,created:f,beforeMount:d,mounted:p,beforeUpdate:h,updated:y,activated:b,deactivated:w,beforeDestroy:g,beforeUnmount:_,destroyed:c,unmounted:v,render:m,renderTracked:x,renderTriggered:E,errorCaptured:C,serverPrefetch:O,expose:M,inheritAttrs:R,components:U,directives:te,filters:L}=t,H=null;if(l&&Y0(l,i,H,e.appContext.config.unwrapInjectedRef),o)for(var q in o){var re=o[q];se(re)&&(i[q]=re.bind(r))}if(a&&function(){var le=a.call(r,r);We(le)&&(e.data=ke(le))}(),us=!0,n){var V=function(le){var J=n[le],xe=se(J)?J.bind(r,r):se(J.get)?J.get.bind(r,r):pt,we=!se(J)&&se(J.set)?J.set.bind(r):pt,Ve=ee({get:xe,set:we});Object.defineProperty(i,le,{enumerable:!0,configurable:!0,get:()=>Ve.value,set:sr=>Ve.value=sr})};for(var K in n)V(K)}if(s)for(var ae in s)Mf(s[ae],i,r,ae);if(u){var Te=se(u)?u.call(r):u;Reflect.ownKeys(Te).forEach(le=>{ze(le,Te[le])})}f&&kf(f,e,"c");function oe(le,J){ne(J)?J.forEach(xe=>le(xe.bind(r))):J&&le(J.bind(r))}if(oe(If,d),oe(Re,p),oe($0,h),oe(z0,y),oe(ls,b),oe(B0,w),oe(V0,C),oe(W0,x),oe(H0,E),oe(Ce,_),oe(Zt,v),oe(U0,O),ne(M))if(M.length){var he=e.exposed||(e.exposed={});M.forEach(le=>{Object.defineProperty(he,le,{get:()=>r[le],set:J=>r[le]=J})})}else e.exposed||(e.exposed={});m&&e.render===pt&&(e.render=m),R!=null&&(e.inheritAttrs=R),U&&(e.components=U),te&&(e.directives=te)}function Y0(e,t){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;ne(e)&&(e=fs(e));var i=function(n){var o=e[n],s=void 0;We(o)?"default"in o?s=_e(o.from||n,o.default,!0):s=_e(o.from||n):s=_e(o),$e(s)&&r?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>s.value,set:u=>s.value=u}):t[n]=s};for(var a in e)i(a)}function kf(e,t,r){ct(ne(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,r)}function Mf(e,t,r,i){var a=i.includes(".")?Cf(r,i):()=>r[i];if(Ee(e)){var n=t[e];se(n)&&W(a,n)}else if(se(e))W(a,e.bind(r));else if(We(e))if(ne(e))e.forEach(s=>Mf(s,t,r,i));else{var o=se(e.handler)?e.handler.bind(r):t[e.handler];se(o)&&W(a,o,e)}}function Rf(e){var t=e.type,{mixins:r,extends:i}=t,{mixins:a,optionsCache:n,config:{optionMergeStrategies:o}}=e.appContext,s=n.get(t),u;return s?u=s:!a.length&&!r&&!i?u=t:(u={},a.length&&a.forEach(l=>Ja(u,l,o,!0)),Ja(u,t,o)),n.set(t,u),u}function Ja(e,t,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,{mixins:a,extends:n}=t;n&&Ja(e,n,r,!0),a&&a.forEach(u=>Ja(e,u,r,!0));for(var o in t)if(!(i&&o==="expose")){var s=q0[o]||r&&r[o];e[o]=s?s(e[o],t[o]):t[o]}return e}var q0={data:Lf,props:vr,emits:vr,methods:vr,computed:vr,beforeCreate:Ye,created:Ye,beforeMount:Ye,mounted:Ye,beforeUpdate:Ye,updated:Ye,beforeDestroy:Ye,beforeUnmount:Ye,destroyed:Ye,unmounted:Ye,activated:Ye,deactivated:Ye,errorCaptured:Ye,serverPrefetch:Ye,components:vr,directives:vr,watch:Z0,provide:Lf,inject:X0};function Lf(e,t){return t?e?function(){return ce(se(e)?e.call(this,this):e,se(t)?t.call(this,this):t)}:t:e}function X0(e,t){return vr(fs(e),fs(t))}function fs(e){if(ne(e)){for(var t={},r=0;r3&&arguments[3]!==void 0?arguments[3]:!1,a={},n={};Pa(n,en,1),e.propsDefaults=Object.create(null),Pf(e,t,a,n);for(var o in e.propsOptions[0])o in a||(a[o]=void 0);r?e.props=i?a:g0(a):e.type.props?e.props=a:e.props=n,e.attrs=n}function G0(e,t,r,i){var{props:a,attrs:n,vnode:{patchFlag:o}}=e,s=me(a),[u]=e.propsOptions,l=!1;if((i||o>0)&&!(o&16)){if(o&8)for(var f=e.vnode.dynamicProps,d=0;d2&&arguments[2]!==void 0?arguments[2]:!1,i=t.propsCache,a=i.get(e);if(a)return a;var n=e.props,o={},s=[],u=!1;if(!se(e)){var l=c=>{u=!0;var[v,m]=Nf(c,t,!0);ce(o,v),m&&s.push(...m)};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}if(!n&&!u)return i.set(e,ci),ci;if(ne(n))for(var f=0;f-1,b[1]=g<0||w-1||ie(b,"default"))&&s.push(h)}}}var _=[o,s];return i.set(e,_),_}function Df(e){return e[0]!=="$"}function Bf(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function Ff(e,t){return Bf(e)===Bf(t)}function $f(e,t){return ne(t)?t.findIndex(r=>Ff(r,e)):se(t)&&Ff(t,e)?0:-1}var zf=e=>e[0]==="_"||e==="$stable",vs=e=>ne(e)?e.map(xt):[xt(e)],J0=(e,t,r)=>{var i=O0(function(){return vs(t(...arguments))},r);return i._c=!1,i},Uf=(e,t,r)=>{var i=e._ctx;for(var a in e)if(!zf(a)){var n=e[a];se(n)?t[a]=J0(a,n,i):n!=null&&function(){var o=vs(n);t[a]=()=>o}()}},Hf=(e,t)=>{var r=vs(t);e.slots.default=()=>r},Q0=(e,t)=>{if(e.vnode.shapeFlag&32){var r=t._;r?(e.slots=me(t),Pa(t,"_",r)):Uf(t,e.slots={})}else e.slots={},t&&Hf(e,t);Pa(e.slots,en,1)},e_=(e,t,r)=>{var{vnode:i,slots:a}=e,n=!0,o=Se;if(i.shapeFlag&32){var s=t._;s?r&&s===1?n=!1:(ce(a,t),!r&&s===1&&delete a._):(n=!t.$stable,Uf(t,a)),o=t}else t&&(Hf(e,t),o={default:1});if(n)for(var u in a)!zf(u)&&!(u in o)&&delete a[u]};function Ii(e,t){var r=vt;if(r===null)return e;for(var i=r.proxy,a=e.dirs||(e.dirs=[]),n=0;n1&&arguments[1]!==void 0?arguments[1]:null;a!=null&&!We(a)&&(a=null);var n=Wf(),o=new Set,s=!1,u=n.app={_uid:t_++,_component:i,_props:a,_container:null,_context:n,_instance:null,version:x_,get config(){return n.config},set config(l){},use(l){for(var f=arguments.length,d=new Array(f>1?f-1:0),p=1;p4&&arguments[4]!==void 0?arguments[4]:!1;if(ne(e)){e.forEach((b,w)=>ds(b,t&&(ne(t)?t[w]:t),r,i,a));return}if(!(ss(i)&&!a)){var n=i.shapeFlag&4?_s(i.component)||i.component.proxy:i.el,o=a?null:n,{i:s,r:u}=e,l=t&&t.r,f=s.refs===Se?s.refs={}:s.refs,d=s.setupState;if(l!=null&&l!==u&&(Ee(l)?(f[l]=null,ie(d,l)&&(d[l]=null)):$e(l)&&(l.value=null)),se(u))qt(u,s,12,[o,f]);else{var p=Ee(u),h=$e(u);if(p||h){var y=()=>{if(e.f){var b=p?f[u]:u.value;a?ne(b)&&xo(b,n):ne(b)?b.includes(n)||b.push(n):p?f[u]=[n]:(u.value=[n],e.k&&(f[e.k]=u.value))}else p?(f[u]=o,ie(d,u)&&(d[u]=o)):$e(u)&&(u.value=o,e.k&&(f[e.k]=o))};o?(y.id=-1,Xe(y,r)):y()}}}}var Xe=L0;function i_(e){return a_(e)}function a_(e,t){var r=Op();r.__VUE__=!0;var{insert:i,remove:a,patchProp:n,createElement:o,createText:s,createComment:u,setText:l,setElementText:f,parentNode:d,nextSibling:p,setScopeId:h=pt,cloneNode:y,insertStaticContent:b}=e,w=function(S,T,k){var P=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,N=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,$=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,j=arguments.length>6&&arguments[6]!==void 0?arguments[6]:!1,B=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null,z=arguments.length>8&&arguments[8]!==void 0?arguments[8]:!!T.dynamicChildren;if(S!==T){S&&!ki(S,T)&&(P=Ve(S),he(S,N,$,!0),S=null),T.patchFlag===-2&&(z=!1,T.dynamicChildren=null);var{type:D,ref:Q,shapeFlag:G}=T;switch(D){case hs:g(S,T,k,P);break;case Hr:_(S,T,k,P);break;case gs:S==null&&c(T,k,P,j);break;case yt:te(S,T,k,P,N,$,j,B,z);break;default:G&1?x(S,T,k,P,N,$,j,B,z):G&6?L(S,T,k,P,N,$,j,B,z):(G&64||G&128)&&D.process(S,T,k,P,N,$,j,B,z,Ne)}Q!=null&&N&&ds(Q,S&&S.ref,$,T||S,!T)}},g=(S,T,k,P)=>{if(S==null)i(T.el=s(T.children),k,P);else{var N=T.el=S.el;T.children!==S.children&&l(N,T.children)}},_=(S,T,k,P)=>{S==null?i(T.el=u(T.children||""),k,P):T.el=S.el},c=(S,T,k,P)=>{[S.el,S.anchor]=b(S.children,T,k,P,S.el,S.anchor)},v=(S,T,k)=>{for(var{el:P,anchor:N}=S,$;P&&P!==N;)$=p(P),i(P,T,k),P=$;i(N,T,k)},m=S=>{for(var{el:T,anchor:k}=S,P;T&&T!==k;)P=p(T),a(T),T=P;a(k)},x=(S,T,k,P,N,$,j,B,z)=>{j=j||T.type==="svg",S==null?E(T,k,P,N,$,j,B,z):M(S,T,N,$,j,B,z)},E=(S,T,k,P,N,$,j,B)=>{var z,D,{type:Q,props:G,shapeFlag:Z,transition:fe,patchFlag:Be,dirs:Ae}=S;if(S.el&&y!==void 0&&Be===-1)z=S.el=y(S.el);else{if(z=S.el=o(S.type,$,G&&G.is,G),Z&8?f(z,S.children):Z&16&&O(S.children,z,null,P,N,$&&Q!=="foreignObject",j,B),Ae&&dr(S,null,P,"created"),G){for(var A in G)A!=="value"&&!Ra(A)&&n(z,A,null,G[A],$,S.children,P,N,we);"value"in G&&n(z,"value",null,G.value),(D=G.onVnodeBeforeMount)&&St(D,P,S)}C(z,S,S.scopeId,j,P)}Object.defineProperty(z,"__vueParentComponent",{value:P,enumerable:!1}),Ae&&dr(S,null,P,"beforeMount");var Y=(!N||N&&!N.pendingBranch)&&fe&&!fe.persisted;Y&&fe.beforeEnter(z),i(z,T,k),((D=G&&G.onVnodeMounted)||Y||Ae)&&Xe(()=>{D&&St(D,P,S),Y&&fe.enter(z),Ae&&dr(S,null,P,"mounted")},N)},C=(S,T,k,P,N)=>{if(k&&h(S,k),P)for(var $=0;$8&&arguments[8]!==void 0?arguments[8]:0,D=z;D{var B=T.el=S.el,{patchFlag:z,dynamicChildren:D,dirs:Q}=T;z|=S.patchFlag&16;var G=S.props||Se,Z=T.props||Se,fe;k&&hr(k,!1),(fe=Z.onVnodeBeforeUpdate)&&St(fe,k,T,S),Q&&dr(T,S,k,"beforeUpdate"),k&&hr(k,!0);var Be=N&&T.type!=="foreignObject";if(D?R(S.dynamicChildren,D,B,k,P,Be,$):j||K(S,T,B,null,k,P,Be,$,!1),z>0){if(z&16)U(B,T,G,Z,k,P,N);else if(z&2&&G.class!==Z.class&&n(B,"class",null,Z.class,N),z&4&&n(B,"style",G.style,Z.style,N),z&8)for(var Ae=T.dynamicProps,A=0;A{fe&&St(fe,k,T,S),Q&&dr(T,S,k,"updated")},P)},R=(S,T,k,P,N,$,j)=>{for(var B=0;B{if(k!==P){for(var B in P)if(!Ra(B)){var z=P[B],D=k[B];z!==D&&B!=="value"&&n(S,B,D,z,j,T.children,N,$,we)}if(k!==Se)for(var Q in k)!Ra(Q)&&!(Q in P)&&n(S,Q,k[Q],null,j,T.children,N,$,we);"value"in P&&n(S,"value",k.value,P.value)}},te=(S,T,k,P,N,$,j,B,z)=>{var D=T.el=S?S.el:s(""),Q=T.anchor=S?S.anchor:s(""),{patchFlag:G,dynamicChildren:Z,slotScopeIds:fe}=T;fe&&(B=B?B.concat(fe):fe),S==null?(i(D,k,P),i(Q,k,P),O(T.children,k,Q,N,$,j,B,z)):G>0&&G&64&&Z&&S.dynamicChildren?(R(S.dynamicChildren,Z,k,N,$,j,B),(T.key!=null||N&&T===N.subTree)&&Vf(S,T,!0)):K(S,T,k,Q,N,$,j,B,z)},L=(S,T,k,P,N,$,j,B,z)=>{T.slotScopeIds=B,S==null?T.shapeFlag&512?N.ctx.activate(T,k,P,j,z):H(T,k,P,N,$,j,z):q(S,T,z)},H=(S,T,k,P,N,$,j)=>{var B=S.component=g_(S,P,N);if(Of(S)&&(B.ctx.renderer=Ne),p_(B),B.asyncDep){if(N&&N.registerDep(B,re),!S.el){var z=B.subTree=I(Hr);_(null,z,T,k)}return}re(B,S,T,k,N,$,j)},q=(S,T,k)=>{var P=T.component=S.component;if(k0(S,T,k))if(P.asyncDep&&!P.asyncResolved){V(P,T,k);return}else P.next=T,S0(P.update),P.update();else T.component=S.component,T.el=S.el,P.vnode=T},re=(S,T,k,P,N,$,j)=>{var B=()=>{if(S.isMounted){var{next:ue,bu:Fe,u:Ge,parent:De,vnode:gt}=S,lr=ue,Mt;hr(S,!1),ue?(ue.el=gt.el,V(S,ue,j)):ue=gt,Fe&&Ao(Fe),(Mt=ue.props&&ue.props.onVnodeBeforeUpdate)&&St(Mt,De,ue,gt),hr(S,!0);var Mr=ns(S),Ut=S.subTree;S.subTree=Mr,w(Ut,Mr,d(Ut.el),Ve(Ut),S,N,$),ue.el=Mr.el,lr===null&&M0(S,Mr.el),Ge&&Xe(Ge,N),(Mt=ue.props&&ue.props.onVnodeUpdated)&&Xe(()=>St(Mt,De,ue,gt),N)}else{var Q,{el:G,props:Z}=T,{bm:fe,m:Be,parent:Ae}=S,A=ss(T);if(hr(S,!1),fe&&Ao(fe),!A&&(Q=Z&&Z.onVnodeBeforeMount)&&St(Q,Ae,T),hr(S,!0),G&&da){var Y=()=>{S.subTree=ns(S),da(G,S.subTree,S,N,null)};A?T.type.__asyncLoader().then(()=>!S.isUnmounted&&Y()):Y()}else{var X=S.subTree=ns(S);w(null,X,k,P,S,N,$),T.el=X.el}if(Be&&Xe(Be,N),!A&&(Q=Z&&Z.onVnodeMounted)){var ge=T;Xe(()=>St(Q,Ae,ge),N)}T.shapeFlag&256&&S.a&&Xe(S.a,N),S.isMounted=!0,T=k=P=null}},z=S.effect=new Yo(B,()=>mf(S.update),S.scope),D=S.update=z.run.bind(z);D.id=S.uid,hr(S,!0),D()},V=(S,T,k)=>{T.component=S;var P=S.vnode.props;S.vnode=T,S.next=null,G0(S,T.props,P,k),e_(S,T.children,k),Dr(),is(void 0,S.update),Br()},K=function(S,T,k,P,N,$,j,B){var z=arguments.length>8&&arguments[8]!==void 0?arguments[8]:!1,D=S&&S.children,Q=S?S.shapeFlag:0,G=T.children,{patchFlag:Z,shapeFlag:fe}=T;if(Z>0){if(Z&128){Te(D,G,k,P,N,$,j,B,z);return}else if(Z&256){ae(D,G,k,P,N,$,j,B,z);return}}fe&8?(Q&16&&we(D,N,$),G!==D&&f(k,G)):Q&16?fe&16?Te(D,G,k,P,N,$,j,B,z):we(D,N,$,!0):(Q&8&&f(k,""),fe&16&&O(G,k,P,N,$,j,B,z))},ae=(S,T,k,P,N,$,j,B,z)=>{S=S||ci,T=T||ci;var D=S.length,Q=T.length,G=Math.min(D,Q),Z;for(Z=0;ZQ?we(S,N,$,!0,!1,G):O(T,k,P,N,$,j,B,z,G)},Te=(S,T,k,P,N,$,j,B,z)=>{for(var D=0,Q=T.length,G=S.length-1,Z=Q-1;D<=G&&D<=Z;){var fe=S[D],Be=T[D]=z?Kt(T[D]):xt(T[D]);if(ki(fe,Be))w(fe,Be,k,null,N,$,j,B,z);else break;D++}for(;D<=G&&D<=Z;){var Ae=S[G],A=T[Z]=z?Kt(T[Z]):xt(T[Z]);if(ki(Ae,A))w(Ae,A,k,null,N,$,j,B,z);else break;G--,Z--}if(D>G){if(D<=Z)for(var Y=Z+1,X=YZ)for(;D<=G;)he(S[D],N,$,!0),D++;else{var ge=D,ue=D,Fe=new Map;for(D=ue;D<=Z;D++){var Ge=T[D]=z?Kt(T[D]):xt(T[D]);Ge.key!=null&&Fe.set(Ge.key,D)}var De,gt=0,lr=Z-ue+1,Mt=!1,Mr=0,Ut=new Array(lr);for(D=0;D=lr){he(li,N,$,!0);continue}var Rr=void 0;if(li.key!=null)Rr=Fe.get(li.key);else for(De=ue;De<=Z;De++)if(Ut[De-ue]===0&&ki(li,T[De])){Rr=De;break}Rr===void 0?he(li,N,$,!0):(Ut[Rr-ue]=D+1,Rr>=Mr?Mr=Rr:Mt=!0,w(li,T[Rr],k,null,N,$,j,B,z),gt++)}var Bh=Mt?n_(Ut):ci;for(De=Bh.length-1,D=lr-1;D>=0;D--){var Ll=ue+D,Fh=T[Ll],$h=Ll+14&&arguments[4]!==void 0?arguments[4]:null,{el:$,type:j,transition:B,children:z,shapeFlag:D}=S;if(D&6){oe(S.component.subTree,T,k,P);return}if(D&128){S.suspense.move(T,k,P);return}if(D&64){j.move(S,T,k,Ne);return}if(j===yt){i($,T,k);for(var Q=0;QB.enter($),N);else{var{leave:Z,delayLeave:fe,afterLeave:Be}=B,Ae=()=>i($,T,k),A=()=>{Z($,()=>{Ae(),Be&&Be()})};fe?fe($,Ae,A):A()}else i($,T,k)},he=function(S,T,k){var P=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,N=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,{type:$,props:j,ref:B,children:z,dynamicChildren:D,shapeFlag:Q,patchFlag:G,dirs:Z}=S;if(B!=null&&ds(B,null,k,S,!0),Q&256){T.ctx.deactivate(S);return}var fe=Q&1&&Z,Be=!ss(S),Ae;if(Be&&(Ae=j&&j.onVnodeBeforeUnmount)&&St(Ae,T,S),Q&6)xe(S.component,k,P);else{if(Q&128){S.suspense.unmount(k,P);return}fe&&dr(S,null,T,"beforeUnmount"),Q&64?S.type.remove(S,T,k,N,Ne,P):D&&($!==yt||G>0&&G&64)?we(D,T,k,!1,!0):($===yt&&G&384||!N&&Q&16)&&we(z,T,k),P&&le(S)}(Be&&(Ae=j&&j.onVnodeUnmounted)||fe)&&Xe(()=>{Ae&&St(Ae,T,S),fe&&dr(S,null,T,"unmounted")},k)},le=S=>{var{type:T,el:k,anchor:P,transition:N}=S;if(T===yt){J(k,P);return}if(T===gs){m(S);return}var $=()=>{a(k),N&&!N.persisted&&N.afterLeave&&N.afterLeave()};if(S.shapeFlag&1&&N&&!N.persisted){var{leave:j,delayLeave:B}=N,z=()=>j(k,$);B?B(S.el,$,z):z()}else $()},J=(S,T)=>{for(var k;S!==T;)k=p(S),a(S),S=k;a(T)},xe=(S,T,k)=>{var{bum:P,scope:N,update:$,subTree:j,um:B}=S;P&&Ao(P),N.stop(),$&&($.active=!1,he(j,S,T,k)),B&&Xe(B,T),Xe(()=>{S.isUnmounted=!0},T),T&&T.pendingBranch&&!T.isUnmounted&&S.asyncDep&&!S.asyncResolved&&S.suspenseId===T.pendingId&&(T.deps--,T.deps===0&&T.resolve())},we=function(S,T,k){for(var P=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,N=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,$=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,j=$;jS.shapeFlag&6?Ve(S.component.subTree):S.shapeFlag&128?S.suspense.next():p(S.anchor||S.el),sr=(S,T,k)=>{if(S==null)T._vnode&&he(T._vnode,null,null,!0);else{var P=T.__vueParent;w(T._vnode||null,S,T,null,P,null,k)}T._vnode=S},Ne={p:w,um:he,m:oe,r:le,mt:H,mc:O,pc:K,pbc:R,n:Ve,o:e},va,da;return t&&([va,da]=t(Ne)),{render:sr,hydrate:va,createApp:r_(sr,va)}}function hr(e,t){var{effect:r,update:i}=e;r.allowRecurse=i.allowRecurse=t}function Vf(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=e.children,a=t.children;if(ne(i)&&ne(a))for(var n=0;n>1,e[r[s]]0&&(t[i]=r[n-1]),r[n]=i)}}for(n=r.length,o=r[n-1];n-- >0;)r[n]=o,o=t[o];return r}var o_=e=>e.__isTeleport,s_=Symbol(),yt=Symbol(void 0),hs=Symbol(void 0),Hr=Symbol(void 0),gs=Symbol(void 0),jf=null,Yf=1;function qf(e){Yf+=e}function Qa(e){return e?e.__v_isVNode===!0:!1}function ki(e,t){return e.type===t.type&&e.key===t.key}var en="__vInternal",Xf=e=>{var{key:t}=e;return t!=null?t:null},tn=e=>{var{ref:t,ref_key:r,ref_for:i}=e;return t!=null?Ee(t)||$e(t)||se(t)?{i:vt,r:t,k:r,f:!!i}:t:null};function l_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,n=arguments.length>5&&arguments[5]!==void 0?arguments[5]:e===yt?0:1,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:!1,s=arguments.length>7&&arguments[7]!==void 0?arguments[7]:!1,u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Xf(t),ref:t&&tn(t),scopeId:Sf,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:n,patchFlag:i,dynamicProps:a,dynamicChildren:null,appContext:null};return s?(ps(u,r),n&128&&e.normalize(u)):r&&(u.shapeFlag|=Ee(r)?8:16),Yf>0&&!o&&jf&&(u.patchFlag>0||n&6)&&u.patchFlag!==32&&jf.push(u),u}var I=u_;function u_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,n=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1;if((!e||e===s_)&&(e=Hr),Qa(e)){var o=Mi(e,t,!0);return r&&ps(o,r),o}if(w_(e)&&(e=e.__vccOpts),t){t=f_(t);var{class:s,style:u}=t;s&&!Ee(s)&&(t.class=wo(s)),We(u)&&(cf(u)&&!ne(u)&&(u=ce({},u)),t.style=bo(u))}var l=Ee(e)?1:R0(e)?128:o_(e)?64:We(e)?4:se(e)?2:0;return l_(e,t,r,i,a,l,n,!0)}function f_(e){return e?cf(e)||en in e?ce({},e):e:null}function Mi(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,{props:i,ref:a,patchFlag:n,children:o}=e,s=t?rt(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&Xf(s),ref:t&&t.ref?r&&a?ne(a)?a.concat(tn(t)):[a,tn(t)]:tn(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==yt?n===-1?16:n|16:n,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Mi(e.ssContent),ssFallback:e.ssFallback&&Mi(e.ssFallback),el:e.el,anchor:e.anchor};return u}function c_(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:" ",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return I(hs,null,e,t)}function xt(e){return e==null||typeof e=="boolean"?I(Hr):ne(e)?I(yt,null,e.slice()):typeof e=="object"?Kt(e):I(hs,null,String(e))}function Kt(e){return e.el===null||e.memo?e:Mi(e)}function ps(e,t){var r=0,{shapeFlag:i}=e;if(t==null)t=null;else if(ne(t))r=16;else if(typeof t=="object")if(i&65){var a=t.default;a&&(a._c&&(a._d=!1),ps(e,a()),a._c&&(a._d=!0));return}else{r=32;var n=t._;!n&&!(en in t)?t._ctx=vt:n===3&&vt&&(vt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else se(t)?(t={default:t,_ctx:vt},r=32):(t=String(t),i&64?(r=16,t=[c_(t)]):r=8);e.children=t,e.shapeFlag|=r}function rt(){for(var e={},t=0;t3&&arguments[3]!==void 0?arguments[3]:null;ct(e,t,7,[r,i])}var ms=e=>e?Zf(e)?_s(e)||e.proxy:ms(e.parent):null,rn=ce(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ms(e.parent),$root:e=>ms(e.root),$emit:e=>e.emit,$options:e=>Rf(e),$forceUpdate:e=>()=>mf(e.update),$nextTick:e=>Ur.bind(e.proxy),$watch:e=>N0.bind(e)}),v_={get(e,t){var{_:r}=e,{ctx:i,setupState:a,data:n,props:o,accessCache:s,type:u,appContext:l}=r,f;if(t[0]!=="$"){var d=s[t];if(d!==void 0)switch(d){case 1:return a[t];case 2:return n[t];case 4:return i[t];case 3:return o[t]}else{if(a!==Se&&ie(a,t))return s[t]=1,a[t];if(n!==Se&&ie(n,t))return s[t]=2,n[t];if((f=r.propsOptions[0])&&ie(f,t))return s[t]=3,o[t];if(i!==Se&&ie(i,t))return s[t]=4,i[t];us&&(s[t]=0)}}var p=rn[t],h,y;if(p)return t==="$attrs"&&et(r,"get",t),p(r);if((h=u.__cssModules)&&(h=h[t]))return h;if(i!==Se&&ie(i,t))return s[t]=4,i[t];if(y=l.config.globalProperties,ie(y,t))return y[t]},set(e,t,r){var{_:i}=e,{data:a,setupState:n,ctx:o}=i;return n!==Se&&ie(n,t)?(n[t]=r,!0):a!==Se&&ie(a,t)?(a[t]=r,!0):ie(i.props,t)||t[0]==="$"&&t.slice(1)in i?!1:(o[t]=r,!0)},has(e,t){var{_:{data:r,setupState:i,accessCache:a,ctx:n,appContext:o,propsOptions:s}}=e,u;return!!a[t]||r!==Se&&ie(r,t)||i!==Se&&ie(i,t)||(u=s[0])&&ie(u,t)||ie(n,t)||ie(rn,t)||ie(o.config.globalProperties,t)},defineProperty(e,t,r){return r.get!=null?this.set(e,t,r.get(),null):r.value!=null&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}},d_=Wf(),h_=0;function g_(e,t,r){var i=e.type,a=(t?t.appContext:e.appContext)||d_,n={uid:h_++,vnode:e,type:i,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,scope:new Hm(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Nf(i,a),emitsOptions:xf(i,a),emit:null,emitted:null,propsDefaults:Se,inheritAttrs:i.inheritAttrs,ctx:Se,data:Se,props:Se,attrs:Se,slots:Se,refs:Se,setupState:Se,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return n.ctx={_:n},n.root=t?t.root:n,n.emit=C0.bind(null,n),e.ce&&e.ce(n),n}var Ue=null,Dt=()=>Ue||vt,Wr=e=>{Ue=e,e.scope.on()},gr=()=>{Ue&&Ue.scope.off(),Ue=null};function Zf(e){return e.vnode.shapeFlag&4}var Ri=!1;function p_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Ri=t;var{props:r,children:i}=e.vnode,a=Zf(e);K0(e,r,a,t),Q0(e,i);var n=a?m_(e,t):void 0;return Ri=!1,n}function m_(e,t){var r=e.type;e.accessCache=Object.create(null),e.proxy=qa(new Proxy(e.ctx,v_));var{setup:i}=r;if(i){var a=e.setupContext=i.length>1?b_(e):null;Wr(e),Dr();var n=qt(i,e,0,[e.props,a]);if(Br(),gr(),wu(n)){if(n.then(gr,gr),t)return n.then(o=>{Kf(e,o,t)}).catch(o=>{Xa(o,e,0)});e.asyncDep=n}else Kf(e,n,t)}else Jf(e,t)}function Kf(e,t,r){se(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:We(t)&&(e.setupState=gf(t)),Jf(e,r)}var Gf;function Jf(e,t,r){var i=e.type;if(!e.render){if(!t&&Gf&&!i.render){var a=i.template;if(a){var{isCustomElement:n,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:u}=i,l=ce(ce({isCustomElement:n,delimiters:s},o),u);i.render=Gf(a,l)}}e.render=i.render||pt}Wr(e),Dr(),j0(e),Br(),gr()}function __(e){return new Proxy(e.attrs,{get(t,r){return et(e,"get","$attrs"),t[r]}})}function b_(e){var t=i=>{e.exposed=i||{}},r;return{get attrs(){return r||(r=__(e))},slots:e.slots,emit:e.emit,expose:t}}function _s(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(gf(qa(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in rn)return rn[r](e)}}))}function w_(e){return se(e)&&"__vccOpts"in e}var ee=(e,t)=>w0(e,t,Ri);function y_(e,t,r){var i=arguments.length;return i===2?We(t)&&!ne(t)?Qa(t)?I(e,null,[t]):I(e,t):I(e,null,t):(i>3?r=Array.prototype.slice.call(arguments,2):i===3&&Qa(r)&&(r=[r]),I(e,t,r))}var x_="3.2.31",S_="http://www.w3.org/2000/svg",pr=typeof document!="undefined"?document:null,Qf=pr&&pr.createElement("template"),E_={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{var t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,i)=>{var a=t?pr.createElementNS(S_,e):pr.createElement(e,r?{is:r}:void 0);return e==="select"&&i&&i.multiple!=null&&a.setAttribute("multiple",i.multiple),a},createText:e=>pr.createTextNode(e),createComment:e=>pr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>pr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){var t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,r,i,a,n){var o=r?r.previousSibling:t.lastChild;if(a&&(a===n||a.nextSibling))for(;t.insertBefore(a.cloneNode(!0),r),!(a===n||!(a=a.nextSibling)););else{Qf.innerHTML=i?"".concat(e,""):e;var s=Qf.content;if(i){for(var u=s.firstChild;u.firstChild;)s.appendChild(u.firstChild);s.removeChild(u)}t.insertBefore(s,r)}return[o?o.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}};function T_(e,t,r){var i=e._vtc;i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}function C_(e,t,r){var i=e.style,a=Ee(r);if(r&&!a){for(var n in r)bs(i,n,r[n]);if(t&&!Ee(t))for(var o in t)r[o]==null&&bs(i,o,"")}else{var s=i.display;a?t!==r&&(i.cssText=normalizeStyleValue(r)):t&&e.removeAttribute("style"),"_vod"in e&&(i.display=s)}}var ec=/\s*!important$/;function bs(e,t,r){if(ne(r))r.forEach(a=>bs(e,t,a));else if(r=normalizeStyleValue(r),t.startsWith("--"))e.setProperty(t,r);else{var i=normalizeStyleName(e,t);ec.test(r)?e.setProperty(Je(i),r.replace(ec,""),"important"):e[i]=r}}var tc="http://www.w3.org/1999/xlink";function O_(e,t,r,i,a){if(i&&t.startsWith("xlink:"))r==null?e.removeAttributeNS(tc,t.slice(6,t.length)):e.setAttributeNS(tc,t,r);else{var n=hp(t);r==null||n&&!_u(r)?e.removeAttribute(t):e.setAttribute(t,n?"":r)}}function A_(e,t,r,i,a,n,o){if(t==="innerHTML"||t==="textContent"){i&&o(i,a,n),e[t]=r==null?"":r;return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=r;var s=r==null?"":r;(e.value!==s||e.tagName==="OPTION")&&(e.value=s),r==null&&e.removeAttribute(t);return}if(r===""||r==null){var u=typeof e[t];if(u==="boolean"){e[t]=_u(r);return}else if(r==null&&u==="string"){e[t]="",e.removeAttribute(t);return}else if(u==="number"){try{e[t]=0}catch(l){}e.removeAttribute(t);return}}try{e[t]=r}catch(l){}}var an=Date.now,rc=!1;if(typeof window!="undefined"){an()>document.createEvent("Event").timeStamp&&(an=()=>performance.now());var ic=navigator.userAgent.match(/firefox\/(\d+)/i);rc=!!(ic&&Number(ic[1])<=53)}var ws=0,I_=Promise.resolve(),k_=()=>{ws=0},M_=()=>ws||(I_.then(k_),ws=an());function R_(e,t,r,i){e.addEventListener(t,r,i)}function L_(e,t,r,i){e.removeEventListener(t,r,i)}function P_(e,t,r,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,n=e._vei||(e._vei={}),o=n[t];if(i&&o)o.value=i;else{var[s,u]=N_(t);if(i){var l=n[t]=D_(i,a);R_(e,s,l,u)}else o&&(L_(e,s,o,u),n[t]=void 0)}}var ac=/(?:Once|Passive|Capture)$/;function N_(e){var t;if(ac.test(e)){t={};for(var r;r=e.match(ac);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[Je(e.slice(2)),t]}function D_(e,t){var r=i=>{var a=i.timeStamp||an();(rc||a>=r.attached-1)&&ct(B_(i,r.value),t,5,[i])};return r.value=e,r.attached=M_(),r}function B_(e,t){if(ne(t)){var r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(i=>a=>!a._stopped&&i&&i(a))}else return t}var nc=/^on[a-z]/,F_=function(e,t,r,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,n=arguments.length>5?arguments[5]:void 0,o=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0;t==="class"?T_(e,i,a):t==="style"?C_(e,r,i):Ma(t)?yo(t)||P_(e,t,r,i,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):$_(e,t,i,a))?A_(e,t,i,n,o,s,u):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),O_(e,t,i,a))};function $_(e,t,r,i){return i?!!(t==="innerHTML"||t==="textContent"||t in e&&nc.test(t)&&se(r)):t==="spellcheck"||t==="draggable"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||nc.test(t)&&Ee(r)?!1:t in e}var z_=["ctrl","shift","alt","meta"],U_={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>z_.some(r=>e["".concat(r,"Key")]&&!t.includes(r))},ys=(e,t)=>function(r){for(var i=0;i1?n-1:0),s=1;s{Pi(e,!1)}):Pi(e,i))},beforeUnmount(e,t){var{value:r}=t;Pi(e,r)}};function Pi(e,t){e.style.display=t?e._vod:"none"}var H_=ce({patchProp:F_},E_),oc;function W_(){return oc||(oc=i_(H_))}var sc=function(){var e=W_().createApp(...arguments),{mount:t}=e;return e.mount=r=>{var i=V_(r);if(!!i){var a=e._component;!se(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.innerHTML="";var n=t(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),n}},e};function V_(e){if(Ee(e)){var t=document.querySelector(e);return t}return e}var lc=["top","left","right","bottom"],xs,nn={},ot;function Ss(){return!("CSS"in window)||typeof CSS.supports!="function"?ot="":CSS.supports("top: env(safe-area-inset-top)")?ot="env":CSS.supports("top: constant(safe-area-inset-top)")?ot="constant":ot="",ot}function uc(){if(ot=typeof ot=="string"?ot:Ss(),!ot){lc.forEach(function(s){nn[s]=0});return}function e(s,u){var l=s.style;Object.keys(u).forEach(function(f){var d=u[f];l[f]=d})}var t=[];function r(s){s?t.push(s):t.forEach(function(u){u()})}var i=!1;try{var a=Object.defineProperty({},"passive",{get:function(){i={passive:!0}}});window.addEventListener("test",null,a)}catch(s){}function n(s,u){var l=document.createElement("div"),f=document.createElement("div"),d=document.createElement("div"),p=document.createElement("div"),h=100,y=1e4,b={position:"absolute",width:h+"px",height:"200px",boxSizing:"border-box",overflow:"hidden",paddingBottom:ot+"(safe-area-inset-"+u+")"};e(l,b),e(f,b),e(d,{transition:"0s",animation:"none",width:"400px",height:"400px"}),e(p,{transition:"0s",animation:"none",width:"250%",height:"250%"}),l.appendChild(d),f.appendChild(p),s.appendChild(l),s.appendChild(f),r(function(){l.scrollTop=f.scrollTop=y;var g=l.scrollTop,_=f.scrollTop;function c(){this.scrollTop!==(this===l?g:_)&&(l.scrollTop=f.scrollTop=y,g=l.scrollTop,_=f.scrollTop,j_(u))}l.addEventListener("scroll",c,i),f.addEventListener("scroll",c,i)});var w=getComputedStyle(l);Object.defineProperty(nn,u,{configurable:!0,get:function(){return parseFloat(w.paddingBottom)}})}var o=document.createElement("div");e(o,{position:"absolute",left:"0",top:"0",width:"0",height:"0",zIndex:"-1",overflow:"hidden",visibility:"hidden"}),lc.forEach(function(s){n(o,s)}),document.body.appendChild(o),r(),xs=!0}function on(e){return xs||uc(),nn[e]}var sn=[];function j_(e){sn.length||setTimeout(function(){var t={};sn.forEach(function(r){t[r]=nn[r]}),sn.length=0,ln.forEach(function(r){r(t)})},0),sn.push(e)}var ln=[];function Y_(e){!Ss()||(xs||uc(),typeof e=="function"&&ln.push(e))}function q_(e){var t=ln.indexOf(e);t>=0&&ln.splice(t,1)}var X_={get support(){return(typeof ot=="string"?ot:Ss()).length!=0},get top(){return on("top")},get left(){return on("left")},get right(){return on("right")},get bottom(){return on("bottom")},onChange:Y_,offChange:q_},un=X_,fc=ys(()=>{},["prevent"]);function fn(e,t){return parseInt((e.getPropertyValue(t).match(/\d+/)||["0"])[0])}function Es(){var e=document.documentElement.style,t=fn(e,"--window-top");return t?t+un.top:0}function Z_(){var e=document.documentElement.style,t=Es(),r=fn(e,"--window-bottom"),i=fn(e,"--window-left"),a=fn(e,"--window-right");return{top:t,bottom:r?r+un.bottom:0,left:i?i+un.left:0,right:a?a+un.right:0}}function K_(e){var t=document.documentElement.style;Object.keys(e).forEach(r=>{t.setProperty(r,e[r])})}function cn(e){return Symbol(e)}function cc(e){return e=e+"",e.indexOf("rpx")!==-1||e.indexOf("upx")!==-1}function Vr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(t)return G_(e);if(typeof e=="string"){var r=parseInt(e)||0;return cc(e)?uni.upx2px(r):r}return e}function G_(e){return cc(e)?e.replace(/(\d+(\.\d+)?)[ru]px/g,(t,r)=>uni.upx2px(parseFloat(r))+"px"):e}var J_="M20.928 10.176l-4.928 4.928-4.928-4.928-0.896 0.896 4.928 4.928-4.928 4.928 0.896 0.896 4.928-4.928 4.928 4.928 0.896-0.896-4.928-4.928 4.928-4.928-0.896-0.896zM16 2.080q-3.776 0-7.040 1.888-3.136 1.856-4.992 4.992-1.888 3.264-1.888 7.040t1.888 7.040q1.856 3.136 4.992 4.992 3.264 1.888 7.040 1.888t7.040-1.888q3.136-1.856 4.992-4.992 1.888-3.264 1.888-7.040t-1.888-7.040q-1.856-3.136-4.992-4.992-3.264-1.888-7.040-1.888zM16 28.64q-3.424 0-6.4-1.728-2.848-1.664-4.512-4.512-1.728-2.976-1.728-6.4t1.728-6.4q1.664-2.848 4.512-4.512 2.976-1.728 6.4-1.728t6.4 1.728q2.848 1.664 4.512 4.512 1.728 2.976 1.728 6.4t-1.728 6.4q-1.664 2.848-4.512 4.512-2.976 1.728-6.4 1.728z",Q_="M16 0q-4.352 0-8.064 2.176-3.616 2.144-5.76 5.76-2.176 3.712-2.176 8.064t2.176 8.064q2.144 3.616 5.76 5.76 3.712 2.176 8.064 2.176t8.064-2.176q3.616-2.144 5.76-5.76 2.176-3.712 2.176-8.064t-2.176-8.064q-2.144-3.616-5.76-5.76-3.712-2.176-8.064-2.176zM22.688 21.408q0.32 0.32 0.304 0.752t-0.336 0.736-0.752 0.304-0.752-0.32l-5.184-5.376-5.376 5.184q-0.32 0.32-0.752 0.304t-0.736-0.336-0.304-0.752 0.32-0.752l5.376-5.184-5.184-5.376q-0.32-0.32-0.304-0.752t0.336-0.752 0.752-0.304 0.752 0.336l5.184 5.376 5.376-5.184q0.32-0.32 0.752-0.304t0.752 0.336 0.304 0.752-0.336 0.752l-5.376 5.184 5.184 5.376z",eb="M15.808 1.696q-3.776 0-7.072 1.984-3.2 1.888-5.088 5.152-1.952 3.392-1.952 7.36 0 3.776 1.952 7.072 1.888 3.2 5.088 5.088 3.296 1.952 7.072 1.952 3.968 0 7.36-1.952 3.264-1.888 5.152-5.088 1.984-3.296 1.984-7.072 0-4-1.984-7.36-1.888-3.264-5.152-5.152-3.36-1.984-7.36-1.984zM20.864 18.592l-3.776 4.928q-0.448 0.576-1.088 0.576t-1.088-0.576l-3.776-4.928q-0.448-0.576-0.24-0.992t0.944-0.416h2.976v-8.928q0-0.256 0.176-0.432t0.4-0.176h1.216q0.224 0 0.4 0.176t0.176 0.432v8.928h2.976q0.736 0 0.944 0.416t-0.24 0.992z",tb="M15.808 0.128q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.176 3.776-2.176 8.16 0 4.224 2.176 7.872 2.080 3.552 5.632 5.632 3.648 2.176 7.872 2.176 4.384 0 8.16-2.176 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.416-2.176-8.16-2.112-3.616-5.728-5.728-3.744-2.176-8.16-2.176zM16.864 23.776q0 0.064-0.064 0.064h-1.568q-0.096 0-0.096-0.064l-0.256-11.328q0-0.064 0.064-0.064h2.112q0.096 0 0.064 0.064l-0.256 11.328zM16 10.88q-0.576 0-0.976-0.4t-0.4-0.96 0.4-0.96 0.976-0.4 0.976 0.4 0.4 0.96-0.4 0.96-0.976 0.4z",rb="M20.928 22.688q-1.696 1.376-3.744 2.112-2.112 0.768-4.384 0.768-3.488 0-6.464-1.728-2.88-1.696-4.576-4.608-1.76-2.976-1.76-6.464t1.76-6.464q1.696-2.88 4.576-4.576 2.976-1.76 6.464-1.76t6.464 1.76q2.912 1.696 4.608 4.576 1.728 2.976 1.728 6.464 0 2.272-0.768 4.384-0.736 2.048-2.112 3.744l9.312 9.28-1.824 1.824-9.28-9.312zM12.8 23.008q2.784 0 5.184-1.376 2.304-1.376 3.68-3.68 1.376-2.4 1.376-5.184t-1.376-5.152q-1.376-2.336-3.68-3.68-2.4-1.408-5.184-1.408t-5.152 1.408q-2.336 1.344-3.68 3.68-1.408 2.368-1.408 5.152t1.408 5.184q1.344 2.304 3.68 3.68 2.368 1.376 5.152 1.376zM12.8 23.008v0z",vn="M1.952 18.080q-0.32-0.352-0.416-0.88t0.128-0.976l0.16-0.352q0.224-0.416 0.64-0.528t0.8 0.176l6.496 4.704q0.384 0.288 0.912 0.272t0.88-0.336l17.312-14.272q0.352-0.288 0.848-0.256t0.848 0.352l-0.416-0.416q0.32 0.352 0.32 0.816t-0.32 0.816l-18.656 18.912q-0.32 0.352-0.8 0.352t-0.8-0.32l-7.936-8.064z",ib="M15.808 0.16q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM24.832 11.328l-11.264 11.104q-0.032 0.032-0.112 0.032t-0.112-0.032l-5.216-5.376q-0.096-0.128 0-0.288l0.704-0.96q0.032-0.064 0.112-0.064t0.112 0.032l4.256 3.264q0.064 0.032 0.144 0.032t0.112-0.032l10.336-8.608q0.064-0.064 0.144-0.064t0.112 0.064l0.672 0.672q0.128 0.128 0 0.224z",ab="M15.84 0.096q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM23.008 21.92l-0.512 0.896q-0.096 0.128-0.224 0.064l-8-3.808q-0.096-0.064-0.16-0.128-0.128-0.096-0.128-0.288l0.512-12.096q0-0.064 0.048-0.112t0.112-0.048h1.376q0.064 0 0.112 0.048t0.048 0.112l0.448 10.848 6.304 4.256q0.064 0.064 0.080 0.128t-0.016 0.128z",nb="M15.808 0.16q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM15.136 8.672h1.728q0.128 0 0.224 0.096t0.096 0.256l-0.384 10.24q0 0.064-0.048 0.112t-0.112 0.048h-1.248q-0.096 0-0.144-0.048t-0.048-0.112l-0.384-10.24q0-0.16 0.096-0.256t0.224-0.096zM16 23.328q-0.48 0-0.832-0.352t-0.352-0.848 0.352-0.848 0.832-0.352 0.832 0.352 0.352 0.848-0.352 0.848-0.832 0.352z";function dn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"#000",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:27;return I("svg",{width:r,height:r,viewBox:"0 0 32 32"},[I("path",{d:e,fill:t},null,8,["d","fill"])],8,["width","height"])}function hn(){return Gt()}function ob(){return window.__PAGE_INFO__}function Gt(){return window.__id__||(window.__id__=plus.webview.currentWebview().id),parseInt(window.__id__)}function sb(e){e.preventDefault()}var vc,dc=0;function lb(e){var{onPageScroll:t,onReachBottom:r,onReachBottomDistance:i}=e,a=!1,n=!1,o=!0,s=()=>{var{scrollHeight:l}=document.documentElement,f=window.innerHeight,d=window.scrollY,p=d>0&&l>f&&d+f+i>=l,h=Math.abs(l-dc)>i;return p&&(!n||h)?(dc=l,n=!0,!0):(!p&&n&&(n=!1),!1)},u=()=>{t&&t(window.pageYOffset);function l(){if(s())return r&&r(),o=!1,setTimeout(function(){o=!0},350),!0}r&&o&&(l()||(vc=setTimeout(l,300))),a=!1};return function(){clearTimeout(vc),a||requestAnimationFrame(u),a=!0}}function Ts(e,t){if(t.indexOf("/")===0)return t;if(t.indexOf("./")===0)return Ts(e,t.substr(2));for(var r=t.split("/"),i=r.length,a=0;a0?e.split("/"):[];return n.splice(n.length-a-1,a+1),Mo(n.concat(r).join("/"))}var jr,hc,Yr;function gc(){return typeof window=="object"&&typeof navigator=="object"&&typeof document=="object"?"webview":"v8"}function pc(){return jr.webview.currentWebview().id}var gn,Cs,Os={};function As(e){var t=e.data&&e.data.__message;if(!(!t||!t.__page)){var r=t.__page,i=Os[r];i&&i(t),t.keep||delete Os[r]}}function ub(e,t){gc()==="v8"?Yr?(gn&&gn.close(),gn=new Yr(pc()),gn.onmessage=As):Cs||(Cs=hc.requireModule("globalEvent"),Cs.addEventListener("plusMessage",As)):window.__plusMessage=As,Os[e]=t}class fb{constructor(t){this.webview=t}sendMessage(t){var r=JSON.parse(JSON.stringify({__message:{data:t}})),i=this.webview.id;if(Yr){var a=new Yr(i);a.postMessage(r)}else jr.webview.postMessageToUniNView&&jr.webview.postMessageToUniNView(r,i)}close(){this.webview.close()}}function cb(e){var{context:t={},url:r,data:i={},style:a={},onMessage:n,onClose:o}=e;jr=t.plus||plus,hc=t.weex||(typeof weex=="object"?weex:null),Yr=t.BroadcastChannel||(typeof BroadcastChannel=="object"?BroadcastChannel:null);var s={autoBackButton:!0,titleSize:"17px"},u="page".concat(Date.now());a=ce({},a),a.titleNView!==!1&&a.titleNView!=="none"&&(a.titleNView=ce(s,a.titleNView));var l={top:0,bottom:0,usingComponents:{},popGesture:"close",scrollIndicator:"none",animationType:"pop-in",animationDuration:200,uniNView:{path:"/".concat(r,".js"),defaultFontSize:16,viewport:jr.screen.resolutionWidth}};a=ce(l,a);var f=jr.webview.create("",u,a,{extras:{from:pc(),runtime:gc(),data:i,useGlobalEvent:!Yr}});return f.addEventListener("close",o),ub(u,d=>{typeof n=="function"&&n(d.data),d.keep||f.close("auto")}),f.show(a.animationType,a.animationDuration),new fb(f)}class vb{constructor(t){this.$bindClass=!1,this.$bindStyle=!1,this.$vm=t,this.$el=t.$el,this.$el.getAttribute&&(this.$bindClass=!!this.$el.getAttribute("class"),this.$bindStyle=!!this.$el.getAttribute("style"))}selectComponent(t){if(!(!this.$el||!t)){var r=mc(this.$el.querySelector(t));if(!!r)return Is(r)}}selectAllComponents(t){if(!this.$el||!t)return[];for(var r=[],i=this.$el.querySelectorAll(t),a=0;a-1&&r.splice(i,1)}var a=this.$el.__wxsRemoveClass||(this.$el.__wxsRemoveClass=[]);return a.indexOf(t)===-1&&(a.push(t),this.forceUpdate("class")),this}hasClass(t){return this.$el&&this.$el.classList.contains(t)}getDataset(){return this.$el&&this.$el.dataset}callMethod(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.$vm[t];se(i)?i(JSON.parse(JSON.stringify(r))):this.$vm.ownerId&&UniViewJSBridge.publishHandler(Pp,{nodeId:this.$el.__id,ownerId:this.$vm.ownerId,method:t,args:r})}requestAnimationFrame(t){return window.requestAnimationFrame(t)}getState(){return this.$el&&(this.$el.__wxsState||(this.$el.__wxsState={}))}triggerEvent(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.$vm.$emit(t,r),this}getComputedStyle(t){if(this.$el){var r=window.getComputedStyle(this.$el);return t&&t.length?t.reduce((i,a)=>(i[a]=r[a],i),{}):r}return{}}setTimeout(t,r){return window.setTimeout(t,r)}clearTimeout(t){return window.clearTimeout(t)}getBoundingClientRect(){return this.$el.getBoundingClientRect()}}function Is(e){if(e&&e.$el)return e.$el.__wxsComponentDescriptor||(e.$el.__wxsComponentDescriptor=new vb(e)),e.$el.__wxsComponentDescriptor}function Ni(e,t){return Is(e)}function mc(e){if(!!e)return qr(e)}function qr(e){return e.__wxsVm||(e.__wxsVm={ownerId:e.__ownerId,$el:e,$emit(){},$forceUpdate(){var{__wxsStyle:t,__wxsAddClass:r,__wxsRemoveClass:i,__wxsStyleChanged:a,__wxsClassChanged:n}=e,o,s;a&&(e.__wxsStyleChanged=!1,t&&(s=()=>{Object.keys(t).forEach(u=>{e.style[u]=t[u]})})),n&&(e.__wxsClassChanged=!1,o=()=>{i&&i.forEach(u=>{e.classList.remove(u)}),r&&r.forEach(u=>{e.classList.add(u)})}),requestAnimationFrame(()=>{o&&o(),s&&s()})}})}var db=e=>e.type==="click";function _c(e,t,r){var{currentTarget:i}=e;if(!(e instanceof Event)||!(i instanceof HTMLElement))return[e];var a=i.tagName.indexOf("UNI-")!==0,n=bc(e,a);if(db(e))gb(n,e);else if(e instanceof TouchEvent){var o=Es();n.touches=wc(e.touches,o),n.changedTouches=wc(e.changedTouches,o)}return[n]}function hb(e){for(;e&&e.tagName.indexOf("UNI-")!==0;)e=e.parentElement;return e}function bc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,{type:r,timeStamp:i,target:a,currentTarget:n}=e,o={type:r,timeStamp:i,target:Lo(t?a:hb(a)),detail:{},currentTarget:Lo(n)};return e._stopped&&(o._stopped=!0),e.type.startsWith("touch")&&(o.touches=e.touches,o.changedTouches=e.changedTouches),o}function gb(e,t){var{x:r,y:i}=t,a=Es();e.detail={x:r,y:i-a},e.touches=e.changedTouches=[pb(t,a)]}function pb(e,t){return{force:1,identifier:0,clientX:e.clientX,clientY:e.clientY-t,pageX:e.pageX,pageY:e.pageY-t}}function wc(e,t){for(var r=[],i=0;i1&&arguments[1]!==void 0?arguments[1]:{},r=Gt()+"";plus.webview.postMessageToUniNView({type:"subscribeHandler",args:{type:e,data:t,pageId:r}},mb)}function Eb(e,t){var r=e[0];if(!(!t||!mt(t.formatArgs)&&mt(r)))for(var i=t.formatArgs,a=Object.keys(i),n=0;nplus.io.convertLocalFileSystemURL(e).replace(/^\/?apps\//,"/android_asset/apps/").replace(/\/$/,""));function Ab(e){return e.indexOf("_www")===0||e.indexOf("_doc")===0||e.indexOf("_documents")===0||e.indexOf("_downloads")===0}var Ib=0;function kb(e,t,r){var i="".concat(Date.now()).concat(Ib++),a=e.split(","),n=a[0],o=a[1],s=(n.match(/data:image\/(\S+?);/)||["","png"])[1].replace("jpeg","jpg"),u="".concat(i,".").concat(s),l="".concat(t,"/").concat(u),f=t.indexOf("/"),d=t.substring(0,f),p=t.substring(f+1);plus.io.resolveLocalFileSystemURL(d,function(h){h.getDirectory(p,{create:!0,exclusive:!1},function(y){y.getFile(u,{create:!0,exclusive:!1},function(b){b.createWriter(function(w){w.onwrite=function(){r(null,l)},w.onerror=r,w.seek(0),w.writeAsBinary(o)},r)},r)},r)},r)}function Mb(e){return new Promise(function(t,r){function i(){var a=new plus.nativeObj.Bitmap("bitmap_".concat(Date.now(),"_").concat(Math.random(),"}"));a.load(e,function(){t(a.toBase64Data()),a.clear()},function(n){a.clear(),r(n)})}plus.io.resolveLocalFileSystemURL(e,function(a){a.file(function(n){var o=new plus.io.FileReader;o.onload=function(s){t(s.target.result)},o.onerror=i,o.readAsDataURL(n)},i)},i)})}function Rb(e){return new Promise(function(t,r){if(e.indexOf("http://")!==0&&e.indexOf("https://")!==0){t(e);return}plus.downloader.createDownload(e,{filename:"_doc/uniapp_temp/download/"},function(i,a){a===200?t(i.filename):r(new Error("network fail"))}).start()})}function Lb(e){return Rb(e).then(function(t){var r=window;return r.webkit&&r.webkit.messageHandlers?Mb(t):plus.io.convertLocalFileSystemURL(t)})}var Bt={};(function(e){var t=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";function r(n,o){return Object.prototype.hasOwnProperty.call(n,o)}e.assign=function(n){for(var o=Array.prototype.slice.call(arguments,1);o.length;){var s=o.shift();if(!!s){if(typeof s!="object")throw new TypeError(s+"must be non-object");for(var u in s)r(s,u)&&(n[u]=s[u])}}return n},e.shrinkBuf=function(n,o){return n.length===o?n:n.subarray?n.subarray(0,o):(n.length=o,n)};var i={arraySet:function(n,o,s,u,l){if(o.subarray&&n.subarray){n.set(o.subarray(s,s+u),l);return}for(var f=0;f=0;)e[t]=0}var Bb=0,Oc=1,Fb=2,$b=3,zb=258,Ms=29,Bi=256,Fi=Bi+1+Ms,Kr=30,Rs=19,Ac=2*Fi+1,mr=15,Ls=16,Ub=7,Ps=256,Ic=16,kc=17,Mc=18,Ns=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],pn=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Hb=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Rc=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Wb=512,Ft=new Array((Fi+2)*2);Zr(Ft);var $i=new Array(Kr*2);Zr($i);var zi=new Array(Wb);Zr(zi);var Ui=new Array(zb-$b+1);Zr(Ui);var Ds=new Array(Ms);Zr(Ds);var mn=new Array(Kr);Zr(mn);function Bs(e,t,r,i,a){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=i,this.max_length=a,this.has_stree=e&&e.length}var Lc,Pc,Nc;function Fs(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function Dc(e){return e<256?zi[e]:zi[256+(e>>>7)]}function Hi(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}function Ze(e,t,r){e.bi_valid>Ls-r?(e.bi_buf|=t<>Ls-e.bi_valid,e.bi_valid+=r-Ls):(e.bi_buf|=t<>>=1,r<<=1;while(--t>0);return r>>>1}function Vb(e){e.bi_valid===16?(Hi(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)}function jb(e,t){var r=t.dyn_tree,i=t.max_code,a=t.stat_desc.static_tree,n=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,u=t.stat_desc.max_length,l,f,d,p,h,y,b=0;for(p=0;p<=mr;p++)e.bl_count[p]=0;for(r[e.heap[e.heap_max]*2+1]=0,l=e.heap_max+1;lu&&(p=u,b++),r[f*2+1]=p,!(f>i)&&(e.bl_count[p]++,h=0,f>=s&&(h=o[f-s]),y=r[f*2],e.opt_len+=y*(p+h),n&&(e.static_len+=y*(a[f*2+1]+h)));if(b!==0){do{for(p=u-1;e.bl_count[p]===0;)p--;e.bl_count[p]--,e.bl_count[p+1]+=2,e.bl_count[u]--,b-=2}while(b>0);for(p=u;p!==0;p--)for(f=e.bl_count[p];f!==0;)d=e.heap[--l],!(d>i)&&(r[d*2+1]!==p&&(e.opt_len+=(p-r[d*2+1])*r[d*2],r[d*2+1]=p),f--)}}function Fc(e,t,r){var i=new Array(mr+1),a=0,n,o;for(n=1;n<=mr;n++)i[n]=a=a+r[n-1]<<1;for(o=0;o<=t;o++){var s=e[o*2+1];s!==0&&(e[o*2]=Bc(i[s]++,s))}}function Yb(){var e,t,r,i,a,n=new Array(mr+1);for(r=0,i=0;i>=7;i8?Hi(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function qb(e,t,r,i){zc(e),i&&(Hi(e,r),Hi(e,~r)),Pb.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}function Uc(e,t,r,i){var a=t*2,n=r*2;return e[a]>1;o>=1;o--)$s(e,r,o);l=n;do o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],$s(e,r,1),s=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=s,r[l*2]=r[o*2]+r[s*2],e.depth[l]=(e.depth[o]>=e.depth[s]?e.depth[o]:e.depth[s])+1,r[o*2+1]=r[s*2+1]=l,e.heap[1]=l++,$s(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],jb(e,t),Fc(r,u,e.bl_count)}function Wc(e,t,r){var i,a=-1,n,o=t[0*2+1],s=0,u=7,l=4;for(o===0&&(u=138,l=3),t[(r+1)*2+1]=65535,i=0;i<=r;i++)n=o,o=t[(i+1)*2+1],!(++s=3&&e.bl_tree[Rc[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}function Zb(e,t,r,i){var a;for(Ze(e,t-257,5),Ze(e,r-1,5),Ze(e,i-4,4),a=0;a>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return Tc;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return Cc;for(r=32;r0?(e.strm.data_type===Db&&(e.strm.data_type=Kb(e)),zs(e,e.l_desc),zs(e,e.d_desc),o=Xb(e),a=e.opt_len+3+7>>>3,n=e.static_len+3+7>>>3,n<=a&&(a=n)):a=n=r+5,r+4<=a&&t!==-1?Yc(e,t,r,i):e.strategy===Nb||n===a?(Ze(e,(Oc<<1)+(i?1:0),3),Hc(e,Ft,$i)):(Ze(e,(Fb<<1)+(i?1:0),3),Zb(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),Hc(e,e.dyn_ltree,e.dyn_dtree)),$c(e),i&&zc(e)}function ew(e,t,r){return e.pending_buf[e.d_buf+e.last_lit*2]=t>>>8&255,e.pending_buf[e.d_buf+e.last_lit*2+1]=t&255,e.pending_buf[e.l_buf+e.last_lit]=r&255,e.last_lit++,t===0?e.dyn_ltree[r*2]++:(e.matches++,t--,e.dyn_ltree[(Ui[r]+Bi+1)*2]++,e.dyn_dtree[Dc(t)*2]++),e.last_lit===e.lit_bufsize-1}Xr._tr_init=Gb,Xr._tr_stored_block=Yc,Xr._tr_flush_block=Qb,Xr._tr_tally=ew,Xr._tr_align=Jb;function tw(e,t,r,i){for(var a=e&65535|0,n=e>>>16&65535|0,o=0;r!==0;){o=r>2e3?2e3:r,r-=o;do a=a+t[i++]|0,n=n+a|0;while(--o);a%=65521,n%=65521}return a|n<<16|0}var qc=tw;function rw(){for(var e,t=[],r=0;r<256;r++){e=r;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t}var iw=rw();function aw(e,t,r,i){var a=iw,n=i+r;e^=-1;for(var o=i;o>>8^a[(e^t[o])&255];return e^-1}var Xc=aw,Us={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},qe=Bt,lt=Xr,Zc=qc,Jt=Xc,nw=Us,_r=0,ow=1,sw=3,Qt=4,Kc=5,Ct=0,Gc=1,ut=-2,lw=-3,Hs=-5,uw=-1,fw=1,_n=2,cw=3,vw=4,dw=0,hw=2,bn=8,gw=9,pw=15,mw=8,_w=29,bw=256,Ws=bw+1+_w,ww=30,yw=19,xw=2*Ws+1,Sw=15,ve=3,er=258,dt=er+ve+1,Ew=32,wn=42,Vs=69,yn=73,xn=91,Sn=103,br=113,Wi=666,Pe=1,Vi=2,wr=3,Gr=4,Tw=3;function tr(e,t){return e.msg=nw[t],t}function Jc(e){return(e<<1)-(e>4?9:0)}function rr(e){for(var t=e.length;--t>=0;)e[t]=0}function ir(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(qe.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,t.pending===0&&(t.pending_out=0))}function He(e,t){lt._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,ir(e.strm)}function pe(e,t){e.pending_buf[e.pending++]=t}function ji(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}function Cw(e,t,r,i){var a=e.avail_in;return a>i&&(a=i),a===0?0:(e.avail_in-=a,qe.arraySet(t,e.input,e.next_in,a,r),e.state.wrap===1?e.adler=Zc(e.adler,t,a,r):e.state.wrap===2&&(e.adler=Jt(e.adler,t,a,r)),e.next_in+=a,e.total_in+=a,a)}function Qc(e,t){var r=e.max_chain_length,i=e.strstart,a,n,o=e.prev_length,s=e.nice_match,u=e.strstart>e.w_size-dt?e.strstart-(e.w_size-dt):0,l=e.window,f=e.w_mask,d=e.prev,p=e.strstart+er,h=l[i+o-1],y=l[i+o];e.prev_length>=e.good_match&&(r>>=2),s>e.lookahead&&(s=e.lookahead);do if(a=t,!(l[a+o]!==y||l[a+o-1]!==h||l[a]!==l[i]||l[++a]!==l[i+1])){i+=2,a++;do;while(l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&io){if(e.match_start=t,o=n,n>=s)break;h=l[i+o-1],y=l[i+o]}}while((t=d[t&f])>u&&--r!==0);return o<=e.lookahead?o:e.lookahead}function yr(e){var t=e.w_size,r,i,a,n,o;do{if(n=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-dt)){qe.arraySet(e.window,e.window,t,t,0),e.match_start-=t,e.strstart-=t,e.block_start-=t,i=e.hash_size,r=i;do a=e.head[--r],e.head[r]=a>=t?a-t:0;while(--i);i=t,r=i;do a=e.prev[--r],e.prev[r]=a>=t?a-t:0;while(--i);n+=t}if(e.strm.avail_in===0)break;if(i=Cw(e.strm,e.window,e.strstart+e.lookahead,n),e.lookahead+=i,e.lookahead+e.insert>=ve)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=(e.ins_h<e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(yr(e),e.lookahead===0&&t===_r)return Pe;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var i=e.block_start+r;if((e.strstart===0||e.strstart>=i)&&(e.lookahead=e.strstart-i,e.strstart=i,He(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-dt&&(He(e,!1),e.strm.avail_out===0))return Pe}return e.insert=0,t===Qt?(He(e,!0),e.strm.avail_out===0?wr:Gr):(e.strstart>e.block_start&&(He(e,!1),e.strm.avail_out===0),Pe)}function js(e,t){for(var r,i;;){if(e.lookahead=ve&&(e.ins_h=(e.ins_h<=ve)if(i=lt._tr_tally(e,e.strstart-e.match_start,e.match_length-ve),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=ve){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<=ve&&(e.ins_h=(e.ins_h<4096)&&(e.match_length=ve-1)),e.prev_length>=ve&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-ve,i=lt._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-ve),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=a&&(e.ins_h=(e.ins_h<=ve&&e.strstart>0&&(a=e.strstart-1,i=o[a],i===o[++a]&&i===o[++a]&&i===o[++a])){n=e.strstart+er;do;while(i===o[++a]&&i===o[++a]&&i===o[++a]&&i===o[++a]&&i===o[++a]&&i===o[++a]&&i===o[++a]&&i===o[++a]&&ae.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=ve?(r=lt._tr_tally(e,1,e.match_length-ve),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=lt._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(He(e,!1),e.strm.avail_out===0))return Pe}return e.insert=0,t===Qt?(He(e,!0),e.strm.avail_out===0?wr:Gr):e.last_lit&&(He(e,!1),e.strm.avail_out===0)?Pe:Vi}function Iw(e,t){for(var r;;){if(e.lookahead===0&&(yr(e),e.lookahead===0)){if(t===_r)return Pe;break}if(e.match_length=0,r=lt._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(He(e,!1),e.strm.avail_out===0))return Pe}return e.insert=0,t===Qt?(He(e,!0),e.strm.avail_out===0?wr:Gr):e.last_lit&&(He(e,!1),e.strm.avail_out===0)?Pe:Vi}function Ot(e,t,r,i,a){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=i,this.func=a}var Qr;Qr=[new Ot(0,0,0,0,Ow),new Ot(4,4,8,4,js),new Ot(4,5,16,8,js),new Ot(4,6,32,32,js),new Ot(4,4,16,16,Jr),new Ot(8,16,32,32,Jr),new Ot(8,16,128,128,Jr),new Ot(8,32,128,256,Jr),new Ot(32,128,258,1024,Jr),new Ot(32,258,258,4096,Jr)];function kw(e){e.window_size=2*e.w_size,rr(e.head),e.max_lazy_match=Qr[e.level].max_lazy,e.good_match=Qr[e.level].good_length,e.nice_match=Qr[e.level].nice_length,e.max_chain_length=Qr[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=ve-1,e.match_available=0,e.ins_h=0}function Mw(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=bn,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new qe.Buf16(xw*2),this.dyn_dtree=new qe.Buf16((2*ww+1)*2),this.bl_tree=new qe.Buf16((2*yw+1)*2),rr(this.dyn_ltree),rr(this.dyn_dtree),rr(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new qe.Buf16(Sw+1),this.heap=new qe.Buf16(2*Ws+1),rr(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new qe.Buf16(2*Ws+1),rr(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ev(e){var t;return!e||!e.state?tr(e,ut):(e.total_in=e.total_out=0,e.data_type=hw,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?wn:br,e.adler=t.wrap===2?0:1,t.last_flush=_r,lt._tr_init(t),Ct)}function tv(e){var t=ev(e);return t===Ct&&kw(e.state),t}function Rw(e,t){return!e||!e.state||e.state.wrap!==2?ut:(e.state.gzhead=t,Ct)}function rv(e,t,r,i,a,n){if(!e)return ut;var o=1;if(t===uw&&(t=6),i<0?(o=0,i=-i):i>15&&(o=2,i-=16),a<1||a>gw||r!==bn||i<8||i>15||t<0||t>9||n<0||n>vw)return tr(e,ut);i===8&&(i=9);var s=new Mw;return e.state=s,s.strm=e,s.wrap=o,s.gzhead=null,s.w_bits=i,s.w_size=1<Kc||t<0)return e?tr(e,ut):ut;if(i=e.state,!e.output||!e.input&&e.avail_in!==0||i.status===Wi&&t!==Qt)return tr(e,e.avail_out===0?Hs:ut);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===wn)if(i.wrap===2)e.adler=0,pe(i,31),pe(i,139),pe(i,8),i.gzhead?(pe(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),pe(i,i.gzhead.time&255),pe(i,i.gzhead.time>>8&255),pe(i,i.gzhead.time>>16&255),pe(i,i.gzhead.time>>24&255),pe(i,i.level===9?2:i.strategy>=_n||i.level<2?4:0),pe(i,i.gzhead.os&255),i.gzhead.extra&&i.gzhead.extra.length&&(pe(i,i.gzhead.extra.length&255),pe(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=Jt(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=Vs):(pe(i,0),pe(i,0),pe(i,0),pe(i,0),pe(i,0),pe(i,i.level===9?2:i.strategy>=_n||i.level<2?4:0),pe(i,Tw),i.status=br);else{var o=bn+(i.w_bits-8<<4)<<8,s=-1;i.strategy>=_n||i.level<2?s=0:i.level<6?s=1:i.level===6?s=2:s=3,o|=s<<6,i.strstart!==0&&(o|=Ew),o+=31-o%31,i.status=br,ji(i,o),i.strstart!==0&&(ji(i,e.adler>>>16),ji(i,e.adler&65535)),e.adler=1}if(i.status===Vs)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(i.gzhead.extra.length&65535)&&!(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=Jt(e.adler,i.pending_buf,i.pending-a,a)),ir(e),a=i.pending,i.pending===i.pending_buf_size));)pe(i,i.gzhead.extra[i.gzindex]&255),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=Jt(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=yn)}else i.status=yn;if(i.status===yn)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=Jt(e.adler,i.pending_buf,i.pending-a,a)),ir(e),a=i.pending,i.pending===i.pending_buf_size)){n=1;break}i.gzindexa&&(e.adler=Jt(e.adler,i.pending_buf,i.pending-a,a)),n===0&&(i.gzindex=0,i.status=xn)}else i.status=xn;if(i.status===xn)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=Jt(e.adler,i.pending_buf,i.pending-a,a)),ir(e),a=i.pending,i.pending===i.pending_buf_size)){n=1;break}i.gzindexa&&(e.adler=Jt(e.adler,i.pending_buf,i.pending-a,a)),n===0&&(i.status=Sn)}else i.status=Sn;if(i.status===Sn&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&ir(e),i.pending+2<=i.pending_buf_size&&(pe(i,e.adler&255),pe(i,e.adler>>8&255),e.adler=0,i.status=br)):i.status=br),i.pending!==0){if(ir(e),e.avail_out===0)return i.last_flush=-1,Ct}else if(e.avail_in===0&&Jc(t)<=Jc(r)&&t!==Qt)return tr(e,Hs);if(i.status===Wi&&e.avail_in!==0)return tr(e,Hs);if(e.avail_in!==0||i.lookahead!==0||t!==_r&&i.status!==Wi){var u=i.strategy===_n?Iw(i,t):i.strategy===cw?Aw(i,t):Qr[i.level].func(i,t);if((u===wr||u===Gr)&&(i.status=Wi),u===Pe||u===wr)return e.avail_out===0&&(i.last_flush=-1),Ct;if(u===Vi&&(t===ow?lt._tr_align(i):t!==Kc&&(lt._tr_stored_block(i,0,0,!1),t===sw&&(rr(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),ir(e),e.avail_out===0))return i.last_flush=-1,Ct}return t!==Qt?Ct:i.wrap<=0?Gc:(i.wrap===2?(pe(i,e.adler&255),pe(i,e.adler>>8&255),pe(i,e.adler>>16&255),pe(i,e.adler>>24&255),pe(i,e.total_in&255),pe(i,e.total_in>>8&255),pe(i,e.total_in>>16&255),pe(i,e.total_in>>24&255)):(ji(i,e.adler>>>16),ji(i,e.adler&65535)),ir(e),i.wrap>0&&(i.wrap=-i.wrap),i.pending!==0?Ct:Gc)}function Nw(e){var t;return!e||!e.state?ut:(t=e.state.status,t!==wn&&t!==Vs&&t!==yn&&t!==xn&&t!==Sn&&t!==br&&t!==Wi?tr(e,ut):(e.state=null,t===br?tr(e,lw):Ct))}function Dw(e,t){var r=t.length,i,a,n,o,s,u,l,f;if(!e||!e.state||(i=e.state,o=i.wrap,o===2||o===1&&i.status!==wn||i.lookahead))return ut;for(o===1&&(e.adler=Zc(e.adler,t,r,0)),i.wrap=0,r>=i.w_size&&(o===0&&(rr(i.head),i.strstart=0,i.block_start=0,i.insert=0),f=new qe.Buf8(i.w_size),qe.arraySet(f,t,r-i.w_size,i.w_size,0),t=f,r=i.w_size),s=e.avail_in,u=e.next_in,l=e.input,e.avail_in=r,e.next_in=0,e.input=t,yr(i);i.lookahead>=ve;){a=i.strstart,n=i.lookahead-(ve-1);do i.ins_h=(i.ins_h<=252?6:ar>=248?5:ar>=240?4:ar>=224?3:ar>=192?2:1;Yi[254]=Yi[254]=1,xr.string2buf=function(e){var t,r,i,a,n,o=e.length,s=0;for(a=0;a>>6,t[n++]=128|r&63):r<65536?(t[n++]=224|r>>>12,t[n++]=128|r>>>6&63,t[n++]=128|r&63):(t[n++]=240|r>>>18,t[n++]=128|r>>>12&63,t[n++]=128|r>>>6&63,t[n++]=128|r&63);return t};function nv(e,t){if(t<65534&&(e.subarray&&av||!e.subarray&&iv))return String.fromCharCode.apply(null,En.shrinkBuf(e,t));for(var r="",i=0;i4){s[i++]=65533,r+=n-1;continue}for(a&=n===2?31:n===3?15:7;n>1&&r1){s[i++]=65533;continue}a<65536?s[i++]=a:(a-=65536,s[i++]=55296|a>>10&1023,s[i++]=56320|a&1023)}return nv(s,i)},xr.utf8border=function(e,t){var r;for(t=t||e.length,t>e.length&&(t=e.length),r=t-1;r>=0&&(e[r]&192)===128;)r--;return r<0||r===0?t:r+Yi[e[r]]>t?r:t};function Bw(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var ov=Bw,qi=Et,Xi=Bt,Ys=xr,qs=Us,Fw=ov,sv=Object.prototype.toString,$w=0,Xs=4,ei=0,lv=1,uv=2,zw=-1,Uw=0,Hw=8;function Sr(e){if(!(this instanceof Sr))return new Sr(e);this.options=Xi.assign({level:zw,method:Hw,chunkSize:16384,windowBits:15,memLevel:8,strategy:Uw,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Fw,this.strm.avail_out=0;var r=qi.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==ei)throw new Error(qs[r]);if(t.header&&qi.deflateSetHeader(this.strm,t.header),t.dictionary){var i;if(typeof t.dictionary=="string"?i=Ys.string2buf(t.dictionary):sv.call(t.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(t.dictionary):i=t.dictionary,r=qi.deflateSetDictionary(this.strm,i),r!==ei)throw new Error(qs[r]);this._dict_set=!0}}Sr.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,a,n;if(this.ended)return!1;n=t===~~t?t:t===!0?Xs:$w,typeof e=="string"?r.input=Ys.string2buf(e):sv.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;do{if(r.avail_out===0&&(r.output=new Xi.Buf8(i),r.next_out=0,r.avail_out=i),a=qi.deflate(r,n),a!==lv&&a!==ei)return this.onEnd(a),this.ended=!0,!1;(r.avail_out===0||r.avail_in===0&&(n===Xs||n===uv))&&(this.options.to==="string"?this.onData(Ys.buf2binstring(Xi.shrinkBuf(r.output,r.next_out))):this.onData(Xi.shrinkBuf(r.output,r.next_out)))}while((r.avail_in>0||r.avail_out===0)&&a!==lv);return n===Xs?(a=qi.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===ei):(n===uv&&(this.onEnd(ei),r.avail_out=0),!0)},Sr.prototype.onData=function(e){this.chunks.push(e)},Sr.prototype.onEnd=function(e){e===ei&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Xi.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Zs(e,t){var r=new Sr(t);if(r.push(e,!0),r.err)throw r.msg||qs[r.err];return r.result}function Ww(e,t){return t=t||{},t.raw=!0,Zs(e,t)}function Vw(e,t){return t=t||{},t.gzip=!0,Zs(e,t)}Di.Deflate=Sr,Di.deflate=Zs,Di.deflateRaw=Ww,Di.gzip=Vw;var Zi={},ht={},Tn=30,jw=12,Yw=function(t,r){var i,a,n,o,s,u,l,f,d,p,h,y,b,w,g,_,c,v,m,x,E,C,O,M,R;i=t.state,a=t.next_in,M=t.input,n=a+(t.avail_in-5),o=t.next_out,R=t.output,s=o-(r-t.avail_out),u=o+(t.avail_out-257),l=i.dmax,f=i.wsize,d=i.whave,p=i.wnext,h=i.window,y=i.hold,b=i.bits,w=i.lencode,g=i.distcode,_=(1<>>24,y>>>=m,b-=m,m=v>>>16&255,m===0)R[o++]=v&65535;else if(m&16){x=v&65535,m&=15,m&&(b>>=m,b-=m),b<15&&(y+=M[a++]<>>24,y>>>=m,b-=m,m=v>>>16&255,m&16){if(E=v&65535,m&=15,bl){t.msg="invalid distance too far back",i.mode=Tn;break e}if(y>>>=m,b-=m,m=o-s,E>m){if(m=E-m,m>d&&i.sane){t.msg="invalid distance too far back",i.mode=Tn;break e}if(C=0,O=h,p===0){if(C+=f-m,m2;)R[o++]=O[C++],R[o++]=O[C++],R[o++]=O[C++],x-=3;x&&(R[o++]=O[C++],x>1&&(R[o++]=O[C++]))}else{C=o-E;do R[o++]=R[C++],R[o++]=R[C++],R[o++]=R[C++],x-=3;while(x>2);x&&(R[o++]=R[C++],x>1&&(R[o++]=R[C++]))}}else if((m&64)===0){v=g[(v&65535)+(y&(1<>3,a-=x,b-=x<<3,y&=(1<=1&&U[h]===0;h--);if(y>h&&(y=h),h===0)return n[o++]=1<<24|64<<16|0,n[o++]=1<<24|64<<16|0,u.bits=1,0;for(p=1;p0&&(t===dv||h!==1))return-1;for(te[1]=0,f=1;fcv||t===hv&&_>vv)return 1;for(;;){q=f-w,s[d]R?(re=L[H+s[d]],V=O[M+s[d]]):(re=32+64,V=0),v=1<>w)+m]=q<<24|re<<16|V|0;while(m!==0);for(v=1<>=1;if(v!==0?(c&=v-1,c+=v):c=0,d++,--U[f]===0){if(f===h)break;f=r[i+s[d]]}if(f>y&&(c&E)!==x){for(w===0&&(w=y),C+=p,b=f-w,g=1<cv||t===hv&&_>vv)return 1;x=c&E,n[x]=y<<24|b<<16|C-o|0}}return c!==0&&(n[C+c]=f-w<<24|64<<16|0),u.bits=y,0},it=Bt,Gs=qc,At=Xc,Jw=Yw,Ki=Gw,Qw=0,gv=1,pv=2,mv=4,e1=5,Cn=6,Er=0,t1=1,r1=2,ft=-2,_v=-3,bv=-4,i1=-5,wv=8,yv=1,xv=2,Sv=3,Ev=4,Tv=5,Cv=6,Ov=7,Av=8,Iv=9,kv=10,On=11,$t=12,Js=13,Mv=14,Qs=15,Rv=16,Lv=17,Pv=18,Nv=19,An=20,In=21,Dv=22,Bv=23,Fv=24,$v=25,zv=26,el=27,Uv=28,Hv=29,Oe=30,Wv=31,a1=32,n1=852,o1=592,s1=15,l1=s1;function Vv(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}function u1(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new it.Buf16(320),this.work=new it.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function jv(e){var t;return!e||!e.state?ft:(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=yv,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new it.Buf32(n1),t.distcode=t.distdyn=new it.Buf32(o1),t.sane=1,t.back=-1,Er)}function Yv(e){var t;return!e||!e.state?ft:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,jv(e))}function qv(e,t){var r,i;return!e||!e.state||(i=e.state,t<0?(r=0,t=-t):(r=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15))?ft:(i.window!==null&&i.wbits!==t&&(i.window=null),i.wrap=r,i.wbits=t,Yv(e))}function Xv(e,t){var r,i;return e?(i=new u1,e.state=i,i.window=null,r=qv(e,t),r!==Er&&(e.state=null),r):ft}function f1(e){return Xv(e,l1)}var Zv=!0,tl,rl;function c1(e){if(Zv){var t;for(tl=new it.Buf32(512),rl=new it.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Ki(gv,e.lens,0,288,tl,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Ki(pv,e.lens,0,32,rl,0,e.work,{bits:5}),Zv=!1}e.lencode=tl,e.lenbits=9,e.distcode=rl,e.distbits=5}function Kv(e,t,r,i){var a,n=e.state;return n.window===null&&(n.wsize=1<=n.wsize?(it.arraySet(n.window,t,r-n.wsize,n.wsize,0),n.wnext=0,n.whave=n.wsize):(a=n.wsize-n.wnext,a>i&&(a=i),it.arraySet(n.window,t,r-i,a,n.wnext),i-=a,i?(it.arraySet(n.window,t,r-i,i,0),n.wnext=i,n.whave=n.wsize):(n.wnext+=a,n.wnext===n.wsize&&(n.wnext=0),n.whave>>8&255,r.check=At(r.check,O,2,0),l=0,f=0,r.mode=xv;break}if(r.flags=0,r.head&&(r.head.done=!1),!(r.wrap&1)||(((l&255)<<8)+(l>>8))%31){e.msg="incorrect header check",r.mode=Oe;break}if((l&15)!==wv){e.msg="unknown compression method",r.mode=Oe;break}if(l>>>=4,f-=4,E=(l&15)+8,r.wbits===0)r.wbits=E;else if(E>r.wbits){e.msg="invalid window size",r.mode=Oe;break}r.dmax=1<>8&1),r.flags&512&&(O[0]=l&255,O[1]=l>>>8&255,r.check=At(r.check,O,2,0)),l=0,f=0,r.mode=Sv;case Sv:for(;f<32;){if(s===0)break e;s--,l+=i[n++]<>>8&255,O[2]=l>>>16&255,O[3]=l>>>24&255,r.check=At(r.check,O,4,0)),l=0,f=0,r.mode=Ev;case Ev:for(;f<16;){if(s===0)break e;s--,l+=i[n++]<>8),r.flags&512&&(O[0]=l&255,O[1]=l>>>8&255,r.check=At(r.check,O,2,0)),l=0,f=0,r.mode=Tv;case Tv:if(r.flags&1024){for(;f<16;){if(s===0)break e;s--,l+=i[n++]<>>8&255,r.check=At(r.check,O,2,0)),l=0,f=0}else r.head&&(r.head.extra=null);r.mode=Cv;case Cv:if(r.flags&1024&&(h=r.length,h>s&&(h=s),h&&(r.head&&(E=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),it.arraySet(r.head.extra,i,n,h,E)),r.flags&512&&(r.check=At(r.check,i,h,n)),s-=h,n+=h,r.length-=h),r.length))break e;r.length=0,r.mode=Ov;case Ov:if(r.flags&2048){if(s===0)break e;h=0;do E=i[n+h++],r.head&&E&&r.length<65536&&(r.head.name+=String.fromCharCode(E));while(E&&h>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=$t;break;case kv:for(;f<32;){if(s===0)break e;s--,l+=i[n++]<>>=f&7,f-=f&7,r.mode=el;break}for(;f<3;){if(s===0)break e;s--,l+=i[n++]<>>=1,f-=1,l&3){case 0:r.mode=Mv;break;case 1:if(c1(r),r.mode=An,t===Cn){l>>>=2,f-=2;break e}break;case 2:r.mode=Lv;break;case 3:e.msg="invalid block type",r.mode=Oe}l>>>=2,f-=2;break;case Mv:for(l>>>=f&7,f-=f&7;f<32;){if(s===0)break e;s--,l+=i[n++]<>>16^65535)){e.msg="invalid stored block lengths",r.mode=Oe;break}if(r.length=l&65535,l=0,f=0,r.mode=Qs,t===Cn)break e;case Qs:r.mode=Rv;case Rv:if(h=r.length,h){if(h>s&&(h=s),h>u&&(h=u),h===0)break e;it.arraySet(a,i,n,h,o),s-=h,n+=h,u-=h,o+=h,r.length-=h;break}r.mode=$t;break;case Lv:for(;f<14;){if(s===0)break e;s--,l+=i[n++]<>>=5,f-=5,r.ndist=(l&31)+1,l>>>=5,f-=5,r.ncode=(l&15)+4,l>>>=4,f-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=Oe;break}r.have=0,r.mode=Pv;case Pv:for(;r.have>>=3,f-=3}for(;r.have<19;)r.lens[U[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,M={bits:r.lenbits},C=Ki(Qw,r.lens,0,19,r.lencode,0,r.work,M),r.lenbits=M.bits,C){e.msg="invalid code lengths set",r.mode=Oe;break}r.have=0,r.mode=Nv;case Nv:for(;r.have>>24,_=w>>>16&255,c=w&65535,!(g<=f);){if(s===0)break e;s--,l+=i[n++]<>>=g,f-=g,r.lens[r.have++]=c;else{if(c===16){for(R=g+2;f>>=g,f-=g,r.have===0){e.msg="invalid bit length repeat",r.mode=Oe;break}E=r.lens[r.have-1],h=3+(l&3),l>>>=2,f-=2}else if(c===17){for(R=g+3;f>>=g,f-=g,E=0,h=3+(l&7),l>>>=3,f-=3}else{for(R=g+7;f>>=g,f-=g,E=0,h=11+(l&127),l>>>=7,f-=7}if(r.have+h>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=Oe;break}for(;h--;)r.lens[r.have++]=E}}if(r.mode===Oe)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=Oe;break}if(r.lenbits=9,M={bits:r.lenbits},C=Ki(gv,r.lens,0,r.nlen,r.lencode,0,r.work,M),r.lenbits=M.bits,C){e.msg="invalid literal/lengths set",r.mode=Oe;break}if(r.distbits=6,r.distcode=r.distdyn,M={bits:r.distbits},C=Ki(pv,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,M),r.distbits=M.bits,C){e.msg="invalid distances set",r.mode=Oe;break}if(r.mode=An,t===Cn)break e;case An:r.mode=In;case In:if(s>=6&&u>=258){e.next_out=o,e.avail_out=u,e.next_in=n,e.avail_in=s,r.hold=l,r.bits=f,Jw(e,p),o=e.next_out,a=e.output,u=e.avail_out,n=e.next_in,i=e.input,s=e.avail_in,l=r.hold,f=r.bits,r.mode===$t&&(r.back=-1);break}for(r.back=0;w=r.lencode[l&(1<>>24,_=w>>>16&255,c=w&65535,!(g<=f);){if(s===0)break e;s--,l+=i[n++]<>v)],g=w>>>24,_=w>>>16&255,c=w&65535,!(v+g<=f);){if(s===0)break e;s--,l+=i[n++]<>>=v,f-=v,r.back+=v}if(l>>>=g,f-=g,r.back+=g,r.length=c,_===0){r.mode=zv;break}if(_&32){r.back=-1,r.mode=$t;break}if(_&64){e.msg="invalid literal/length code",r.mode=Oe;break}r.extra=_&15,r.mode=Dv;case Dv:if(r.extra){for(R=r.extra;f>>=r.extra,f-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=Bv;case Bv:for(;w=r.distcode[l&(1<>>24,_=w>>>16&255,c=w&65535,!(g<=f);){if(s===0)break e;s--,l+=i[n++]<>v)],g=w>>>24,_=w>>>16&255,c=w&65535,!(v+g<=f);){if(s===0)break e;s--,l+=i[n++]<>>=v,f-=v,r.back+=v}if(l>>>=g,f-=g,r.back+=g,_&64){e.msg="invalid distance code",r.mode=Oe;break}r.offset=c,r.extra=_&15,r.mode=Fv;case Fv:if(r.extra){for(R=r.extra;f>>=r.extra,f-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=Oe;break}r.mode=$v;case $v:if(u===0)break e;if(h=p-u,r.offset>h){if(h=r.offset-h,h>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=Oe;break}h>r.wnext?(h-=r.wnext,y=r.wsize-h):y=r.wnext-h,h>r.length&&(h=r.length),b=r.window}else b=a,y=o-r.offset,h=r.length;h>u&&(h=u),u-=h,r.length-=h;do a[o++]=b[y++];while(--h);r.length===0&&(r.mode=In);break;case zv:if(u===0)break e;a[o++]=r.length,u--,r.mode=In;break;case el:if(r.wrap){for(;f<32;){if(s===0)break e;s--,l|=i[n++]<=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15)===0&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new _1,this.strm.avail_out=0;var r=ri.inflateInit2(this.strm,t.windowBits);if(r!==Me.Z_OK)throw new Error(il[r]);if(this.header=new b1,ri.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=kn.string2buf(t.dictionary):Jv.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=ri.inflateSetDictionary(this.strm,t.dictionary),r!==Me.Z_OK)))throw new Error(il[r])}Tr.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,a=this.options.dictionary,n,o,s,u,l,f=!1;if(this.ended)return!1;o=t===~~t?t:t===!0?Me.Z_FINISH:Me.Z_NO_FLUSH,typeof e=="string"?r.input=kn.binstring2buf(e):Jv.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;do{if(r.avail_out===0&&(r.output=new Gi.Buf8(i),r.next_out=0,r.avail_out=i),n=ri.inflate(r,Me.Z_NO_FLUSH),n===Me.Z_NEED_DICT&&a&&(n=ri.inflateSetDictionary(this.strm,a)),n===Me.Z_BUF_ERROR&&f===!0&&(n=Me.Z_OK,f=!1),n!==Me.Z_STREAM_END&&n!==Me.Z_OK)return this.onEnd(n),this.ended=!0,!1;r.next_out&&(r.avail_out===0||n===Me.Z_STREAM_END||r.avail_in===0&&(o===Me.Z_FINISH||o===Me.Z_SYNC_FLUSH))&&(this.options.to==="string"?(s=kn.utf8border(r.output,r.next_out),u=r.next_out-s,l=kn.buf2string(r.output,s),r.next_out=u,r.avail_out=i-u,u&&Gi.arraySet(r.output,r.output,s,u,0),this.onData(l)):this.onData(Gi.shrinkBuf(r.output,r.next_out))),r.avail_in===0&&r.avail_out===0&&(f=!0)}while((r.avail_in>0||r.avail_out===0)&&n!==Me.Z_STREAM_END);return n===Me.Z_STREAM_END&&(o=Me.Z_FINISH),o===Me.Z_FINISH?(n=ri.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Me.Z_OK):(o===Me.Z_SYNC_FLUSH&&(this.onEnd(Me.Z_OK),r.avail_out=0),!0)},Tr.prototype.onData=function(e){this.chunks.push(e)},Tr.prototype.onEnd=function(e){e===Me.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Gi.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function al(e,t){var r=new Tr(t);if(r.push(e,!0),r.err)throw r.msg||il[r.err];return r.result}function w1(e,t){return t=t||{},t.raw=!0,al(e,t)}Zi.Inflate=Tr,Zi.inflate=al,Zi.inflateRaw=w1,Zi.ungzip=al;var y1=Bt.assign,x1=Di,S1=Zi,E1=Gv,Qv={};y1(Qv,x1,S1,E1);var ed=Qv,T1="upx2px",C1=1e-4,O1=750,td=!1,nl=0,rd=0,id=960,ad=375;function A1(){var{platform:e,pixelRatio:t,windowWidth:r}=Sc();nl=r,rd=t,td=e==="ios"}function nd(e,t){var r=Number(e);return isNaN(r)?t:r}function I1(){var e=__uniConfig.globalStyle||{};id=nd(e.rpxCalcMaxDeviceWidth,960),ad=nd(e.rpxCalcBaseDeviceWidth,375)}var od=Ob(T1,(e,t)=>{if(nl===0&&(A1(),I1()),e=Number(e),e===0)return 0;var r=t||nl;r=r<=id?r:ad;var i=e/O1*r;return i<0&&(i=-i),i=Math.floor(i+C1),i===0&&(rd===1||!td?i=1:i=.5),e<0?-i:i});new Lu;var k1=[{name:"id",type:String,required:!0}];k1.concat({name:"componentInstance",type:Object});var sd={};sd.f={}.propertyIsEnumerable;var M1=ui,R1=co,L1=wa,P1=sd.f,N1=function(e){return function(t){for(var r=L1(t),i=R1(r),a=i.length,n=0,o=[],s;a>n;)s=i[n++],(!M1||P1.call(r,s))&&o.push(e?[s,r[s]]:r[s]);return o}},ld=uo,D1=N1(!1);ld(ld.S,"Object",{values:function(t){return D1(t)}});var B1="setPageMeta",F1="loadFontFace",$1="pageScrollTo",z1=function(){if(typeof window!="object")return;if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}function e(c){try{return c.defaultView&&c.defaultView.frameElement||null}catch(v){return null}}var t=function(c){for(var v=c,m=e(v);m;)v=m.ownerDocument,m=e(v);return v}(window.document),r=[],i=null,a=null;function n(c){this.time=c.time,this.target=c.target,this.rootBounds=y(c.rootBounds),this.boundingClientRect=y(c.boundingClientRect),this.intersectionRect=y(c.intersectionRect||h()),this.isIntersecting=!!c.intersectionRect;var v=this.boundingClientRect,m=v.width*v.height,x=this.intersectionRect,E=x.width*x.height;m?this.intersectionRatio=Number((E/m).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function o(c,v){var m=v||{};if(typeof c!="function")throw new Error("callback must be a function");if(m.root&&m.root.nodeType!=1&&m.root.nodeType!=9)throw new Error("root must be a Document or Element");this._checkForIntersections=u(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=c,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(m.rootMargin),this.thresholds=this._initThresholds(m.threshold),this.root=m.root||null,this.rootMargin=this._rootMarginValues.map(function(x){return x.value+x.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}o.prototype.THROTTLE_TIMEOUT=100,o.prototype.POLL_INTERVAL=null,o.prototype.USE_MUTATION_OBSERVER=!0,o._setupCrossOriginUpdater=function(){return i||(i=function(c,v){!c||!v?a=h():a=b(c,v),r.forEach(function(m){m._checkForIntersections()})}),i},o._resetCrossOriginUpdater=function(){i=null,a=null},o.prototype.observe=function(c){var v=this._observationTargets.some(function(m){return m.element==c});if(!v){if(!(c&&c.nodeType==1))throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:c,entry:null}),this._monitorIntersections(c.ownerDocument),this._checkForIntersections()}},o.prototype.unobserve=function(c){this._observationTargets=this._observationTargets.filter(function(v){return v.element!=c}),this._unmonitorIntersections(c.ownerDocument),this._observationTargets.length==0&&this._unregisterInstance()},o.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},o.prototype.takeRecords=function(){var c=this._queuedEntries.slice();return this._queuedEntries=[],c},o.prototype._initThresholds=function(c){var v=c||[0];return Array.isArray(v)||(v=[v]),v.sort().filter(function(m,x,E){if(typeof m!="number"||isNaN(m)||m<0||m>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return m!==E[x-1]})},o.prototype._parseRootMargin=function(c){var v=c||"0px",m=v.split(/\s+/).map(function(x){var E=/^(-?\d*\.?\d+)(px|%)$/.exec(x);if(!E)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(E[1]),unit:E[2]}});return m[1]=m[1]||m[0],m[2]=m[2]||m[0],m[3]=m[3]||m[1],m},o.prototype._monitorIntersections=function(c){var v=c.defaultView;if(!!v&&this._monitoringDocuments.indexOf(c)==-1){var m=this._checkForIntersections,x=null,E=null;this.POLL_INTERVAL?x=v.setInterval(m,this.POLL_INTERVAL):(l(v,"resize",m,!0),l(c,"scroll",m,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in v&&(E=new v.MutationObserver(m),E.observe(c,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))),this._monitoringDocuments.push(c),this._monitoringUnsubscribes.push(function(){var M=c.defaultView;M&&(x&&M.clearInterval(x),f(M,"resize",m,!0)),f(c,"scroll",m,!0),E&&E.disconnect()});var C=this.root&&(this.root.ownerDocument||this.root)||t;if(c!=C){var O=e(c);O&&this._monitorIntersections(O.ownerDocument)}}},o.prototype._unmonitorIntersections=function(c){var v=this._monitoringDocuments.indexOf(c);if(v!=-1){var m=this.root&&(this.root.ownerDocument||this.root)||t,x=this._observationTargets.some(function(O){var M=O.element.ownerDocument;if(M==c)return!0;for(;M&&M!=m;){var R=e(M);if(M=R&&R.ownerDocument,M==c)return!0}return!1});if(!x){var E=this._monitoringUnsubscribes[v];if(this._monitoringDocuments.splice(v,1),this._monitoringUnsubscribes.splice(v,1),E(),c!=m){var C=e(c);C&&this._unmonitorIntersections(C.ownerDocument)}}}},o.prototype._unmonitorAllIntersections=function(){var c=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var v=0;v=0&&M>=0&&{top:m,bottom:x,left:E,right:C,width:O,height:M}||null}function p(c){var v;try{v=c.getBoundingClientRect()}catch(m){}return v?(v.width&&v.height||(v={top:v.top,right:v.right,bottom:v.bottom,left:v.left,width:v.right-v.left,height:v.bottom-v.top}),v):h()}function h(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function y(c){return!c||"x"in c?c:{top:c.top,y:c.top,bottom:c.bottom,left:c.left,x:c.left,right:c.right,width:c.width,height:c.height}}function b(c,v){var m=v.top-c.top,x=v.left-c.left;return{top:m,left:x,height:v.height,width:v.width,bottom:m+v.height,right:x+v.width}}function w(c,v){for(var m=v;m;){if(m==c)return!0;m=g(m)}return!1}function g(c){var v=c.parentNode;return c.nodeType==9&&c!=t?e(c):(v&&v.assignedSlot&&(v=v.assignedSlot.parentNode),v&&v.nodeType==11&&v.host?v.host:v)}function _(c){return c&&c.nodeType===9}window.IntersectionObserver=o,window.IntersectionObserverEntry=n};function ol(e){var{bottom:t,height:r,left:i,right:a,top:n,width:o}=e||{};return{bottom:t,height:r,left:i,right:a,top:n,width:o}}function U1(e){var{intersectionRatio:t,boundingClientRect:{height:r,width:i},intersectionRect:{height:a,width:n}}=e;return t!==0?t:a===r?n/i:a/r}function H1(e,t,r){z1();var i=t.relativeToSelector?e.querySelector(t.relativeToSelector):null,a=new IntersectionObserver(u=>{u.forEach(l=>{r({intersectionRatio:U1(l),intersectionRect:ol(l.intersectionRect),boundingClientRect:ol(l.boundingClientRect),relativeRect:ol(l.rootBounds),time:Date.now(),dataset:Ro(l.target),id:l.target.id})})},{root:i,rootMargin:t.rootMargin,threshold:t.thresholds});if(t.observeAll){a.USE_MUTATION_OBSERVER=!0;for(var n=e.querySelectorAll(t.selector),o=0;o{var i=450,a=44;clearTimeout(t),e&&Math.abs(r.pageX-e.pageX)<=a&&Math.abs(r.pageY-e.pageY)<=a&&r.timeStamp-e.timeStamp<=i&&r.preventDefault(),e=r,t=setTimeout(()=>{e=null},i)})}}function K1(e){if(!e.length)return r=>r;var t=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(typeof r=="number")return e[r];var a={};return r.forEach(n=>{var[o,s]=n;i?a[t(o)]=t(s):a[t(o)]=s}),a};return t}function ud(e,t){if(!!t)return t.a&&(t.a=e(t.a)),t.e&&(t.e=e(t.e,!1)),t.w&&(t.w=G1(t.w,e)),t.s&&(t.s=e(t.s)),t.t&&(t.t=e(t.t)),t}function G1(e,t){var r={};return e.forEach(i=>{var[a,[n,o]]=i;r[t(a)]=[t(n),o]}),r}function J1(e,t){return e.priority=t,e}var sl=new Set,Q1=1,Mn=2,fd=3,cd=4;function zt(e,t){sl.add(J1(e,t))}function ey(){try{[...sl].sort((e,t)=>e.priority-t.priority).forEach(e=>e())}finally{sl.clear()}}function vd(e,t){var r=window["__"+kp],i=r&&r[e];if(i)return i;if(t&&t.__renderjsInstances)return t.__renderjsInstances[e]}var ty=Su.length;function ry(e,t,r){var[i,a,n,o]=ul(t),s=ll(e,i);if(ne(r)||ne(o)){var[u,l]=n.split(".");return fl(s,a,u,l,r||o)}return ny(s,a,n)}function iy(e,t,r){var[i,a,n]=ul(t),[o,s]=n.split("."),u=ll(e,i);return fl(u,a,o,s,[sy(r,e),Ni(qr(u))])}function ll(e,t){if(e.__ownerId===t)return e;for(var r=e.parentElement;r;){if(r.__ownerId===t)return r;r=r.parentElement}return e}function ul(e){return JSON.parse(e.substr(ty))}function ay(e,t,r,i){var[a,n,o]=ul(e),s=ll(t,a),[u,l]=o.split(".");return fl(s,n,u,l,[r,i,Ni(qr(s)),Ni(qr(t))])}function fl(e,t,r,i,a){var n=vd(t,e);if(!n)return console.error(ko("wxs","module "+r+" not found"));var o=n[i];return se(o)?o.apply(n,a):console.error(r+"."+i+" is not a function")}function ny(e,t,r){var i=vd(t,e);return i?Tu(i,r.substr(r.indexOf(".")+1)):console.error(ko("wxs","module "+r+" not found"))}function oy(e,t,r){var i=r;return a=>{try{ay(t,e.$,a,i)}catch(n){console.error(n)}i=a}}function sy(e,t){var r=qr(t);return Object.defineProperty(e,"instance",{get(){return Ni(r)}}),e}function dd(e,t){Object.keys(t).forEach(r=>{uy(e,t[r])})}function ly(e){var{__renderjsInstances:t}=e.$;!t||Object.keys(t).forEach(r=>{t[r].$.appContext.app.unmount()})}function uy(e,t){var r=fy(t);if(!!r){var i=e.$;(i.__renderjsInstances||(i.__renderjsInstances={}))[t]=cy(i,r)}}function fy(e){var t=window["__"+Mp],r=t&&t[e];return r||console.error(ko("renderjs",e+" not found"))}function cy(e,t){return t=t.default||t,t.render=()=>{},sc(t).mixin({mounted(){this.$ownerInstance=Ni(qr(e))}}).mount(document.createElement("div"))}class ii{constructor(t,r,i,a){this.isMounted=!1,this.isUnmounted=!1,this.$hasWxsProps=!1,this.$children=[],this.id=t,this.tag=r,this.pid=i,a&&(this.$=a),this.$wxsProps=new Map;var n=this.$parent=xT(i);n&&n.appendUniChild(this)}init(t){ie(t,"t")&&(this.$.textContent=t.t)}setText(t){this.$.textContent=t}insert(t,r,i){i&&this.init(i,!1);var a=this.$,n=Ke(t);r===-1?n.appendChild(a):n.insertBefore(a,Ke(r).$),this.isMounted=!0}remove(){this.removeUniParent();var{$:t}=this;t.parentNode.removeChild(t),this.isUnmounted=!0,Oh(this.id),ly(this),this.removeUniChildren()}appendChild(t){return this.$.appendChild(t)}insertBefore(t,r){return this.$.insertBefore(t,r)}appendUniChild(t){this.$children.push(t)}removeUniChild(t){var r=this.$children.indexOf(t);r>=0&&this.$children.splice(r,1)}removeUniParent(){var{$parent:t}=this;t&&(t.removeUniChild(this),this.$parent=void 0)}removeUniChildren(){this.$children.forEach(t=>t.remove()),this.$children.length=0}setWxsProps(t){Object.keys(t).forEach(r=>{if(r.indexOf(Bo)===0){var i=r.replace(Bo,""),a=t[i],n=oy(this,t[r],a);zt(()=>n(a),cd),this.$wxsProps.set(r,n),delete t[r],delete t[i],this.$hasWxsProps=!0}})}addWxsEvents(t){Object.keys(t).forEach(r=>{var[i,a]=t[r];this.addWxsEvent(r,i,a)})}addWxsEvent(t,r,i){}wxsPropsInvoke(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=this.$hasWxsProps&&this.$wxsProps.get(Bo+t);if(a)return zt(()=>i?Ur(()=>a(r)):a(r),cd),!0}}function hd(e,t){var{__wxsAddClass:r,__wxsRemoveClass:i}=e;i&&i.length&&(t=t.split(/\s+/).filter(a=>i.indexOf(a)===-1).join(" "),i.length=0),r&&r.length&&(t=t+" "+r.join(" ")),e.className=t}function cl(e){return dy(Vr(e,!0))}var vy=/url\(\s*'?"?([a-zA-Z0-9\.\-\_\/]+\.(jpg|gif|png))"?'?\s*\)/,dy=e=>{if(Ee(e)&&e.indexOf("url(")!==-1){var t=e.match(vy);t&&t.length===3&&(e=e.replace(t[1],st(t[1])))}return e},gd=["Webkit"],vl={};function pd(e,t){var r=vl[t];if(r)return r;var i=Ht(t);if(i!=="filter"&&i in e)return vl[t]=i;i=Co(i);for(var a=0;adl(e,t,a));else if(r=cl(r),t.startsWith("--"))e.setProperty(t,r);else{var i=pd(e,t);_d.test(r)?e.setProperty(Je(i),r.replace(_d,""),"important"):e[i]=r}}var hy=Eu.length;function hl(e,t){return Ee(t)&&(t.indexOf(Eu)===0?t=JSON.parse(t.substr(hy)):t.indexOf(Su)===0&&(t=ry(e,t))),t}function Rn(e){return e.indexOf("--")===0}function gy(e){return!!e.addWxsEvent}function bd(e,t){var r=e.__listeners[t];r&&e.removeEventListener(t,r)}function wd(e,t){if(e.__listeners[t])return!0}function yd(e,t,r){var[i,a]=Po(t);r===-1?bd(e,i):wd(e,i)||e.addEventListener(i,e.__listeners[i]=xd(e.__id,r,a),a)}function xd(e,t,r){var i=a=>{var[n]=_c(a);n.type=jp(a.type,r),UniViewJSBridge.publishHandler(yc,[[nm,e,n]])};return t?ys(i,Sd(t)):i}function Sd(e){var t=[];return e&No.prevent&&t.push("prevent"),e&No.self&&t.push("self"),e&No.stop&&t.push("stop"),t}function py(e,t,r,i){var[a,n]=Po(t);i===-1?bd(e,a):wd(e,a)||e.addEventListener(a,e.__listeners[a]=Ed(e,r,i),n)}function Ed(e,t,r){var i=a=>{iy(gy(e)?e.$:e,t,_c(a)[0])};return r?ys(i,Sd(r)):i}function gl(e,t){e._vod=e.style.display==="none"?"":e.style.display,e.style.display=t?e._vod:"none"}class Td extends ii{constructor(t,r,i,a,n){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[];super(t,r.tagName,i,r);this.$props=ke({}),this.$.__id=t,this.$.__listeners=Object.create(null),this.$propNames=o,this._update=this.update.bind(this),this.init(n),this.insert(i,a)}init(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;ie(t,"a")&&this.setAttrs(t.a),ie(t,"s")&&this.setAttr("style",t.s),ie(t,"e")&&this.addEvents(t.e),ie(t,"w")&&this.addWxsEvents(t.w),super.init(t),r&&(W(this.$props,()=>{zt(this._update,Q1)},{flush:"sync"}),this.update(!0))}setAttrs(t){this.setWxsProps(t),Object.keys(t).forEach(r=>{this.setAttr(r,t[r])})}addEvents(t){Object.keys(t).forEach(r=>{this.addEvent(r,t[r])})}addWxsEvent(t,r,i){py(this.$,t,r,i)}addEvent(t,r){yd(this.$,t,r)}removeEvent(t){yd(this.$,t,-1)}setAttr(t,r){t===Au?hd(this.$,r):t===Do?md(this.$,r):t===Da?gl(this.$,r):t===Iu?this.$.__ownerId=r:t===ku?zt(()=>dd(this,r),fd):t===Yp?this.$.innerHTML=r:t===qp?this.setText(r):this.setAttribute(t,r)}removeAttr(t){t===Au?hd(this.$,""):t===Do?md(this.$,""):this.removeAttribute(t)}setAttribute(t,r){r=hl(this.$,r),this.$propNames.indexOf(t)!==-1?this.$props[t]=r:Rn(t)?this.$.style.setProperty(t,r):this.wxsPropsInvoke(t,r)||this.$.setAttribute(t,r)}removeAttribute(t){this.$propNames.indexOf(t)!==-1?delete this.$props[t]:Rn(t)?this.$.style.removeProperty(t):this.$.removeAttribute(t)}update(){}}class my extends ii{constructor(t,r,i){super(t,"#comment",r,document.createComment(""));this.insert(r,i)}}var GT="";function Cd(e){return/^-?\d+[ur]px$/i.test(e)?e.replace(/(^-?\d+)[ur]px$/i,(t,r)=>"".concat(uni.upx2px(parseFloat(r)),"px")):/^-?[\d\.]+$/.test(e)?"".concat(e,"px"):e||""}function _y(e){return e.replace(/[A-Z]/g,t=>"-".concat(t.toLowerCase())).replace("webkit","-webkit")}function by(e){var t=["matrix","matrix3d","scale","scale3d","rotate3d","skew","translate","translate3d"],r=["scaleX","scaleY","scaleZ","rotate","rotateX","rotateY","rotateZ","skewX","skewY","translateX","translateY","translateZ"],i=["opacity","background-color"],a=["width","height","left","right","top","bottom"],n=e.animates,o=e.option,s=o.transition,u={},l=[];return n.forEach(f=>{var d=f.type,p=[...f.args];if(t.concat(r).includes(d))d.startsWith("rotate")||d.startsWith("skew")?p=p.map(y=>parseFloat(y)+"deg"):d.startsWith("translate")&&(p=p.map(Cd)),r.indexOf(d)>=0&&(p.length=1),l.push("".concat(d,"(").concat(p.join(","),")"));else if(i.concat(a).includes(p[0])){d=p[0];var h=p[1];u[d]=a.includes(d)?Cd(h):h}}),u.transform=u.webkitTransform=l.join(" "),u.transition=u.webkitTransition=Object.keys(u).map(f=>"".concat(_y(f)," ").concat(s.duration,"ms ").concat(s.timingFunction," ").concat(s.delay,"ms")).join(","),u.transformOrigin=u.webkitTransformOrigin=o.transformOrigin,u}function Od(e){var t=e.animation;if(!t||!t.actions||!t.actions.length)return;var r=0,i=t.actions,a=t.actions.length;function n(){var o=i[r],s=o.option.transition,u=by(o);Object.keys(u).forEach(l=>{e.$el.style[l]=u[l]}),r+=1,r{n()},0)}var Ln={props:["animation"],watch:{animation:{deep:!0,handler(){Od(this)}}},mounted(){Od(this)}},de=e=>{e.__reserved=!0;var{props:t,mixins:r}=e;return(!t||!t.animation)&&(r||(e.mixins=[])).push(Ln),wy(e)},wy=e=>(e.__reserved=!0,e.compatConfig={MODE:3},D0(e)),yy={hoverClass:{type:String,default:"none"},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:400}};function pl(e){var t=F(!1),r=!1,i,a;function n(){requestAnimationFrame(()=>{clearTimeout(a),a=setTimeout(()=>{t.value=!1},parseInt(e.hoverStayTime))})}function o(l){l._hoverPropagationStopped||!e.hoverClass||e.hoverClass==="none"||e.disabled||l.touches.length>1||(e.hoverStopPropagation&&(l._hoverPropagationStopped=!0),r=!0,i=setTimeout(()=>{t.value=!0,r||n()},parseInt(e.hoverStartTime)))}function s(){r=!1,t.value&&n()}function u(){r=!1,t.value=!1,clearTimeout(i)}return{hovering:t,binding:{onTouchstartPassive:o,onTouchend:s,onTouchcancel:u}}}function ai(e,t){return Ee(t)&&(t=[t]),t.reduce((r,i)=>(e[i]&&(r[i]=!0),r),Object.create(null))}function Cr(e){return e.__wwe=!0,e}function Le(e,t){return(r,i,a)=>{e.value&&t(r,Sy(r,i,e.value,a||{}))}}function xy(e){return(t,r)=>{e(t,bc(r))}}function Sy(e,t,r,i){var a=Lo(r);return{type:i.type||e,timeStamp:t.timeStamp||0,target:a,currentTarget:a,detail:i}}var It=cn("uf"),Ey=de({name:"Form",emits:["submit","reset"],setup(e,t){var{slots:r,emit:i}=t,a=F(null);return Ty(Le(a,i)),()=>I("uni-form",{ref:a},[I("span",null,[r.default&&r.default()])],512)}});function Ty(e){var t=[];return ze(It,{addField(r){t.push(r)},removeField(r){t.splice(t.indexOf(r),1)},submit(r){e("submit",r,{value:t.reduce((i,a)=>{if(a.submit){var[n,o]=a.submit();n&&(i[n]=o)}return i},Object.create(null))})},reset(r){t.forEach(i=>i.reset&&i.reset()),e("reset",r)}}),t}var Cy={for:{type:String,default:""}},Ji=cn("ul");function Oy(){var e=[];return ze(Ji,{addHandler(t){e.push(t)},removeHandler(t){e.splice(e.indexOf(t),1)}}),e}var Ay=de({name:"Label",props:Cy,setup(e,t){var{slots:r}=t,i=hn(),a=Oy(),n=ee(()=>e.for||r.default&&r.default.length),o=Cr(s=>{var u=s.target,l=/^uni-(checkbox|radio|switch)-/.test(u.className);l||(l=/^uni-(checkbox|radio|switch|button)$|^(svg|path)$/i.test(u.tagName)),!l&&(e.for?UniViewJSBridge.emit("uni-label-click-"+i+"-"+e.for,s,!0):a.length&&a[0](s,!0))});return()=>I("uni-label",{class:{"uni-label-pointer":n},onClick:o},[r.default&&r.default()],10,["onClick"])}});function Pn(e,t){Ad(e.id,t),W(()=>e.id,(r,i)=>{Id(i,t,!0),Ad(r,t,!0)}),Zt(()=>{Id(e.id,t)})}function Ad(e,t,r){var i=hn();r&&!e||!mt(t)||Object.keys(t).forEach(a=>{r?a.indexOf("@")!==0&&a.indexOf("uni-")!==0&&UniViewJSBridge.on("uni-".concat(a,"-").concat(i,"-").concat(e),t[a]):a.indexOf("uni-")===0?UniViewJSBridge.on(a,t[a]):e&&UniViewJSBridge.on("uni-".concat(a,"-").concat(i,"-").concat(e),t[a])})}function Id(e,t,r){var i=hn();r&&!e||!mt(t)||Object.keys(t).forEach(a=>{r?a.indexOf("@")!==0&&a.indexOf("uni-")!==0&&UniViewJSBridge.off("uni-".concat(a,"-").concat(i,"-").concat(e),t[a]):a.indexOf("uni-")===0?UniViewJSBridge.off(a,t[a]):e&&UniViewJSBridge.off("uni-".concat(a,"-").concat(i,"-").concat(e),t[a])})}var Iy={id:{type:String,default:""},hoverClass:{type:String,default:"button-hover"},hoverStartTime:{type:[Number,String],default:20},hoverStayTime:{type:[Number,String],default:70},hoverStopPropagation:{type:Boolean,default:!1},disabled:{type:[Boolean,String],default:!1},formType:{type:String,default:""},openType:{type:String,default:""},loading:{type:[Boolean,String],default:!1},plain:{type:[Boolean,String],default:!1}},ky=de({name:"Button",props:Iy,setup(e,t){var{slots:r}=t,i=F(null);Tm();var a=_e(It,!1),{hovering:n,binding:o}=pl(e),{t:s}=Qe(),u=Cr((f,d)=>{if(e.disabled)return f.stopImmediatePropagation();d&&i.value.click();var p=e.formType;if(p){if(!a)return;p==="submit"?a.submit(f):p==="reset"&&a.reset(f);return}e.openType==="feedback"&&My(s("uni.button.feedback.title"),s("uni.button.feedback.send"))}),l=_e(Ji,!1);return l&&(l.addHandler(u),Ce(()=>{l.removeHandler(u)})),Pn(e,{"label-click":u}),()=>{var f=e.hoverClass,d=ai(e,"disabled"),p=ai(e,"loading"),h=ai(e,"plain"),y=f&&f!=="none";return I("uni-button",rt({ref:i,onClick:u,class:y&&n.value?f:""},y&&o,d,p,h),[r.default&&r.default()],16,["onClick"])}}});function My(e,t){var r=plus.webview.create("https://service.dcloud.net.cn/uniapp/feedback.html","feedback",{titleNView:{titleText:e,autoBackButton:!0,backgroundColor:"#F7F7F7",titleColor:"#007aff",buttons:[{text:t,color:"#007aff",fontSize:"16px",fontWeight:"bold",onclick:function(){r.evalJS('typeof mui !== "undefined" && mui.trigger(document.getElementById("submit"),"tap")')}}]}});r.show("slide-in-right")}var Or=de({name:"ResizeSensor",props:{initial:{type:Boolean,default:!1}},emits:["resize"],setup(e,t){var{emit:r}=t,i=F(null),a=Ly(i),n=Ry(i,r,a);return Py(i,e,n,a),()=>I("uni-resize-sensor",{ref:i,onAnimationstartOnce:n},[I("div",{onScroll:n},[I("div",null,null)],40,["onScroll"]),I("div",{onScroll:n},[I("div",null,null)],40,["onScroll"])],40,["onAnimationstartOnce"])}});function Ry(e,t,r){var i=ke({width:-1,height:-1});return W(()=>ce({},i),a=>t("resize",a)),()=>{var a=e.value;i.width=a.offsetWidth,i.height=a.offsetHeight,r()}}function Ly(e){return()=>{var{firstElementChild:t,lastElementChild:r}=e.value;t.scrollLeft=1e5,t.scrollTop=1e5,r.scrollLeft=1e5,r.scrollTop=1e5}}function Py(e,t,r,i){ls(i),Re(()=>{t.initial&&Ur(r);var a=e.value;a.offsetParent!==a.parentElement&&(a.parentElement.style.position="relative"),"AnimationEvent"in window||i()})}var ye=function(){var e=document.createElement("canvas");e.height=e.width=0;var t=e.getContext("2d"),r=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/r}();function kd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;e.width=e.offsetWidth*(t?ye:1),e.height=e.offsetHeight*(t?ye:1),e.getContext("2d").__hidpi__=t}var Md=!1;function Ny(){if(!Md){Md=!0;var e=function(i,a){for(var n in i)ie(i,n)&&a(i[n],n)},t={fillRect:"all",clearRect:"all",strokeRect:"all",moveTo:"all",lineTo:"all",arc:[0,1,2],arcTo:"all",bezierCurveTo:"all",isPointinPath:"all",isPointinStroke:"all",quadraticCurveTo:"all",rect:"all",translate:"all",createRadialGradient:"all",createLinearGradient:"all",setTransform:[4,5]},r=CanvasRenderingContext2D.prototype;r.drawImageByCanvas=function(i){return function(a,n,o,s,u,l,f,d,p,h){if(!this.__hidpi__)return i.apply(this,arguments);n*=ye,o*=ye,s*=ye,u*=ye,l*=ye,f*=ye,d=h?d*ye:d,p=h?p*ye:p,i.call(this,a,n,o,s,u,l,f,d,p)}}(r.drawImage),ye!==1&&(e(t,function(i,a){r[a]=function(n){return function(){if(!this.__hidpi__)return n.apply(this,arguments);var o=Array.prototype.slice.call(arguments);if(i==="all")o=o.map(function(u){return u*ye});else if(Array.isArray(i))for(var s=0;sNy());function Rd(e){return e&&st(e)}function Nn(e){return e=e.slice(0),e[3]=e[3]/255,"rgba("+e.join(",")+")"}function Ld(e,t){var r=e;return Array.from(t).map(i=>{var a=r.getBoundingClientRect();return{identifier:i.identifier,x:i.clientX-a.left,y:i.clientY-a.top}})}var Qi;function Pd(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Qi||(Qi=document.createElement("canvas")),Qi.width=e,Qi.height=t,Qi}var By={canvasId:{type:String,default:""},disableScroll:{type:[Boolean,String],default:!1},hidpi:{type:Boolean,default:!0}},Fy=de({inheritAttrs:!1,name:"Canvas",compatConfig:{MODE:3},props:By,computed:{id(){return this.canvasId}},setup(e,t){var{emit:r,slots:i}=t;Dy();var a=F(null),n=F(null),o=F(!1),s=xy(r),{$attrs:u,$excludeAttrs:l,$listeners:f}=Qd({excludeListeners:!0}),{_listeners:d}=$y(e,f,s),{_handleSubscribe:p,_resize:h}=zy(e,a,o);return sa(p,la(e.canvasId),!0),Re(()=>{h()}),()=>{var{canvasId:y,disableScroll:b}=e;return I("uni-canvas",rt({"canvas-id":y,"disable-scroll":b},u.value,l.value,d.value),[I("canvas",{ref:a,class:"uni-canvas-canvas",width:"300",height:"150"},null,512),I("div",{style:"position: absolute;top: 0;left: 0;width: 100%;height: 100%;overflow: hidden;"},[i.default&&i.default()]),I(Or,{ref:n,onResize:h},null,8,["onResize"])],16,["canvas-id","disable-scroll"])}}});function $y(e,t,r){var i=ee(()=>{var a=["onTouchstart","onTouchmove","onTouchend"],n=t.value,o=ce({},(()=>{var s={};for(var u in n)if(Object.prototype.hasOwnProperty.call(n,u)){var l=n[u];s[u]=l}return s})());return a.forEach(s=>{var u=o[s],l=[];u&&l.push(Cr(f=>{r(s.replace("on","").toLocaleLowerCase(),ce({},(()=>{var d={};for(var p in f)d[p]=f[p];return d})(),{touches:Ld(f.currentTarget,f.touches),changedTouches:Ld(f.currentTarget,f.changedTouches)}))})),e.disableScroll&&s==="onTouchmove"&&l.push(fc),o[s]=l}),o});return{_listeners:i}}function zy(e,t,r){var i=[],a={},n=ee(()=>e.hidpi?ye:1);function o(b){var w=t.value,g=!b||w.width!==Math.floor(b.width*n.value)||w.height!==Math.floor(b.height*n.value);if(!!g)if(w.width>0&&w.height>0){var _=w.getContext("2d"),c=_.getImageData(0,0,w.width,w.height);kd(w,e.hidpi),_.putImageData(c,0,0)}else kd(w,e.hidpi)}function s(b,w){var{actions:g,reserve:_}=b;if(!!g){if(r.value){i.push([g,_]);return}var c=t.value,v=c.getContext("2d");_||(v.fillStyle="#000000",v.strokeStyle="#000000",v.shadowColor="#000000",v.shadowBlur=0,v.shadowOffsetX=0,v.shadowOffsetY=0,v.setTransform(1,0,0,1,0,0),v.clearRect(0,0,c.width,c.height)),u(g);for(var m=function(C){var O=g[C],M=O.method,R=O.data,U=R[0];if(/^set/.test(M)&&M!=="setTransform"){var te=M[3].toLowerCase()+M.slice(4),L;if(te==="fillStyle"||te==="strokeStyle"){if(U==="normal")L=Nn(R[1]);else if(U==="linear"){var H=v.createLinearGradient(...R[1]);R[2].forEach(function(J){var xe=J[0],we=Nn(J[1]);H.addColorStop(xe,we)}),L=H}else if(U==="radial"){var q=R[1],re=q[0],V=q[1],K=q[2],ae=v.createRadialGradient(re,V,0,re,V,K);R[2].forEach(function(J){var xe=J[0],we=Nn(J[1]);ae.addColorStop(xe,we)}),L=ae}else if(U==="pattern"){var Te=l(R[1],g.slice(C+1),w,function(J){J&&(v[te]=v.createPattern(J,R[2]))});return Te?"continue":"break"}v[te]=L}else if(te==="globalAlpha")v[te]=Number(U)/255;else if(te==="shadow"){var oe=["shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor"];R.forEach(function(J,xe){v[oe[xe]]=oe[xe]==="shadowColor"?Nn(J):J})}else if(te==="fontSize"){var he=v.__font__||v.font;v.__font__=v.font=he.replace(/\d+\.?\d*px/,U+"px")}else te==="lineDash"?(v.setLineDash(U),v.lineDashOffset=R[1]||0):te==="textBaseline"?(U==="normal"&&(R[0]="alphabetic"),v[te]=U):te==="font"?v.__font__=v.font=U:v[te]=U}else if(M==="fillPath"||M==="strokePath")M=M.replace(/Path/,""),v.beginPath(),R.forEach(function(J){v[J.method].apply(v,J.data)}),v[M]();else if(M==="fillText")v.fillText.apply(v,R);else if(M==="drawImage"){var le=function(){var J=[...R],xe=J[0],we=J.slice(1);if(a=a||{},l(xe,g.slice(C+1),w,function(Ve){Ve&&v.drawImage.apply(v,[Ve].concat([...we.slice(4,8)],[...we.slice(0,4)]))}))return"break"}();if(le==="break")return"break"}else M==="clip"?(R.forEach(function(J){v[J.method].apply(v,J.data)}),v.clip()):v[M].apply(v,R)},x=0;x{m.src=x}).catch(()=>{m.src=c})}})}function l(b,w,g,_){var c=a[b];return c.ready?(_(c),!0):(i.unshift([w,!0]),r.value=!0,c.onload=function(){c.ready=!0,_(c),r.value=!1;var v=i.slice(0);i=[];for(var m=v.shift();m;)s({actions:m[0],reserve:m[1]},g),m=v.shift()},!1)}function f(b,w){var{x:g=0,y:_=0,width:c,height:v,destWidth:m,destHeight:x,hidpi:E=!0,dataType:C,quality:O=1,type:M="png"}=b,R=t.value,U,te=R.offsetWidth-g;c=c?Math.min(c,te):te;var L=R.offsetHeight-_;v=v?Math.min(v,L):L,E?(m=c,x=v):!m&&!x?(m=Math.round(c*n.value),x=Math.round(v*n.value)):m?x||(x=Math.round(v/c*m)):m=Math.round(c/v*x);var H=Pd(m,x),q=H.getContext("2d");(M==="jpeg"||M==="jpg")&&(M="jpeg",q.fillStyle="#fff",q.fillRect(0,0,m,x)),q.__hidpi__=!0,q.drawImageByCanvas(R,g,_,c,v,0,0,m,x,!1);var re;try{var V;if(C==="base64")U=H.toDataURL("image/".concat(M),O);else{var K=q.getImageData(0,0,m,x);U=ed.deflateRaw(K.data,{to:"string"}),V=!0}re={data:U,compressed:V,width:m,height:x}}catch(ae){re={errMsg:"canvasGetImageData:fail ".concat(ae)}}if(H.height=H.width=0,q.__hidpi__=!1,w)w(re);else return re}function d(b,w){var{data:g,x:_,y:c,width:v,height:m,compressed:x}=b;try{x&&(g=ed.inflateRaw(g)),m||(m=Math.round(g.length/4/v));var E=Pd(v,m),C=E.getContext("2d");C.putImageData(new ImageData(new Uint8ClampedArray(g),v,m),0,0),t.value.getContext("2d").drawImage(E,_,c,v,m),E.height=E.width=0}catch(O){w({errMsg:"canvasPutImageData:fail"});return}w({errMsg:"canvasPutImageData:ok"})}function p(b,w){var{x:g=0,y:_=0,width:c,height:v,destWidth:m,destHeight:x,fileType:E,quality:C,dirname:O}=b,M=f({x:g,y:_,width:c,height:v,destWidth:m,destHeight:x,hidpi:!1,dataType:"base64",type:E,quality:C});if(!M.data||!M.data.length){w({errMsg:M.errMsg.replace("canvasPutImageData","toTempFilePath")});return}kb(M.data,O,(R,U)=>{var te="toTempFilePath:".concat(R?"fail":"ok");R&&(te+=" ".concat(R.message)),w({errMsg:te,tempFilePath:U})})}var h={actionsChanged:s,getImageData:f,putImageData:d,toTempFilePath:p};function y(b,w,g){var _=h[b];b.indexOf("_")!==0&&typeof _=="function"&&_(w,g)}return ce(h,{_resize:o,_handleSubscribe:y})}var Nd=cn("ucg"),Uy={name:{type:String,default:""}},Hy=de({name:"CheckboxGroup",props:Uy,emits:["change"],setup(e,t){var{emit:r,slots:i}=t,a=F(null),n=Le(a,r);return Wy(e,n),()=>I("uni-checkbox-group",{ref:a},[i.default&&i.default()],512)}});function Wy(e,t){var r=[],i=()=>r.reduce((n,o)=>(o.value.checkboxChecked&&n.push(o.value.value),n),new Array);ze(Nd,{addField(n){r.push(n)},removeField(n){r.splice(r.indexOf(n),1)},checkboxChange(n){t("change",n,{value:i()})}});var a=_e(It,!1);return a&&a.addField({submit:()=>{var n=["",null];return e.name!==""&&(n[0]=e.name,n[1]=i()),n}}),i}var Vy={checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007aff"},value:{type:String,default:""}},jy=de({name:"Checkbox",props:Vy,setup(e,t){var{slots:r}=t,i=F(e.checked),a=F(e.value);W([()=>e.checked,()=>e.value],l=>{var[f,d]=l;i.value=f,a.value=d});var n=()=>{i.value=!1},{uniCheckGroup:o,uniLabel:s}=Yy(i,a,n),u=l=>{e.disabled||(i.value=!i.value,o&&o.checkboxChange(l))};return s&&(s.addHandler(u),Ce(()=>{s.removeHandler(u)})),Pn(e,{"label-click":u}),()=>{var l=ai(e,"disabled");return I("uni-checkbox",rt(l,{onClick:u}),[I("div",{class:"uni-checkbox-wrapper"},[I("div",{class:["uni-checkbox-input",{"uni-checkbox-input-disabled":e.disabled}]},[i.value?dn(vn,e.color,22):""],2),r.default&&r.default()])],16,["onClick"])}}});function Yy(e,t,r){var i=ee(()=>({checkboxChecked:Boolean(e.value),value:t.value})),a={reset:r},n=_e(Nd,!1);n&&n.addField(i);var o=_e(It,!1);o&&o.addField(a);var s=_e(Ji,!1);return Ce(()=>{n&&n.removeField(i),o&&o.removeField(a)}),{uniCheckGroup:n,uniForm:o,uniLabel:s}}var Dd,ea,Dn,nr,Bn,ml;Nr(()=>{ea=plus.os.name==="Android",Dn=plus.os.version||""}),document.addEventListener("keyboardchange",function(e){nr=e.height,Bn&&Bn()},!1);function Bd(){}function ta(e,t,r){Nr(()=>{var i="adjustResize",a="adjustPan",n="nothing",o=plus.webview.currentWebview(),s=ml||o.getStyle()||{},u={mode:r||s.softinputMode===i?i:e.adjustPosition?a:n,position:{top:0,height:0}};if(u.mode===a){var l=t.getBoundingClientRect();u.position.top=l.top,u.position.height=l.height+(Number(e.cursorSpacing)||0)}o.setSoftinputTemporary(u)})}function qy(e,t){if(e.showConfirmBar==="auto"){delete t.softinputNavBar;return}Nr(()=>{var r=plus.webview.currentWebview(),{softinputNavBar:i}=r.getStyle()||{},a=i!=="none";a!==e.showConfirmBar?(t.softinputNavBar=i||"auto",r.setStyle({softinputNavBar:e.showConfirmBar?"auto":"none"})):delete t.softinputNavBar})}function Xy(e){var t=e.softinputNavBar;t&&Nr(()=>{var r=plus.webview.currentWebview();r.setStyle({softinputNavBar:t})})}var Fd={cursorSpacing:{type:[Number,String],default:0},showConfirmBar:{type:[Boolean,String],default:"auto"},adjustPosition:{type:[Boolean,String],default:!0},autoBlur:{type:[Boolean,String],default:!1}},$d=["keyboardheightchange"];function zd(e,t,r){var i={};function a(n){var o,s=()=>{r("keyboardheightchange",{},{height:nr,duration:.25}),o&&nr===0&&ta(e,n),e.autoBlur&&o&&nr===0&&(ea||parseInt(Dn)>=13)&&document.activeElement.blur()};n.addEventListener("focus",()=>{o=!0,clearTimeout(Dd),document.addEventListener("click",Bd,!1),Bn=s,nr&&r("keyboardheightchange",{},{height:nr,duration:0}),qy(e,i),ta(e,n)}),ea&&n.addEventListener("click",()=>{!e.disabled&&!e.readOnly&&o&&nr===0&&ta(e,n)}),ea||(parseInt(Dn)<12&&n.addEventListener("touchstart",()=>{!e.disabled&&!e.readOnly&&!o&&ta(e,n)}),parseFloat(Dn)>=14.6&&!ml&&Nr(()=>{var l=plus.webview.currentWebview();ml=l.getStyle()||{}}));var u=()=>{document.removeEventListener("click",Bd,!1),Bn=null,nr&&r("keyboardheightchange",{},{height:0,duration:0}),Xy(i),ea&&(Dd=setTimeout(()=>{ta(e,n,!0)},300)),String(navigator.vendor).indexOf("Apple")===0&&document.documentElement.scrollTo(document.documentElement.scrollLeft,document.documentElement.scrollTop)};n.addEventListener("blur",()=>{n.blur(),o=!1,u()})}W(()=>t.value,n=>a(n))}var Ud=/^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,Hd=/^<\/([-A-Za-z0-9_]+)[^>]*>/,Zy=/([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,Ky=ni("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"),Gy=ni("a,address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"),Jy=ni("abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"),Qy=ni("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),ex=ni("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),tx=ni("script,style");function Wd(e,t){var r,i,a,n=[],o=e;for(n.last=function(){return this[this.length-1]};e;){if(i=!0,!n.last()||!tx[n.last()]){if(e.indexOf(""),r>=0&&(t.comment&&t.comment(e.substring(4,r)),e=e.substring(r+3),i=!1)):e.indexOf("]*>"),function(f,d){return d=d.replace(/|/g,"$1$2"),t.chars&&t.chars(d),""}),l("",n.last());if(e==o)throw"Parse Error: "+e;o=e}l();function u(f,d,p,h){if(d=d.toLowerCase(),Gy[d])for(;n.last()&&Jy[n.last()];)l("",n.last());if(Qy[d]&&n.last()==d&&l("",d),h=Ky[d]||!!h,h||n.push(d),t.start){var y=[];p.replace(Zy,function(b,w){var g=arguments[2]?arguments[2]:arguments[3]?arguments[3]:arguments[4]?arguments[4]:ex[w]?w:"";y.push({name:w,value:g,escaped:g.replace(/(^|[^\\])"/g,'$1\\"')})}),t.start&&t.start(d,y,h)}}function l(f,d){if(d)for(var p=n.length-1;p>=0&&n[p]!=d;p--);else var p=0;if(p>=0){for(var h=n.length-1;h>=p;h--)t.end&&t.end(n[h]);n.length=p}}}function ni(e){for(var t={},r=e.split(","),i=0;io()),delete _l[t]}}a.push(r)}function rx(e){var t=e.import("blots/block/embed");class r extends t{}return r.blotName="divider",r.tagName="HR",{"formats/divider":r}}function ix(e){var t=e.import("blots/inline");class r extends t{}return r.blotName="ins",r.tagName="INS",{"formats/ins":r}}function ax(e){var{Scope:t,Attributor:r}=e.import("parchment"),i={scope:t.BLOCK,whitelist:["left","right","center","justify"]},a=new r.Style("align","text-align",i);return{"formats/align":a}}function nx(e){var{Scope:t,Attributor:r}=e.import("parchment"),i={scope:t.BLOCK,whitelist:["rtl"]},a=new r.Style("direction","direction",i);return{"formats/direction":a}}function ox(e){var t=e.import("parchment"),r=e.import("blots/container"),i=e.import("formats/list/item");class a extends r{static create(o){var s=o==="ordered"?"OL":"UL",u=super.create(s);return(o==="checked"||o==="unchecked")&&u.setAttribute("data-checked",o==="checked"),u}static formats(o){if(o.tagName==="OL")return"ordered";if(o.tagName==="UL")return o.hasAttribute("data-checked")?o.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}constructor(o){super(o);var s=u=>{if(u.target.parentNode===o){var l=this.statics.formats(o),f=t.find(u.target);l==="checked"?f.format("list","unchecked"):l==="unchecked"&&f.format("list","checked")}};o.addEventListener("click",s)}format(o,s){this.children.length>0&&this.children.tail.format(o,s)}formats(){return{[this.statics.blotName]:this.statics.formats(this.domNode)}}insertBefore(o,s){if(o instanceof i)super.insertBefore(o,s);else{var u=s==null?this.length():s.offset(this),l=this.split(u);l.parent.insertBefore(o,l)}}optimize(o){super.optimize(o);var s=this.next;s!=null&&s.prev===this&&s.statics.blotName===this.statics.blotName&&s.domNode.tagName===this.domNode.tagName&&s.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(s.moveChildren(this),s.remove())}replace(o){if(o.statics.blotName!==this.statics.blotName){var s=t.create(this.statics.defaultChild);o.moveChildren(s),this.appendChild(s)}super.replace(o)}}return a.blotName="list",a.scope=t.Scope.BLOCK_BLOT,a.tagName=["OL","UL"],a.defaultChild="list-item",a.allowedChildren=[i],{"formats/list":a}}function sx(e){var{Scope:t}=e.import("parchment"),r=e.import("formats/background"),i=new r.constructor("backgroundColor","background-color",{scope:t.INLINE});return{"formats/backgroundColor":i}}function lx(e){var{Scope:t,Attributor:r}=e.import("parchment"),i={scope:t.BLOCK},a=["margin","marginTop","marginBottom","marginLeft","marginRight"],n=["padding","paddingTop","paddingBottom","paddingLeft","paddingRight"],o={};return a.concat(n).forEach(s=>{o["formats/".concat(s)]=new r.Style(s,Je(s),i)}),o}function ux(e){var{Scope:t,Attributor:r}=e.import("parchment"),i={scope:t.INLINE},a=["font","fontSize","fontStyle","fontVariant","fontWeight","fontFamily"],n={};return a.forEach(o=>{n["formats/".concat(o)]=new r.Style(o,Je(o),i)}),n}function fx(e){var{Scope:t,Attributor:r}=e.import("parchment"),i=[{name:"lineHeight",scope:t.BLOCK},{name:"letterSpacing",scope:t.INLINE},{name:"textDecoration",scope:t.INLINE},{name:"textIndent",scope:t.BLOCK}],a={};return i.forEach(n=>{var{name:o,scope:s}=n;a["formats/".concat(o)]=new r.Style(o,Je(o),{scope:s})}),a}function cx(e){var t=e.import("formats/image"),r=["alt","height","width","data-custom","class","data-local"];t.sanitize=a=>a&&st(a),t.formats=function(n){return r.reduce(function(o,s){return n.hasAttribute(s)&&(o[s]=n.getAttribute(s)),o},{})};var i=t.prototype.format;t.prototype.format=function(a,n){r.indexOf(a)>-1?n?this.domNode.setAttribute(a,n):this.domNode.removeAttribute(a):i.call(this,a,n)}}function vx(e){var t=e.import("formats/link");t.sanitize=r=>{var i=document.createElement("a");i.href=r;var a=i.href.slice(0,i.href.indexOf(":"));return t.PROTOCOL_WHITELIST.concat("file").indexOf(a)>-1?r:t.SANITIZED_URL}}function dx(e){var t={divider:rx,ins:ix,align:ax,direction:nx,list:ox,background:sx,box:lx,font:ux,text:fx,image:cx,link:vx},r={};Object.values(t).forEach(i=>ce(r,i(e))),e.register(r,!0)}function hx(e,t,r){var i,a,n,o=!1;W(()=>e.readOnly,y=>{i&&(n.enable(!y),y||n.blur())}),W(()=>e.placeholder,y=>{i&&l(y)});function s(y){var b=["span","strong","b","ins","em","i","u","a","del","s","sub","sup","img","div","p","h1","h2","h3","h4","h5","h6","hr","ol","ul","li","br"],w="",g;Wd(y,{start:function(c,v,m){if(!b.includes(c)){g=!m;return}g=!1;var x=v.map(C=>{var{name:O,value:M}=C;return"".concat(O,'="').concat(M,'"')}).join(" "),E="<".concat(c," ").concat(x," ").concat(m?"/":"",">");w+=E},end:function(c){g||(w+=""))},chars:function(c){g||(w+=c)}}),a=!0;var _=n.clipboard.convert(w);return a=!1,_}function u(){var y=n.root.innerHTML,b=n.getText(),w=n.getContents();return{html:y,text:b,delta:w}}function l(y){var b="data-placeholder",w=n.root;w.getAttribute(b)!==y&&w.setAttribute(b,y)}var f={};function d(y){var b=y?n.getFormat(y):{},w=Object.keys(b);(w.length!==Object.keys(f).length||w.find(g=>b[g]!==f[g]))&&(f=b,r("statuschange",{},b))}function p(y){var b=window.Quill;dx(b);var w={toolbar:!1,readOnly:e.readOnly,placeholder:e.placeholder};y.length&&(b.register("modules/ImageResize",window.ImageResize.default),w.modules={ImageResize:{modules:y}});var g=t.value;n=new b(g,w);var _=n.root,c=["focus","blur","input"];c.forEach(v=>{_.addEventListener(v,m=>{var x=u();if(v==="input"){if(Sc().platform==="ios"){var E=(x.html.match(/([\s\S]*)<\/span>/)||[])[1],C=E&&E.replace(/\s/g,"")?"":e.placeholder;l(C)}m.stopPropagation()}else r(v,m,x)})}),n.on("text-change",()=>{o||r("input",{},u())}),n.on("selection-change",d),n.on("scroll-optimize",()=>{var v=n.selection.getRange()[0];d(v)}),n.clipboard.addMatcher(Node.ELEMENT_NODE,(v,m)=>(a||m.ops&&(m.ops=m.ops.filter(x=>{var{insert:E}=x;return typeof E=="string"}).map(x=>{var{insert:E}=x;return{insert:E}})),m)),i=!0,r("ready",{},{})}Re(()=>{var y=[];e.showImgSize&&y.push("DisplaySize"),e.showImgToolbar&&y.push("Toolbar"),e.showImgResize&&y.push("Resize");var b="./__uniappquill.js";Vd(window.Quill,b,()=>{if(y.length){var w="./__uniappquillimageresize.js";Vd(window.ImageResize,w,()=>{p(y)})}else p(y)})});var h=la();sa((y,b,w)=>{var{options:g,callbackId:_}=b,c,v,m;if(i){var x=window.Quill;switch(y){case"format":{var{name:E="",value:C=!1}=g;v=n.getSelection(!0);var O=n.getFormat(v)[E]||!1;if(["bold","italic","underline","strike","ins"].includes(E))C=!O;else if(E==="direction"){C=C==="rtl"&&O?!1:C;var M=n.getFormat(v).align;C==="rtl"&&!M?n.format("align","right","user"):!C&&M==="right"&&n.format("align",!1,"user")}else if(E==="indent"){var R=n.getFormat(v).direction==="rtl";C=C==="+1",R&&(C=!C),C=C?"+1":"-1"}else E==="list"&&(C=C==="check"?"unchecked":C,O=O==="checked"?"unchecked":O),C=O&&O!==(C||!1)||!O&&C?C:!O;n.format(E,C,"user")}break;case"insertDivider":v=n.getSelection(!0),n.insertText(v.index,gi,"user"),n.insertEmbed(v.index+1,"divider",!0,"user"),n.setSelection(v.index+2,0,"silent");break;case"insertImage":{v=n.getSelection(!0);var{src:U="",alt:te="",width:L="",height:H="",extClass:q="",data:re={}}=g,V=st(U);n.insertEmbed(v.index,"image",V,"user");var K=/^(file|blob):/.test(V)?V:!1;o=!0,n.formatText(v.index,1,"data-local",K),n.formatText(v.index,1,"alt",te),n.formatText(v.index,1,"width",L),n.formatText(v.index,1,"height",H),n.formatText(v.index,1,"class",q),o=!1,n.formatText(v.index,1,"data-custom",Object.keys(re).map(le=>"".concat(le,"=").concat(re[le])).join("&")),n.setSelection(v.index+1,0,"silent")}break;case"insertText":{v=n.getSelection(!0);var{text:ae=""}=g;n.insertText(v.index,ae,"user"),n.setSelection(v.index+ae.length,0,"silent")}break;case"setContents":{var{delta:Te,html:oe}=g;typeof Te=="object"?n.setContents(Te,"silent"):typeof oe=="string"?n.setContents(s(oe),"silent"):m="contents is missing"}break;case"getContents":c=u();break;case"clear":n.setText("");break;case"removeFormat":{v=n.getSelection(!0);var he=x.import("parchment");v.length?n.removeFormat(v.index,v.length,"user"):Object.keys(n.getFormat(v)).forEach(le=>{he.query(le,he.Scope.INLINE)&&n.format(le,!1)})}break;case"undo":n.history.undo();break;case"redo":n.history.redo();break;case"blur":n.blur();break;case"getSelectionText":v=n.selection.savedRange,c={text:""},v&&v.length!==0&&(c.text=n.getText(v.index,v.length));break;case"scrollIntoView":n.scrollIntoView();break}d(v)}else m="not ready";_&&w({callbackId:_,data:ce({},c,{errMsg:"".concat(y,":").concat(m?"fail "+m:"ok")})})},h,!0)}var gx=ce({},Fd,{id:{type:String,default:""},readOnly:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},showImgSize:{type:[Boolean,String],default:!1},showImgToolbar:{type:[Boolean,String],default:!1},showImgResize:{type:[Boolean,String],default:!1}}),px=de({name:"Editor",props:gx,emit:["ready","focus","blur","input","statuschange",...$d],setup(e,t){var{emit:r}=t,i=F(null),a=Le(i,r);return hx(e,i,a),zd(e,i,a),()=>I("uni-editor",{ref:i,id:e.id,class:"ql-container"},null,8,["id"])}}),jd="#10aeff",mx="#f76260",Yd="#b2b2b2",_x="#f43530",bx={success:{d:ib,c:Na},success_no_circle:{d:vn,c:Na},info:{d:tb,c:jd},warn:{d:nb,c:mx},waiting:{d:ab,c:jd},cancel:{d:J_,c:_x},download:{d:eb,c:Na},search:{d:rb,c:Yd},clear:{d:Q_,c:Yd}},wx=de({name:"Icon",props:{type:{type:String,required:!0,default:""},size:{type:[String,Number],default:23},color:{type:String,default:""}},setup(e){var t=ee(()=>bx[e.type]);return()=>{var{value:r}=t;return I("uni-icon",null,[r&&r.d&&dn(r.d,e.color||r.c,Vr(e.size))])}}}),yx={src:{type:String,default:""},mode:{type:String,default:"scaleToFill"},lazyLoad:{type:[Boolean,String],default:!1},draggable:{type:Boolean,default:!1}},Fn={widthFix:["offsetWidth","height",(e,t)=>e/t],heightFix:["offsetHeight","width",(e,t)=>e*t]},xx={aspectFit:["center center","contain"],aspectFill:["center center","cover"],widthFix:[,"100% 100%"],heightFix:[,"100% 100%"],top:["center top"],bottom:["center bottom"],center:["center center"],left:["left center"],right:["right center"],"top left":["left top"],"top right":["right top"],"bottom left":["left bottom"],"bottom right":["right bottom"]},Sx=de({name:"Image",props:yx,setup(e,t){var{emit:r}=t,i=F(null),a=Ex(i,e),n=Le(i,r),{fixSize:o}=Ax(i,e,a);return Tx(a,o,n),()=>{var{mode:s}=e,{imgSrc:u,modeStyle:l,src:f}=a,d;return d=u?I("img",{src:u,draggable:e.draggable},null,8,["src","draggable"]):I("img",null,null),I("uni-image",{ref:i},[I("div",{style:l},null,4),d,Fn[s]?I(Or,{onResize:o},null,8,["onResize"]):I("span",null,null)],512)}}});function Ex(e,t){var r=F(""),i=ee(()=>{var n="auto",o="",s=xx[t.mode];return s?(s[0]&&(o=s[0]),s[1]&&(n=s[1])):(o="0% 0%",n="100% 100%"),"background-image:".concat(r.value?'url("'+r.value+'")':"none",";background-position:").concat(o,";background-size:").concat(n,";")}),a=ke({rootEl:e,src:ee(()=>t.src?st(t.src):""),origWidth:0,origHeight:0,origStyle:{width:"",height:""},modeStyle:i,imgSrc:r});return Re(()=>{var n=e.value,o=n.style;a.origWidth=Number(o.width)||0,a.origHeight=Number(o.height)||0}),a}function Tx(e,t,r){var i,a=function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";e.origWidth=s,e.origHeight=u,e.imgSrc=l},n=s=>{if(!s){o(),a();return}i=i||new Image,i.onload=u=>{var{width:l,height:f}=i;a(l,f,s),t(),o(),r("load",u,{width:l,height:f})},i.onerror=u=>{a(),o(),r("error",u,{errMsg:"GET ".concat(e.src," 404 (Not Found)")})},i.src=s},o=()=>{i&&(i.onload=null,i.onerror=null,i=null)};W(()=>e.src,s=>n(s)),Re(()=>n(e.src)),Ce(()=>o())}var Cx=navigator.vendor==="Google Inc.";function Ox(e){return Cx&&e>10&&(e=Math.round(e/2)*2),e}function Ax(e,t,r){var i=()=>{var{mode:n}=t,o=Fn[n];if(!!o){var{origWidth:s,origHeight:u}=r,l=s&&u?s/u:0;if(!!l){var f=e.value,d=f[o[0]];d&&(f.style[o[1]]=Ox(o[2](d,l))+"px"),window.dispatchEvent(new CustomEvent("updateview"))}}},a=()=>{var{style:n}=e.value,{origStyle:{width:o,height:s}}=r;n.width=o,n.height=s};return W(()=>t.mode,(n,o)=>{Fn[o]&&a(),Fn[n]&&i()}),{fixSize:i,resetSize:a}}function Ix(e,t){var r=0,i,a,n=function(){for(var o=arguments.length,s=new Array(o),u=0;u{a=null,r=l,e.apply(this,s)},l-r$n.forEach(t=>t.userAction=e);function Mx(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{userAction:!1};if(!qd){var t=["touchstart","touchmove","touchend","mousedown","mouseup"];t.forEach(r=>{document.addEventListener(r,function(){!bl&&Xd(!0),bl++,setTimeout(()=>{!--bl&&Xd(!1)},0)},kx)}),qd=!0}$n.push(e)}function Rx(e){var t=$n.indexOf(e);t>=0&&$n.splice(t,1)}function Lx(){var e=ke({userAction:!1});return Re(()=>{Mx(e)}),Ce(()=>{Rx(e)}),{state:e}}function Zd(){var e=ke({attrs:{}});return Re(()=>{for(var t=Dt();t;){var r=t.type.__scopeId;r&&(e.attrs[r]=""),t=t.proxy&&t.proxy.$mpType==="page"?null:t.parent}}),{state:e}}function Px(e,t){var r=_e(It,!1);if(!!r){var i=Dt(),a={submit(){var n=i.proxy;return[n[e],typeof t=="string"?n[t]:t.value]},reset(){typeof t=="string"?i.proxy[t]="":t.value=""}};r.addField(a),Ce(()=>{r.removeField(a)})}}function Nx(e,t){var r=document.activeElement;if(!r)return t({});var i={};["input","textarea"].includes(r.tagName.toLowerCase())&&(i.start=r.selectionStart,i.end=r.selectionEnd),t(i)}var Dx=function(){bt(Gt(),"getSelectedTextRange",Nx)},Bx=200,wl;function yl(e,t){return t==="number"&&isNaN(Number(e))&&(e=""),e===null?"":String(e)}var Kd=ce({},{name:{type:String,default:""},modelValue:{type:[String,Number],default:""},value:{type:[String,Number],default:""},disabled:{type:[Boolean,String],default:!1},autoFocus:{type:[Boolean,String],default:!1},focus:{type:[Boolean,String],default:!1},cursor:{type:[Number,String],default:-1},selectionStart:{type:[Number,String],default:-1},selectionEnd:{type:[Number,String],default:-1},type:{type:String,default:"text"},password:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},placeholderStyle:{type:String,default:""},placeholderClass:{type:String,default:""},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"},confirmHold:{type:Boolean,default:!1}},Fd),Gd=["input","focus","blur","update:value","update:modelValue","update:focus",...$d];function Fx(e,t,r){var i=F(null),a=Le(t,r),n=ee(()=>{var d=Number(e.selectionStart);return isNaN(d)?-1:d}),o=ee(()=>{var d=Number(e.selectionEnd);return isNaN(d)?-1:d}),s=ee(()=>{var d=Number(e.cursor);return isNaN(d)?-1:d}),u=ee(()=>{var d=Number(e.maxlength);return isNaN(d)?140:d}),l=yl(e.modelValue,e.type)||yl(e.value,e.type),f=ke({value:l,valueOrigin:l,maxlength:u,focus:e.focus,composing:!1,selectionStart:n,selectionEnd:o,cursor:s});return W(()=>f.focus,d=>r("update:focus",d)),W(()=>f.maxlength,d=>f.value=f.value.slice(0,d)),{fieldRef:i,state:f,trigger:a}}function $x(e,t,r,i){var a=om(s=>{t.value=yl(s,e.type)},100);W(()=>e.modelValue,a),W(()=>e.value,a);var n=Ix((s,u)=>{a.cancel(),r("update:modelValue",u.value),r("update:value",u.value),i("input",s,u)},100),o=(s,u,l)=>{a.cancel(),n(s,u),l&&n.flush()};return If(()=>{a.cancel(),n.cancel()}),{trigger:i,triggerInput:o}}function zx(e,t){var{state:r}=Lx(),i=ee(()=>e.autoFocus||e.focus);function a(){if(!!i.value){var o=t.value;if(!o||!("plus"in window)){setTimeout(a,100);return}{var s=Bx-(Date.now()-wl);if(s>0){setTimeout(a,s);return}o.focus(),r.userAction||plus.key.showSoftKeybord()}}}function n(){var o=t.value;o&&o.blur()}W(()=>e.focus,o=>{o?a():n()}),Re(()=>{wl=wl||Date.now(),i.value&&Ur(a)})}function Ux(e,t,r,i,a){function n(){var l=e.value;l&&t.focus&&t.selectionStart>-1&&t.selectionEnd>-1&&l.type!=="number"&&(l.selectionStart=t.selectionStart,l.selectionEnd=t.selectionEnd)}function o(){var l=e.value;l&&t.focus&&t.selectionStart<0&&t.selectionEnd<0&&t.cursor>-1&&l.type!=="number"&&(l.selectionEnd=l.selectionStart=t.cursor)}function s(l){return l.type==="number"?null:l.selectionEnd}function u(){var l=e.value,f=function(h){t.focus=!0,r("focus",h,{value:t.value}),n(),o()},d=function(h,y){h.stopPropagation(),!(typeof a=="function"&&a(h,t)===!1)&&(t.value=l.value,t.composing||i(h,{value:l.value,cursor:s(l)},y))},p=function(h){t.composing&&(t.composing=!1,d(h,!0)),t.focus=!1,r("blur",h,{value:t.value,cursor:s(h.target)})};l.addEventListener("change",h=>h.stopPropagation()),l.addEventListener("focus",f),l.addEventListener("blur",p),l.addEventListener("input",d),l.addEventListener("compositionstart",h=>{h.stopPropagation(),t.composing=!0}),l.addEventListener("compositionend",h=>{h.stopPropagation(),t.composing&&(t.composing=!1,d(h))})}W([()=>t.selectionStart,()=>t.selectionEnd],n),W(()=>t.cursor,o),W(()=>e.value,u)}function Jd(e,t,r,i){Dx();var{fieldRef:a,state:n,trigger:o}=Fx(e,t,r),{triggerInput:s}=$x(e,n,r,o);zx(e,a),zd(e,a,o);var{state:u}=Zd();Px("name",n),Ux(a,n,o,s,i);var l=String(navigator.vendor).indexOf("Apple")===0&&CSS.supports("image-orientation:from-image");return{fieldRef:a,state:n,scopedAttrsState:u,fixDisabledColor:l,trigger:o}}var Hx=ce({},Kd,{placeholderClass:{type:String,default:"input-placeholder"},textContentType:{type:String,default:""}}),Wx=de({name:"Input",props:Hx,emits:["confirm",...Gd],setup(e,t){var{emit:r}=t,i=["text","number","idcard","digit","password","tel"],a=["off","one-time-code"],n=ee(()=>{var _="";switch(e.type){case"text":e.confirmType==="search"&&(_="search");break;case"idcard":_="text";break;case"digit":_="number";break;default:_=~i.includes(e.type)?e.type:"text";break}return e.password?"password":_}),o=ee(()=>{var _=a.indexOf(e.textContentType),c=a.indexOf(Je(e.textContentType)),v=_!==-1?_:c!==-1?c:0;return a[v]}),s=F(""),u,l=F(null),{fieldRef:f,state:d,scopedAttrsState:p,fixDisabledColor:h,trigger:y}=Jd(e,l,r,(_,c)=>{var v=_.target;if(n.value==="number"){if(u&&(v.removeEventListener("blur",u),u=null),v.validity&&!v.validity.valid)return!s.value&&_.data==="-"||s.value[0]==="-"&&_.inputType==="deleteContentBackward"?(s.value="-",c.value="",u=()=>{s.value=v.value=""},v.addEventListener("blur",u),!1):(s.value=c.value=v.value=s.value==="-"?"":s.value,!1);s.value=v.value;var m=c.maxlength;if(m>0&&v.value.length>m)return v.value=v.value.slice(0,m),c.value=v.value,!1}});W(()=>d.value,_=>{e.type==="number"&&!(s.value==="-"&&_==="")&&(s.value=_)});var b=["number","digit"],w=ee(()=>b.includes(e.type)?"0.000000000000000001":"");function g(_){if(_.key==="Enter"){var c=_.target;_.stopPropagation(),y("confirm",_,{value:c.value}),!e.confirmHold&&c.blur()}}return()=>{var _=e.disabled&&h?I("input",{ref:f,value:d.value,tabindex:"-1",readonly:!!e.disabled,type:n.value,maxlength:d.maxlength,step:w.value,class:"uni-input-input",onFocus:c=>c.target.blur()},null,40,["value","readonly","type","maxlength","step","onFocus"]):I("input",{ref:f,value:d.value,disabled:!!e.disabled,type:n.value,maxlength:d.maxlength,step:w.value,enterkeyhint:e.confirmType,pattern:e.type==="number"?"[0-9]*":void 0,class:"uni-input-input",autocomplete:o.value,onKeyup:g},null,40,["value","disabled","type","maxlength","step","enterkeyhint","pattern","autocomplete","onKeyup"]);return I("uni-input",{ref:l},[I("div",{class:"uni-input-wrapper"},[Ii(I("div",rt(p.attrs,{style:e.placeholderStyle,class:["uni-input-placeholder",e.placeholderClass]}),[e.placeholder],16),[[Li,!(d.value.length||s.value==="-")]]),e.confirmType==="search"?I("form",{action:"",onSubmit:c=>c.preventDefault(),class:"uni-input-form"},[_],40,["onSubmit"]):_])],512)}}});function Vx(e){return Object.keys(e).map(t=>[t,e[t]])}var jx=["class","style"],Yx=/^on[A-Z]+/,Qd=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{excludeListeners:t=!1,excludeKeys:r=[]}=e,i=Dt(),a=Qo({}),n=Qo({}),o=Qo({}),s=r.concat(jx);return i.attrs=ke(i.attrs),P0(()=>{var u=Vx(i.attrs).reduce((l,f)=>{var[d,p]=f;return s.includes(d)?l.exclude[d]=p:Yx.test(d)?(t||(l.attrs[d]=p),l.listeners[d]=p):l.attrs[d]=p,l},{exclude:{},attrs:{},listeners:{}});a.value=u.attrs,n.value=u.listeners,o.value=u.exclude}),{$attrs:a,$listeners:n,$excludeAttrs:o}},zn,ra;function Un(){Nr(()=>{zn||(zn=plus.webview.currentWebview()),ra||(ra=(zn.getStyle()||{}).pullToRefresh||{})})}function or(e){var{disable:t}=e;ra&&ra.support&&zn.setPullToRefresh(Object.assign({},ra,{support:!t}))}function xl(e){var t=[];return Array.isArray(e)&&e.forEach(r=>{Qa(r)?r.type===yt?t.push(...xl(r.children)):t.push(r):Array.isArray(r)&&t.push(...xl(r))}),t}function ia(e){var t=Dt();t.rebuild=e}var qx={scaleArea:{type:Boolean,default:!1}},Xx=de({inheritAttrs:!1,name:"MovableArea",props:qx,setup(e,t){var{slots:r}=t,i=F(null),a=F(!1),{setContexts:n,events:o}=Zx(e,i),{$listeners:s,$attrs:u,$excludeAttrs:l}=Qd(),f=s.value,d=["onTouchstart","onTouchmove","onTouchend"];d.forEach(g=>{var _=f[g],c=o["_".concat(g)];f[g]=_?[].concat(_,c):c}),Re(()=>{o._resize(),Un(),a.value=!0});var p=[],h=[];function y(){for(var g=[],_=function(v){var m=p[v];m instanceof Element||(m=m.el);var x=h.find(E=>m===E.rootRef.value);x&&g.push(qa(x))},c=0;c{p=i.value.children,y()});var b=g=>{h.push(g),y()},w=g=>{var _=h.indexOf(g);_>=0&&(h.splice(_,1),y())};return ze("_isMounted",a),ze("movableAreaRootRef",i),ze("addMovableViewContext",b),ze("removeMovableViewContext",w),()=>(r.default&&r.default(),I("uni-movable-area",rt({ref:i},u.value,l.value,f),[I(Or,{onReize:o._resize},null,8,["onReize"]),p],16))}});function eh(e){return Math.sqrt(e.x*e.x+e.y*e.y)}function Zx(e,t){var r=F(0),i=F(0),a=ke({x:null,y:null}),n=F(null),o=null,s=[];function u(b){b&&b!==1&&(e.scaleArea?s.forEach(function(w){w._setScale(b)}):o&&o._setScale(b))}function l(b){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:s,g=t.value;function _(c){for(var v=0;v{or({disable:!0});var w=b.touches;if(w&&w.length>1){var g={x:w[1].pageX-w[0].pageX,y:w[1].pageY-w[0].pageY};if(n.value=eh(g),a.x=g.x,a.y=g.y,!e.scaleArea){var _=l(w[0].target),c=l(w[1].target);o=_&&_===c?_:null}}}),d=Cr(b=>{var w=b.touches;if(w&&w.length>1){b.preventDefault();var g={x:w[1].pageX-w[0].pageX,y:w[1].pageY-w[0].pageY};if(a.x!==null&&n.value&&n.value>0){var _=eh(g)/n.value;u(_)}a.x=g.x,a.y=g.y}}),p=Cr(b=>{or({disable:!1});var w=b.touches;w&&w.length||b.changedTouches&&(a.x=0,a.y=0,n.value=null,e.scaleArea?s.forEach(function(g){g._endScale()}):o&&o._endScale())});function h(){y(),s.forEach(function(b,w){b.setParent()})}function y(){var b=window.getComputedStyle(t.value),w=t.value.getBoundingClientRect();r.value=w.width-["Left","Right"].reduce(function(g,_){var c="border"+_+"Width",v="padding"+_;return g+parseFloat(b[c])+parseFloat(b[v])},0),i.value=w.height-["Top","Bottom"].reduce(function(g,_){var c="border"+_+"Width",v="padding"+_;return g+parseFloat(b[c])+parseFloat(b[v])},0)}return ze("movableAreaWidth",r),ze("movableAreaHeight",i),{setContexts(b){s=b},events:{_onTouchstart:f,_onTouchmove:d,_onTouchend:p,_resize:h}}}var aa=function(e,t,r,i){e.addEventListener(t,a=>{typeof r=="function"&&r(a)===!1&&((typeof a.cancelable!="undefined"?a.cancelable:!0)&&a.preventDefault(),a.stopPropagation())},{passive:!1})},th,rh;function Hn(e,t,r){Ce(()=>{document.removeEventListener("mousemove",th),document.removeEventListener("mouseup",rh)});var i=0,a=0,n=0,o=0,s=function(h,y,b,w){if(t({cancelable:h.cancelable,target:h.target,currentTarget:h.currentTarget,preventDefault:h.preventDefault.bind(h),stopPropagation:h.stopPropagation.bind(h),touches:h.touches,changedTouches:h.changedTouches,detail:{state:y,x:b,y:w,dx:b-i,dy:w-a,ddx:b-n,ddy:w-o,timeStamp:h.timeStamp}})===!1)return!1},u=null,l,f;aa(e,"touchstart",function(h){if(l=!0,h.touches.length===1&&!u)return u=h,i=n=h.touches[0].pageX,a=o=h.touches[0].pageY,s(h,"start",i,a)}),aa(e,"mousedown",function(h){if(f=!0,!l&&!u)return u=h,i=n=h.pageX,a=o=h.pageY,s(h,"start",i,a)}),aa(e,"touchmove",function(h){if(h.touches.length===1&&u){var y=s(h,"move",h.touches[0].pageX,h.touches[0].pageY);return n=h.touches[0].pageX,o=h.touches[0].pageY,y}});var d=th=function(h){if(!l&&f&&u){var y=s(h,"move",h.pageX,h.pageY);return n=h.pageX,o=h.pageY,y}};document.addEventListener("mousemove",d),aa(e,"touchend",function(h){if(h.touches.length===0&&u)return l=!1,u=null,s(h,"end",h.changedTouches[0].pageX,h.changedTouches[0].pageY)});var p=rh=function(h){if(f=!1,!l&&u)return u=null,s(h,"end",h.pageX,h.pageY)};document.addEventListener("mouseup",p),aa(e,"touchcancel",function(h){if(u){l=!1;var y=u;return u=null,s(h,r?"cancel":"end",y.touches[0].pageX,y.touches[0].pageY)}})}function Wn(e,t,r){return e>t-r&&ethis._t&&(e=this._t,this._lastDt=e);var t=this._x_v*e+.5*this._x_a*Math.pow(e,2)+this._x_s,r=this._y_v*e+.5*this._y_a*Math.pow(e,2)+this._y_s;return(this._x_a>0&&tthis._endPositionX)&&(t=this._endPositionX),(this._y_a>0&&rthis._endPositionY)&&(r=this._endPositionY),{x:t,y:r}},kt.prototype.ds=function(e){return e===void 0&&(e=(new Date().getTime()-this._startTime)/1e3),e>this._t&&(e=this._t),{dx:this._x_v+this._x_a*e,dy:this._y_v+this._y_a*e}},kt.prototype.delta=function(){return{x:-1.5*Math.pow(this._x_v,2)/this._x_a||0,y:-1.5*Math.pow(this._y_v,2)/this._y_a||0}},kt.prototype.dt=function(){return-this._x_v/this._x_a},kt.prototype.done=function(){var e=Wn(this.s().x,this._endPositionX)||Wn(this.s().y,this._endPositionY)||this._lastDt===this._t;return this._lastDt=null,e},kt.prototype.setEnd=function(e,t){this._endPositionX=e,this._endPositionY=t},kt.prototype.reconfigure=function(e,t){this._m=e,this._f=1e3*t};function at(e,t,r){this._m=e,this._k=t,this._c=r,this._solution=null,this._endPosition=0,this._startTime=0}at.prototype._solve=function(e,t){var r=this._c,i=this._m,a=this._k,n=r*r-4*i*a;if(n===0){var o=-r/(2*i),s=e,u=t/(o*e);return{x:function(g){return(s+u*g)*Math.pow(Math.E,o*g)},dx:function(g){var _=Math.pow(Math.E,o*g);return o*(s+u*g)*_+u*_}}}if(n>0){var l=(-r-Math.sqrt(n))/(2*i),f=(-r+Math.sqrt(n))/(2*i),d=(t-l*e)/(f-l),p=e-d;return{x:function(g){var _,c;return g===this._t&&(_=this._powER1T,c=this._powER2T),this._t=g,_||(_=this._powER1T=Math.pow(Math.E,l*g)),c||(c=this._powER2T=Math.pow(Math.E,f*g)),p*_+d*c},dx:function(g){var _,c;return g===this._t&&(_=this._powER1T,c=this._powER2T),this._t=g,_||(_=this._powER1T=Math.pow(Math.E,l*g)),c||(c=this._powER2T=Math.pow(Math.E,f*g)),p*l*_+d*f*c}}}var h=Math.sqrt(4*i*a-r*r)/(2*i),y=-r/2*i,b=e,w=(t-y*e)/h;return{x:function(g){return Math.pow(Math.E,y*g)*(b*Math.cos(h*g)+w*Math.sin(h*g))},dx:function(g){var _=Math.pow(Math.E,y*g),c=Math.cos(h*g),v=Math.sin(h*g);return _*(w*h*c-b*h*v)+y*_*(w*v+b*c)}}},at.prototype.x=function(e){return e===void 0&&(e=(new Date().getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0},at.prototype.dx=function(e){return e===void 0&&(e=(new Date().getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0},at.prototype.setEnd=function(e,t,r){if(r||(r=new Date().getTime()),e!==this._endPosition||!Ar(t,.1)){t=t||0;var i=this._endPosition;this._solution&&(Ar(t,.1)&&(t=this._solution.dx((r-this._startTime)/1e3)),i=this._solution.x((r-this._startTime)/1e3),Ar(t,.1)&&(t=0),Ar(i,.1)&&(i=0),i+=this._endPosition),this._solution&&Ar(i-e,.1)&&Ar(t,.1)||(this._endPosition=e,this._solution=this._solve(i-this._endPosition,t),this._startTime=r)}},at.prototype.snap=function(e){this._startTime=new Date().getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}},at.prototype.done=function(e){return e||(e=new Date().getTime()),Wn(this.x(),this._endPosition,.1)&&Ar(this.dx(),.1)},at.prototype.reconfigure=function(e,t,r){this._m=e,this._k=t,this._c=r,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=new Date().getTime())},at.prototype.springConstant=function(){return this._k},at.prototype.damping=function(){return this._c},at.prototype.configuration=function(){function e(r,i){r.reconfigure(1,i,r.damping())}function t(r,i){r.reconfigure(1,r.springConstant(),i)}return[{label:"Spring Constant",read:this.springConstant.bind(this),write:e.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:t.bind(this,this),min:1,max:500}]};function na(e,t,r){this._springX=new at(e,t,r),this._springY=new at(e,t,r),this._springScale=new at(e,t,r),this._startTime=0}na.prototype.setEnd=function(e,t,r,i){var a=new Date().getTime();this._springX.setEnd(e,i,a),this._springY.setEnd(t,i,a),this._springScale.setEnd(r,i,a),this._startTime=a},na.prototype.x=function(){var e=(new Date().getTime()-this._startTime)/1e3;return{x:this._springX.x(e),y:this._springY.x(e),scale:this._springScale.x(e)}},na.prototype.done=function(){var e=new Date().getTime();return this._springX.done(e)&&this._springY.done(e)&&this._springScale.done(e)},na.prototype.reconfigure=function(e,t,r){this._springX.reconfigure(e,t,r),this._springY.reconfigure(e,t,r),this._springScale.reconfigure(e,t,r)};var Kx={direction:{type:String,default:"none"},inertia:{type:[Boolean,String],default:!1},outOfBounds:{type:[Boolean,String],default:!1},x:{type:[Number,String],default:0},y:{type:[Number,String],default:0},damping:{type:[Number,String],default:20},friction:{type:[Number,String],default:2},disabled:{type:[Boolean,String],default:!1},scale:{type:[Boolean,String],default:!1},scaleMin:{type:[Number,String],default:.5},scaleMax:{type:[Number,String],default:10},scaleValue:{type:[Number,String],default:1},animation:{type:[Boolean,String],default:!0}};function ih(e,t){return+((1e3*e-1e3*t)/1e3).toFixed(1)}var Gx=de({name:"MovableView",props:Kx,emits:["change","scale"],setup(e,t){var{slots:r,emit:i}=t,a=F(null),n=Le(a,i),{setParent:o}=Jx(e,n,a);return()=>I("uni-movable-view",{ref:a},[I(Or,{onResize:o},null,8,["onResize"]),r.default&&r.default()],512)}}),El=!1;function ah(e){El||(El=!0,requestAnimationFrame(function(){e(),El=!1}))}function nh(e,t){if(e===t)return 0;var r=e.offsetLeft;return e.offsetParent?r+=nh(e.offsetParent,t):0}function oh(e,t){if(e===t)return 0;var r=e.offsetTop;return e.offsetParent?r+=oh(e.offsetParent,t):0}function sh(e,t,r){var i={id:0,cancelled:!1},a=function(o){o&&o.id&&cancelAnimationFrame(o.id),o&&(o.cancelled=!0)};function n(o,s,u,l){if(!o||!o.cancelled){u(s);var f=s.done();f||o.cancelled||(o.id=requestAnimationFrame(n.bind(null,o,s,u,l))),f&&l&&l(s)}}return n(i,e,t,r),{cancel:a.bind(null,i),model:e}}function Vn(e){return/\d+[ur]px$/i.test(e)?uni.upx2px(parseFloat(e)):Number(e)||0}function Jx(e,t,r){var i=_e("movableAreaWidth",F(0)),a=_e("movableAreaHeight",F(0)),n=_e("_isMounted",F(!1)),o=_e("movableAreaRootRef"),s=_e("addMovableViewContext",()=>{}),u=_e("removeMovableViewContext",()=>{}),l=F(Vn(e.x)),f=F(Vn(e.y)),d=F(Number(e.scaleValue)||1),p=F(0),h=F(0),y=F(0),b=F(0),w=F(0),g=F(0),_=null,c=null,v={x:0,y:0},m={x:0,y:0},x=1,E=1,C=0,O=0,M=!1,R=!1,U,te,L=null,H=null,q=new Sl,re=new Sl,V={historyX:[0,0],historyY:[0,0],historyT:[0,0]},K=ee(()=>{var A=Number(e.damping);return isNaN(A)?20:A}),ae=ee(()=>{var A=Number(e.friction);return isNaN(A)||A<=0?2:A}),Te=ee(()=>{var A=Number(e.scaleMin);return isNaN(A)?.5:A}),oe=ee(()=>{var A=Number(e.scaleMax);return isNaN(A)?10:A}),he=ee(()=>e.direction==="all"||e.direction==="horizontal"),le=ee(()=>e.direction==="all"||e.direction==="vertical"),J=new na(1,9*Math.pow(K.value,2)/40,K.value),xe=new kt(1,ae.value);W(()=>e.x,A=>{l.value=Vn(A)}),W(()=>e.y,A=>{f.value=Vn(A)}),W(l,A=>{Ve(A)}),W(f,A=>{sr(A)}),W(()=>e.scaleValue,A=>{d.value=Number(A)||0}),W(d,A=>{va(A)}),W(Te,()=>{Ne()}),W(oe,()=>{Ne()});function we(){c&&c.cancel(),_&&_.cancel()}function Ve(A){if(he.value){if(A+m.x===C)return C;_&&_.cancel(),Q(A+m.x,f.value+m.y,x)}return A}function sr(A){if(le.value){if(A+m.y===O)return O;_&&_.cancel(),Q(l.value+m.x,A+m.y,x)}return A}function Ne(){if(!e.scale)return!1;B(x,!0),z(x)}function va(A){return e.scale?(A=D(A),B(A,!0),z(A),A):!1}function da(){M||e.disabled||(or({disable:!0}),we(),V.historyX=[0,0],V.historyY=[0,0],V.historyT=[0,0],he.value&&(U=C),le.value&&(te=O),r.value.style.willChange="transform",L=null,H=null,R=!0)}function S(A){if(!M&&!e.disabled&&R){var Y=C,X=O;if(H===null&&(H=Math.abs(A.detail.dx/A.detail.dy)>1?"htouchmove":"vtouchmove"),he.value&&(Y=A.detail.dx+U,V.historyX.shift(),V.historyX.push(Y),!le.value&&L===null&&(L=Math.abs(A.detail.dx/A.detail.dy)<1)),le.value&&(X=A.detail.dy+te,V.historyY.shift(),V.historyY.push(X),!he.value&&L===null&&(L=Math.abs(A.detail.dy/A.detail.dx)<1)),V.historyT.shift(),V.historyT.push(A.detail.timeStamp),!L){A.preventDefault();var ge="touch";Yw.value&&(e.outOfBounds?(ge="touch-out-of-bounds",Y=w.value+q.x(Y-w.value)):Y=w.value),Xg.value&&(e.outOfBounds?(ge="touch-out-of-bounds",X=g.value+re.x(X-g.value)):X=g.value),ah(function(){Z(Y,X,x,ge)})}}}function T(){if(!M&&!e.disabled&&R&&(or({disable:!1}),r.value.style.willChange="auto",R=!1,!L&&!G("out-of-bounds")&&e.inertia)){var A=1e3*(V.historyX[1]-V.historyX[0])/(V.historyT[1]-V.historyT[0]),Y=1e3*(V.historyY[1]-V.historyY[0])/(V.historyT[1]-V.historyT[0]);xe.setV(A,Y),xe.setS(C,O);var X=xe.delta().x,ge=xe.delta().y,ue=X+C,Fe=ge+O;uew.value&&(ue=w.value,Fe=O+(w.value-C)*ge/X),Feg.value&&(Fe=g.value,ue=C+(g.value-O)*X/ge),xe.setEnd(ue,Fe),c=sh(xe,function(){var Ge=xe.s(),De=Ge.x,gt=Ge.y;Z(De,gt,x,"friction")},function(){c.cancel()})}!e.outOfBounds&&!e.inertia&&we()}function k(A,Y){var X=!1;return A>w.value?(A=w.value,X=!0):Ag.value?(Y=g.value,X=!0):Y3&&arguments[3]!==void 0?arguments[3]:"",ue=arguments.length>4?arguments[4]:void 0,Fe=arguments.length>5?arguments[5]:void 0;A!==null&&A.toString()!=="NaN"&&typeof A=="number"||(A=C||0),Y!==null&&Y.toString()!=="NaN"&&typeof Y=="number"||(Y=O||0),A=Number(A.toFixed(1)),Y=Number(Y.toFixed(1)),X=Number(X.toFixed(1)),C===A&&O===Y||ue||t("change",{},{x:ih(A,m.x),y:ih(Y,m.y),source:ge}),e.scale||(X=x),X=D(X),X=+X.toFixed(3),Fe&&X!==x&&t("scale",{},{x:A,y:Y,scale:X});var Ge="translateX("+A+"px) translateY("+Y+"px) translateZ(0px) scale("+X+")";r.value.style.transform=Ge,r.value.style.webkitTransform=Ge,C=A,O=Y,x=X}function fe(){if(!!n.value){we();var A=e.scale?d.value:1;P(),N(A),$(),C=l.value+m.x,O=f.value+m.y;var Y=k(C,O),X=Y.x,ge=Y.y;Z(X,ge,A,"",!0),z(A)}}function Be(){M=!1,z(x)}function Ae(A){A&&(A=E*A,j(),B(A))}return Re(()=>{Hn(r.value,Y=>{switch(Y.detail.state){case"start":da();break;case"move":S(Y);break;case"end":T()}}),fe(),xe.reconfigure(1,ae.value),J.reconfigure(1,9*Math.pow(K.value,2)/40,K.value),r.value.style.transformOrigin="center",Un();var A={rootRef:r,setParent:fe,_endScale:Be,_setScale:Ae};s(A),Zt(()=>{u(A)})}),Zt(()=>{we()}),{setParent:fe}}var Qx=["navigate","redirect","switchTab","reLaunch","navigateBack"],eS={hoverClass:{type:String,default:"navigator-hover"},url:{type:String,default:""},openType:{type:String,default:"navigate",validator(e){return Boolean(~Qx.indexOf(e))}},delta:{type:Number,default:1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:600},exists:{type:String,default:""},hoverStopPropagation:{type:Boolean,default:!1}};function tS(e){return()=>{if(e.openType!=="navigateBack"&&!e.url){console.error(" should have url attribute when using navigateTo, redirectTo, reLaunch or switchTab");return}switch(e.openType){case"navigate":uni.navigateTo({url:e.url});break;case"redirect":uni.redirectTo({url:e.url,exists:e.exists});break;case"switchTab":uni.switchTab({url:e.url});break;case"reLaunch":uni.reLaunch({url:e.url});break;case"navigateBack":uni.navigateBack({delta:e.delta});break}}}var rS=de({name:"Navigator",inheritAttrs:!1,compatConfig:{MODE:3},props:eS,setup(e,t){var{slots:r}=t,i=Dt(),a=i&&i.vnode.scopeId||"",{hovering:n,binding:o}=pl(e),s=tS(e);return()=>{var{hoverClass:u,url:l}=e,f=e.hoverClass&&e.hoverClass!=="none";return I("a",{class:"navigator-wrap",href:l,onClick:fc},[I("uni-navigator",rt({class:f&&n.value?u:""},f&&o,i?i.attrs:{},{[a]:""},{onClick:s}),[r.default&&r.default()],16,["onClick"])],8,["href","onClick"])}}}),iS={value:{type:Array,default(){return[]},validator:function(e){return Array.isArray(e)&&e.filter(t=>typeof t=="number").length===e.length}},indicatorStyle:{type:String,default:""},indicatorClass:{type:String,default:""},maskStyle:{type:String,default:""},maskClass:{type:String,default:""}};function aS(e){var t=ke([...e.value]),r=ke({value:t,height:34});return W(()=>e.value,(i,a)=>{(i===a||i.length!==a.length||i.findIndex((n,o)=>n!==a[o])>=0)&&(r.value.length=i.length,i.forEach((n,o)=>{n!==r.value[o]&&r.value.splice(o,1,n)}))}),r}var nS=de({name:"PickerView",props:iS,emits:["change","pickstart","pickend","update:value"],setup(e,t){var{slots:r,emit:i}=t,a=F(null),n=F(null),o=Le(a,i),s=aS(e),u=F(null),l=()=>{var y=u.value;s.height=y.$el.offsetHeight},f=F([]),d=F([]);function p(y){var b=d.value;if(b instanceof HTMLCollection)return Array.prototype.indexOf.call(b,y.el);b=b.filter(g=>g.type!==Hr);var w=b.indexOf(y);return w!==-1?w:f.value.indexOf(y)}var h=function(y){var b=ee({get(){var w=p(y.vnode);return s.value[w]||0},set(w){var g=p(y.vnode);if(!(g<0)){var _=s.value[g];if(_!==w){s.value[g]=w;var c=s.value.map(v=>v);i("update:value",c),o("change",{},{value:c})}}}});return b};return ze("getPickerViewColumn",h),ze("pickerViewProps",e),ze("pickerViewState",s),ia(()=>{l(),d.value=n.value.children}),()=>{var y=r.default&&r.default();return I("uni-picker-view",{ref:a},[I(Or,{ref:u,onResize:b=>{var{height:w}=b;return s.height=w}},null,8,["onResize"]),I("div",{ref:n,class:"uni-picker-view-wrapper"},[y],512)],512)}}});class lh{constructor(t){this._drag=t,this._dragLog=Math.log(t),this._x=0,this._v=0,this._startTime=0}set(t,r){this._x=t,this._v=r,this._startTime=new Date().getTime()}setVelocityByEnd(t){this._v=(t-this._x)*this._dragLog/(Math.pow(this._drag,100)-1)}x(t){t===void 0&&(t=(new Date().getTime()-this._startTime)/1e3);var r=t===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,t);return this._dt=t,this._x+this._v*r/this._dragLog-this._v/this._dragLog}dx(t){t===void 0&&(t=(new Date().getTime()-this._startTime)/1e3);var r=t===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,t);return this._dt=t,this._v*r}done(){return Math.abs(this.dx())<3}reconfigure(t){var r=this.x(),i=this.dx();this._drag=t,this._dragLog=Math.log(t),this.set(r,i)}configuration(){var t=this;return[{label:"Friction",read:function(){return t._drag},write:function(r){t.reconfigure(r)},min:.001,max:.1,step:.001}]}}function uh(e,t,r){return e>t-r&&e0){var f=(-i-Math.sqrt(o))/(2*a),d=(-i+Math.sqrt(o))/(2*a),p=(r-f*t)/(d-f),h=t-p;return{x:function(_){var c,v;return _===this._t&&(c=this._powER1T,v=this._powER2T),this._t=_,c||(c=this._powER1T=Math.pow(Math.E,f*_)),v||(v=this._powER2T=Math.pow(Math.E,d*_)),h*c+p*v},dx:function(_){var c,v;return _===this._t&&(c=this._powER1T,v=this._powER2T),this._t=_,c||(c=this._powER1T=Math.pow(Math.E,f*_)),v||(v=this._powER2T=Math.pow(Math.E,d*_)),h*f*c+p*d*v}}}var y=Math.sqrt(4*a*n-i*i)/(2*a),b=-i/2*a,w=t,g=(r-b*t)/y;return{x:function(_){return Math.pow(Math.E,b*_)*(w*Math.cos(y*_)+g*Math.sin(y*_))},dx:function(_){var c=Math.pow(Math.E,b*_),v=Math.cos(y*_),m=Math.sin(y*_);return c*(g*y*v-w*y*m)+b*c*(g*m+w*v)}}}x(t){return t===void 0&&(t=(new Date().getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(t):0}dx(t){return t===void 0&&(t=(new Date().getTime()-this._startTime)/1e3),this._solution?this._solution.dx(t):0}setEnd(t,r,i){if(i||(i=new Date().getTime()),t!==this._endPosition||!Ir(r,.4)){r=r||0;var a=this._endPosition;this._solution&&(Ir(r,.4)&&(r=this._solution.dx((i-this._startTime)/1e3)),a=this._solution.x((i-this._startTime)/1e3),Ir(r,.4)&&(r=0),Ir(a,.4)&&(a=0),a+=this._endPosition),this._solution&&Ir(a-t,.4)&&Ir(r,.4)||(this._endPosition=t,this._solution=this._solve(a-this._endPosition,r),this._startTime=i)}}snap(t){this._startTime=new Date().getTime(),this._endPosition=t,this._solution={x:function(){return 0},dx:function(){return 0}}}done(t){return t||(t=new Date().getTime()),uh(this.x(),this._endPosition,.4)&&Ir(this.dx(),.4)}reconfigure(t,r,i){this._m=t,this._k=r,this._c=i,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=new Date().getTime())}springConstant(){return this._k}damping(){return this._c}configuration(){function t(i,a){i.reconfigure(1,a,i.damping())}function r(i,a){i.reconfigure(1,i.springConstant(),a)}return[{label:"Spring Constant",read:this.springConstant.bind(this),write:t.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:r.bind(this,this),min:1,max:500}]}}class oS{constructor(t,r,i){this._extent=t,this._friction=r||new lh(.01),this._spring=i||new fh(1,90,20),this._startTime=0,this._springing=!1,this._springOffset=0}snap(t,r){this._springOffset=0,this._springing=!0,this._spring.snap(t),this._spring.setEnd(r)}set(t,r){this._friction.set(t,r),t>0&&r>=0?(this._springOffset=0,this._springing=!0,this._spring.snap(t),this._spring.setEnd(0)):t<-this._extent&&r<=0?(this._springOffset=0,this._springing=!0,this._spring.snap(t),this._spring.setEnd(-this._extent)):this._springing=!1,this._startTime=new Date().getTime()}x(t){if(!this._startTime)return 0;if(t||(t=(new Date().getTime()-this._startTime)/1e3),this._springing)return this._spring.x()+this._springOffset;var r=this._friction.x(t),i=this.dx(t);return(r>0&&i>=0||r<-this._extent&&i<=0)&&(this._springing=!0,this._spring.setEnd(0,i),r<-this._extent?this._springOffset=-this._extent:this._springOffset=0,r=this._spring.x()+this._springOffset),r}dx(t){var r;return this._lastTime===t?r=this._lastDx:r=this._springing?this._spring.dx(t):this._friction.dx(t),this._lastTime=t,this._lastDx=r,r}done(){return this._springing?this._spring.done():this._friction.done()}setVelocityByEnd(t){this._friction.setVelocityByEnd(t)}configuration(){var t=this._friction.configuration();return t.push.apply(t,this._spring.configuration()),t}}function sS(e,t,r){var i={id:0,cancelled:!1};function a(o,s,u,l){if(!o||!o.cancelled){u(s);var f=s.done();f||o.cancelled||(o.id=requestAnimationFrame(a.bind(null,o,s,u,l))),f&&l&&l(s)}}function n(o){o&&o.id&&cancelAnimationFrame(o.id),o&&(o.cancelled=!0)}return a(i,e,t,r),{cancel:n.bind(null,i),model:e}}class lS{constructor(t,r){r=r||{},this._element=t,this._options=r,this._enableSnap=r.enableSnap||!1,this._itemSize=r.itemSize||0,this._enableX=r.enableX||!1,this._enableY=r.enableY||!1,this._shouldDispatchScrollEvent=!!r.onScroll,this._enableX?(this._extent=(r.scrollWidth||this._element.offsetWidth)-this._element.parentElement.offsetWidth,this._scrollWidth=r.scrollWidth):(this._extent=(r.scrollHeight||this._element.offsetHeight)-this._element.parentElement.offsetHeight,this._scrollHeight=r.scrollHeight),this._position=0,this._scroll=new oS(this._extent,r.friction,r.spring),this._onTransitionEnd=this.onTransitionEnd.bind(this),this.updatePosition()}onTouchStart(){this._startPosition=this._position,this._lastChangePos=this._startPosition,this._startPosition>0?this._startPosition/=.5:this._startPosition<-this._extent&&(this._startPosition=(this._startPosition+this._extent)/.5-this._extent),this._animation&&(this._animation.cancel(),this._scrolling=!1),this.updatePosition()}onTouchMove(t,r){var i=this._startPosition;this._enableX?i+=t:this._enableY&&(i+=r),i>0?i*=.5:i<-this._extent&&(i=.5*(i+this._extent)-this._extent),this._position=i,this.updatePosition(),this.dispatchScroll()}onTouchEnd(t,r,i){if(this._enableSnap&&this._position>-this._extent&&this._position<0){if(this._enableY&&(Math.abs(r)this._itemSize/2?n-(this._itemSize-Math.abs(o)):n-o,a<=0&&a>=-this._extent&&this._scroll.setVelocityByEnd(a)}this._lastTime=Date.now(),this._lastDelay=0,this._scrolling=!0,this._lastChangePos=this._position,this._lastIdx=Math.floor(Math.abs(this._position/this._itemSize)),this._animation=sS(this._scroll,()=>{var s=Date.now(),u=(s-this._scroll._startTime)/1e3,l=this._scroll.x(u);this._position=l,this.updatePosition();var f=this._scroll.dx(u);this._shouldDispatchScrollEvent&&s-this._lastTime>this._lastDelay&&(this.dispatchScroll(),this._lastDelay=Math.abs(2e3/f),this._lastTime=s)},()=>{this._enableSnap&&(a<=0&&a>=-this._extent&&(this._position=a,this.updatePosition()),typeof this._options.onSnap=="function"&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._shouldDispatchScrollEvent&&this.dispatchScroll(),this._scrolling=!1})}onTransitionEnd(){this._element.style.webkitTransition="",this._element.style.transition="",this._element.removeEventListener("transitionend",this._onTransitionEnd),this._snapping&&(this._snapping=!1),this.dispatchScroll()}snap(){var t=this._itemSize,r=this._position%t,i=Math.abs(r)>this._itemSize/2?this._position-(t-Math.abs(r)):this._position-r;this._position!==i&&(this._snapping=!0,this.scrollTo(-i),typeof this._options.onSnap=="function"&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize)))}scrollTo(t,r){this._animation&&(this._animation.cancel(),this._scrolling=!1),typeof t=="number"&&(this._position=-t),this._position<-this._extent?this._position=-this._extent:this._position>0&&(this._position=0);var i="transform "+(r||.2)+"s ease-out";this._element.style.webkitTransition="-webkit-"+i,this._element.style.transition=i,this.updatePosition(),this._element.addEventListener("transitionend",this._onTransitionEnd)}dispatchScroll(){if(typeof this._options.onScroll=="function"&&Math.round(Number(this._lastPos))!==Math.round(this._position)){this._lastPos=this._position;var t={target:{scrollLeft:this._enableX?-this._position:0,scrollTop:this._enableY?-this._position:0,scrollHeight:this._scrollHeight||this._element.offsetHeight,scrollWidth:this._scrollWidth||this._element.offsetWidth,offsetHeight:this._element.parentElement.offsetHeight,offsetWidth:this._element.parentElement.offsetWidth}};this._options.onScroll(t)}}update(t,r,i){var a=0,n=this._position;this._enableX?(a=this._element.childNodes.length?(r||this._element.offsetWidth)-this._element.parentElement.offsetWidth:0,this._scrollWidth=r):(a=this._element.childNodes.length?(r||this._element.offsetHeight)-this._element.parentElement.offsetHeight:0,this._scrollHeight=r),typeof t=="number"&&(this._position=-t),this._position<-a?this._position=-a:this._position>0&&(this._position=0),this._itemSize=i||this._itemSize,this.updatePosition(),n!==this._position&&(this.dispatchScroll(),typeof this._options.onSnap=="function"&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._extent=a,this._scroll._extent=a}updatePosition(){var t="";this._enableX?t="translateX("+this._position+"px) translateZ(0)":this._enableY&&(t="translateY("+this._position+"px) translateZ(0)"),this._element.style.webkitTransform=t,this._element.style.transform=t}isScrolling(){return this._scrolling||this._snapping}}function uS(e,t){var r={trackingID:-1,maxDy:0,maxDx:0},i=new lS(e,t);function a(u){var l=u,f=u;return l.detail.state==="move"||l.detail.state==="end"?{x:l.detail.dx,y:l.detail.dy}:{x:f.screenX-r.x,y:f.screenY-r.y}}function n(u){var l=u,f=u;l.detail.state==="start"?(r.trackingID="touch",r.x=l.detail.x,r.y=l.detail.y):(r.trackingID="mouse",r.x=f.screenX,r.y=f.screenY),r.maxDx=0,r.maxDy=0,r.historyX=[0],r.historyY=[0],r.historyTime=[l.detail.timeStamp||f.timeStamp],r.listener=i,i.onTouchStart&&i.onTouchStart(),(typeof u.cancelable!="boolean"||u.cancelable)&&u.preventDefault()}function o(u){var l=u,f=u;if(r.trackingID!==-1){(typeof u.cancelable!="boolean"||u.cancelable)&&u.preventDefault();var d=a(u);if(d){for(r.maxDy=Math.max(r.maxDy,Math.abs(d.y)),r.maxDx=Math.max(r.maxDx,Math.abs(d.x)),r.historyX.push(d.x),r.historyY.push(d.y),r.historyTime.push(l.detail.timeStamp||f.timeStamp);r.historyTime.length>10;)r.historyTime.shift(),r.historyX.shift(),r.historyY.shift();r.listener&&r.listener.onTouchMove&&r.listener.onTouchMove(d.x,d.y)}}}function s(u){if(r.trackingID!==-1){u.preventDefault();var l=a(u);if(l){var f=r.listener;r.trackingID=-1,r.listener=null;var d=r.historyTime.length,p={x:0,y:0};if(d>2)for(var h=r.historyTime.length-1,y=r.historyTime[h],b=r.historyX[h],w=r.historyY[h];h>0;){h--;var g=r.historyTime[h],_=y-g;if(_>30&&_<50){p.x=(b-r.historyX[h])/(_/1e3),p.y=(w-r.historyY[h])/(_/1e3);break}}r.historyTime=[],r.historyX=[],r.historyY=[],f&&f.onTouchEnd&&f.onTouchEnd(l.x,l.y,p)}}}return{scroller:i,handleTouchStart:n,handleTouchMove:o,handleTouchEnd:s}}var fS=0;function cS(e){var t="uni-picker-view-content-".concat(fS++);function r(){var i=document.createElement("style");i.innerText=".uni-picker-view-content.".concat(t,">*{height: ").concat(e.value,"px;overflow: hidden;}"),document.head.appendChild(i)}return W(()=>e.value,r),t}function vS(e){var t=20,r=0,i=0;e.addEventListener("touchstart",a=>{var n=a.changedTouches[0];r=n.clientX,i=n.clientY}),e.addEventListener("touchend",a=>{var n=a.changedTouches[0];if(Math.abs(n.clientX-r){s[l]=n[l]}),a.target.dispatchEvent(s)}})}var dS=de({name:"PickerViewColumn",setup(e,t){var{slots:r,emit:i}=t,a=F(null),n=F(null),o=_e("getPickerViewColumn"),s=Dt(),u=o?o(s):F(0),l=_e("pickerViewProps"),f=_e("pickerViewState"),d=F(34),p=F(null),h=()=>{var M=p.value;d.value=M.$el.offsetHeight},y=ee(()=>(f.height-d.value)/2),{state:b}=Zd(),w=cS(d),g,_=ke({current:u.value,length:0}),c;function v(){g&&!c&&(c=!0,Ur(()=>{c=!1;var M=Math.min(_.current,_.length-1);M=Math.max(M,0),g.update(M*d.value,void 0,d.value)}))}W(()=>u.value,M=>{M!==_.current&&(_.current=M,v())}),W(()=>_.current,M=>u.value=M),W([()=>d.value,()=>_.length,()=>f.height],v);var m=0;function x(M){var R=m+M.deltaY;if(Math.abs(R)>10){m=0;var U=Math.min(_.current+(R<0?-1:1),_.length-1);_.current=U=Math.max(U,0),g.scrollTo(U*d.value)}else m=R;M.preventDefault()}function E(M){var{clientY:R}=M,U=a.value;if(!g.isScrolling()){var te=U.getBoundingClientRect(),L=R-te.top-f.height/2,H=d.value/2;if(!(Math.abs(L)<=H)){var q=Math.ceil((Math.abs(L)-H)/d.value),re=L<0?-q:q,V=Math.min(_.current+re,_.length-1);_.current=V=Math.max(V,0),g.scrollTo(V*d.value)}}}var C=()=>{var M=a.value,R=n.value,{scroller:U,handleTouchStart:te,handleTouchMove:L,handleTouchEnd:H}=uS(R,{enableY:!0,enableX:!1,enableSnap:!0,itemSize:d.value,friction:new lh(1e-4),spring:new fh(2,90,20),onSnap:q=>{!isNaN(q)&&q!==_.current&&(_.current=q)}});g=U,Hn(M,q=>{switch(q.detail.state){case"start":te(q),or({disable:!0});break;case"move":L(q),q.stopPropagation();break;case"end":case"cancel":H(q),or({disable:!1})}},!0),vS(M),Un(),v()};{var O=!1;ia(()=>{_.length=n.value.children.length,O||(O=!0,h(),C())})}return()=>{var M=r.default&&r.default(),R="".concat(y.value,"px 0");return I("uni-picker-view-column",{ref:a},[I("div",{onWheel:x,onClick:E,class:"uni-picker-view-group"},[I("div",rt(b.attrs,{class:["uni-picker-view-mask",l.maskClass],style:"background-size: 100% ".concat(y.value,"px;").concat(l.maskStyle)}),null,16),I("div",rt(b.attrs,{class:["uni-picker-view-indicator",l.indicatorClass],style:l.indicatorStyle}),[I(Or,{ref:p,onResize:U=>{var{height:te}=U;return d.value=te}},null,8,["onResize"])],16),I("div",{ref:n,class:["uni-picker-view-content",w],style:{padding:R}},[M],6)],40,["onWheel","onClick"])],512)}}}),hS=16,kr={activeColor:Na,backgroundColor:"#EBEBEB",activeMode:"backwards"},gS={percent:{type:[Number,String],default:0,validator(e){return!isNaN(parseFloat(e))}},fontSize:{type:[String,Number],default:hS},showInfo:{type:[Boolean,String],default:!1},strokeWidth:{type:[Number,String],default:6,validator(e){return!isNaN(parseFloat(e))}},color:{type:String,default:kr.activeColor},activeColor:{type:String,default:kr.activeColor},backgroundColor:{type:String,default:kr.backgroundColor},active:{type:[Boolean,String],default:!1},activeMode:{type:String,default:kr.activeMode},duration:{type:[Number,String],default:30,validator(e){return!isNaN(parseFloat(e))}},borderRadius:{type:[Number,String],default:0}},pS=de({name:"Progress",props:gS,setup(e){var t=mS(e);return ch(t,e),W(()=>t.realPercent,(r,i)=>{t.strokeTimer&&clearInterval(t.strokeTimer),t.lastPercent=i||0,ch(t,e)}),()=>{var{showInfo:r}=e,{outerBarStyle:i,innerBarStyle:a,currentPercent:n}=t;return I("uni-progress",{class:"uni-progress"},[I("div",{style:i,class:"uni-progress-bar"},[I("div",{style:a,class:"uni-progress-inner-bar"},null,4)],4),r?I("p",{class:"uni-progress-info"},[n+"%"]):""])}}});function mS(e){var t=F(0),r=ee(()=>"background-color: ".concat(e.backgroundColor,"; height: ").concat(e.strokeWidth,"px;")),i=ee(()=>{var o=e.color!==kr.activeColor&&e.activeColor===kr.activeColor?e.color:e.activeColor;return"width: ".concat(t.value,"%;background-color: ").concat(o)}),a=ee(()=>{var o=parseFloat(e.percent);return o<0&&(o=0),o>100&&(o=100),o}),n=ke({outerBarStyle:r,innerBarStyle:i,realPercent:a,currentPercent:t,strokeTimer:0,lastPercent:0});return n}function ch(e,t){t.active?(e.currentPercent=t.activeMode===kr.activeMode?0:e.lastPercent,e.strokeTimer=setInterval(()=>{e.currentPercent+1>e.realPercent?(e.currentPercent=e.realPercent,e.strokeTimer&&clearInterval(e.strokeTimer)):e.currentPercent+=1},parseFloat(t.duration))):e.currentPercent=e.realPercent}var vh=cn("ucg"),_S={name:{type:String,default:""}},bS=de({name:"RadioGroup",props:_S,setup(e,t){var{emit:r,slots:i}=t,a=F(null),n=Le(a,r);return wS(e,n),()=>I("uni-radio-group",{ref:a},[i.default&&i.default()],512)}});function wS(e,t){var r=[];Re(()=>{s(r.length-1)});var i=()=>{var u;return(u=r.find(l=>l.value.radioChecked))===null||u===void 0?void 0:u.value.value};ze(vh,{addField(u){r.push(u)},removeField(u){r.splice(r.indexOf(u),1)},radioChange(u,l){var f=r.indexOf(l);s(f,!0),t("change",u,{value:i()})}});var a=_e(It,!1),n={submit:()=>{var u=["",null];return e.name!==""&&(u[0]=e.name,u[1]=i()),u}};a&&(a.addField(n),Ce(()=>{a.removeField(n)}));function o(u,l){u.value={radioChecked:l,value:u.value.value}}function s(u,l){r.forEach((f,d)=>{d!==u&&(l?o(r[d],!1):r.forEach((p,h)=>{d>=h||r[h].value.radioChecked&&o(r[d],!1)}))})}return r}var yS={checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007aff"},value:{type:String,default:""}},xS=de({name:"Radio",props:yS,setup(e,t){var{slots:r}=t,i=F(e.checked),a=F(e.value),n=ee(()=>"background-color: ".concat(e.color,";border-color: ").concat(e.color,";"));W([()=>e.checked,()=>e.value],d=>{var[p,h]=d;i.value=p,a.value=h});var o=()=>{i.value=!1},{uniCheckGroup:s,uniLabel:u,field:l}=SS(i,a,o),f=d=>{e.disabled||(i.value=!0,s&&s.radioChange(d,l))};return u&&(u.addHandler(f),Ce(()=>{u.removeHandler(f)})),Pn(e,{"label-click":f}),()=>{var d=ai(e,"disabled");return I("uni-radio",rt(d,{onClick:f}),[I("div",{class:"uni-radio-wrapper"},[I("div",{class:["uni-radio-input",{"uni-radio-input-disabled":e.disabled}],style:i.value?n.value:""},[i.value?dn(vn,"#fff",18):""],6),r.default&&r.default()])],16,["onClick"])}}});function SS(e,t,r){var i=ee({get:()=>({radioChecked:Boolean(e.value),value:t.value}),set:u=>{var{radioChecked:l}=u;e.value=l}}),a={reset:r},n=_e(vh,!1);n&&n.addField(i);var o=_e(It,!1);o&&o.addField(a);var s=_e(Ji,!1);return Ce(()=>{n&&n.removeField(i),o&&o.removeField(a)}),{uniCheckGroup:n,uniForm:o,uniLabel:s,field:i}}var dh={a:"",abbr:"",address:"",article:"",aside:"",b:"",bdi:"",bdo:["dir"],big:"",blockquote:"",br:"",caption:"",center:"",cite:"",code:"",col:["span","width"],colgroup:["span","width"],dd:"",del:"",div:"",dl:"",dt:"",em:"",fieldset:"",font:"",footer:"",h1:"",h2:"",h3:"",h4:"",h5:"",h6:"",header:"",hr:"",i:"",img:["alt","src","height","width"],ins:"",label:"",legend:"",li:"",mark:"",nav:"",ol:["start","type"],p:"",pre:"",q:"",rt:"",ruby:"",s:"",section:"",small:"",span:"",strong:"",sub:"",sup:"",table:["width"],tbody:"",td:["colspan","height","rowspan","width"],tfoot:"",th:["colspan","height","rowspan","width"],thead:"",tr:["colspan","height","rowspan","width"],tt:"",u:"",ul:""},Tl={amp:"&",gt:">",lt:"<",nbsp:" ",quot:'"',apos:"'"};function ES(e){return e.replace(/&(([a-zA-Z]+)|(#x{0,1}[\da-zA-Z]+));/gi,function(t,r){if(ie(Tl,r)&&Tl[r])return Tl[r];if(/^#[0-9]{1,4}$/.test(r))return String.fromCharCode(r.slice(1));if(/^#x[0-9a-f]{1,4}$/i.test(r))return String.fromCharCode("0"+r.slice(1));var i=document.createElement("div");return i.innerHTML=t,i.innerText||i.textContent})}function TS(e,t,r){return e==="img"&&t==="src"?st(r):r}function hh(e,t,r,i){return e.forEach(function(a){if(!!mt(a))if(!ie(a,"type")||a.type==="node"){if(!(typeof a.name=="string"&&a.name))return;var n=a.name.toLowerCase();if(!ie(dh,n))return;var o=document.createElement(n);if(!o)return;var s=a.attrs;if(mt(s)){var u=dh[n]||[];Object.keys(s).forEach(function(f){var d=s[f];switch(f){case"class":Array.isArray(d)&&(d=d.join(" "));case"style":o.setAttribute(f,d),r&&o.setAttribute(r,"");break;default:u.indexOf(f)!==-1&&o.setAttribute(f,TS(n,f,d))}})}CS(a,o,i);var l=a.children;Array.isArray(l)&&l.length&&hh(a.children,o,r,i),t.appendChild(o)}else a.type==="text"&&typeof a.text=="string"&&a.text!==""&&t.appendChild(document.createTextNode(ES(a.text)))}),t}function CS(e,t,r){["a","img"].includes(e.name)&&r&&(t.setAttribute("onClick","return false;"),t.addEventListener("click",i=>{r(i,{node:e}),i.stopPropagation()},!0))}function OS(e){return e.replace(/<\?xml.*\?>\n/,"").replace(/\n/,"").replace(/\n/,"")}function AS(e){return e.reduce(function(t,r){var i=r.value,a=r.name;return i.match(/ /)&&a!=="style"&&(i=i.split(" ")),t[a]?Array.isArray(t[a])?t[a].push(i):t[a]=[t[a],i]:t[a]=i,t},{})}function IS(e){e=OS(e);var t=[],r={node:"root",children:[]};return Wd(e,{start:function(i,a,n){var o={name:i};if(a.length!==0&&(o.attrs=AS(a)),n){var s=t[0]||r;s.children||(s.children=[]),s.children.push(o)}else t.unshift(o)},end:function(i){var a=t.shift();if(a.name!==i&&console.error("invalid state: mismatch end tag"),t.length===0)r.children.push(a);else{var n=t[0];n.children||(n.children=[]),n.children.push(a)}},chars:function(i){var a={type:"text",text:i};if(t.length===0)r.children.push(a);else{var n=t[0];n.children||(n.children=[]),n.children.push(a)}},comment:function(i){var a={node:"comment",text:i},n=t[0];n.children||(n.children=[]),n.children.push(a)}}),r.children}var kS={nodes:{type:[Array,String],default:function(){return[]}}},MS=de({name:"RichText",compatConfig:{MODE:3},props:kS,emits:["click","touchstart","touchmove","touchcancel","touchend","longpress"],setup(e,t){var{emit:r,attrs:i}=t,a=Dt(),n=F(null),o=Le(n,r),s=!!i.onItemclick;function u(f){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};o("itemclick",f,d)}function l(f){typeof f=="string"&&(f=IS(f));var d=hh(f,document.createDocumentFragment(),a&&a.vnode.scopeId||"",s&&u);n.value.firstElementChild.innerHTML="",n.value.firstElementChild.appendChild(d)}return W(()=>e.nodes,f=>{l(f)}),Re(()=>{l(e.nodes)}),()=>I("uni-rich-text",{ref:n},[I("div",null,null)],512)}}),gh=mi(!0),RS={scrollX:{type:[Boolean,String],default:!1},scrollY:{type:[Boolean,String],default:!1},upperThreshold:{type:[Number,String],default:50},lowerThreshold:{type:[Number,String],default:50},scrollTop:{type:[Number,String],default:0},scrollLeft:{type:[Number,String],default:0},scrollIntoView:{type:String,default:""},scrollWithAnimation:{type:[Boolean,String],default:!1},enableBackToTop:{type:[Boolean,String],default:!1},refresherEnabled:{type:[Boolean,String],default:!1},refresherThreshold:{type:Number,default:45},refresherDefaultStyle:{type:String,default:"back"},refresherBackground:{type:String,default:"#fff"},refresherTriggered:{type:[Boolean,String],default:!1}},LS=de({name:"ScrollView",compatConfig:{MODE:3},props:RS,emits:["scroll","scrolltoupper","scrolltolower","refresherrefresh","refresherrestore","refresherpulling","refresherabort","update:refresherTriggered"],setup(e,t){var{emit:r,slots:i}=t,a=F(null),n=F(null),o=F(null),s=F(null),u=F(null),l=Le(a,r),{state:f,scrollTopNumber:d,scrollLeftNumber:p}=PS(e);NS(e,f,d,p,l,a,n,s,r);var h=ee(()=>{var y="";return e.scrollX?y+="overflow-x:auto;":y+="overflow-x:hidden;",e.scrollY?y+="overflow-y:auto;":y+="overflow-y:hidden;",y});return()=>{var{refresherEnabled:y,refresherBackground:b,refresherDefaultStyle:w}=e,{refresherHeight:g,refreshState:_,refreshRotate:c}=f;return I("uni-scroll-view",{ref:a},[I("div",{ref:o,class:"uni-scroll-view"},[I("div",{ref:n,style:h.value,class:"uni-scroll-view"},[I("div",{ref:s,class:"uni-scroll-view-content"},[y?I("div",{ref:u,style:{backgroundColor:b,height:g+"px"},class:"uni-scroll-view-refresher"},[w!=="none"?I("div",{class:"uni-scroll-view-refresh"},[I("div",{class:"uni-scroll-view-refresh-inner"},[_=="pulling"?I("svg",{key:"refresh__icon",style:{transform:"rotate("+c+"deg)"},fill:"#2BD009",class:"uni-scroll-view-refresh__icon",width:"24",height:"24",viewBox:"0 0 24 24"},[I("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},null),I("path",{d:"M0 0h24v24H0z",fill:"none"},null)],4):null,_=="refreshing"?I("svg",{key:"refresh__spinner",class:"uni-scroll-view-refresh__spinner",width:"24",height:"24",viewBox:"25 25 50 50"},[I("circle",{cx:"50",cy:"50",r:"20",fill:"none",style:"color: #2bd009","stroke-width":"3"},null)]):null])]):null,w=="none"?i.refresher&&i.refresher():null],4):null,i.default&&i.default()],512)],4)],512)],512)}}});function PS(e){var t=ee(()=>Number(e.scrollTop)||0),r=ee(()=>Number(e.scrollLeft)||0),i=ke({lastScrollTop:t.value,lastScrollLeft:r.value,lastScrollToUpperTime:0,lastScrollToLowerTime:0,refresherHeight:0,refreshRotate:0,refreshState:""});return{state:i,scrollTopNumber:t,scrollLeftNumber:r}}function NS(e,t,r,i,a,n,o,s,u){var l=!1,f=0,d=!1,p=()=>{},h=ee(()=>{var x=Number(e.upperThreshold);return isNaN(x)?50:x}),y=ee(()=>{var x=Number(e.lowerThreshold);return isNaN(x)?50:x});function b(x,E){var C=o.value,O=0,M="";if(x<0?x=0:E==="x"&&x>C.scrollWidth-C.offsetWidth?x=C.scrollWidth-C.offsetWidth:E==="y"&&x>C.scrollHeight-C.offsetHeight&&(x=C.scrollHeight-C.offsetHeight),E==="x"?O=C.scrollLeft-x:E==="y"&&(O=C.scrollTop-x),O!==0){var R=s.value;R.style.transition="transform .3s ease-out",R.style.webkitTransition="-webkit-transform .3s ease-out",E==="x"?M="translateX("+O+"px) translateZ(0)":E==="y"&&(M="translateY("+O+"px) translateZ(0)"),R.removeEventListener("transitionend",p),R.removeEventListener("webkitTransitionEnd",p),p=()=>v(x,E),R.addEventListener("transitionend",p),R.addEventListener("webkitTransitionEnd",p),E==="x"?C.style.overflowX="hidden":E==="y"&&(C.style.overflowY="hidden"),R.style.transform=M,R.style.webkitTransform=M}}function w(x){var E=x.target;a("scroll",x,{scrollLeft:E.scrollLeft,scrollTop:E.scrollTop,scrollHeight:E.scrollHeight,scrollWidth:E.scrollWidth,deltaX:t.lastScrollLeft-E.scrollLeft,deltaY:t.lastScrollTop-E.scrollTop}),e.scrollY&&(E.scrollTop<=h.value&&t.lastScrollTop-E.scrollTop>0&&x.timeStamp-t.lastScrollToUpperTime>200&&(a("scrolltoupper",x,{direction:"top"}),t.lastScrollToUpperTime=x.timeStamp),E.scrollTop+E.offsetHeight+y.value>=E.scrollHeight&&t.lastScrollTop-E.scrollTop<0&&x.timeStamp-t.lastScrollToLowerTime>200&&(a("scrolltolower",x,{direction:"bottom"}),t.lastScrollToLowerTime=x.timeStamp)),e.scrollX&&(E.scrollLeft<=h.value&&t.lastScrollLeft-E.scrollLeft>0&&x.timeStamp-t.lastScrollToUpperTime>200&&(a("scrolltoupper",x,{direction:"left"}),t.lastScrollToUpperTime=x.timeStamp),E.scrollLeft+E.offsetWidth+y.value>=E.scrollWidth&&t.lastScrollLeft-E.scrollLeft<0&&x.timeStamp-t.lastScrollToLowerTime>200&&(a("scrolltolower",x,{direction:"right"}),t.lastScrollToLowerTime=x.timeStamp)),t.lastScrollTop=E.scrollTop,t.lastScrollLeft=E.scrollLeft}function g(x){e.scrollY&&(e.scrollWithAnimation?b(x,"y"):o.value.scrollTop=x)}function _(x){e.scrollX&&(e.scrollWithAnimation?b(x,"x"):o.value.scrollLeft=x)}function c(x){if(x){if(!/^[_a-zA-Z][-_a-zA-Z0-9:]*$/.test(x)){console.error("id error: scroll-into-view=".concat(x));return}var E=n.value.querySelector("#"+x);if(E){var C=o.value.getBoundingClientRect(),O=E.getBoundingClientRect();if(e.scrollX){var M=O.left-C.left,R=o.value.scrollLeft,U=R+M;e.scrollWithAnimation?b(U,"x"):o.value.scrollLeft=U}if(e.scrollY){var te=O.top-C.top,L=o.value.scrollTop,H=L+te;e.scrollWithAnimation?b(H,"y"):o.value.scrollTop=H}}}}function v(x,E){s.value.style.transition="",s.value.style.webkitTransition="",s.value.style.transform="",s.value.style.webkitTransform="";var C=o.value;E==="x"?(C.style.overflowX=e.scrollX?"auto":"hidden",C.scrollLeft=x):E==="y"&&(C.style.overflowY=e.scrollY?"auto":"hidden",C.scrollTop=x),s.value.removeEventListener("transitionend",p),s.value.removeEventListener("webkitTransitionEnd",p)}function m(x){switch(x){case"refreshing":t.refresherHeight=e.refresherThreshold,l||(l=!0,a("refresherrefresh",{},{}),u("update:refresherTriggered",!0));break;case"restore":case"refresherabort":l=!1,t.refresherHeight=f=0,x==="restore"&&(d=!1,a("refresherrestore",{},{})),x==="refresherabort"&&d&&(d=!1,a("refresherabort",{},{}));break}t.refreshState=x}Re(()=>{Ur(()=>{g(r.value),_(i.value)}),c(e.scrollIntoView);var x=function(U){U.preventDefault(),U.stopPropagation(),w(U)},E={x:0,y:0},C=null,O=function(U){if(E!==null){var te=U.touches[0].pageX,L=U.touches[0].pageY,H=o.value;if(Math.abs(te-E.x)>Math.abs(L-E.y))if(e.scrollX){if(H.scrollLeft===0&&te>E.x){C=!1;return}else if(H.scrollWidth===H.offsetWidth+H.scrollLeft&&teE.y)C=!1,e.refresherEnabled&&U.cancelable!==!1&&U.preventDefault();else if(H.scrollHeight===H.offsetHeight+H.scrollTop&&L0&&(d=!0,a("refresherpulling",U,{deltaY:q})));var re=t.refresherHeight/e.refresherThreshold;t.refreshRotate=(re>1?1:re)*360}}},M=function(U){U.touches.length===1&&(or({disable:!0}),E={x:U.touches[0].pageX,y:U.touches[0].pageY})},R=function(U){E=null,or({disable:!1}),t.refresherHeight>=e.refresherThreshold?m("refreshing"):m("refresherabort")};o.value.addEventListener("touchstart",M,gh),o.value.addEventListener("touchmove",O,mi(!1)),o.value.addEventListener("scroll",x,mi(!1)),o.value.addEventListener("touchend",R,gh),Un(),Ce(()=>{o.value.removeEventListener("touchstart",M),o.value.removeEventListener("touchmove",O),o.value.removeEventListener("scroll",x),o.value.removeEventListener("touchend",R)})}),ls(()=>{e.scrollY&&(o.value.scrollTop=t.lastScrollTop),e.scrollX&&(o.value.scrollLeft=t.lastScrollLeft)}),W(r,x=>{g(x)}),W(i,x=>{_(x)}),W(()=>e.scrollIntoView,x=>{c(x)}),W(()=>e.refresherTriggered,x=>{x===!0?m("refreshing"):x===!1&&m("restore")})}var DS={name:{type:String,default:""},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},value:{type:[Number,String],default:0},step:{type:[Number,String],default:1},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#e9e9e9"},backgroundColor:{type:String,default:"#e9e9e9"},activeColor:{type:String,default:"#007aff"},selectedColor:{type:String,default:"#007aff"},blockColor:{type:String,default:"#ffffff"},blockSize:{type:[Number,String],default:28},showValue:{type:[Boolean,String],default:!1}},BS=de({name:"Slider",props:DS,emits:["changing","change"],setup(e,t){var{emit:r}=t,i=F(null),a=F(null),n=F(null),o=F(Number(e.value));W(()=>e.value,d=>{o.value=Number(d)});var s=Le(i,r),u=FS(e,o),{_onClick:l,_onTrack:f}=$S(e,o,i,a,s);return Re(()=>{Hn(n.value,f)}),()=>{var{setBgColor:d,setBlockBg:p,setActiveColor:h,setBlockStyle:y}=u;return I("uni-slider",{ref:i,onClick:Cr(l)},[I("div",{class:"uni-slider-wrapper"},[I("div",{class:"uni-slider-tap-area"},[I("div",{style:d.value,class:"uni-slider-handle-wrapper"},[I("div",{ref:n,style:p.value,class:"uni-slider-handle"},null,4),I("div",{style:y.value,class:"uni-slider-thumb"},null,4),I("div",{style:h.value,class:"uni-slider-track"},null,4)],4)]),Ii(I("span",{ref:a,class:"uni-slider-value"},[o.value],512),[[Li,e.showValue]])]),I("slot",null,null)],8,["onClick"])}}});function FS(e,t){var r=()=>{var o=Number(e.max),s=Number(e.min);return 100*(t.value-s)/(o-s)+"%"},i=()=>e.backgroundColor!=="#e9e9e9"?e.backgroundColor:e.color!=="#007aff"?e.color:"#007aff",a=()=>e.activeColor!=="#007aff"?e.activeColor:e.selectedColor!=="#e9e9e9"?e.selectedColor:"#e9e9e9",n={setBgColor:ee(()=>({backgroundColor:i()})),setBlockBg:ee(()=>({left:r()})),setActiveColor:ee(()=>({backgroundColor:a(),width:r()})),setBlockStyle:ee(()=>({width:e.blockSize+"px",height:e.blockSize+"px",marginLeft:-e.blockSize/2+"px",marginTop:-e.blockSize/2+"px",left:r(),backgroundColor:e.blockColor}))};return n}function $S(e,t,r,i,a){var n=d=>{e.disabled||(s(d),a("change",d,{value:t.value}))},o=d=>{var p=Number(e.max),h=Number(e.min),y=Number(e.step);return dp?p:zS.mul.call(Math.round((d-h)/y),y)+h},s=d=>{var p=Number(e.max),h=Number(e.min),y=i.value,b=getComputedStyle(y,null).marginLeft,w=y.offsetWidth;w=w+parseInt(b);var g=r.value,_=g.offsetWidth-(e.showValue?w:0),c=g.getBoundingClientRect().left,v=(d.x-c)*(p-h)/_+h;t.value=o(v)},u=d=>{if(!e.disabled)return d.detail.state==="move"?(s({x:d.detail.x}),a("changing",d,{value:t.value}),!1):d.detail.state==="end"&&a("change",d,{value:t.value})},l=_e(It,!1);if(l){var f={reset:()=>t.value=Number(e.min),submit:()=>{var d=["",null];return e.name!==""&&(d[0]=e.name,d[1]=t.value),d}};l.addField(f),Ce(()=>{l.removeField(f)})}return{_onClick:n,_onTrack:u}}var zS={mul:function(e){var t=0,r=this.toString(),i=e.toString();try{t+=r.split(".")[1].length}catch(a){}try{t+=i.split(".")[1].length}catch(a){}return Number(r.replace(".",""))*Number(i.replace(".",""))/Math.pow(10,t)}},US={indicatorDots:{type:[Boolean,String],default:!1},vertical:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},circular:{type:[Boolean,String],default:!1},interval:{type:[Number,String],default:5e3},duration:{type:[Number,String],default:500},current:{type:[Number,String],default:0},indicatorColor:{type:String,default:""},indicatorActiveColor:{type:String,default:""},previousMargin:{type:String,default:""},nextMargin:{type:String,default:""},currentItemId:{type:String,default:""},skipHiddenItemLayout:{type:[Boolean,String],default:!1},displayMultipleItems:{type:[Number,String],default:1},disableTouch:{type:[Boolean,String],default:!1}};function HS(e){var t=ee(()=>{var n=Number(e.interval);return isNaN(n)?5e3:n}),r=ee(()=>{var n=Number(e.duration);return isNaN(n)?500:n}),i=ee(()=>{var n=Math.round(e.displayMultipleItems);return isNaN(n)?1:n}),a=ke({interval:t,duration:r,displayMultipleItems:i,current:Math.round(e.current)||0,currentItemId:e.currentItemId,userTracking:!1});return a}function WS(e,t,r,i,a,n){function o(){s&&(clearTimeout(s),s=null)}var s=null,u=!0,l=0,f=1,d=null,p=!1,h=0,y,b="",w,g=ee(()=>e.circular&&r.value.length>t.displayMultipleItems);function _(L){if(!u)for(var H=r.value,q=H.length,re=L+t.displayMultipleItems,V=0;V=K.length&&(L-=K.length),L=y%1>.5||y<0?L-1:L,n("transition",{},{dx:e.vertical?0:L*V.offsetWidth,dy:e.vertical?L*V.offsetHeight:0})}function v(){d&&(c(d.toPos),d=null)}function m(L){var H=r.value.length;if(!H)return-1;var q=(Math.round(L)%H+H)%H;if(g.value){if(H<=t.displayMultipleItems)return 0}else if(q>H-t.displayMultipleItems)return H-t.displayMultipleItems;return q}function x(){d=null}function E(){if(!d){p=!1;return}var L=d,H=L.toPos,q=L.acc,re=L.endTime,V=L.source,K=re-Date.now();if(K<=0){c(H),d=null,p=!1,y=null;var ae=r.value[t.current];if(ae){var Te=ae.getItemId();n("animationfinish",{},{current:t.current,currentItemId:Te,source:V})}return}var oe=q*K*K/2,he=H+oe;c(he),w=requestAnimationFrame(E)}function C(L,H,q){x();var re=t.duration,V=r.value.length,K=l;if(g.value)if(q<0){for(;KL;)K-=V}else if(q>0){for(;K>L;)K-=V;for(;K+VL;)K-=V;K+V-L0&&f<1||(f=1)}var K=l;l=-2;var ae=t.current;ae>=0?(u=!1,t.userTracking?(c(K+ae-h),h=ae):(c(ae),e.autoplay&&O())):(u=!0,c(-t.displayMultipleItems-1))}W([()=>e.current,()=>e.currentItemId,()=>[...r.value]],()=>{var L=-1;if(e.currentItemId)for(var H=0,q=r.value;He.vertical,()=>g.value,()=>t.displayMultipleItems,()=>[...r.value]],M),W(()=>t.interval,()=>{s&&(o(),O())});function R(L,H){var q=b;b="";var re=r.value;if(!q){var V=re.length;C(L,"",g.value&&H+(V-L)%V>V/2?1:0)}var K=re[L];if(K){var ae=t.currentItemId=K.getItemId();n("change",{},{current:t.current,currentItemId:ae,source:q})}}W(()=>t.current,(L,H)=>{R(L,H),a("update:current",L)}),W(()=>t.currentItemId,L=>{a("update:currentItemId",L)});function U(L){L?O():o()}W(()=>e.autoplay&&!t.userTracking,U),U(e.autoplay&&!t.userTracking),Re(()=>{var L=!1,H=0,q=0;function re(){o(),h=l,H=0,q=Date.now(),x()}function V(ae){var Te=q;q=Date.now();var oe=r.value.length,he=oe-t.displayMultipleItems;function le(Ve){return .5-.25/(Ve+.5)}function J(Ve,sr){var Ne=h+Ve;H=.6*H+.4*sr,g.value||(Ne<0||Ne>he)&&(Ne<0?Ne=-le(-Ne):Ne>he&&(Ne=he+le(Ne-he)),H=0),c(Ne)}var xe=q-Te||1,we=i.value;e.vertical?J(-ae.dy/we.offsetHeight,-ae.ddy/xe):J(-ae.dx/we.offsetWidth,-ae.ddx/xe)}function K(ae){t.userTracking=!1;var Te=H/Math.abs(H),oe=0;!ae&&Math.abs(H)>.2&&(oe=.5*Te);var he=m(l+oe);ae?c(h):(b="touch",t.current=he,C(he,"touch",oe!==0?oe:he===0&&g.value&&l>=1?1:0))}Hn(i.value,ae=>{if(!e.disableTouch&&!u){if(ae.detail.state==="start")return t.userTracking=!0,L=!1,re();if(ae.detail.state==="end")return K(!1);if(ae.detail.state==="cancel")return K(!0);if(t.userTracking){if(!L){L=!0;var Te=Math.abs(ae.detail.dx),oe=Math.abs(ae.detail.dy);if((Te>=oe&&e.vertical||Te<=oe&&!e.vertical)&&(t.userTracking=!1),!t.userTracking){e.autoplay&&O();return}}return V(ae.detail),!1}}})}),Zt(()=>{o(),cancelAnimationFrame(w)});function te(L){C(t.current=L,b="click",g.value?1:0)}return{onSwiperDotClick:te}}var VS=de({name:"Swiper",props:US,emits:["change","transition","animationfinish","update:current","update:currentItemId"],setup(e,t){var{slots:r,emit:i}=t,a=F(null),n=Le(a,i),o=F(null),s=F(null),u=HS(e),l=ee(()=>{var _={};return(e.nextMargin||e.previousMargin)&&(_=e.vertical?{left:0,right:0,top:Vr(e.previousMargin,!0),bottom:Vr(e.nextMargin,!0)}:{top:0,bottom:0,left:Vr(e.previousMargin,!0),right:Vr(e.nextMargin,!0)}),_}),f=ee(()=>{var _=Math.abs(100/u.displayMultipleItems)+"%";return{width:e.vertical?"100%":_,height:e.vertical?_:"100%"}}),d=[],p=[],h=F([]);function y(){for(var _=[],c=function(m){var x=d[m];x instanceof Element||(x=x.el);var E=p.find(C=>x===C.rootRef.value);E&&_.push(qa(E))},v=0;v{d=s.value.children,y()});var b=function(_){p.push(_),y()};ze("addSwiperContext",b);var w=function(_){var c=p.indexOf(_);c>=0&&(p.splice(c,1),y())};ze("removeSwiperContext",w);var{onSwiperDotClick:g}=WS(e,u,h,s,i,n);return()=>{var _=r.default&&r.default();return d=xl(_),I("uni-swiper",{ref:a},[I("div",{ref:o,class:"uni-swiper-wrapper"},[I("div",{class:"uni-swiper-slides",style:l.value},[I("div",{ref:s,class:"uni-swiper-slide-frame",style:f.value},[_],4)],4),e.indicatorDots&&I("div",{class:["uni-swiper-dots",e.vertical?"uni-swiper-dots-vertical":"uni-swiper-dots-horizontal"]},[h.value.map((c,v,m)=>I("div",{onClick:()=>g(v),class:{"uni-swiper-dot":!0,"uni-swiper-dot-active":v=u.current||v{var n=_e("addSwiperContext");n&&n(a)}),Zt(()=>{var n=_e("removeSwiperContext");n&&n(a)}),()=>I("uni-swiper-item",{ref:i,style:{position:"absolute",width:"100%",height:"100%"}},[r.default&&r.default()],512)}}),qS={name:{type:String,default:""},checked:{type:[Boolean,String],default:!1},type:{type:String,default:"switch"},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007aff"}},XS=de({name:"Switch",props:qS,emits:["change"],setup(e,t){var{emit:r}=t,i=F(null),a=F(e.checked),n=ZS(e,a),o=Le(i,r);W(()=>e.checked,u=>{a.value=u});var s=u=>{e.disabled||(a.value=!a.value,o("change",u,{value:a.value}))};return n&&(n.addHandler(s),Ce(()=>{n.removeHandler(s)})),Pn(e,{"label-click":s}),()=>{var{color:u,type:l}=e,f=ai(e,"disabled");return I("uni-switch",rt({ref:i},f,{onClick:s}),[I("div",{class:"uni-switch-wrapper"},[Ii(I("div",{class:["uni-switch-input",[a.value?"uni-switch-input-checked":""]],style:{backgroundColor:a.value?u:"#DFDFDF",borderColor:a.value?u:"#DFDFDF"}},null,6),[[Li,l==="switch"]]),Ii(I("div",{class:"uni-checkbox-input"},[a.value?dn(vn,e.color,22):""],512),[[Li,l==="checkbox"]])])],16,["onClick"])}}});function ZS(e,t){var r=_e(It,!1),i=_e(Ji,!1),a={submit:()=>{var n=["",null];return e.name&&(n[0]=e.name,n[1]=t.value),n},reset:()=>{t.value=!1}};return r&&(r.addField(a),Zt(()=>{r.removeField(a)})),i}var oa={ensp:"\u2002",emsp:"\u2003",nbsp:"\xA0"};function KS(e,t){return e.replace(/\\n/g,gi).split(gi).map(r=>GS(r,t))}function GS(e,t){var{space:r,decode:i}=t;return!e||(r&&oa[r]&&(e=e.replace(/ /g,oa[r])),!i)?e:e.replace(/ /g,oa.nbsp).replace(/ /g,oa.ensp).replace(/ /g,oa.emsp).replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'")}var JS=ce({},Kd,{placeholderClass:{type:String,default:"input-placeholder"},autoHeight:{type:[Boolean,String],default:!1},confirmType:{type:String,default:""}}),Cl=!1;function QS(){var e="(prefers-color-scheme: dark)";Cl=String(navigator.platform).indexOf("iP")===0&&String(navigator.vendor).indexOf("Apple")===0&&window.matchMedia(e).media!==e}var eE=de({name:"Textarea",props:JS,emit:["confirm","linechange",...Gd],setup(e,t){var{emit:r}=t,i=F(null),{fieldRef:a,state:n,scopedAttrsState:o,fixDisabledColor:s,trigger:u}=Jd(e,i,r),l=ee(()=>n.value.split(gi)),f=ee(()=>["done","go","next","search","send"].includes(e.confirmType)),d=F(0),p=F(null);W(()=>d.value,g=>{var _=i.value,c=p.value,v=parseFloat(getComputedStyle(_).lineHeight);isNaN(v)&&(v=c.offsetHeight);var m=Math.round(g/v);u("linechange",{},{height:g,heightRpx:750/window.innerWidth*g,lineCount:m}),e.autoHeight&&(_.style.height=g+"px")});function h(g){var{height:_}=g;d.value=_}function y(g){u("confirm",g,{value:n.value})}function b(g){g.key==="Enter"&&f.value&&g.preventDefault()}function w(g){if(g.key==="Enter"&&f.value){y(g);var _=g.target;!e.confirmHold&&_.blur()}}return QS(),()=>{var g=e.disabled&&s?I("textarea",{ref:a,value:n.value,tabindex:"-1",readonly:!!e.disabled,maxlength:n.maxlength,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":Cl},style:{overflowY:e.autoHeight?"hidden":"auto"},onFocus:_=>_.target.blur()},null,46,["value","readonly","maxlength","onFocus"]):I("textarea",{ref:a,value:n.value,disabled:!!e.disabled,maxlength:n.maxlength,enterkeyhint:e.confirmType,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":Cl},style:{overflowY:e.autoHeight?"hidden":"auto"},onKeydown:b,onKeyup:w},null,46,["value","disabled","maxlength","enterkeyhint","onKeydown","onKeyup"]);return I("uni-textarea",{ref:i},[I("div",{class:"uni-textarea-wrapper"},[Ii(I("div",rt(o.attrs,{style:e.placeholderStyle,class:["uni-textarea-placeholder",e.placeholderClass]}),[e.placeholder],16),[[Li,!n.value.length]]),I("div",{ref:p,class:"uni-textarea-line"},[" "],512),I("div",{class:"uni-textarea-compute"},[l.value.map(_=>I("div",null,[_.trim()?_:"."])),I(Or,{initial:!0,onResize:h},null,8,["initial","onResize"])]),e.confirmType==="search"?I("form",{action:"",onSubmit:()=>!1,class:"uni-input-form"},[g],40,["onSubmit"]):g])],512)}}});ce({},yy);function jn(e,t){if(t||(t=e.id),!!t)return e.$options.name.toLowerCase()+"."+t}function ph(e,t,r){!e||bt(r||Gt(),e,(i,a)=>{var{type:n,data:o}=i;t(n,o,a)})}function mh(e,t){!e||km(t||Gt(),e)}function sa(e,t,r,i){var a=Dt(),n=a.proxy;Re(()=>{ph(t||jn(n),e,i),(r||!t)&&W(()=>n.id,(o,s)=>{ph(jn(n,o),e,i),mh(s&&jn(n,s))})}),Ce(()=>{mh(t||jn(n),i)})}var tE=0;function la(e){var t=hn(),r=Dt(),i=r.proxy,a=i.$options.name.toLowerCase(),n=e||i.id||"context".concat(tE++);return Re(()=>{var o=i.$el;o.__uniContextInfo={id:n,type:a,page:t}}),"".concat(a,".").concat(n)}function rE(e){return e.__uniContextInfo}class _h extends Td{constructor(t,r,i,a,n){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[];super(t,r,i,a,n,[...Ln.props,...o])}call(t){var r={animation:this.$props.animation,$el:this.$};t.call(r)}setAttribute(t,r){return t==="animation"&&(this.$animate=!0),super.setAttribute(t,r)}update(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!!this.$animate){if(t)return this.call(Ln.mounted);this.$animate&&(this.$animate=!1,this.call(Ln.watch.animation.handler))}}}var iE=["space","decode"];class aE extends _h{constructor(t,r,i,a){super(t,document.createElement("uni-text"),r,i,a,iE);this._text=""}init(t){this._text=t.t||"",super.init(t)}setText(t){this._text=t,this.update()}update(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,{$props:{space:r,decode:i}}=this;this.$.textContent=KS(this._text,{space:r,decode:i}).join(gi),super.update(t)}}class nE extends ii{constructor(t,r,i,a){super(t,"#text",r,document.createTextNode(""));this.init(a),this.insert(r,i)}}var JT="",oE=["hover-class","hover-stop-propagation","hover-start-time","hover-stay-time"];class sE extends _h{constructor(t,r,i,a,n){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[];super(t,r,i,a,n,[...oE,...o])}update(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,r=this.$props["hover-class"];r&&r!=="none"?(this._hover||(this._hover=new lE(this.$,this.$props)),this._hover.addEvent()):this._hover&&this._hover.removeEvent(),super.update(t)}}class lE{constructor(t,r){this._listening=!1,this._hovering=!1,this._hoverTouch=!1,this.$=t,this.props=r,this.__hoverTouchStart=this._hoverTouchStart.bind(this),this.__hoverTouchEnd=this._hoverTouchEnd.bind(this),this.__hoverTouchCancel=this._hoverTouchCancel.bind(this)}get hovering(){return this._hovering}set hovering(t){this._hovering=t;var r=this.props["hover-class"];t?this.$.classList.add(r):this.$.classList.remove(r)}addEvent(){this._listening||(this._listening=!0,this.$.addEventListener("touchstart",this.__hoverTouchStart),this.$.addEventListener("touchend",this.__hoverTouchEnd),this.$.addEventListener("touchcancel",this.__hoverTouchCancel))}removeEvent(){!this._listening||(this._listening=!1,this.$.removeEventListener("touchstart",this.__hoverTouchStart),this.$.removeEventListener("touchend",this.__hoverTouchEnd),this.$.removeEventListener("touchcancel",this.__hoverTouchCancel))}_hoverTouchStart(t){if(!t._hoverPropagationStopped){var r=this.props["hover-class"];!r||r==="none"||this.$.disabled||t.touches.length>1||(this.props["hover-stop-propagation"]&&(t._hoverPropagationStopped=!0),this._hoverTouch=!0,this._hoverStartTimer=setTimeout(()=>{this.hovering=!0,this._hoverTouch||this._hoverReset()},this.props["hover-start-time"]))}}_hoverTouchEnd(){this._hoverTouch=!1,this.hovering&&this._hoverReset()}_hoverReset(){requestAnimationFrame(()=>{clearTimeout(this._hoverStayTimer),this._hoverStayTimer=setTimeout(()=>{this.hovering=!1},this.props["hover-stay-time"])})}_hoverTouchCancel(){this._hoverTouch=!1,this.hovering=!1,clearTimeout(this._hoverStartTimer)}}class uE extends sE{constructor(t,r,i,a){super(t,document.createElement("uni-view"),r,i,a)}}function bh(){return plus.navigator.isImmersedStatusbar()?Math.round(plus.os.name==="iOS"?plus.navigator.getSafeAreaInsets().top:plus.navigator.getStatusbarHeight()):0}function wh(){var e=plus.webview.currentWebview(),t=e.getStyle(),r=t&&t.titleNView;return r&&r.type==="default"?xu+bh():0}var yh=Symbol("onDraw");function fE(e){for(var t;e;){var r=getComputedStyle(e),i=r.transform||r.webkitTransform;t=i&&i!=="none"?!1:t,t=r.position==="fixed"?!0:t,e=e.parentElement}return t}function Yn(e,t){return ee(()=>{var r={};return Object.keys(e).forEach(i=>{if(!(t&&t.includes(i))){var a=e[i];a=i==="src"?st(a):a,r[i.replace(/[A-Z]/g,n=>"-"+n.toLowerCase())]=a}}),r})}function oi(e){var t=ke({top:"0px",left:"0px",width:"0px",height:"0px",position:"static"}),r=F(!1);function i(){var d=e.value,p=d.getBoundingClientRect(),h=["width","height"];r.value=p.width===0||p.height===0,r.value||(t.position=fE(d)?"absolute":"static",h.push("top","left")),h.forEach(y=>{var b=p[y];b=y==="top"?b+(t.position==="static"?document.documentElement.scrollTop||document.body.scrollTop||0:wh()):b,t[y]=b+"px"})}var a=null;function n(){a&&cancelAnimationFrame(a),a=requestAnimationFrame(()=>{a=null,i()})}window.addEventListener("updateview",n);var o=[],s=[];function u(d){s?s.push(d):d()}function l(d){var p=_e(yh),h=y=>{d(y),o.forEach(b=>b(t)),o=null};u(()=>{p?p(h):h({top:"0px",left:"0px",width:Number.MAX_SAFE_INTEGER+"px",height:Number.MAX_SAFE_INTEGER+"px",position:"static"})})}var f=function(d){o?o.push(d):d(t)};return ze(yh,f),Re(()=>{i(),s.forEach(d=>d()),s=null}),Ce(()=>{window.removeEventListener("updateview",n)}),{position:t,hidden:r,onParentReady:l}}var cE=de({name:"Ad",props:{adpid:{type:[Number,String],default:""},data:{type:Object,default:null},dataCount:{type:Number,default:5},channel:{type:String,default:""}},setup(e,t){var{emit:r}=t,i=F(null),a=F(null),n=Le(i,r),o=Yn(e,["id"]),{position:s,onParentReady:u}=oi(a),l;return u(()=>{l=plus.ad.createAdView(Object.assign({},o.value,s)),plus.webview.currentWebview().append(l),l.setDislikeListener(d=>{a.value.style.height="0",window.dispatchEvent(new CustomEvent("updateview")),n("close",{},d)}),l.setRenderingListener(d=>{d.result===0?(a.value.style.height=d.height+"px",window.dispatchEvent(new CustomEvent("updateview"))):n("error",{},{errCode:d.result})}),l.setAdClickedListener(()=>{n("adclicked",{},{})}),W(()=>s,d=>l.setStyle(d),{deep:!0}),W(()=>e.adpid,d=>{d&&f()}),W(()=>e.data,d=>{d&&l.renderingBind(d)});function f(){var d={adpid:e.adpid,width:s.width,count:e.dataCount};e.channel!==void 0&&(d.ext={channel:e.channel}),UniViewJSBridge.invokeServiceMethod("getAdData",d,p=>{var{code:h,data:y,message:b}=p;h===0?l.renderingBind(y):n("error",{},{errMsg:b})})}e.adpid&&f()}),Ce(()=>{l&&l.close()}),()=>I("uni-ad",{ref:i},[I("div",{ref:a,class:"uni-ad-container"},null,512)],512)}});class be extends ii{constructor(t,r,i,a,n,o,s){super(t,r,a);var u=document.createElement("div");u.__vueParent=vE(this),this.$props=ke({}),this.init(o),this.$app=sc(yT(i,this.$props)),this.$app.mount(u),this.$=u.firstElementChild,s&&(this.$holder=this.$.querySelector(s)),ie(o,"t")&&this.setText(o.t||""),o.a&&ie(o.a,Da)&&gl(this.$,o.a[Da]),this.insert(a,n),wf()}init(t){var{a:r,e:i,w:a}=t;r&&(this.setWxsProps(r),Object.keys(r).forEach(n=>{this.setAttr(n,r[n])})),ie(t,"s")&&this.setAttr("style",t.s),i&&Object.keys(i).forEach(n=>{this.addEvent(n,i[n])}),a&&this.addWxsEvents(t.w)}setText(t){(this.$holder||this.$).textContent=t}addWxsEvent(t,r,i){this.$props[t]=Ed(this,r,i)}addEvent(t,r){this.$props[t]=xd(this.id,r,Po(t)[1])}removeEvent(t){this.$props[t]=null}setAttr(t,r){if(t===Da)this.$&&gl(this.$,r);else if(t===Iu)this.$.__ownerId=r;else if(t===ku)zt(()=>dd(this,r),fd);else if(t===Do){var i=hl(this.$||Ke(this.pid).$,r),a=this.$props.style;mt(i)&&mt(a)?Object.keys(i).forEach(n=>{a[n]=i[n]}):this.$props.style=i}else Rn(t)?this.$.style.setProperty(t,r):(r=hl(this.$||Ke(this.pid).$,r),this.wxsPropsInvoke(t,r,!0)||(this.$props[t]=r))}removeAttr(t){Rn(t)?this.$.style.removeProperty(t):this.$props[t]=null}remove(){this.removeUniParent(),this.isUnmounted=!0,this.$app.unmount(),Oh(this.id),this.removeUniChildren()}appendChild(t){return(this.$holder||this.$).appendChild(t)}insertBefore(t,r){return(this.$holder||this.$).insertBefore(t,r)}}class ua extends be{constructor(t,r,i,a,n,o,s){super(t,r,i,a,n,o,s)}getRebuildFn(){return this._rebuild||(this._rebuild=this.rebuild.bind(this)),this._rebuild}setText(t){return zt(this.getRebuildFn(),Mn),super.setText(t)}appendChild(t){return zt(this.getRebuildFn(),Mn),super.appendChild(t)}insertBefore(t,r){return zt(this.getRebuildFn(),Mn),super.insertBefore(t,r)}removeUniChild(t){return zt(this.getRebuildFn(),Mn),super.removeUniChild(t)}rebuild(){var t=this.$.__vueParentComponent;t.rebuild&&t.rebuild()}}function vE(e){for(;e&&e.pid>0;)if(e=Ke(e.pid),e){var{__vueParentComponent:t}=e.$;if(t)return t}return null}function Ol(e,t,r){e.childNodes.forEach(i=>{i instanceof Element?i.className.indexOf(t)===-1&&e.removeChild(i):e.removeChild(i)}),e.appendChild(document.createTextNode(r))}var dE=["value","modelValue"];function xh(e){dE.forEach(t=>{if(ie(e,t)){var r="onUpdate:"+t;ie(e,r)||(e[r]=i=>e[t]=i)}})}class hE extends be{constructor(t,r,i,a){super(t,"uni-ad",cE,r,i,a)}}var QT="";class gE extends be{constructor(t,r,i,a){super(t,"uni-button",ky,r,i,a)}}class fa extends ii{constructor(t,r,i,a){super(t,r,i);this.insert(i,a)}}class pE extends fa{constructor(t,r,i){super(t,"uni-camera",r,i)}}var e2="";class mE extends be{constructor(t,r,i,a){super(t,"uni-canvas",Fy,r,i,a,"uni-canvas > div")}}var t2="";class _E extends be{constructor(t,r,i,a){super(t,"uni-checkbox",jy,r,i,a,".uni-checkbox-wrapper")}setText(t){Ol(this.$holder,"uni-checkbox-input",t)}}var r2="";class bE extends be{constructor(t,r,i,a){super(t,"uni-checkbox-group",Hy,r,i,a)}}var i2="",wE=0;function Sh(e,t,r){var{position:i,hidden:a,onParentReady:n}=oi(e),o,s;n(u=>{var l=ee(()=>{var c={};for(var v in i){var m=i[v],x=parseFloat(m),E=parseFloat(u[v]);if(v==="top"||v==="left")m=Math.max(x,E)+"px";else if(v==="width"||v==="height"){var C=v==="width"?"left":"top",O=parseFloat(u[C]),M=parseFloat(i[C]),R=Math.max(O-M,0),U=Math.max(M+x-(O+E),0);m=Math.max(x-R-U,0)+"px"}c[v]=m}return c}),f=["borderRadius","borderColor","borderWidth","backgroundColor"],d=["paddingTop","paddingRight","paddingBottom","paddingLeft","color","textAlign","lineHeight","fontSize","fontWeight","textOverflow","whiteSpace"],p=[],h={start:"left",end:"right"};function y(c){var v=getComputedStyle(e.value);return f.concat(d,p).forEach(m=>{c[m]=v[m]}),c}var b=ke(y({})),w=null;s=function(){w&&cancelAnimationFrame(w),w=requestAnimationFrame(()=>{w=null,y(b)})},window.addEventListener("updateview",s);function g(){var c={};for(var v in c){var m=c[v];(v==="top"||v==="left")&&(m=Math.min(parseFloat(m)-parseFloat(u[v]),0)+"px"),c[v]=m}return c}var _=ee(()=>{var c=g(),v=[{tag:"rect",position:c,rectStyles:{color:b.backgroundColor,radius:b.borderRadius,borderColor:b.borderColor,borderWidth:b.borderWidth}}];if("src"in r)r.src&&v.push({tag:"img",position:c,src:r.src});else{var m=parseFloat(b.lineHeight)-parseFloat(b.fontSize),x=parseFloat(c.width)-parseFloat(b.paddingLeft)-parseFloat(b.paddingRight);x=x<0?0:x;var E=parseFloat(c.height)-parseFloat(b.paddingTop)-m/2-parseFloat(b.paddingBottom);E=E<0?0:E,v.push({tag:"font",position:{top:"".concat(parseFloat(c.top)+parseFloat(b.paddingTop)+m/2,"px"),left:"".concat(parseFloat(c.left)+parseFloat(b.paddingLeft),"px"),width:"".concat(x,"px"),height:"".concat(E,"px")},textStyles:{align:h[b.textAlign]||b.textAlign,color:b.color,decoration:"none",lineSpacing:"".concat(m,"px"),margin:"0px",overflow:b.textOverflow,size:b.fontSize,verticalAlign:"top",weight:b.fontWeight,whiteSpace:b.whiteSpace},text:r.text})}return v});o=new plus.nativeObj.View("cover-".concat(Date.now(),"-").concat(wE++),l.value,_.value),plus.webview.currentWebview().append(o),a.value&&o.hide(),o.addEventListener("click",()=>{t("click",{},{})}),W(()=>a.value,c=>{o[c?"hide":"show"]()}),W(()=>l.value,c=>{o.setStyle(c)},{deep:!0}),W(()=>_.value,()=>{o.reset(),o.draw(_.value)},{deep:!0})}),Ce(()=>{o&&o.close(),s&&window.removeEventListener("updateview",s)})}var yE="_doc/uniapp_temp/",xE={src:{type:String,default:""},autoSize:{type:[Boolean,String],default:!1}};function SE(e,t,r){var i=F(""),a;function n(){t.src="",i.value=e.autoSize?"width:0;height:0;":"";var s=e.src?st(e.src):"";s.indexOf("http://")===0||s.indexOf("https://")===0?(a=plus.downloader.createDownload(s,{filename:yE+"/download/"},(u,l)=>{l===200?o(u.filename):r("error",{},{errMsg:"error"})}),a.start()):s&&o(s)}function o(s){t.src=s,plus.io.getImageInfo({src:s,success:u=>{var{width:l,height:f}=u;e.autoSize&&(i.value="width:".concat(l,"px;height:").concat(f,"px;"),window.dispatchEvent(new CustomEvent("updateview"))),r("load",{},{width:l,height:f})},fail:()=>{r("error",{},{errMsg:"error"})}})}return e.src&&n(),W(()=>e.src,n),Ce(()=>{a&&a.abort()}),i}var Eh=de({name:"CoverImage",props:xE,emits:["click","load","error"],setup(e,t){var{emit:r}=t,i=F(null),a=Le(i,r),n=ke({src:""}),o=SE(e,n,a);return Sh(i,a,n),()=>I("uni-cover-image",{ref:i,style:o.value},[I("div",{class:"uni-cover-image"},null)],4)}});class EE extends be{constructor(t,r,i,a){super(t,"uni-cover-image",Eh,r,i,a)}}var a2="",TE=de({name:"CoverView",emits:["click"],setup(e,t){var{emit:r}=t,i=F(null),a=F(null),n=Le(i,r),o=ke({text:""});return Sh(i,n,o),ia(()=>{var s=a.value.childNodes[0];o.text=s&&s instanceof Text?s.textContent:"",window.dispatchEvent(new CustomEvent("updateview"))}),()=>I("uni-cover-view",{ref:i},[I("div",{ref:a,class:"uni-cover-view"},null,512)],512)}});class CE extends ua{constructor(t,r,i,a){super(t,"uni-cover-view",TE,r,i,a,".uni-cover-view")}}var n2="";class OE extends be{constructor(t,r,i,a){super(t,"uni-editor",px,r,i,a)}}var o2="";class AE extends be{constructor(t,r,i,a){super(t,"uni-form",Ey,r,i,a,"span")}}class IE extends fa{constructor(t,r,i){super(t,"uni-functional-page-navigator",r,i)}}var s2="";class kE extends be{constructor(t,r,i,a){super(t,"uni-icon",wx,r,i,a)}}var l2="";class ME extends be{constructor(t,r,i,a){super(t,"uni-image",Sx,r,i,a)}}var u2="";class RE extends be{constructor(t,r,i,a){super(t,"uni-input",Wx,r,i,a)}init(t){super.init(t),xh(this.$props)}}var f2="";class LE extends be{constructor(t,r,i,a){super(t,"uni-label",Ay,r,i,a)}}class PE extends fa{constructor(t,r,i){super(t,"uni-live-player",r,i)}}var c2="",NE={id:{type:String,default:""},url:{type:String,default:""},mode:{type:String,default:"SD"},muted:{type:[Boolean,String],default:!1},enableCamera:{type:[Boolean,String],default:!0},autoFocus:{type:[Boolean,String],default:!0},beauty:{type:[Number,String],default:0},whiteness:{type:[Number,String],default:0},aspect:{type:[String],default:"3:2"},minBitrate:{type:[Number],default:200}},Th=["statechange","netstatus","error"],DE=de({name:"LivePusher",props:NE,emits:Th,setup(e,t){var{emit:r}=t,i=F(null),a=Le(i,r),n=F(null),o=Yn(e,["id"]),{position:s,hidden:u,onParentReady:l}=oi(n),f;l(()=>{f=new plus.video.LivePusher("livePusher"+Date.now(),Object.assign({},o.value,s)),plus.webview.currentWebview().append(f),Th.forEach(p=>{f.addEventListener(p,h=>{a(p,{},h.detail)})}),W(()=>o.value,p=>f.setStyles(p),{deep:!0}),W(()=>s,p=>f.setStyles(p),{deep:!0}),W(()=>u.value,p=>{p||f.setStyles(s)})});var d=la();return sa((p,h)=>{f&&f[p](h)},d,!0),Ce(()=>{f&&f.close()}),()=>I("uni-live-pusher",{ref:i,id:e.id},[I("div",{ref:n,class:"uni-live-pusher-container"},null,512)],8,["id"])}});class BE extends be{constructor(t,r,i,a){super(t,"uni-live-pusher",DE,r,i,a,".uni-live-pusher-slot")}}var v2="",FE=(e,t,r)=>{r({coord:{latitude:t,longitude:e}})};function ca(e){if(e.indexOf("#")!==0)return{color:e,opacity:1};var t=e.substr(7,2);return{color:e.substr(0,7),opacity:t?Number("0x"+t)/255:1}}var $E={id:{type:String,default:""},latitude:{type:[Number,String],default:""},longitude:{type:[Number,String],default:""},scale:{type:[String,Number],default:16},markers:{type:Array,default(){return[]}},polyline:{type:Array,default(){return[]}},circles:{type:Array,default(){return[]}},polygons:{type:Array,default(){return[]}},controls:{type:Array,default(){return[]}}},zE=de({name:"Map",props:$E,emits:["click","regionchange","controltap","markertap","callouttap"],setup(e,t){var{emit:r}=t,i=F(null),a=Le(i,r),n=F(null),o=Yn(e,["id"]),{position:s,hidden:u,onParentReady:l}=oi(n),f,{_addMarkers:d,_addMapLines:p,_addMapCircles:h,_addMapPolygons:y,_setMap:b}=UE(e,a);l(()=>{f=ce(plus.maps.create(Gt()+"-map-"+(e.id||Date.now()),Object.assign({},o.value,s,(()=>{if(e.latitude&&e.longitude)return{center:new plus.maps.Point(Number(e.longitude),Number(e.latitude))}})())),{__markers__:[],__lines__:[],__circles__:[],__polygons__:[]}),f.setZoom(parseInt(String(e.scale))),plus.webview.currentWebview().append(f),u.value&&f.hide(),f.onclick=g=>{a("click",{},g)},f.onstatuschanged=g=>{a("regionchange",{},{})},b(f),d(e.markers),p(e.polyline),h(e.circles),y(e.polygons),W(()=>o.value,g=>f&&f.setStyles(g),{deep:!0}),W(()=>s,g=>f&&f.setStyles(g),{deep:!0}),W(u,g=>{f&&f[g?"hide":"show"]()}),W(()=>e.scale,g=>{f&&f.setZoom(parseInt(String(g)))}),W([()=>e.latitude,()=>e.longitude],g=>{var[_,c]=g;f&&f.setStyles({center:new plus.maps.Point(Number(_),Number(c))})}),W(()=>e.markers,g=>{d(g,!0)},{deep:!0}),W(()=>e.polyline,g=>{p(g)},{deep:!0}),W(()=>e.circles,g=>{h(g)},{deep:!0}),W(()=>e.polygons,g=>{y(g)},{deep:!0})});var w=ee(()=>e.controls.map(g=>{var _={position:"absolute"};return["top","left","width","height"].forEach(c=>{g.position[c]&&(_[c]=g.position[c]+"px")}),{id:g.id,iconPath:st(g.iconPath),position:_,clickable:g.clickable}}));return Ce(()=>{f&&(f.close(),b(null))}),()=>I("uni-map",{ref:i,id:e.id},[I("div",{ref:n,class:"uni-map-container"},null,512),w.value.map((g,_)=>I(Eh,{key:_,src:g.iconPath,style:g.position,"auto-size":!0,onClick:()=>g.clickable&&a("controltap",{},{controlId:g.id})},null,8,["src","style","auto-size","onClick"])),I("div",{class:"uni-map-slot"},null)],8,["id"])}});function UE(e,t){var r;function i(y){var{longitude:b,latitude:w}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};!r||(r.setCenter(new plus.maps.Point(Number(b||e.longitude),Number(w||e.latitude))),y({errMsg:"moveToLocation:ok"}))}function a(y){!r||r.getCurrentCenter((b,w)=>{y({longitude:w.getLng(),latitude:w.getLat(),errMsg:"getCenterLocation:ok"})})}function n(y){if(!!r){var b=r.getBounds();y({southwest:b.getSouthWest(),northeast:b.getNorthEast(),errMsg:"getRegion:ok"})}}function o(y){!r||y({scale:r.getZoom(),errMsg:"getScale:ok"})}function s(y){if(!!r){var{id:b,latitude:w,longitude:g,iconPath:_,callout:c,label:v}=y;FE(g,w,m=>{var x,{latitude:E,longitude:C}=m.coord,O=new plus.maps.Marker(new plus.maps.Point(C,E));_&&O.setIcon(st(_)),v&&v.content&&O.setLabel(v.content);var M=void 0;c&&c.content&&(M=new plus.maps.Bubble(c.content)),M&&O.setBubble(M),(b||b===0)&&(O.onclick=R=>{t("markertap",{},{markerId:b})},M&&(M.onclick=()=>{t("callouttap",{},{markerId:b})})),(x=r)===null||x===void 0||x.addOverlay(O),r.__markers__.push(O)})}}function u(){if(!!r){var y=r.__markers__;y.forEach(b=>{var w;(w=r)===null||w===void 0||w.removeOverlay(b)}),r.__markers__=[]}}function l(y,b){b&&u(),y.forEach(w=>{s(w)})}function f(y){!r||(r.__lines__.length>0&&(r.__lines__.forEach(b=>{var w;(w=r)===null||w===void 0||w.removeOverlay(b)}),r.__lines__=[]),y.forEach(b=>{var w,{color:g,width:_}=b,c=b.points.map(x=>new plus.maps.Point(x.longitude,x.latitude)),v=new plus.maps.Polyline(c);if(g){var m=ca(g);v.setStrokeColor(m.color),v.setStrokeOpacity(m.opacity)}_&&v.setLineWidth(_),(w=r)===null||w===void 0||w.addOverlay(v),r.__lines__.push(v)}))}function d(y){!r||(r.__circles__.length>0&&(r.__circles__.forEach(b=>{var w;(w=r)===null||w===void 0||w.removeOverlay(b)}),r.__circles__=[]),y.forEach(b=>{var w,{latitude:g,longitude:_,color:c,fillColor:v,radius:m,strokeWidth:x}=b,E=new plus.maps.Circle(new plus.maps.Point(_,g),m);if(c){var C=ca(c);E.setStrokeColor(C.color),E.setStrokeOpacity(C.opacity)}if(v){var O=ca(v);E.setFillColor(O.color),E.setFillOpacity(O.opacity)}x&&E.setLineWidth(x),(w=r)===null||w===void 0||w.addOverlay(E),r.__circles__.push(E)}))}function p(y){if(!!r){var b=r.__polygons__;b.forEach(w=>{var g;(g=r)===null||g===void 0||g.removeOverlay(w)}),b.length=0,y.forEach(w=>{var g,{points:_,strokeWidth:c,strokeColor:v,fillColor:m}=w,x=[];_&&_.forEach(M=>{x.push(new plus.maps.Point(M.longitude,M.latitude))});var E=new plus.maps.Polygon(x);if(v){var C=ca(v);E.setStrokeColor(C.color),E.setStrokeOpacity(C.opacity)}if(m){var O=ca(m);E.setFillColor(O.color),E.setFillOpacity(O.opacity)}c&&E.setLineWidth(c),(g=r)===null||g===void 0||g.addOverlay(E),b.push(E)})}}var h={moveToLocation:i,getCenterLocation:a,getRegion:n,getScale:o};return sa((y,b,w)=>{h[y]&&h[y](w,b)},la(),!0),{_addMarkers:l,_addMapLines:f,_addMapCircles:d,_addMapPolygons:p,_setMap(y){r=y}}}class HE extends be{constructor(t,r,i,a){super(t,"uni-map",zE,r,i,a,".uni-map-slot")}}var d2="";class WE extends ua{constructor(t,r,i,a){super(t,"uni-movable-area",Xx,r,i,a)}}var h2="";class VE extends be{constructor(t,r,i,a){super(t,"uni-movable-view",Gx,r,i,a)}}var g2="";class jE extends be{constructor(t,r,i,a){super(t,"uni-navigator",rS,r,i,a,"uni-navigator")}}class YE extends fa{constructor(t,r,i){super(t,"uni-official-account",r,i)}}class qE extends fa{constructor(t,r,i){super(t,"uni-open-data",r,i)}}var Ie={SELECTOR:"selector",MULTISELECTOR:"multiSelector",TIME:"time",DATE:"date"},si={YEAR:"year",MONTH:"month",DAY:"day"};function qn(e){return e>9?e:"0".concat(e)}function Xn(e,t){e=String(e||"");var r=new Date;if(t===Ie.TIME){var i=e.split(":");i.length===2&&r.setHours(parseInt(i[0]),parseInt(i[1]))}else{var a=e.split("-");a.length===3&&r.setFullYear(parseInt(a[0]),parseInt(String(parseFloat(a[1])-1)),parseInt(a[2]))}return r}function XE(e){if(e.mode===Ie.TIME)return"00:00";if(e.mode===Ie.DATE){var t=new Date().getFullYear()-100;switch(e.fields){case si.YEAR:return t;case si.MONTH:return t+"-01";default:return t+"-01-01"}}return""}function ZE(e){if(e.mode===Ie.TIME)return"23:59";if(e.mode===Ie.DATE){var t=new Date().getFullYear()+100;switch(e.fields){case si.YEAR:return t;case si.MONTH:return t+"-12";default:return t+"-12-31"}}return""}var KE={name:{type:String,default:""},range:{type:Array,default(){return[]}},rangeKey:{type:String,default:""},value:{type:[Number,String,Array],default:0},mode:{type:String,default:Ie.SELECTOR,validator(e){return Object.values(Ie).indexOf(e)>=0}},fields:{type:String,default:""},start:{type:String,default:XE},end:{type:String,default:ZE},disabled:{type:[Boolean,String],default:!1}},GE=de({name:"Picker",props:KE,emits:["change","cancel","columnchange"],setup(e,t){var{emit:r}=t;Em();var{t:i,getLocale:a}=Qe(),n=F(null),o=Le(n,r),s=F(null),u=F(null),l=()=>{var g=e.value;switch(e.mode){case Ie.MULTISELECTOR:{Array.isArray(g)||(g=[]),Array.isArray(s.value)||(s.value=[]);for(var _=s.value.length=Math.max(g.length,e.range.length),c=0;c<_;c++){var v=Number(g[c]),m=Number(s.value[c]),x=isNaN(v)?isNaN(m)?0:m:v;s.value.splice(c,1,x<0?0:x)}}break;case Ie.TIME:case Ie.DATE:s.value=String(g);break;default:{var E=Number(g);s.value=E<0?0:E;break}}},f=g=>{u.value&&u.value.sendMessage(g)},d=g=>{var _={event:"cancel"};u.value=cb({url:"__uniapppicker",data:g,style:{titleNView:!1,animationType:"none",animationDuration:0,background:"rgba(0,0,0,0)",popGesture:"none"},onMessage:c=>{var v=c.event;if(v==="created"){f(g);return}if(v==="columnchange"){delete c.event,o(v,{},c);return}_=c},onClose:()=>{u.value=null;var c=_.event;delete _.event,c&&o(c,{},_)}})},p=(g,_)=>{plus.nativeUI[e.mode===Ie.TIME?"pickTime":"pickDate"](c=>{var v=c.date;o("change",{},{value:e.mode===Ie.TIME?"".concat(qn(v.getHours()),":").concat(qn(v.getMinutes())):"".concat(v.getFullYear(),"-").concat(qn(v.getMonth()+1),"-").concat(qn(v.getDate()))})},()=>{o("cancel",{},{})},e.mode===Ie.TIME?{time:Xn(e.value,Ie.TIME),popover:_}:{date:Xn(e.value,Ie.DATE),minDate:Xn(e.start,Ie.DATE),maxDate:Xn(e.end,Ie.DATE),popover:_})},h=(g,_)=>{(g.mode===Ie.TIME||g.mode===Ie.DATE)&&!g.fields?p(g,_):(g.fields=Object.values(si).includes(g.fields)?g.fields:si.DAY,d(g))},y=g=>{if(!e.disabled){var _=g.currentTarget,c=_.getBoundingClientRect();h(Object.assign({},e,{value:s.value,locale:a(),messages:{done:i("uni.picker.done"),cancel:i("uni.picker.cancel")}}),{top:c.top+wh(),left:c.left,width:c.width,height:c.height})}},b=_e(It,!1),w={submit:()=>[e.name,s.value],reset:()=>{switch(e.mode){case Ie.SELECTOR:s.value=0;break;case Ie.MULTISELECTOR:Array.isArray(e.value)&&(s.value=e.value.map(g=>0));break;case Ie.DATE:case Ie.TIME:s.value="";break}}};return b&&(b.addField(w),Ce(()=>b.removeField(w))),Object.keys(e).forEach(g=>{g!=="name"&&W(()=>e[g],_=>{var c={};c[g]=_,f(c)},{deep:!0})}),W(()=>e.value,l,{deep:!0}),l(),()=>I("uni-picker",{ref:n,onClick:y},[I("slot",null,null)],8,["onClick"])}});class JE extends be{constructor(t,r,i,a){super(t,"uni-picker",GE,r,i,a)}}var p2="";class QE extends ua{constructor(t,r,i,a){super(t,"uni-picker-view",nS,r,i,a,".uni-picker-view-wrapper")}}var m2="";class eT extends ua{constructor(t,r,i,a){super(t,"uni-picker-view-column",dS,r,i,a,".uni-picker-view-content")}}var _2="";class tT extends be{constructor(t,r,i,a){super(t,"uni-progress",pS,r,i,a)}}var b2="";class rT extends be{constructor(t,r,i,a){super(t,"uni-radio",xS,r,i,a,".uni-radio-wrapper")}setText(t){Ol(this.$holder,"uni-radio-input",t)}}var w2="";class iT extends be{constructor(t,r,i,a){super(t,"uni-radio-group",bS,r,i,a)}}var y2="";class aT extends be{constructor(t,r,i,a){super(t,"uni-rich-text",MS,r,i,a)}}var x2="";class nT extends be{constructor(t,r,i,a){super(t,"uni-scroll-view",LS,r,i,a,".uni-scroll-view-content")}setText(t){Ol(this.$holder,"uni-scroll-view-refresher",t)}}var S2="";class oT extends be{constructor(t,r,i,a){super(t,"uni-slider",BS,r,i,a)}}var E2="";class sT extends ua{constructor(t,r,i,a){super(t,"uni-swiper",VS,r,i,a,".uni-swiper-slide-frame")}}var T2="";class lT extends be{constructor(t,r,i,a){super(t,"uni-swiper-item",YS,r,i,a)}}var C2="";class uT extends be{constructor(t,r,i,a){super(t,"uni-switch",XS,r,i,a)}}var O2="";class fT extends be{constructor(t,r,i,a){super(t,"uni-textarea",eE,r,i,a)}init(t){super.init(t),xh(this.$props)}}var A2="",cT={id:{type:String,default:""},src:{type:String,default:""},duration:{type:[Number,String],default:""},controls:{type:[Boolean,String],default:!0},danmuList:{type:Array,default(){return[]}},danmuBtn:{type:[Boolean,String],default:!1},enableDanmu:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},loop:{type:[Boolean,String],default:!1},muted:{type:[Boolean,String],default:!1},objectFit:{type:String,default:"contain"},poster:{type:String,default:""},direction:{type:[String,Number],default:""},showProgress:{type:Boolean,default:!0},initialTime:{type:[String,Number],default:0},showFullscreenBtn:{type:[Boolean,String],default:!0},pageGesture:{type:[Boolean,String],default:!1},enableProgressGesture:{type:[Boolean,String],default:!0},vslideGesture:{type:[Boolean,String],default:!1},vslideGestureInFullscreen:{type:[Boolean,String],default:!1},showPlayBtn:{type:[Boolean,String],default:!0},enablePlayGesture:{type:[Boolean,String],default:!0},showCenterPlayBtn:{type:[Boolean,String],default:!0},showLoading:{type:[Boolean,String],default:!0},codec:{type:String,default:"hardware"},httpCache:{type:[Boolean,String],default:!1},playStrategy:{type:[Number,String],default:0},header:{type:Object,default(){return{}}},advanced:{type:Array,default(){return[]}}},Ch=["play","pause","ended","timeupdate","fullscreenchange","fullscreenclick","waiting","error"],vT=["play","pause","stop","seek","sendDanmu","playbackRate","requestFullScreen","exitFullScreen"],dT=de({name:"Video",props:cT,emits:Ch,setup(e,t){var{emit:r}=t,i=F(null),a=Le(i,r),n=F(null),o=Yn(e,["id"]),{position:s,hidden:u,onParentReady:l}=oi(n),f;l(()=>{f=plus.video.createVideoPlayer("video"+Date.now(),Object.assign({},o.value,s)),plus.webview.currentWebview().append(f),u.value&&f.hide(),Ch.forEach(p=>{f.addEventListener(p,h=>{a(p,{},h.detail)})}),W(()=>o.value,p=>f.setStyles(p),{deep:!0}),W(()=>s,p=>f.setStyles(p),{deep:!0}),W(()=>u.value,p=>{f[p?"hide":"show"](),p||f.setStyles(s)})});var d=la();return sa((p,h)=>{if(vT.includes(p)){var y;switch(p){case"seek":y=h.position;break;case"sendDanmu":y=h;break;case"playbackRate":y=h.rate;break;case"requestFullScreen":y=h.direction;break}f&&f[p](y)}},d,!0),Ce(()=>{f&&f.close()}),()=>I("uni-video",{ref:i,id:e.id},[I("div",{ref:n,class:"uni-video-container"},null,512),I("div",{class:"uni-video-slot"},null)],8,["id"])}});class hT extends be{constructor(t,r,i,a){super(t,"uni-video",dT,r,i,a,".uni-video-slot")}}var I2="",gT={src:{type:String,default:""},updateTitle:{type:Boolean,default:!0},webviewStyles:{type:Object,default(){return{}}}},nt,pT=e=>{var{htmlId:t,src:r,webviewStyles:i,props:a}=e,n=plus.webview.currentWebview(),o=ce(i,{"uni-app":"none",isUniH5:!0}),s=n.getTitleNView();if(s){var u=xu+parseFloat(o.top||"0");plus.navigator.isImmersedStatusbar()&&(u+=bh()),o.top=String(u),o.bottom=o.bottom||"0"}nt=plus.webview.create(r,t,o),s&&nt.addEventListener("titleUpdate",function(){var l;if(!!a.updateTitle){var f=(l=nt)===null||l===void 0?void 0:l.getTitle();n.setStyle({titleNView:{titleText:!f||f==="null"?" ":f}})}}),plus.webview.currentWebview().append(nt)},mT=()=>{var e;plus.webview.currentWebview().remove(nt),(e=nt)===null||e===void 0||e.close("none"),nt=null},_T=de({name:"WebView",props:gT,setup(e){var t=Gt(),r=F(null),{hidden:i,onParentReady:a}=oi(r),n=ee(()=>e.webviewStyles);return a(()=>{var o,s=F(yb+t);pT({htmlId:s.value,src:st(e.src),webviewStyles:n.value,props:e}),UniViewJSBridge.publishHandler(bb,{},t),i.value&&((o=nt)===null||o===void 0||o.hide())}),Ce(()=>{mT(),UniViewJSBridge.publishHandler(wb,{},t)}),W(()=>e.src,o=>{var s,u=st(o)||"";if(!!u){if(/^(http|https):\/\//.test(u)&&e.webviewStyles.progress){var l;(l=nt)===null||l===void 0||l.setStyle({progress:{color:e.webviewStyles.progress.color}})}(s=nt)===null||s===void 0||s.loadURL(u)}}),W(n,o=>{var s;(s=nt)===null||s===void 0||s.setStyle(o)}),W(i,o=>{nt&&nt[o?"hide":"show"]()}),()=>I("uni-web-view",{ref:r},null,512)}});class bT extends be{constructor(t,r,i,a){super(t,"uni-web-view",_T,r,i,a)}}var wT={"#text":nE,"#comment":my,VIEW:uE,IMAGE:ME,TEXT:aE,NAVIGATOR:jE,FORM:AE,BUTTON:gE,INPUT:RE,LABEL:LE,RADIO:rT,CHECKBOX:_E,"CHECKBOX-GROUP":bE,AD:hE,CAMERA:pE,CANVAS:mE,"COVER-IMAGE":EE,"COVER-VIEW":CE,EDITOR:OE,"FUNCTIONAL-PAGE-NAVIGATOR":IE,ICON:kE,"RADIO-GROUP":iT,"LIVE-PLAYER":PE,"LIVE-PUSHER":BE,MAP:HE,"MOVABLE-AREA":WE,"MOVABLE-VIEW":VE,"OFFICIAL-ACCOUNT":YE,"OPEN-DATA":qE,PICKER:JE,"PICKER-VIEW":QE,"PICKER-VIEW-COLUMN":eT,PROGRESS:tT,"RICH-TEXT":aT,"SCROLL-VIEW":nT,SLIDER:oT,SWIPER:sT,"SWIPER-ITEM":lT,SWITCH:uT,TEXTAREA:fT,VIDEO:hT,"WEB-VIEW":bT};function yT(e,t){return()=>y_(e,t)}var Zn=new Map;function Ke(e){return Zn.get(e)}function xT(e){return Zn.get(e)}function Oh(e){return Zn.delete(e)}function Ah(e,t,r,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},n;if(e===0)n=new ii(e,t,r,document.createElement(t));else{var o=wT[t];o?n=new o(e,r,i,a):n=new Td(e,document.createElement(t),r,i,a)}return Zn.set(e,n),n}var Al=[],Ih=!1;function kh(e){if(Ih)return e();Al.push(e)}function Il(){Ih=!0,Al.forEach(e=>{try{e()}catch(t){console.error(t)}}),Al.length=0}function k2(){}function Mh(e){var{css:t,route:r,platform:i,pixelRatio:a,windowWidth:n,disableScroll:o,statusbarHeight:s,windowTop:u,windowBottom:l}=e;ST(r),ET(i,a,n),TT();var f=plus.webview.currentWebview().id;window.__id__=f,document.title="".concat(r,"[").concat(f,"]"),OT(s,u,l),o&&document.addEventListener("touchmove",sb),t?CT(r):Il()}function ST(e){window.__PAGE_INFO__={route:e}}function ET(e,t,r){window.__SYSTEM_INFO__={platform:e,pixelRatio:t,windowWidth:r}}function TT(){Ah(0,"div",-1,-1).$=document.getElementById("app")}function CT(e){var t=document.createElement("link");t.type="text/css",t.rel="stylesheet",t.href=e+".css",t.onload=Il,t.onerror=Il,document.head.appendChild(t)}function OT(e,t,r){var i={"--window-left":"0px","--window-right":"0px","--window-top":t+"px","--window-bottom":r+"px","--status-bar-height":e+"px"};K_(i)}var Rh=!1;function AT(e){if(!Rh){Rh=!0;var t={onReachBottomDistance:e,onPageScroll(r){UniViewJSBridge.publishHandler(Rp,{scrollTop:r})},onReachBottom(){UniViewJSBridge.publishHandler(Lp)}};requestAnimationFrame(()=>document.addEventListener("scroll",lb(t)))}}function IT(e,t){var{scrollTop:r,selector:i,duration:a}=e;zp(i||r||0,a),t()}function kT(e){var t=e[0];t[0]===Mu?MT(t):kh(()=>RT(e))}function MT(e){return Mh(e[1])}function RT(e){var t=e[0],r=K1(t[0]===_b?t[1]:[]);e.forEach(i=>{switch(i[0]){case Mu:return Mh(i[1]);case Xp:return void 0;case Zp:var a=i[3];return Ah(i[1],r(i[2]),a===-1?0:a,i[4],ud(r,i[5]));case Kp:return Ke(i[1]).insert(i[2],i[3],ud(r,i[4]));case Gp:return Ke(i[1]).remove();case Jp:return Ke(i[1]).setAttr(r(i[2]),r(i[3]));case Qp:return Ke(i[1]).removeAttr(r(i[2]));case em:return Ke(i[1]).addEvent(r(i[2]),i[3]);case im:return Ke(i[1]).addWxsEvent(r(i[2]),r(i[3]),i[4]);case tm:return Ke(i[1]).removeEvent(r(i[2]));case rm:return Ke(i[1]).setText(r(i[2]));case am:return AT(i[1])}}),ey()}function LT(){var{subscribe:e}=UniViewJSBridge;e(yc,kT),e(xb,t=>Qe().setLocale(t)),e(ks,PT)}function PT(){UniViewJSBridge.publishHandler(ks)}function Lh(e){return window.__$__(e).$}function NT(e){var t={};if(e.id&&(t.id=""),e.dataset&&(t.dataset={}),e.rect&&(t.left=0,t.right=0,t.top=0,t.bottom=0),e.size&&(t.width=document.documentElement.clientWidth,t.height=document.documentElement.clientHeight),e.scrollOffset){var r=document.documentElement,i=document.body;t.scrollLeft=r.scrollLeft||i.scrollLeft||0,t.scrollTop=r.scrollTop||i.scrollTop||0,t.scrollHeight=r.scrollHeight||i.scrollHeight||0,t.scrollWidth=r.scrollWidth||i.scrollWidth||0}return t}function kl(e,t){var r={},{top:i}=Z_();if(t.id&&(r.id=e.id),t.dataset&&(r.dataset=Ro(e)),t.rect||t.size){var a=e.getBoundingClientRect();t.rect&&(r.left=a.left,r.right=a.right,r.top=a.top-i,r.bottom=a.bottom-i),t.size&&(r.width=a.width,r.height=a.height)}if(Array.isArray(t.properties)&&t.properties.forEach(s=>{s=s.replace(/-([a-z])/g,function(u,l){return l.toUpperCase()})}),t.scrollOffset)if(e.tagName==="UNI-SCROLL-VIEW"){var n=e.children[0].children[0];r.scrollLeft=n.scrollLeft,r.scrollTop=n.scrollTop,r.scrollHeight=n.scrollHeight,r.scrollWidth=n.scrollWidth}else r.scrollLeft=0,r.scrollTop=0,r.scrollHeight=0,r.scrollWidth=0;if(Array.isArray(t.computedStyle)){var o=getComputedStyle(e);t.computedStyle.forEach(s=>{r[s]=o[s]})}return t.context&&(r.contextInfo=rE(e)),r}function DT(e,t){return e?window.__$__(e).$:t.$el}function Ph(e,t){var r=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(i){for(var a=this.parentElement.querySelectorAll(i),n=a.length;--n>=0&&a.item(n)!==this;);return n>-1};return r.call(e,t)}function BT(e,t,r,i,a){var n=DT(t,e),o=n.parentElement;if(!o)return i?null:[];var{nodeType:s}=n,u=s===3||s===8;if(i){var l=u?o.querySelector(r):Ph(n,r)?n:n.querySelector(r);return l?kl(l,a):null}else{var f=[],d=(u?o:n).querySelectorAll(r);return d&&d.length&&[].forEach.call(d,p=>{f.push(kl(p,a))}),!u&&Ph(n,r)&&f.unshift(kl(n,a)),f}}function FT(e,t,r){var i=[];t.forEach(a=>{var{component:n,selector:o,single:s,fields:u}=a;n===null?i.push(NT(u)):i.push(BT(e,n,o,s,u))}),r(i)}function $T(e,t){var{pageStyle:r,rootFontSize:i}=t;if(r){var a=document.querySelector("uni-page-body")||document.body;a.setAttribute("style",r)}i&&document.documentElement.style.fontSize!==i&&(document.documentElement.style.fontSize=i)}function zT(e,t){var{reqId:r,component:i,options:a,callback:n}=e,o=Lh(i);(o.__io||(o.__io={}))[r]=H1(o,a,n)}function UT(e,t){var{reqId:r,component:i}=e,a=Lh(i),n=a.__io&&a.__io[r];n&&(n.disconnect(),delete a.__io[r])}var Ml={},Rl={};function HT(e){var t=[],r=["width","minWidth","maxWidth","height","minHeight","maxHeight","orientation"];for(var i of r)i!=="orientation"&&e[i]&&Number(e[i]>=0)&&t.push("(".concat(Nh(i),": ").concat(Number(e[i]),"px)")),i==="orientation"&&e[i]&&t.push("(".concat(Nh(i),": ").concat(e[i],")"));var a=t.join(" and ");return a}function Nh(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function WT(e,t){var{reqId:r,component:i,options:a,callback:n}=e,o=Ml[r]=window.matchMedia(HT(a)),s=Rl[r]=u=>n(u.matches);s(o),o.addListener(s)}function VT(e,t){var{reqId:r,component:i}=e,a=Rl[r],n=Ml[r];n&&(n.removeListener(a),delete Rl[r],delete Ml[r])}function jT(e,t){var{family:r,source:i,desc:a}=e;$p(r,i,a).then(()=>{t()}).catch(n=>{t(n.toString())})}var YT={$el:document.body};function qT(){var e=Gt();Im(e,t=>function(){for(var r=arguments.length,i=new Array(r),a=0;a{t.apply(null,i)})}),bt(e,"requestComponentInfo",(t,r)=>{FT(YT,t.reqs,r)}),bt(e,"addIntersectionObserver",t=>{zT(ce({},t,{callback(r){UniViewJSBridge.publishHandler(t.eventName,r)}}))}),bt(e,"removeIntersectionObserver",t=>{UT(t)}),bt(e,"addMediaQueryObserver",t=>{WT(ce({},t,{callback(r){UniViewJSBridge.publishHandler(t.eventName,r)}}))}),bt(e,"removeMediaQueryObserver",t=>{VT(t)}),bt(e,$1,IT),bt(e,F1,jT),bt(e,B1,t=>{$T(null,t)})}window.uni=X1,window.UniViewJSBridge=xc,window.rpx2px=od,window.normalizeStyleName=pd,window.normalizeStyleValue=cl,window.__$__=Ke,window.__f__=Vp;function Dh(){Fm(),qT(),LT(),Z1(),xc.publishHandler(ks)}typeof plus!="undefined"?Dh():document.addEventListener("plusready",Dh)}); diff --git a/packages/uni-app-plus/vite.config.ts b/packages/uni-app-plus/vite.config.ts index d93d68b4a14872b848d41d7e7c5a93ddf13d288f..b10838b0e6dca54ca6c55ef694163a4b038747ce 100644 --- a/packages/uni-app-plus/vite.config.ts +++ b/packages/uni-app-plus/vite.config.ts @@ -122,7 +122,7 @@ export default defineConfig({ build: { target: 'es2015', cssTarget, - minify: false, + minify: true, lib: { name: 'uni-app-view', fileName: 'uni-app-view',