ct-answer-designer 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +22 -0
- package/README.md +285 -0
- package/dist/ct-answer-designer.es.js +3675 -0
- package/dist/ct-answer-designer.umd.js +30 -0
- package/dist/static/AuthingSSO.umd.min.js +1 -0
- package/dist/style.css +1 -0
- package/fcDesignerPro/dist/index.es.js +61523 -0
- package/fcDesignerPro/dist/index.umd.js +1568 -0
- package/fcDesignerPro/dist/pc/index.es.js +60130 -0
- package/fcDesignerPro/dist/pc/index.umd.js +1553 -0
- package/fcDesignerPro/dist/render/element-plus/form-create.es.js +16856 -0
- package/fcDesignerPro/dist/render/element-plus/form-create.umd.js +89 -0
- package/fcDesignerPro/dist/render/vant/form-create.es.js +17239 -0
- package/fcDesignerPro/dist/render/vant/form-create.umd.js +104 -0
- package/package.json +57 -0
- package/public/static/AuthingSSO.umd.min.js +1 -0
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* FormCreate商业版可视化表单设计器-让表单设计更简单
|
|
3
|
+
* fc-designer-pro v5.7.2
|
|
4
|
+
* (c) 2018-2025 FormCreate Team https://form-create.com/
|
|
5
|
+
* license 仅限于被授权主体(个人、企业或组织)使用
|
|
6
|
+
*/
|
|
7
|
+
(function(){"use strict";try{if(typeof document!="undefined"){var e=document.createElement("style");e.appendChild(document.createTextNode('._fc-step-form{width:100%}._fc-step-form .van-step{line-height:1.4;text-align:left}._fc-popup.van-popup{display:flex;height:100%;padding-bottom:110px;padding-top:50px}._fc-popup-title{color:#333;font-size:16px;left:0;position:absolute;text-align:center;top:16px;width:100%}._fc-popup-content{display:flex;flex:1;overflow:auto}._fc-popup-footer{bottom:0;left:0;padding:10px;position:absolute;right:0}._fc-data-table{width:100%}._fc-data-table .el-table{--el-table-header-bg-color:#e8eefc}._fc-data-table .el-pagination{display:flex;margin-top:10px}._fc-data-table .el-pagination.left{justify-content:flex-start}._fc-data-table .el-pagination.center{justify-content:center}._fc-data-table .el-pagination.right{justify-content:flex-end}._fc-data-table ._fc-data-table-img-list .el-image{height:60px;max-width:150px}._fc-table{overflow:auto}._fc-table>table{border-bottom:1px solid #ebeef5;border-collapse:collapse;border-right:1px solid #ebeef5;border-color:#ebeef5 currentcolor currentcolor #ebeef5;border-style:solid none none solid;border-width:1px 0 0 1px;height:100%;overflow:hidden;table-layout:fixed;width:100%}._fc-table td,._fc-table tr{min-height:50px}._fc-table td{border-bottom:0;border-right:0;border-color:currentcolor #ebeef5 #ebeef5 currentcolor;border-style:none solid solid none;border-width:0 1px 1px 0;box-sizing:border-box;min-width:80px;overflow:hidden;overflow-wrap:break-word;padding:5px;position:relative}._fc-table.is-mini td{min-height:12px;padding:0}._fc-table.is-mini .el-form-item{margin:0;padding:0}._fc-table-form{color:var(--fc-text-color-2);overflow:auto}._fc-table-form .form-create td .el-form-item{margin-bottom:1px}._fc-table-form .form-create td .el-form-item.is-error{margin-bottom:22px}._fc-table-form .el-form-item__label,._fc-table-form .van-field__label{display:none!important}._fc-table-form .el-form-item__content{display:flex;margin-left:0!important;width:100%!important}._fc-tf-head-idx,._fc-tf-idx{font-weight:500;min-width:40px;text-align:center;width:40px}._fc-tf-btn,._fc-tf-edit{min-width:70px;text-align:center;width:70px}._fc-tf-btn .fc-icon{cursor:pointer}._fc-table-form._fc-disabled ._fc-tf-btn .fc-icon,._fc-table-form._fc-disabled>.el-button{cursor:not-allowed}._fc-tf-table{border:1px solid #ebeef5;border-bottom:0;height:100%;overflow:hidden;table-layout:fixed;width:100%}._fc-table-form ._fc-tf-table>thead>tr>th{border:0;border-bottom:1px solid #ebeef5;box-sizing:border-box;font-weight:500;height:40px;padding:0 5px}._fc-table-form ._fc-tf-table>thead>tr>th+th{border-left:1px solid #ebeef5}._fc-table-form tr{min-height:50px}._fc-table-form ._fc-read-view{text-align:center;width:100%}._fc-table-form td{border:0;border-bottom:1px solid #ebeef5;box-sizing:border-box;min-height:50px;min-width:80px;overflow:hidden;overflow-wrap:break-word;padding:5px;position:relative}._fc-table-form td+td{border-left:1px solid #ebeef5}._fc-tf-table .el-cascader,._fc-tf-table .el-date-editor,._fc-tf-table .el-input-number,._fc-tf-table .el-select,._fc-tf-table .el-slider{width:100%}._fc-tf-head-required:before{color:#f56c6c;content:"*";margin-right:4px}._fc-table-form-v2{color:var(--fc-text-color-2);overflow:auto;width:100%}._fc-table-form-v2 .is-required:before{color:#f56c6c;content:"*";margin-right:4px}._fc-table-form-v2 .form-create td .el-form-item{margin-bottom:1px}._fc-table-form-v2 .form-create td .el-form-item.is-error{margin-bottom:22px}._fc-table-form-v2 .el-form-item__content{display:flex;margin-left:0!important;width:100%!important}._fc-table-form-v2 .el-form-item__label{display:none!important}._fc-tf-pro-handle{align-items:center;display:flex;flex-direction:row;justify-content:space-between;margin-top:12px}._fc-table-form-v2 .el-cascader,._fc-table-form-v2 .el-date-editor,._fc-table-form-v2 .el-input-number,._fc-table-form-v2 .el-select,._fc-table-form-v2 .el-slider{width:100%}._fc-infinite-table-form{color:var(--fc-text-color-2);overflow:auto}._fc-infinite-table-form .form-create .el-form-item{margin-bottom:1px}._fc-infinite-table-form .form-create .el-form-item.is-error{margin-bottom:22px}._fc-infinite-table-form .el-form-item__label,._fc-infinite-table-form .van-field__label{display:none!important}._fc-infinite-table-form .el-form-item__content{display:flex;margin-left:0!important;width:100%!important}._fc-itf-table ._fc-itf-head-idx,._fc-itf-table ._fc-itf-idx{font-weight:500;min-width:40px;padding:0;text-align:center;width:40px}._fc-itf-idx div{border:1px solid #bfbfbf;border-radius:6px;cursor:pointer;display:inline-flex;height:18px;justify-content:center;line-height:16px;width:18px}._fc-itf-sub-idx{width:30px}._fc-itf-btn,._fc-itf-edit{min-width:70px;text-align:center;width:70px}._fc-itf-btn .fc-icon{cursor:pointer}._fc-infinite-table-form._fc-disabled ._fc-itf-btn .fc-icon,._fc-infinite-table-form._fc-disabled>.el-button{cursor:not-allowed}._fc-itf-table{border:1px solid #ebeef5;border-bottom:0;height:100%;overflow:hidden;table-layout:fixed;width:100%}._fc-itf-table>thead>tr>th{border:0;border-bottom:1px solid #ebeef5;font-weight:500;height:40px}._fc-itf-table ._fc-itf-table>thead{display:none}._fc-itf-table ._fc-itf-table{border-right:0}._fc-itf-table>thead>tr>th+th{border-left:1px solid #ebeef5}._fc-itf-table tr{min-height:50px}._fc-itf-table ._fc-read-view{text-align:center;width:100%}._fc-itf-table td{border:0;border-bottom:1px solid #ebeef5;box-sizing:border-box;min-height:50px;min-width:80px;overflow:hidden;overflow-wrap:break-word;padding:10px;position:relative}._fc-itf-table td+td{border-left:1px solid #ebeef5}._fc-itf-table .el-cascader,._fc-itf-table .el-date-editor,._fc-itf-table .el-input-number,._fc-itf-table .el-select,._fc-itf-table .el-slider{width:100%}._fc-infinite-table-form ._fc-itf-sub{padding:5px 0 5px 10px}._fc-itf-sub ._fc-table-form{background-color:var(--fc-bg-color-1)}._fc-itf-sub ._fc-tf-table{border:0}._fc-itf-idx+._fc-itf-idx,._fc-itf-sub-idx+._fc-itf-head-idx{border-left:0}._fc-itf-head-required:before{color:#f56c6c;content:"*";margin-right:4px}._fc-nested-table-form{color:var(--fc-text-color-2);overflow:auto}._fc-nested-table-form .form-create .el-form-item{margin-bottom:1px}._fc-nested-table-form .form-create .el-form-item.is-error{margin-bottom:22px}._fc-nested-table-form .el-form-item__label,._fc-nested-table-form .van-field__label{display:none!important}._fc-nested-table-form .el-form-item__content{display:flex;margin-left:0!important;width:100%!important}._fc-ntf-table ._fc-ntf-head-idx,._fc-ntf-table ._fc-ntf-idx{font-weight:500;min-width:40px;padding:0;text-align:center;width:40px}._fc-ntf-idx div{border:1px solid #bfbfbf;border-radius:6px;cursor:pointer;display:inline-flex;height:18px;justify-content:center;line-height:16px;width:18px}._fc-ntf-sub-idx{width:30px}._fc-ntf-btn,._fc-ntf-edit{min-width:70px;text-align:center;width:70px}._fc-ntf-btn .fc-icon{cursor:pointer}._fc-nested-table-form._fc-disabled ._fc-ntf-btn .fc-icon,._fc-nested-table-form._fc-disabled>.el-button{cursor:not-allowed}._fc-ntf-table{border:1px solid #ebeef5;border-bottom:0;height:100%;overflow:hidden;table-layout:fixed;width:100%}._fc-ntf-table>thead>tr>th{border:0;border-bottom:1px solid #ebeef5;font-weight:500;height:40px}._fc-ntf-table>thead>tr>th+th{border-left:1px solid #ebeef5}._fc-ntf-table tr{min-height:50px}._fc-ntf-table ._fc-read-view{text-align:center;width:100%}._fc-ntf-table td{border:0;border-bottom:1px solid #ebeef5;box-sizing:border-box;min-height:50px;min-width:80px;overflow:hidden;overflow-wrap:break-word;padding:10px;position:relative}._fc-ntf-table td+td{border-left:1px solid #ebeef5}._fc-ntf-table .el-cascader,._fc-ntf-table .el-date-editor,._fc-ntf-table .el-input-number,._fc-ntf-table .el-select,._fc-ntf-table .el-slider{width:100%}._fc-nested-table-form ._fc-ntf-sub{background-color:#fafafa}._fc-ntf-sub ._fc-table-form{background-color:var(--fc-bg-color-1)}._fc-ntf-sub ._fc-tf-table{border:0}._fc-ntf-idx+._fc-ntf-idx,._fc-ntf-sub-idx+._fc-ntf-head-idx{border-left:0}._fc-ntf-head-required:before{color:#f56c6c;content:"*";margin-right:4px}._fc-cell{display:inline-block}._fc-cell .el-cascader,._fc-cell .el-date-editor,._fc-cell .el-input-number,._fc-cell .el-select,._fc-cell .el-slider,._fc-city-m{width:100%}._fc-city-m .van-cell{padding:0}._fc-line-form{align-items:flex-start;display:flex;flex-flow:wrap;width:100%}.form-create-m ._fc-line-form{display:flex;flex-wrap:wrap}.form-create ._fc-line-form ._fc-line-form,.form-create ._fc-line-form ._fd-drag-item,.form-create ._fc-line-form ._fd-drag-tool,.form-create ._fc-line-form .el-col-24{display:inline-flex;flex:initial;flex:unset!important;flex-wrap:wrap;max-width:100%;width:auto!important}._fc-m-con .form-create ._fc-line-form>.el-col-24{width:100%!important}._fc-line-form .el-form-item{display:inline-flex;vertical-align:middle}._fc-line-form .el-select,._fc-line-form .el-slider{width:220px}._fc-echarts{height:300px;width:100%}._fc-m-signature{width:100%}._fc-m-signature-btn,._fc-m-signature-preview{background:#fff;border:1px dashed #d4d7e0;border-radius:4px;box-sizing:border-box;color:#c9ccd8;font-size:14px;height:88px;line-height:88px;min-width:160px;position:relative;text-align:center;width:100%}._fc-m-signature-btn{cursor:pointer}._fc-m-signature.disabled ._fc-signature-btn{color:#c9ccd8;cursor:not-allowed}._fc-m-signature-preview>img{display:inline-block;height:88px}._fc-m-signature-preview .icon-delete2{cursor:pointer;display:inline-block;font-size:14px;line-height:14px;position:absolute;right:9px;top:9px}._fc-m-signature-btn i{font-size:14px}._fc-m-signature-dialog .van-dialog__header{padding:15px 0;position:relative}._fc-m-signature-dialog .icon-add2{color:var(--fc-text-color-3);display:inline-block;position:absolute;right:18px;transform:rotate(45deg)}._fc-m-signature-pad{background-image:linear-gradient(#fff 14px,transparent 0),linear-gradient(90deg,#fff 14px,#d4d7e0 0);background-size:15px 15px;border:1px dashed #d4d7e0;border-radius:4px;box-sizing:border-box;width:100%}._fc-title{font-size:16px;font-weight:600;margin-bottom:16px;margin-top:1em;width:100%}._fc-title.h1,._fc-title.h2{border-bottom:1px solid #eee;padding-bottom:.3em}._fc-title.h1{font-size:32px;line-height:1.2}._fc-title.h2{font-size:24px;line-height:1.225}._fc-title.h3{font-size:20px;line-height:1.43}._fc-title.h4{font-size:16px}._fc-title.h5{font-size:14px}._fc-title.h6{font-size:12px}._fc-markdown{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;word-wrap:break-word;color-scheme:light;font-size:16px;line-height:1.5;margin:0;width:100%}._fc-markdown details,._fc-markdown figcaption,._fc-markdown figure{display:block}._fc-markdown summary{display:list-item}._fc-markdown [hidden]{display:none!important}._fc-markdown a{background-color:transparent;color:#0969da;text-decoration:none}._fc-markdown abbr[title]{border-bottom:none;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}._fc-markdown b,._fc-markdown strong{font-weight:600}._fc-markdown dfn{font-style:italic}._fc-markdown h1{border-bottom:1px solid #d1d9e0b3;font-size:2em;font-weight:600;margin:.67em 0;padding-bottom:.3em}._fc-markdown mark{background-color:#fff8c5;color:#1f2328}._fc-markdown small{font-size:90%}._fc-markdown sub,._fc-markdown sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}._fc-markdown sub{bottom:-.25em}._fc-markdown sup{top:-.5em}._fc-markdown img{border-style:none;box-sizing:content-box;max-width:100%}._fc-markdown code,._fc-markdown kbd,._fc-markdown pre,._fc-markdown samp{font-family:monospace;font-size:1em}._fc-markdown figure{margin:1em 2.5rem}._fc-markdown hr{background:transparent;background-color:#d1d9e0;border:0;box-sizing:content-box;height:.25em;margin:1.5rem 0;overflow:hidden;padding:0}._fc-markdown input{font:inherit;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible}._fc-markdown [type=button],._fc-markdown [type=reset],._fc-markdown [type=submit]{-webkit-appearance:button;appearance:button}._fc-markdown [type=checkbox],._fc-markdown [type=radio]{box-sizing:border-box;padding:0}._fc-markdown [type=number]::-webkit-inner-spin-button,._fc-markdown [type=number]::-webkit-outer-spin-button{height:auto}._fc-markdown [type=search]::-webkit-search-cancel-button,._fc-markdown [type=search]::-webkit-search-decoration{-webkit-appearance:none;appearance:none}._fc-markdown ::-webkit-input-placeholder{color:inherit;opacity:.54}._fc-markdown ::-webkit-file-upload-button{-webkit-appearance:button;appearance:button;font:inherit}._fc-markdown a:hover{text-decoration:underline}._fc-markdown ::placeholder{color:#59636e;opacity:1}._fc-markdown hr:after,._fc-markdown hr:before{content:"";display:table}._fc-markdown hr:after{clear:both}._fc-markdown table{border-collapse:collapse;border-spacing:0;display:block;font-variant:tabular-nums;max-width:100%;overflow:auto;width:max-content}._fc-markdown td,._fc-markdown th{padding:0}._fc-markdown details summary{cursor:pointer}._fc-markdown [role=button]:focus,._fc-markdown a:focus,._fc-markdown input[type=checkbox]:focus,._fc-markdown input[type=radio]:focus{box-shadow:none;outline:2px solid #0969da;outline-offset:-2px}._fc-markdown [role=button]:focus:not(:focus-visible),._fc-markdown a:focus:not(:focus-visible),._fc-markdown input[type=checkbox]:focus:not(:focus-visible),._fc-markdown input[type=radio]:focus:not(:focus-visible){outline:1px solid transparent}._fc-markdown [role=button]:focus-visible,._fc-markdown a:focus-visible,._fc-markdown input[type=checkbox]:focus-visible,._fc-markdown input[type=radio]:focus-visible{box-shadow:none;outline:2px solid #0969da;outline-offset:-2px}._fc-markdown a:not([class]):focus,._fc-markdown a:not([class]):focus-visible,._fc-markdown input[type=checkbox]:focus,._fc-markdown input[type=checkbox]:focus-visible,._fc-markdown input[type=radio]:focus,._fc-markdown input[type=radio]:focus-visible{outline-offset:0}._fc-markdown kbd{background-color:#f6f8fa;border:1px solid #d1d9e0b3;border-radius:6px;box-shadow:inset 0 -1px #d1d9e0b3;color:#1f2328;display:inline-block;font:11px ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;line-height:10px;padding:.25rem;vertical-align:middle}._fc-markdown h1,._fc-markdown h2,._fc-markdown h3,._fc-markdown h4,._fc-markdown h5,._fc-markdown h6{font-weight:600;line-height:1.25;margin-bottom:1rem;margin-top:1.5rem}._fc-markdown h2{border-bottom:1px solid #d1d9e0b3;font-size:1.5em;font-weight:600;padding-bottom:.3em}._fc-markdown h3{font-size:1.25em;font-weight:600}._fc-markdown h4{font-size:1em;font-weight:600}._fc-markdown h5{font-size:.875em;font-weight:600}._fc-markdown h6{color:#59636e;font-size:.85em;font-weight:600}._fc-markdown p{margin-bottom:10px;margin-top:0}._fc-markdown blockquote{border-left:.25em solid #d1d9e0;color:#59636e;margin:0;padding:0 1em}._fc-markdown ol,._fc-markdown ul{margin-bottom:0;margin-top:0;padding-left:2em}._fc-markdown ol ol,._fc-markdown ul ol{list-style-type:lower-roman}._fc-markdown ol ol ol,._fc-markdown ol ul ol,._fc-markdown ul ol ol,._fc-markdown ul ul ol{list-style-type:lower-alpha}._fc-markdown dd{margin-left:0}._fc-markdown code,._fc-markdown pre,._fc-markdown samp,._fc-markdown tt{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px}._fc-markdown pre{word-wrap:normal;margin-bottom:0;margin-top:0}._fc-markdown input::-webkit-inner-spin-button,._fc-markdown input::-webkit-outer-spin-button{appearance:none;margin:0}._fc-markdown:after,._fc-markdown:before{content:"";display:table}._fc-markdown:after{clear:both}._fc-markdown>:first-child{margin-top:0!important}._fc-markdown>:last-child{margin-bottom:0!important}._fc-markdown a:not([href]){color:inherit;text-decoration:none}._fc-markdown blockquote,._fc-markdown details,._fc-markdown dl,._fc-markdown ol,._fc-markdown p,._fc-markdown pre,._fc-markdown table,._fc-markdown ul{margin-bottom:1rem;margin-top:0}._fc-markdown blockquote>:first-child{margin-top:0}._fc-markdown blockquote>:last-child{margin-bottom:0}._fc-markdown h1:hover .anchor,._fc-markdown h2:hover .anchor,._fc-markdown h3:hover .anchor,._fc-markdown h4:hover .anchor,._fc-markdown h5:hover .anchor,._fc-markdown h6:hover .anchor{text-decoration:none}._fc-markdown h1 code,._fc-markdown h1 tt,._fc-markdown h2 code,._fc-markdown h2 tt,._fc-markdown h3 code,._fc-markdown h3 tt,._fc-markdown h4 code,._fc-markdown h4 tt,._fc-markdown h5 code,._fc-markdown h5 tt,._fc-markdown h6 code,._fc-markdown h6 tt{font-size:inherit;padding:0 .2em}._fc-markdown summary h1,._fc-markdown summary h2,._fc-markdown summary h3,._fc-markdown summary h4,._fc-markdown summary h5,._fc-markdown summary h6{display:inline-block}._fc-markdown summary h1,._fc-markdown summary h2{border-bottom:0;padding-bottom:0}._fc-markdown ol.no-list,._fc-markdown ul.no-list{list-style-type:none;padding:0}._fc-markdown ol[type="a s"]{list-style-type:lower-alpha}._fc-markdown ol[type="A s"]{list-style-type:upper-alpha}._fc-markdown ol[type="i s"]{list-style-type:lower-roman}._fc-markdown ol[type="I s"]{list-style-type:upper-roman}._fc-markdown div>ol:not([type]),._fc-markdown ol[type="1"]{list-style-type:decimal}._fc-markdown ol ol,._fc-markdown ol ul,._fc-markdown ul ol,._fc-markdown ul ul{margin-bottom:0;margin-top:0}._fc-markdown li>p{margin-top:1rem}._fc-markdown li+li{margin-top:.25em}._fc-markdown dl{padding:0}._fc-markdown dl dt{font-size:1em;font-style:italic;font-weight:600;margin-top:1rem;padding:0}._fc-markdown dl dd{margin-bottom:1rem;padding:0 1rem}._fc-markdown table th{font-weight:600}._fc-markdown table td,._fc-markdown table th{border:1px solid #d1d9e0;padding:6px 13px}._fc-markdown table td>:last-child{margin-bottom:0}._fc-markdown table tr{background-color:#fff;border-top:1px solid #d1d9e0b3}._fc-markdown table tr:nth-child(2n){background-color:#f6f8fa}._fc-markdown table img{background-color:transparent}._fc-markdown img[align=right]{padding-left:20px}._fc-markdown img[align=left]{padding-right:20px}._fc-markdown .emoji{background-color:transparent;max-width:none;vertical-align:text-top}._fc-markdown span.frame{display:block;overflow:hidden}._fc-markdown span.frame>span{border:1px solid #d1d9e0;display:block;float:left;margin:13px 0 0;overflow:hidden;padding:7px;width:auto}._fc-markdown span.frame span img{display:block;float:left}._fc-markdown span.frame span span{clear:both;color:#1f2328;display:block;padding:5px 0 0}._fc-markdown span.align-center{clear:both;display:block;overflow:hidden}._fc-markdown span.align-center>span{display:block;margin:13px auto 0;overflow:hidden;text-align:center}._fc-markdown span.align-center span img{margin:0 auto;text-align:center}._fc-markdown span.align-right{clear:both;display:block;overflow:hidden}._fc-markdown span.align-right>span{display:block;margin:13px 0 0;overflow:hidden;text-align:right}._fc-markdown span.align-right span img{margin:0;text-align:right}._fc-markdown span.float-left{display:block;float:left;margin-right:13px;overflow:hidden}._fc-markdown span.float-left span{margin:13px 0 0}._fc-markdown span.float-right{display:block;float:right;margin-left:13px;overflow:hidden}._fc-markdown span.float-right>span{display:block;margin:13px auto 0;overflow:hidden;text-align:right}._fc-markdown code,._fc-markdown tt{background-color:#818b981f;border-radius:6px;font-size:85%;margin:0;padding:.2em .4em;white-space:break-spaces}._fc-markdown code br,._fc-markdown tt br{display:none}._fc-markdown del code{text-decoration:inherit}._fc-markdown samp{font-size:85%}._fc-markdown pre code{font-size:100%}._fc-markdown pre>code{background:transparent;border:0;margin:0;padding:0;white-space:pre;word-break:normal}._fc-markdown .highlight{margin-bottom:1rem}._fc-markdown .highlight pre{margin-bottom:0;word-break:normal}._fc-markdown .highlight pre,._fc-markdown pre{background-color:#f6f8fa;border-radius:6px;color:#1f2328;font-size:85%;line-height:1.45;overflow:auto;padding:1rem}._fc-markdown pre code,._fc-markdown pre tt{word-wrap:normal;background-color:transparent;border:0;display:inline;line-height:inherit;margin:0;max-width:auto;overflow:visible;padding:0}._fc-markdown [data-footnote-ref]:before{content:"["}._fc-markdown [data-footnote-ref]:after{content:"]"}._fc-markdown [role=button]:focus:not(:focus-visible),._fc-markdown [role=tabpanel][tabindex="0"]:focus:not(:focus-visible),._fc-markdown a:focus:not(:focus-visible),._fc-markdown button:focus:not(:focus-visible),._fc-markdown summary:focus:not(:focus-visible){box-shadow:none;outline:none}._fc-markdown [tabindex="0"]:focus:not(:focus-visible),._fc-markdown details-dialog:focus:not(:focus-visible){outline:none}._fc-markdown g-emoji{display:inline-block;font-family:Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;font-size:1em;font-style:normal!important;font-weight:400;line-height:1;min-width:1ch;vertical-align:-.075em}._fc-markdown g-emoji img{height:1em;width:1em}._fc-markdown .task-list-item{list-style-type:none}._fc-markdown .task-list-item label{font-weight:400}._fc-markdown .task-list-item.enabled label{cursor:pointer}._fc-markdown .task-list-item+.task-list-item{margin-top:.25rem}._fc-markdown .task-list-item .handle{display:none}._fc-markdown .task-list-item-checkbox{margin:0 .2em .25em -1.4em;vertical-align:middle}._fc-markdown ul:dir(rtl) .task-list-item-checkbox{margin:0 -1.6em .25em .2em}._fc-markdown ol:dir(rtl) .task-list-item-checkbox{margin:0 -1.6em .25em .2em}._fc-dialog .el-dialog__headerbtn{align-items:center;color:var(--el-color-info);display:flex;justify-content:center}._fc-dialog .el-dialog__headerbtn:hover .fc-icon{color:var(--el-color-primary)}._fc-data-select-pop{display:none!important}._fc-data-select,._fc-iframe-box,._fc-video-box{width:100%}.form-create-m .van-checkbox--horizontal,.form-create-m .van-radio--horizontal{margin-bottom:5px}.form-create-m .el-input__wrapper,.form-create-m .el-select__wrapper{border-radius:0;box-shadow:none;padding-right:0}.form-create-m .el-input__wrapper:before,.form-create-m .el-select__wrapper:before{border-bottom:1px solid var(--van-cell-border-color);bottom:0;box-sizing:border-box;content:" ";left:var(--van-padding-md);pointer-events:none;position:absolute;right:var(--van-padding-md);transform:scaleY(.5)}.form-create-m .el-select__suffix{display:none}.form-create-m .el-input__wrapper:after,.form-create-m .el-select__wrapper:after{color:var(--van-cell-right-icon-color);content:"\\e660";font:normal normal normal 14px/1 var(--van-icon-font-family,"vant-icon")}.form-create-m .el-date-editor.el-input,.form-create-m .el-date-editor.el-input__wrapper,.form-create-m .el-tree{width:100%}.form-create-m .el-upload--picture-card,.form-create-m .el-upload-list{--el-upload-list-picture-card-size:64px;--el-upload-picture-card-size:64px}.form-create-m.is-preview ._fc-upload .el-icon--close,.form-create-m.is-preview ._fc-upload .el-icon--close-tip,.form-create-m.is-preview ._fc-upload .el-upload{display:none!important}@font-face{font-family:fc-icon;src:url(data:font/woff;base64,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) format("woff")}.fc-icon{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fc-icon!important;font-size:16px;font-style:normal}.icon-write:before{content:"\\e60b"}.icon-branch:before{content:"\\e6e3"}.icon-device:before{content:"\\e6e0"}.icon-position-left:before{content:"\\e6e2"}.icon-search:before{content:"\\e6e1"}.icon-expand:before{content:"\\e6df"}.icon-expand-left:before{content:"\\e6df";display:inline-block;transform:rotate(-180deg)}.icon-data-select:before{content:"\\e6dd"}.icon-markdown:before{content:"\\e893"}.icon-grid-line:before{content:"\\e600"}.icon-print:before{content:"\\e6de"}.icon-city:before{content:"\\e64b"}.icon-location:before{content:"\\e6d4"}.icon-qrcode:before{content:"\\e6ce"}.icon-input-id:before{content:"\\e6d1"}.icon-iframe:before{content:"\\e6d2"}.icon-audio:before{content:"\\e6d3"}.icon-form-model:before{content:"\\e6d5"}.icon-title:before{content:"\\e6d6"}.icon-sign:before{content:"\\e6d7"}.icon-address:before{content:"\\e6d8"}.icon-statistic:before{content:"\\e6d9"}.icon-barcode:before{content:"\\e6da"}.icon-video:before{content:"\\e6db"}.icon-avatar:before{content:"\\e6dc"}.icon-suspend:before{content:"\\e6cf"}.icon-warning:before{content:"\\e6d0"}.icon-send:before{content:"\\e6cc"}.icon-refresh2:before{content:"\\e6cd"}.icon-ai:before{content:"\\e6cb"}.icon-ai.bright{-webkit-text-fill-color:transparent;background:linear-gradient(90deg,#328ff7,#62e3a3);-webkit-background-clip:text}.icon-column4:before{content:"\\e6c7"}.icon-column3:before{content:"\\e6c6"}.icon-column2:before{content:"\\e6c8"}.icon-column1:before{content:"\\e6c9"}.icon-layout:before{content:"\\e6ca"}.icon-segmented:before{content:"\\e682"}.icon-mention:before{content:"\\e6c5"}.icon-input-tag:before{content:"\\e6c4"}.icon-up:before{content:"\\e697";display:inline-block;transform:rotate(180deg)}.icon-alignitems-flexstart:before{content:"\\e67f";display:inline-block;transform:rotate(180deg)}.icon-align-center:before{content:"\\e6a5";display:inline-block;transform:rotate(90deg)}.icon-align-flexstart:before{content:"\\e6a4";display:inline-block;transform:rotate(90deg)}.icon-align-spacearound:before{content:"\\e670";display:inline-block;transform:rotate(-90deg)}.icon-align-spacebetween:before{content:"\\e695";display:inline-block;transform:rotate(-90deg)}.icon-align-stretch:before{content:"\\e6a7";display:inline-block;transform:rotate(-90deg)}.icon-align-flexend:before{content:"\\e6a4";display:inline-block;transform:rotate(-90deg)}.icon-justify-flexend:before{content:"\\e6a4";display:inline-block;transform:rotate(180deg)}.icon-direction-row:before{content:"\\e68b";display:inline-block;transform:rotate(180deg)}.icon-direction-column:before{content:"\\e68b";display:inline-block;transform:rotate(-90deg)}.icon-direction-columnreverse:before{content:"\\e68b";display:inline-block;transform:rotate(90deg)}.icon-arrow:before{content:"\\e697";display:inline-block;transform:rotate(180deg)}.icon-cell:before{content:"\\e654"}.icon-table:before{content:"\\eb0a"}.icon-next-step:before{content:"\\e6b4";display:inline-block;transform:rotateY(180deg)}.icon-grid:before{content:"\\e65c";display:inline-block;transform:rotate(90deg)}.icon-alignitems-stretch:before{content:"\\e67e"}.icon-alignitems-flexend:before{content:"\\e67f"}.icon-check:before{content:"\\e680"}.icon-auto:before{content:"\\e681"}.icon-config-event:before{content:"\\e66e"}.icon-calendar:before{content:"\\e683"}.icon-config-style:before{content:"\\e684"}.icon-copy:before{content:"\\e676"}.icon-config-advanced:before{content:"\\e686"}.icon-config-props:before{content:"\\e687"}.icon-delete-circle2:before{content:"\\e688"}.icon-delete-circle:before,.icon-delete2:before{content:"\\e689"}.icon-delete:before{content:"\\e68a"}.icon-direction-rowreverse:before{content:"\\e68b"}.icon-display-flex:before{content:"\\e68c"}.icon-dialog:before{content:"\\e66f"}.icon-drag:before{content:"\\e68e"}.icon-display-block:before{content:"\\e68f"}.icon-data:before{content:"\\e690"}.icon-edit2:before{content:"\\e691"}.icon-edit:before{content:"\\e692"}.icon-add-col:before{content:"\\e693"}.icon-display-inlineblock:before{content:"\\e694"}.icon-config-base:before{content:"\\e6bf"}.icon-config-validate:before{content:"\\e696"}.icon-down:before{content:"\\e697"}.icon-display-inline:before{content:"\\e698"}.icon-eye:before{content:"\\e699"}.icon-eye-close:before{content:"\\e69a"}.icon-import:before{content:"\\e6a6"}.icon-preview:before{content:"\\e69b"}.icon-flex-nowrap:before{content:"\\e69c"}.icon-folder:before{content:"\\e69d"}.icon-form-circle:before{content:"\\e69e"}.icon-flex-wrap:before{content:"\\e69f"}.icon-form:before{content:"\\e6a0"}.icon-form-item:before{content:"\\e6a1"}.icon-icon:before{content:"\\e6a2"}.icon-image:before{content:"\\e6a3"}.icon-justify-flexstart:before{content:"\\e6a4"}.icon-justify-center:before{content:"\\e6a5"}.icon-justify-spacearound:before{content:"\\e670"}.icon-justify-stretch:before{content:"\\e6a7"}.icon-link2:before{content:"\\e6a8"}.icon-justify-spacebetween:before{content:"\\e695"}.icon-minus:before{content:"\\e6aa"}.icon-menu2:before{content:"\\e6ab"}.icon-more:before{content:"\\e6ac"}.icon-menu:before{content:"\\e6ad"}.icon-language:before{content:"\\e6ae"}.icon-pad:before{content:"\\e6af"}.icon-mobile:before{content:"\\e6b0"}.icon-page-max:before{content:"\\e6b1"}.icon-move:before{content:"\\e6b2"}.icon-page-min:before{content:"\\e6b3"}.icon-pre-step:before{content:"\\e6b4"}.icon-pc:before{content:"\\e6b5"}.icon-page:before{content:"\\e6b6"}.icon-refresh:before{content:"\\e6b7"}.icon-radius:before{content:"\\e6b8"}.icon-save-filled:before{content:"\\e6b9"}.icon-question:before{content:"\\e6ba"}.icon-scroll:before{content:"\\e6bb"}.icon-script:before{content:"\\e6bc"}.icon-setting:before{content:"\\e6bd"}.icon-save-online:before,.icon-save:before{content:"\\e6be"}.icon-task-add:before{content:"\\e68d"}.icon-shadow:before{content:"\\e6c0"}.icon-variable:before{content:"\\e6c1"}.icon-yes:before{content:"\\e6c2"}.icon-shadow-inset:before{content:"\\e6c3"}.icon-date:before{content:"\\e642"}.icon-date-range:before{content:"\\e643"}.icon-collapse:before{content:"\\e644"}.icon-slider:before{content:"\\e665"}.icon-switch:before{content:"\\e646"}.icon-subform:before{content:"\\e647"}.icon-time-range:before{content:"\\e685"}.icon-tree-select:before{content:"\\e649"}.icon-value:before{content:"\\e64a"}.icon-table-form3:before{content:"\\e6a9"}.icon-alert:before{content:"\\e64c"}.icon-card:before{content:"\\e64d"}.icon-checkbox:before{content:"\\e64e"}.icon-cascader:before{content:"\\e64f"}.icon-button:before{content:"\\e650"}.icon-data-table:before{content:"\\e651"}.icon-group:before{content:"\\e652"}.icon-divider:before{content:"\\e653"}.icon-flex:before{content:"\\e654"}.icon-descriptions:before{content:"\\e655"}.icon-html:before{content:"\\e656"}.icon-editor:before{content:"\\e657"}.icon-input:before{content:"\\e658"}.icon-link:before{content:"\\e659"}.icon-password:before{content:"\\e65a"}.icon-radio:before{content:"\\e65b"}.icon-row:before{content:"\\e65c"}.icon-inline:before{content:"\\e65d"}.icon-rate:before{content:"\\e65e"}.icon-color:before{content:"\\e65f"}.icon-select:before{content:"\\e660"}.icon-json:before{content:"\\e661"}.icon-number:before{content:"\\e662"}.icon-space:before{content:"\\e664"}.icon-step-form:before{content:"\\e663"}.icon-table-form:before{content:"\\e666"}.icon-table-form2:before{content:"\\e667"}.icon-time:before{content:"\\e668"}.icon-span:before{content:"\\e669"}.icon-textarea:before{content:"\\e66a"}.icon-tooltip:before{content:"\\e66b"}.icon-slot:before{content:"\\e66c"}.icon-transfer:before{content:"\\e66d"}.icon-upload:before{content:"\\e673"}.icon-tag:before{content:"\\e671"}.icon-watermark:before{content:"\\e672"}.icon-tab:before{content:"\\e674"}.icon-tree:before{content:"\\e675"}.icon-table:before{content:"\\e677"}.icon-add-child:before{content:"\\e678"}.icon-add2:before{content:"\\e679"}.icon-add:before{content:"\\e67a"}.icon-alignitems-baseline:before{content:"\\e67b"}.icon-add-circle:before{content:"\\e67c"}.icon-alignitems-center:before{content:"\\e67d"}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
8
|
+
var Y0=Object.defineProperty;var X0=(ke,u,Xe)=>u in ke?Y0(ke,u,{enumerable:!0,configurable:!0,writable:!0,value:Xe}):ke[u]=Xe;var ee=(ke,u,Xe)=>(X0(ke,typeof u!="symbol"?u+"":u,Xe),Xe);(function(ke,u){typeof exports=="object"&&typeof module<"u"?u(exports,require("vue"),require("vant"),require("element-plus")):typeof define=="function"&&define.amd?define(["exports","vue","vant","element-plus"],u):(ke=typeof globalThis<"u"?globalThis:ke||self,u(ke.formCreateMobile={},ke.Vue,ke.vant,ke.ElementPlus))})(this,function(ke,u,Xe,mi){var fi;"use strict";/*!
|
|
9
|
+
* @form-create/vant v3.2.31
|
|
10
|
+
* (c) 2018-2025 xaboy
|
|
11
|
+
* Github https://github.com/xaboy/form-create
|
|
12
|
+
* Released under the MIT License.
|
|
13
|
+
*/var xa="fcSubForm",Ca=u.defineComponent({name:xa,props:{rule:Array,options:{type:Object,default:function(){return u.reactive({submitBtn:!1,resetBtn:!1})}},modelValue:{type:Object,default:function(){return{}}},disabled:{type:Boolean,default:!1},syncDisabled:{type:Boolean,default:!0},formCreateInject:Object},data:function(){return{cacheValue:{},subApi:{},form:u.markRaw(this.formCreateInject.form.$form())}},emits:["fc:subform","update:modelValue","change","itemMounted"],watch:{modelValue:function(e){this.setValue(e)}},methods:{formData:function(e){this.cacheValue=JSON.stringify(e),this.$emit("update:modelValue",e),this.$emit("change",e)},setValue:function(e){var n=JSON.stringify(e);this.cacheValue!==n&&(this.cacheValue=n,this.subApi.coverValue(e||{}))},add$f:function(e){var n=this;this.subApi=e,u.nextTick(function(){n.$emit("itemMounted",e)})}},render:function(){var e=this.form;return u.createVNode(e,{disabled:this.disabled,"onUpdate:modelValue":this.formData,modelValue:this.modelValue,"onEmit-event":this.$emit,"onUpdate:api":this.add$f,rule:this.rule,option:this.options,extendOption:!0},null)}});function gi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function J(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?gi(Object(n),!0).forEach(function(r){Ee(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gi(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function fe(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?fe=function(e){return typeof e}:fe=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fe(t)}function Ea(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ee(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ka(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&qn(t,e)}function tn(t){return tn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},tn(t)}function qn(t,e){return qn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},qn(t,e)}function Aa(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Da(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ra(t,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Da(t)}function Pa(t){var e=Aa();return function(){var r=tn(t),i;if(e){var o=tn(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Ra(this,i)}}function Va(t,e){return Ma(t)||Ia(t,e)||vi(t,e)||Ba()}function ue(t){return Ta(t)||ja(t)||vi(t)||Fa()}function Ta(t){if(Array.isArray(t))return Gn(t)}function Ma(t){if(Array.isArray(t))return t}function ja(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Ia(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(t);!(i=(a=n.next()).done)&&(r.push(a.value),!(e&&r.length===e));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function vi(t,e){if(!!t){if(typeof t=="string")return Gn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gn(t,e)}}function Gn(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Fa(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
14
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ba(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
15
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var N={type:function(e,n){return Object.prototype.toString.call(e)==="[object "+n+"]"},Undef:function(e){return e==null},Element:function(e){return fe(e)==="object"&&e!==null&&e.nodeType===1&&!N.Object(e)},trueArray:function(e){return Array.isArray(e)&&e.length>0},Function:function(e){var n=this.getType(e);return n==="Function"||n==="AsyncFunction"},getType:function(e){var n=Object.prototype.toString.call(e);return/^\[object (.*)\]$/.exec(n)[1]},empty:function(e){return e==null||Array.isArray(e)&&Array.isArray(e)&&!e.length?!0:typeof e=="string"&&!e}};["Date","Object","String","Boolean","Array","Number"].forEach(function(t){N[t]=function(e){return N.type(e,t)}});function be(t,e){return{}.hasOwnProperty.call(t,e)}var Na=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},yi={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(Na,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",a="second",s="minute",l="hour",f="day",c="week",p="month",m="quarter",b="year",S="date",O="Invalid Date",D=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,B=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,F={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function($){var _=["th","st","nd","rd"],h=$%100;return"["+$+(_[(h-20)%10]||_[h]||_[0])+"]"}},I=function($,_,h){var d=String($);return!d||d.length>=_?$:""+Array(_+1-d.length).join(h)+$},Y={s:I,z:function($){var _=-$.utcOffset(),h=Math.abs(_),d=Math.floor(h/60),g=h%60;return(_<=0?"+":"-")+I(d,2,"0")+":"+I(g,2,"0")},m:function A($,_){if($.date()<_.date())return-A(_,$);var h=12*(_.year()-$.year())+(_.month()-$.month()),d=$.clone().add(h,p),g=_-d<0,y=$.clone().add(h+(g?-1:1),p);return+(-(h+(_-d)/(g?d-y:y-d))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return{M:p,y:b,w:c,d:f,D:S,h:l,m:s,s:a,ms:o,Q:m}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},W="en",U={};U[W]=F;var re="$isDayjsObject",ne=function($){return $ instanceof _e||!(!$||!$[re])},oe=function A($,_,h){var d;if(!$)return W;if(typeof $=="string"){var g=$.toLowerCase();U[g]&&(d=g),_&&(U[g]=_,d=g);var y=$.split("-");if(!d&&y.length>1)return A(y[0])}else{var v=$.name;U[v]=$,d=v}return!h&&d&&(W=d),d||!h&&W},Z=function($,_){if(ne($))return $.clone();var h=fe(_)=="object"?_:{};return h.date=$,h.args=arguments,new _e(h)},H=Y;H.l=oe,H.i=ne,H.w=function(A,$){return Z(A,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var _e=function(){function A(_){this.$L=oe(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[re]=!0}var $=A.prototype;return $.parse=function(_){this.$d=function(h){var d=h.date,g=h.utc;if(d===null)return new Date(NaN);if(H.u(d))return new Date;if(d instanceof Date)return new Date(d);if(typeof d=="string"&&!/Z$/i.test(d)){var y=d.match(D);if(y){var v=y[2]-1||0,E=(y[7]||"0").substring(0,3);return g?new Date(Date.UTC(y[1],v,y[3]||1,y[4]||0,y[5]||0,y[6]||0,E)):new Date(y[1],v,y[3]||1,y[4]||0,y[5]||0,y[6]||0,E)}}return new Date(d)}(_),this.init()},$.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},$.$utils=function(){return H},$.isValid=function(){return this.$d.toString()!==O},$.isSame=function(_,h){var d=Z(_);return this.startOf(h)<=d&&d<=this.endOf(h)},$.isAfter=function(_,h){return Z(_)<this.startOf(h)},$.isBefore=function(_,h){return this.endOf(h)<Z(_)},$.$g=function(_,h,d){return H.u(_)?this[h]:this.set(d,_)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(_,h){var d=this,g=!!H.u(h)||h,y=H.p(_),v=function(k,P){var w=H.w(d.$u?Date.UTC(d.$y,P,k):new Date(d.$y,P,k),d);return g?w:w.endOf(f)},E=function(k,P){return H.w(d.toDate()[k].apply(d.toDate("s"),(g?[0,0,0,0]:[23,59,59,999]).slice(P)),d)},M=this.$W,T=this.$M,G=this.$D,L="set"+(this.$u?"UTC":"");switch(y){case b:return g?v(1,0):v(31,11);case p:return g?v(1,T):v(0,T+1);case c:var z=this.$locale().weekStart||0,q=(M<z?M+7:M)-z;return v(g?G-q:G+(6-q),T);case f:case S:return E(L+"Hours",0);case l:return E(L+"Minutes",1);case s:return E(L+"Seconds",2);case a:return E(L+"Milliseconds",3);default:return this.clone()}},$.endOf=function(_){return this.startOf(_,!1)},$.$set=function(_,h){var d,g=H.p(_),y="set"+(this.$u?"UTC":""),v=(d={},d[f]=y+"Date",d[S]=y+"Date",d[p]=y+"Month",d[b]=y+"FullYear",d[l]=y+"Hours",d[s]=y+"Minutes",d[a]=y+"Seconds",d[o]=y+"Milliseconds",d)[g],E=g===f?this.$D+(h-this.$W):h;if(g===p||g===b){var M=this.clone().set(S,1);M.$d[v](E),M.init(),this.$d=M.set(S,Math.min(this.$D,M.daysInMonth())).$d}else v&&this.$d[v](E);return this.init(),this},$.set=function(_,h){return this.clone().$set(_,h)},$.get=function(_){return this[H.p(_)]()},$.add=function(_,h){var d,g=this;_=Number(_);var y=H.p(h),v=function(G){var L=Z(g);return H.w(L.date(L.date()+Math.round(G*_)),g)};if(y===p)return this.set(p,this.$M+_);if(y===b)return this.set(b,this.$y+_);if(y===f)return v(1);if(y===c)return v(7);var E=(d={},d[s]=r,d[l]=i,d[a]=n,d)[y]||1,M=this.$d.getTime()+_*E;return H.w(M,this)},$.subtract=function(_,h){return this.add(-1*_,h)},$.format=function(_){var h=this,d=this.$locale();if(!this.isValid())return d.invalidDate||O;var g=_||"YYYY-MM-DDTHH:mm:ssZ",y=H.z(this),v=this.$H,E=this.$m,M=this.$M,T=d.weekdays,G=d.months,L=d.meridiem,z=function(P,w,C,x){return P&&(P[w]||P(h,g))||C[w].slice(0,x)},q=function(P){return H.s(v%12||12,P,"0")},R=L||function(k,P,w){var C=k<12?"AM":"PM";return w?C.toLowerCase():C};return g.replace(B,function(k,P){return P||function(w){switch(w){case"YY":return String(h.$y).slice(-2);case"YYYY":return H.s(h.$y,4,"0");case"M":return M+1;case"MM":return H.s(M+1,2,"0");case"MMM":return z(d.monthsShort,M,G,3);case"MMMM":return z(G,M);case"D":return h.$D;case"DD":return H.s(h.$D,2,"0");case"d":return String(h.$W);case"dd":return z(d.weekdaysMin,h.$W,T,2);case"ddd":return z(d.weekdaysShort,h.$W,T,3);case"dddd":return T[h.$W];case"H":return String(v);case"HH":return H.s(v,2,"0");case"h":return q(1);case"hh":return q(2);case"a":return R(v,E,!0);case"A":return R(v,E,!1);case"m":return String(E);case"mm":return H.s(E,2,"0");case"s":return String(h.$s);case"ss":return H.s(h.$s,2,"0");case"SSS":return H.s(h.$ms,3,"0");case"Z":return y}return null}(k)||y.replace(":","")})},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(_,h,d){var g,y=this,v=H.p(h),E=Z(_),M=(E.utcOffset()-this.utcOffset())*r,T=this-E,G=function(){return H.m(y,E)};switch(v){case b:g=G()/12;break;case p:g=G();break;case m:g=G()/3;break;case c:g=(T-M)/6048e5;break;case f:g=(T-M)/864e5;break;case l:g=T/i;break;case s:g=T/r;break;case a:g=T/n;break;default:g=T}return d?g:H.a(g)},$.daysInMonth=function(){return this.endOf(p).$D},$.$locale=function(){return U[this.$L]},$.locale=function(_,h){if(!_)return this.$L;var d=this.clone(),g=oe(_,h,!0);return g&&(d.$L=g),d},$.clone=function(){return H.w(this.$d,this)},$.toDate=function(){return new Date(this.valueOf())},$.toJSON=function(){return this.isValid()?this.toISOString():null},$.toISOString=function(){return this.$d.toISOString()},$.toString=function(){return this.$d.toUTCString()},A}(),Ie=_e.prototype;return Z.prototype=Ie,[["$ms",o],["$s",a],["$m",s],["$H",l],["$W",f],["$M",p],["$y",b],["$D",S]].forEach(function(A){Ie[A[1]]=function($){return this.$g($,A[0],A[1])}}),Z.extend=function(A,$){return A.$i||(A($,_e,Z),A.$i=!0),Z},Z.locale=oe,Z.isDayjs=ne,Z.unix=function(A){return Z(1e3*A)},Z.en=U[W],Z.Ls=U,Z.p={},Z})})(yi);var $t=yi.exports,La="fcCalendar",za=u.defineComponent({name:La,inheritAttrs:!1,props:{placeholder:String,formCreateInject:Object,disabled:Boolean,clearable:Boolean,type:String,modelValue:[String,Array],minDate:[String,Date],maxDate:[String,Date]},emits:["update:modelValue","change","fc.el"],setup:function(e,n){var r=u.ref(!1),i=u.toRef(e,"modelValue"),o=u.toRef(e,"formCreateInject"),a=u.ref(i.value);u.watch(function(){return i.value},function(S){a.value=S});var s=function(O){return $t(O).format("YYYY-MM-DD")},l=function(O){return $t(O).toDate()},f=u.computed(function(){var S=i.value;return Array.isArray(S)?S.map(l):S?l(S):null}),c=u.computed(function(){return{minDate:e.minDate?$t(e.minDate).toDate():void 0,maxDate:e.maxDate?$t(e.maxDate).toDate():void 0}}),p=function(O){Array.isArray(O)?a.value=O.map(s):O?a.value=s(O):a.value=O},m=function(){n.emit("update:modelValue",a.value),n.emit("change",a.value)},b={range:function(){return a.value.length?a.value.join(" - "):""},multiple:function(){return a.value.length?o.value.t("selectedData",{length:a.value.length})||"\u9009\u62E9\u4E86 ".concat(a.value.length," \u4E2A\u65E5\u671F"):""}};return{show:r,inputValue:a,defaultDate:f,dateRange:c,open:function(){e.disabled||(r.value=!0)},confirm:function(O){p(O),r.value=!1,m()},getStrValue:function(){return a.value?be(b,e.type)?b[e.type]():a.value||"":""},clear:function(O){O.stopPropagation();var D=Array.isArray(a.value)?[]:"";p(D),m()}}},render:function(){var e=this,n=function(){return e.$props.clearable&&!N.empty(e.inputValue)?u.createVNode("i",{class:"van-badge__wrapper van-icon van-icon-clear van-field__clear",onClick:e.clear},null):void 0};return u.createVNode("div",{class:"_fc-calendar"},[u.createVNode(u.resolveComponent("van-field"),{ref:"el",placeholder:this.placeholder,readonly:!0,disabled:this.$props.disabled,onClick:this.open,"model-value":this.getStrValue(),isLink:!0,border:!1},{"right-icon":n}),u.createVNode(u.resolveComponent("van-calendar"),u.mergeProps(J(J({},this.$attrs),this.dateRange),{show:this.show,"onUpdate:show":function(i){return e.show=i},type:this.type,onConfirm:this.confirm,defaultDate:this.defaultDate}),null)])},mounted:function(){this.$emit("fc.el",this.$refs.el)}}),Ua="fcCascader",qa=u.defineComponent({name:Ua,inheritAttrs:!1,props:{placeholder:String,disabled:Boolean,clearable:Boolean,fieldNames:Object,modelValue:[String,Number],options:Array,minDate:[String,Date],maxDate:[String,Date]},emits:["update:modelValue","fc.el","change"],setup:function(e,n){var r=u.ref(!1),i=u.toRef(e,"modelValue"),o=u.toRef(e,"options"),a=u.toRef(e,"fieldNames",{}),s=function p(m,b,S){for(var O=0;O<m.length;O++){if(m[O][a.value.value||"value"]===b)return[].concat(ue(S),[m[O]]);if(m[O][a.value.children||"children"]){var D=p(m[O][a.value.children||"children"],b,[].concat(ue(S),[m[O]]));if(D)return D}}},l=function(m){if(m==null||m==="")return"";var b=s(o.value,m,[]);return b?b.map(function(S){return S[a.value.text||"text"]}).join(" / "):m},f=u.ref(l(i.value));u.watch(function(){return i.value},function(p){f.value=l(p)}),u.watch(function(){return o.value},function(){i.value!=null&&i.value!==""&&(f.value=l(i.value))},{deep:!0});var c=function(m){n.emit("update:modelValue",m),n.emit("change",m)};return{show:r,inputValue:f,options:o,open:function(){e.disabled||(r.value=!0)},confirm:function(m){var b=m.selectedOptions,S=m.value;f.value=b.map(function(O){return O[a.value.text||"text"]}).join(" / "),r.value=!1,c(S)},clear:function(m){m.stopPropagation(),f.value="",c("")}}},render:function(){var e=this,n=function(){return e.$props.clearable&&e.inputValue?u.createVNode("i",{class:"van-badge__wrapper van-icon van-icon-clear van-field__clear",onClick:e.clear},null):void 0};return u.createVNode("div",{class:"_fc-cascader"},[u.createVNode(u.resolveComponent("van-field"),{ref:"el",placeholder:this.placeholder,readonly:!0,disabled:this.$props.disabled,onClick:this.open,"model-value":this.inputValue,border:!1,isLink:!0},{"right-icon":n}),u.createVNode(u.resolveComponent("van-popup"),{show:this.show,"onUpdate:show":function(i){return e.show=i},round:!0,position:"bottom"},{default:function(){return[u.createVNode(u.resolveComponent("van-cascader"),u.mergeProps(e.$attrs,{modelValue:e.modelValue,fieldNames:e.fieldNames,options:e.options,onClose:function(){return e.show=!1},onFinish:e.confirm}),null)]}})])},mounted:function(){this.$emit("fc.el",this.$refs.el)}});function Ga(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!u.isVNode(t)}var Ha="fcCheckbox",Wa=u.defineComponent({name:Ha,inheritAttrs:!1,props:{modelValue:Array,options:Array},emits:["update:modelValue","change"],setup:function(e,n){var r=u.toRef(e,"modelValue",[]),i=u.toRef(e,"options");return{options:i,modelValue:r,onInput:function(a){n.emit("update:modelValue",a),n.emit("change",a)}}},render:function(){var e;return u.createVNode(u.resolveComponent("van-checkbox-group"),u.mergeProps({direction:"horizontal"},this.$attrs,{modelValue:Array.isArray(this.modelValue)?this.modelValue:[],"onUpdate:modelValue":this.onInput}),Ga(e=(this.options||[]).map(function(n){var r=J({},n),i=n.text,o=n.value;return delete r.text,delete r.value,u.createVNode(u.resolveComponent("van-checkbox"),u.mergeProps({name:o,shape:"square"},r),{default:function(){return[i||n.label||o]}})}))?e:{default:function(){return[e]}})}}),Ya="fcSelect",Xa=u.defineComponent({name:Ya,inheritAttrs:!1,props:{disabled:Boolean,placeholder:String,columnsFieldNames:Object,modelValue:[String,Number],options:Array},emits:["update:modelValue","fc.el","change"],setup:function(e,n){var r=u.ref(!1),i=u.toRef(e,"modelValue"),o=u.toRef(e,"options"),a=u.toRef(e,"columnsFieldNames",{}),s=u.computed(function(){if(i.value==null||i.value==="")return"";for(var f=0;f<(o.value||[]).length;f++)if(o.value[f][a.value.value||"value"]===i.value)return o.value[f][a.value.text||"text"];return i.value}),l=function(c){n.emit("update:modelValue",c),n.emit("change",c)};return{show:r,inputValue:s,options:o,open:function(){e.disabled||(r.value=!0)},confirm:function(c){var p=c.selectedValues;l(p[0]),r.value=!1}}},render:function(){var e=this;return u.createVNode("div",{class:"_fc-select"},[u.createVNode(u.resolveComponent("van-field"),{ref:"el",placeholder:this.placeholder,readonly:!0,disabled:this.$props.disabled,onClick:this.open,"model-value":this.inputValue,isLink:!0},null),u.createVNode(u.resolveComponent("van-popup"),{show:this.show,"onUpdate:show":function(r){return e.show=r},round:!0,position:"bottom"},{default:function(){return[u.createVNode(u.resolveComponent("van-picker"),u.mergeProps(e.$attrs,{modelValue:[e.modelValue],columnsFieldNames:e.columnsFieldNames,columns:e.options,onCancel:function(){return e.show=!1},onConfirm:e.confirm}),null)]}})])},mounted:function(){this.$emit("fc.el",this.$refs.el)}});function dt(t){return Array.isArray(t)?t:[null,void 0,""].indexOf(t)>-1?[]:[t]}var Ja="fcUploader";function _i(t,e){return fe(t)==="object"?t:{url:t,is_string:!0,name:Ka(t),uid:e}}function bi(t){return J(J({},t),{},{file:t,value:t})}function Ka(t){return(""+t).split("/").pop()}var Za=u.defineComponent({name:Ja,inheritAttrs:!1,props:{formCreateInject:Object,modelValue:[Array,String,Object],afterRead:Function,action:String,headers:Object,method:String,data:Object,uploadName:String,onSuccess:Function,onError:Function,maxCount:Number},emits:["update:modelValue","delete"],setup:function(e,n){var r=u.toRef(e,"afterRead"),i=u.toRef(e,"modelValue",[]),o=u.ref(dt(i.value).map(_i).map(bi));u.watch(function(){return i.value},function(s){o.value=dt(s).map(_i).map(bi)});var a=function(){var l=o.value.map(function(f){return f.is_string?f.url:f.value||f.url}).filter(function(f){return f!==void 0});n.emit("update:modelValue",e.maxCount===1?l[0]||"":l)};return{fileList:o,modelValue:i,onDelete:function(l){a(),n.emit("delete",l)},uploadFile:function(l){var f=this;if(l.status="uploading",r.value)return r.value(l);var c=e.data||{};c[e.uploadName||"file"]=l.file,e.formCreateInject.api.fetch({action:e.action,dataType:"formData",source:"upload",headers:e.headers||{},method:e.method||"post",data:c}).then(function(p){l.status="success",e.onSuccess&&e.onSuccess(p,l),a()}).catch(function(p){l.status="failed",l.message=f.formCreateInject.t("uploadFail")||"\u4E0A\u4F20\u5931\u8D25",e.onError&&e.onError(p,l)})}}},render:function(){var e=this;return u.createVNode(u.resolveComponent("van-uploader"),u.mergeProps(this.$attrs,{"model-value":this.fileList,maxCount:this.maxCount,"onUpdate:model-value":function(r){return e.fileList=r},afterRead:this.uploadFile,onDelete:this.onDelete}),this.$slots)}});function Qa(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!u.isVNode(t)}var es="fcRadio",ts=u.defineComponent({name:es,inheritAttrs:!1,props:{modelValue:[String,Number],options:Array},emits:["update:modelValue","change"],setup:function(e,n){var r=u.toRef(e,"modelValue",[]),i=u.toRef(e,"options");return{options:i,modelValue:r,onInput:function(a){n.emit("update:modelValue",a),n.emit("change",a)}}},render:function(){var e;return u.createVNode(u.resolveComponent("van-radio-group"),u.mergeProps({direction:"horizontal"},this.$attrs,{modelValue:this.modelValue,"onUpdate:modelValue":this.onInput}),Qa(e=(this.options||[]).map(function(n){var r=J({},n),i=n.text,o=n.value;return delete r.text,delete r.value,u.createVNode(u.resolveComponent("van-radio"),u.mergeProps({name:o},r),{default:function(){return[i||n.label||o]}})}))?e:{default:function(){return[e]}})}}),ns="fcDatePicker",rs=u.defineComponent({name:ns,inheritAttrs:!1,props:{disabled:Boolean,clearable:Boolean,placeholder:String,modelValue:[String,Number],minDate:[String,Date],maxDate:[String,Date]},emits:["update:modelValue","fc.el","change"],setup:function(e,n){var r=u.ref(!1),i=u.toRef(e,"modelValue"),o=u.computed(function(){return i.value==null||i.value===""?[]:i.value.split("-")}),a=u.computed(function(){return{minDate:e.minDate?$t(e.minDate).toDate():void 0,maxDate:e.maxDate?$t(e.maxDate).toDate():void 0}}),s=function(f){n.emit("update:modelValue",f),n.emit("change",f)};return{show:r,formValue:o,dateRange:a,open:function(){e.disabled||(r.value=!0)},confirm:function(f){var c=f.selectedValues;s(c.join("-")),r.value=!1},clear:function(f){f.stopPropagation(),s("")}}},render:function(){var e=this,n=function(){return e.$props.clearable&&e.modelValue?u.createVNode("i",{class:"van-badge__wrapper van-icon van-icon-clear van-field__clear",onClick:e.clear},null):void 0};return u.createVNode("div",{class:"_fc-date-picker"},[u.createVNode(u.resolveComponent("van-field"),{ref:"el",placeholder:this.placeholder,readonly:!0,disabled:this.$props.disabled,onClick:this.open,"model-value":this.modelValue,border:!1,isLink:!0},{"right-icon":n}),u.createVNode(u.resolveComponent("van-popup"),{show:this.show,"onUpdate:show":function(i){return e.show=i},round:!0,position:"bottom"},{default:function(){return[u.createVNode(u.resolveComponent("van-date-picker"),u.mergeProps({columnsType:["year","month","day"]},J(J({},e.$attrs),e.dateRange),{modelValue:e.formValue,onConfirm:e.confirm,onCancel:function(){return e.show=!1}}),null)]}})])},mounted:function(){this.$emit("fc.el",this.$refs.el)}}),is="fcTimePicker",os=u.defineComponent({name:is,inheritAttrs:!1,props:{disabled:Boolean,clearable:Boolean,placeholder:String,modelValue:[String,Number]},emits:["update:modelValue","fc.el","change"],setup:function(e,n){var r=u.ref(!1),i=u.toRef(e,"modelValue"),o=u.computed(function(){return i.value==null||i.value===""?[]:i.value.split(":")}),a=function(l){n.emit("update:modelValue",l),n.emit("change",l)};return{show:r,formValue:o,open:function(){e.disabled||(r.value=!0)},confirm:function(l){var f=l.selectedValues;a(f.join(":")),r.value=!1},clear:function(l){l.stopPropagation(),a("")}}},render:function(){var e=this,n=function(){return e.$props.clearable&&e.modelValue?u.createVNode("i",{class:"van-badge__wrapper van-icon van-icon-clear van-field__clear",onClick:e.clear},null):void 0};return u.createVNode("div",{class:"_fc-time-picker"},[u.createVNode(u.resolveComponent("van-field"),{ref:"el",placeholder:this.placeholder,readonly:!0,disabled:this.$props.disabled,onClick:this.open,"model-value":this.modelValue,border:!1,isLink:!0},{"right-icon":n}),u.createVNode(u.resolveComponent("van-popup"),{show:this.show,"onUpdate:show":function(i){return e.show=i},round:!0,position:"bottom"},{default:function(){return[u.createVNode(u.resolveComponent("van-time-picker"),u.mergeProps({columnsType:["hour","minute"]},e.$attrs,{modelValue:e.formValue,onConfirm:e.confirm,onCancel:function(){return e.show=!1}}),null)]}})])},mounted:function(){this.$emit("fc.el",this.$refs.el)}});function ze(t,e,n){t[e]=n}function ht(t,e){delete t[e]}function jt(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=!1;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=e[i];if((r=Array.isArray(o))||N.Object(o)){var a=t[i]===void 0;if(r)r=!1,a&&ze(t,i,[]);else if(o._clone&&n!==void 0)if(n)o=o.getRule(),a&&ze(t,i,{});else{ze(t,i,o._clone());continue}else a&&ze(t,i,{});t[i]=jt(t[i],o,n)}else ze(t,i,o),N.Undef(o)||(N.Undef(o.__json)||(t[i].__json=o.__json),N.Undef(o.__origin)||(t[i].__origin=o.__origin))}return n!==void 0&&Array.isArray(t)?t.filter(function(s){return!s||!s.__ctrl}):t}function He(t){return jt({},{value:t}).value}var as=Object.assign||function(t){for(var e,n=1;n<arguments.length;n++)for(var r in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,r)&&ze(t,r,e[r]);return t};function te(){return as.apply(this,arguments)}function Hn(t){return fe(t)!=="object"||t===null?t:t instanceof Array?ue(t):J({},t)}function st(t,e){var n=null;return function(){for(var r=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];n!==null&&clearTimeout(n),n=setTimeout(function(){return t.call.apply(t,[r].concat(o))},e)}}function ss(t){return t==null?"":fe(t)==="object"?JSON.stringify(t,null,2):String(t)}function ls(t){return t&&fe(t)==="object"&&typeof t.then=="function"}function nn(t){return ls(t)?t:Promise.resolve(t)}function It(t){var e=t.replace(/([A-Z])/g,"-$1").toLocaleLowerCase();return e.indexOf("-")===0&&(e=e.substr(1)),e}function wi(t){return t.replace(t[0],t[0].toLocaleUpperCase())}function $i(t,e,n){return"[form-create ".concat(t,"]: ").concat(e)+(n?`
|
|
16
|
+
|
|
17
|
+
rule: `+JSON.stringify(n.getRule?n.getRule():n):"")}function Wn(t,e){console.error($i("err",t,e))}function us(t){Wn(t.toString()),console.error(t)}var Yn="[[FORM-CREATE-PREFIX-",Xn="-FORM-CREATE-SUFFIX]]";function Ft(t,e){return JSON.stringify(jt(Array.isArray(t)?[]:{},t,!0),function(n,r){if(!(r&&r._isVue===!0)){if(typeof r!="function")return r;if(r.__json)return r.__json;if(r.__origin&&(r=r.__origin),!r.__emit)return Yn+r+Xn}},e)}function Jn(t){return new Function("return "+t)()}function Je(t,e){if(t&&N.String(t)&&t.length>4){var n=t.trim(),r=!1;try{if(n.indexOf(Xn)>0&&n.indexOf(Yn)===0)n=n.replace(Xn,"").replace(Yn,""),r=!0;else if(n.indexOf("$FN:")===0)n=n.substring(4),r=!0;else if(n.indexOf("$EXEC:")===0)n=n.substring(6),r=!0;else if(n.indexOf("$GLOBAL:")===0){var i=n.substring(8);return n=function(){for(var s=arguments.length,l=new Array(s),f=0;f<s;f++)l[f]=arguments[f];var c=l[0].api.getGlobalEvent(i);if(c)return c.call.apply(c,[this].concat(l))},n.__json=t,n.__inject=!0,n}else{if(n.indexOf("$FNX:")===0)return n=Jn(`function($inject){
|
|
18
|
+
`+n.substring(5)+`
|
|
19
|
+
}`),n.__json=t,n.__inject=!0,n;(!e&&n.indexOf("function ")===0&&n!=="function "||!e&&n.indexOf("function(")===0&&n!=="function(")&&(r=!0)}if(!r)return t;var o;try{o=Jn(n)}catch{o=Jn("function "+n)}return o.__json=t,o}catch(a){Wn("\u89E3\u6790\u5931\u8D25:".concat(n,`
|
|
20
|
+
|
|
21
|
+
err: `).concat(a));return}}return t}function Si(t,e){return JSON.parse(t,function(n,r){return N.Undef(r)||!r.indexOf?r:Je(r,e)})}var cs=0;function rn(){var t=370+ ++cs;return"F"+Math.random().toString(36).substr(3,3)+Number("".concat(Date.now())).toString(36)+t.toString(36)+"c"}function lt(t,e,n){var r=t,i;return(e||"").split(".").forEach(function(o){i&&((!r[i]||fe(r[i])!="object")&&(r[i]={}),r=r[i]),i=o}),r[i]=n,r}var fs="fcGroup",ds=u.defineComponent({name:fs,props:{field:String,rule:Array,expand:Number,options:Object,button:{type:Boolean,default:!0},max:{type:Number,default:0},min:{type:Number,default:0},modelValue:{type:Array,default:function(){return[]}},defaultValue:Object,sortBtn:{type:Boolean,default:!1},disabled:{type:Boolean,default:void 0},title:{type:[String,Function],default:null},type:{type:String,default:"default"},onBeforeRemove:{type:Function,default:function(){}},onBeforeAdd:{type:Function,default:function(){}},formCreateInject:Object,parse:Function},data:function(){return{len:0,cacheRule:{},cacheValue:{},sort:[],form:u.markRaw(this.formCreateInject.form.$form())}},emits:["update:modelValue","change","itemMounted","remove","add"],watch:{rule:{handler:function(e,n){var r=this;Object.keys(this.cacheRule).forEach(function(i){var o=r.cacheRule[i];if(o.$f){var a=o.$f.formData();if(e===n)o.$f.deferSyncValue(function(){jt(o.rule,e),o.$f.setValue(a)},!0);else{var s=o.$f.formData();o.$f.once("reloading",function(){o.$f.setValue(s)}),o.rule=He(e)}}})},deep:!0},expand:function(e){var n=e-this.modelValue.length;n>0&&this.expandRule(n)},modelValue:{handler:function(e){var n=this;e=e||[];var r=this.sort,i=r.length,o=i-e.length;if(o<0){for(var a=o;a<0;a++)this.addRule(e.length+a,!0);for(var s=0;s<i;s++)this.setValue(r[s],e[s])}else{if(o>0)for(var l=0;l<o;l++)this.removeRule(r[i-l-1]);e.forEach(function(f,c){n.setValue(r[c],e[c])})}},deep:!0}},methods:{_value:function(e){return e&&be(e,this.field)?e[this.field]:e},cache:function(e,n){this.cacheValue[e]=JSON.stringify(n)},input:function(e){this.$emit("update:modelValue",e),this.$emit("change",e)},formData:function(e,n){var r=this,i=this.cacheRule,o=this.sort;if(o.filter(function(s){return i[s]&&i[s].$f}).length===o.length){var a=o.map(function(s){var l=e===s?n:J({},r.cacheRule[s].$f.form),f=r.field?l[r.field]||null:l;return r.cache(s,f),f});this.input(a)}},setValue:function(e,n){var r=this.field;r&&(n=Ee({},r,this._value(n))),this.cacheValue[e]!==JSON.stringify(r?n[r]:n)&&(this.cacheRule[e].$f&&this.cacheRule[e].$f.coverValue(n),this.cache(e,n))},addRule:function(e,n){var r=this,i=this.formCreateInject.form.copyRules(this.rule||[]),o=this.options?J({},this.options):{submitBtn:!1,resetBtn:!1};if(this.defaultValue){o.formData||(o.formData={});var a=He(this.defaultValue);te(o.formData,this.field?Ee({},this.field,a):a)}this.parse&&this.parse({rule:i,options:o,index:this.sort.length}),this.cacheRule[++this.len]={rule:i,options:o},this.sort=Object.keys(this.cacheRule),n&&u.nextTick(function(){return r.$emit("add",i,Object.keys(r.cacheRule).length-1)})},add$f:function(e,n,r){var i=this;this.cacheRule[n].$f=r,u.nextTick(function(){i.$emit("itemMounted",r,Object.keys(i.cacheRule).indexOf(n))})},removeRule:function(e,n){var r=this,i=Object.keys(this.cacheRule).indexOf(e);delete this.cacheRule[e],delete this.cacheValue[e],this.sort=Object.keys(this.cacheRule),n&&u.nextTick(function(){return r.$emit("remove",i)})},add:function(e){if(!(this.disabled||this.onBeforeAdd(this.modelValue)===!1)){var n=ue(this.modelValue);n.push(this.defaultValue?He(this.defaultValue):this.field?null:{}),this.input(n)}},del:function(e,n){var r=this;if(!this.disabled){var i=function(){r.removeRule(n,!0);var a=ue(r.modelValue);a.splice(e,1),r.input(a)};nn(this.onBeforeRemove(this.modelValue,e)).then(function(o){o!==!1&&i()})}},addIcon:function(e){return u.createVNode("div",{class:"_fc-m-group-btn _fc-m-group-plus-minus",onClick:this.add},null)},delIcon:function(e,n){var r=this;return u.createVNode("div",{class:"_fc-m-group-btn _fc-m-group-plus-minus _fc-m-group-minus",onClick:function(){return r.del(e,n)}},null)},sortUpIcon:function(e){var n=this;return u.createVNode("div",{class:"_fc-m-group-btn _fc-m-group-arrow _fc-m-group-up",onClick:function(){return n.changeSort(e,-1)}},null)},sortDownIcon:function(e){var n=this;return u.createVNode("div",{class:"_fc-m-group-btn _fc-m-group-arrow _fc-m-group-down",onClick:function(){return n.changeSort(e,1)}},null)},changeSort:function(e,n){var r=this,i=this.sort[e];this.sort[e]=this.sort[e+n],this.sort[e+n]=i,this.formCreateInject.subForm(this.sort.map(function(o){return r.cacheRule[o].$f})),this.formData(0)},sortIcon:function(e,n){var r=this,i=e>0,o=e<n-1;if(!i&&!o)return null;if(i&&o)return u.createVNode("div",{class:"_fc-m-group-btn _fc-m-group-sort"},[u.createVNode("div",{class:"_fc-m-group-sort-up",onClick:function(){return r.changeSort(e,-1)}},null),u.createVNode("div",{class:"_fc-m-group-sort-down",onClick:function(){return r.changeSort(e,1)}},null)]);if(i)return this.sortUpIcon(e);if(o)return this.sortDownIcon(e)},makeIcon:function(e,n,r){var i=this;if(this.$slots.button)return this.$slots.button({total:e,index:n,vm:this,key:r,del:function(){return i.del(n,r)},add:this.add});var o=[];if((!this.max||e<this.max)&&e===n+1&&o.push(this.addIcon(r)),e>this.min&&o.push(this.delIcon(n,r)),this.sortBtn){var a=this.sortIcon(n,e);a&&o.push(a)}return o},emitEvent:function(e,n,r,i){this.$emit.apply(this,[e].concat(ue(n),[this.cacheRule[i].$f,r]))},expandRule:function(e){for(var n=0;n<e;n++)this.modelValue.push(this.field?null:{});this.input(ue(this.modelValue))},getTitle:function(e,n){return typeof this.title=="function"?this.title(e,this.modelValue[e],n):typeof this.title=="string"?this.title.replace("{index}",e+1):!1}},created:function(){for(var e=(this.expand||0)-this.modelValue.length,n=0;n<this.modelValue.length;n++)this.addRule(n);e>0&&this.expandRule(e)},render:function(){var e=this,n=this.sort,r=this.button,i=this.form,o=this.disabled,a=this.type==="card",s=n.length===0?this.$slots.default?this.$slots.default({vm:this,add:this.add}):u.createVNode("div",{key:"a_def",class:"_fc-m-group-plus-minus _fc-m-group-add fc-clock",onClick:this.add},null):n.map(function(l,f){var c=e.cacheRule[l],p=c.rule,m=c.options,b=r&&!o?e.makeIcon(n.length,f,l):[],S=e.getTitle(f,l);return a?u.createVNode("div",{class:"_fc-m-group-container",key:l},[u.createVNode("div",{class:"_fc-m-group-header"},[S===!1?u.createVNode("div",{class:"_fc-m-group-idx"},[f+1]):null,S!==!1?u.createVNode("div",{class:"_fc-m-group-title"},[S]):null,u.createVNode("div",{class:"_fc-m-group-handle fc-clock"},[b.length?b:null])]),u.createVNode("div",{class:"_fc-m-group-content"},[u.createVNode(i,u.mergeProps({key:l},{disabled:o,"onUpdate:modelValue":function(D){return e.formData(l,D)},"onEmit-event":function(D){for(var B=arguments.length,F=new Array(B>1?B-1:0),I=1;I<B;I++)F[I-1]=arguments[I];return e.emitEvent(D,F,f,l)},"onUpdate:api":function(D){return e.add$f(f,l,D)},inFor:!0,modelValue:e.field?Ee({},e.field,e._value(e.modelValue[f])):e.modelValue[f],rule:p,option:m,extendOption:!0}),null)])]):u.createVNode("div",{class:"_fc-m-group-container",key:l},[u.createVNode(i,u.mergeProps({key:l},{disabled:o,"onUpdate:modelValue":function(D){return e.formData(l,D)},"onEmit-event":function(D){for(var B=arguments.length,F=new Array(B>1?B-1:0),I=1;I<B;I++)F[I-1]=arguments[I];return e.emitEvent(D,F,f,l)},"onUpdate:api":function(D){return e.add$f(f,l,D)},inFor:!0,modelValue:e.field?Ee({},e.field,e._value(e.modelValue[f])):e.modelValue[f],rule:p,option:m,extendOption:!0}),null),u.createVNode("div",{class:"_fc-m-group-idx"},[f+1]),b.length?u.createVNode("div",{class:"_fc-m-group-handle fc-clock"},[b]):null])});return u.createVNode("div",{key:"con",class:"_fc-m-group "+(o?"_fc-m-group-disabled":"")+(a?" _fc-m-group-card":"")},[s])}}),Oi={name:"IconWarning"},hs={class:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},ps=u.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 110 896 448 448 0 010-896zm0 832a384 384 0 000-768 384 384 0 000 768zm48-176a48 48 0 11-96 0 48 48 0 0196 0zm-48-464a32 32 0 0132 32v288a32 32 0 01-64 0V288a32 32 0 0132-32z"},null,-1),ms=[ps];function gs(t,e,n,r,i,o){return u.openBlock(),u.createElementBlock("svg",hs,ms)}Oi.render=gs;var vs=[Ca,Oi,za,qa,Wa,ts,Xa,rs,os,ds,Za],xi=["props"],Ci=["class","style","directives"],Ei=["on","hook"],pt=function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=[].concat(xi,ue(r.normal||[])),o=[].concat(Ci,ue(r.array||[])),a=[].concat(Ei,ue(r.functional||[])),s=r.props||[];return e.reduce(function(l,f){for(var c in f)if(l[c])if(s.indexOf(c)>-1)l[c]=t([f[c]],l[c]);else if(i.indexOf(c)>-1)l[c]=J(J({},l[c]),f[c]);else if(o.indexOf(c)>-1){var p=l[c]instanceof Array?l[c]:[l[c]],m=f[c]instanceof Array?f[c]:[f[c]];l[c]=[].concat(ue(p),ue(m))}else if(a.indexOf(c)>-1)for(var b in f[c])if(l[c][b]){var S=l[c][b]instanceof Array?l[c][b]:[l[c][b]],O=f[c][b]instanceof Array?f[c][b]:[f[c][b]];l[c][b]=[].concat(ue(S),ue(O))}else l[c][b]=f[c][b];else if(c==="hook")for(var D in f[c])l[c][D]?l[c][D]=ys(l[c][D],f[c][D]):l[c][D]=f[c][D];else l[c]=f[c];else i.indexOf(c)>-1||a.indexOf(c)>-1||s.indexOf(c)>-1?l[c]=J({},f[c]):o.indexOf(c)>-1?l[c]=f[c]instanceof Array?ue(f[c]):fe(f[c])==="object"?J({},f[c]):f[c]:l[c]=f[c];return l},n)},ys=function(e,n){return function(){e&&e.apply(this,arguments),n&&n.apply(this,arguments)}},Kn=["type","slot","ignore","emitPrefix","value","name","native","hidden","display","inject","options","emit","link","prefix","suffix","update","sync","optionsTo","key","slotUpdate","computed","preview","component","cache","modelEmit"],on=["validate","children","control"],an=["effect","deep","renderSlots"];function ki(){return[].concat(Kn,ue(xi),ue(Ci),ue(Ei),on,an)}function We(t){var e=t.replace(/(-[a-z])/g,function(n){return n.replace("-","").toLocaleUpperCase()});return Ai(e)}function Ai(t){return t.replace(t[0],t[0].toLowerCase())}function Zn(t,e){return{value:t,enumerable:!1,configurable:!1,writable:!!e}}function Di(t,e){return Ri([t],e||!1)[0]}function Ri(t,e){return jt([],ue(t),e||!1)}function tt(t,e){return pt(Array.isArray(e)?e:[e],t,{array:on,normal:an}),t}function Pi(t){var e=N.Function(t.getRule)?t.getRule():t;return e.type||(e.type="input"),e}function _s(t,e){return t?(Object.keys(e||{}).forEach(function(n){e[n]&&(t[n]=tt(t[n]||{},e[n]))}),t):e}function Vi(t,e){Object.defineProperties(t,Object.keys(e).reduce(function(n,r){return n[r]={get:function(){return e[r]()}},n},{}))}function nt(t){return t.__fc__||(t.__origin__?t.__origin__.__fc__:null)}function ce(t,e){try{e=t()}catch(n){us(n)}return e}function sn(){var t={},e=function(r){return r||"default"};return{setSlot:function(r,i){r=e(r),!(!i||Array.isArray(i)&&i.length)&&(t[r]||(t[r]=[]),t[r].push(i))},getSlot:function(r,i){r=e(r);var o=[];return(t[r]||[]).forEach(function(a){if(Array.isArray(a))o.push.apply(o,ue(a));else if(N.Function(a)){var s=a.apply(void 0,ue(i||[]));Array.isArray(s)?o.push.apply(o,ue(s)):o.push(s)}else N.Undef(a)||o.push(a)}),o},getSlots:function(){var r=this,i={};return Object.keys(t).forEach(function(o){i[o]=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return r.getSlot(o,s)}}),i},slotLen:function(r){return r=e(r),t[r]?t[r].length:0},mergeBag:function(r){var i=this;if(!r)return this;var o=N.Function(r.getSlots)?r.getSlots():r;return Array.isArray(r)||u.isVNode(r)?this.setSlot(void 0,function(){return r}):Object.keys(o).forEach(function(a){i.setSlot(a,o[a])}),this}}}function Ti(t){var e=J({},t.props||{});return Object.keys(t.on||{}).forEach(function(n){n.indexOf("-")>0&&(n=We(n));var r="on".concat(wi(n));Array.isArray(e[r])?e[r]=[].concat(ue(e[r]),[t.on[n]]):e[r]?e[r]=[e[r],t.on[n]]:e[r]=t.on[n]}),e.key=t.key,e.ref=t.ref,e.class=t.class,e.id=t.id,e.style=t.style,e.slot&&delete e.slot,e}function ln(t,e){return Object.setPrototypeOf(t,e),t}var Mi=function(e,n){return typeof e=="string"?String(n):typeof e=="number"?Number(n):n},mt={"==":function(e,n){return JSON.stringify(e)===JSON.stringify(Mi(e,n))},"!=":function(e,n){return!mt["=="](e,n)},">":function(e,n){return e>n},">=":function(e,n){return e>=n},"<":function(e,n){return e<n},"<=":function(e,n){return e<=n},on:function(e,n){return e&&e.indexOf&&e.indexOf(Mi(e[0],n))>-1},notOn:function(e,n){return!mt.on(e,n)},in:function(e,n){return n&&n.indexOf&&n.indexOf(e)>-1},notIn:function(e,n){return!mt.in(e,n)},between:function(e,n){return e>n[0]&&e<n[1]},notBetween:function(e,n){return e<n[0]||e>n[1]},empty:function(e){return N.empty(e)},notEmpty:function(e){return!N.empty(e)},pattern:function(e,n){return new RegExp(n,"g").test(e)}};function De(t,e){return(Array.isArray(e)?e:(e||"").split(".")).forEach(function(n){t!=null&&(t=t[n])}),t}function bs(t){for(var e=/{{\s*(.*?)\s*}}/g,n,r={};(n=e.exec(t))!==null;)n[1]&&(r[n[1]]=!0);return Object.keys(r)}function ji(t){var e=t.split("."),n=[],r="";return e.forEach(function(i,o){o===0?r=i:r+="."+i,n.push(r)}),n.join(" && ")}function Ii(t){for(var e=[],n="",r=0,i=0;i<t.length;i++){var o=t[i];o==="["?(r===0&&n&&(e.push({type:"key",value:n}),n=""),r++,n+=o):o==="]"?(r--,n+=o,r===0&&(e.push({type:"bracket",value:Ii(n.slice(1,-1))}),n="")):o==="."&&r===0?n&&(e.push({type:"key",value:n}),n=""):n+=o}return n&&e.push({type:"key",value:n}),e.map(function(a){return a.type==="key"?{key:a.value}:{children:a.value}})}var un=function(e,n){if(!(!e||e===n)){if(e.props.formCreateInject)return e.props.formCreateInject;if(e.parent)return un(e.parent,n)}};function ws(t,e,n){return u.defineComponent({name:"FormCreate"+(t.isMobile?"Mobile":""),components:e,directives:n,props:{rule:{type:Array,required:!0,default:function(){return[]}},option:{type:Object,default:function(){return{}}},extendOption:Boolean,driver:[String,Object],modelValue:Object,disabled:{type:Boolean,default:void 0},preview:{type:Boolean,default:void 0},index:[String,Number],api:Object,locale:[String,Object],t:Function,name:String,subForm:{type:Boolean,default:!0},inFor:Boolean},emits:["update:api","update:modelValue","mounted","submit","reset","change","emit-event","control","remove-rule","remove-field","sync","reload","repeat-field","update","validate-field-fail","validate-fail","created"],render:function(){return this.fc.render()},setup:function(i){var o=u.getCurrentInstance();u.provide("parentFC",o);var a=u.inject("parentFC",null),s=a;if(a)for(;s.setupState.parent;)s=s.setupState.parent;else s=o;var l=u.toRefs(i),f=l.rule,c=l.modelValue,p=l.subForm,m=l.inFor,b=u.reactive({ctxInject:{},destroyed:!1,isShow:!0,unique:1,renderRule:ue(f.value||[]),updateValue:JSON.stringify(c.value||{})}),S=new t(o),O=S.api(),D=m.value,B=function(){if(a){var oe=un(o,a);if(oe){var Z;D?(Z=dt(oe.getSubForm()),Z.push(O)):Z=O,oe.subForm(Z)}}},F=function(){var oe=un(o,a);if(oe)if(D){var Z=dt(oe.getSubForm()),H=Z.indexOf(O);H>-1&&Z.splice(H,1)}else oe.subForm()},I=null;u.onBeforeMount(function(){u.watchEffect(function(){var ne="",oe=i.option&&i.option.globalClass||{};Object.keys(oe).forEach(function(Z){var H="";oe[Z].style&&Object.keys(oe[Z].style).forEach(function(_e){H+=It(_e)+":"+oe[Z].style[_e]+";"}),oe[Z].content&&(H+=oe[Z].content+";"),H&&(ne+=".".concat(Z,"{").concat(H,"}"))}),i.option&&i.option.style&&(ne+=i.option.style),I||(I=document.createElement("style"),I.type="text/css",document.head.appendChild(I)),I.innerHTML=ne||""})});var Y=st(function(){S.bus.$emit("$loadData.$topForm")},100),W=st(function(){S.bus.$emit("$loadData.$scopeForm")},100),U=st(function(){S.bus.$emit("$loadData.$form")},100),re=function(oe){S.bus.$emit("change-$form."+oe)};return u.onMounted(function(){a&&(O.top.bus.$on("$loadData.$form",Y),O.top.bus.$on("change",re)),O!==O.scope&&O.scope.bus.$on("$loadData.$scopeForm",W),S.mounted()}),u.onBeforeUnmount(function(){a&&(O.top.bus.$off("$loadData.$form",Y),O.top.bus.$off("change",re)),O!==O.scope&&O.scope.bus.$off("$loadData.$scopeForm",W),F(),b.destroyed=!0,S.unmount(),I&&(I.parentNode||I.parentElement)&&document.head.removeChild(I)}),u.onUpdated(function(){S.updated()}),B(),u.watch(function(){return i.option},function(){S.initOptions(),O.refresh()},{deep:!0,flush:"sync"}),u.watch(function(){return ue(f.value)},function(ne){S.$handle.isBreakWatch()||ne.length===b.renderRule.length&&ne.every(function(oe){return b.renderRule.indexOf(oe)>-1})||(S.$handle.updateAppendData(),S.$handle.reloadRule(f.value),o.setupState.renderRule())}),u.watch(function(){return[i.disabled,i.preview]},function(){O.refresh()}),u.watch(c,function(ne){Ft(ne||{})!==b.updateValue&&(O.config.forceCoverValue?O.coverValue(ne||{}):O.setValue(ne||{}))},{deep:!0,flush:"post"}),u.watch(function(){return i.index},function(){O.coverValue({}),S.$handle.updateAppendData(),u.nextTick(function(){u.nextTick(function(){O.clearValidateState()})})},{flush:"sync"}),J(J({fc:u.markRaw(S),parent:a&&u.markRaw(a),top:u.markRaw(s),fapi:u.markRaw(O)},u.toRefs(b)),{},{getGroupInject:function(){return un(o,a)},refresh:function(){++b.unique},renderRule:function(){b.renderRule=ue(f.value||[])},updateValue:function(oe){if(!b.destroyed){var Z=Ft(oe);b.updateValue!==Z&&(b.updateValue=Z,o.emit("update:modelValue",oe),u.nextTick(function(){U(),a?p.value||W():(Y(),W())}))}}})},created:function(){var i=u.getCurrentInstance();i.emit("update:api",i.setupState.fapi),i.setupState.fc.init()}})}function Fi(){return{props:{},on:{},options:[],children:[],hidden:!1,display:!0,value:void 0}}function cn(t,e){return function(n,r,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=new Qn(t,n,r,i,o);return e&&(N.Function(e)?e(a):a.props(e)),a}}function Qn(t,e,n,r,i){this._data=te(Fi(),{type:t,title:e,field:n,value:r,props:i||{}}),this.event=this.on}te(Qn.prototype,{getRule:function(){return this._data},setProp:function(e,n){return ze(this._data,e,n),this},modelField:function(e){return this._data.modelField=e,this},_clone:function(){var e=new this.constructor;return e._data=Di(this._data),e}});function Bi(t){t.forEach(function(e){Qn.prototype[e]=function(n){return tt(this._data,Ee({},e,arguments.length<2?n:Ee({},n,arguments[1]))),this}})}Bi(ki());var $s=cn("");function Ss(t,e,n){var r=$s("",e);return r._data.type=t,r._data.title=n,r}function Os(){return{create:Ss,factory:cn}}function xs(t,e,n){var r="fail to ".concat(t," ").concat(n.status,"'"),i=new Error(r);return i.status=n.status,i.url=t,i}function Ni(t){var e=t.responseText||t.response;if(!e)return e;try{return JSON.parse(e)}catch{return e}}function Li(t){if(!(typeof XMLHttpRequest>"u")){var e=new XMLHttpRequest,n=t.action||"";if(e.upload&&t.onProgress&&e.upload.addEventListener("progress",function(s){s.percent=s.total>0?s.loaded/s.total*100:0,t.onProgress(s)}),t.query){var r=N.String(t.query)?t.query:Object.keys(t.query).reduce(function(s,l){return s[l]=t.query[l]===null||t.query[l]===void 0?"":t.query[l],s},{}),i=new URLSearchParams(r).toString();i&&(n.includes("?")?n+="&".concat(i):n+="?".concat(i))}e.onerror=function(l){t.onError(l)},e.onload=function(){if(e.status<200||e.status>=300)return t.onError(xs(n,t,e),Ni(e));t.onSuccess(Ni(e))},e.open(t.method||"get",n,!0);var o;(t.data||t.file)&&(t.file||(t.dataType||"").toLowerCase()!=="json"?(o=new FormData,Object.keys(t.data||{}).map(function(s){o.append(s,t.data[s])})):(o=JSON.stringify(t.data||{}),e.setRequestHeader("content-type","application/json"))),t.file&&o.append(t.filename,t.file,t.file.name),t.withCredentials&&"withCredentials"in e&&(e.withCredentials=!0);var a=t.headers||{};Object.keys(a).forEach(function(s){a[s]!=null&&e.setRequestHeader(s,a[s])}),e.send(o)}}function zi(t,e,n){return new Promise(function(r,i){(e||Li)(J(J({},t),{},{onSuccess:function(a){var s=function(c){return c},l=Je(t.parse);N.Function(l)?s=l:l&&N.String(l)&&(s=function(c){return De(c,l)}),nn(s(a,t.targetRule,n)).then(function(f){r(f)})},onError:function(a){i(a)}}))})}function Bt(t){return He(t)}function Cs(t){function e(o){return N.Undef(o)?o=t.fields():Array.isArray(o)||(o=[o]),o}function n(o,a,s){N.Undef(o)?o=Object.keys(J(J({},t.fieldCtx),t.nameCtx)):Array.isArray(o)||(o=[o]),o.forEach(function(l){var f=t.fieldCtx[l]||t.nameCtx[l];f&&f.forEach(function(c){ze(c.rule,a,s),t.$render.clearCache(c)})})}function r(){var o=t.subForm;return Object.keys(o).reduce(function(a,s){var l=o[s];return l&&(Array.isArray(l)?a.push.apply(a,ue(l)):a.push(l)),a},[])}var i={get isScope(){return t.vm.props.subForm===!1},get isPreview(){return t.preview},get config(){return t.options},set config(o){t.fc.options.value=o},get options(){return t.options},set options(o){t.fc.options.value=o},get form(){return t.form},get rule(){return t.rules},get parent(){return t.vm.setupState.parent&&t.vm.setupState.parent.setupState.fapi},get top(){return i.parent?i.parent.top:i},get scope(){for(var o=t.vm;o&&o.setupState.fapi;)if(o.props.subForm)o=o.setupState.parent;else return o.setupState.fapi;return i.top},get children(){return r()},get siblings(){var o=t.vm.setupState.getGroupInject();if(o){var a=o.getSubForm();if(Array.isArray(a))return ue(a)}},get index(){var o=i.siblings;if(o){var a=o.indexOf(i);return a>-1?a:void 0}},get formulas(){return J({},t.fc.formulas)},formData:function(a){if(a==null||typeof a=="boolean"){var s={};return Object.keys(t.form).forEach(function(l){(a===!0||t.ignoreFields.indexOf(l)===-1)&&(s[l]=Bt(t.form[l]))}),s}else return e(a).reduce(function(l,f){return l[f]=i.getValue(f),l},{})},getValue:function(a){var s=t.getFieldCtx(a);return s?Bt(s.rule.value):t.options.appendValue!==!1&&be(t.appendData,a)?Bt(t.appendData[a]):void 0},coverValue:function(a){var s=J({},a||{});t.deferSyncValue(function(){t.appendData={},i.fields().forEach(function(l){var f=t.fieldCtx[l];if(f){var c=be(a,l);f.forEach(function(p){p.rule.value=c?a[l]:void 0}),delete s[l]}}),te(t.appendData,s)},!0)},setValue:function(a){var s=a;arguments.length>=2&&(s=Ee({},a,arguments[1])),t.deferSyncValue(function(){Object.keys(s).forEach(function(l){var f=t.fieldCtx[l];if(!f)return t.appendData[l]=s[l];f.forEach(function(c){c.rule.value=s[l]})})},!0)},removeField:function(a){var s=t.getCtx(a);return t.deferSyncValue(function(){t.getCtxs(a).forEach(function(l){l.rm()})},!0),s?s.origin:void 0},removeRule:function(a){var s=a&&nt(a);if(!!s)return s.rm(),s.origin},fields:function(){return t.fields()},append:function(a,s,l){var f=t.sort.length-1,c,p=t.getCtx(s);if(p)if(l){if(c=p.getPending("children",p.rule.children),!Array.isArray(c))return;f=p.rule.children.length-1}else f=p.root.indexOf(p.origin),c=p.root;else c=t.rules;c.splice(f+1,0,a)},prepend:function(a,s,l){var f=0,c,p=t.getCtx(s);if(p)if(l){if(c=p.getPending("children",p.rule.children),!Array.isArray(c))return}else f=p.root.indexOf(p.origin),c=p.root;else c=t.rules;c.splice(f,0,a)},hidden:function(a,s){n(s,"hidden",!!a),t.refresh()},hiddenStatus:function(a){var s=t.getCtx(a);if(!!s)return!!s.rule.hidden},display:function(a,s){n(s,"display",!!a),t.refresh()},displayStatus:function(a){var s=t.getCtx(a);if(!!s)return!!s.rule.display},disabled:function(a,s){e(s).forEach(function(l){t.getCtxs(l).forEach(function(f){ze(f.rule.props,"disabled",!!a)})}),t.refresh()},all:function(a){return Object.keys(t.ctxs).map(function(s){var l=t.ctxs[s];return a?l.origin:l.rule})},model:function(a){return t.fields().reduce(function(s,l){var f=t.fieldCtx[l][0];return s[l]=a?f.origin:f.rule,s},{})},component:function(a){return Object.keys(t.nameCtx).reduce(function(s,l){var f=t.nameCtx[l].map(function(c){return a?c.origin:c.rule});return s[l]=f.length===1?f[0]:f,s},{})},bind:function(){return i.form},reload:function(a){t.reloadRule(a)},updateOptions:function(a){t.fc.updateOptions(a),i.refresh()},onSubmit:function(a){i.updateOptions({onSubmit:a})},sync:function(a){if(Array.isArray(a)){a.forEach(function(l){return i.sync(l)});return}var s=N.Object(a)?nt(a):t.getCtxs(a);!s||(s=Array.isArray(s)?s:[s],s.forEach(function(l){if(!l.deleted){var f=t.subForm[l.id];f&&(Array.isArray(f)?f.forEach(function(c){c.refresh()}):f&&f.refresh()),t.$render.clearCache(l)}}),t.refresh())},refresh:function(){r().forEach(function(a){a.refresh()}),t.$render.clearCacheAll(),t.refresh()},refreshOptions:function(){t.$manager.updateOptions(t.options),i.refresh()},hideForm:function(a){t.vm.setupState.isShow=!a},changeStatus:function(){return t.changeStatus},clearChangeStatus:function(){t.changeStatus=!1},updateRule:function(a,s){t.getCtxs(a).forEach(function(l){te(l.rule,s)})},updateRules:function(a){Object.keys(a).forEach(function(s){i.updateRule(s,a[s])})},mergeRule:function(a,s){t.getCtxs(a).forEach(function(l){tt(l.rule,s)})},mergeRules:function(a){Object.keys(a).forEach(function(s){i.mergeRule(s,a[s])})},getRule:function(a,s){var l=t.getCtx(a);if(l)return s?l.origin:l.rule},findType:function(a,s){var l=void 0;return Object.keys(t.ctxs).forEach(function(f){var c=t.ctxs[f];c.rule.type===a&&(l=s?c.origin:c.rule)}),l},findTypes:function(a,s){var l=[];return Object.keys(t.ctxs).forEach(function(f){var c=t.ctxs[f];c.rule.type===a&&l.push(s?c.origin:c.rule)}),l},getRenderRule:function(a){var s=t.getCtx(a);if(s)return s.prop},getRefRule:function(a){var s=t.getCtxs(a);if(s){var l=s.map(function(f){return f.rule});return l.length===1?l[0]:l}},setEffect:function(a,s,l){var f=t.getCtx(a);f&&s&&(s[0]==="$"&&(s=s.substr(1)),be(f.rule,"$"+s)&&ze(f.rule,"$"+s,l),be(f.rule,"effect")||(f.rule.effect={}),ze(f.rule.effect,s,l))},clearEffectData:function(a,s){var l=t.getCtx(a);l&&(s&&s[0]==="$"&&(s=s.substr(1)),l.clearEffectData(s),i.sync(a))},updateValidate:function(a,s,l){l?i.mergeRule(a,{validate:s}):n(a,"validate",s)},updateValidates:function(a,s){Object.keys(a).forEach(function(l){i.updateValidate(l,a[l],s)})},refreshValidate:function(){i.refresh()},resetFields:function(a){e(a).forEach(function(s){t.getCtxs(s).forEach(function(l){t.$render.clearCache(l),l.rule.value=Bt(l.defaultValue)})}),u.nextTick(function(){u.nextTick(function(){u.nextTick(function(){i.clearValidateState(a)})})}),a==null&&(N.Function(t.options.onReset)&&ce(function(){return t.options.onReset(i)}),t.vm.emit("reset",i))},method:function(a,s){var l=i.el(a);if(!l||!l[s])throw new Error($i("err","".concat(s," \u65B9\u6CD5\u4E0D\u5B58\u5728")));return function(){return l[s].apply(l,arguments)}},exec:function(a,s){for(var l=arguments.length,f=new Array(l>2?l-2:0),c=2;c<l;c++)f[c-2]=arguments[c];return ce(function(){return i.method(a,s).apply(void 0,f)})},toJson:function(a){return Ft(i.rule,a)},trigger:function(a,s){for(var l=i.el(a),f=arguments.length,c=new Array(f>2?f-2:0),p=2;p<f;p++)c[p-2]=arguments[p];l&&l.$emit.apply(l,[s].concat(c))},el:function(a){var s=t.getCtx(a);if(s)return s.el||t.vm.refs[s.ref]},closeModal:function(a){t.bus.$emit("fc:closeModal:"+a)},getSubForm:function(a){var s=t.getCtx(a);return s?t.subForm[s.id]:void 0},getChildrenRuleList:function(a){var s=fe(a)==="object",l=s?nt(a):t.getCtx(a),f=l?l.rule:s?a:i.getRule(a);if(!f)return[];var c=[],p=function(b){b&&b.forEach(function(S){fe(S)==="object"&&(S.field&&c.push(S),c.push.apply(c,ue(i.getChildrenRuleList(S))))})};return p(l?l.loadChildrenPending():f.children),c},getParentRule:function(a){var s=fe(a)==="object",l=s?nt(a):t.getCtx(a);return l.parent.rule},getParentSubRule:function(a){var s=fe(a)==="object",l=s?nt(a):t.getCtx(a);if(l){var f=l.getParentGroup();if(f)return f.rule}},getChildrenFormData:function(a,s){var l=i.getChildrenRuleList(a);return l.reduce(function(f,c){return(c.ignore!==!0||s===!0)&&(f[c.field]=Bt(c.value)),f},{})},setChildrenFormData:function(a,s,l){var f=i.getChildrenRuleList(a);t.deferSyncValue(function(){f.forEach(function(c){be(s,c.field)?c.value=s[c.field]:l&&(c.value=void 0)})})},getGlobalEvent:function(a){var s=i.options.globalEvent[a];if(s)return fe(s)==="object"&&(s=s.handle),Je(s)},getGlobalData:function(a){return new Promise(function(s,l){var f=i.options.globalData[a];f?f.type==="fetch"?i.fetch(f).then(function(c){s(c)}).catch(l):s(f.data):s(t.fc.loadData[a])})},setGlobalData:function(a,s){i.setData("$globalData."+a,s)},setGlobalVar:function(a,s){i.setData("$var."+a,s)},renderRule:function(a,s,l){var f=fe(a)==="object",c=f?nt(a):t.getCtx(a);return c?t.$render.createRuleVnode(c,s,l):void 0},renderChildren:function(a,s,l){var f=fe(a)==="object",c=f?nt(a):t.getCtx(a);return c?t.$render.createChildrenVnodes(c,s,l):void 0},nextTick:function(a){t.bus.$once("next-tick",a),t.refresh()},nextRefresh:function(a){t.nextRefresh(),a&&ce(a)},deferSyncValue:function(a,s){t.deferSyncValue(a,s)},emit:function(a){for(var s,l=arguments.length,f=new Array(l>1?l-1:0),c=1;c<l;c++)f[c-1]=arguments[c];(s=t.vm).emit.apply(s,[a].concat(f))},bus:t.bus,getCurrentFormRule:function(){var a;return(a=t.vm.setupState.getGroupInject())===null||a===void 0?void 0:a.rule},fetch:function(a){return new Promise(function(s,l){a=He(a),a=t.loadFetchVar(a),t.beforeFetch(a).then(function(){return zi(a,t.fc.create.fetch,i).then(function(f){ce(function(){return a.onSuccess&&a.onSuccess(f)}),s(f)}).catch(function(f){ce(function(){return a.onError&&a.onError(f)}),l(f)})}).catch(function(f){})})},watchFetch:function(a,s,l,f){return t.fc.watchLoadData(function(c,p){var m=He(a);m=t.loadFetchVar(m,c),!(f&&f(m,p)===!1)&&t.beforeFetch(m).then(function(){return zi(m,t.fc.create.fetch,i).then(function(b){ce(function(){return m.onSuccess&&m.onSuccess(b)}),s&&s(b,p)}).catch(function(b){ce(function(){return m.onError&&m.onError(b)}),l&&l(b)})}).catch(function(b){})},a.wait==null?1e3:a.wait)},getData:function(a,s){return t.fc.get?t.fc.get(a,s):t.fc.getLoadData(a,s)},watchData:function(a){return t.fc.watchLoadData(function(s,l){ce(function(){return a(s,l)})})},setData:function(a,s,l){return t.fc.setData(a,s,l)},refreshData:function(a){return t.fc.refreshData(a)},t:function(a,s){return t.fc.t(a,s)},getLocale:function(){return t.fc.getLocale()},helper:{tidyFields:e,props:n}};return["on","once","off"].forEach(function(o){i[o]=function(){var a;(a=t.bus)["$".concat(o)].apply(a,arguments)}}),i.changeValue=i.changeField=i.setValue,i}function Es(t){te(t.prototype,{initCache:function(){this.clearCacheAll()},clearCache:function(n){if(!n.rule.cache){if(!this.cache[n.id]){n.parent&&this.clearCache(n.parent);return}(this.cache[n.id].use===!0||this.cache[n.id].parent)&&this.$handle.refresh(),this.cache[n.id].parent&&this.clearCache(this.cache[n.id].parent),this.cache[n.id]=null}},clearCacheAll:function(){this.cache={}},setCache:function(n,r,i){this.cache[n.id]={vnode:r,use:!1,parent:i,slot:n.rule.slot}},getCache:function(n){var r=this.cache[n.id];if(r)return r.use=!0,r.vnode}})}function ks(t){te(t.prototype,{initRender:function(){this.cacheConfig={}},getTypeSlot:function(n){var r=function i(o){if(o){var a=void 0;return n.rule.field&&(a=o.slots["field-"+It(n.rule.field)]||o.slots["field-"+n.rule.field]),a||(a=o.slots["type-"+It(n.type)]||o.slots["type-"+n.type]),a||i(o.setupState.parent)}};return r(this.vm)},render:function(){var n=this;if(!!this.vm.setupState.isShow){this.$manager.beforeRender();var r=sn();return this.sort.forEach(function(i){n.renderSlot(r,n.$handle.ctxs[i])}),this.$manager.render(r)}},renderSlot:function(n,r,i){if(this.isFragment(r)){r.initProp(),this.mergeGlobal(r),r.initNone();var o=this.renderChildren(r.loadChildrenPending(),r),a=o.default;a&&n.setSlot(r.rule.slot,function(){return a()}),delete o.default,n.mergeBag(o)}else n.setSlot(r.rule.slot,this.renderCtx(r,i))},mergeGlobal:function(n){var r=this,i=this.$handle.options.global;!i||(this.cacheConfig[n.trueType]||(this.cacheConfig[n.trueType]=u.computed(function(){var o=r.$handle.options.global;return tt({},[o["*"]||o.default||{},o[n.originType]||o[n.type]||o[n.type]||{}])})),n.prop=tt({},[this.cacheConfig[n.trueType].value,n.prop]))},setOptions:function(n){var r=n.loadPending({key:"options",origin:n.prop.options,def:[]});n.prop.options=r,n.prop.optionsTo&&r&<(n.prop,n.prop.optionsTo,r)},deepSet:function(n){var r=n.rule.deep;r&&Object.keys(r).sort(function(i,o){return i.length<o.length?-1:1}).forEach(function(i){lt(n.prop,i,r[i])})},parseSide:function(n,r){return N.Object(n)?tt({props:{formCreateInject:r.prop.props.formCreateInject}},n):n},renderSides:function(n,r,i){var o=r[i?"rule":"prop"];return[this.renderRule(this.parseSide(o.prefix,r)),n,this.renderRule(this.parseSide(o.suffix,r))]},renderId:function(n,r){var i=this,o=this.$handle[r==="field"?"fieldCtx":"nameCtx"][n];return o?o.map(function(a){return i.renderCtx(a,a.parent)}):void 0},renderCtx:function(n,r){var i=this;try{if(n.type==="hidden")return;var o=n.rule;if(this.force||!this.cache[n.id]||this.cache[n.id].slot!==o.slot){var a;n.initProp(),this.mergeGlobal(n),n.initNone(),this.$manager.tidyRule(n),this.deepSet(n),this.setOptions(n),this.ctxProp(n);var s=n.prop;s.preview=!!(s.preview!=null?s.preview:this.$handle.preview),s.props.formCreateInject=this.injectProp(n);var l=s.cache!==!1,f=s.preview;if(s.hidden){this.setCache(n,void 0,r);return}a=function(){for(var p=arguments.length,m=new Array(p),b=0;b<p;b++)m[b]=arguments[b];var S={rule:o,prop:s,preview:f,api:i.$handle.api,model:s.model||{},slotValue:m};m.length&&o.slotUpdate&&ce(function(){return o.slotUpdate(S)});var O={},D=n.loadChildrenPending();n.parser.renderChildren?O=n.parser.renderChildren(D,n):n.parser.loadChildren!==!1&&(O=i.renderChildren(D,n)),Object.keys(s.renderSlots||{}).forEach(function(I){O[I]=function(){for(var Y=arguments.length,W=new Array(Y),U=0;U<Y;U++)W[U]=arguments[U];if(N.Function(s.renderSlots[I]))return ce(function(){var ne;return(ne=s.renderSlots)[I].apply(ne,W)});var re=i.parseSide(s.renderSlots[I],n);return i.renderRule(re)}});var B=i.getTypeSlot(n),F;return B?(S.children=O,F=B(S)):F=f?n.parser.preview(Hn(O),n):n.parser.render(Hn(O),n),F=i.renderSides(F,n),!(!n.input&&N.Undef(s.native))&&s.native!==!0&&(i.fc.targetFormDriver("updateWrap",n),F=i.$manager.makeWrap(n,F)),n.none&&(Array.isArray(F)?F=F.map(function(I){return!I||!I.__v_isVNode?I:i.none(I)}):F=i.none(F)),l&&i.setCache(n,function(){return i.stable(F)},r),F},this.setCache(n,a,r)}return function(){var c=i.getCache(n);if(c)return c.apply(void 0,arguments);if(i.cache[n.id])return;var p=i.renderCtx(n,n.parent);if(p)return p()}}catch(c){console.error(c);return}},none:function(n){if(n)return n.props.class=this.mergeClass(n.props.class,"fc-none"),n},mergeClass:function(n,r){if(Array.isArray(n))n.push(r);else return n?[n,r]:r;return n},stable:function(n){var r=this,i=Array.isArray(n)?n:[n];return i.forEach(function(o){o&&o.__v_isVNode&&o.children&&fe(o.children)==="object"&&(o.children.$stable=!0,r.stable(o.children))}),n},getModelField:function(n){return n.prop.modelField||n.parser.modelField||this.fc.modelFields[this.vNode.aliasMap[n.type]]||this.fc.modelFields[n.type]||this.fc.modelFields[n.originType]||"modelValue"},isFragment:function(n){return n.type==="fragment"||n.type==="template"},injectProp:function(n){var r=this,i=this.vm.setupState;i.ctxInject[n.id]||(i.ctxInject[n.id]={api:this.$handle.api,form:this.fc.create,subForm:function(s){r.$handle.addSubForm(n,s)},getSubForm:function(){return r.$handle.subForm[n.id]},slots:function(){return r.vm.setupState.top.slots},getWrap:function(){return r.vm.refs[n.wrapRef]},options:[],children:[],preview:!1,id:n.id,field:n.field,rule:n.rule,input:n.input,t:function(){var s;return(s=r.$handle.api).t.apply(s,arguments)},updateValue:function(s){r.$handle.onUpdateValue(n,s)}});var o=i.ctxInject[n.id];return te(o,{preview:n.prop.preview,options:n.prop.options,children:n.loadChildrenPending()}),o},ctxProp:function(n){var r=this,i=n.ref,o=n.key,a=n.rule;this.$manager.mergeProp(n),n.parser.mergeProp(n);var s=[{ref:i,key:a.key||"".concat(o,"fc"),slot:void 0,on:{vnodeMounted:function(m){m.el.__rule__=n.rule,r.onMounted(n,m.el)},"fc.updateValue":function(m){r.$handle.onUpdateValue(n,m)},"fc.el":function(m){n.exportEl=m,m&&((m.$el||m).__rule__=n.rule)}}}];if(n.input){var l=this.tmpInput;this.vm.props.disabled===!0&&(n.prop.props.disabled=!0);var f=this.getModelField(n),c={callback:function(m){l&&l(n.field,m,n.rule),r.onInput(n,m)},modelField:f,value:this.$handle.getFormData(n)};s.push({on:J(Ee({},"update:".concat(f),c.callback),n.prop.modelEmit?Ee({},n.prop.modelEmit,function(){return r.onEmitInput(n)}):{}),props:Ee({},f,c.value)}),n.prop.model=c}return pt(s,n.prop),n.prop},onMounted:function(n,r){n.el=this.vm.refs[n.ref]||r,n.parser.mounted(n),this.$handle.effect(n,"mounted"),this.$handle.targetHook(n,"mounted")},onInput:function(n,r){if(n.prop.modelEmit){this.$handle.onBaseInput(n,r);return}this.$handle.onInput(n,r)},onEmitInput:function(n){this.$handle.setValue(n,n.parser.toValue(n.modelValue,n),n.modelValue)},renderChildren:function(n,r){var i=this;if(!N.trueArray(n))return{};var o=sn();return n.map(function(a){if(!!a){if(N.String(a))return o.setSlot(null,a);if(a.__fc__)return i.renderSlot(o,a.__fc__,r);a.type&&u.nextTick(function(){i.$handle.loadChildren(n,r),i.$handle.refresh()})}}),o.getSlots()},defaultRender:function(n,r){var i=n.prop;return i.component?typeof i.component=="string"?this.vNode.make(i.component,i,r):this.vNode.makeComponent(i.component,i,r):this.vNode[n.type]?this.vNode[n.type](i,r):this.vNode[n.originType]?this.vNode[n.originType](i,r):this.vNode.make(Ai(i.type),i,r)},createChildrenVnodes:function(n,r,i){this.force=i!==!1,this.tmpInput=r;var o=this.renderChildren(n.rule.children,n);return this.force=!1,this.tmpInput=null,o},createRuleVnode:function(n,r,i){this.force=i!==!1,this.tmpInput=r;var o=sn();return this.renderSlot(o,n,n.parent),this.force=!1,this.tmpInput=null,o.getSlots()},renderRule:function(n,r,i){var o=this;if(!!n){if(N.String(n))return n;var a;if(i)a=n.type;else if(a=n.is,n.type){a=We(n.type);var s=this.vNode.aliasMap[a];s&&(a=We(s))}if(!!a){var l=sn();N.trueArray(n.children)&&n.children.forEach(function(c){c&&l.setSlot(c==null?void 0:c.slot,function(){return o.renderRule(c)})});var f=J({},n);return delete f.type,delete f.is,this.vNode.make(a,f,l.mergeBag(r).getSlots())}}}})}var As=1;function er(t){te(this,{$handle:t,fc:t.fc,vm:t.vm,$manager:t.$manager,vNode:new t.fc.CreateNode(t),force:!1,tmpInput:null,id:As++}),Vi(this,{options:function(){return t.options},sort:function(){return t.sort}}),this.initCache(),this.initRender()}Es(er),ks(er);function Ds(t){te(t.prototype,{parseInjectEvent:function(n,r){var i=n.inject||this.options.injectEvent;return this.parseEventLst(n,r,i)},parseEventLst:function(n,r,i,o){var a=this;return Object.keys(r).forEach(function(s){var l=a.parseEvent(n,r[s],i,o);l&&(r[s]=l)}),r},parseEvent:function(n,r,i,o){if(N.Function(r)&&(i!==!1&&!N.Undef(i)||r.__inject))return this.inject(n,r,i);if(!o&&Array.isArray(r)&&r[0]&&(N.String(r[0])||N.Function(r[0])))return this.parseEventLst(n,r,i,!0);if(N.String(r)){var a=Je(r);if(a&&r!==a)return a.__inject?this.parseEvent(n,a,i,!0):a}},parseEmit:function(n){var r=this,i={},o=n.rule,a=o.emitPrefix,s=o.field,l=o.name,f=o.inject,c=o.emit||[];return N.trueArray(c)&&c.forEach(function(p){if(!!p){var m,b=a||s||l;if(N.Object(p)&&(m=p.inject,p=p.name,b=p.prefix||b),b){var S=It("".concat(b,"-").concat(p)),O=function(){var F,I,Y;r.vm.emitsOptions&&(r.vm.emitsOptions[S]=null);for(var W=arguments.length,U=new Array(W),re=0;re<W;re++)U[re]=arguments[re];(F=r.vm).emit.apply(F,[S].concat(U)),(I=r.vm).emit.apply(I,["emit-event",S].concat(U)),(Y=r.bus).$emit.apply(Y,[S].concat(U))};if(O.__emit=!0,!m&&f===!1)i[p]=O;else{var D=m||f||r.options.injectEvent;i[p]=N.Undef(D)?O:r.inject(o,O,D)}}}}),n.computed.on=i,i},getInjectData:function(n,r){var i=n.__fc__&&n.__fc__.$api,o=n.__fc__&&n.__fc__.$handle.vm||this.vm,a=o.props,s=a.option,l=a.rule;return{$f:i||this.api,api:i||this.api,rule:l,self:n.__origin__,option:s,inject:r}},inject:function(n,r,i){if(r.__origin){if(this.watching&&!this.loading)return r;r=r.__origin}var o=this,a=function(){for(var l=o.getInjectData(n,i),f=arguments.length,c=new Array(f),p=0;p<f;p++)c[p]=arguments[p];return l.args=[].concat(c),c.unshift(l),r.apply(this,c)};return a.__origin=r,a.__json=r.__json,a},loadStrVar:function(n,r,i){var o=this;if(n&&typeof n=="string"&&n.indexOf("{{")>-1&&n.indexOf("}}")>-1){var a=n,s=bs(n),l=function(m){var b=!1,S;if(i&&m.indexOf("$form.")===0){var O=m.split(".");O.shift(),be(i.value,O[0])&&(b=!0,S=r?r({id:"$form."+O[0]+"_"+i.rule.__fc__.id,getValue:function(){return De(i.value,O)}}):De(i.value,O))}return b||(S=r?r(m):o.fc.getLoadData(m)),S},f=function p(m){var b=[];m.forEach(function(O){O.key?b.push(O.key):O.children&&b.push(p(O.children))});var S=!1;return b.forEach(function(O,D){O!=null&&(O.indexOf("'")===0||O.indexOf('"')===0)&&(b[D]=O.slice(1,-1),S=!0)}),b.length===1&&(S||!isNaN(Number(b[0])))?b[0]:l(b.join("."))},c;if(s.forEach(function(p){var m=p.split("||"),b=m[0].trim();if(b){var S=(m[1]||"").trim(),O=Ii(b),D=ce(function(){return f(O)});(D==null||D==="")&&m.length>1&&(D=S),c=D,n=n.replaceAll("{{".concat(p,"}}"),D==null?"":D)}}),s.length===1&&a==="{{".concat(s[0],"}}"))return c}return n},loadFetchVar:function(n,r,i){var o=this,a;i&&i.__fc__&&(a=i.__fc__.getParentGroup());var s=function(f){return o.loadStrVar(f,r,a?{rule:i,value:o.subRuleData[a.id]||{}}:null)};return n.action=s(n.action||""),["headers","data","query"].forEach(function(l){if(n[l]){var f=Array.isArray(n[l])?[]:{};Object.keys(n[l]).forEach(function(c){f[s(c)]=s(n[l][c])}),n[l]=f}}),n}})}var Ui=["hook:updated","hook:mounted"];function Rs(t){te(t.prototype,{usePage:function(){var n=this,r=this.options.page;if(!!r){var i=25,o=Ps(this.rules);N.Object(r)&&(r.first&&(i=parseInt(r.first,10)||i),r.limit&&(o=parseInt(r.limit,10)||o)),te(this,{first:i,limit:o,pageEnd:this.rules.length<=i}),this.bus.$on("page-end",function(){return n.vm.emit("page-end",n.api)}),this.pageLoad()}},pageLoad:function(){var n=this,r=function i(){n.pageEnd?(n.bus.$off(Ui,i),n.bus.$emit("page-end")):(n.first+=n.limit,n.pageEnd=n.rules.length<=n.first,n.loadRule(),n.refresh())};this.bus.$on(Ui,r)}})}function Ps(t){return t.length<31?31:Math.ceil(t.length/3)}function Vs(t){te(t.prototype,{clearNextTick:function(){this.nextTick&&clearTimeout(this.nextTick),this.nextTick=null},bindNextTick:function(n){var r=this;this.clearNextTick(),this.nextTick=setTimeout(function(){n(),r.nextTick=null},10)},render:function(){return++this.loadedId,this.vm.setupState.unique>0?this.$render.render():(this.vm.setupState.unique=1,[])}})}function Ts(t){Object.defineProperties(t.origin,{__fc__:Zn(u.markRaw(t),!0)}),t.rule!==t.origin&&Object.defineProperties(t.rule,{__fc__:Zn(u.markRaw(t),!0)})}function qi(t,e,n){var r=rn(),i=!!e.field;te(this,{id:r,ref:r,wrapRef:r+"fi",rule:e,origin:e.__origin__||e,name:e.name,pending:{},none:!1,watch:[],linkOn:[],root:[],ctrlRule:[],children:[],parent:null,group:e.subRule?this:null,cacheConfig:null,prop:J({},e),computed:{},payload:{},refRule:{},input:i,el:void 0,exportEl:void 0,defaultValue:i?He(n):void 0,field:e.field||void 0}),this.updateKey(),Ts(this),this.update(t,!0)}te(qi.prototype,{getParentGroup:function(){for(var e=this.parent;e;){if(e.group)return e;e=e.parent}},loadChildrenPending:function(){var e=this,n=this.rule.children||[];return Array.isArray(n)?n:this.loadPending({key:"children",origin:n,def:[],onLoad:function(i){e.$handle&&e.$handle.loadChildren(i,e)},onUpdate:function(i,o){e.$handle&&(i===o?e.$handle.loadChildren(i,e):e.$handle.updateChildren(e,i,o))},onReload:function(i){e.$handle?e.$handle.updateChildren(e,[],i):delete e.pending.children}})},loadPending:function(e){var n=this,r=e.key,i=e.origin,o=e.def,a=e.onLoad,s=e.onReload,l=e.onUpdate;if(this.pending[r]&&this.pending[r].origin===i)return this.getPending(r,o);delete this.pending[r];var f=i;if(N.Function(i)){var c=ce(function(){return i({rule:n.rule,api:n.$api,update:function(m){var b=m||o,S=n.getPending(r,o);n.setPending(r,i,b),l&&l(b,S)},reload:function(){var m=n.getPending(r,o);delete n.pending[r],s&&s(m),n.$api&&n.$api.sync(n.rule)}})});c&&N.Function(c.then)?(c.then(function(p){var m=p||o;n.setPending(r,i,m),a&&a(m),n.$api&&n.$api.sync(n.rule)}).catch(function(p){console.error(p)}),f=o,this.setPending(r,i,f)):(f=c||o,this.setPending(r,i,f),a&&a(f))}return f},getPending:function(e,n){return this.pending[e]&&this.pending[e].value||n},setPending:function(e,n,r){this.pending[e]={origin:n,value:u.reactive(r)}},effectData:function(e){return this.payload[e]||(this.payload[e]={}),this.payload[e]},clearEffectData:function(e){e===void 0?this.payload={}:delete this.payload[e]},updateKey:function(e){this.key=rn(),e&&this.parent&&this.parent.updateKey(e)},updateType:function(){this.originType=this.rule.type,this.type=We(this.rule.type),this.trueType=this.$handle.getType(this.originType)},setParser:function(e){this.parser=e,e.init(this)},initProp:function(){var e=this,n,r,i=J({},this.rule);delete i.children,delete i.validate,this.prop=tt({},[i].concat(ue(Object.keys(this.payload).map(function(o){return e.payload[o]})),[this.computed])),this.prop.validate=[].concat(ue(((n=this.refRule)===null||n===void 0||(r=n.__$validate)===null||r===void 0?void 0:r.value)||[]),ue(this.prop.validate||[]))},initNone:function(){this.none=!(N.Undef(this.prop.display)||!!this.prop.display)},hasHidden:function(){return!!this.rule.hidden||(this.parent?this.parent.hasHidden():!1)},injectValidate:function(){return this.prop.validate},check:function(e){return this.vm===e.vm},unwatch:function(){var e=this;this.watch.forEach(function(n){return n()}),this.watch=[],Object.keys(this.refRule).forEach(function(n){n.indexOf("__$")!==0&&delete e.refRule[n]})},unlink:function(){this.linkOn.forEach(function(e){return e()}),this.linkOn=[]},link:function(){this.unlink(),this.$handle.appendLink(this)},watchTo:function(){this.$handle.watchCtx(this)},delete:function(){this.unwatch(),this.unlink(),this.rmCtrl(),this.parent&&this.parent.children.splice(this.parent.children.indexOf(this)>>>0,1),te(this,{deleted:!0,computed:{},parent:null,children:[],cacheConfig:null,none:!1})},rmCtrl:function(){this.ctrlRule.forEach(function(e){return e.__fc__&&e.__fc__.rm()}),this.ctrlRule=[]},rm:function(){var e=this,n=function(){var i=e.root.indexOf(e.origin);i>-1&&(e.root.splice(i,1),e.$handle&&e.$handle.refresh())};if(this.deleted){n();return}this.$handle.noWatch(function(){e.$handle.deferSyncValue(function(){e.rmCtrl(),n(),e.$handle.rmCtx(e),te(e,{root:[]})},e.input)})},update:function(e,n){te(this,{deleted:!1,$handle:e,$render:e.$render,$api:e.api,vm:e.vm,vNode:e.$render.vNode,updated:!1,cacheValue:this.rule.value}),!n&&this.unwatch(),this.watchTo(),this.link(),this.updateType()}});function Ms(t){te(t.prototype,{nextRefresh:function(n){var r=this,i=this.loadedId;u.nextTick(function(){i===r.loadedId&&(n?n():r.refresh())})},parseRule:function(n){var r=this,i=Pi(n);return Object.defineProperties(i,{__origin__:Zn(n,!0)}),js(i),this.appendValue(i),[i,i.prefix,i.suffix].forEach(function(o){!o||r.loadFn(o,i)}),this.loadCtrl(i),i.update&&(i.update=Je(i.update)),i},loadFn:function(n,r){var i=this;["on","props","deep"].forEach(function(o){n[o]&&i.parseInjectEvent(r,n[o])})},loadCtrl:function(n){n.control&&n.control.forEach(function(r){r.handle&&(r.handle=Je(r.handle))})},syncProp:function(n){var r=this,i=n.rule;N.trueArray(i.sync)&&pt([{on:i.sync.reduce(function(o,a){return o[fe(a)==="object"&&a.event||"update:".concat(a)]=function(s){i.props[fe(a)==="object"&&a.prop||a]=s,r.vm.emit("sync",a,s,i,r.fapi)},o},{})}],n.computed)},loadRule:function(){var n=this;this.cycleLoad=!1,this.loading=!0,this.pageEnd&&this.bus.$emit("load-start"),this.deferSyncValue(function(){if(n._loadRule(n.rules),n.loading=!1,n.cycleLoad&&n.pageEnd)return n.loadRule();n.syncForm(),n.pageEnd&&n.bus.$emit("load-end"),n.vm.setupState.renderRule()})},loadChildren:function(n,r){if(this.cycleLoad=!1,this.loading=!0,this.bus.$emit("load-start"),this._loadRule(n,r),this.loading=!1,this.cycleLoad)return this.loadRule();this.syncForm(),this.bus.$emit("load-end"),this.$render.clearCache(r)},_loadRule:function(n,r){var i=this,o=function l(f){var c=n[f-1];if(!c||!c.__fc__)return f>0?l(f-1):-1;var p=i.sort.indexOf(c.__fc__.id);return p>-1?p:l(f-1)},a=function(f,c){N.trueArray(f)&&i._loadRule(f,c)},s=n.map(function(l,f){if(!(r&&!N.Object(l))&&!(!i.pageEnd&&!r&&f>=i.first)){if(l.__fc__&&l.__fc__.root===n&&i.ctxs[l.__fc__.id])return a(l.__fc__.loadChildrenPending(),l.__fc__),l.__fc__;var c=Pi(l),p=function(){return!!(c.field&&i.fieldCtx[c.field]&&i.fieldCtx[c.field][0]!==l.__fc__)};i.fc.targetFormDriver("loadRule",{rule:c,api:i.api},i.fc),i.ruleEffect(c,"init",{repeat:p()}),p()&&i.vm.emit("repeat-field",l,i.api);var m,b=!1,S=!!l.__fc__,O=c.value;if(S){if(m=l.__fc__,O=m.defaultValue,m.deleted){if(Gi(m))return;m.update(i)}else if(!m.check(i)){if(Gi(m))return;n[f]=l=l._clone?l._clone():Si(Ft(l)),m=null,b=!0}}if(m)m.originType!==m.rule.type&&m.updateType(),i.bindParser(m),i.appendValue(m.rule),m.parent&&m.parent!==r&&i.rmSubRuleData(m);else{var D=i.parseRule(l);m=new qi(i,D,O),i.bindParser(m)}i.parseEmit(m),i.syncProp(m),m.parent=r||null,m.root=n,i.setCtx(m),!b&&!S&&(i.effect(m,"load"),i.targetHook(m,"load")),i.effect(m,"created");var B=m.loadChildrenPending();if(m.parser.loadChildren===!1||a(B,m),!r){var F=o(f);F>-1||!f?i.sort.splice(F+1,0,m.id):i.sort.push(m.id)}var I=m.rule;return m.updated||(m.updated=!0,N.Function(I.update)&&i.bus.$once("load-end",function(){i.refreshUpdate(m,I.value,"init")}),i.effect(m,"loaded")),i.refreshControl(m)&&(i.cycleLoad=!0),m}}).filter(function(l){return!!l});r&&(r.children=s)},refreshControl:function(n){return n.input&&n.rule.control&&this.useCtrl(n)},useCtrl:function(n){var r=this,i=Is(n),o=[],a=this.api;if(!i.length)return!1;for(var s=function(b){var S=i[b],O=S.handle||function(B){return(mt[S.condition||"=="]||mt["=="])(B,S.value)};if(!N.trueArray(S.rule))return"continue";var D=J(J({},S),{},{valid:ce(function(){return O(n.rule.value,a)}),ctrl:Fs(n,S.rule),isHidden:N.String(S.rule[0])});if(D.valid&&D.ctrl||!D.valid&&!D.ctrl&&!D.isHidden)return"continue";o.push(D)},l=0;l<i.length;l++)var f=s(l);if(!o.length)return!1;var c=[],p=!1;return this.deferSyncValue(function(){o.reverse().forEach(function(m){var b=m.isHidden,S=m.valid,O=m.rule,D=m.prepend,B=m.append,F=m.child,I=m.ctrl,Y=m.method;if(b){S?n.ctrlRule.push({__ctrl:!0,children:O,valid:S}):I&&n.ctrlRule.splice(n.ctrlRule.indexOf(I)>>>0,1),c[S?"push":"unshift"](function(){Y==="disabled"||Y==="enabled"?r.api.disabled(!S,O):Y==="display"||Y==="show"?r.api.display(S,O):Y==="required"?(O.forEach(function(re){r.api.setEffect(re,"required",S)}),S||r.api.clearValidateState(O)):r.api.hidden(!S,O)});return}if(S){p=!0;var W={type:"fragment",native:!0,__ctrl:!0,children:O};n.ctrlRule.push(W),r.bus.$once("load-start",function(){D?a.prepend(W,D,F):B||F?a.append(W,B||n.id,F):n.root.splice(n.root.indexOf(n.origin)+1,0,W)})}else{n.ctrlRule.splice(n.ctrlRule.indexOf(I),1);var U=nt(I);U&&U.rm()}})}),c.length&&(this.loading?c.length&&this.bus.$once("load-end",function(){c.forEach(function(m){return m()})}):c.length&&u.nextTick(function(){c.forEach(function(m){return m()})})),this.vm.emit("control",n.origin,this.api),this.effect(n,"control"),p},reloadRule:function(n){return this._reloadRule(n)},_reloadRule:function(n){var r=this;n||(n=this.rules);var i=J({},this.ctxs);this.clearNextTick(),this.initData(n),this.fc.rules=n,this.deferSyncValue(function(){r.bus.$once("load-end",function(){Object.keys(i).filter(function(o){return r.ctxs[o]===void 0}).forEach(function(o){return r.rmCtx(i[o])}),r.$render.clearCacheAll()}),r.reloading=!0,r.loadRule(),r.reloading=!1,r.refresh(),r.bus.$emit("reloading",r.api)}),this.bus.$off("next-tick",this.nextReload),this.bus.$once("next-tick",this.nextReload),this.bus.$emit("update",this.api)},refresh:function(){this.vm.setupState.refresh()}})}function js(t){var e=Fi();return Object.keys(e).forEach(function(n){be(t,n)||(t[n]=e[n])}),t}function Is(t){var e=t.rule.control||[];return N.Object(e)?[e]:e}function Fs(t,e){for(var n=0;n<t.ctrlRule.length;n++){var r=t.ctrlRule[n];if(r.children===e)return r}}function Gi(t){return!!t.rule.__ctrl}function Bs(t){te(t.prototype,{setValue:function(n,r,i,o){var a=this;n.deleted||(n.rule.value=r,this.changeStatus=!0,this.nextRefresh(),this.$render.clearCache(n),this.setFormData(n,i),this.syncValue(),this.valueChange(n,r),this.vm.emit("change",n.field,r,n.origin,this.api,o||!1),this.effect(n,"value"),this.targetHook(n,"value",{value:r}),this.emitEvent("change",n.field,r,{rule:n.origin,api:this.api,setFlag:o||!1}),o&&u.nextTick(function(){u.nextTick(function(){u.nextTick(function(){a.api.clearValidateState(n.id)})})}),this.$manager.fieldChange(n,r,i,o))},onInput:function(n,r){var i;n.input&&(this.isQuote(n,i=n.parser.toValue(r,n))||this.isChange(n,r))&&this.setValue(n,i,r)},onUpdateValue:function(n,r){var i=this;this.deferSyncValue(function(){var o=n.getParentGroup(),a=o?i.subRuleData[o.id]:null,s={};Object.keys(r||{}).forEach(function(l){a&&be(a,l)?s[l]=r[l]:be(i.api.form,l)?i.api.form[l]=r[l]:i.api.top!==i.api&&be(i.api.top.form,l)&&(i.api.top.form[l]=r[l])}),Object.keys(s).length&&i.api.setChildrenFormData(o.rule,s)})},onBaseInput:function(n,r){this.setFormData(n,r),n.modelValue=r,this.nextRefresh(),this.$render.clearCache(n)},setFormData:function(n,r){n.modelValue=r;var i=n.getParentGroup();i&&(this.subRuleData[i.id]||(this.subRuleData[i.id]={}),this.subRuleData[i.id][n.field]=n.rule.value),ze(this.formData,n.id,r)},rmSubRuleData:function(n){var r=n.getParentGroup();r&&this.subRuleData[r.id]&&delete this.subRuleData[r.id][n.field]},getFormData:function(n){return this.formData[n.id]},syncForm:function(){var n=this,r=u.reactive({}),i=this.fields(),o=[];this.options.appendValue!==!1&&Object.keys(this.appendData).reduce(function(a,s){return i.indexOf(s)===-1&&(a[s]=u.toRef(n.appendData,s)),a},r),i.reduce(function(a,s){var l=(n.fieldCtx[s]||[]).filter(function(f){return!n.isIgnore(f)})[0];return l||(l=n.fieldCtx[s][0],o.push(s)),a[s]=u.toRef(l.rule,"value"),a},r),this.form=r,this.ignoreFields=o,this.syncValue()},isIgnore:function(n){return n.rule.ignore===!0||(n.rule.ignore==="hidden"||this.options.ignoreHiddenFields)&&n.hasHidden()},appendValue:function(n){(!n.field||!be(this.appendData,n.field))&&(!N.Undef(n.value)||!this.options.forceCoverValue)||(n.value=this.appendData[n.field],delete this.appendData[n.field])},addSubForm:function(n,r){this.subForm[n.id]=r},deferSyncValue:function(n,r){this.deferSyncFn||(this.deferSyncFn=n),this.deferSyncFn.sync||(this.deferSyncFn.sync=r),ce(n),this.deferSyncFn===n&&(this.deferSyncFn=null,n.sync&&this.syncForm())},syncValue:function(){var n=this;if(this.deferSyncFn)return this.deferSyncFn.sync=!0;var r={};Object.keys(this.form).forEach(function(i){n.ignoreFields.indexOf(i)===-1&&(r[i]=n.form[i])}),this.vm.setupState.updateValue(r)},isChange:function(n,r){return JSON.stringify(this.getFormData(n),Hi)!==JSON.stringify(r,Hi)},isQuote:function(n,r){return(r instanceof Function||N.Object(r)||Array.isArray(r))&&r===n.rule.value},refreshUpdate:function(n,r,i,o){var a=this;if(N.Function(n.rule.update)){var s=ce(function(){return n.rule.update(r,n.origin,a.api,{origin:i||"change",linkField:o})});if(s===void 0)return;n.rule.hidden=s===!0}},valueChange:function(n,r){this.refreshRule(n,r),this.bus.$emit("change-"+n.field,r)},refreshRule:function(n,r,i,o){this.refreshControl(n)&&(this.$render.clearCacheAll(),this.loadRule(),this.bus.$emit("update",this.api),this.refresh()),this.refreshUpdate(n,r,i,o)},appendLink:function(n){var r=this,i=n.rule.link;N.trueArray(i)&&i.forEach(function(o){var a=function(){return r.refreshRule(n,n.rule.value,"link",o)};r.bus.$on("change-"+o,a),n.linkOn.push(function(){return r.bus.$off("change-"+o,a)})})},fields:function(){return Object.keys(this.fieldCtx)}})}function Hi(t,e){return typeof e=="function"?""+e:e}var fn={init:function(e){},toFormValue:function(e,n){return e},toValue:function(e,n){return e},mounted:function(e){},render:function(e,n){return n.$handle.fc.renderDriver&&n.$handle.fc.renderDriver.defaultRender?n.$handle.fc.renderDriver.defaultRender(n,e):n.$render.defaultRender(n,e)},preview:function(e,n){return n.$handle.fc.renderDriver&&n.$handle.fc.renderDriver.defaultPreview?n.$handle.fc.renderDriver.defaultPreview(n,e):this.render(e,n)},mergeProp:function(e){}},Ns=["field","value","vm","template","name","config","control","inject","sync","payload","optionsTo","update","slotUpdate","computed","component","cache"],Nt=Symbol("oldValue");function Ls(t){te(t.prototype,{getCtx:function(n){return this.getFieldCtx(n)||this.getNameCtx(n)[0]||this.ctxs[n]},getCtxs:function(n){return this.fieldCtx[n]||this.nameCtx[n]||(this.ctxs[n]?[this.ctxs[n]]:[])},setIdCtx:function(n,r,i){var o="".concat(i,"Ctx");this[o][r]?this[o][r].push(n):this[o][r]=[n]},rmIdCtx:function(n,r,i){var o="".concat(i,"Ctx"),a=this[o][r];if(!a)return!1;var s=a.splice(a.indexOf(n)>>>0,1).length>0;return a.length||delete this[o][r],s},getFieldCtx:function(n){return(this.fieldCtx[n]||[])[0]},getNameCtx:function(n){return this.nameCtx[n]||[]},setCtx:function(n){var r=n.id,i=n.field,o=n.name,a=n.rule;this.ctxs[r]=n,o&&this.setIdCtx(n,o,"name"),n.input&&(this.setIdCtx(n,i,"field"),this.setFormData(n,n.parser.toFormValue(a.value,n)),this.isMounted&&!this.reloading&&this.vm.emit("change",n.field,a.value,n.origin,this.api))},getParser:function(n){var r=this.fc.parsers,i=this.fc.renderDriver;if(i){var o=i.parsers||{},a=o[n.originType]||o[We(n.type)]||o[n.trueType];if(a)return a}return r[n.originType]||r[We(n.type)]||r[n.trueType]||fn},bindParser:function(n){n.setParser(this.getParser(n))},getType:function(n){var r=this.fc.CreateNode.aliasMap,i=r[n]||r[We(n)]||n;return We(i)},noWatch:function(n){this.noWatchFn||(this.noWatchFn=n),ce(n),this.noWatchFn===n&&(this.noWatchFn=null)},watchCtx:function(n){var r=this,i=ki();if(i.filter(function(a){return a[0]!=="_"&&a[0]!=="$"&&Ns.indexOf(a)===-1}).forEach(function(a){var s=u.toRef(n.rule,a),l=a==="children";n.refRule[a]=s,n.watch.push(u.watch(l?function(){return N.Function(s.value)?s.value:ue(s.value||[])}:function(){return s.value},function(f,c){var p=s.value;if(!r.isBreakWatch()){if(l&&n.parser.loadChildren===!1){r.$render.clearCache(n),r.nextRefresh();return}if(r.watching=!0,u.nextTick(function(){r.targetHook(n,"watch",{key:a,oldValue:c,newValue:p})}),a==="hidden"&&Boolean(p)!==Boolean(c)&&(r.$render.clearCacheAll(),u.nextTick(function(){r.targetHook(n,"hidden",{value:p})})),a==="ignore"&&n.input||a==="hidden"&&n.input&&(n.rule.ignore==="hidden"||r.options.ignoreHiddenFields))r.syncForm();else if(a==="link"){n.link();return}else["props","on","deep"].indexOf(a)>-1?(r.parseInjectEvent(n.rule,p||{}),a==="props"&&n.input&&r.setFormData(n,n.parser.toFormValue(n.rule.value,n))):a==="emit"?r.parseEmit(n):["prefix","suffix"].indexOf(a)>-1?p&&r.loadFn(p,n.rule):a==="type"?(n.updateType(),r.bindParser(n)):l&&(N.Function(c)&&(c=n.getPending("children",[])),N.Function(p)&&(p=n.loadChildrenPending()),r.updateChildren(n,p,c));r.$render.clearCache(n),r.refresh(),r.watching=!1}},{deep:!l,sync:l}))}),n.refRule.__$title=u.computed(function(){var a=(fe(n.rule.title)==="object"?n.rule.title.title:n.rule.title)||"";if(a){var s=a.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);s&&(a=r.api.t(s[1]))}return a}),n.refRule.__$info=u.computed(function(){var a=(fe(n.rule.info)==="object"?n.rule.info.info:n.rule.info)||"";if(a){var s=a.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);s&&(a=r.api.t(s[1]))}return a}),n.refRule.__$validate=u.computed(function(){var a=function(l){var f=l.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);if(f){var c,p;return r.api.t(f[1],{title:(c=n.refRule)===null||c===void 0||(p=c.__$title)===null||p===void 0?void 0:p.value})}return l};return dt(n.rule.validate).map(function(s){var l=J({},s);if(l.message&&(l.message=a(l.message)),N.Function(l.validator)){var f=n;l.validator=function(){for(var p,m=arguments.length,b=new Array(m),S=0;S<m;S++)b[S]=arguments[S];return(p=s.validator).call.apply(p,[{that:this,id:f.id,field:f.field,rule:f.rule,api:f.$handle.api}].concat(b))}}if(l.adapter){if(fe(l.error)==="object"){var c=J({},l.error);Object.keys(c).forEach(function(p){c[p]=a(c[p])}),l.error=c}return r.adapterValidate(l,n)}return l})}),n.input){var o=u.toRef(n.rule,"value");n.watch.push(u.watch(function(){return o.value},function(){var a=n.parser.toFormValue(o.value,n);r.isChange(n,a)&&r.setValue(n,o.value,a,!0)}))}this.bus.$once("load-end",function(){var a=n.rule.computed;!a||(fe(a)!=="object"&&(a={value:a}),Object.keys(a).forEach(function(s){var l=u.computed(function(){var c=a[s];if(!!c){var p=r.compute(n,c);return(c.linkage||c.linkageVariable)&&p===Nt?Nt:p}}),f=function(p){s==="value"?r.onInput(n,p):s[0]==="$"?r.api.setEffect(n.id,s,p):lt(n.rule,s,p)};(s==="value"?[void 0,null,""].indexOf(n.rule.value)>-1:l.value!==De(n.rule,s))&&f(l.value),n.watch.push(u.watch(l,function(c){c!==Nt&&setTimeout(function(){f(c)})},{deep:!0}))}))}),this.watchEffect(n)},adapterValidate:function(n,r){var i=this,o=function(s,l){var f=n.beforeValidate&&ce(function(){return n.beforeValidate({value:s,api:i.api,validate:n,rule:r.rule})});if(f===!1)l();else{var c=i.validator(r,s,n);if(c){var m="";fe(n.error)==="object"&&(m=n.error[c]||n.error.default),!m&&typeof n.message=="string"&&(m=n.message),m||(m=i.getValidateMessage(r,{key:c,rule:n[c]})),l(m)}else if(n.validator){var p=n.validator&&ce(function(){return n.validator(s,l)});p&&N.Function(p.then)&&p.then(function(){return l()}).catch(function(b){return l(b)})}else l()}};return this.$manager.adapterValidate({required:n.required,message:n.message,target:n.trigger},o)},getValidateMessage:function(n,r){var i,o,a,s=Array.isArray(r.rule)?r.rule.join(","):""+r.rule;return this.api.t(r.key==="required"?r.key:"validate."+r.key,(a={},Ee(a,r.key,s),Ee(a,"title",(i=n.refRule)===null||i===void 0||(o=i.__$title)===null||o===void 0?void 0:o.value),a))},validator:function(n,r,i){var o=this,a=N.empty(r);if(a)return i.required?"required":void 0;for(var s=function(){var m=Va(f[l],2),b=m[0],S=m[1];switch(b){case"len":case"maxLen":case"minLen":var O=function(re){return b==="len"?re===S:b==="maxLen"?re<=S:re>=S};if(Array.isArray(r)){if(!O(r.length))return{v:b}}else{if(fe(r)==="object")return{v:b};if(!O((""+r).length))return{v:b}}break;case"pattern":var D=typeof S=="string"?new RegExp(S):S;if(!D.test(""+r))return{v:b};break;case"uppercase":if(S&&(typeof r!="string"||!/^[A-Z]*$/.test(r)))return{v:b};break;case"lowercase":if(S&&(typeof r!="string"||!/^[a-z]*$/.test(r)))return{v:b};break;case"min":case"max":case"positive":case"negative":case"integer":case"number":var B=Number(r);if(Number.isNaN(B))return{v:b};if(b==="min"&&B<S)return{v:b};if(b==="max"&&B>S)return{v:b};if(b==="positive"&&B<=0)return{v:b};if(b==="negative"&&B>=0)return{v:b};if(b==="integer"&&!Number.isInteger(B))return{v:b};break;case"equal":if(r!==S)return{v:b};break;case"enum":if(Array.isArray(S)&&!S.includes(r))return{v:b};break;case"hasKeys":if(fe(r)!=="object"||Array.isArray(S)&&S.some(function(U){return!(U in r)}))return{v:b};break;case"email":var F=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;if(!F.test(""+r))return{v:b};break;case"url":var I=new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i");if(!I.test(""+r))return{v:b};break;case"ip":var Y=/^(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})(\.(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})){3}$/;if(!Y.test(""+r))return{v:b};break;case"phone":var W=/^(?:(?:\+|00)86)?1[3-9]\d{9}$/;if(!W.test(""+r))return{v:b};break;case"computed":if(!o.compute(n,S))return{v:b};break}},l=0,f=Object.entries(i);l<f.length;l++){var c=s();if(fe(c)==="object")return c.v}},compute:function(n,r){var i=this,o;if(fe(r)==="object"){var a=n.getParentGroup(),s=function c(p){if(p=Array.isArray(p)?{mode:"AND",group:p}:p,!N.trueArray(p.group))return!0;for(var m=p.mode==="OR",b=!0,S=function(F){var I=p.group[F],Y=void 0,W=null;if(I.variable)W=JSON.stringify(i.fc.getLoadData(I.variable))||"";else if(I.field)W=ji(I.field||"");else if(!I.mode)return{v:!0};var U=I.compare;if(U&&(U=ji(U||"")),I.mode?Y=c(I):mt[I.condition]?N.Function(I.handler)?Y=ce(function(){return I.handler(i.api,n.rule)}):Y=ce(function(){return new Function("$condition","$val","$form","$scope","$group","$rule","with($form){with($scope){with(this){with($group){ return $condition['".concat(I.condition,"'](").concat(W,", ").concat(U||"$val","); }}}}")).call(i.api.form,mt,I.value,i.api.top.form,i.api.top===i.api.scope?{}:i.api.scope.form,a?i.subRuleData[a.id]||{}:{},n.rule)}):Y=!1,m&&Y)return{v:!0};m||(b=b&&Y)},O=0;O<p.group.length;O++){var D=S(O);if(fe(D)==="object")return D.v}return m?!1:b},l=s(r);return l=r.invert===!0?!l:l,r.linkage?l?ce(function(){return i.computeValue(r.linkage,n,a)},void 0):Nt:r.linkageVariable?l?ce(function(){return i.fc.getLoadData(r.linkageVariable)},void 0):Nt:l}else if(N.Function(r))o=function(){return r(i.api.form,i.api,n.rule)};else{var f=n.getParentGroup();o=function(){return i.computeValue(r,n,f)}}return ce(o,void 0)},computeValue:function(n,r,i){var o=this,a=this,s=Object.keys(this.fc.formulas).reduce(function(l,f){return l[f]=function(){for(var c,p=arguments.length,m=new Array(p),b=0;b<p;b++)m[b]=arguments[b];return(c=a.fc.formulas[f]).call.apply(c,[{that:this,rule:r.rule,api:a.api,fc:a.fc}].concat(m))},l},{});return ce(function(){return new Function("$formulas","$form","$scope","$group","$rule","$api","with($form){with($scope){with(this){with($group){with($formulas){ return ".concat(n," }}}}}")).call(o.api.form,s,o.api.top.form,o.api.top===o.api.scope?{}:o.api.scope.form,i?o.subRuleData[i.id]||{}:{},r.rule,o.api)},void 0)},updateChildren:function(n,r,i){var o=this;this.deferSyncValue(function(){i&&i.forEach(function(a){(r||[]).indexOf(a)===-1&&a&&!N.String(a)&&a.__fc__&&a.__fc__.parent===n&&o.rmCtx(a.__fc__)}),N.trueArray(r)&&(o.loadChildren(r,n),o.bus.$emit("update",o.api))})},rmSub:function(n){var r=this;N.trueArray(n)&&n.forEach(function(i){i&&i.__fc__&&r.rmCtx(i.__fc__)})},rmCtx:function(n){var r=this;if(!n.deleted){var i=n.id,o=n.field,a=n.input,s=n.name;ht(this.ctxs,i),ht(this.formData,i),ht(this.subForm,i),ht(this.vm.setupState.ctxInject,i);var l=n.getParentGroup();l&&this.subRuleData[l.id]&&ht(this.subRuleData[l.id],o),n.group&&ht(this.subRuleData,i),a&&this.rmIdCtx(n,o,"field"),s&&this.rmIdCtx(n,s,"name"),a&&!be(this.fieldCtx,o)&&ht(this.form,o),this.deferSyncValue(function(){if(!r.reloading){if(n.parser.loadChildren!==!1){var c=n.getPending("children",n.rule.children);N.trueArray(c)&&c.forEach(function(p){return p&&p.__fc__&&r.rmCtx(p.__fc__)})}n.root===r.rules&&r.vm.setupState.renderRule()}},a);var f=this.sort.indexOf(i);return f>-1&&this.sort.splice(f,1),this.$render.clearCache(n),n.delete(),this.effect(n,"deleted"),this.targetHook(n,"deleted"),a&&!this.fieldCtx[o]&&this.vm.emit("remove-field",o,n.rule,this.api),n.rule.__ctrl||this.vm.emit("remove-rule",n.rule,this.api),n}}})}function zs(t){te(t.prototype,{mounted:function(){var n=this,r=function(){n.isMounted=!0,n.lifecycle("mounted")};this.pageEnd?r():this.bus.$once("page-end",r)},lifecycle:function(n){this.fc.targetFormDriver(n,this.api,this.fc),this.vm.emit(n,this.api),this.emitEvent(n,this.api)},emitEvent:function(n){for(var r,i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];var s=this.options[n]||this.options[We("on-"+n)];if(s){var l=Je(s);N.Function(l)&&ce(function(){return l.apply(void 0,o)})}(r=this.bus).$emit.apply(r,[n].concat(o))},targetHook:function(n,r,i){var o,a,s=this,l=(o=n.prop)===null||o===void 0||(a=o.hook)===null||a===void 0?void 0:a[r],f=function(D,B){D&&(D=Array.isArray(D)?D:[D],D.forEach(function(F){ce(function(){return F(J(J({},i||{}),{},{self:n.rule,rule:n.rule,parent:B==null?void 0:B.rule,$f:s.api,api:s.api,option:s.vm.props.option}))})}))};f(l);for(var c="deep"+wi(r),p=n.parent;p;){var m,b,S=(m=p.prop)===null||m===void 0||(b=m.hook)===null||b===void 0?void 0:b[c];f(S,p),p=p.parent}}})}function Us(t){te(t.prototype,{useProvider:function(){var n=this,r=this.fc.providers;Object.keys(r).forEach(function(i){var o=r[i];N.Function(o)&&(o=o(n.fc)),o._c=Gs(o),n.onEffect(o,i),n.providers[i]=o})},onEffect:function(n,r){var i=this,o=[];(n._c||["*"]).forEach(function(a){var s=a==="*"?"*":i.getType(a);o.indexOf(s)>-1||(o.push(s),i.bus.$on("p:".concat(r||n.name,":").concat(s,":").concat(n.input?1:0),function(l,f){n[l]&&n[l].apply(n,ue(f))}))}),n._used=o},watchEffect:function(n){var r=this,i={required:function(){var a,s;return(be(n.rule,"$required")?n.rule.$required:(a=n.rule)===null||a===void 0||(s=a.effect)===null||s===void 0?void 0:s.required)||!1}};Object.keys(n.rule.effect||{}).forEach(function(o){i[o]=function(){return n.rule.effect[o]}}),Object.keys(n.rule).forEach(function(o){o[0]==="$"&&(i[o.substr(1)]=function(){return n.rule[o]})}),Object.keys(i).forEach(function(o){n.watch.push(u.watch(i[o],function(a){r.effect(n,"watch",Ee({},o,a))},{deep:!0}))})},ruleEffect:function(n,r,i){this.emitEffect({rule:n,input:!!n.field,type:this.getType(n.type)},r,i)},effect:function(n,r,i){this.emitEffect({rule:n.rule,input:n.input,type:n.trueType,ctx:n,custom:i},r)},getEffect:function(n,r){if(be(n,"$"+r))return n["$"+r];if(be(n,"effect")&&be(n.effect,r))return n.effect[r]},emitEffect:function(n,r,i){var o=this,a=n.ctx,s=n.rule,l=n.input,f=n.type,c=n.custom;if(!(!f||["fcFragment","fragment"].indexOf(f)>-1)){var p=c||Object.keys(s).reduce(function(m,b){return b[0]==="$"&&(m[b.substr(1)]=s[b]),m},J({},s.effect||{}));Object.keys(p).forEach(function(m){var b=o.providers[m];if(!(!b||b.input&&!l)){var S;if(!b._c)S="*";else if(b._used.indexOf(f)>-1)S=f;else return;var O=J({value:p[m],getValue:function(){return o.getEffect(s,m)}},i||{});a&&(O.getProp=function(){return a.effectData(m)},O.clearProp=function(){return a.clearEffectData(m)},O.mergeProp=function(D){return tt(O.getProp(),[D])},O.id=a.id),o.bus.$emit("p:".concat(m,":").concat(S,":").concat(b.input?1:0),r,[O,s,o.api])}})}}})}function qs(t){return t.filter(function(e,n,r){return r.indexOf(e,0)===n})}function Gs(t){var e=t.components;if(Array.isArray(e)){var n=qs(e.filter(function(r){return r!=="*"}));return n.length?n:!1}else return N.String(e)?[e]:!1}function Ke(t){var e=this;Vi(this,{options:function(){return t.options.value||{}},bus:function(){return t.bus},preview:function(){return t.vm.props.preview!=null?t.vm.props.preview:t.vm.setupState.parent&&t.vm.setupState.parent.props.preview!=null?t.vm.setupState.parent.props.preview:t.options.value.preview||!1}}),te(this,{fc:t,vm:t.vm,watching:!1,loading:!1,reloading:!1,noWatchFn:null,deferSyncFn:null,isMounted:!1,formData:u.reactive({}),subRuleData:u.reactive({}),subForm:{},form:u.reactive({}),appendData:{},ignoreFields:[],providers:{},cycleLoad:null,loadedId:1,nextTick:null,changeStatus:!1,pageEnd:!0,nextReload:function(){e.lifecycle("reload")}}),this.initData(t.rules),this.$manager=new t.manager(this),this.$render=new er(this),this.api=t.extendApiFn.reduce(function(n,r){var i=ce(function(){return r(n,e)});return i&&i!==n&&te(n,i),n},Cs(this))}te(Ke.prototype,{initData:function(e){te(this,{ctxs:{},fieldCtx:{},nameCtx:{},sort:[],rules:e})},init:function(){this.updateAppendData(),this.useProvider(),this.usePage(),this.loadRule(),this.$manager.__init(),this.lifecycle("created")},updateAppendData:function(){this.appendData=J(J(J({},this.options.formData||{}),this.fc.vm.props.modelValue||{}),this.appendData)},isBreakWatch:function(){return this.loading||this.noWatchFn||this.reloading},globalBeforeFetch:function(e){var n=this;return new Promise(function(r,i){var o=n.options.beforeFetch&&ce(function(){return n.options.beforeFetch(e,{api:n.api})});o&&N.Function(o.then)?o.then(r).catch(i):r()})},beforeFetch:function(e){var n=this;return new Promise(function(r,i){var o=e&&e.beforeFetch&&ce(function(){return e.beforeFetch(e,{api:n.api})});o&&N.Function(o.then)?o.then(r).catch(i):o===!1?i():r()}).then(function(){return n.globalBeforeFetch(e)})},beforeSubmit:function(e){var n=this;return new Promise(function(r,i){var o=n.options.beforeSubmit&&ce(function(){return n.options.beforeSubmit(e,{api:n.api})});o&&N.Function(o.then)?o.then(r).catch(i):o===!1?i():r()})}}),Ds(Ke),Rs(Ke),Vs(Ke),Ms(Ke),Bs(Ke),Ls(Ke),zs(Ke),Us(Ke);var Hs="fcFragment",tr=u.defineComponent({name:Hs,inheritAttrs:!1,props:["vnode"],render:function(){return this.vnode}});function Ws(t){return Object.keys(t).map(function(e){var n=t[e],r=u.resolveDirective(e);if(!!r)return[r,n.value,n.arg,n.modifiers]}).filter(function(e){return!!e})}function Wi(t,e){var n=t.directives;return n?(Array.isArray(n)||(n=[n]),u.withDirectives(e,n.reduce(function(r,i){return r.concat(Ws(i))},[]))):e}function Ys(){var t={};function e(n){this.vm=n.vm,this.handle=n}return te(e.prototype,{make:function(r,i,o){return Wi(i,this.h(r,Ti(i),o))},makeComponent:function(r,i,o){try{return Wi(i,u.createVNode(r,Ti(i),o))}catch(a){return console.error(a),u.createVNode("")}},h:function(r,i,o){var a=this.vm||u.getCurrentInstance(),s=a.appContext.config.isNativeTag(r),l=this.handle.fc.prop.components[r];!l&&s&&delete i.formCreateInject;try{return u.createVNode(l||(s?r:u.resolveComponent(r)),i,o)}catch(f){return console.error(f),u.createVNode("")}},aliasMap:t}),te(e,{aliasMap:t,alias:function(r,i){t[r]=i},use:function(r){Object.keys(r).forEach(function(i){var o=It(i),a=ss(i).toLocaleLowerCase(),s=r[i];e.alias(i,s),[i,o,a].forEach(function(l){e.prototype[l]=function(f,c){return this.make(t[i]||l,f,c)}})})}}),e}function Xs(t){var e=function(n){ka(i,n);var r=Pa(i);function i(){return Ea(this,i),r.apply(this,arguments)}return i}(Yi);return Object.assign(e.prototype,t),e}function Yi(t){te(this,{$handle:t,vm:t.vm,options:{},ref:"fcForm",mergeOptionsRule:{normal:["form","row","info","submitBtn","resetBtn"]}}),this.updateKey(),this.init()}te(Yi.prototype,{__init:function(){var e=this;this.$render=this.$handle.$render,this.$r=function(){var n;return(n=e.$render).renderRule.apply(n,arguments)}},updateKey:function(){this.key=rn()},init:function(){},update:function(){},beforeRender:function(){},form:function(){return this.vm.refs[this.ref]},adapterValidate:function(e,n){return e.validator=function(r,i,o){return n(i,o)},e},getSlot:function(e){var n=function r(i){if(i){var o=i.slots[e];return o||r(i.setupState.parent)}};return n(this.vm)},mergeOptions:function(e,n){var r=this;return pt(e.map(function(i){return r.tidyOptions(i)}),n,this.mergeOptionsRule)},updateOptions:function(e){this.$handle.fc.targetFormDriver("updateOptions",e,{handle:this.$handle,api:this.$handle.api}),this.options=this.mergeOptions([e],this.getDefaultOptions()),this.update()},tidyOptions:function(e){return e},tidyRule:function(e){},mergeProp:function(e){},getDefaultOptions:function(){return{}},fieldChange:function(e,n,r,i){},render:function(e){}});var Js=function(e){var n={name:"loadData",_fn:[],loaded:function(i,o,a){var s=this;this.deleted(i),u.nextTick(function(){var l=dt(i.getValue()),f=[];l.forEach(function(c){if(c&&(c.attr||c.template)){var p=function(O){var D;o&&o.__fc__&&(D=o.__fc__.getParentGroup());var B;c.template?B=e.$handle.loadStrVar(c.template,O,D?{rule:o,value:e.$handle.subRuleData[D.id]||{}}:null):c.handler&&N.Function(c.handler)?B=c.handler(O,o,a):B=e.$handle.loadStrVar("{{".concat(c.attr,"}}"),O,D?{rule:o,value:e.$handle.subRuleData[D.id]||{}}:null),(B==null||B==="")&&c.default!=null&&(B=c.default),c.copy!==!1&&(B=He(B));var F=c.modify?o:i.getProp();c.to==="child"?F.children?F.children[0]=B:F.children=[B]:lt(F,c.to||"options",B),a.sync(o)},m=function(O){return p(O)},b=e.watchLoadData(m);p=st(p,c.wait||300),c.watch!==!1?f.push(b):b()}}),s._fn[i.id]=f})},deleted:function(i){this._fn[i.id]&&(this._fn[i.id].forEach(function(o){o()}),delete this._fn[i.id]),i.clearProp()}};return n.watch=n.loaded,n},Ks=function(e){var n={name:"t",_fn:[],loaded:function(i,o,a){this.deleted(i);var s=i.getValue()||{},l=[];Object.keys(s).forEach(function(f){var c=s[f];if(c){var p=fe(c)==="object",m=function(D){var B=e.t(p?c.attr:c,p?c.params:null,D),F=p&&c.modify?o:i.getProp();f==="child"?F.children?F.children[0]=B:F.children=[B]:lt(F,f,B),a.sync(o)},b=function(D){return m(D)},S=e.watchLoadData(b);m=st(m,c.wait||300),c.watch!==!1?l.push(S):S()}}),this._fn[i.id]=l},deleted:function(i){this._fn[i.id]&&(this._fn[i.id].forEach(function(o){o()}),delete this._fn[i.id]),i.clearProp()}};return n.watch=n.loaded,n},nr={name:"componentValidate",load:function(e,n,r){var i=e.getValue();if(!i||i.method===!1)e.clearProp(),r.clearValidateState([n.field]);else{N.Object(i)||(i={method:i});var o=i.method,a=J(J({},i),{},{validator:function(){var l=nt(n);if(l){for(var f=arguments.length,c=new Array(f),p=0;p<f;p++)c[p]=arguments[p];return r.exec.apply(r,[l.id,N.String(o)?o:"formCreateValidate"].concat(c,[{attr:e,rule:n,api:r}]))}}});delete a.method,e.getProp().validate=[a]}},watch:function(){nr.load.apply(nr,arguments)}},Zs=function(e){function n(o){return N.String(o)&&(o={action:o,to:"options"}),o}function r(o,a,s){var l=o.value;i.deleted(o),N.Function(l)&&(l=l(a,s)),l=n(l);var f=function(b){b===void 0?o.clearProp():lt(o.getProp(),l.to||"options",b),b!=null&&l&&l.key&&e.$handle.options.globalData[l.key]&&e.fetchCache.set(e.$handle.options.globalData[l.key],{status:!0,data:b}),s.sync(a)};if(!l||!l.action&&!l.key){f(void 0);return}l=He(l),l.to||(l.to="options");var c=l.onError,p=function(){if(!o.getValue())return o.clearProp(),s.sync(a),!0};i._fn[o.id]=e.watchLoadData(st(function(m,b){if(b&&l.watch===!1)return i._fn[o.id]();if(l.key){e.targetRule=a;var S=m("$globalData."+l.key);if(delete e.targetRule,S){if(p())return;f(S)}return}var O=e.$handle.loadFetchVar(He(l),m,a),D=J(J({headers:{}},O),{},{onSuccess:function(F,I){if(!p()){var Y=function(re){return I?re:be(re,"data")?re.data:re},W=Je(O.parse);N.Function(W)?Y=W:W&&N.String(W)&&(Y=function(re){return De(re,W)}),nn(Y(F,a,s)).then(function(U){f(U)})}},onError:function(F){f(void 0),!p()&&(c||function(I){return Wn(I.message||"fetch fail "+O.action)})(F,a,s)}});e.$handle.beforeFetch(D,{rule:a,api:s}).then(function(){if(N.Function(O.action)){nn(O.action(a,s)).then(function(B){D.onSuccess(B,!0)}).catch(function(B){D.onError(B)});return}ce(function(){return e.create.fetch(D,{inject:o,rule:a,api:s})})}).catch(function(B){})},l.wait||600))}var i={name:"fetch",_fn:[],loaded:function(){r.apply(void 0,arguments)},watch:function(){r.apply(void 0,arguments)},deleted:function(a){this._fn[a.id]&&(this._fn[a.id](),delete this._fn[a.id]),a.clearProp()}};return i},Qs={fetch:Zs,loadData:Js,t:Ks,componentValidate:nr};function el(t){t=t||new Map;var e={$on:function(r,i){var o=t.get(r),a=o&&o.push(i);a||t.set(r,[i])},$once:function(r,i){i._once=!0,e.$on(r,i)},$off:function(r,i){var o=t.get(r);o&&o.splice(o.indexOf(i)>>>0,1)},$emit:function(r){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];(t.get(r)||[]).slice().map(function(s){s._once&&(e.$off(r,s),delete s._once),s.apply(void 0,o)}),(t.get("*")||[]).slice().map(function(s){s(r,o)})}};return e}var tl="html",nl={name:tl,loadChildren:!1,render:function(e,n){return n.prop.props.innerHTML=e.default(),n.vNode.make(n.prop.props.tag||"div",n.prop)},renderChildren:function(e){return{default:function(){return e.filter(function(r){return N.String(r)}).join("")}}}};function rl(t){t=t+"=";for(var e=decodeURIComponent(document.cookie),n=e.split(";"),r=0;r<n.length;r++){for(var i=n[r];i.charAt(0)===" ";)i=i.substring(1);if(i.indexOf(t)===0){i=i.substring(t.length,i.length);try{return JSON.parse(i)}catch{return i}}}return null}function il(t){var e=localStorage.getItem(t);if(e)try{return JSON.parse(e)}catch{return e}return null}function ol(t){var e=sessionStorage.getItem(t);if(e)try{return JSON.parse(e)}catch{return e}return null}function rr(t,e){if(!e)return null;var n=e.split("."),r=t(n.shift());return n.length?r==null?null:De(r,n):r}function al(t){return rr(rl,t)}function sl(t){return rr(il,t)}function ll(t){return rr(ol,t)}var ul={en:{required:"{title} is required",validate:{url:"{title} is not a valid url",email:"{title} is not a valid email",ip:"{title} {title} is not a valid ip",phone:"{title} {title} is not a valid phone",pattern:"{title} does not match pattern {pattern}",uppercase:"{title} must be all uppercase",lowercase:"{title} must be all lowercased",positive:"{title} is not a positive number",negative:"{title} is not a negative number",equal:"{title} is not equal to {equal}",min:"{title} cannot be less than {min}",max:"{title} cannot be greater than {max}",enum:"{title} must be one of {enum}",hasKeys:"{title} does not contain required fields {hasKeys}",minLen:"{title} must be at least {minLen}",maxLen:"{title} cannot be longer than {maxLen}",len:"{title} must be exactly {len}",integer:"{title} is not an integer",number:"{title} is not an number"}},"zh-cn":{required:"{title}\u4E0D\u80FD\u4E3A\u7A7A",validate:{url:"{title}\u4E0D\u662F\u6709\u6548\u7684 url \u5730\u5740",email:"{title}\u4E0D\u662F\u6709\u6548\u7684\u90AE\u7BB1\u5730\u5740",ip:"{title}\u4E0D\u662F\u6709\u6548\u7684 IP \u5730\u5740",phone:"{title}\u4E0D\u662F\u6B63\u786E\u7684\u624B\u673A\u53F7",pattern:"{title}\u5FC5\u987B\u5339\u914D {pattern}",uppercase:"{title}\u5FC5\u987B\u5168\u5927\u5199",lowercase:"{title}\u5FC5\u987B\u5168\u5C0F\u5199",positive:"{title}\u4E0D\u662F\u6B63\u6570",negative:"{title}\u4E0D\u662F\u8D1F\u6570",equal:"{title}\u5FC5\u987B\u7B49\u4E8E {equal}",min:"{title}\u5FC5\u987B\u5927\u4E8E\u7B49\u4E8E {min}",max:"{title}\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E {max}",enum:"{title}\u5FC5\u987B\u662F {enum} \u4E4B\u4E00",hasKeys:"{title}\u5FC5\u987B\u5305\u542B {hasKeys} \u5B57\u6BB5",minLen:"{title}\u957F\u5EA6\u5FC5\u987B\u5927\u4E8E {minLen}",maxLen:"{title}\u957F\u5EA6\u5FC5\u987B\u5C0F\u4E8E {maxLen}",len:"{title}\u957F\u5EA6\u5FC5\u987B\u4E3A {len}",integer:"{title}\u5FC5\u987B\u4E3A\u6574\u6570",number:"{title}\u5FC5\u987B\u4E3A\u6570\u5B57"}}};function cl(t,e){var n;return arguments.length===2?(n=arguments[1],e=n[t]):n=arguments[2],{id:e,prop:n}}function ir(){return cl.apply(void 0,["name"].concat(Array.prototype.slice.call(arguments)))}function fl(t){var e=t.key||[],n=t.array||[],r=t.normal||[];Kn.push.apply(Kn,ue(e)),on.push.apply(on,ue(n)),an.push.apply(an,ue(r)),Bi([].concat(ue(e),ue(n),ue(r)))}var dl=1,Ue={},Xi=Symbol("defValue");function Ji(t){var e=Ee({},tr.name,tr),n={},r={},i={},o={},a=[],s=[],l=[t.extendApi],f=J({},Qs),c=Os(),p={global:{}},m=t.isMobile===!0,b=u.reactive({$mobile:m}),S=Ys(),O={},D={};fl(t.attrs||{});function B(R){var k=Ue[R];if(Array.isArray(k))return k.map(function(P){return P.api()});if(k)return k.api()}function F(R){a.push(R)}function I(){var R=ir.apply(void 0,arguments);R.id&&R.prop&&(r[R.id]=R.prop)}function Y(){var R=ir.apply(void 0,arguments);R.id&&R.prop&&(f[R.id]=N.Function(R.prop)?R.prop:J(J({},R.prop),{},{name:R.id}))}function W(R){S.use(R)}function U(){var R=ir.apply(void 0,arguments);if(!R.id||!R.prop)return fn;var k=We(R.id),P=R.prop,w=P.merge===!0?n[k]:void 0;n[k]=ln(P,w||fn),c[k]=cn(k),P.maker&&te(c,P.maker)}function re(R,k){var P;if(N.String(R)){if(P=R,k===void 0)return e[P]}else P=R.displayName||R.name,k=R;if(!(!P||!k)){var w=We(P);e[P]=k,e[w]=k,delete S.aliasMap[P],delete S.aliasMap[w],delete n[P],delete n[w],k.formCreateParser&&U(P,k.formCreateParser)}}function ne(){return ws(T,e,r)}function oe(R,k){var P=ne();return u.createApp({data:function(){return u.reactive({rule:R,option:k})},render:function(){return u.h(P,J({ref:"fc"},this.$data))}})}function Z(){return tr}function H(R,k){return N.Function(R.install)?R.install(_e,k):N.Function(R)&&R(_e,k),this}function _e(R,k){var P=oe(R,k||{});a.forEach(function(x){ce(function(){return x(_e,P)})});var w=document.createElement("div");((k==null?void 0:k.el)||document.body).appendChild(w);var C=P.mount(w);return C.$refs.fc.fapi}ln(_e,D);function Ie(R){var k=J({},t);return R?k.inherit={components:e,parsers:n,directives:r,modelFields:i,providers:f,useApps:a,maker:c,formulas:O,loadData:b}:delete k.inherit,Ji(k)}function A(R,k){i[R]=k}function $(R,k){O[R]=k}function _(R,k){var P=o[R]||{},w=P.parsers||{};k.parsers&&Object.keys(k.parsers).forEach(function(C){w[C]=ln(k.parsers[C],fn)}),k.name=R,o[R]=J(J(J({},P),k),{},{parsers:w})}function h(R){R&&Object.keys(Ue).forEach(function(k){var P=Array.isArray(Ue[k])?Ue[k]:[Ue[k]];P.forEach(function(w){w.bus.$emit("$loadData."+R)})})}function d(R,k){lt(b,R,k),h(R)}function g(R,k){var P=function(){for(var C=arguments.length,x=new Array(C),V=0;V<C;V++)x[V]=arguments[V];return ce(function(){return k.apply(void 0,x)})};P._driver=!0,d(R,P)}function y(R,k){var P=(R||"").split(".");R=P.shift();var w=P.join(".");if(be(b,R)||(b[R]=Xi),b[R]!==Xi){var C=b[R];return C&&C._driver?C=C(w):P.length&&(C=De(C,P)),C==null||C===""?k:C}else return k}function v(R){l.push(R)}function E(R){delete b[R],h(R)}function M(R,k){s.push({name:R,callback:k})}function T(R){var k=this;te(this,{id:dl++,create:_e,vm:R,manager:Xs(t.manager),parsers:n,providers:f,modelFields:i,formulas:O,isMobile:m,rules:R.props.rule,name:R.props.name||rn(),inFor:R.props.inFor,prop:{components:e,directives:r},get:null,drivers:o,renderDriver:null,refreshData:h,loadData:b,CreateNode:S,bus:new el,unwatch:[],options:u.ref({}),extendApiFn:l,fetchCache:new WeakMap,tmpData:u.reactive({})}),s.forEach(function(P){k.bus.$on(P.name,P.callback)}),u.nextTick(function(){u.watch(k.options,function(){k.$handle.$manager.updateOptions(k.options.value),k.api().refresh()},{deep:!0})}),te(R.appContext.components,e),te(R.appContext.directives,r),this.$handle=new Ke(this),this.name&&(this.inFor?(Ue[this.name]||(Ue[this.name]=[]),Ue[this.name].push(this)):Ue[this.name]=this)}T.isMobile=m,te(T.prototype,{init:function(){var k=this;this.isSub()&&this.unwatch.push(u.watch(function(){return k.vm.setupState.parent.setupState.fc.options.value},function(){k.initOptions(),k.$handle.api.refresh()},{deep:!0,flush:"sync"})),this.vm.props.driver&&(this.renderDriver=fe(this.vm.props.driver)==="object"?this.vm.props.driver:this.drivers[this.vm.props.driver]),!this.renderDriver&&this.vm.setupState.parent&&(this.renderDriver=this.vm.setupState.parent.setupState.fc.renderDriver),this.renderDriver||(this.renderDriver=this.drivers.default),this.initOptions(),this.$handle.init()},targetFormDriver:function(k){for(var P,w=this,C=arguments.length,x=new Array(C>1?C-1:0),V=1;V<C;V++)x[V-1]=arguments[V];if((P=this.bus).$emit.apply(P,[k].concat(x)),this.renderDriver&&this.renderDriver[k])return ce(function(){var j;return(j=w.renderDriver)[k].apply(j,x)})},t:function(k,P,w){var C=w?w("$t."+k):this.globalLanguageDriver(k);return C==null&&(C=""),C&&P&&Object.keys(P).forEach(function(x){var V=new RegExp("{".concat(x,"}"),"g");C=C.replace(V,P[x])}),C},globalDataDriver:function(k){var P=this,w=k.split("."),C=w.shift(),x=this.options.value.globalData&&this.options.value.globalData[C];if(x){if(x.type==="static")return De(x.data,w);var V,j=this.fetchCache.get(x);if(j){if(j.status&&(V=De(j.data,w)),!j.loading)return V;j.loading=!1,this.fetchCache.set(x,j)}else this.fetchCache.set(x,{status:!1});var X=st(function(){ae();var le=P.fetchCache.get(x);P.options.value.globalData&&Object.values(P.options.value.globalData).indexOf(x)!==-1?(le&&(le.loading=!0,P.fetchCache.set(x,le)),P.bus.$emit("$loadData.$globalData."+C)):P.fetchCache.delete(x)},x.wait||600),K=function(he){P.fetchCache.set(x,{status:!0,data:he}),P.bus.$emit("$loadData.$globalData."+C)},ie=function(he,$e){if($e&&x.watch===!1)return ae();if($e){X();return}var ve=P.$handle.loadFetchVar(Hn(x),he);ve.targetRule=P.targetRule,P.$handle.api.fetch(ve).then(function(de){K(de)}).catch(function(de){K(null)})},ae=this.watchLoadData(ie);return x.watch===!1&&ae(),this.unwatch.push(ae),V}},getLocale:function(){var k=this.vm.setupState.top.props.locale;return k&&fe(k)==="object"?k.name:typeof k=="string"?k:"zh-cn"},globalLanguageDriver:function(k){var P=this.vm.setupState.top.props.t,w=this.vm.setupState.top.props.locale,C=void 0;if(P&&(C=ce(function(){return P(k)})),C==null&&w&&fe(w)==="object"&&(C=De(w,k)),C==null){var x=this.options.value.language||{},V=this.getLocale();C=De(x[V]||{},k),C==null&&(C=De(ul[V]||{},k))}return C},globalVarDriver:function(k){var P=this,w=k.split("."),C=w.shift(),x=this.options.value.globalVariable&&this.options.value.globalVariable[C];if(x){var V=N.Function(x)?x:Je(x.handle);if(V){var j=V(function(){var X;return(X=P.$handle.api).getData.apply(X,arguments)},this.$handle.api);return De(j,w)}}},setData:function(k,P,w){w?d(k,P):(lt(this.vm.setupState.top.setupState.fc.tmpData,k,P),this.bus.$emit("$loadData."+k))},getLoadData:function(k,P){var w=null;if(k!=null){var C=k.split("."),x=C.shift();if(w=De(this.vm.setupState.top.setupState.fc.tmpData,k),w!=null)return w;if(x==="$topForm")w=this.$handle.api.top.formData(!0);else if(x==="$scopeForm")w=this.$handle.api.scope.formData(!0);else if(x==="$form")w=this.$handle.api.formData(!0);else if(x==="$options")w=this.options.value;else if(x==="$globalData")w=this.globalDataDriver(C.join(".")),C=[];else if(x==="$var")w=this.globalVarDriver(C.join(".")),C=[];else if(x==="$locale")w=this.getLocale(),C=[];else if(x==="$t")w=this.globalLanguageDriver(C.join(".")),C=[];else{if(x==="$preview")return this.$handle.preview;w=y(k),C=[]}w&&C.length&&(w=De(w,C))}return w==null||w===""?P:w},watchLoadData:function(k,P){var w=this,C={},x=function(K){w.get||(w.get=V),ce(function(){k(V,K)}),w.get===V&&(w.get=void 0)},V=function(K,ie){var ae;if(fe(K)==="object"&&(ae=K.getValue,K=K.id),C[K])return C[K].val;var le=u.computed(function(){return ae?ae():w.getLoadData(K,ie)}),he=K.split("."),$e=he.shift(),ve=he.shift()||"",de=st(function(){var Q=ae?ae():w.getLoadData(K,ie);if(C[K])((Q instanceof Function||N.Object(Q)||Array.isArray(Q))&&Q===C[K].val||JSON.stringify(Q)!==JSON.stringify(C[K].val))&&(C[K].val=Q,x(!0));else return},P||0),pe=u.watch(le,function(Q){de()});return w.bus.$on("$loadData."+$e,de),ve&&w.bus.$on("$loadData."+$e+"."+ve,de),C[K]={fn:function(){w.bus.$off("$loadData."+$e,de),ve&&w.bus.$off("$loadData."+$e+"."+ve,de),pe()},val:le.value},le.value};x(!1);var j=function(){Object.keys(C).forEach(function(K){return C[K].fn()}),C={}};return this.unwatch.push(j),j},isSub:function(){return this.vm.setupState.parent&&this.vm.props.extendOption},initOptions:function(){this.options.value={};var k=J({formData:{},submitBtn:{},resetBtn:{},globalEvent:{},globalData:{}},He(p)),P=this.isSub();P&&(k=this.mergeOptions(k,this.vm.setupState.parent.setupState.fc.options.value||{},!0)),k=this.mergeOptions(k,this.vm.props.option);var w=this.api();this.targetFormDriver("initOptions",k,{api:w,isSubForm:P}),this.updateOptions(k)},mergeOptions:function(k,P,w){return P=J({},P||{}),w&&["page","onSubmit","onReset","onCreated","onChange","onMounted","mounted","onReload","reload","formData","el","globalClass","style"].forEach(function(C){delete P[C]}),P.global&&(k.global=_s(k.global,P.global),delete P.global),this.$handle.$manager.mergeOptions([P],k),k},updateOptions:function(k){this.options.value=this.mergeOptions(this.options.value,k),this.$handle.$manager.updateOptions(this.options.value),this.bus.$emit("$loadData.$options")},api:function(){return this.$handle.api},render:function(){return this.$handle.render()},mounted:function(){this.$handle.mounted()},unmount:function(){var k=this;if(this.name)if(this.inFor){var P=Ue[this.name].indexOf(this);Ue[this.name].splice(P,1)}else delete Ue[this.name];s.forEach(function(w){k.bus.$off(w.name,w.callback)}),this.tmpData={},this.unwatch.forEach(function(w){return w()}),this.unwatch=[],this.$handle.reloadRule([])},updated:function(){var k=this;this.$handle.bindNextTick(function(){return k.bus.$emit("next-tick",k.$handle.api)})}});function G(R){te(R,{version:t.version,ui:t.ui,isMobile:m,extendApi:v,getData:y,setDataDriver:g,setData:d,removeData:E,refreshData:h,maker:c,component:re,directive:I,setModelField:A,setFormula:$,setDriver:_,register:Y,$vnode:Z,parser:U,use:H,factory:Ie,componentAlias:W,copyRule:Di,copyRules:Ri,mergeRule:tt,fetch:Li,$form:ne,parseFn:Je,parseJson:Si,toJson:Ft,useApp:F,getApi:B,on:M})}function L(R){te(R,{create:_e,install:function(P,w){p=J(J({},p),w||{});var C="_installedFormCreate_"+t.ui;if(P[C]!==!0){P[C]=!0;var x=function(X){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return _e(X,K)};G(x),P.config.globalProperties.$formCreate=x;var V=ne();P.component(V.name,V),a.forEach(function(j){ce(function(){return j(R,P)})})}}})}if(G(D),L(D),g("$cookie",al),g("$localStorage",sl),g("$sessionStorage",ll),S.use({fragment:"fcFragment"}),t.install&&_e.use(t),F(function(R,k){k.mixin({props:["formCreateInject"]})}),U(nl),t.inherit){var z=t.inherit;z.components&&te(e,z.components),z.parsers&&te(n,z.parsers),z.directives&&te(r,z.directives),z.modelFields&&te(i,z.modelFields),z.providers&&te(f,z.providers),z.useApps&&te(a,z.useApps),z.maker&&te(c,z.maker),z.loadData&&te(b,z.loadData),z.formulas&&te(O,z.formulas)}var q=ne();return ln(q,D),Object.defineProperties(q,{fetch:{get:function(){return D.fetch},set:function(k){D.fetch=k}}}),q.util=D,q}var or="hidden",hl={name:or,maker:Ee({},or,function(t,e){return cn(or)("",t,e)}),render:function(){return[]}},pl={name:"FcRow",render:function(e,n){return n.vNode.col({props:{span:24}},{default:function(){return[n.vNode.row(n.prop,e)]}})}},ml={name:"checkbox",mergeProp:function(e){var n=e.prop.props;be(n,"options")||(n.options=e.prop.options||[])}},gl={name:"radio",mergeProp:function(e){var n=e.prop.props;be(n,"options")||(n.options=e.prop.options||[])}},vl={name:"select",mergeProp:function(e){var n=e.prop.props;be(n,"options")||(n.options=e.prop.options||[])}},yl={name:"cascader",mergeProp:function(e){var n=e.prop.props;be(n,"options")||(n.options=e.prop.options||[])}},_l={name:"textarea",mergeProp:function(e){var n=e.prop.props;n.type="textarea"}},bl=[hl,pl,yl,ml,gl,vl,_l],Re="van",wl={button:Re+"-button",icon:Re+"-icon",slider:Re+"-slider",stepper:Re+"-stepper",inputNumber:Re+"-stepper",rate:Re+"-rate",uploader:"fc-uploader",upload:"fc-uploader",cell:Re+"-cell",timePicker:"fc-time-picker",datePicker:"fc-date-picker",switch:Re+"-switch",select:"fc-select",cascader:"fc-cascader",calendar:"fc-calendar",checkbox:"fc-checkbox",radio:"fc-radio",input:Re+"-field",textarea:Re+"-field",field:Re+"-field",formItem:Re+"-field",form:Re+"-form",col:Re+"-col",row:Re+"-row",group:"fc-group",array:"fc-group",object:"fc-sub-form",subForm:"fc-sub-form"};function $l(){return{form:{required:"auto",labelAlign:"right",inputAlign:"right"},row:{show:!0,gutter:0},submitBtn:{type:"primary",loading:!1,disabled:!1,block:!0,innerText:"",size:"small",show:!0,col:void 0,click:void 0},resetBtn:{type:"default",loading:!1,disabled:!1,block:!0,innerText:"",size:"small",show:!1,col:void 0,click:void 0}}}function Ki(t,e){if(!!be(t,e)&&N.String(t[e])){var n;t[e]=(n={},Ee(n,e,t[e]),Ee(n,"show",!0),n)}}function rt(t){return t===!1}function Sl(t,e){be(t,e)&&!N.Object(t[e])&&(t[e]={show:!!t[e]})}function Zi(t){var e=J({},t);return delete e.children,e}var Ol={validate:function(){var e=this.form();return e?e.validate():new Promise(function(n){return n()})},validateField:function(e){var n=this;return new Promise(function(r,i){var o=n.form();o?o.validate(e).then(r).catch(i):r()})},clearValidateState:function(e){var n=this.form();if(n)return n.resetValidation(e.id)},tidyOptions:function(e){return["submitBtn","resetBtn","row","info","wrap","col","title"].forEach(function(n){Sl(e,n)}),e},tidyRule:function(e){var n=e.prop;return Ki(n,"title"),Ki(n,"info"),n.validate&&n.validate.forEach(function(r){N.String(r.pattern)&&(r.pattern=new RegExp(r.pattern))}),n},mergeProp:function(e){var n=this,r={info:{icon:!0},title:{},col:{span:24},wrap:{}};["info","wrap","col","title"].forEach(function(i){e.prop[i]=pt([n.options[i]||{},e.prop[i]||{}],r[i])})},getDefaultOptions:function(){return $l()},adapterValidate:function(e,n){return e.trigger==="change"?e.trigger="onChange":e.trigger==="blur"&&(e.trigger="onBlur"),e.validator=function(r){return new Promise(function(i){var o=function(s){e.message=s,s?i(!1):i()};return n(r,o)})},e},update:function(){var e=this.options.form;this.rule={props:J({},e),on:{submit:function(r){r.preventDefault()}},style:e.style,type:"form"}},beforeRender:function(){var e=this.key,n=this.ref,r=this.options.form;te(this.rule,{key:e,ref:n,class:[r.className,r.class,"form-create-m",this.$handle.preview?"is-preview":""]})},render:function(e){var n=this;return e.slotLen()&&!this.$handle.preview&&e.setSlot(void 0,function(){return n.makeFormBtn()}),this.$r(this.rule,rt(this.options.row.show)?e.getSlots():[this.makeRow(e)])},makeWrap:function(e,n){var r=this,i=e.prop,o="".concat(this.key).concat(e.key),a=i.col,s=this.isTitle(i)&&i.wrap.title!==!1,l=this.rule.props.col,f=i.wrap.class;delete i.wrap.class,delete i.wrap.title;var c=rt(i.wrap.show)?n:this.$r(pt([i.wrap,{props:J(J({modelValue:e.rule.value,label:s?i.title.title:void 0},Zi(i.wrap||{})),{},{name:e.id,rules:e.injectValidate()}),class:this.$render.mergeClass(f||i.className,"fc-form-item"),key:"".concat(o,"fi"),ref:e.wrapRef,type:"formItem"}]),J({input:function(){return n}},s?{label:function(){return r.makeInfo(i,o,e)}}:{}));return rt(l)||rt(a.show)?c:this.makeCol(i,o,[c])},isTitle:function(e){if(this.options.form.title===!1)return!1;var n=e.title;return!(!n.title&&!n.native||rt(n.show))},makeInfo:function(e,n,r){var i,o,a,s,l=J({},e.title),f=J({},e.info),c=this.getSlot("title"),p=[c?c({title:(i=r.refRule)===null||i===void 0||(o=i.__$title)===null||o===void 0?void 0:o.value,rule:r.rule,options:this.options}):(a=r.refRule)===null||a===void 0||(s=a.__$title)===null||s===void 0?void 0:s.value],m=!rt(f.show)&&(f.info||f.native)&&!rt(f.icon);m&&p[f.align!=="left"?"unshift":"push"](this.$r({type:f.icon===!0?"icon-warning":f.icon,style:"width:1em;"}));var b=pt([l,{props:Zi(l),key:"".concat(n,"tit"),class:"fc-form-title",type:l.type||"span"}]);return m&&f.info&&!b.props.onClick&&(b.props.onClick=function(){var S,O;Xe.showNotify({type:"warning",message:(S=r.refRule)===null||S===void 0||(O=S.__$info)===null||O===void 0?void 0:O.value,duration:1e3})}),delete b.props.show,delete b.props.title,delete b.props.native,this.$r(b,p)},makeCol:function(e,n,r){var i=e.col;return this.$r({class:this.$render.mergeClass(i.class,"fc-form-col"),type:"col",props:i||{span:24},key:"".concat(n,"col")},r)},makeRow:function(e){var n=this.options.row||{};return this.$r({type:"row",props:n,class:this.$render.mergeClass(n.class,"fc-form-row"),key:"".concat(this.key,"row")},e)},makeFormBtn:function(){var e=[];if(rt(this.options.submitBtn.show)||e.push(this.makeSubmitBtn()),rt(this.options.resetBtn.show)||e.push(this.makeResetBtn()),!!e.length)return this.$r({type:"cell",class:"fc-form-cell fc-form-footer",key:"".concat(this.key,"fb")},e)},makeResetBtn:function(){var e=this,n=J({},this.options.resetBtn),r=n.innerText||this.$handle.api.t("reset")||"\u91CD\u7F6E";return delete n.innerText,delete n.click,delete n.col,delete n.show,this.$r({type:"button",props:n,class:"fc-reset-btn",style:{width:n.width},on:{click:function(){var o=e.$handle.api;e.options.resetBtn.click?e.options.resetBtn.click(o):o.resetFields()}},key:"".concat(this.key,"b2")},[r])},makeSubmitBtn:function(){var e=this,n=J({},this.options.submitBtn),r=n.innerText||this.$handle.api.t("submit")||"\u63D0\u4EA4";return delete n.innerText,delete n.click,delete n.col,delete n.show,this.$r({type:"button",props:n,class:"fc-submit-btn",style:{width:n.width},on:{click:function(){var o=e.$handle.api;e.options.submitBtn.click?e.options.submitBtn.click(o):o.submit().catch(function(){})}},key:"".concat(this.key,"b1")},[r])}};function xl(t,e){e===void 0&&(e={});var n=e.insertAt;if(!(!t||typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",n==="top"&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t))}}var Cl='.form-create-m{width:100%}.form-create-m .fc-none,.form-create-m.is-preview .fc-clock{display:none!important}.form-create-m .van-field:has(.van-field__value>.van-field__body>.van-field__control>.van-field):after{display:none}.form-create-m .van-field>.van-field__value>.van-field__body>.van-field__control>*>.van-field:after,.form-create-m .van-field>.van-field__value>.van-field__body>.van-field__control>.van-field:after{display:block;left:0;right:0}.form-create-m .fc-form-item>.van-field__value>.van-field__body>.van-field__control>.van-cell{padding:0}.form-create-m .fc-form-item .fc-form-item{--van-padding-md:0;padding-left:0;padding-right:0}.form-create-m>.van-row>.van-col--24:last-of-type>.van-cell:last-of-type:after{display:none}.form-create-m .fc-reset-btn{margin-top:12px}.form-create-m .fc-form-title{align-items:center;display:inline-flex}.form-create-m.is-preview .van-field__label--required:before{display:none}._fc-m-group{align-items:flex-end;display:flex;flex-direction:column;justify-content:center;min-height:38px;width:100%}._fc-m-group-disabled ._fc-m-group-add,._fc-m-group-disabled ._fc-m-group-btn{cursor:not-allowed}._fc-m-group-handle{background-color:#fff;border:1px dashed #d9d9d9;border-radius:15px;bottom:-15px;display:flex;flex-direction:row;padding:3px 8px;position:absolute;right:30px;transform:scale(1.1)}._fc-m-group-btn{cursor:pointer}._fc-m-group-idx{align-items:center;background:#eee;border-radius:15px;bottom:-15px;display:flex;font-weight:700;height:30px;justify-content:center;left:10px;position:absolute;width:30px}._fc-m-group-handle ._fc-m-group-btn+._fc-m-group-btn{margin-left:7px}._fc-m-group-container{border:1px dashed #d9d9d9;border-radius:5px;box-sizing:border-box;display:flex;flex-direction:column;margin-bottom:25px;padding:5px 5px 25px;position:relative;width:100%}._fc-m-group-arrow{height:20px;position:relative;width:20px}._fc-m-group-arrow:before{border-left:2px solid #999;border-top:2px solid #999;content:"";height:9px;left:5px;position:absolute;top:8px;transform:rotate(45deg);width:9px}._fc-m-group-arrow._fc-m-group-down{transform:rotate(180deg)}._fc-m-group-plus-minus{cursor:pointer;height:20px;position:relative;width:20px}._fc-m-group-plus-minus:after,._fc-m-group-plus-minus:before{background-color:#409eff;content:"";height:2px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:60%}._fc-m-group-plus-minus:before{transform:translate(-50%,-50%) rotate(90deg)}._fc-m-group-plus-minus._fc-m-group-minus:before{display:none}._fc-m-group-plus-minus._fc-m-group-minus:after{background-color:#f56c6c}._fc-m-group-add{border:1px solid rgba(64,158,255,.5);border-radius:15px;cursor:pointer;height:25px;transform:scale(1.1);width:25px}._fc-m-group-add._fc-m-group-plus-minus:after,._fc-m-group-add._fc-m-group-plus-minus:before{width:50%}._fc-m-group._fc-m-group-card{display:flex;flex-direction:column;gap:16px;width:100%}._fc-m-group._fc-m-group-card._fc-m-group-disabled ._fc-m-group-add,._fc-m-group._fc-m-group-card._fc-m-group-disabled ._fc-m-group-btn{cursor:not-allowed;opacity:.5}._fc-m-group._fc-m-group-card ._fc-m-group-container{background:#fff;border:1px solid #f0f0f0;border-radius:6px;display:flex;flex-direction:column;margin:0;overflow:hidden;padding:0;position:relative}._fc-m-group._fc-m-group-card ._fc-m-group-header{align-items:center;background:#fafafa;border-bottom:1px solid #f0f0f0;display:flex;justify-content:space-between;padding:16px 20px 12px}._fc-m-group._fc-m-group-card ._fc-m-group-idx{align-items:center;background:#f0f0f0;border:1px solid #e0e0e0;border-radius:6px;color:#666;display:flex;flex-shrink:0;font-size:12px;font-weight:500;height:24px;justify-content:center;margin-right:12px;position:static;width:24px}._fc-m-group._fc-m-group-card ._fc-m-group-title{color:rgba(0,0,0,.85);flex:1;font-size:14px;font-weight:500;line-height:1.5715;text-align:left}._fc-m-group._fc-m-group-card ._fc-m-group-handle{align-items:center;background-color:transparent;border:none;border-radius:0;bottom:auto;display:flex;flex-direction:row;flex-shrink:0;gap:4px;margin-left:12px;padding:0;position:static;right:auto;transform:none}._fc-m-group._fc-m-group-card ._fc-m-group-btn{align-items:center;background:#fff;border:1px solid #d9d9d9;border-radius:4px;color:rgba(0,0,0,.45);cursor:pointer;display:flex;height:24px;justify-content:center;position:relative;width:24px}._fc-m-group._fc-m-group-card ._fc-m-group-btn:hover{background:#f0f8ff;border-color:#1890ff;color:#1890ff}._fc-m-group._fc-m-group-card ._fc-m-group-btn:active{border-color:#096dd9;color:#096dd9}._fc-m-group._fc-m-group-card ._fc-m-group-arrow{position:relative}._fc-m-group._fc-m-group-card ._fc-m-group-arrow:before{border-left:1px solid;border-top:1px solid;content:"";height:5px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%) rotate(45deg);width:5px}._fc-m-group._fc-m-group-card ._fc-m-group-arrow._fc-m-group-down{transform:rotate(180deg)}._fc-m-group._fc-m-group-card ._fc-m-group-sort{align-items:center;display:flex;flex-direction:column;height:24px;justify-content:center;position:relative}._fc-m-group._fc-m-group-card ._fc-m-group-sort:after,._fc-m-group._fc-m-group-card ._fc-m-group-sort:before{border-left:1px solid;border-top:1px solid;content:"";height:4px;left:50%;position:absolute;transform:translateX(-50%);width:4px}._fc-m-group._fc-m-group-card ._fc-m-group-sort:before{top:6px;transform:translateX(-50%) rotate(45deg)}._fc-m-group._fc-m-group-card ._fc-m-group-sort:after{bottom:6px;transform:translateX(-50%) rotate(225deg)}._fc-m-group._fc-m-group-card ._fc-m-group-sort-down,._fc-m-group._fc-m-group-card ._fc-m-group-sort-up{cursor:pointer;height:12px;left:0;position:absolute;right:0;z-index:1}._fc-m-group._fc-m-group-card ._fc-m-group-sort-up{top:0}._fc-m-group._fc-m-group-card ._fc-m-group-sort-down{bottom:0}._fc-m-group._fc-m-group-card ._fc-m-group-sort-down:hover,._fc-m-group._fc-m-group-card ._fc-m-group-sort-up:hover{background:rgba(24,144,255,.1)}._fc-m-group._fc-m-group-card ._fc-m-group-plus-minus{background:#409eff;border-color:#409eff;border-radius:4px;color:#fff;height:24px;position:relative;width:24px}._fc-m-group._fc-m-group-card ._fc-m-group-plus-minus:hover{background:#66b1ff;border-color:#66b1ff;color:#fff}._fc-m-group._fc-m-group-card ._fc-m-group-plus-minus:after,._fc-m-group._fc-m-group-card ._fc-m-group-plus-minus:before{background-color:currentColor;content:"";height:1px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:8px}._fc-m-group._fc-m-group-card ._fc-m-group-plus-minus:before{transform:translate(-50%,-50%) rotate(90deg)}._fc-m-group._fc-m-group-card ._fc-m-group-plus-minus._fc-m-group-minus{background:#f56c6c;border-color:#f56c6c}._fc-m-group._fc-m-group-card ._fc-m-group-plus-minus._fc-m-group-minus:hover{background:#f78989;border-color:#f78989}._fc-m-group._fc-m-group-card ._fc-m-group-plus-minus._fc-m-group-minus:before{display:none}._fc-m-group._fc-m-group-card ._fc-m-group-content{padding:20px}._fc-m-group._fc-m-group-card ._fc-m-group-add{align-items:center;background:#fff;border:1px solid #d9d9d9;border-radius:4px;color:rgba(0,0,0,.45);cursor:pointer;display:flex;height:24px;justify-content:center;position:relative;transform:none;width:24px}._fc-m-group._fc-m-group-card ._fc-m-group-add:hover{background:#f0f8ff;border-color:#409eff;color:#409eff}._fc-m-group._fc-m-group-card ._fc-m-group-add._fc-m-group-plus-minus{background:#409eff;border-color:#409eff;color:#fff;height:24px;width:24px}._fc-m-group._fc-m-group-card ._fc-m-group-add._fc-m-group-plus-minus:hover{background:#66b1ff;border-color:#66b1ff;color:#fff}._fc-m-group._fc-m-group-card ._fc-m-group-add._fc-m-group-plus-minus:after,._fc-m-group._fc-m-group-card ._fc-m-group-add._fc-m-group-plus-minus:before{background-color:currentColor;content:"";height:1px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:8px}._fc-m-group._fc-m-group-card ._fc-m-group-add._fc-m-group-plus-minus:before{transform:translate(-50%,-50%) rotate(90deg)}._fc-m-group._fc-m-group-card ._fc-m-group-empty{color:rgba(0,0,0,.45);font-size:14px;padding:40px 20px;text-align:center}@media (max-width:768px){._fc-m-group._fc-m-group-card ._fc-m-group-container{border-left:none;border-radius:0;border-right:none;margin:0 -8px}._fc-m-group._fc-m-group-card ._fc-m-group-header{padding:12px 16px 8px}._fc-m-group._fc-m-group-card ._fc-m-group-content{padding:16px}._fc-m-group._fc-m-group-card ._fc-m-group-handle{gap:2px}._fc-m-group._fc-m-group-card ._fc-m-group-btn{height:22px;width:22px}}@media (prefers-color-scheme:dark){._fc-m-group._fc-m-group-card ._fc-m-group-container{background:#141414;border-color:#303030}._fc-m-group._fc-m-group-card ._fc-m-group-container:hover{border-color:#434343}._fc-m-group._fc-m-group-card ._fc-m-group-header{background:#1f1f1f;border-bottom-color:#303030}._fc-m-group._fc-m-group-card ._fc-m-group-title{color:hsla(0,0%,100%,.85)}._fc-m-group._fc-m-group-card ._fc-m-group-btn{background:#1f1f1f;border-color:#434343;color:hsla(0,0%,100%,.45)}._fc-m-group._fc-m-group-card ._fc-m-group-btn:hover{background:#111b26;border-color:#177ddc;color:#177ddc}._fc-m-group._fc-m-group-card ._fc-m-group-content{background:#141414}._fc-m-group._fc-m-group-card ._fc-m-group-add{background:#1f1f1f;border-color:#434343;color:hsla(0,0%,100%,.45)}._fc-m-group._fc-m-group-card ._fc-m-group-add:hover{background:#111b26;border-color:#177ddc;color:#177ddc}}';xl(Cl);function Qi(t,e){return N.Boolean(t)?t={show:t}:!N.Undef(t)&&!N.Object(t)&&(t={show:e}),t}function El(t,e){return{formEl:function(){return e.$manager.form()},wrapEl:function(r){var i=e.getFieldCtx(r);if(!!i)return e.vm.refs[i.wrapRef]},validate:function(r){return new Promise(function(i,o){var a=t.children,s=[e.$manager.validate()];a.filter(function(l){return!l.isScope}).forEach(function(l){s.push(l.validate())}),Promise.all(s).then(function(){i(!0),r&&r(!0)}).catch(function(l){o(l),r&&r(l),e.vm.emit("validate-fail",l,{api:t}),e.emitEvent("validate-fail",l,{api:t})})})},validateField:function(r,i){return new Promise(function(o,a){var s=e.getFieldCtx(r);if(!!s){var l=e.subForm[s.id],f=[e.$manager.validateField(s.id)];dt(l).filter(function(c){return!c.isScope}).forEach(function(c){f.push(c.validate())}),Promise.all(f).then(function(){o(null),i&&i(null)}).catch(function(c){a(c),i&&i(c),e.vm.emit("validate-field-fail",c,{field:r,api:t})})}})},clearValidateState:function(r){var i=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;t.helper.tidyFields(r).forEach(function(a){o&&i.clearSubValidateState(a),e.getCtxs(a).forEach(function(s){e.$manager.clearValidateState(s)})})},clearSubValidateState:function(r){t.helper.tidyFields(r).forEach(function(i){e.getCtxs(i).forEach(function(o){var a=e.subForm[o.id];!a||(Array.isArray(a)?a.forEach(function(s){s.clearValidateState()}):a&&a.clearValidateState())})})},btn:{loading:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;t.submitBtnProps({loading:!!r})},disabled:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;t.submitBtnProps({disabled:!!r})},show:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;t.submitBtnProps({show:!!r})}},resetBtn:{loading:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;t.resetBtnProps({loading:!!r})},disabled:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;t.resetBtnProps({disabled:!!r})},show:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;t.resetBtnProps({show:!!r})}},submitBtnProps:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=Qi(e.options.submitBtn,!0);te(i,r),e.options.submitBtn=i,t.refreshOptions()},resetBtnProps:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=Qi(e.options.resetBtn,!1);te(i,r),e.options.resetBtn=i,t.refreshOptions()},submit:function(r,i){return new Promise(function(o,a){var s=e.options.validateOnSubmit===!1?Promise.resolve():t.validate();s.then(function(){var l=t.formData();e.beforeSubmit(l).then(function(){N.Function(r)&&ce(function(){return r(l,t)}),N.Function(e.options.onSubmit)&&ce(function(){return e.options.onSubmit(l,t)}),e.vm.emit("submit",l,t),o(l)}).catch(function(f){})}).catch(function(){for(var l=arguments.length,f=new Array(l),c=0;c<l;c++)f[c]=arguments[c];N.Function(i)&&ce(function(){return i.apply(void 0,[t].concat(f))}),a.apply(void 0,f)})})}}}var ar={name:"required",load:function(e,n,r){var i=kl(e.getValue());if(i.required===!1)e.clearProp(),r.clearValidateState([n.field]);else{var o,a,s=J({required:!0,validator:function(p){return!N.empty(p)},trigger:["onChange","onSubmit"]},i),l=(o=n.__fc__.refRule)===null||o===void 0||(a=o.__$title)===null||a===void 0?void 0:a.value;if(!s.message)s.message=r.t("required",{title:l})||l+(r.getLocale()==="en"?" is required":"\u4E0D\u80FD\u4E3A\u7A7A");else{var f=s.message.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);f&&(s.message=r.t(f[1],{title:l}))}e.getProp().validate=[s]}r.sync(n)},watch:function(){ar.load.apply(ar,arguments)}};function kl(t){return N.Boolean(t)?{required:t}:N.String(t)?{message:t}:N.Undef(t)?{required:!1}:N.Function(t)?{validator:t}:N.Object(t)?t:{}}function Al(t){t.componentAlias(wl),vs.forEach(function(e){t.component(e.name,e)}),t.register(ar),bl.forEach(function(e){t.parser(e)}),Xe.Field.props&&(Xe.Field.props.modelValue={type:[String,Number,Array,Object,Boolean,Function],default:""})}function Dl(){return Ji({ui:"vant",version:"3.2.31",manager:Ol,extendApi:El,install:Al,isMobile:!0,attrs:{normal:["col","wrap"],key:["title","info"]}})}var me=Dl();typeof window<"u"&&(window.formCreateMobile=me),me.maker;/*!
|
|
22
|
+
* @form-create/component-elm-select v3.2.31
|
|
23
|
+
* (c) 2018-2025 xaboy
|
|
24
|
+
* Github https://github.com/xaboy/form-create with select
|
|
25
|
+
* Released under the MIT License.
|
|
26
|
+
*/function eo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Rl(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?eo(Object(n),!0).forEach(function(r){Pl(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):eo(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function dn(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?dn=function(e){return typeof e}:dn=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dn(t)}function Pl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Vl(t,e){return Object.keys(t).reduce(function(n,r){return(!e||e.indexOf(r)===-1)&&(n[r]=t[r]),n},{})}var hn={type:function(e,n){return Object.prototype.toString.call(e)==="[object "+n+"]"},Undef:function(e){return e==null},Element:function(e){return dn(e)==="object"&&e!==null&&e.nodeType===1&&!hn.Object(e)},trueArray:function(e){return Array.isArray(e)&&e.length>0},Function:function(e){var n=this.getType(e);return n==="Function"||n==="AsyncFunction"},getType:function(e){var n=Object.prototype.toString.call(e);return/^\[object (.*)\]$/.exec(n)[1]},empty:function(e){return e==null||Array.isArray(e)&&Array.isArray(e)&&!e.length?!0:typeof e=="string"&&!e}};["Date","Object","String","Boolean","Array","Number"].forEach(function(t){hn[t]=function(e){return hn.type(e,t)}});function Tl(t,e){return{}.hasOwnProperty.call(t,e)}var Ml="fcSelect",jl=u.defineComponent({name:Ml,inheritAttrs:!1,props:{formCreateInject:Object,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},type:String},emits:["update:modelValue","fc.el"],setup:function(e){var n=u.toRef(e.formCreateInject,"options",[]),r=u.toRef(e,"modelValue"),i=function(){return Array.isArray(n.value)?n.value:[]};return{options:i,value:r}},render:function(){var e=this,n,r,i=function(l,f){return u.createVNode(u.resolveComponent("ElOption"),u.mergeProps(l,{key:""+f+"-"+l.value}),null)},o=function(l,f){return u.createVNode(u.resolveComponent("ElOptionGroup"),{label:l.label,key:""+f+"-"+l.label},{default:function(){return[hn.trueArray(l.options)&&l.options.map(function(p,m){return i(p,m)})]}})},a=this.options();return u.createVNode(u.resolveComponent("ElSelect"),u.mergeProps(this.$attrs,{modelValue:this.value,"onUpdate:modelValue":function(l){return e.$emit("update:modelValue",l)},ref:"el"}),Rl({default:function(){return[a.map(function(l,f){return Tl(l||"","options")?o(l,f):i(l,f)}),(n=(r=e.$slots).default)===null||n===void 0?void 0:n.call(r)]}},Vl(this.$slots,["default"])))},mounted:function(){this.$emit("fc.el",this.$refs.el)}});/*!
|
|
27
|
+
* @form-create/component-elm-tree v3.2.31
|
|
28
|
+
* (c) 2018-2025 xaboy
|
|
29
|
+
* Github https://github.com/xaboy/form-create with tree
|
|
30
|
+
* Released under the MIT License.
|
|
31
|
+
*/function Il(t){return Array.isArray(t)?t:[null,void 0,""].indexOf(t)>-1?[]:[t]}var Fl="fcTree",Bl=u.defineComponent({name:Fl,inheritAttrs:!1,formCreateParser:{mergeProp:function(e){var n=e.prop.props;n.nodeKey||(n.nodeKey="id"),n.props||(n.props={label:"title"})}},props:{type:String,modelValue:{type:[Array,String,Number],default:function(){return[]}}},emits:["update:modelValue","fc.el"],watch:{modelValue:function(){this.setValue()}},methods:{updateValue:function(){if(!!this.$refs.tree){var e;this.type==="selected"?e=this.$refs.tree.getCurrentKey():e=this.$refs.tree.getCheckedKeys(),this.$emit("update:modelValue",e)}},setValue:function(){if(!!this.$refs.tree){var e=this.type;e==="selected"?this.$refs.tree.setCurrentKey(this.modelValue):this.$refs.tree.setCheckedKeys(Il(this.modelValue))}}},render:function(){return u.createVNode(u.resolveComponent("ElTree"),u.mergeProps(this.$attrs,{ref:"tree",onCheck:this.updateValue,onNodeClick:this.updateValue}),this.$slots)},mounted:function(){this.setValue(),this.$emit("fc.el",this.$refs.tree)}});/*!
|
|
32
|
+
* @form-create/component-elm-upload v3.2.31
|
|
33
|
+
* (c) 2018-2025 xaboy
|
|
34
|
+
* Github https://github.com/xaboy/form-create with upload
|
|
35
|
+
* Released under the MIT License.
|
|
36
|
+
*/function to(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function sr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?to(Object(n),!0).forEach(function(r){Nl(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):to(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function pn(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?pn=function(e){return typeof e}:pn=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pn(t)}function Nl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function mn(t){return Array.isArray(t)?t:[null,void 0,""].indexOf(t)>-1?[]:[t]}function Ll(t,e){return Object.keys(t).reduce(function(n,r){return(!e||e.indexOf(r)===-1)&&(n[r]=t[r]),n},{})}function zl(t,e){e===void 0&&(e={});var n=e.insertAt;if(!(!t||typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",n==="top"&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t))}}var Ul="._fc-upload{width:100%}._fc-exceed .el-upload{display:none}.el-upload-list.is-disabled .el-upload{cursor:not-allowed!important}";zl(Ul);var no={name:"IconUpload"},ql={class:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Gl=u.createElementVNode("path",{fill:"currentColor",d:"M160 832h704a32 32 0 110 64H160a32 32 0 110-64zm384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248L544 253.696z"},null,-1),Hl=[Gl];function Wl(t,e,n,r,i,o){return u.openBlock(),u.createElementBlock("svg",ql,Hl)}no.render=Wl;function ro(t,e){return pn(t)==="object"?t:{url:t,is_string:!0,name:Yl(t),uid:e}}function io(t){return sr(sr({},t),{},{file:t,value:t})}function Yl(t){return(""+t).split("/").pop()}var Xl="fcUpload",Jl=u.defineComponent({name:Xl,inheritAttrs:!1,formCreateParser:{toFormValue:function(e){return mn(e)},toValue:function(e,n){return n.prop.props.limit===1?e[0]||"":e}},props:{previewMask:void 0,onPreview:Function,httpRequest:Function,modalTitle:String,listType:String,uploadText:String,formCreateInject:Object,modelValue:[Array,String,Object]},emits:["update:modelValue","change","remove","fc.el"],data:function(){return{previewVisible:!1,previewImage:"",fileList:[]}},created:function(){this.fileList=mn(this.modelValue).map(ro).map(io)},watch:{modelValue:function(e){this.fileList=mn(e).map(ro).map(io)}},methods:{handlePreview:function(e){this.onPreview?this.onPreview.apply(this,arguments):this.listType==="text"?window.open(e.url):(this.previewImage=e.url,this.previewVisible=!0)},update:function(e){var n=e.map(function(r){return r.is_string?r.url:r.value||r.url}).filter(function(r){return r!==void 0});this.$emit("update:modelValue",n)},handleCancel:function(){this.previewVisible=!1},handleChange:function(e,n){this.$emit.apply(this,["change"].concat(Array.prototype.slice.call(arguments))),e.status==="success"&&this.update(n)},handleRemove:function(e,n){this.$emit.apply(this,["remove"].concat(Array.prototype.slice.call(arguments))),this.update(n)},doHttpRequest:function(e){if(this.httpRequest)return this.httpRequest(e);e.source="upload",this.formCreateInject.api.fetch(e)}},render:function(){var e,n,r=this,i=mn(this.modelValue).length;return u.createVNode("div",{class:"_fc-upload"},[u.createVNode(u.resolveComponent("ElUpload"),u.mergeProps({key:i},this.$attrs,{listType:this.listType||"picture-card",class:{"_fc-exceed":this.$attrs.limit?this.$attrs.limit<=i:!1},onPreview:this.handlePreview,onChange:this.handleChange,onRemove:this.handleRemove,httpRequest:this.doHttpRequest,fileList:this.fileList,ref:"upload"}),sr({default:function(){return[((e=(n=r.$slots).default)===null||e===void 0?void 0:e.call(n))||(["text","picture"].indexOf(r.listType)===-1?u.createVNode(u.resolveComponent("ElIcon"),null,{default:function(){return[u.createVNode(no,null,null)]}}):u.createVNode(u.resolveComponent("ElButton"),{type:"primary"},{default:function(){return[r.formCreateInject.t("clickToUpload")||r.uploadText||"\u70B9\u51FB\u4E0A\u4F20"]}}))]}},Ll(this.$slots,["default"]))),u.createVNode(u.resolveComponent("ElDialog"),{appendToBody:!0,modal:this.previewMask,title:this.modalTitle,modelValue:this.previewVisible,onClose:this.handleCancel},{default:function(){return[u.createVNode("img",{style:"width: 100%",src:r.previewImage},null)]}})])},mounted:function(){this.$emit("fc.el",this.$refs.upload)}});const Be={type(t,e){return Object.prototype.toString.call(t)==="[object "+e+"]"},Undef(t){return t==null},Element(t){return typeof t=="object"&&t!==null&&t.nodeType===1&&!Be.Object(t)},trueArray(t){return Array.isArray(t)&&t.length>0},Function(t){const e=this.getType(t);return e==="Function"||e==="AsyncFunction"},getType(t){const e=Object.prototype.toString.call(t);return/^\[object (.*)\]$/.exec(e)[1]},empty(t){return t==null||Array.isArray(t)&&Array.isArray(t)&&!t.length?!0:typeof t=="string"&&!t}};["Date","Object","String","Boolean","Array","Number"].forEach(t=>{Be[t]=function(e){return Be.type(e,t)}});function Kl(t,e){return{}.hasOwnProperty.call(t,e)}var oo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Zl(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ao={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(oo,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",a="second",s="minute",l="hour",f="day",c="week",p="month",m="quarter",b="year",S="date",O="Invalid Date",D=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,B=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,F={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(A){var $=["th","st","nd","rd"],_=A%100;return"["+A+($[(_-20)%10]||$[_]||$[0])+"]"}},I=function(A,$,_){var h=String(A);return!h||h.length>=$?A:""+Array($+1-h.length).join(_)+A},Y={s:I,z:function(A){var $=-A.utcOffset(),_=Math.abs($),h=Math.floor(_/60),d=_%60;return($<=0?"+":"-")+I(h,2,"0")+":"+I(d,2,"0")},m:function A($,_){if($.date()<_.date())return-A(_,$);var h=12*(_.year()-$.year())+(_.month()-$.month()),d=$.clone().add(h,p),g=_-d<0,y=$.clone().add(h+(g?-1:1),p);return+(-(h+(_-d)/(g?d-y:y-d))||0)},a:function(A){return A<0?Math.ceil(A)||0:Math.floor(A)},p:function(A){return{M:p,y:b,w:c,d:f,D:S,h:l,m:s,s:a,ms:o,Q:m}[A]||String(A||"").toLowerCase().replace(/s$/,"")},u:function(A){return A===void 0}},W="en",U={};U[W]=F;var re="$isDayjsObject",ne=function(A){return A instanceof _e||!(!A||!A[re])},oe=function A($,_,h){var d;if(!$)return W;if(typeof $=="string"){var g=$.toLowerCase();U[g]&&(d=g),_&&(U[g]=_,d=g);var y=$.split("-");if(!d&&y.length>1)return A(y[0])}else{var v=$.name;U[v]=$,d=v}return!h&&d&&(W=d),d||!h&&W},Z=function(A,$){if(ne(A))return A.clone();var _=typeof $=="object"?$:{};return _.date=A,_.args=arguments,new _e(_)},H=Y;H.l=oe,H.i=ne,H.w=function(A,$){return Z(A,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var _e=function(){function A(_){this.$L=oe(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[re]=!0}var $=A.prototype;return $.parse=function(_){this.$d=function(h){var d=h.date,g=h.utc;if(d===null)return new Date(NaN);if(H.u(d))return new Date;if(d instanceof Date)return new Date(d);if(typeof d=="string"&&!/Z$/i.test(d)){var y=d.match(D);if(y){var v=y[2]-1||0,E=(y[7]||"0").substring(0,3);return g?new Date(Date.UTC(y[1],v,y[3]||1,y[4]||0,y[5]||0,y[6]||0,E)):new Date(y[1],v,y[3]||1,y[4]||0,y[5]||0,y[6]||0,E)}}return new Date(d)}(_),this.init()},$.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},$.$utils=function(){return H},$.isValid=function(){return this.$d.toString()!==O},$.isSame=function(_,h){var d=Z(_);return this.startOf(h)<=d&&d<=this.endOf(h)},$.isAfter=function(_,h){return Z(_)<this.startOf(h)},$.isBefore=function(_,h){return this.endOf(h)<Z(_)},$.$g=function(_,h,d){return H.u(_)?this[h]:this.set(d,_)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(_,h){var d=this,g=!!H.u(h)||h,y=H.p(_),v=function(R,k){var P=H.w(d.$u?Date.UTC(d.$y,k,R):new Date(d.$y,k,R),d);return g?P:P.endOf(f)},E=function(R,k){return H.w(d.toDate()[R].apply(d.toDate("s"),(g?[0,0,0,0]:[23,59,59,999]).slice(k)),d)},M=this.$W,T=this.$M,G=this.$D,L="set"+(this.$u?"UTC":"");switch(y){case b:return g?v(1,0):v(31,11);case p:return g?v(1,T):v(0,T+1);case c:var z=this.$locale().weekStart||0,q=(M<z?M+7:M)-z;return v(g?G-q:G+(6-q),T);case f:case S:return E(L+"Hours",0);case l:return E(L+"Minutes",1);case s:return E(L+"Seconds",2);case a:return E(L+"Milliseconds",3);default:return this.clone()}},$.endOf=function(_){return this.startOf(_,!1)},$.$set=function(_,h){var d,g=H.p(_),y="set"+(this.$u?"UTC":""),v=(d={},d[f]=y+"Date",d[S]=y+"Date",d[p]=y+"Month",d[b]=y+"FullYear",d[l]=y+"Hours",d[s]=y+"Minutes",d[a]=y+"Seconds",d[o]=y+"Milliseconds",d)[g],E=g===f?this.$D+(h-this.$W):h;if(g===p||g===b){var M=this.clone().set(S,1);M.$d[v](E),M.init(),this.$d=M.set(S,Math.min(this.$D,M.daysInMonth())).$d}else v&&this.$d[v](E);return this.init(),this},$.set=function(_,h){return this.clone().$set(_,h)},$.get=function(_){return this[H.p(_)]()},$.add=function(_,h){var d,g=this;_=Number(_);var y=H.p(h),v=function(T){var G=Z(g);return H.w(G.date(G.date()+Math.round(T*_)),g)};if(y===p)return this.set(p,this.$M+_);if(y===b)return this.set(b,this.$y+_);if(y===f)return v(1);if(y===c)return v(7);var E=(d={},d[s]=r,d[l]=i,d[a]=n,d)[y]||1,M=this.$d.getTime()+_*E;return H.w(M,this)},$.subtract=function(_,h){return this.add(-1*_,h)},$.format=function(_){var h=this,d=this.$locale();if(!this.isValid())return d.invalidDate||O;var g=_||"YYYY-MM-DDTHH:mm:ssZ",y=H.z(this),v=this.$H,E=this.$m,M=this.$M,T=d.weekdays,G=d.months,L=d.meridiem,z=function(k,P,w,C){return k&&(k[P]||k(h,g))||w[P].slice(0,C)},q=function(k){return H.s(v%12||12,k,"0")},R=L||function(k,P,w){var C=k<12?"AM":"PM";return w?C.toLowerCase():C};return g.replace(B,function(k,P){return P||function(w){switch(w){case"YY":return String(h.$y).slice(-2);case"YYYY":return H.s(h.$y,4,"0");case"M":return M+1;case"MM":return H.s(M+1,2,"0");case"MMM":return z(d.monthsShort,M,G,3);case"MMMM":return z(G,M);case"D":return h.$D;case"DD":return H.s(h.$D,2,"0");case"d":return String(h.$W);case"dd":return z(d.weekdaysMin,h.$W,T,2);case"ddd":return z(d.weekdaysShort,h.$W,T,3);case"dddd":return T[h.$W];case"H":return String(v);case"HH":return H.s(v,2,"0");case"h":return q(1);case"hh":return q(2);case"a":return R(v,E,!0);case"A":return R(v,E,!1);case"m":return String(E);case"mm":return H.s(E,2,"0");case"s":return String(h.$s);case"ss":return H.s(h.$s,2,"0");case"SSS":return H.s(h.$ms,3,"0");case"Z":return y}return null}(k)||y.replace(":","")})},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(_,h,d){var g,y=this,v=H.p(h),E=Z(_),M=(E.utcOffset()-this.utcOffset())*r,T=this-E,G=function(){return H.m(y,E)};switch(v){case b:g=G()/12;break;case p:g=G();break;case m:g=G()/3;break;case c:g=(T-M)/6048e5;break;case f:g=(T-M)/864e5;break;case l:g=T/i;break;case s:g=T/r;break;case a:g=T/n;break;default:g=T}return d?g:H.a(g)},$.daysInMonth=function(){return this.endOf(p).$D},$.$locale=function(){return U[this.$L]},$.locale=function(_,h){if(!_)return this.$L;var d=this.clone(),g=oe(_,h,!0);return g&&(d.$L=g),d},$.clone=function(){return H.w(this.$d,this)},$.toDate=function(){return new Date(this.valueOf())},$.toJSON=function(){return this.isValid()?this.toISOString():null},$.toISOString=function(){return this.$d.toISOString()},$.toString=function(){return this.$d.toUTCString()},A}(),Ie=_e.prototype;return Z.prototype=Ie,[["$ms",o],["$s",a],["$m",s],["$H",l],["$W",f],["$M",p],["$y",b],["$D",S]].forEach(function(A){Ie[A[1]]=function($){return this.$g($,A[0],A[1])}}),Z.extend=function(A,$){return A.$i||(A($,_e,Z),A.$i=!0),Z},Z.locale=oe,Z.isDayjs=ne,Z.unix=function(A){return Z(1e3*A)},Z.en=U[W],Z.Ls=U,Z.p={},Z})})(ao);const lr=ao.exports;function so(t,e,n){e=(e||"").split(".");let r=0,i=e.length;for(;t!=null&&r<i;)t=t[e[r++]];return r&&r===i&&t!==void 0?t:n}const St={Add:(t,e)=>{let n,r,i;try{n=t.toString().split(".")[1].length}catch{n=0}try{r=e.toString().split(".")[1].length}catch{r=0}return i=Math.pow(10,Math.max(n,r)),(t*i+e*i)/i},Sub:(t,e)=>{let n,r,i;try{n=t.toString().split(".")[1].length}catch{n=0}try{r=e.toString().split(".")[1].length}catch{r=0}i=Math.pow(10,Math.max(n,r));let o=n>=r?n:r;return Number(((t*i-e*i)/i).toFixed(o))},Mul:(t,e)=>{let n=0,r=t.toString(),i=e.toString();try{n+=r.split(".")[1].length}catch{}try{n+=i.split(".")[1].length}catch{}return Number(r.replace(".",""))*Number(i.replace(".",""))/Math.pow(10,n)},Div:(t,e)=>{let n=0,r=0;try{n=t.toString().split(".")[1].length}catch{}try{r=e.toString().split(".")[1].length}catch{}let i=Number(t.toString().replace(".","")),o=Number(e.toString().replace(".",""));return i/o*Math.pow(10,r-n)}},Ql="YYYY-MM-DD HH:mm:ss",ut=(t,e)=>t==null?e:t,xe={ADD:function(t,e){return St.Add(ut(t,"0"),ut(e,"0"))},SUB:function(t,e){return St.Sub(ut(t,"0"),ut(e,"0"))},MUL:function(t,e){return St.Mul(ut(t,"0"),ut(e,"0"))},DIV:function(t,e){return St.Div(ut(t,"0"),ut(e,"0"))},SUM:function(...t){return(t||[]).reduce((e,n)=>St.Add(e,Array.isArray(n)?xe.SUM(...n):n||0),0)},MAX:function(...t){const e=Array.isArray(t[0])?t[0]:t;return Math.max(...e.map(n=>parseFloat(n)).filter(n=>!isNaN(n)))},MIN:function(...t){const e=Array.isArray(t[0])?t[0]:t;return Math.min(...e.map(n=>parseFloat(n)).filter(n=>!isNaN(n)))},ABS:function(t){return parseFloat(Math.abs(t))||0},AVG:function(...t){const e=Array.isArray(t[0])?t[0]:t;return e.length?St.Div(xe.SUM(e),e.length):0},POWER:function(t,e){return Math.pow(parseFloat(t),parseFloat(e))},RAND:function(){return Math.random()},CEIL:function(t){return Math.ceil(parseFloat(t))||0},FLOOR:function(t){return Math.floor(parseFloat(t)||0)},FIXED:function(t,e){const n=Math.pow(10,e||0);return(Math.floor(parseFloat(t)*n)/n).toFixed(e||0)},ISNUMBER:function(t){return t===""||t===null?!1:!isNaN(Number(t))},PI:function(){return Number(Math.PI)},ROUND:function(t,e){return t=parseFloat(t),isNaN(t)?0:parseFloat(t.toFixed(parseFloat(e)||0))},SQRT:function(t){return Math.sqrt(parseFloat(t))||0},TONUMBER:function(t){return parseFloat(t)||0},MODIFYDATE:function(t,e,n,r){if(!t)return null;let i=lr(t);return e>0?i=i.add(e,n):e<0&&(i=i.subtract(-1*e,n)),i.format(r||Ql)},ADDYEAR:function(t,e,n){return xe.MODIFYDATE(t,Math.max(e,0),"y",n)},ADDMONTH:function(t,e,n){return xe.MODIFYDATE(t,Math.max(e,0),"M",n)},ADDDAY:function(t,e,n){return xe.MODIFYDATE(t,Math.max(e,0),"d",n)},ADDHOUR:function(t,e,n){return xe.MODIFYDATE(t,Math.max(e,0),"h",n)},ADDMINUTE:function(t,e,n){return xe.MODIFYDATE(t,Math.max(e,0),"m",n)},ADDSECOND:function(t,e,n){return xe.MODIFYDATE(t,Math.max(e,0),"s",n)},ADDWEEK:function(t,e,n){return xe.MODIFYDATE(t,Math.max(e,0),"w",n)},SUBYEAR:function(t,e,n){return e=Math.max(e,0),xe.MODIFYDATE(t,e>0?-1*e:0,"y",n)},SUBMONTH:function(t,e,n){return e=Math.max(e,0),xe.MODIFYDATE(t,e>0?-1*e:0,"M",n)},SUBDAY:function(t,e,n){return e=Math.max(e,0),xe.MODIFYDATE(t,e>0?-1*e:0,"d",n)},SUBHOUR:function(t,e,n){return e=Math.max(e,0),xe.MODIFYDATE(t,e>0?-1*e:0,"h",n)},SUBMINUTE:function(t,e,n){return e=Math.max(e,0),xe.MODIFYDATE(t,e>0?-1*e:0,"m",n)},SUBSECOND:function(t,e,n){return e=Math.max(e,0),xe.MODIFYDATE(t,e>0?-1*e:0,"s",n)},SUBWEEK:function(t,e,n){return e=Math.max(e,0),xe.MODIFYDATE(t,e>0?-1*e:0,"w",n)},NOW:function(){const t=new Date,e=t.getFullYear(),n=("0"+(t.getMonth()+1)).slice(-2),r=("0"+t.getDate()).slice(-2),i=("0"+t.getHours()).slice(-2),o=("0"+t.getMinutes()).slice(-2),a=("0"+t.getSeconds()).slice(-2);return e+"-"+n+"-"+r+" "+i+":"+o+":"+a},TODAY:function(){const t=new Date,e=t.getFullYear(),n=("0"+(t.getMonth()+1)).slice(-2),r=("0"+t.getDate()).slice(-2);return e+"-"+n+"-"+r},YEAR:function(t){return t?new Date(t).getFullYear():null},MONTH:function(t){return t?new Date(t).getMonth()+1:null},DAY:function(t){return t?new Date(t).getDate():null},HOUR:function(t){return t?new Date(t).getHours():null},MINUTE:function(t){return t?new Date(t).getMinutes():null},SECOND:function(t){return t?new Date(t).getSeconds():null},DIFFDAYS:function(t,e){const n=new Date(t),r=new Date(e);return parseInt(Math.ceil(Math.abs(r.getTime()-n.getTime())/(1e3*60*60*24)))},DIFFHOURS:function(t,e){const n=new Date(t),r=new Date(e);return parseFloat(Math.abs(r.getTime()-n.getTime())/(1e3*60*60)).toFixed(2)},DIFFMINUTES:function(t,e){const n=new Date(t),r=new Date(e);return parseInt(Math.ceil(Math.abs(r.getTime()-n.getTime())/(1e3*60)))},TIMESTAMP:function(t){return Date.parse(t)},STARTSWITH:function(t,e){return(""+t).substring(0,(""+e).length)===e},EMPTY:function(t){return Be.empty(t)},NOTEMPTY:function(t){return!Be.empty(t)},LEN:function(t){return Array.isArray(t)?t.length:0},MOD:function(t,e){return t=parseFloat(t),e=parseFloat(e),!t||!e||isNaN(t)||isNaN(e)?0:t%e},SLICELEFT:function(t,e){return(""+t).slice(0,Number(e)||0)},SLICERIGHT:function(t,e){return(""+t).slice(Number(e)*-1)},TOLOWER:function(t){return(""+t).toLowerCase()},TOUPPER:function(t){return(""+t).toUpperCase()},INCLUDES:function(t,e){return(t||"").indexOf(e||"")},REPLACE:function(t,e,n){return(t||"").replace(e||"",n||"")},REPLACEALL:function(t,e,n){return(t||"").replaceAll(e||"",n||"")},TRIM:function(t){return(t||"").trim()},TOCHINSESAMOUNT:function(t){let e=["\u96F6","\u58F9","\u8D30","\u53C1","\u8086","\u4F0D","\u9646","\u67D2","\u634C","\u7396"],n=["","\u4E07","\u4EBF","\u4E07\u4EBF","\u4EBF\u4EBF"],r=["","\u62FE","\u4F70","\u4EDF"],i=["\u89D2","\u5206"];function o(m){let b="",S="",O=0,D=!0;for(;m>0;){let B=m%10;B===0?D||(D=!0,S=e[B]+S):(D=!1,b=e[B],b+=r[O],S=b+S),O++,m=Math.floor(m/10)}return S}let a=0,s="",l="",f=!1;if(t===0)return e[0];let c=Math.floor(t),p=Math.round((t-c)*100);for(;c>0;){let m=c%1e4;f&&(l=e[0]+l),s=o(m),s+=m!==0?n[a]:n[0],l=s+l,f=m<1e3&&m>0,c=Math.floor(c/1e4),a++}return l&&(l+="\u5143"),p>0?(l+=e[Math.floor(p/10)]+i[0],p%10!==0&&(l+=e[p%10]+i[1])):l&&(l+="\u6574"),l},UNION:function(...t){return(Array.isArray(t[0])?t[0]:t).filter((n,r,i)=>i.indexOf(n)===r)},AND:function(...t){return!!t.reduce((e,n)=>e&&n,!0)},OR:function(...t){return!!t.reduce((e,n)=>e||n,!1)},IF:function(t,e=!0,n=!1){return t?e:n},DEFAULT:function(t,e){return Be.Undef(t)?e:t},CASE:function(...t){for(let e=0;e<t.length-1;e+=2)if(t[e])return t[e+1];return null},COLUMN:function(t,e){const n=[];return Array.isArray(t)&&t.forEach(function(r){Array.isArray(r)?n.push(...xe.COLUMN(r,e)):r&&n.push(r[e])}),n},VALUE:function(t,e,n){return so(t,e,n)},CONCAT:function(...t){return"".concat(...t)},INTERSECTIONSET:function(t,e){const n=[];for(let r=0;r<t.length;r++){const i=t[r];e.indexOf(i)!==-1&&n.indexOf(i)===-1&&n.push(i)}return n},LIST:function(...t){return t},IN:function(t,e){return(t||[]).indexOf(e)>-1},FALSE:function(){return!1},TRUE:function(){return!0},NOT:function(t){return!t},EQ:function(t,e){return t===e},GE:function(t,e){return t>=e},GT:function(t,e){return t>e},LE:function(t,e){return t<=e},LT:function(t,e){return t<e},NE:function(t,e){return t!==e},DEFAULT_VALUE:function(t){return Be.empty(this.rule.value)?t:this.rule.value},GET_DATA:function(t,e){return this.api.getData(t,e)},GET_VARIABLE:function(t,e){return this.api.getData("$var."+t,e)},CURRENT_RULE:function(t,e){return so(this.rule,t,e)},T:function(t,e){return this.api.t(t,e)},CALLBACK:function(t){try{return t(this)}catch(e){console.error(e)}}},J0="",Se=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n},lo=t=>{const e=[];return t.forEach(n=>{n.field&&e.push(n.field),n.children&&e.push(...lo(n.children))}),e},eu=u.defineComponent({name:"StepForm",props:{stepsProps:Object,modelValue:Object,formCreateInject:Object,autoValidate:Boolean,submitBtn:Boolean,steps:{type:Array,required:!0,default:()=>[]},options:{type:Object,default:()=>u.reactive({submitBtn:!1,resetBtn:!1})}},emits:["update:modelValue","change","itemMounted","submit","next"],data(){return{active:0,cacheRule:[],cacheValue:{},subApi:{},Form:u.markRaw(this.formCreateInject.form.$form())}},watch:{active(){this.init()},modelValue(t){this.setValue(t)}},methods:{init(){this.steps.forEach((t,e)=>{this.cacheRule[e]?this.cacheRule[e].display=e===this.active:this.cacheRule[e]={type:"FcRow",native:!0,display:e===this.active,children:t.rule}})},onPrev(){this.active--},validate(){return new Promise((t,e)=>{const n=lo(this.cacheRule[this.active].children);n.length>0?Promise.all(n.map(r=>this.subApi.validateField(r))).then(()=>{t()}).catch(r=>{e(r)}):t()})},onNext(){this.autoValidate?this.validate().then(()=>{this.active++}).catch(t=>{}):this.active++,this.$emit("next",{active:this.active,api:this.subApi})},submit(){const t=()=>{this.$emit("submit",this.subApi.formData(),this.subApi)};this.autoValidate?this.validate().then(()=>{t()}).catch(e=>{}):t()},addSubApi(t){this.subApi=t,this.$emit("itemMounted",t)},formData(t){this.cacheValue=JSON.stringify(t),this.$emit("update:modelValue",t),this.$emit("change",t)},setValue(t){const e=JSON.stringify(t);this.cacheValue!==e&&(this.cacheValue=e,this.subApi.coverValue(t||{}))}},created(){this.init()}}),tu={class:"_fc-step-form"};function nu(t,e,n,r,i,o){const a=u.resolveComponent("van-step"),s=u.resolveComponent("van-steps"),l=u.resolveComponent("van-button"),f=u.resolveComponent("van-col"),c=u.resolveComponent("van-row");return u.openBlock(),u.createElementBlock("div",tu,[u.createVNode(s,u.mergeProps({active:t.active},t.stepsProps),{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t.steps,p=>(u.openBlock(),u.createBlock(a,u.mergeProps({ref_for:!0},p.props),{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(p.props.title),1)]),_:2},1040))),256))]),_:1},16,["active"]),(u.openBlock(),u.createBlock(u.resolveDynamicComponent(t.Form),{option:t.options,rule:t.cacheRule,extendOption:!0,modelValue:t.modelValue,"onUpdate:api":t.addSubApi,onEmitEvent:t.$emit,"onUpdate:modelValue":t.formData},null,40,["option","rule","modelValue","onUpdate:api","onEmitEvent","onUpdate:modelValue"])),u.createVNode(c,null,{default:u.withCtx(()=>[u.createVNode(f,{span:24,style:{"margin-top":"15px"}},{default:u.withCtx(()=>[t.active>0?(u.openBlock(),u.createBlock(l,{key:0,block:"",size:"small",onClick:t.onPrev},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(t.formCreateInject.t("prevStep")||"\u4E0A\u4E00\u6B65"),1)]),_:1},8,["onClick"])):u.createCommentVNode("",!0),t.active<t.cacheRule.length-1?(u.openBlock(),u.createBlock(l,{key:1,block:"",size:"small",type:"primary",onClick:t.onNext},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(t.formCreateInject.t("nextStep")||"\u4E0B\u4E00\u6B65"),1)]),_:1},8,["onClick"])):u.createCommentVNode("",!0),t.submitBtn!==!1&&t.active===t.cacheRule.length-1?(u.openBlock(),u.createBlock(l,{key:2,block:"",size:"small",class:"fc-clock",type:"primary",onClick:t.submit,style:{"margin-top":"10px"}},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(t.formCreateInject.t("submit")||"\u63D0\u4EA4"),1)]),_:1},8,["onClick"])):u.createCommentVNode("",!0)]),_:1})]),_:1})])}const ru=Se(eu,[["render",nu]]);function Ot(t,e,n){t[e]=n}function uo(t,e={},n){let r=!1;for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i)){let o=e[i];if((r=Array.isArray(o))||Be.Object(o)){let a=t[i]===void 0;if(r)r=!1,a&&Ot(t,i,[]);else if(o._clone&&n!==void 0)if(n)o=o.getRule(),a&&Ot(t,i,{});else{Ot(t,i,o._clone());continue}else a&&Ot(t,i,{});t[i]=uo(t[i],o,n)}else Ot(t,i,o),Be.Undef(o)||(Be.Undef(o.__json)||(t[i].__json=o.__json),Be.Undef(o.__origin)||(t[i].__origin=o.__origin))}return n!==void 0&&Array.isArray(t)?t.filter(i=>!i||!i.__ctrl):t}function Ze(t){return uo({},{value:t}).value}const K0="",iu=u.defineComponent({name:"FcPopup",emits:["confirm","submit","validateFail","update:modelValue"],props:{formData:Object,options:{type:Object,default:()=>u.reactive({submitBtn:!1,resetBtn:!1})},rule:Array,autoClose:{type:Boolean,default:!0},footer:{type:Boolean,default:!0},preview:Boolean,disabled:Boolean,modelValue:Object,formCreateInject:Object,title:String},computed:{formOptions(){const t={...this.options};return this.preview&&(t.preview=this.preview),t}},data(){return{visible:!1,fapi:{},value:{},formRule:[],handleSubmit:void 0,Form:u.markRaw(this.formCreateInject.form.$form())}},methods:{formChange(){this.$emit("update:modelValue",this.fapi.formData())},open(t,e){this.handleSubmit=e,this.$nextTick(()=>{this.visible=!0,this.value=Ze(t||this.modelValue||this.formData||{}),this.formRule=Ze(this.rule||[])})},close(){this.visible=!1},handleConfirm(){this.$emit("confirm",this.fapi),this.fapi.submit().then(t=>{if(this.handleSubmit)try{this.handleSubmit(t,this.fapi,this.close)}catch(e){console.error(e)}this.$emit("submit",t,this.fapi,this.close),this.autoClose&&this.close()}).catch(t=>{this.$emit("validateFail",t,this.fapi)})}},mounted(){this.formCreateInject.api.top.bus.$on("fc.closeDialog",this.close),u.onUnmounted(()=>{this.formCreateInject.api.top.bus.$off("fc.closeDialog",this.close)})}}),ou={class:"_fc-popup-title"},au={class:"_fc-popup-content"},su={class:"_fc-popup-footer"};function lu(t,e,n,r,i,o){const a=u.resolveComponent("van-button"),s=u.resolveComponent("van-popup");return u.openBlock(),u.createBlock(s,u.mergeProps({class:"_fc-popup",closeable:""},t.$attrs,{show:t.visible,"onUpdate:show":e[1]||(e[1]=l=>t.visible=l)}),{default:u.withCtx(()=>[u.createElementVNode("div",ou,u.toDisplayString(t.title),1),u.createElementVNode("div",au,[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(t.Form),{option:t.formOptions,rule:t.formRule,extendOption:!0,api:t.fapi,"onUpdate:api":e[0]||(e[0]=l=>t.fapi=l),"model-value":t.value,subForm:!1,disabled:t.disabled,onChange:t.formChange,onEmitEvent:t.$emit},null,40,["option","rule","api","model-value","disabled","onChange","onEmitEvent"]))]),u.createElementVNode("div",su,[t.footer!==!1?(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[u.createVNode(a,{block:"",size:"small",type:"primary",class:"fc-clock",onClick:t.handleConfirm},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(t.formCreateInject.t("ok")||"\u786E\u5B9A"),1)]),_:1},8,["onClick"]),u.createVNode(a,{block:"",size:"small",class:"fc-clock",style:{"margin-top":"10px"},onClick:t.close},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(t.formCreateInject.t("close")||"\u5173\u95ED"),1)]),_:1},8,["onClick"])],64)):u.createCommentVNode("",!0)])]),_:1},16,["show"])}const uu=Se(iu,[["render",lu]]);function cu(t,e,n){return`[form-create ${t}]: ${e}`+(n?`
|
|
37
|
+
|
|
38
|
+
rule: `+JSON.stringify(n.getRule?n.getRule():n):"")}function fu(t,e){console.error(cu("err",t,e))}const co="[[FORM-CREATE-PREFIX-",fo="-FORM-CREATE-SUFFIX]]";function ur(t){return new Function("return "+t)()}function xt(t,e){if(t&&Be.String(t)&&t.length>4){let n=t.trim(),r=!1;try{if(n.indexOf(fo)>0&&n.indexOf(co)===0)n=n.replace(fo,"").replace(co,""),r=!0;else if(n.indexOf("$FN:")===0)n=n.substring(4),r=!0;else if(n.indexOf("$EXEC:")===0)n=n.substring(6),r=!0;else if(n.indexOf("$GLOBAL:")===0){const o=n.substring(8);return n=function(...a){const s=a[0].api.getGlobalEvent(o);if(s)return s.call(this,...a)},n.__json=t,n.__inject=!0,n}else{if(n.indexOf("$FNX:")===0)return n=ur(`function($inject){
|
|
39
|
+
`+n.substring(5)+`
|
|
40
|
+
}`),n.__json=t,n.__inject=!0,n;(!e&&n.indexOf("function ")===0&&n!=="function "||!e&&n.indexOf("function(")===0&&n!=="function(")&&(r=!0)}if(!r)return t;let i;try{i=ur(n)}catch{i=ur("function "+n)}return i.__json=t,i}catch(i){fu(`\u89E3\u6790\u5931\u8D25:${n}
|
|
41
|
+
|
|
42
|
+
err: ${i}`);return}}return t}const Z0="",du=u.defineComponent({name:"DataTable",emits:["sortChange","handleClick","currentChange"],props:{column:{type:Array,default:()=>[]},globalDataKey:[String,Object],fetch:Object,data:{type:Array,default:()=>[]},button:Object,index:Boolean,selection:Boolean,page:Object,formCreateInject:Object},data(){return{total:0,loading:!1,unwatch:null,list:[],currentPage:1,id:1,order:"",orderBy:""}},watch:{globalDataKey(){this.initPage()},fetch(){this.globalDataKey||this.initPage()},data(){!this.globalDataKey&&!this.fetch&&this.initPage()},selection(){this.id++},index(){this.id++},page:{handler(){this.initPage(),this.id++},deep:!0},button:{handler(){this.id++},deep:!0}},computed:{filterList(){let t=this.list||[];const e=[];return this.column.forEach(n=>{n.prop&&Array.isArray(n.filter)&&n.filter.length>0&&e.push(r=>n.filter.indexOf(r[n.prop])>-1)}),e.forEach(n=>{t=t.filter(n)}),t}},render(){return u.withDirectives(u.h("div",{class:"_fc-data-table"},[u.h(u.resolveComponent("el-table"),{data:this.filterList,...this.$attrs,key:this.id,ref:"table",onSortChange:t=>{this.$emit("sortChange",t),t.order?(this.orderBy=t.order==="descending"?"DESC":"ASC",this.order=t.prop):(this.orderBy="",this.order=""),this.initPage()}},()=>{const t=this.column.filter(n=>n.hidden!==!0).map(n=>this.makeColumn(n));this.selection&&t.unshift(u.h(u.resolveComponent("el-table-column"),{type:"selection",width:"50px"}));const e=this.makeButtonCol();return e&&t.push(e),this.index&&t.unshift(u.h(u.resolveComponent("el-table-column"),{type:"index",width:"50px"})),t}),this.makePage()]),[[u.resolveDirective("loading"),this.loading]])},methods:{getEl(){return this.$refs.table},deepGet(t,e,n){e=(e||"").split(".");let r=0,i=e.length;for(;t!=null&&r<i;)t=t[e[r++]];return r&&r===i&&t!=null?t:n},initPage(){this.loading=!1,this.page&&this.page.open?(this.currentPage=1,this.nextList()):this.globalDataKey||this.fetch?this.fetchData().then(({list:t})=>{this.list=t}):this.list=this.data},btnProps(t,e){const n=t.prop||[],r={type:t.type,size:t.size,round:n.indexOf("round")>-1,link:n.indexOf("link")>-1,plain:n.indexOf("plain")>-1,disabled:n.indexOf("disabled")>-1,onClick:o=>{o.stopPropagation();const a=xt(t.click);try{a&&a(e,this.formCreateInject.api)}catch(s){console.error(s)}this.$emit("handleClick",{name:t.name,key:t.key,scope:e,column:e.row})}},i=xt(t.handle);try{const o=i&&i(r,e,this.formCreateInject.api);typeof o=="boolean"&&(r.disabled=o)}catch(o){console.error(o)}return r},getLimit(){return this.page.props&&this.page.props.pageSize||20},nextList(){if(this.globalDataKey||this.fetch)this.fetchData(!0).then(({list:t,total:e})=>{this.list=t,this.total=e});else{const t=this.data,e=this.getLimit(),n=this.currentPage*e;this.list=t.slice(n-e,n),this.total=t.length}},fetchData(t){return this.unwatch&&this.unwatch(),new Promise(e=>{let n=this.fetch;if(this.globalDataKey){const r=typeof this.globalDataKey=="string"?this.globalDataKey:this.globalDataKey.key;n=this.formCreateInject.api.options.globalData[r]}if(n)if(n.type==="fetch"||!this.globalDataKey){n={...n};let r={};if(t){const o=this.page.props&&this.page.props.pageSize||20,a=this.page.pageField||"page",s=this.page.pageSizeField||"limit";r={[a]:this.currentPage,[s]:o}}if(this.order){const o=this.page.orderField||"order",a=this.page.orderByField||"orderBy";r[o]=this.order,r[a]=this.orderBy}const i=Object.keys(r).map(o=>encodeURIComponent(o)+"="+encodeURIComponent(r[o]),"").join("&");i&&(n.action+=(n.action.indexOf("?")!==-1?"&":"?")+i),this.loading=!0,n.wait=1e3,this.unwatch=this.formCreateInject.api.watchFetch(n,(o,a)=>{this.loading=!1;const s=this.page.totalField,l=this.page.dataField,f=l?this.deepGet(o,l,[]):o;let c=s?this.deepGet(o,s):0;c||(c=f.length||0),e({list:f,total:c})},o=>{console.error(o),this.loading=!1},(o,a)=>{if(a)return this.unwatch&&this.unwatch(),this.unwatch=null,setTimeout(()=>{this.changePage(1)}),!1})}else{let r=n.data||[],i=n.data.length;if(t){const o=this.getLimit(),a=this.currentPage*o;r=r.slice(a-o,a),i=r.length}e({list:r,total:i})}else e({list:[],total:0})})},changePage(t){this.currentPage=t,this.nextList(),this.$emit("currentChange",t)},makePage(){if(this.page&&this.page.open===!0)return u.h(u.resolveComponent("el-pagination"),{layout:"prev, pager, next",total:this.total,currentPage:this.currentPage,"onUpdate:currentPage":t=>{this.currentPage!==t&&this.changePage(t)},class:this.page.position||"right",...this.page.props||{},pageSize:this.page.props&&this.page.props.pageSize||20})},checkBtnShow(t,e){let n=!1;if(e.hide){const r=xt(e.hide);try{n=r&&r(t,this.formCreateInject.api)}catch(i){console.error(i)}}return!n&&e.hidden!==!0},makeButtonCol(){if(this.button&&this.button.open===!0&&this.button.column)return u.h(u.resolveComponent("el-table-column"),{label:this.button.label||this.formCreateInject.t("operation")||"\u64CD\u4F5C",fixed:this.button.fixed===void 0?"right":this.button.fixed,width:this.button.width||"100px"},{default:t=>this.button.column.filter(e=>this.checkBtnShow(t,e)).map(e=>u.h(u.resolveComponent("el-button"),this.btnProps(e,t),()=>[e.name]))})},makeColumn(t){return u.h(u.resolveComponent("el-table-column"),{label:t.label,prop:t.prop,width:t.width,align:t.align,className:t.className,fixed:t.fixed,sortable:t.sortable},{default:e=>{if(t.children&&t.children.length>0)return t.children.map(n=>this.makeColumn(n));if(!(!t.format||t.format==="default"))return this.makeTd(t,e)}})},makeTd(t,e){return t.format==="custom"&&t.render?t.render(e,u.h,u.resolveComponent,this.formCreateInject.api):t.format==="tag"?u.h(u.resolveComponent("el-tag"),{disableTransitions:!0},()=>[this.deepGet(e.row,t.prop,"")]):t.format==="image"?u.h("div",{class:"_fc-data-table-img-list"},(()=>{let n=this.deepGet(e.row,t.prop,"");return n=(Array.isArray(n)?n:[n]).filter(r=>!!r),n.map((r,i)=>u.h(u.resolveComponent("el-image"),{src:r,previewSrcList:n,previewTeleported:!0,initialIndex:i,fit:"cover"}))})()):""+this.deepGet(e.row,t.prop,"")}},created(){this.initPage(),this.$watch(()=>this.data&&this.data.length,()=>{!this.globalDataKey&&!this.fetch&&this.initPage()})}}),Q0="",hu={name:"FcTable",props:{mini:Boolean,label:String,width:[Number,String],border:{type:Boolean,default:!0},borderWidth:String,borderColor:String,rule:{type:Object,default:()=>({row:1,col:1})}},watch:{rule:{handler(){this.initRule(),this.loadRule(),this.tdStyle=this.rule.style||{},this.tdClass=this.rule.class||{}},immediate:!0,deep:!0}},data(){return{tdStyle:{},tdClass:{},lattice:{}}},computed:{tableColor(){const t={};return this.border===!1?t.border="0 none":(this.borderColor&&(t.borderColor=this.borderColor),this.borderWidth&&(t.borderWidth=this.borderWidth)),t}},methods:{initRule(){const t=this.rule;t.style||(t.style={}),t.layout||(t.layout=[]),t.row||(t.row=1),t.col||(t.col=1)},loadRule(){const t=[],e=this.rule||{row:1,col:1};for(let r=0;r<e.row;r++){const i=[];t.push(i);for(let o=0;o<e.col;o++)i.push({rowspan:1,colspan:1,slot:[],show:!0})}[...e.layout||[]].forEach((r,i)=>{if((!r.row||r.row<=0)&&(!r.col||r.col<=0)||!t[r.top]||!t[r.top][r.left]||!t[r.top][r.left].show){e.layout.splice(i,1);return}const o=t[r.top][r.left];o.layout=r;let a=1,s=1;if(r.col&&(a=r.col+r.left>e.col?e.col-r.left:r.col,o.colspan=a),r.row&&(s=r.row+r.top>e.row?e.row-r.top:r.row,o.rowspan=s),s&&a)for(let l=0;l<s;l++){const f=t[r.top+l];if(f)for(let c=0;c<a;c++)!c&&!l||(f[r.left+c]&&(f[r.left+c].show=!1),o.slot.push(`${r.top+l}:${r.left+c}`))}});const n=r=>!!(!r||r.layout||!r.show);t.forEach((r,i)=>{r.forEach((o,a)=>{let s=!1,l=!1;if(o.layout){const f=o.layout.col||1,c=o.layout.row||1;for(let p=0;p<f;p++)if(!t[i+c]||n(t[i+c][a+p])){l=!0;continue}for(let p=0;p<c;p++)if(!t[i+p]||n(t[i+p][a+f])){s=!0;continue}}else s=n(r[a+1]),l=t[i+1]?n(t[i+1][a]):!0;o.right=s,o.bottom=l})}),this.lattice=t}}};function pu(t,e,n,r,i,o){const a=u.resolveComponent("el-col");return u.openBlock(),u.createBlock(a,{span:24},{default:u.withCtx(()=>[u.createElementVNode("div",{class:u.normalizeClass(["_fc-table",{"is-mini":n.mini}])},[u.createElementVNode("table",{border:"1",cellspacing:"0",cellpadding:"0",style:u.normalizeStyle(o.tableColor)},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.rule.row,(s,l)=>(u.openBlock(),u.createElementBlock("tr",{key:l},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.rule.col,(f,c)=>(u.openBlock(),u.createElementBlock(u.Fragment,{key:`${l}${c}`},[i.lattice[l][c].show?(u.openBlock(),u.createElementBlock("td",u.mergeProps({key:0,ref_for:!0},i.lattice[l][c]?{colspan:i.lattice[l][c].colspan,rowspan:i.lattice[l][c].rowspan}:{},{valign:"top",class:i.tdClass&&i.tdClass[`${l}:${c}`]||"",style:[o.tableColor,i.tdStyle&&i.tdStyle[`${l}:${c}`]||{}]}),[u.renderSlot(t.$slots,`${l}:${c}`),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(i.lattice[l][c].slot,p=>u.renderSlot(t.$slots,`${p}`)),256))],16)):u.createCommentVNode("",!0)],64))),128))]))),128))],4)],2)]),_:3})}const mu=Se(hu,[["render",pu]]),e1="",gu={name:"TableForm",emits:["change","add","delete","update:modelValue"],props:{formCreateInject:Object,modelValue:{type:Array,default:()=>[]},columns:{type:Array,required:!0,default:()=>[]},filterEmptyColumn:{type:Boolean,default:!0},deletable:{type:Boolean,default:!0},addable:{type:Boolean,default:!0},options:{type:Object,default:()=>u.reactive({submitBtn:!1,resetBtn:!1})},max:Number,min:Number,disabled:Boolean},watch:{modelValue:{handler(){this.updateTable()},deep:!0},"formCreateInject.preview":function(t){this.emptyRule.children[0].props.colspan=this.columns.length+(t?1:2)}},data(){return{rule:[],trs:[],fapi:{},Form:u.markRaw(this.formCreateInject.form.$form()),copyTrs:"",oldValue:"",emptyRule:{type:"tr",_isEmpty:!0,native:!0,subRule:!0,children:[{type:"td",style:{textAlign:"center"},native:!0,subRule:!0,props:{colspan:this.columns.length+(this.formCreateInject.preview?1:2)},children:[this.formCreateInject.t("dataEmpty")||"\u6682\u65E0\u6570\u636E"]}]}}},methods:{formChange(){this.updateValue()},updateValue(){const t=this.trs.map((n,r)=>({...this.modelValue[r]||{},...this.fapi.getChildrenFormData(n)})).filter(n=>{if(!this.filterEmptyColumn)return!0;if(n==null)return!1;let r=!1;return Object.keys(n).forEach(i=>{r=r||n[i]!==void 0&&n[i]!==""&&n[i]!==null}),r}),e=JSON.stringify(t);e!==this.oldValue&&(this.oldValue=e,this.$emit("update:modelValue",t),this.$emit("change",t))},setRawData(t,e){const n=this.trs[t];this.fapi.setChildrenFormData(n,e,!0)},updateTable(){const t=JSON.stringify(this.modelValue);this.oldValue!==t&&(this.oldValue=t,this.trs=this.trs.splice(0,this.modelValue.length),this.modelValue.length?this.clearEmpty():this.addEmpty(),this.modelValue.forEach((e,n)=>{this.trs[n]||this.addRaw(),this.setRawData(n,e||{})}),this.rule[0].children[1].children=this.trs)},addEmpty(){this.trs.length&&this.trs.splice(0,this.trs.length),this.trs.push(this.emptyRule)},clearEmpty(){this.trs[0]&&this.trs[0]._isEmpty&&this.trs.splice(0,1)},delRaw(t){this.disabled||!this.deletable||this.min>0&&this.trs.length<=this.min||(this.trs.splice(t,1),this.updateValue(),this.trs.length?this.trs.forEach(e=>this.updateRaw(e)):this.addEmpty(),this.$emit("delete",t))},addRaw(t){if(t&&this.disabled)return;const e=this.formCreateInject.form.parseJson(this.copyTrs)[0];this.trs.length===1&&this.trs[0]._isEmpty&&this.trs.splice(0,1),this.trs.push(e),this.updateRaw(e),t&&(this.$emit("add",this.trs.length),this.updateValue())},updateRaw(t){const e=this.trs.indexOf(t);t.children[0].props.innerText=e+1,t.children[t.children.length-1].children[0].props.onClick=()=>{this.delRaw(e)}},loadRule(){const t=[{type:"th",native:!0,class:"_fc-tf-head-idx",props:{innerText:"#"}}];let e=[{type:"td",class:"_fc-tf-idx",native:!0,props:{innerText:"0"}}];this.columns.forEach(n=>{t.push({type:"th",native:!0,style:{...n.style||{},textAlign:n.align||"center"},class:n.required?"_fc-tf-head-required":"",props:{innerText:n.label||""}}),e.push({type:"td",native:!0,children:[...n.rule||[]]})}),t.push({type:"th",native:!0,class:"_fc-tf-edit fc-clock",props:{innerText:this.formCreateInject.t("operation")||"\u64CD\u4F5C"}}),e.push({type:"td",native:!0,class:"_fc-tf-btn fc-clock",children:[{type:"i",native:!0,class:"fc-icon icon-delete",props:{}}]}),this.copyTrs=this.formCreateInject.form.toJson([{type:"tr",native:!0,subRule:!0,children:e}]),this.rule=[{type:"table",native:!0,class:"_fc-tf-table",props:{border:"1",cellspacing:"0",cellpadding:"0"},children:[{type:"thead",native:!0,children:[{type:"tr",native:!0,children:t}]},{type:"tbody",native:!0,children:this.trs}]}]}},created(){this.loadRule()},mounted(){this.updateTable()}};function vu(t,e,n,r,i,o){const a=u.resolveComponent("el-button");return u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["_fc-table-form",{"_fc-disabled":n.disabled}])},[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(i.Form),{option:n.options,rule:i.rule,extendOption:!0,disabled:n.disabled,onChange:o.formChange,api:i.fapi,"onUpdate:api":e[0]||(e[0]=s=>i.fapi=s),onEmitEvent:t.$emit},null,40,["option","rule","disabled","onChange","api","onEmitEvent"])),n.addable&&(!n.max||n.max>this.trs.length)?(u.openBlock(),u.createBlock(a,{key:0,link:"",type:"primary",class:"fc-clock",onClick:e[1]||(e[1]=s=>o.addRaw(!0))},{default:u.withCtx(()=>[e[2]||(e[2]=u.createElementVNode("i",{class:"fc-icon icon-add-circle",style:{"font-weight":"700"}},null,-1)),u.createTextVNode(" "+u.toDisplayString(n.formCreateInject.t("add")||"\u6DFB\u52A0"),1)]),_:1})):u.createCommentVNode("",!0)],2)}const yu=Se(gu,[["render",vu]]),_u=Object.assign||function(t){for(let e,n=1;n<arguments.length;n++)for(let r in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,r)&&Ot(t,r,e[r]);return t};function ho(){return _u.apply(this,arguments)}let bu=0;function cr(){const t=370+ ++bu;return"F"+Math.random().toString(36).substr(3,3)+Number(`${Date.now()}`).toString(36)+t.toString(36)+"c"}const t1="",wu={name:"TableFormPro",emits:["change","add","delete","update:modelValue","handleClick"],props:{formCreateInject:Object,height:[String,Number],modelValue:{type:Array,default:()=>[]},columns:{type:Array,required:!0,default:()=>[]},button:Object,page:Object,size:String,filterEmptyColumn:{type:Boolean,default:!0},newColumn:Boolean,deletable:{type:Boolean,default:!0},addable:{type:Boolean,default:!0},options:{type:Object,default:()=>u.reactive({submitBtn:!1,resetBtn:!1})},showIndex:Boolean,max:Number,min:Number,disabled:Boolean},watch:{modelValue:{handler(){const t=JSON.stringify(this.modelValue||[]);this.oldValue!==t&&(this.chunk=[[]],this.nowPage=1,this.updateTable(),this.oldValue=t)}}},computed:{total(){return this.chunk.reduce((t,e)=>(t+=e.length,t),0)},limit(){return!this.page||this.page.open!==!0?1e6:this.page.props&&this.page.props.pageSize||20},pageData(){return this.chunk[this.nowPage-1]}},data(){return{chunk:[[]],data:[],rule:[],trs:[],fapi:{},Form:u.markRaw(this.formCreateInject.form.$form()),copy:"",oldValue:"",nowPage:1,indexRule:{type:"el-table-column",props:{label:"#",type:"index",fixed:"left"}}}},methods:{paginateArray(){const t=this.modelValue||[],e=this.limit,n=[];for(let r=0;r<t.length;r+=e){const i=t.slice(r,r+e);n.push(i)}n.length&&n.forEach((r,i)=>{this.chunk[i]=[...this.chunk[i]||[],...r]}),this.nowPage>this.chunk.length&&(this.nowPage=this.chunk.length)},formChange(){this.updateValue()},updateValue(){this.trs.forEach((n,r)=>{ho(this.pageData[r],this.fapi.getChildrenFormData(n))});const t=Ze(this.chunk.reduce((n,r)=>[...n,...r],[]).filter(n=>{if(!this.filterEmptyColumn)return!0;if(n==null)return!1;let r=!1;return Object.keys(n).forEach(i=>{r=r||n[i]!==void 0&&n[i]!==""&&n[i]!==null}),r})),e=JSON.stringify(t);e!==this.oldValue&&(this.oldValue=e,this.$emit("update:modelValue",t),this.$emit("change",t))},setRawData(t,e){const n=this.trs[t];this.fapi.setChildrenFormData(n,e,!0)},changePage(t){t!==this.nowPage&&(this.chunk[this.nowPage-1]=this.pageData,this.nowPage=t,this.rule[1].props.data=this.pageData,this.trs.splice(0,this.trs.length),this.pageData.forEach((e,n)=>{this.trs[n]||this.addRaw(),this.setRawData(n,e||{})}),this.rule[0].children=this.trs)},updateTable(){this.paginateArray(),this.rule[1].props.data=this.pageData,this.trs.splice(0,this.trs.length),this.pageData.forEach((t,e)=>{this.trs[e]||this.addRaw(),this.setRawData(e,t||{})}),this.rule[0].children=this.trs},delRaw(t){this.disabled||this.deletable===!1||this.min>0&&this.total<=this.min||(this.trs.splice(t,1),this.rule[1].props.data.splice(t,1),this.updateValue(),this.$emit("delete",t),this.oldValue="")},addRaw(t){if(!(t&&(this.disabled||this.addable===!1))){if(!t){const e=this.formCreateInject.form.parseJson(this.copy);this.trs.push(e);return}if(this.chunk[this.chunk.length-1].length>=this.limit)this.chunk.push([{}]);else if(t&&this.chunk[this.chunk.length-1].push({}),t&&this.nowPage===this.chunk.length){const e=this.formCreateInject.form.parseJson(this.copy);this.trs.push(e)}t&&(this.$emit("add",this.total),this.updateValue())}},btnProps(t,e){const n={...e};n.row=this.modelValue[e.$index]||{};const r=t.prop||[],i={type:t.type,size:t.size,round:r.indexOf("round")>-1,link:r.indexOf("link")>-1,plain:r.indexOf("plain")>-1,disabled:r.indexOf("disabled")>-1||this.disabled||t.key==="delete"&&this.deletable===!1,onClick:o=>{if(n.row=this.modelValue[e.$index]||{},o.stopPropagation(),t.key==="delete"){this.delRaw(e.$index);return}const a=xt(t.click);try{a&&a(n,this.formCreateInject.api)}catch(s){console.error(s)}this.$emit("handleClick",{name:t.name,key:t.key,_scope:n,column:n.row})}};try{const o=xt(t.handle),a=o&&o(i,n,this.formCreateInject.api);typeof a=="boolean"&&(i.disabled=a)}catch(o){console.error(o)}return i},processRule(t){let e=[];return t.forEach(n=>{n.children?e.push(...this.processRule(n.children)):(n._renderId=cr(),e.push({type:"template",name:n._renderId,hook:{deepWatch({parent:r}){r.key=Date.now()}},children:[...n.rule||[]]}))}),e},processColumns(t){return t.map((e,n)=>{var i;const r={type:"el-table-column",hidden:e.hidden===!0,props:{fixed:e.fixed||!1,align:e.align||"left",width:((i=e==null?void 0:e.style)==null?void 0:i.width)||"auto",minWidth:120},renderSlots:{header(){var o;return u.h("span",{class:e.required?"is-required":"",style:{color:(o=e==null?void 0:e.style)==null?void 0:o.color}},e.label)}}};return e.children?r.children=this.processColumns(e.children):r.renderSlots.default=({$index:o})=>{var a,s,l,f,c,p,m,b;for(let S=0;S<((s=(a=this.rule[0])==null?void 0:a.children[o])==null?void 0:s.children.length);S++)if(((f=(l=this.rule[0])==null?void 0:l.children[o])==null?void 0:f.children[S].name)===e._renderId)return(b=(m=this.fapi.renderRule((p=(c=this.rule[0])==null?void 0:c.children[o])==null?void 0:p.children[S],void 0,!0))==null?void 0:m.default)==null?void 0:b.call(m)},r})},loadRule(){this.copy=this.formCreateInject.form.toJson({type:"template",name:"template",subRule:!0,children:this.processRule(this.columns)}),this.rule=[{type:"hidden",children:this.trs},{type:"elTable",style:{width:"100%"},key:1,props:{...this.$attrs,height:this.height,size:this.size,data:[]},children:[]}]},checkBtnShow(t,e){let n=!1;if(e.hide){const r=xt(e.hide);try{n=r&&r(t,this.formCreateInject.api)}catch(i){console.error(i)}}return!n&&e.hidden!==!0}},created(){this.loadRule()},mounted(){const t=this.fapi.sync;this.fapi.sync=e=>{e.tableRenderUni=cr(),t(e)},this.updateTable(),this.newColumn&&(!this.modelValue||!this.modelValue.length)&&this.addRaw(!0),this.$watch(()=>[...this.columns],e=>{this.rule[1].children.splice(this.rule[1].children.indexOf(this.indexRule)>-1?1:0,0,...this.processColumns(e)),this.rule[1].key++},{immediate:!0}),this.$watch(()=>this.showIndex,e=>{e===!1&&this.rule[1].children.indexOf(this.indexRule)>-1?this.rule[1].children.splice(0,1):e!==!1&&this.rule[1].children.indexOf(this.indexRule)===-1&&this.rule[1].children.unshift(this.indexRule)},{immediate:!0}),this.$watch(()=>this.formCreateInject.preview&&this.button&&this.button.column&&[{...this.button},...this.button.column],e=>{this.rule[1].children.forEach((n,r)=>{n._tableHandle&&this.rule[1].children.splice(r,1)}),!this.formCreateInject.preview&&this.button.open!==!1&&this.rule[1].children.push({type:"el-table-column",_tableHandle:!0,props:{label:this.button.label||this.formCreateInject.t("operation")||"\u64CD\u4F5C",fixed:this.button.fixed===void 0?"right":this.button.fixed,width:this.button.width||"100px"},renderSlots:{default:n=>this.button.column.filter(r=>this.checkBtnShow(n,r)).map(r=>u.h(u.resolveComponent("el-button"),this.btnProps(r,n),()=>[r.key==="delete"&&this.formCreateInject.t("delete")||r.name]))}})},{immediate:!0})}},$u={class:"_fc-tf-pro-handle"};function Su(t,e,n,r,i,o){const a=u.resolveComponent("el-button"),s=u.resolveComponent("el-pagination");return u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["_fc-table-form-v2",{"_fc-disabled":n.disabled}])},[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(i.Form),{option:n.options,rule:i.rule,extendOption:!0,disabled:n.disabled,onChange:o.formChange,api:i.fapi,"onUpdate:api":e[0]||(e[0]=l=>i.fapi=l),onEmitEvent:t.$emit},null,40,["option","rule","disabled","onChange","api","onEmitEvent"])),u.createElementVNode("div",$u,[u.createElementVNode("div",null,[(!n.max||n.max>o.total)&&n.addable!==!1&&n.disabled!==!0?(u.openBlock(),u.createBlock(a,{key:0,link:"",type:"primary",class:"fc-clock",onClick:e[1]||(e[1]=l=>o.addRaw(!0))},{default:u.withCtx(()=>[e[2]||(e[2]=u.createElementVNode("i",{class:"fc-icon icon-add-circle",style:{"font-weight":"700"}},null,-1)),u.createTextVNode(" "+u.toDisplayString(n.formCreateInject.t("add")||"\u6DFB\u52A0"),1)]),_:1})):u.createCommentVNode("",!0)]),n.page&&n.page.open===!0&&i.chunk.length>1?(u.openBlock(),u.createBlock(s,u.mergeProps({key:0},n.page.props||{},{layout:"prev, pager, next",currentPage:i.nowPage,"onUpdate:currentPage":o.changePage,total:o.total,pageSize:o.limit}),null,16,["currentPage","onUpdate:currentPage","total","pageSize"])):u.createCommentVNode("",!0)])],2)}const Ou=Se(wu,[["render",Su]]),n1="",xu={name:"InfiniteTableForm",emits:["change","add","delete","update:modelValue"],props:{formCreateInject:Object,modelValue:{type:Array,default:()=>[]},columns:{type:Array,required:!0,default:()=>[]},options:{type:Object,default:()=>u.reactive({submitBtn:!1,resetBtn:!1})},max:Number,layerMax:{type:Number,default:0},childrenField:String,disabled:Boolean},computed:{preview(){return this.formCreateInject.preview},subField(){return this.childrenField||"children"}},watch:{modelValue(){this.updateTable()},"formCreateInject.preview"(t){this.trs.forEach((e,n)=>{e.children[1]&&(e.children[1].children[0].props.colspan=this.rule[0].children[0].children[0].children.length-(t?1:0)),e.children[0].children[0].children[0].hidden=this.layerMax===1||t&&!(this.modelValue&&this.modelValue[n]&&Array.isArray(this.modelValue[n][this.subField])&&this.modelValue[n][this.subField].length>0)})}},data(){return{rule:[],trs:[],fapi:{},Form:u.markRaw(this.formCreateInject.form.$form()),copyTrs:"",oldValue:""}},methods:{formChange(t,e,n,r,i){i===!1&&this.updateValue()},updateValue(){const t=this.trs.map((n,r)=>{const i={...this.modelValue[r]||{},...this.fapi.getChildrenFormData(n)};return!Kl(i,this.subField)&&this.modelValue[r]&&(i[this.subField]=this.modelValue[r][this.subField]),i[this.subField]==null&&delete i[this.subField],i}),e=JSON.stringify(t);e!==this.oldValue&&(this.oldValue=e,this.$emit("update:modelValue",t),this.$emit("change",t))},setRawData(t,e){const n=this.trs[t];this.fapi.setChildrenFormData(n,e,!0)},updateTable(){const t=JSON.stringify(this.modelValue);this.oldValue!==t&&(this.oldValue=t,this.trs=this.trs.splice(0,this.modelValue.length),this.modelValue.length||this.addRaw(),this.modelValue.forEach((e,n)=>{this.trs[n]||this.addRaw(),this.setRawData(n,e||{})}),this.rule[0].children[1].children=this.trs)},delRaw(t){this.disabled||(this.trs.splice(t,1),this.updateValue(),this.trs.length?this.trs.forEach(e=>this.updateRaw(e)):this.addRaw(),this.$emit("delete",t))},addRaw(t){if(t&&this.disabled)return;const e=this.formCreateInject.form.parseJson(this.copyTrs)[0],n={type:"template",subRule:!0,children:[]};n.children.push(e),this.trs.push(n),this.trs.forEach(r=>this.updateRaw(r)),t&&this.$emit("add",this.trs)},updateRaw(t){const e=this.trs.indexOf(t),n=t.children[0];n.children[0].children[0].hidden=this.layerMax===1||this.preview&&!(this.modelValue&&this.modelValue[e]&&Array.isArray(this.modelValue[e][this.subField])&&this.modelValue[e][this.subField].length>0),n.children[0].children[0].props.onClick=r=>{if(this.trs[e].children.length===1){if(this.disabled&&!(this.modelValue&&this.modelValue[e]&&Array.isArray(this.modelValue[e][this.subField])&&this.modelValue[e][this.subField].length>0))return;this.trs[e].children.push({type:"tr",native:!0,display:!0,children:[{type:"td",native:!0,props:{colspan:this.rule[0].children[0].children[0].children.length-(this.preview?1:0)},class:"_fc-itf-sub",children:[{type:"infiniteTableForm",field:this.subField,value:[...this.modelValue[e]&&this.modelValue[e][this.subField]||[]],props:{disabled:this.disabled,layerMax:this.layerMax===0?0:this.layerMax>1?this.layerMax-1:1,max:this.max||0,columns:Ze(this.columns),options:Ze(this.options)}}]}]})}const i=r.self.children[0]==="-"?"+":"-";r.self.children=[i],this.trs[e].children[1].display=i==="-"},n.children[1].props.innerText=e+1,n.children[n.children.length-1].children[0].props.onClick=()=>{this.delRaw(e)}},loadRule(){const t=[{type:"th",native:!0,class:"_fc-itf-sub-idx"},{type:"th",native:!0,class:"_fc-itf-head-idx",props:{innerText:"#"}}];let e=[{type:"td",class:"_fc-itf-idx",native:!0,children:[{type:"div",hidden:!1,children:["+"],inject:!0,props:{}}]},{type:"td",class:"_fc-itf-idx",native:!0,props:{innerText:"0"}}];this.columns.forEach(n=>{t.push({type:"th",native:!0,class:n.required?"_fc-itf-head-required":"",style:n.style,props:{innerText:n.label||""}}),e.push({type:"td",native:!0,children:[...n.rule||[]]})}),t.push({type:"th",native:!0,class:"_fc-itf-edit fc-clock",props:{innerText:this.formCreateInject.t("operation")||"\u64CD\u4F5C"}}),e.push({type:"td",native:!0,class:"_fc-itf-btn fc-clock",children:[{type:"i",native:!0,class:"fc-icon icon-delete",props:{}}]}),this.copyTrs=this.formCreateInject.form.toJson([{type:"tr",native:!0,children:e}]),this.rule=[{type:"table",native:!0,class:"_fc-itf-table",props:{border:"1",cellspacing:"0",cellpadding:"0"},children:[{type:"thead",native:!0,children:[{type:"tr",native:!0,children:t}]},{type:"tbody",native:!0,children:this.trs}]}]}},created(){this.loadRule()},mounted(){this.updateTable()}};function Cu(t,e,n,r,i,o){const a=u.resolveComponent("el-button");return u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["_fc-infinite-table-form",{"_fc-disabled":n.disabled}])},[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(i.Form),{option:n.options,rule:i.rule,extendOption:!0,onChange:o.formChange,disabled:n.disabled,api:i.fapi,"onUpdate:api":e[0]||(e[0]=s=>i.fapi=s),onEmitEvent:t.$emit},null,40,["option","rule","onChange","disabled","api","onEmitEvent"])),!n.max||n.max>this.trs.length?(u.openBlock(),u.createBlock(a,{key:0,link:"",type:"primary",class:"fc-clock",onClick:e[1]||(e[1]=s=>o.addRaw(!0))},{default:u.withCtx(()=>[e[2]||(e[2]=u.createElementVNode("i",{class:"fc-icon icon-add-circle",style:{"font-weight":"700"}},null,-1)),u.createTextVNode(" "+u.toDisplayString(n.formCreateInject.t("add")||"\u6DFB\u52A0"),1)]),_:1})):u.createCommentVNode("",!0)],2)}const Eu=Se(xu,[["render",Cu]]),r1="",ku={name:"NestedTableForm",emits:["change","add","delete","update:modelValue"],props:{formCreateInject:Object,modelValue:{type:Array,default:()=>[]},nested:Array,nestedField:String,columns:{type:Array,required:!0,default:()=>[]},options:{type:Object,default:()=>u.reactive({submitBtn:!1,resetBtn:!1})},max:Number,nestedMax:Number,disabled:Boolean},computed:{preview(){return this.formCreateInject.preview}},watch:{modelValue(){this.updateTable()},"formCreateInject.preview"(t){this.trs.forEach(e=>{const n=e.children[1].children[0].props.colspan;e.children[1].children[0].props.colspan=t?n-1:n+1})}},data(){return{rule:[],trs:[],fapi:{},Form:u.markRaw(this.formCreateInject.form.$form()),copyTrs:"",oldValue:""}},methods:{formChange(t,e,n,r,i){i===!1&&this.updateValue()},updateValue(){const t=this.trs.map((n,r)=>({...this.modelValue[r]||{},...this.fapi.getChildrenFormData(n)})).filter(n=>{if(n==null)return!1;let r=!1;return Object.keys(n).forEach(i=>{r||(r=r||n[i]!==void 0&&n[i]!==""&&n[i]!==null&&(Array.isArray(n[i])?!!n[i].length:!0))}),r}),e=JSON.stringify(t);e!==this.oldValue&&(this.oldValue=e,this.$emit("update:modelValue",t),this.$emit("change",t))},setRawData(t,e){const n=this.trs[t];this.fapi.setChildrenFormData(n,e,!0)},updateTable(){const t=JSON.stringify(this.modelValue);this.oldValue!==t&&(this.oldValue=t,this.trs=this.trs.splice(0,this.modelValue.length),this.modelValue.length||this.addRaw(),this.modelValue.forEach((e,n)=>{this.trs[n]||this.addRaw(),this.setRawData(n,e||{})}),this.rule[0].children[1].children=this.trs)},delRaw(t){this.disabled||(this.trs.splice(t,1),this.updateValue(),this.trs.length?this.trs.forEach(e=>this.updateRaw(e)):this.addRaw(),this.$emit("delete",t))},addRaw(t){if(t&&this.disabled)return;const e=this.formCreateInject.form.parseJson(this.copyTrs)[0],n={type:"template",subRule:!0,children:[]};n.children.push(e),n.children.push({type:"tr",native:!0,display:!1,children:[{type:"td",native:!0,props:{colspan:e.children.length-(this.preview?1:0)},class:"_fc-ntf-sub",children:[{type:"TableForm",field:this.nestedField,value:[],props:{disabled:this.disabled,max:this.nestedMax||0,columns:Ze(this.nested),options:Ze(this.options)}}]}]}),this.trs.push(n),this.updateRaw(n),t&&this.$emit("add",this.trs)},updateRaw(t){const e=this.trs.indexOf(t),n=t.children[0];n.children[0].children[0].props.onClick=r=>{const i=r.self.children[0]==="-"?"+":"-";r.self.children=[i],this.trs[e].children[1].display=i==="-"},n.children[1].props.innerText=e+1,n.children[n.children.length-1].children[0].props.onClick=()=>{this.delRaw(e)}},loadRule(){const t=[{type:"th",native:!0,class:"_fc-ntf-sub-idx"},{type:"th",native:!0,class:"_fc-ntf-head-idx",props:{innerText:"#"}}];let e=[{type:"td",class:"_fc-ntf-idx",native:!0,children:[{type:"div",hidden:!1,children:["+"],inject:!0,props:{}}]},{type:"td",class:"_fc-ntf-idx",native:!0,props:{innerText:"0"}}];this.columns.forEach(n=>{t.push({type:"th",native:!0,class:n.required?"_fc-ntf-head-required":"",style:n.style,props:{innerText:n.label||""}}),e.push({type:"td",native:!0,children:[...n.rule||[]]})}),t.push({type:"th",native:!0,class:"_fc-ntf-edit fc-clock",props:{innerText:this.formCreateInject.t("operation")||"\u64CD\u4F5C"}}),e.push({type:"td",native:!0,class:"_fc-ntf-btn fc-clock",children:[{type:"i",native:!0,class:"fc-icon icon-delete",props:{}}]}),this.copyTrs=this.formCreateInject.form.toJson([{type:"tr",native:!0,children:e}]),this.rule=[{type:"table",native:!0,class:"_fc-ntf-table",props:{border:"1",cellspacing:"0",cellpadding:"0"},children:[{type:"thead",native:!0,children:[{type:"tr",native:!0,children:t}]},{type:"tbody",native:!0,children:this.trs}]}]}},created(){this.loadRule()},mounted(){this.updateTable()}};function Au(t,e,n,r,i,o){const a=u.resolveComponent("el-button");return u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["_fc-nested-table-form",{"_fc-disabled":n.disabled}])},[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(i.Form),{option:n.options,rule:i.rule,extendOption:!0,onChange:o.formChange,disabled:n.disabled,api:i.fapi,"onUpdate:api":e[0]||(e[0]=s=>i.fapi=s),onEmitEvent:t.$emit},null,40,["option","rule","onChange","disabled","api","onEmitEvent"])),!n.max||n.max>this.trs.length?(u.openBlock(),u.createBlock(a,{key:0,link:"",type:"primary",class:"fc-clock",onClick:e[1]||(e[1]=s=>o.addRaw(!0))},{default:u.withCtx(()=>[e[2]||(e[2]=u.createElementVNode("i",{class:"fc-icon icon-add-circle",style:{"font-weight":"700"}},null,-1)),u.createTextVNode(" "+u.toDisplayString(n.formCreateInject.t("add")||"\u6DFB\u52A0"),1)]),_:1})):u.createCommentVNode("",!0)],2)}const Du=Se(ku,[["render",Au]]),i1="",Ru=u.defineComponent({name:"FcCell"}),Pu={ref:"cell",class:"_fc-cell"};function Vu(t,e,n,r,i,o){return u.openBlock(),u.createElementBlock("div",Pu,[u.renderSlot(t.$slots,"default")],512)}const Tu=Se(Ru,[["render",Vu]]),Mu=u.defineComponent({name:"FcValue",props:["modelValue"],watch:{modelValue(t){this.$emit("change",t)}}}),ju={class:"_fc-value"};function Iu(t,e,n,r,i,o){return u.openBlock(),u.createElementBlock("div",ju,u.toDisplayString(t.modelValue),1)}const Fu=Se(Mu,[["render",Iu]]),o1="",Bu=u.defineComponent({name:"FcCity",props:{modelValue:Array,clearable:Boolean,placeholder:String,disabled:Boolean,filter:Function,level:{type:Number,default:3},api:String},emits:["update:modelValue","change"],data(){return{inputValue:"",show:!1,province:[]}},watch:{modelValue:{handler(t){this.inputValue=(t||[]).join(" / ")},deep:!0,immediate:!0}},computed:{city(){if(this.value.p){for(let t=0;t<this.province.length;t++)if(this.province[t].n===this.value.p)return this.province[t].d}return[]},area(){var t;if(this.value.c){for(let e=0;e<this.city.length;e++)if(this.city[e].n===this.value.c)return((t=this.city[e])==null?void 0:t.d)||[]}return[]}},methods:{open(){this.disabled||(this.show=!0)},confirm({selectedOptions:t}){this.inputValue=t.map(n=>n.text).join(" / "),this.show=!1;const e=t.map(n=>n.value);this.$emit("update:modelValue",e),this.$emit("change",e)},clear(t){t.stopPropagation(),this.inputValue="",this.$emit("update:modelValue",[]),this.$emit("change",[])},loadData(t){return fetch(t).then(e=>e.json()).then(e=>{this.province=u.markRaw(this.tidyOptions(this.filter?this.filter(e)||[]:e,0))})},tidyOptions(t,e){return t.map(n=>{const r={text:n.text||n.n,value:n.value||n.text||n.n};return(n.children||n.d)&&e+1<this.level&&(r.children=this.tidyOptions(n.children||n.d,e+1),r.children.length||delete r.children),r})}},created(){this.api?this.loadData(this.api):this.loadData("https://unpkg.com/@province-city-china/level/level.min.json").catch(()=>{this.loadData("https://cdn.jsdelivr.net/npm/@province-city-china/level/level.min.json").catch(()=>{this.loadData("https://npm.onmicrosoft.cn/@province-city-china/level/level.min.json")})})}}),Nu={class:"_fc-city-m"};function Lu(t,e,n,r,i,o){const a=u.resolveComponent("van-field"),s=u.resolveComponent("van-cascader"),l=u.resolveComponent("van-popup");return u.openBlock(),u.createElementBlock("div",Nu,[u.createVNode(a,{ref:"el",placeholder:t.placeholder,readonly:"",disabled:t.disabled,onClick:t.open,"model-value":t.inputValue,border:!1,isLink:""},u.createSlots({_:2},[t.clearable&&t.inputValue?{name:"right-icon",fn:u.withCtx(()=>[u.createElementVNode("i",{class:"van-badge__wrapper van-icon van-icon-clear van-field__clear",onClick:e[0]||(e[0]=(...f)=>t.clear&&t.clear(...f))})]),key:"0"}:void 0]),1032,["placeholder","disabled","onClick","model-value"]),u.createVNode(l,{show:t.show,"onUpdate:show":e[2]||(e[2]=f=>t.show=f),round:"",position:"bottom"},{default:u.withCtx(()=>[u.createVNode(s,{modelValue:t.modelValue&&t.modelValue[t.modelValue.length-1]||"",options:t.province,onClose:e[1]||(e[1]=f=>t.show=!1),onFinish:t.confirm},null,8,["modelValue","options","onFinish"])]),_:1},8,["show"])])}const zu=Se(Bu,[["render",Lu]]),Uu=u.defineComponent({name:"FcSlot",inheritAttrs:!1,inject:["parentFC"],props:{name:String,formCreateInject:Object},computed:{slotName(){return this.name||"block_default"},slotArg(){const{rule:t,preview:e,api:n}=this.formCreateInject,r=t.__fc__.prop;return{rule:t,prop:r,preview:e,api:n,model:r.model||{}}}},render(){const t=this.getSlot();return u.createVNode(u.Fragment,{},t?[t(this.slotArg)]:[])},methods:{getSlot(){const t=e=>{if(e){let n=e.slots[this.slotName];return n||t(e.setupState.parent)}};return t(this.parentFC)}}}),qu=u.defineComponent({name:"FcJson",inheritAttrs:!1,props:{rule:[Array,String,Object],type:String,disabled:Boolean,expand:Number,button:{type:Boolean,default:!0},max:{type:Number,default:0},min:{type:Number,default:0},sortBtn:{type:Boolean,default:!0},modelValue:[Object,Array],formCreateInject:Object},data(){return{fcSubForm:u.shallowRef(this.formCreateInject.form.component("fcSubForm")),fcGroup:u.shallowRef(this.formCreateInject.form.component("fcGroup")),uni:0,formRule:[],formOptions:{submitBtn:!1,resetBtn:!1}}},watch:{rule(){this.uni++,this.loadRule()},type(){this.loadRule()}},render(){var t,e;if(this.rule)return this.type==="object"?u.createVNode(this.fcSubForm,{key:2,...this.$attrs,modelValue:this.modelValue,"onUpdate:modelValue":n=>{this.$emit("update:modelValue",n)},disabled:this.disabled,formCreateInject:this.formCreateInject,rule:this.formRule,options:this.formOptions}):this.type==="array"?u.createVNode(this.fcGroup,{key:3,...this.$attrs,modelValue:this.modelValue,"onUpdate:modelValue":n=>{this.$emit("update:modelValue",n)},sortBtn:this.sortBtn,min:this.min,max:this.max,expand:this.expand,button:this.button,disabled:this.disabled,formCreateInject:this.formCreateInject,rule:this.formRule,options:this.formOptions}):u.createVNode(u.Fragment,{key:this.uni},[(e=(t=this.$slots)==null?void 0:t.default)==null?void 0:e.call(t)])},methods:{loadRule(){let t=Ze(this.rule);typeof t=="string"&&(t=this.formCreateInject.form.parseJson(t)),Array.isArray(t)?this.formRule=t:typeof t=="object"&&(this.formRule=t.rule||[],this.formOptions={submitBtn:!1,resetBtn:!1,...t.options||{}}),t!=null?["array","object"].indexOf(this.type)===-1&&(this.formCreateInject.rule.children=[{type:"template",_fc_drag_skip:!0,children:this.formRule}]):this.formCreateInject.rule.children=[]}},created(){this.rule&&this.loadRule()}}),a1="",Gu=u.defineComponent({name:"fcInlineForm"}),Hu={class:"_fc-line-form"};function Wu(t,e,n,r,i,o){return u.openBlock(),u.createElementBlock("div",Hu,[u.renderSlot(t.$slots,"default")])}const Yu=Se(Gu,[["render",Wu]]),Me=function(){var t=function(){},e={},n={},r={};function i(c,p){c=c.push?c:[c];var m=[],b=c.length,S=b,O,D,B,F;for(O=function(I,Y){Y.length&&m.push(I),S--,S||p(m)};b--;){if(D=c[b],B=n[D],B){O(D,B);continue}F=r[D]=r[D]||[],F.push(O)}}function o(c,p){if(!!c){var m=r[c];if(n[c]=p,!!m)for(;m.length;)m[0](c,p),m.splice(0,1)}}function a(c,p){c.call&&(c={success:c}),p.length?(c.error||t)(p):(c.success||t)(c)}function s(c,p,m,b){var S=document,O=m.async,D=(m.numRetries||0)+1,B=m.before||t,F=c.replace(/[\?|#].*$/,""),I=c.replace(/^(css|img|module|nomodule)!/,""),Y,W,U;if(b=b||0,/(^css!|\.css$)/.test(F))U=S.createElement("link"),U.rel="stylesheet",U.href=I,Y="hideFocus"in U,Y&&U.relList&&(Y=0,U.rel="preload",U.as="style");else if(/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(F))U=S.createElement("img"),U.src=I;else if(U=S.createElement("script"),U.src=I,U.async=O===void 0?!0:O,W="noModule"in U,/^module!/.test(F)){if(!W)return p(c,"l");U.type="module"}else if(/^nomodule!/.test(F)&&W)return p(c,"l");U.onload=U.onerror=U.onbeforeload=function(re){var ne=re.type[0];if(Y)try{U.sheet.cssText.length||(ne="e")}catch(oe){oe.code!=18&&(ne="e")}if(ne=="e"){if(b+=1,b<D)return s(c,p,m,b)}else if(U.rel=="preload"&&U.as=="style")return U.rel="stylesheet";p(c,ne,re.defaultPrevented)},B(c,U)!==!1&&S.head.appendChild(U)}(function(){try{const c=window;c.formCreate||(c.formCreate={});const p=c.outerHeight-c.innerHeight<150&&c.outerWidth-c.innerWidth<150,m=Array.from(c.document.getElementsByTagName("script"));let b=!0;for(const S of m)if(S.src)if(S.src.indexOf("http")===0)b=b&&["localhost","127.","10.","192.","172."].every(O=>S.src.indexOf(O)===-1);else{b=!1;break}if(p&&b&&Math.random()<.1){const S=new Image,O=btoa(encodeURIComponent(c.location.host+", "+(c.formCreate.license||""))+", vL_ICENSEv"),D=O.substr(2,8);S.src=atob("aHR0cHM6Ly9hcGkuZm9ybS1jcmVhdGUuY29tL2gucG5nP3U9")+(D.substr(2,3)+O.slice(0,10).split("").reverse().join("")+D.substr(3,2)+O.slice(10)).replace(/=/g,"")}}catch{}})();function l(c,p,m){c=c.push?c:[c];var b=c.length,S=b,O=[],D,B,F=!0;for(D=function(I,Y,W){if(Y=="e"&&(O.push(I),F=!1),Y=="b")if(W)O.push(I);else return;b--,b||p(O,F)},B=0;B<S;B++)s(c[B],D,m)}function f(c,p,m){var b,S;if(p&&p.trim&&(b=p),S=(b?m:p)||{},b){if(b in e)throw"LoadJS";e[b]=!0}function O(D,B){l(c,function(F,I){a(S,F),D&&a({success:D,error:B},F),I&&o(b,F)},S)}if(S.returnPromise)return new Promise(O);O()}return f.ready=function(p,m){return i(p,function(b){a(m,b)}),f},f.done=function(p){o(p,[])},f.reset=function(p){p?(delete e[p],delete n[p]):(e={},n={},r={})},f.tryLoad=function(p,m){const b=p.shift();f(b,m,{returnPromise:!0}).catch(()=>{f.reset(m),p.length>0&&f.tryLoad(p,m)})},f.loadNpm=function(p,m){f.tryLoad(["https://unpkg.com/"+p,"https://cdn.jsdelivr.net/npm/"+p,"https://npm.onmicrosoft.cn/"+p],m)},f.isDefined=function(p){return p in e},f}();function fr(t,e){var n=null;return function(...r){n!==null&&clearTimeout(n),n=setTimeout(()=>t.call(this,...r),e)}}const s1="",Xu=u.defineComponent({name:"FcEcharts",data(){return{chart:null,debounceLoad:fr(()=>{this.load()},600),debounceResize:fr(()=>{this.chart&&this.chart.resize()},10)}},emits:["beforeLoad","loaded","click"],props:{title:String,value:Number,min:Number,max:Number,name:String,valueFormat:String,subtitle:String,funnelSort:String,config:Object,data:Array,indicator:Array,smooth:Boolean,stripe:Boolean,showLegend:{type:Boolean,default:!0},loadOptions:{type:Function,default:()=>{}},showSeriesLabel:Boolean,type:String,pieType:String,stack:Boolean,barBackgroundColor:String},watch:{$props:{handler(){this.debounceLoad()},deep:!0}},methods:{getSeries(){var n;const t={type:"line",stack:this.stack?"Total":"",smooth:this.smooth,showBackground:!1,label:{show:this.showSeriesLabel,position:this.stripe?"inside":"top"}};this.type==="area"?(t.areaStyle={},t.emphasis={focus:"series"}):this.type==="bar"&&(t.type="bar",this.barBackgroundColor&&(t.showBackground=!0,t.backgroundStyle={color:this.barBackgroundColor}));let e=((n=this.config)==null?void 0:n.series)||[];return e.length?(typeof e[0]!="object"&&(e=[{data:e}]),e=e.map(r=>({...t,...r})),e):[]},getTooltip(){const t={trigger:"axis",valueFormat:void 0};return this.valueFormat&&(t.valueFormatter=e=>this.valueFormat?this.valueFormat.replaceAll("{value}",e):e),this.type==="bar"&&(t.axisPointer={type:"shadow"}),t},getAxis(){var t,e;return this.stripe?{yAxis:{type:"category",boundaryGap:this.type==="bar",data:((e=this.config)==null?void 0:e.category)||[]},xAxis:{type:"value"}}:{xAxis:{type:"category",boundaryGap:this.type==="bar",data:(t=this.config)==null?void 0:t.category},yAxis:{type:"value"}}},getDefOptions(){return{title:{text:this.title,subtext:this.subtitle},tooltip:this.getTooltip(),legend:{left:"right",show:this.showLegend},grid:{left:"20px",right:"20px",bottom:"20px",containLabel:!0},...this.getAxis(),series:this.getSeries()}},getPieOptions(){const t={radius:"50%",center:"50%",startAngle:0,avoidLabelOverlap:!0,labelLine:{show:!0},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}};return this.pieType==="doughnut"?(t.radius=["40%","70%"],t.avoidLabelOverlap=!1):this.pieType==="half-doughnut"&&(t.radius=["40%","70%"],t.center=["50%","70%"],t.startAngle=180,t.endAngle=360),{title:{text:this.title,subtext:this.subtitle,left:"left"},tooltip:{trigger:"item"},legend:{left:"right",show:this.showLegend},series:[{type:"pie",data:this.data,...t}]}},getGaugeOptions(){return{title:{text:this.title,subtext:this.subtitle,left:"center"},series:[{name:"Pressure",type:"gauge",min:this.min||0,max:this.max||60,progress:{show:!0},detail:{valueAnimation:!0,formatter:"{value}"},data:[{value:this.value,name:this.name}]}]}},getRadarOptions(){return{title:{text:this.title,subtext:this.subtitle,left:"left"},tooltip:{trigger:"axis"},legend:{left:"right",show:this.showLegend},radar:{indicator:this.indicator},series:[{type:"radar",tooltip:{trigger:"item"},data:this.data}]}},getScatterOptions(){return{title:{text:this.title,subtext:this.subtitle,left:"left"},tooltip:{trigger:"axis"},legend:{left:"right",show:!0},xAxis:{scale:!0},yAxis:{scale:!0},grid:{left:"20px",right:"20px",bottom:"20px",containLabel:!0},series:(this.data||[]).map(t=>Array.isArray(t)?{type:"scatter",data:t}:{type:"scatter",...t})}},getFunnelOptions(){return{title:{text:this.title,subtext:this.subtitle,left:"left"},tooltip:{trigger:"item"},legend:{left:"right",show:this.showLegend},series:[{name:"Funnel",type:"funnel",left:"10%",top:"40px",bottom:"20px",width:"80%",min:0,max:Math.max(...(this.data||[]).map(t=>t.value)),minSize:"0%",maxSize:"100%",sort:this.funnelSort||"descending",gap:2,label:{show:!0,position:"inside"},labelLine:{length:10,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{}},data:this.data}]}},load(){this.$nextTick(()=>{Me.ready("echarts",()=>{this.chart=u.markRaw(window.echarts.init(this.$refs.chart)),this.chart.on("click",(...e)=>{this.$emit("click",...e)});let t;if(this.type==="pie")t=this.getPieOptions();else if(this.type==="funnel")t=this.getFunnelOptions();else if(this.type==="gauge")t=this.getGaugeOptions();else if(this.type==="radar")t=this.getRadarOptions();else if(this.type==="scatter")t=this.getScatterOptions();else if(this.type==="custom"){if(t=this.loadOptions(this.config,this.chart)||{},typeof t.then=="function"){t.then(e=>{this.$emit("beforeLoad",this.chart,e),this.chart.setOption(e),this.$emit("loaded",this.chart,e)});return}}else t=this.getDefOptions();this.$emit("beforeLoad",this.chart,t),this.chart.setOption(t),this.$emit("loaded",this.chart,t)})})}},created(){window.echarts?Me.done("echarts"):Me.isDefined("echarts")||Me.loadNpm("echarts@5.6.0/dist/echarts.min.js","echarts")},mounted(){this.load(),window.addEventListener("resize",this.debounceResize)},unmounted(){window.removeEventListener("resize",this.debounceResize)}}),Ju={class:"_fc-echarts",ref:"chart"};function Ku(t,e,n,r,i,o){return u.openBlock(),u.createElementBlock("div",Ju,null,512)}const Zu=Se(Xu,[["render",Ku]]);/*!
|
|
43
|
+
* Signature Pad v5.1.1 | https://github.com/szimek/signature_pad
|
|
44
|
+
* (c) 2025 Szymon Nowak | Released under the MIT license
|
|
45
|
+
*/var gn=class{constructor(t,e,n,r){ee(this,"x");ee(this,"y");ee(this,"pressure");ee(this,"time");if(isNaN(t)||isNaN(e))throw new Error(`Point is invalid: (${t}, ${e})`);this.x=+t,this.y=+e,this.pressure=n||0,this.time=r||Date.now()}distanceTo(t){return Math.sqrt(Math.pow(this.x-t.x,2)+Math.pow(this.y-t.y,2))}equals(t){return this.x===t.x&&this.y===t.y&&this.pressure===t.pressure&&this.time===t.time}velocityFrom(t){return this.time!==t.time?this.distanceTo(t)/(this.time-t.time):0}},Qu=class Oa{constructor(e,n,r,i,o,a){this.startPoint=e,this.control2=n,this.control1=r,this.endPoint=i,this.startWidth=o,this.endWidth=a}static fromPoints(e,n){const r=this.calculateControlPoints(e[0],e[1],e[2]).c2,i=this.calculateControlPoints(e[1],e[2],e[3]).c1;return new Oa(e[1],r,i,e[2],n.start,n.end)}static calculateControlPoints(e,n,r){const i=e.x-n.x,o=e.y-n.y,a=n.x-r.x,s=n.y-r.y,l={x:(e.x+n.x)/2,y:(e.y+n.y)/2},f={x:(n.x+r.x)/2,y:(n.y+r.y)/2},c=Math.sqrt(i*i+o*o),p=Math.sqrt(a*a+s*s),m=l.x-f.x,b=l.y-f.y,S=c+p==0?0:p/(c+p),O={x:f.x+m*S,y:f.y+b*S},D=n.x-O.x,B=n.y-O.y;return{c1:new gn(l.x+D,l.y+B),c2:new gn(f.x+D,f.y+B)}}length(){let n=0,r,i;for(let o=0;o<=10;o+=1){const a=o/10,s=this.point(a,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),l=this.point(a,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(o>0){const f=s-r,c=l-i;n+=Math.sqrt(f*f+c*c)}r=s,i=l}return n}point(e,n,r,i,o){return n*(1-e)*(1-e)*(1-e)+3*r*(1-e)*(1-e)*e+3*i*(1-e)*e*e+o*e*e*e}},ec=class{constructor(){ee(this,"_et");try{this._et=new EventTarget}catch{this._et=document}}addEventListener(t,e,n){this._et.addEventListener(t,e,n)}dispatchEvent(t){return this._et.dispatchEvent(t)}removeEventListener(t,e,n){this._et.removeEventListener(t,e,n)}};function tc(t,e=250){let n=0,r=null,i,o,a;const s=()=>{n=Date.now(),r=null,i=t.apply(o,a),r||(o=null,a=[])};return function(...f){const c=Date.now(),p=e-(c-n);return o=this,a=f,p<=0||p>e?(r&&(clearTimeout(r),r=null),n=c,i=t.apply(o,a),r||(o=null,a=[])):r||(r=window.setTimeout(s,p)),i}}var nc=class di extends ec{constructor(n,r={}){var i,o,a;super();ee(this,"dotSize");ee(this,"minWidth");ee(this,"maxWidth");ee(this,"penColor");ee(this,"minDistance");ee(this,"velocityFilterWeight");ee(this,"compositeOperation");ee(this,"backgroundColor");ee(this,"throttle");ee(this,"canvasContextOptions");ee(this,"_ctx");ee(this,"_drawingStroke",!1);ee(this,"_isEmpty",!0);ee(this,"_dataUrl");ee(this,"_dataUrlOptions");ee(this,"_lastPoints",[]);ee(this,"_data",[]);ee(this,"_lastVelocity",0);ee(this,"_lastWidth",0);ee(this,"_strokeMoveUpdate");ee(this,"_strokePointerId");this.canvas=n,this.velocityFilterWeight=r.velocityFilterWeight||.7,this.minWidth=r.minWidth||.5,this.maxWidth=r.maxWidth||2.5,this.throttle=(i=r.throttle)!=null?i:16,this.minDistance=(o=r.minDistance)!=null?o:5,this.dotSize=r.dotSize||0,this.penColor=r.penColor||"black",this.backgroundColor=r.backgroundColor||"rgba(0,0,0,0)",this.compositeOperation=r.compositeOperation||"source-over",this.canvasContextOptions=(a=r.canvasContextOptions)!=null?a:{},this._strokeMoveUpdate=this.throttle?tc(di.prototype._strokeUpdate,this.throttle):di.prototype._strokeUpdate,this._handleMouseDown=this._handleMouseDown.bind(this),this._handleMouseMove=this._handleMouseMove.bind(this),this._handleMouseUp=this._handleMouseUp.bind(this),this._handleTouchStart=this._handleTouchStart.bind(this),this._handleTouchMove=this._handleTouchMove.bind(this),this._handleTouchEnd=this._handleTouchEnd.bind(this),this._handlePointerDown=this._handlePointerDown.bind(this),this._handlePointerMove=this._handlePointerMove.bind(this),this._handlePointerUp=this._handlePointerUp.bind(this),this._ctx=n.getContext("2d",this.canvasContextOptions),this.clear(),this.on()}clear(){const{_ctx:n,canvas:r}=this;n.fillStyle=this.backgroundColor,n.clearRect(0,0,r.width,r.height),n.fillRect(0,0,r.width,r.height),this._data=[],this._reset(this._getPointGroupOptions()),this._isEmpty=!0,this._dataUrl=void 0,this._dataUrlOptions=void 0,this._strokePointerId=void 0}redraw(){const n=this._data,r=this._dataUrl,i=this._dataUrlOptions;this.clear(),r&&this.fromDataURL(r,i),this.fromData(n,{clear:!1})}fromDataURL(n,r={}){return new Promise((i,o)=>{const a=new Image,s=r.ratio||window.devicePixelRatio||1,l=r.width||this.canvas.width/s,f=r.height||this.canvas.height/s,c=r.xOffset||0,p=r.yOffset||0;this._reset(this._getPointGroupOptions()),a.onload=()=>{this._ctx.drawImage(a,c,p,l,f),i()},a.onerror=m=>{o(m)},a.crossOrigin="anonymous",a.src=n,this._isEmpty=!1,this._dataUrl=n,this._dataUrlOptions={...r}})}toDataURL(n="image/png",r){switch(n){case"image/svg+xml":return typeof r!="object"&&(r=void 0),`data:image/svg+xml;base64,${btoa(this.toSVG(r))}`;default:return typeof r!="number"&&(r=void 0),this.canvas.toDataURL(n,r)}}on(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",this.canvas.style.userSelect="none";const n=/Macintosh/.test(navigator.userAgent)&&"ontouchstart"in document;window.PointerEvent&&!n?this._handlePointerEvents():(this._handleMouseEvents(),"ontouchstart"in window&&this._handleTouchEvents())}off(){this.canvas.style.touchAction="auto",this.canvas.style.msTouchAction="auto",this.canvas.style.userSelect="auto",this.canvas.removeEventListener("pointerdown",this._handlePointerDown),this.canvas.removeEventListener("mousedown",this._handleMouseDown),this.canvas.removeEventListener("touchstart",this._handleTouchStart),this._removeMoveUpEventListeners()}_getListenerFunctions(){var r;const n=window.document===this.canvas.ownerDocument?window:(r=this.canvas.ownerDocument.defaultView)!=null?r:this.canvas.ownerDocument;return{addEventListener:n.addEventListener.bind(n),removeEventListener:n.removeEventListener.bind(n)}}_removeMoveUpEventListeners(){const{removeEventListener:n}=this._getListenerFunctions();n("pointermove",this._handlePointerMove),n("pointerup",this._handlePointerUp),n("mousemove",this._handleMouseMove),n("mouseup",this._handleMouseUp),n("touchmove",this._handleTouchMove),n("touchend",this._handleTouchEnd)}isEmpty(){return this._isEmpty}fromData(n,{clear:r=!0}={}){r&&this.clear(),this._fromData(n,this._drawCurve.bind(this),this._drawDot.bind(this)),this._data=this._data.concat(n)}toData(){return this._data}_isLeftButtonPressed(n,r){return r?n.buttons===1:(n.buttons&1)===1}_pointerEventToSignatureEvent(n){return{event:n,type:n.type,x:n.clientX,y:n.clientY,pressure:"pressure"in n?n.pressure:0}}_touchEventToSignatureEvent(n){const r=n.changedTouches[0];return{event:n,type:n.type,x:r.clientX,y:r.clientY,pressure:r.force}}_handleMouseDown(n){!this._isLeftButtonPressed(n,!0)||this._drawingStroke||this._strokeBegin(this._pointerEventToSignatureEvent(n))}_handleMouseMove(n){if(!this._isLeftButtonPressed(n,!0)||!this._drawingStroke){this._strokeEnd(this._pointerEventToSignatureEvent(n),!1);return}this._strokeMoveUpdate(this._pointerEventToSignatureEvent(n))}_handleMouseUp(n){this._isLeftButtonPressed(n)||this._strokeEnd(this._pointerEventToSignatureEvent(n))}_handleTouchStart(n){n.targetTouches.length!==1||this._drawingStroke||(n.cancelable&&n.preventDefault(),this._strokeBegin(this._touchEventToSignatureEvent(n)))}_handleTouchMove(n){if(n.targetTouches.length===1){if(n.cancelable&&n.preventDefault(),!this._drawingStroke){this._strokeEnd(this._touchEventToSignatureEvent(n),!1);return}this._strokeMoveUpdate(this._touchEventToSignatureEvent(n))}}_handleTouchEnd(n){n.targetTouches.length===0&&(n.cancelable&&n.preventDefault(),this._strokeEnd(this._touchEventToSignatureEvent(n)))}_getPointerId(n){return n.persistentDeviceId||n.pointerId}_allowPointerId(n,r=!1){return typeof this._strokePointerId>"u"?r:this._getPointerId(n)===this._strokePointerId}_handlePointerDown(n){this._drawingStroke||!this._isLeftButtonPressed(n)||!this._allowPointerId(n,!0)||(this._strokePointerId=this._getPointerId(n),n.preventDefault(),this._strokeBegin(this._pointerEventToSignatureEvent(n)))}_handlePointerMove(n){if(!!this._allowPointerId(n)){if(!this._isLeftButtonPressed(n,!0)||!this._drawingStroke){this._strokeEnd(this._pointerEventToSignatureEvent(n),!1);return}n.preventDefault(),this._strokeMoveUpdate(this._pointerEventToSignatureEvent(n))}}_handlePointerUp(n){this._isLeftButtonPressed(n)||!this._allowPointerId(n)||(n.preventDefault(),this._strokeEnd(this._pointerEventToSignatureEvent(n)))}_getPointGroupOptions(n){return{penColor:n&&"penColor"in n?n.penColor:this.penColor,dotSize:n&&"dotSize"in n?n.dotSize:this.dotSize,minWidth:n&&"minWidth"in n?n.minWidth:this.minWidth,maxWidth:n&&"maxWidth"in n?n.maxWidth:this.maxWidth,velocityFilterWeight:n&&"velocityFilterWeight"in n?n.velocityFilterWeight:this.velocityFilterWeight,compositeOperation:n&&"compositeOperation"in n?n.compositeOperation:this.compositeOperation}}_strokeBegin(n){if(!this.dispatchEvent(new CustomEvent("beginStroke",{detail:n,cancelable:!0})))return;const{addEventListener:i}=this._getListenerFunctions();switch(n.event.type){case"mousedown":i("mousemove",this._handleMouseMove,{passive:!1}),i("mouseup",this._handleMouseUp,{passive:!1});break;case"touchstart":i("touchmove",this._handleTouchMove,{passive:!1}),i("touchend",this._handleTouchEnd,{passive:!1});break;case"pointerdown":i("pointermove",this._handlePointerMove,{passive:!1}),i("pointerup",this._handlePointerUp,{passive:!1});break}this._drawingStroke=!0;const o=this._getPointGroupOptions(),a={...o,points:[]};this._data.push(a),this._reset(o),this._strokeUpdate(n)}_strokeUpdate(n){if(!this._drawingStroke)return;if(this._data.length===0){this._strokeBegin(n);return}this.dispatchEvent(new CustomEvent("beforeUpdateStroke",{detail:n}));const r=this._createPoint(n.x,n.y,n.pressure),i=this._data[this._data.length-1],o=i.points,a=o.length>0&&o[o.length-1],s=a?r.distanceTo(a)<=this.minDistance:!1,l=this._getPointGroupOptions(i);if(!a||!(a&&s)){const f=this._addPoint(r,l);a?f&&this._drawCurve(f,l):this._drawDot(r,l),o.push({time:r.time,x:r.x,y:r.y,pressure:r.pressure})}this.dispatchEvent(new CustomEvent("afterUpdateStroke",{detail:n}))}_strokeEnd(n,r=!0){this._removeMoveUpEventListeners(),this._drawingStroke&&(r&&this._strokeUpdate(n),this._drawingStroke=!1,this._strokePointerId=void 0,this.dispatchEvent(new CustomEvent("endStroke",{detail:n})))}_handlePointerEvents(){this._drawingStroke=!1,this.canvas.addEventListener("pointerdown",this._handlePointerDown,{passive:!1})}_handleMouseEvents(){this._drawingStroke=!1,this.canvas.addEventListener("mousedown",this._handleMouseDown,{passive:!1})}_handleTouchEvents(){this.canvas.addEventListener("touchstart",this._handleTouchStart,{passive:!1})}_reset(n){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(n.minWidth+n.maxWidth)/2,this._ctx.fillStyle=n.penColor,this._ctx.globalCompositeOperation=n.compositeOperation}_createPoint(n,r,i){const o=this.canvas.getBoundingClientRect();return new gn(n-o.left,r-o.top,i,new Date().getTime())}_addPoint(n,r){const{_lastPoints:i}=this;if(i.push(n),i.length>2){i.length===3&&i.unshift(i[0]);const o=this._calculateCurveWidths(i[1],i[2],r),a=Qu.fromPoints(i,o);return i.shift(),a}return null}_calculateCurveWidths(n,r,i){const o=i.velocityFilterWeight*r.velocityFrom(n)+(1-i.velocityFilterWeight)*this._lastVelocity,a=this._strokeWidth(o,i),s={end:a,start:this._lastWidth};return this._lastVelocity=o,this._lastWidth=a,s}_strokeWidth(n,r){return Math.max(r.maxWidth/(n+1),r.minWidth)}_drawCurveSegment(n,r,i){const o=this._ctx;o.moveTo(n,r),o.arc(n,r,i,0,2*Math.PI,!1),this._isEmpty=!1}_drawCurve(n,r){const i=this._ctx,o=n.endWidth-n.startWidth,a=Math.ceil(n.length())*2;i.beginPath(),i.fillStyle=r.penColor;for(let s=0;s<a;s+=1){const l=s/a,f=l*l,c=f*l,p=1-l,m=p*p,b=m*p;let S=b*n.startPoint.x;S+=3*m*l*n.control1.x,S+=3*p*f*n.control2.x,S+=c*n.endPoint.x;let O=b*n.startPoint.y;O+=3*m*l*n.control1.y,O+=3*p*f*n.control2.y,O+=c*n.endPoint.y;const D=Math.min(n.startWidth+c*o,r.maxWidth);this._drawCurveSegment(S,O,D)}i.closePath(),i.fill()}_drawDot(n,r){const i=this._ctx,o=r.dotSize>0?r.dotSize:(r.minWidth+r.maxWidth)/2;i.beginPath(),this._drawCurveSegment(n.x,n.y,o),i.closePath(),i.fillStyle=r.penColor,i.fill()}_fromData(n,r,i){for(const o of n){const{points:a}=o,s=this._getPointGroupOptions(o);if(a.length>1)for(let l=0;l<a.length;l+=1){const f=a[l],c=new gn(f.x,f.y,f.pressure,f.time);l===0&&this._reset(s);const p=this._addPoint(c,s);p&&r(p,s)}else this._reset(s),i(a[0],s)}}toSVG({includeBackgroundColor:n=!1,includeDataUrl:r=!1}={}){var p,m,b,S,O;const i=this._data,o=Math.max(window.devicePixelRatio||1,1),a=0,s=0,l=this.canvas.width/o,f=this.canvas.height/o,c=document.createElementNS("http://www.w3.org/2000/svg","svg");if(c.setAttribute("xmlns","http://www.w3.org/2000/svg"),c.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),c.setAttribute("viewBox",`${a} ${s} ${l} ${f}`),c.setAttribute("width",l.toString()),c.setAttribute("height",f.toString()),n&&this.backgroundColor){const D=document.createElement("rect");D.setAttribute("width","100%"),D.setAttribute("height","100%"),D.setAttribute("fill",this.backgroundColor),c.appendChild(D)}if(r&&this._dataUrl){const D=((p=this._dataUrlOptions)==null?void 0:p.ratio)||window.devicePixelRatio||1,B=((m=this._dataUrlOptions)==null?void 0:m.width)||this.canvas.width/D,F=((b=this._dataUrlOptions)==null?void 0:b.height)||this.canvas.height/D,I=((S=this._dataUrlOptions)==null?void 0:S.xOffset)||0,Y=((O=this._dataUrlOptions)==null?void 0:O.yOffset)||0,W=document.createElement("image");W.setAttribute("x",I.toString()),W.setAttribute("y",Y.toString()),W.setAttribute("width",B.toString()),W.setAttribute("height",F.toString()),W.setAttribute("preserveAspectRatio","none"),W.setAttribute("href",this._dataUrl),c.appendChild(W)}return this._fromData(i,(D,{penColor:B})=>{const F=document.createElement("path");if(!isNaN(D.control1.x)&&!isNaN(D.control1.y)&&!isNaN(D.control2.x)&&!isNaN(D.control2.y)){const I=`M ${D.startPoint.x.toFixed(3)},${D.startPoint.y.toFixed(3)} C ${D.control1.x.toFixed(3)},${D.control1.y.toFixed(3)} ${D.control2.x.toFixed(3)},${D.control2.y.toFixed(3)} ${D.endPoint.x.toFixed(3)},${D.endPoint.y.toFixed(3)}`;F.setAttribute("d",I),F.setAttribute("stroke-width",(D.endWidth*2.25).toFixed(3)),F.setAttribute("stroke",B),F.setAttribute("fill","none"),F.setAttribute("stroke-linecap","round"),c.appendChild(F)}},(D,{penColor:B,dotSize:F,minWidth:I,maxWidth:Y})=>{const W=document.createElement("circle"),U=F>0?F:(I+Y)/2;W.setAttribute("r",U.toString()),W.setAttribute("cx",D.x.toString()),W.setAttribute("cy",D.y.toString()),W.setAttribute("fill",B),c.appendChild(W)}),c.outerHTML}};const l1="",rc=u.defineComponent({name:"SignaturePad",emits:["update:modelValue","change","remove"],data(){return{visible:!1,isEmpty:!0,signaturePad:null}},props:{modelValue:String,penColor:String,disabled:Boolean,formCreateInject:Object},watch:{visible(t){t?(this.isEmpty=!0,this.$nextTick(()=>{this.signaturePad=u.markRaw(new nc(this.$refs.pad,{penColor:this.penColor})),this.signaturePad.addEventListener("endStroke",()=>{this.isEmpty=this.signaturePad.isEmpty()})})):(this.signaturePad.off(),this.signaturePad=null)}},methods:{open(){this.disabled||(this.visible=!0)},beforeClose(){return!1},clear(){this.signaturePad.clear(),this.isEmpty=!0},submit(){const t=this.signaturePad.toDataURL();this.updateValue(t),this.visible=!1},updateValue(t){this.$emit("update:modelValue",t),this.$emit("change",t)},remove(){this.disabled||(this.updateValue(""),this.$emit("remove"))}}}),ic={key:0,class:"_fc-m-signature-preview"},oc=["src"],ac={class:"_fc-m-signature-pad",ref:"pad",width:"320px",height:"145px"};function sc(t,e,n,r,i,o){const a=u.resolveComponent("van-dialog");return u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["_fc-m-signature",{disabled:t.disabled}])},[t.modelValue?(u.openBlock(),u.createElementBlock("div",ic,[t.disabled?u.createCommentVNode("",!0):(u.openBlock(),u.createElementBlock("i",{key:0,class:"fc-icon icon-delete2",onClick:e[0]||(e[0]=(...s)=>t.remove&&t.remove(...s))})),u.createElementVNode("img",{src:t.modelValue,alt:"signature"},null,8,oc)])):(u.openBlock(),u.createElementBlock("div",{key:1,class:"_fc-signature-btn",onClick:e[1]||(e[1]=(...s)=>t.open&&t.open(...s))},[e[4]||(e[4]=u.createElementVNode("i",{class:"fc-icon icon-edit2"},null,-1)),u.createTextVNode(" "+u.toDisplayString(t.formCreateInject.t("signaturePadTip")||"\u70B9\u51FB\u6DFB\u52A0\u624B\u5199\u7B7E\u540D"),1)])),u.createVNode(a,{show:t.visible,"onUpdate:show":e[3]||(e[3]=s=>t.visible=s),class:"_fc-m-signature-dialog",beforeClose:t.beforeClose,onConfirm:t.submit,onCancel:t.clear,"show-cancel-button":"","confirm-button-text":t.formCreateInject.t("ok")||"\u786E\u5B9A","cancel-button-text":t.formCreateInject.t("reset")||"\u91CD\u7F6E","confirm-button-disabled":t.isEmpty},{title:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(t.formCreateInject.t("signaturePadTitle")||"\u8BF7\u5728\u865A\u7EBF\u6846\u5185\u4E66\u5199")+" ",1),u.createElementVNode("i",{class:"fc-icon icon-add2",onClick:e[2]||(e[2]=s=>t.visible=!1)})]),default:u.withCtx(()=>[u.createElementVNode("canvas",ac,null,512)]),_:1},8,["show","beforeClose","onConfirm","onCancel","confirm-button-text","cancel-button-text","confirm-button-disabled"])],2)}const lc=Se(rc,[["render",sc]]);function dr(t,e,n){for(var r=[],i=Math.max(t.length,e.length),o=0,a=0;a<i||o;){var s=a<t.length?t[a]:0,l=a<e.length?e[a]:0,f=o+s+l;r.push(f%n),o=Math.floor(f/n),a++}return r}function po(t,e,n){if(t<0)return null;if(t==0)return[];for(var r=[],i=e;t&1&&(r=dr(r,i,n)),t=t>>1,t!==0;)i=dr(i,i,n);return r}function uc(t,e){for(var n=t.split(""),r=[],i=n.length-1;i>=0;i--){var o=parseInt(n[i],e);if(isNaN(o))return null;r.push(o)}return r}function cc(t,e,n){var r=uc(t,e);if(r===null)return null;for(var i=[],o=[1],a=0;a<r.length;a++)r[a]&&(i=dr(i,po(r[a],o,n),n)),o=po(e,o,n);for(var s="",a=i.length-1;a>=0;a--)s+=i[a].toString(n);return s}function fc(t){return t.substring(0,2)==="0x"&&(t=t.substring(2)),t=t.toLowerCase(),cc(t,16,10)}class dc{constructor(e){e=e||{},this.seq=0,this.mid=(e.mid||1)%1023,this.offset=e.offset||0,this.lastTime=0}generate(){const e=Date.now(),n=(e-this.offset).toString(2);this.lastTime==e?(this.seq++,this.seq>4095&&(this.seq=0)):this.seq=0,this.lastTime=e;let r=this.seq.toString(2),i=this.mid.toString(2);for(;r.length<12;)r="0"+r;for(;i.length<10;)i="0"+i;const o=n+i+r;let a="";for(let s=o.length;s>0;s-=4)a=parseInt(o.substring(s-4,s),2).toString(16)+a;return fc(a)}}const hc=u.defineComponent({name:"FcId",props:["modelValue","prefix"],emits:["update:modelValue"],inject:{designer:{default:null}},data(){return{preview:"7379787000000000"}},watch:{modelValue:{handler:function(t){if(!t){const e=new dc({mid:42,offset:173448e7});this.$emit("update:modelValue",""+(this.prefix||"")+e.generate())}},immediate:!0}}});function pc(t,e,n,r,i,o){const a=u.resolveComponent("el-input");return u.openBlock(),u.createBlock(a,{modelValue:t.designer?""+(t.prefix||"")+t.preview:t.modelValue,readonly:"",disabled:""},null,8,["modelValue"])}const mc=Se(hc,[["render",pc]]),u1="",gc=u.defineComponent({name:"FcTitle",data(){return{}},props:{title:String,size:String,align:String},computed:{textStyle(){return{textAlign:this.align||"left"}}}});function vc(t,e,n,r,i,o){return u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["_fc-title",t.size||"h2"]),style:u.normalizeStyle(t.textStyle)},u.toDisplayString(t.title),7)}const yc=Se(gc,[["render",vc]]);function hr(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var gt=hr();function mo(t){gt=t}var Lt={exec:()=>null};function ge(t,e=""){let n=typeof t=="string"?t:t.source;const r={replace:(i,o)=>{let a=typeof o=="string"?o:o.source;return a=a.replace(Pe.caret,"$1"),n=n.replace(i,a),r},getRegex:()=>new RegExp(n,e)};return r}var Pe={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i")},_c=/^(?:[ \t]*(?:\n|$))+/,bc=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,wc=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,zt=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,$c=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,pr=/(?:[*+-]|\d{1,9}[.)])/,go=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,vo=ge(go).replace(/bull/g,pr).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Sc=ge(go).replace(/bull/g,pr).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),mr=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Oc=/^[^\n]+/,gr=/(?!\s*\])(?:\\.|[^\[\]\\])+/,xc=ge(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",gr).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Cc=ge(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,pr).getRegex(),vn="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",vr=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ec=ge("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",vr).replace("tag",vn).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),yo=ge(mr).replace("hr",zt).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",vn).getRegex(),kc=ge(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",yo).getRegex(),yr={blockquote:kc,code:bc,def:xc,fences:wc,heading:$c,hr:zt,html:Ec,lheading:vo,list:Cc,newline:_c,paragraph:yo,table:Lt,text:Oc},_o=ge("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",zt).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",vn).getRegex(),Ac={...yr,lheading:Sc,table:_o,paragraph:ge(mr).replace("hr",zt).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",_o).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",vn).getRegex()},Dc={...yr,html:ge(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",vr).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Lt,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ge(mr).replace("hr",zt).replace("heading",` *#{1,6} *[^
|
|
46
|
+
]`).replace("lheading",vo).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Rc=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Pc=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,bo=/^( {2,}|\\)\n(?!\s*$)/,Vc=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,yn=/[\p{P}\p{S}]/u,_r=/[\s\p{P}\p{S}]/u,wo=/[^\s\p{P}\p{S}]/u,Tc=ge(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,_r).getRegex(),$o=/(?!~)[\p{P}\p{S}]/u,Mc=/(?!~)[\s\p{P}\p{S}]/u,jc=/(?:[^\s\p{P}\p{S}]|~)/u,Ic=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,So=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Fc=ge(So,"u").replace(/punct/g,yn).getRegex(),Bc=ge(So,"u").replace(/punct/g,$o).getRegex(),Oo="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Nc=ge(Oo,"gu").replace(/notPunctSpace/g,wo).replace(/punctSpace/g,_r).replace(/punct/g,yn).getRegex(),Lc=ge(Oo,"gu").replace(/notPunctSpace/g,jc).replace(/punctSpace/g,Mc).replace(/punct/g,$o).getRegex(),zc=ge("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,wo).replace(/punctSpace/g,_r).replace(/punct/g,yn).getRegex(),Uc=ge(/\\(punct)/,"gu").replace(/punct/g,yn).getRegex(),qc=ge(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Gc=ge(vr).replace("(?:-->|$)","-->").getRegex(),Hc=ge("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Gc).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),_n=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Wc=ge(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",_n).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),xo=ge(/^!?\[(label)\]\[(ref)\]/).replace("label",_n).replace("ref",gr).getRegex(),Co=ge(/^!?\[(ref)\](?:\[\])?/).replace("ref",gr).getRegex(),Yc=ge("reflink|nolink(?!\\()","g").replace("reflink",xo).replace("nolink",Co).getRegex(),br={_backpedal:Lt,anyPunctuation:Uc,autolink:qc,blockSkip:Ic,br:bo,code:Pc,del:Lt,emStrongLDelim:Fc,emStrongRDelimAst:Nc,emStrongRDelimUnd:zc,escape:Rc,link:Wc,nolink:Co,punctuation:Tc,reflink:xo,reflinkSearch:Yc,tag:Hc,text:Vc,url:Lt},Xc={...br,link:ge(/^!?\[(label)\]\((.*?)\)/).replace("label",_n).getRegex(),reflink:ge(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",_n).getRegex()},wr={...br,emStrongRDelimAst:Lc,emStrongLDelim:Bc,url:ge(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Jc={...wr,br:ge(bo).replace("{2,}","*").getRegex(),text:ge(wr.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},bn={normal:yr,gfm:Ac,pedantic:Dc},Ut={normal:br,gfm:wr,breaks:Jc,pedantic:Xc},Kc={"&":"&","<":"<",">":">",'"':""","'":"'"},Eo=t=>Kc[t];function Qe(t,e){if(e){if(Pe.escapeTest.test(t))return t.replace(Pe.escapeReplace,Eo)}else if(Pe.escapeTestNoEncode.test(t))return t.replace(Pe.escapeReplaceNoEncode,Eo);return t}function ko(t){try{t=encodeURI(t).replace(Pe.percentDecode,"%")}catch{return null}return t}function Ao(t,e){var o;const n=t.replace(Pe.findPipe,(a,s,l)=>{let f=!1,c=s;for(;--c>=0&&l[c]==="\\";)f=!f;return f?"|":" |"}),r=n.split(Pe.splitPipe);let i=0;if(r[0].trim()||r.shift(),r.length>0&&!((o=r.at(-1))!=null&&o.trim())&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(Pe.slashPipe,"|");return r}function qt(t,e,n){const r=t.length;if(r===0)return"";let i=0;for(;i<r;){const o=t.charAt(r-i-1);if(o===e&&!n)i++;else if(o!==e&&n)i++;else break}return t.slice(0,r-i)}function Zc(t,e){if(t.indexOf(e[1])===-1)return-1;let n=0;for(let r=0;r<t.length;r++)if(t[r]==="\\")r++;else if(t[r]===e[0])n++;else if(t[r]===e[1]&&(n--,n<0))return r;return n>0?-2:-1}function Do(t,e,n,r,i){const o=e.href,a=e.title||null,s=t[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;const l={type:t[0].charAt(0)==="!"?"image":"link",raw:n,href:o,title:a,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,l}function Qc(t,e,n){const r=t.match(n.other.indentCodeCompensation);if(r===null)return e;const i=r[1];return e.split(`
|
|
47
|
+
`).map(o=>{const a=o.match(n.other.beginningSpace);if(a===null)return o;const[s]=a;return s.length>=i.length?o.slice(i.length):o}).join(`
|
|
48
|
+
`)}var wn=class{constructor(t){ee(this,"options");ee(this,"rules");ee(this,"lexer");this.options=t||gt}space(t){const e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){const e=this.rules.block.code.exec(t);if(e){const n=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?n:qt(n,`
|
|
49
|
+
`)}}}fences(t){const e=this.rules.block.fences.exec(t);if(e){const n=e[0],r=Qc(n,e[3]||"",this.rules);return{type:"code",raw:n,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:r}}}heading(t){const e=this.rules.block.heading.exec(t);if(e){let n=e[2].trim();if(this.rules.other.endingHash.test(n)){const r=qt(n,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(n=r.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(t){const e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:qt(e[0],`
|
|
50
|
+
`)}}blockquote(t){const e=this.rules.block.blockquote.exec(t);if(e){let n=qt(e[0],`
|
|
51
|
+
`).split(`
|
|
52
|
+
`),r="",i="";const o=[];for(;n.length>0;){let a=!1;const s=[];let l;for(l=0;l<n.length;l++)if(this.rules.other.blockquoteStart.test(n[l]))s.push(n[l]),a=!0;else if(!a)s.push(n[l]);else break;n=n.slice(l);const f=s.join(`
|
|
53
|
+
`),c=f.replace(this.rules.other.blockquoteSetextReplace,`
|
|
54
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
|
|
55
|
+
${f}`:f,i=i?`${i}
|
|
56
|
+
${c}`:c;const p=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,o,!0),this.lexer.state.top=p,n.length===0)break;const m=o.at(-1);if((m==null?void 0:m.type)==="code")break;if((m==null?void 0:m.type)==="blockquote"){const b=m,S=b.raw+`
|
|
57
|
+
`+n.join(`
|
|
58
|
+
`),O=this.blockquote(S);o[o.length-1]=O,r=r.substring(0,r.length-b.raw.length)+O.raw,i=i.substring(0,i.length-b.text.length)+O.text;break}else if((m==null?void 0:m.type)==="list"){const b=m,S=b.raw+`
|
|
59
|
+
`+n.join(`
|
|
60
|
+
`),O=this.list(S);o[o.length-1]=O,r=r.substring(0,r.length-m.raw.length)+O.raw,i=i.substring(0,i.length-b.raw.length)+O.raw,n=S.substring(o.at(-1).raw.length).split(`
|
|
61
|
+
`);continue}}return{type:"blockquote",raw:r,tokens:o,text:i}}}list(t){let e=this.rules.block.list.exec(t);if(e){let n=e[1].trim();const r=n.length>1,i={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");const o=this.rules.other.listItemRegex(n);let a=!1;for(;t;){let l=!1,f="",c="";if(!(e=o.exec(t))||this.rules.block.hr.test(t))break;f=e[0],t=t.substring(f.length);let p=e[2].split(`
|
|
62
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,B=>" ".repeat(3*B.length)),m=t.split(`
|
|
63
|
+
`,1)[0],b=!p.trim(),S=0;if(this.options.pedantic?(S=2,c=p.trimStart()):b?S=e[1].length+1:(S=e[2].search(this.rules.other.nonSpaceChar),S=S>4?1:S,c=p.slice(S),S+=e[1].length),b&&this.rules.other.blankLine.test(m)&&(f+=m+`
|
|
64
|
+
`,t=t.substring(m.length+1),l=!0),!l){const B=this.rules.other.nextBulletRegex(S),F=this.rules.other.hrRegex(S),I=this.rules.other.fencesBeginRegex(S),Y=this.rules.other.headingBeginRegex(S),W=this.rules.other.htmlBeginRegex(S);for(;t;){const U=t.split(`
|
|
65
|
+
`,1)[0];let re;if(m=U,this.options.pedantic?(m=m.replace(this.rules.other.listReplaceNesting," "),re=m):re=m.replace(this.rules.other.tabCharGlobal," "),I.test(m)||Y.test(m)||W.test(m)||B.test(m)||F.test(m))break;if(re.search(this.rules.other.nonSpaceChar)>=S||!m.trim())c+=`
|
|
66
|
+
`+re.slice(S);else{if(b||p.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||I.test(p)||Y.test(p)||F.test(p))break;c+=`
|
|
67
|
+
`+m}!b&&!m.trim()&&(b=!0),f+=U+`
|
|
68
|
+
`,t=t.substring(U.length+1),p=re.slice(S)}}i.loose||(a?i.loose=!0:this.rules.other.doubleBlankLine.test(f)&&(a=!0));let O=null,D;this.options.gfm&&(O=this.rules.other.listIsTask.exec(c),O&&(D=O[0]!=="[ ] ",c=c.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:f,task:!!O,checked:D,loose:!1,text:c,tokens:[]}),i.raw+=f}const s=i.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let l=0;l<i.items.length;l++)if(this.lexer.state.top=!1,i.items[l].tokens=this.lexer.blockTokens(i.items[l].text,[]),!i.loose){const f=i.items[l].tokens.filter(p=>p.type==="space"),c=f.length>0&&f.some(p=>this.rules.other.anyLine.test(p.raw));i.loose=c}if(i.loose)for(let l=0;l<i.items.length;l++)i.items[l].loose=!0;return i}}html(t){const e=this.rules.block.html.exec(t);if(e)return{type:"html",block:!0,raw:e[0],pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:e[0]}}def(t){const e=this.rules.block.def.exec(t);if(e){const n=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:n,raw:e[0],href:r,title:i}}}table(t){var a;const e=this.rules.block.table.exec(t);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;const n=Ao(e[1]),r=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=(a=e[3])!=null&&a.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
69
|
+
`):[],o={type:"table",raw:e[0],header:[],align:[],rows:[]};if(n.length===r.length){for(const s of r)this.rules.other.tableAlignRight.test(s)?o.align.push("right"):this.rules.other.tableAlignCenter.test(s)?o.align.push("center"):this.rules.other.tableAlignLeft.test(s)?o.align.push("left"):o.align.push(null);for(let s=0;s<n.length;s++)o.header.push({text:n[s],tokens:this.lexer.inline(n[s]),header:!0,align:o.align[s]});for(const s of i)o.rows.push(Ao(s,o.header.length).map((l,f)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:o.align[f]})));return o}}lheading(t){const e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(t){const e=this.rules.block.paragraph.exec(t);if(e){const n=e[1].charAt(e[1].length-1)===`
|
|
70
|
+
`?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:n,tokens:this.lexer.inline(n)}}}text(t){const e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){const e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){const e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){const e=this.rules.inline.link.exec(t);if(e){const n=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;const o=qt(n.slice(0,-1),"\\");if((n.length-o.length)%2===0)return}else{const o=Zc(e[2],"()");if(o===-2)return;if(o>-1){const s=(e[0].indexOf("!")===0?5:4)+e[1].length+o;e[2]=e[2].substring(0,o),e[0]=e[0].substring(0,s).trim(),e[3]=""}}let r=e[2],i="";if(this.options.pedantic){const o=this.rules.other.pedanticHrefTitle.exec(r);o&&(r=o[1],i=o[3])}else i=e[3]?e[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?r=r.slice(1):r=r.slice(1,-1)),Do(e,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(t,e){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){const r=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=e[r.toLowerCase()];if(!i){const o=n[0].charAt(0);return{type:"text",raw:o,text:o}}return Do(n,i,n[0],this.lexer,this.rules)}}emStrong(t,e,n=""){let r=this.rules.inline.emStrongLDelim.exec(t);if(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))return;if(!(r[1]||r[2]||"")||!n||this.rules.inline.punctuation.exec(n)){const o=[...r[0]].length-1;let a,s,l=o,f=0;const c=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,e=e.slice(-1*t.length+o);(r=c.exec(e))!=null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(s=[...a].length,r[3]||r[4]){l+=s;continue}else if((r[5]||r[6])&&o%3&&!((o+s)%3)){f+=s;continue}if(l-=s,l>0)continue;s=Math.min(s,s+l+f);const p=[...r[0]][0].length,m=t.slice(0,o+r.index+p+s);if(Math.min(o,s)%2){const S=m.slice(1,-1);return{type:"em",raw:m,text:S,tokens:this.lexer.inlineTokens(S)}}const b=m.slice(2,-2);return{type:"strong",raw:m,text:b,tokens:this.lexer.inlineTokens(b)}}}}codespan(t){const e=this.rules.inline.code.exec(t);if(e){let n=e[2].replace(this.rules.other.newLineCharGlobal," ");const r=this.rules.other.nonSpaceChar.test(n),i=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&i&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:e[0],text:n}}}br(t){const e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t){const e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(t){const e=this.rules.inline.autolink.exec(t);if(e){let n,r;return e[2]==="@"?(n=e[1],r="mailto:"+n):(n=e[1],r=n),{type:"link",raw:e[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(t){var n,r;let e;if(e=this.rules.inline.url.exec(t)){let i,o;if(e[2]==="@")i=e[0],o="mailto:"+i;else{let a;do a=e[0],e[0]=(r=(n=this.rules.inline._backpedal.exec(e[0]))==null?void 0:n[0])!=null?r:"";while(a!==e[0]);i=e[0],e[1]==="www."?o="http://"+e[0]:o=e[0]}return{type:"link",raw:e[0],text:i,href:o,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(t){const e=this.rules.inline.text.exec(t);if(e){const n=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:n}}}},it=class hi{constructor(e){ee(this,"tokens");ee(this,"options");ee(this,"state");ee(this,"tokenizer");ee(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=e||gt,this.options.tokenizer=this.options.tokenizer||new wn,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const n={other:Pe,block:bn.normal,inline:Ut.normal};this.options.pedantic?(n.block=bn.pedantic,n.inline=Ut.pedantic):this.options.gfm&&(n.block=bn.gfm,this.options.breaks?n.inline=Ut.breaks:n.inline=Ut.gfm),this.tokenizer.rules=n}static get rules(){return{block:bn,inline:Ut}}static lex(e,n){return new hi(n).lex(e)}static lexInline(e,n){return new hi(n).inlineTokens(e)}lex(e){e=e.replace(Pe.carriageReturn,`
|
|
71
|
+
`),this.blockTokens(e,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){const r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,n=[],r=!1){var i,o,a;for(this.options.pedantic&&(e=e.replace(Pe.tabCharGlobal," ").replace(Pe.spaceLine,""));e;){let s;if((o=(i=this.options.extensions)==null?void 0:i.block)!=null&&o.some(f=>(s=f.call({lexer:this},e,n))?(e=e.substring(s.raw.length),n.push(s),!0):!1))continue;if(s=this.tokenizer.space(e)){e=e.substring(s.raw.length);const f=n.at(-1);s.raw.length===1&&f!==void 0?f.raw+=`
|
|
72
|
+
`:n.push(s);continue}if(s=this.tokenizer.code(e)){e=e.substring(s.raw.length);const f=n.at(-1);(f==null?void 0:f.type)==="paragraph"||(f==null?void 0:f.type)==="text"?(f.raw+=`
|
|
73
|
+
`+s.raw,f.text+=`
|
|
74
|
+
`+s.text,this.inlineQueue.at(-1).src=f.text):n.push(s);continue}if(s=this.tokenizer.fences(e)){e=e.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.heading(e)){e=e.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.hr(e)){e=e.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.blockquote(e)){e=e.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.list(e)){e=e.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.html(e)){e=e.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.def(e)){e=e.substring(s.raw.length);const f=n.at(-1);(f==null?void 0:f.type)==="paragraph"||(f==null?void 0:f.type)==="text"?(f.raw+=`
|
|
75
|
+
`+s.raw,f.text+=`
|
|
76
|
+
`+s.raw,this.inlineQueue.at(-1).src=f.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title});continue}if(s=this.tokenizer.table(e)){e=e.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.lheading(e)){e=e.substring(s.raw.length),n.push(s);continue}let l=e;if((a=this.options.extensions)!=null&&a.startBlock){let f=1/0;const c=e.slice(1);let p;this.options.extensions.startBlock.forEach(m=>{p=m.call({lexer:this},c),typeof p=="number"&&p>=0&&(f=Math.min(f,p))}),f<1/0&&f>=0&&(l=e.substring(0,f+1))}if(this.state.top&&(s=this.tokenizer.paragraph(l))){const f=n.at(-1);r&&(f==null?void 0:f.type)==="paragraph"?(f.raw+=`
|
|
77
|
+
`+s.raw,f.text+=`
|
|
78
|
+
`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=f.text):n.push(s),r=l.length!==e.length,e=e.substring(s.raw.length);continue}if(s=this.tokenizer.text(e)){e=e.substring(s.raw.length);const f=n.at(-1);(f==null?void 0:f.type)==="text"?(f.raw+=`
|
|
79
|
+
`+s.raw,f.text+=`
|
|
80
|
+
`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=f.text):n.push(s);continue}if(e){const f="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(f);break}else throw new Error(f)}}return this.state.top=!0,n}inline(e,n=[]){return this.inlineQueue.push({src:e,tokens:n}),n}inlineTokens(e,n=[]){var s,l,f;let r=e,i=null;if(this.tokens.links){const c=Object.keys(this.tokens.links);if(c.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)c.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,i.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(i=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let o=!1,a="";for(;e;){o||(a=""),o=!1;let c;if((l=(s=this.options.extensions)==null?void 0:s.inline)!=null&&l.some(m=>(c=m.call({lexer:this},e,n))?(e=e.substring(c.raw.length),n.push(c),!0):!1))continue;if(c=this.tokenizer.escape(e)){e=e.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.tag(e)){e=e.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.link(e)){e=e.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(c.raw.length);const m=n.at(-1);c.type==="text"&&(m==null?void 0:m.type)==="text"?(m.raw+=c.raw,m.text+=c.text):n.push(c);continue}if(c=this.tokenizer.emStrong(e,r,a)){e=e.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.codespan(e)){e=e.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.br(e)){e=e.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.del(e)){e=e.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.autolink(e)){e=e.substring(c.raw.length),n.push(c);continue}if(!this.state.inLink&&(c=this.tokenizer.url(e))){e=e.substring(c.raw.length),n.push(c);continue}let p=e;if((f=this.options.extensions)!=null&&f.startInline){let m=1/0;const b=e.slice(1);let S;this.options.extensions.startInline.forEach(O=>{S=O.call({lexer:this},b),typeof S=="number"&&S>=0&&(m=Math.min(m,S))}),m<1/0&&m>=0&&(p=e.substring(0,m+1))}if(c=this.tokenizer.inlineText(p)){e=e.substring(c.raw.length),c.raw.slice(-1)!=="_"&&(a=c.raw.slice(-1)),o=!0;const m=n.at(-1);(m==null?void 0:m.type)==="text"?(m.raw+=c.raw,m.text+=c.text):n.push(c);continue}if(e){const m="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(m);break}else throw new Error(m)}}return n}},$n=class{constructor(t){ee(this,"options");ee(this,"parser");this.options=t||gt}space(t){return""}code({text:t,lang:e,escaped:n}){var o;const r=(o=(e||"").match(Pe.notSpaceStart))==null?void 0:o[0],i=t.replace(Pe.endingNewline,"")+`
|
|
81
|
+
`;return r?'<pre><code class="language-'+Qe(r)+'">'+(n?i:Qe(i,!0))+`</code></pre>
|
|
82
|
+
`:"<pre><code>"+(n?i:Qe(i,!0))+`</code></pre>
|
|
83
|
+
`}blockquote({tokens:t}){return`<blockquote>
|
|
84
|
+
${this.parser.parse(t)}</blockquote>
|
|
85
|
+
`}html({text:t}){return t}heading({tokens:t,depth:e}){return`<h${e}>${this.parser.parseInline(t)}</h${e}>
|
|
86
|
+
`}hr(t){return`<hr>
|
|
87
|
+
`}list(t){const e=t.ordered,n=t.start;let r="";for(let a=0;a<t.items.length;a++){const s=t.items[a];r+=this.listitem(s)}const i=e?"ol":"ul",o=e&&n!==1?' start="'+n+'"':"";return"<"+i+o+`>
|
|
88
|
+
`+r+"</"+i+`>
|
|
89
|
+
`}listitem(t){var n;let e="";if(t.task){const r=this.checkbox({checked:!!t.checked});t.loose?((n=t.tokens[0])==null?void 0:n.type)==="paragraph"?(t.tokens[0].text=r+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=r+" "+Qe(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:r+" ",text:r+" ",escaped:!0}):e+=r+" "}return e+=this.parser.parse(t.tokens,!!t.loose),`<li>${e}</li>
|
|
90
|
+
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
|
|
91
|
+
`}table(t){let e="",n="";for(let i=0;i<t.header.length;i++)n+=this.tablecell(t.header[i]);e+=this.tablerow({text:n});let r="";for(let i=0;i<t.rows.length;i++){const o=t.rows[i];n="";for(let a=0;a<o.length;a++)n+=this.tablecell(o[a]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
|
|
92
|
+
<thead>
|
|
93
|
+
`+e+`</thead>
|
|
94
|
+
`+r+`</table>
|
|
95
|
+
`}tablerow({text:t}){return`<tr>
|
|
96
|
+
${t}</tr>
|
|
97
|
+
`}tablecell(t){const e=this.parser.parseInline(t.tokens),n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`</${n}>
|
|
98
|
+
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${Qe(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:n}){const r=this.parser.parseInline(n),i=ko(t);if(i===null)return r;t=i;let o='<a href="'+t+'"';return e&&(o+=' title="'+Qe(e)+'"'),o+=">"+r+"</a>",o}image({href:t,title:e,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));const i=ko(t);if(i===null)return Qe(n);t=i;let o=`<img src="${t}" alt="${n}"`;return e&&(o+=` title="${Qe(e)}"`),o+=">",o}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:Qe(t.text)}},$r=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}},ot=class pi{constructor(e){ee(this,"options");ee(this,"renderer");ee(this,"textRenderer");this.options=e||gt,this.options.renderer=this.options.renderer||new $n,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new $r}static parse(e,n){return new pi(n).parse(e)}static parseInline(e,n){return new pi(n).parseInline(e)}parse(e,n=!0){var i,o;let r="";for(let a=0;a<e.length;a++){const s=e[a];if((o=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&o[s.type]){const f=s,c=this.options.extensions.renderers[f.type].call({parser:this},f);if(c!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(f.type)){r+=c||"";continue}}const l=s;switch(l.type){case"space":{r+=this.renderer.space(l);continue}case"hr":{r+=this.renderer.hr(l);continue}case"heading":{r+=this.renderer.heading(l);continue}case"code":{r+=this.renderer.code(l);continue}case"table":{r+=this.renderer.table(l);continue}case"blockquote":{r+=this.renderer.blockquote(l);continue}case"list":{r+=this.renderer.list(l);continue}case"html":{r+=this.renderer.html(l);continue}case"paragraph":{r+=this.renderer.paragraph(l);continue}case"text":{let f=l,c=this.renderer.text(f);for(;a+1<e.length&&e[a+1].type==="text";)f=e[++a],c+=`
|
|
99
|
+
`+this.renderer.text(f);n?r+=this.renderer.paragraph({type:"paragraph",raw:c,text:c,tokens:[{type:"text",raw:c,text:c,escaped:!0}]}):r+=c;continue}default:{const f='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(f),"";throw new Error(f)}}}return r}parseInline(e,n=this.renderer){var i,o;let r="";for(let a=0;a<e.length;a++){const s=e[a];if((o=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&o[s.type]){const f=this.options.extensions.renderers[s.type].call({parser:this},s);if(f!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){r+=f||"";continue}}const l=s;switch(l.type){case"escape":{r+=n.text(l);break}case"html":{r+=n.html(l);break}case"link":{r+=n.link(l);break}case"image":{r+=n.image(l);break}case"strong":{r+=n.strong(l);break}case"em":{r+=n.em(l);break}case"codespan":{r+=n.codespan(l);break}case"br":{r+=n.br(l);break}case"del":{r+=n.del(l);break}case"text":{r+=n.text(l);break}default:{const f='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(f),"";throw new Error(f)}}}return r}},Sn=(fi=class{constructor(t){ee(this,"options");ee(this,"block");this.options=t||gt}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}provideLexer(){return this.block?it.lex:it.lexInline}provideParser(){return this.block?ot.parse:ot.parseInline}},ee(fi,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"])),fi),Ro=class{constructor(...t){ee(this,"defaults",hr());ee(this,"options",this.setOptions);ee(this,"parse",this.parseMarkdown(!0));ee(this,"parseInline",this.parseMarkdown(!1));ee(this,"Parser",ot);ee(this,"Renderer",$n);ee(this,"TextRenderer",$r);ee(this,"Lexer",it);ee(this,"Tokenizer",wn);ee(this,"Hooks",Sn);this.use(...t)}walkTokens(t,e){var r,i;let n=[];for(const o of t)switch(n=n.concat(e.call(this,o)),o.type){case"table":{const a=o;for(const s of a.header)n=n.concat(this.walkTokens(s.tokens,e));for(const s of a.rows)for(const l of s)n=n.concat(this.walkTokens(l.tokens,e));break}case"list":{const a=o;n=n.concat(this.walkTokens(a.items,e));break}default:{const a=o;(i=(r=this.defaults.extensions)==null?void 0:r.childTokens)!=null&&i[a.type]?this.defaults.extensions.childTokens[a.type].forEach(s=>{const l=a[s].flat(1/0);n=n.concat(this.walkTokens(l,e))}):a.tokens&&(n=n.concat(this.walkTokens(a.tokens,e)))}}return n}use(...t){const e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(n=>{const r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){const o=e.renderers[i.name];o?e.renderers[i.name]=function(...a){let s=i.renderer.apply(this,a);return s===!1&&(s=o.apply(this,a)),s}:e.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const o=e[i.level];o?o.unshift(i.tokenizer):e[i.level]=[i.tokenizer],i.start&&(i.level==="block"?e.startBlock?e.startBlock.push(i.start):e.startBlock=[i.start]:i.level==="inline"&&(e.startInline?e.startInline.push(i.start):e.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(e.childTokens[i.name]=i.childTokens)}),r.extensions=e),n.renderer){const i=this.defaults.renderer||new $n(this.defaults);for(const o in n.renderer){if(!(o in i))throw new Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;const a=o,s=n.renderer[a],l=i[a];i[a]=(...f)=>{let c=s.apply(i,f);return c===!1&&(c=l.apply(i,f)),c||""}}r.renderer=i}if(n.tokenizer){const i=this.defaults.tokenizer||new wn(this.defaults);for(const o in n.tokenizer){if(!(o in i))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;const a=o,s=n.tokenizer[a],l=i[a];i[a]=(...f)=>{let c=s.apply(i,f);return c===!1&&(c=l.apply(i,f)),c}}r.tokenizer=i}if(n.hooks){const i=this.defaults.hooks||new Sn;for(const o in n.hooks){if(!(o in i))throw new Error(`hook '${o}' does not exist`);if(["options","block"].includes(o))continue;const a=o,s=n.hooks[a],l=i[a];Sn.passThroughHooks.has(o)?i[a]=f=>{if(this.defaults.async)return Promise.resolve(s.call(i,f)).then(p=>l.call(i,p));const c=s.call(i,f);return l.call(i,c)}:i[a]=(...f)=>{let c=s.apply(i,f);return c===!1&&(c=l.apply(i,f)),c}}r.hooks=i}if(n.walkTokens){const i=this.defaults.walkTokens,o=n.walkTokens;r.walkTokens=function(a){let s=[];return s.push(o.call(this,a)),i&&(s=s.concat(i.call(this,a))),s}}this.defaults={...this.defaults,...r}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return it.lex(t,e!=null?e:this.defaults)}parser(t,e){return ot.parse(t,e!=null?e:this.defaults)}parseMarkdown(t){return(n,r)=>{const i={...r},o={...this.defaults,...i},a=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&i.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof n>"u"||n===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));o.hooks&&(o.hooks.options=o,o.hooks.block=t);const s=o.hooks?o.hooks.provideLexer():t?it.lex:it.lexInline,l=o.hooks?o.hooks.provideParser():t?ot.parse:ot.parseInline;if(o.async)return Promise.resolve(o.hooks?o.hooks.preprocess(n):n).then(f=>s(f,o)).then(f=>o.hooks?o.hooks.processAllTokens(f):f).then(f=>o.walkTokens?Promise.all(this.walkTokens(f,o.walkTokens)).then(()=>f):f).then(f=>l(f,o)).then(f=>o.hooks?o.hooks.postprocess(f):f).catch(a);try{o.hooks&&(n=o.hooks.preprocess(n));let f=s(n,o);o.hooks&&(f=o.hooks.processAllTokens(f)),o.walkTokens&&this.walkTokens(f,o.walkTokens);let c=l(f,o);return o.hooks&&(c=o.hooks.postprocess(c)),c}catch(f){return a(f)}}}onError(t,e){return n=>{if(n.message+=`
|
|
100
|
+
Please report this to https://github.com/markedjs/marked.`,t){const r="<p>An error occurred:</p><pre>"+Qe(n.message+"",!0)+"</pre>";return e?Promise.resolve(r):r}if(e)return Promise.reject(n);throw n}}},vt=new Ro;function ye(t,e){return vt.parse(t,e)}ye.options=ye.setOptions=function(t){return vt.setOptions(t),ye.defaults=vt.defaults,mo(ye.defaults),ye},ye.getDefaults=hr,ye.defaults=gt,ye.use=function(...t){return vt.use(...t),ye.defaults=vt.defaults,mo(ye.defaults),ye},ye.walkTokens=function(t,e){return vt.walkTokens(t,e)},ye.parseInline=vt.parseInline,ye.Parser=ot,ye.parser=ot.parse,ye.Renderer=$n,ye.TextRenderer=$r,ye.Lexer=it,ye.lexer=it.lex,ye.Tokenizer=wn,ye.Hooks=Sn,ye.parse=ye,ye.options,ye.setOptions,ye.use,ye.walkTokens,ye.parseInline,ot.parse,it.lex;const c1="",ef=u.defineComponent({name:"FcMarkdown",data(){return{marked:u.markRaw(new Ro),html:""}},props:{content:String},watch:{content:{handler(){this.html=this.marked.parse(this.content||"")},immediate:!0}}}),tf=["innerHTML"];function nf(t,e,n,r,i,o){return u.openBlock(),u.createElementBlock("div",{class:"_fc-markdown",innerHTML:t.html},null,8,tf)}const rf=Se(ef,[["render",nf]]),f1="",of=u.defineComponent({name:"FcDialog",emits:["confirm","submit","validateFail","update:modelValue"],props:{formData:Object,options:{type:Object,default:()=>u.reactive({submitBtn:!1,resetBtn:!1})},rule:Array,autoClose:{type:Boolean,default:!0},footer:{type:Boolean,default:!0},preview:Boolean,disabled:Boolean,modelValue:Object,formCreateInject:Object},computed:{formOptions(){const t={...this.options};return this.preview&&(t.preview=this.preview),t}},data(){return{visible:!1,max:this.$attrs.fullscreen||!1,fapi:{},value:{},formRule:[],handleSubmit:void 0,Form:u.markRaw(this.formCreateInject.form.$form())}},methods:{formChange(){this.$emit("update:modelValue",this.fapi.formData())},open(t,e){this.handleSubmit=e,this.$nextTick(()=>{this.visible=!0,this.value=Ze(t||this.modelValue||this.formData||{}),this.formRule=Ze(this.rule||[])})},close(){this.visible=!1},handleConfirm(){this.$emit("confirm",this.fapi),this.fapi.submit().then(t=>{if(this.handleSubmit)try{this.handleSubmit(t,this.fapi,this.close)}catch(e){console.error(e)}this.$emit("submit",t,this.fapi,this.close),this.autoClose&&this.close()}).catch(t=>{this.$emit("validateFail",t,this.fapi)})}},mounted(){this.formCreateInject.api.top.bus.$on("fc.closeDialog",this.close),u.onUnmounted(()=>{this.formCreateInject.api.top.bus.$off("fc.closeDialog",this.close)})}}),af={key:0,class:"el-dialog__headerbtn",type:"button",style:{right:"36px"}};function sf(t,e,n,r,i,o){const a=u.resolveComponent("el-button"),s=u.resolveComponent("el-dialog");return u.openBlock(),u.createBlock(s,u.mergeProps({class:"_fc-dialog"},t.$attrs,{fullscreen:t.max,modelValue:t.visible,"onUpdate:modelValue":e[3]||(e[3]=l=>t.visible=l),destroyOnClose:""}),u.createSlots({default:u.withCtx(()=>[t.$attrs.fullscreen?u.createCommentVNode("",!0):(u.openBlock(),u.createElementBlock("button",af,[t.max?(u.openBlock(),u.createElementBlock("i",{key:0,class:"fc-icon icon-page-min",onClick:e[0]||(e[0]=l=>t.max=!1)})):(u.openBlock(),u.createElementBlock("i",{key:1,class:"fc-icon icon-page-max",onClick:e[1]||(e[1]=l=>t.max=!0)}))])),(u.openBlock(),u.createBlock(u.resolveDynamicComponent(t.Form),{option:t.formOptions,rule:t.formRule,extendOption:!0,api:t.fapi,"onUpdate:api":e[2]||(e[2]=l=>t.fapi=l),"model-value":t.value,subForm:!1,disabled:t.disabled,onChange:t.formChange,onEmitEvent:t.$emit},null,40,["option","rule","api","model-value","disabled","onChange","onEmitEvent"]))]),_:2},[t.footer!==!1?{name:"footer",fn:u.withCtx(()=>[u.createVNode(a,{onClick:t.close},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(t.formCreateInject.t("close")||"\u5173\u95ED"),1)]),_:1},8,["onClick"]),u.createVNode(a,{type:"primary",onClick:t.handleConfirm},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(t.formCreateInject.t("ok")||"\u786E\u5B9A"),1)]),_:1},8,["onClick"])]),key:"0"}:void 0]),1040,["fullscreen","modelValue"])}const lf=Se(of,[["render",sf]]),uf=t=>t!==null&&typeof t=="object",cf=t=>t!=null;function Sr(t){if(!cf(t))return t;if(Array.isArray(t))return t.map(e=>Sr(e));if(uf(t)){const e={};return Object.keys(t).forEach(n=>{e[n]=Sr(t[n])}),e}return t}const ff=(t,e)=>mi.ElMessage({message:t,type:e||"info",customClass:"_fc-message-tip"});function df(t){const e=document.createElement("textarea");e.style.position="fixed",e.style.top=0,e.style.left="-9999px",e.value=t,document.body.appendChild(e),e.focus(),e.select();try{document.execCommand("copy")}catch{console.log("Oops, unable to copy")}ff("\u5DF2\u590D\u5236!","success"),document.body.removeChild(e)}function hf(t){return t.filter((e,n)=>t.indexOf(e)===n)}const d1="",pf=u.defineComponent({name:"FcDataSelect",components:{FcDialog:lf},emits:["update:modelValue","change","clear"],props:{title:String,formCreateInject:Object,placeholder:String,multiple:Boolean,disabled:Boolean,multipleLimit:Number,valueKey:String,labelKey:String,clearable:Boolean,searchRule:Object,tableRule:Object,autoLoad:Boolean,modelValue:[Object,Array]},computed:{options(){return this.list.map(t=>({label:t[this.labelKey||"label"],value:t[this.valueKey||"value"]}))},selectValue(){const t=this.options.map(e=>e.value);return this.multiple===!0?t:t[0]},fapi(){var t,e;return(e=(t=this.$refs)==null?void 0:t.dialog)==null?void 0:e.fapi}},data(){return{list:[],visible:!1,formRule:[],load:fr(()=>{this.$refs.dialog.fapi.el(this.formRule[1].name).initPage()},500)}},watch:{modelValue:{handler(t){t?this.list=Array.isArray(t)?t:[t]:this.list=[]},immediate:!0}},methods:{getTableEl(){return this.$refs.dialog.fapi.el(this.formRule[1].name)},getDialogEl(){return this.$refs.dialog},formChange(){this.autoLoad&&this.load()},changeSelectValue(t){t==null?this.list=[]:this.list=this.list.filter(e=>t.indexOf(e[this.valueKey||"value"])!==-1),this.updateValue()},confirm(){const t=hf([...this.list,...this.$refs.dialog.fapi.el(this.formRule[1].name).getEl().getSelectionRows()]),e=t.map(n=>n[this.valueKey||"value"]);this.list=t.filter((n,r)=>e.indexOf(n[this.valueKey||"value"])===r),this.$refs.dialog.close(),this.updateValue()},tableRowClick(t){this.multiple?this.$refs.dialog.fapi.el(this.formRule[1].name).getEl().toggleRowSelection(t):(this.list=[t],this.updateValue(),this.$refs.dialog.close())},updateValue(){this.multipleLimit>0&&this.list.length>this.multipleLimit&&(this.list=this.list.splice(0,this.multipleLimit));const t=this.list.map(e=>({[this.valueKey||"value"]:e[this.valueKey||"value"],[this.labelKey||"label"]:e[this.labelKey||"label"]}));this.$emit("update:modelValue",this.multiple?t:t[0]),this.$emit("change",this.multiple?t:t[0])},getFormRule(){const t=Sr([this.searchRule,this.tableRule]);return t[1].on||(t[1].on={}),t[1].props||(t[1].props={}),this.multiple&&(t[1].props.rowKey||(t[1].props.rowKey=this.valueKey||"value"),t[1].name||(t[1].name=cr())),t[1].props.selection=!0,t[1].on.rowClick?t[1].on.rowClick=[(...e)=>this.tableRowClick(...e),t[1].on.rowClick]:t[1].on.rowClick=(...e)=>this.tableRowClick(...e),t[1].on.selectionChange?t[1].on.selectionChange=[(...e)=>this.selectionChange(...e),t[1].on.selectionChange]:t[1].on.selectionChange=(...e)=>this.selectionChange(...e),t},selectionChange(t){this.multiple||this.tableRowClick(t[0])},handleClear(...t){this.$emit("clear",...t)},handleClick(t){this.disabled||!t||(this.visible=!0,this.formRule=this.getFormRule(),this.$refs.dialog.open())}}}),mf={class:"_fc-data-select"};function gf(t,e,n,r,i,o){const a=u.resolveComponent("el-option"),s=u.resolveComponent("el-select"),l=u.resolveComponent("FcDialog");return u.openBlock(),u.createElementBlock("div",mf,[u.createVNode(s,{disabled:t.disabled,placeholder:t.placeholder,multiple:t.multiple,multipleLimit:t.multipleLimit,clearable:t.clearable,"model-value":t.selectValue,"onUpdate:modelValue":t.changeSelectValue,"popper-class":"_fc-data-select-pop",onVisibleChange:t.handleClick,onClear:t.handleClear},{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t.options,f=>(u.openBlock(),u.createBlock(a,{key:f.value,label:f.label,value:f.value},null,8,["label","value"]))),128))]),_:1},8,["disabled","placeholder","multiple","multipleLimit","clearable","model-value","onUpdate:modelValue","onVisibleChange","onClear"]),u.createVNode(l,{ref:"dialog",formCreateInject:t.formCreateInject,rule:t.formRule,"onUpdate:modelValue":t.formChange,"append-to-body":"",footer:t.multiple,title:t.title,width:"900px",onConfirm:t.confirm},null,8,["formCreateInject","rule","onUpdate:modelValue","footer","title","onConfirm"])])}const vf=Se(pf,[["render",gf]]),yf=u.defineComponent({name:"AudioBox",emits:["pause","play","ended"],data(){return{}},props:{src:String,type:String,controls:{type:Boolean,default:!0},autoplay:Boolean,loop:Boolean,preload:{type:String,default:"auto"},muted:Boolean}}),_f=["controls","autoplay","loop","preload","muted"],bf=["src","type"];function wf(t,e,n,r,i,o){return u.openBlock(),u.createElementBlock("audio",{key:t.src,controls:t.controls,autoplay:t.autoplay,loop:t.loop,preload:t.preload,muted:t.muted,onPause:e[0]||(e[0]=a=>t.$emit("pause",a)),onPlay:e[1]||(e[1]=a=>t.$emit("play",a)),onEnded:e[2]||(e[2]=a=>t.$emit("ended",a))},[u.createElementVNode("source",{src:t.src,type:t.type},null,8,bf),e[3]||(e[3]=u.createTextVNode(" Your browser does not support the audio element. ",-1))],40,_f)}const $f=Se(yf,[["render",wf]]),h1="",Sf=u.defineComponent({name:"IframeBox",emits:["load"],data(){return{}},props:{src:String,loading:String}}),Of=["src"];function xf(t,e,n,r,i,o){return u.openBlock(),u.createElementBlock("iframe",{class:"_fc-iframe-box",src:t.src,frameborder:"0",onLoad:e[0]||(e[0]=a=>t.$emit("load",a))},null,40,Of)}const Cf=Se(Sf,[["render",xf]]);var Or={},On={},Ve={};Object.defineProperty(Ve,"__esModule",{value:!0});function Ef(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var kf=function t(e,n){Ef(this,t),this.data=e,this.text=n.text||e,this.options=n};Ve.default=kf,Object.defineProperty(On,"__esModule",{value:!0}),On.CODE39=void 0;var Af=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Df=Ve,Rf=Pf(Df);function Pf(t){return t&&t.__esModule?t:{default:t}}function Vf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Tf(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Mf(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var jf=function(t){Mf(e,t);function e(n,r){return Vf(this,e),n=n.toUpperCase(),r.mod43&&(n+=Bf(Nf(n))),Tf(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,r))}return Af(e,[{key:"encode",value:function(){for(var r=xr("*"),i=0;i<this.data.length;i++)r+=xr(this.data[i])+"0";return r+=xr("*"),{data:r,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)!==-1}}]),e}(Rf.default),Po=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","*"],If=[20957,29783,23639,30485,20951,29813,23669,20855,29789,23645,29975,23831,30533,22295,30149,24005,21623,29981,23837,22301,30023,23879,30545,22343,30161,24017,21959,30065,23921,22385,29015,18263,29141,17879,29045,18293,17783,29021,18269,17477,17489,17681,20753,35770];function xr(t){return Ff(Vo(t))}function Ff(t){return If[t].toString(2)}function Bf(t){return Po[t]}function Vo(t){return Po.indexOf(t)}function Nf(t){for(var e=0,n=0;n<t.length;n++)e+=Vo(t[n]);return e=e%43,e}On.CODE39=jf;var et={},Cr={},Ct={},we={};Object.defineProperty(we,"__esModule",{value:!0});var Gt;function Er(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var To=we.SET_A=0,Mo=we.SET_B=1,jo=we.SET_C=2;we.SHIFT=98;var Lf=we.START_A=103,zf=we.START_B=104,Uf=we.START_C=105;we.MODULO=103,we.STOP=106,we.FNC1=207,we.SET_BY_CODE=(Gt={},Er(Gt,Lf,To),Er(Gt,zf,Mo),Er(Gt,Uf,jo),Gt),we.SWAP={101:To,100:Mo,99:jo},we.A_START_CHAR=String.fromCharCode(208),we.B_START_CHAR=String.fromCharCode(209),we.C_START_CHAR=String.fromCharCode(210),we.A_CHARS="[\0-_\xC8-\xCF]",we.B_CHARS="[ -\x7F\xC8-\xCF]",we.C_CHARS="(\xCF*[0-9]{2}\xCF*)",we.BARS=[11011001100,11001101100,11001100110,10010011e3,10010001100,10001001100,10011001e3,10011000100,10001100100,11001001e3,11001000100,11000100100,10110011100,10011011100,10011001110,10111001100,10011101100,10011100110,11001110010,11001011100,11001001110,11011100100,11001110100,11101101110,11101001100,11100101100,11100100110,11101100100,11100110100,11100110010,11011011e3,11011000110,11000110110,10100011e3,10001011e3,10001000110,10110001e3,10001101e3,10001100010,11010001e3,11000101e3,11000100010,10110111e3,10110001110,10001101110,10111011e3,10111000110,10001110110,11101110110,11010001110,11000101110,11011101e3,11011100010,11011101110,11101011e3,11101000110,11100010110,11101101e3,11101100010,11100011010,11101111010,11001000010,11110001010,1010011e4,10100001100,1001011e4,10010000110,10000101100,10000100110,1011001e4,10110000100,1001101e4,10011000010,10000110100,10000110010,11000010010,1100101e4,11110111010,11000010100,10001111010,10100111100,10010111100,10010011110,10111100100,10011110100,10011110010,11110100100,11110010100,11110010010,11011011110,11011110110,11110110110,10101111e3,10100011110,10001011110,10111101e3,10111100010,11110101e3,11110100010,10111011110,10111101110,11101011110,11110101110,11010000100,1101001e4,11010011100,1100011101011],Object.defineProperty(Ct,"__esModule",{value:!0});var qf=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Gf=Ve,Hf=Wf(Gf),Ne=we;function Wf(t){return t&&t.__esModule?t:{default:t}}function Yf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Xf(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Jf(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Kf=function(t){Jf(e,t);function e(n,r){Yf(this,e);var i=Xf(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n.substring(1),r));return i.bytes=n.split("").map(function(o){return o.charCodeAt(0)}),i}return qf(e,[{key:"valid",value:function(){return/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data)}},{key:"encode",value:function(){var r=this.bytes,i=r.shift()-105,o=Ne.SET_BY_CODE[i];if(o===void 0)throw new RangeError("The encoding does not start with a start character.");this.shouldEncodeAsEan128()===!0&&r.unshift(Ne.FNC1);var a=e.next(r,1,o);return{text:this.text===this.data?this.text.replace(/[^\x20-\x7E]/g,""):this.text,data:e.getBar(i)+a.result+e.getBar((a.checksum+i)%Ne.MODULO)+e.getBar(Ne.STOP)}}},{key:"shouldEncodeAsEan128",value:function(){var r=this.options.ean128||!1;return typeof r=="string"&&(r=r.toLowerCase()==="true"),r}}],[{key:"getBar",value:function(r){return Ne.BARS[r]?Ne.BARS[r].toString():""}},{key:"correctIndex",value:function(r,i){if(i===Ne.SET_A){var o=r.shift();return o<32?o+64:o-32}else return i===Ne.SET_B?r.shift()-32:(r.shift()-48)*10+r.shift()-48}},{key:"next",value:function(r,i,o){if(!r.length)return{result:"",checksum:0};var a=void 0,s=void 0;if(r[0]>=200){s=r.shift()-105;var l=Ne.SWAP[s];l!==void 0?a=e.next(r,i+1,l):((o===Ne.SET_A||o===Ne.SET_B)&&s===Ne.SHIFT&&(r[0]=o===Ne.SET_A?r[0]>95?r[0]-96:r[0]:r[0]<32?r[0]+96:r[0]),a=e.next(r,i+1,o))}else s=e.correctIndex(r,o),a=e.next(r,i+1,o);var f=e.getBar(s),c=s*i;return{result:f+a.result,checksum:c+a.checksum}}}]),e}(Hf.default);Ct.default=Kf;var kr={};Object.defineProperty(kr,"__esModule",{value:!0});var ct=we,Io=function(e){return e.match(new RegExp("^"+ct.A_CHARS+"*"))[0].length},Fo=function(e){return e.match(new RegExp("^"+ct.B_CHARS+"*"))[0].length},Bo=function(e){return e.match(new RegExp("^"+ct.C_CHARS+"*"))[0]};function Ar(t,e){var n=e?ct.A_CHARS:ct.B_CHARS,r=t.match(new RegExp("^("+n+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(r)return r[1]+String.fromCharCode(204)+No(t.substring(r[1].length));var i=t.match(new RegExp("^"+n+"+"))[0];return i.length===t.length?t:i+String.fromCharCode(e?205:206)+Ar(t.substring(i.length),!e)}function No(t){var e=Bo(t),n=e.length;if(n===t.length)return t;t=t.substring(n);var r=Io(t)>=Fo(t);return e+String.fromCharCode(r?206:205)+Ar(t,r)}kr.default=function(t){var e=void 0,n=Bo(t).length;if(n>=2)e=ct.C_START_CHAR+No(t);else{var r=Io(t)>Fo(t);e=(r?ct.A_START_CHAR:ct.B_START_CHAR)+Ar(t,r)}return e.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(i,o){return String.fromCharCode(203)+o})},Object.defineProperty(Cr,"__esModule",{value:!0});var Zf=Ct,Qf=Lo(Zf),ed=kr,td=Lo(ed);function Lo(t){return t&&t.__esModule?t:{default:t}}function nd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Dr(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function rd(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var id=function(t){rd(e,t);function e(n,r){if(nd(this,e),/^[\x00-\x7F\xC8-\xD3]+$/.test(n))var i=Dr(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,(0,td.default)(n),r));else var i=Dr(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,r));return Dr(i)}return e}(Qf.default);Cr.default=id;var Rr={};Object.defineProperty(Rr,"__esModule",{value:!0});var od=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),ad=Ct,sd=ld(ad),zo=we;function ld(t){return t&&t.__esModule?t:{default:t}}function ud(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function cd(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function fd(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var dd=function(t){fd(e,t);function e(n,r){return ud(this,e),cd(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,zo.A_START_CHAR+n,r))}return od(e,[{key:"valid",value:function(){return new RegExp("^"+zo.A_CHARS+"+$").test(this.data)}}]),e}(sd.default);Rr.default=dd;var Pr={};Object.defineProperty(Pr,"__esModule",{value:!0});var hd=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),pd=Ct,md=gd(pd),Uo=we;function gd(t){return t&&t.__esModule?t:{default:t}}function vd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yd(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function _d(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var bd=function(t){_d(e,t);function e(n,r){return vd(this,e),yd(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,Uo.B_START_CHAR+n,r))}return hd(e,[{key:"valid",value:function(){return new RegExp("^"+Uo.B_CHARS+"+$").test(this.data)}}]),e}(md.default);Pr.default=bd;var Vr={};Object.defineProperty(Vr,"__esModule",{value:!0});var wd=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),$d=Ct,Sd=Od($d),qo=we;function Od(t){return t&&t.__esModule?t:{default:t}}function xd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Cd(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Ed(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var kd=function(t){Ed(e,t);function e(n,r){return xd(this,e),Cd(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,qo.C_START_CHAR+n,r))}return wd(e,[{key:"valid",value:function(){return new RegExp("^"+qo.C_CHARS+"+$").test(this.data)}}]),e}(Sd.default);Vr.default=kd,Object.defineProperty(et,"__esModule",{value:!0}),et.CODE128C=et.CODE128B=et.CODE128A=et.CODE128=void 0;var Ad=Cr,Dd=xn(Ad),Rd=Rr,Pd=xn(Rd),Vd=Pr,Td=xn(Vd),Md=Vr,jd=xn(Md);function xn(t){return t&&t.__esModule?t:{default:t}}et.CODE128=Dd.default,et.CODE128A=Pd.default,et.CODE128B=Td.default,et.CODE128C=jd.default;var je={},Tr={},qe={};Object.defineProperty(qe,"__esModule",{value:!0}),qe.SIDE_BIN="101",qe.MIDDLE_BIN="01010",qe.BINARIES={L:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],G:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"],R:["1110010","1100110","1101100","1000010","1011100","1001110","1010000","1000100","1001000","1110100"],O:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],E:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"]},qe.EAN2_STRUCTURE=["LL","LG","GL","GG"],qe.EAN5_STRUCTURE=["GGLLL","GLGLL","GLLGL","GLLLG","LGGLL","LLGGL","LLLGG","LGLGL","LGLLG","LLGLG"],qe.EAN13_STRUCTURE=["LLLLLL","LLGLGG","LLGGLG","LLGGGL","LGLLGG","LGGLLG","LGGGLL","LGLGLG","LGLGGL","LGGLGL"];var Cn={},yt={};Object.defineProperty(yt,"__esModule",{value:!0});var Id=qe,Fd=function(e,n,r){var i=e.split("").map(function(a,s){return Id.BINARIES[n[s]]}).map(function(a,s){return a?a[e[s]]:""});if(r){var o=e.length-1;i=i.map(function(a,s){return s<o?a+r:a})}return i.join("")};yt.default=Fd,Object.defineProperty(Cn,"__esModule",{value:!0});var Bd=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Et=qe,Nd=yt,Go=Ho(Nd),Ld=Ve,zd=Ho(Ld);function Ho(t){return t&&t.__esModule?t:{default:t}}function Ud(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function qd(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Gd(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Hd=function(t){Gd(e,t);function e(n,r){Ud(this,e);var i=qd(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,r));return i.fontSize=!r.flat&&r.fontSize>r.width*10?r.width*10:r.fontSize,i.guardHeight=r.height+i.fontSize/2+r.textMargin,i}return Bd(e,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(r,i){return this.text.substr(r,i)}},{key:"leftEncode",value:function(r,i){return(0,Go.default)(r,i)}},{key:"rightText",value:function(r,i){return this.text.substr(r,i)}},{key:"rightEncode",value:function(r,i){return(0,Go.default)(r,i)}},{key:"encodeGuarded",value:function(){var r={fontSize:this.fontSize},i={height:this.guardHeight};return[{data:Et.SIDE_BIN,options:i},{data:this.leftEncode(),text:this.leftText(),options:r},{data:Et.MIDDLE_BIN,options:i},{data:this.rightEncode(),text:this.rightText(),options:r},{data:Et.SIDE_BIN,options:i}]}},{key:"encodeFlat",value:function(){var r=[Et.SIDE_BIN,this.leftEncode(),Et.MIDDLE_BIN,this.rightEncode(),Et.SIDE_BIN];return{data:r.join(""),text:this.text}}}]),e}(zd.default);Cn.default=Hd,Object.defineProperty(Tr,"__esModule",{value:!0});var Wd=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Ht=function t(e,n,r){e===null&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(i===void 0){var o=Object.getPrototypeOf(e);return o===null?void 0:t(o,n,r)}else{if("value"in i)return i.value;var a=i.get;return a===void 0?void 0:a.call(r)}},Yd=qe,Xd=Cn,Jd=Kd(Xd);function Kd(t){return t&&t.__esModule?t:{default:t}}function Zd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Qd(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function eh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Wo=function(e){var n=e.substr(0,12).split("").map(function(r){return+r}).reduce(function(r,i,o){return o%2?r+i*3:r+i},0);return(10-n%10)%10},th=function(t){eh(e,t);function e(n,r){Zd(this,e),n.search(/^[0-9]{12}$/)!==-1&&(n+=Wo(n));var i=Qd(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,r));return i.lastChar=r.lastChar,i}return Wd(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{13}$/)!==-1&&+this.data[12]===Wo(this.data)}},{key:"leftText",value:function(){return Ht(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftText",this).call(this,1,6)}},{key:"leftEncode",value:function(){var r=this.data.substr(1,6),i=Yd.EAN13_STRUCTURE[this.data[0]];return Ht(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftEncode",this).call(this,r,i)}},{key:"rightText",value:function(){return Ht(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightText",this).call(this,7,6)}},{key:"rightEncode",value:function(){var r=this.data.substr(7,6);return Ht(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightEncode",this).call(this,r,"RRRRRR")}},{key:"encodeGuarded",value:function(){var r=Ht(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"encodeGuarded",this).call(this);return this.options.displayValue&&(r.unshift({data:"000000000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),this.options.lastChar&&(r.push({data:"00"}),r.push({data:"00000",text:this.options.lastChar,options:{fontSize:this.fontSize}}))),r}}]),e}(Jd.default);Tr.default=th;var Mr={};Object.defineProperty(Mr,"__esModule",{value:!0});var nh=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),En=function t(e,n,r){e===null&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(i===void 0){var o=Object.getPrototypeOf(e);return o===null?void 0:t(o,n,r)}else{if("value"in i)return i.value;var a=i.get;return a===void 0?void 0:a.call(r)}},rh=Cn,ih=oh(rh);function oh(t){return t&&t.__esModule?t:{default:t}}function ah(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function sh(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function lh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Yo=function(e){var n=e.substr(0,7).split("").map(function(r){return+r}).reduce(function(r,i,o){return o%2?r+i:r+i*3},0);return(10-n%10)%10},uh=function(t){lh(e,t);function e(n,r){return ah(this,e),n.search(/^[0-9]{7}$/)!==-1&&(n+=Yo(n)),sh(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,r))}return nh(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{8}$/)!==-1&&+this.data[7]===Yo(this.data)}},{key:"leftText",value:function(){return En(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftText",this).call(this,0,4)}},{key:"leftEncode",value:function(){var r=this.data.substr(0,4);return En(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftEncode",this).call(this,r,"LLLL")}},{key:"rightText",value:function(){return En(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightText",this).call(this,4,4)}},{key:"rightEncode",value:function(){var r=this.data.substr(4,4);return En(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightEncode",this).call(this,r,"RRRR")}}]),e}(ih.default);Mr.default=uh;var jr={};Object.defineProperty(jr,"__esModule",{value:!0});var ch=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),fh=qe,dh=yt,hh=Xo(dh),ph=Ve,mh=Xo(ph);function Xo(t){return t&&t.__esModule?t:{default:t}}function gh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function vh(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function yh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var _h=function(e){var n=e.split("").map(function(r){return+r}).reduce(function(r,i,o){return o%2?r+i*9:r+i*3},0);return n%10},bh=function(t){yh(e,t);function e(n,r){return gh(this,e),vh(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,r))}return ch(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{5}$/)!==-1}},{key:"encode",value:function(){var r=fh.EAN5_STRUCTURE[_h(this.data)];return{data:"1011"+(0,hh.default)(this.data,r,"01"),text:this.text}}}]),e}(mh.default);jr.default=bh;var Ir={};Object.defineProperty(Ir,"__esModule",{value:!0});var wh=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),$h=qe,Sh=yt,Oh=Jo(Sh),xh=Ve,Ch=Jo(xh);function Jo(t){return t&&t.__esModule?t:{default:t}}function Eh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function kh(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Ah(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Dh=function(t){Ah(e,t);function e(n,r){return Eh(this,e),kh(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,r))}return wh(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{2}$/)!==-1}},{key:"encode",value:function(){var r=$h.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:"1011"+(0,Oh.default)(this.data,r,"01"),text:this.text}}}]),e}(Ch.default);Ir.default=Dh;var Wt={};Object.defineProperty(Wt,"__esModule",{value:!0});var Rh=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();Wt.checksum=Fr;var Ph=yt,kt=Ko(Ph),Vh=Ve,Th=Ko(Vh);function Ko(t){return t&&t.__esModule?t:{default:t}}function Mh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function jh(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Ih(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Fh=function(t){Ih(e,t);function e(n,r){Mh(this,e),n.search(/^[0-9]{11}$/)!==-1&&(n+=Fr(n));var i=jh(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,r));return i.displayValue=r.displayValue,r.fontSize>r.width*10?i.fontSize=r.width*10:i.fontSize=r.fontSize,i.guardHeight=r.height+i.fontSize/2+r.textMargin,i}return Rh(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{12}$/)!==-1&&this.data[11]==Fr(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var r="";return r+="101",r+=(0,kt.default)(this.data.substr(0,6),"LLLLLL"),r+="01010",r+=(0,kt.default)(this.data.substr(6,6),"RRRRRR"),r+="101",{data:r,text:this.text}}},{key:"guardedEncoding",value:function(){var r=[];return this.displayValue&&r.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),r.push({data:"101"+(0,kt.default)(this.data[0],"L"),options:{height:this.guardHeight}}),r.push({data:(0,kt.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),r.push({data:"01010",options:{height:this.guardHeight}}),r.push({data:(0,kt.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),r.push({data:(0,kt.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&r.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),r}}]),e}(Th.default);function Fr(t){var e=0,n;for(n=1;n<11;n+=2)e+=parseInt(t[n]);for(n=0;n<11;n+=2)e+=parseInt(t[n])*3;return(10-e%10)%10}Wt.default=Fh;var Br={};Object.defineProperty(Br,"__esModule",{value:!0});var Bh=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Nh=yt,Lh=Zo(Nh),zh=Ve,Uh=Zo(zh),qh=Wt;function Zo(t){return t&&t.__esModule?t:{default:t}}function Gh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Nr(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Hh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Wh=["XX00000XXX","XX10000XXX","XX20000XXX","XXX00000XX","XXXX00000X","XXXXX00005","XXXXX00006","XXXXX00007","XXXXX00008","XXXXX00009"],Yh=[["EEEOOO","OOOEEE"],["EEOEOO","OOEOEE"],["EEOOEO","OOEEOE"],["EEOOOE","OOEEEO"],["EOEEOO","OEOOEE"],["EOOEEO","OEEOOE"],["EOOOEE","OEEEOO"],["EOEOEO","OEOEOE"],["EOEOOE","OEOEEO"],["EOOEOE","OEEOEO"]],Xh=function(t){Hh(e,t);function e(n,r){Gh(this,e);var i=Nr(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,r));if(i.isValid=!1,n.search(/^[0-9]{6}$/)!==-1)i.middleDigits=n,i.upcA=Qo(n,"0"),i.text=r.text||""+i.upcA[0]+n+i.upcA[i.upcA.length-1],i.isValid=!0;else if(n.search(/^[01][0-9]{7}$/)!==-1)if(i.middleDigits=n.substring(1,n.length-1),i.upcA=Qo(i.middleDigits,n[0]),i.upcA[i.upcA.length-1]===n[n.length-1])i.isValid=!0;else return Nr(i);else return Nr(i);return i.displayValue=r.displayValue,r.fontSize>r.width*10?i.fontSize=r.width*10:i.fontSize=r.fontSize,i.guardHeight=r.height+i.fontSize/2+r.textMargin,i}return Bh(e,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var r="";return r+="101",r+=this.encodeMiddleDigits(),r+="010101",{data:r,text:this.text}}},{key:"guardedEncoding",value:function(){var r=[];return this.displayValue&&r.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),r.push({data:"101",options:{height:this.guardHeight}}),r.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),r.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&r.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),r}},{key:"encodeMiddleDigits",value:function(){var r=this.upcA[0],i=this.upcA[this.upcA.length-1],o=Yh[parseInt(i)][parseInt(r)];return(0,Lh.default)(this.middleDigits,o)}}]),e}(Uh.default);function Qo(t,e){for(var n=parseInt(t[t.length-1]),r=Wh[n],i="",o=0,a=0;a<r.length;a++){var s=r[a];s==="X"?i+=t[o++]:i+=s}return i=""+e+i,""+i+(0,qh.checksum)(i)}Br.default=Xh,Object.defineProperty(je,"__esModule",{value:!0}),je.UPCE=je.UPC=je.EAN2=je.EAN5=je.EAN8=je.EAN13=void 0;var Jh=Tr,Kh=At(Jh),Zh=Mr,Qh=At(Zh),ep=jr,tp=At(ep),np=Ir,rp=At(np),ip=Wt,op=At(ip),ap=Br,sp=At(ap);function At(t){return t&&t.__esModule?t:{default:t}}je.EAN13=Kh.default,je.EAN8=Qh.default,je.EAN5=tp.default,je.EAN2=rp.default,je.UPC=op.default,je.UPCE=sp.default;var Dt={},kn={},Yt={};Object.defineProperty(Yt,"__esModule",{value:!0}),Yt.START_BIN="1010",Yt.END_BIN="11101",Yt.BINARIES=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010"],Object.defineProperty(kn,"__esModule",{value:!0});var lp=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),An=Yt,up=Ve,cp=fp(up);function fp(t){return t&&t.__esModule?t:{default:t}}function dp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function hp(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function pp(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var mp=function(t){pp(e,t);function e(){return dp(this,e),hp(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return lp(e,[{key:"valid",value:function(){return this.data.search(/^([0-9]{2})+$/)!==-1}},{key:"encode",value:function(){var r=this,i=this.data.match(/.{2}/g).map(function(o){return r.encodePair(o)}).join("");return{data:An.START_BIN+i+An.END_BIN,text:this.text}}},{key:"encodePair",value:function(r){var i=An.BINARIES[r[1]];return An.BINARIES[r[0]].split("").map(function(o,a){return(o==="1"?"111":"1")+(i[a]==="1"?"000":"0")}).join("")}}]),e}(cp.default);kn.default=mp;var Lr={};Object.defineProperty(Lr,"__esModule",{value:!0});var gp=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),vp=kn,yp=_p(vp);function _p(t){return t&&t.__esModule?t:{default:t}}function bp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function wp(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function $p(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var ea=function(e){var n=e.substr(0,13).split("").map(function(r){return parseInt(r,10)}).reduce(function(r,i,o){return r+i*(3-o%2*2)},0);return Math.ceil(n/10)*10-n},Sp=function(t){$p(e,t);function e(n,r){return bp(this,e),n.search(/^[0-9]{13}$/)!==-1&&(n+=ea(n)),wp(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,r))}return gp(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{14}$/)!==-1&&+this.data[13]===ea(this.data)}}]),e}(yp.default);Lr.default=Sp,Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.ITF14=Dt.ITF=void 0;var Op=kn,xp=ta(Op),Cp=Lr,Ep=ta(Cp);function ta(t){return t&&t.__esModule?t:{default:t}}Dt.ITF=xp.default,Dt.ITF14=Ep.default;var Ge={},_t={};Object.defineProperty(_t,"__esModule",{value:!0});var kp=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Ap=Ve,Dp=Rp(Ap);function Rp(t){return t&&t.__esModule?t:{default:t}}function Pp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Vp(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Tp(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Mp=function(t){Tp(e,t);function e(n,r){return Pp(this,e),Vp(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,r))}return kp(e,[{key:"encode",value:function(){for(var r="110",i=0;i<this.data.length;i++){var o=parseInt(this.data[i]),a=o.toString(2);a=jp(a,4-a.length);for(var s=0;s<a.length;s++)r+=a[s]=="0"?"100":"110"}return r+="1001",{data:r,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9]+$/)!==-1}}]),e}(Dp.default);function jp(t,e){for(var n=0;n<e;n++)t="0"+t;return t}_t.default=Mp;var zr={},bt={};Object.defineProperty(bt,"__esModule",{value:!0}),bt.mod10=Ip,bt.mod11=Fp;function Ip(t){for(var e=0,n=0;n<t.length;n++){var r=parseInt(t[n]);(n+t.length)%2===0?e+=r:e+=r*2%10+Math.floor(r*2/10)}return(10-e%10)%10}function Fp(t){for(var e=0,n=[2,3,4,5,6,7],r=0;r<t.length;r++){var i=parseInt(t[t.length-1-r]);e+=n[r%n.length]*i}return(11-e%11)%11}Object.defineProperty(zr,"__esModule",{value:!0});var Bp=_t,Np=zp(Bp),Lp=bt;function zp(t){return t&&t.__esModule?t:{default:t}}function Up(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function qp(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Gp(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Hp=function(t){Gp(e,t);function e(n,r){return Up(this,e),qp(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n+(0,Lp.mod10)(n),r))}return e}(Np.default);zr.default=Hp;var Ur={};Object.defineProperty(Ur,"__esModule",{value:!0});var Wp=_t,Yp=Jp(Wp),Xp=bt;function Jp(t){return t&&t.__esModule?t:{default:t}}function Kp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Zp(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Qp(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var em=function(t){Qp(e,t);function e(n,r){return Kp(this,e),Zp(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n+(0,Xp.mod11)(n),r))}return e}(Yp.default);Ur.default=em;var qr={};Object.defineProperty(qr,"__esModule",{value:!0});var tm=_t,nm=rm(tm),na=bt;function rm(t){return t&&t.__esModule?t:{default:t}}function im(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function om(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function am(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var sm=function(t){am(e,t);function e(n,r){return im(this,e),n+=(0,na.mod10)(n),n+=(0,na.mod10)(n),om(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,r))}return e}(nm.default);qr.default=sm;var Gr={};Object.defineProperty(Gr,"__esModule",{value:!0});var lm=_t,um=cm(lm),ra=bt;function cm(t){return t&&t.__esModule?t:{default:t}}function fm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dm(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function hm(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var pm=function(t){hm(e,t);function e(n,r){return fm(this,e),n+=(0,ra.mod11)(n),n+=(0,ra.mod10)(n),dm(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,r))}return e}(um.default);Gr.default=pm,Object.defineProperty(Ge,"__esModule",{value:!0}),Ge.MSI1110=Ge.MSI1010=Ge.MSI11=Ge.MSI10=Ge.MSI=void 0;var mm=_t,gm=Xt(mm),vm=zr,ym=Xt(vm),_m=Ur,bm=Xt(_m),wm=qr,$m=Xt(wm),Sm=Gr,Om=Xt(Sm);function Xt(t){return t&&t.__esModule?t:{default:t}}Ge.MSI=gm.default,Ge.MSI10=ym.default,Ge.MSI11=bm.default,Ge.MSI1010=$m.default,Ge.MSI1110=Om.default;var Dn={};Object.defineProperty(Dn,"__esModule",{value:!0}),Dn.pharmacode=void 0;var xm=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Cm=Ve,Em=km(Cm);function km(t){return t&&t.__esModule?t:{default:t}}function Am(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Dm(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Rm(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Pm=function(t){Rm(e,t);function e(n,r){Am(this,e);var i=Dm(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,r));return i.number=parseInt(n,10),i}return xm(e,[{key:"encode",value:function(){for(var r=this.number,i="";!isNaN(r)&&r!=0;)r%2===0?(i="11100"+i,r=(r-2)/2):(i="100"+i,r=(r-1)/2);return i=i.slice(0,-2),{data:i,text:this.text}}},{key:"valid",value:function(){return this.number>=3&&this.number<=131070}}]),e}(Em.default);Dn.pharmacode=Pm;var Rn={};Object.defineProperty(Rn,"__esModule",{value:!0}),Rn.codabar=void 0;var Vm=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Tm=Ve,Mm=jm(Tm);function jm(t){return t&&t.__esModule?t:{default:t}}function Im(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Fm(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Bm(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Nm=function(t){Bm(e,t);function e(n,r){Im(this,e),n.search(/^[0-9\-\$\:\.\+\/]+$/)===0&&(n="A"+n+"A");var i=Fm(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n.toUpperCase(),r));return i.text=i.options.text||i.text.replace(/[A-D]/g,""),i}return Vm(e,[{key:"valid",value:function(){return this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/)!==-1}},{key:"encode",value:function(){for(var r=[],i=this.getEncodings(),o=0;o<this.data.length;o++)r.push(i[this.data.charAt(o)]),o!==this.data.length-1&&r.push("0");return{text:this.text,data:r.join("")}}},{key:"getEncodings",value:function(){return{0:"101010011",1:"101011001",2:"101001011",3:"110010101",4:"101101001",5:"110101001",6:"100101011",7:"100101101",8:"100110101",9:"110100101","-":"101001101",$:"101100101",":":"1101011011","/":"1101101011",".":"1101101101","+":"1011011011",A:"1011001001",B:"1001001011",C:"1010010011",D:"1010011001"}}}]),e}(Mm.default);Rn.codabar=Nm;var Rt={},Pn={},Jt={};Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.SYMBOLS=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","($)","(%)","(/)","(+)","\xFF"],Jt.BINARIES=["100010100","101001000","101000100","101000010","100101000","100100100","100100010","101010000","100010010","100001010","110101000","110100100","110100010","110010100","110010010","110001010","101101000","101100100","101100010","100110100","100011010","101011000","101001100","101000110","100101100","100010110","110110100","110110010","110101100","110100110","110010110","110011010","101101100","101100110","100110110","100111010","100101110","111010100","111010010","111001010","101101110","101110110","110101110","100100110","111011010","111010110","100110010","101011110"],Jt.MULTI_SYMBOLS={"\0":["(%)","U"],"":["($)","A"],"":["($)","B"],"":["($)","C"],"":["($)","D"],"":["($)","E"],"":["($)","F"],"\x07":["($)","G"],"\b":["($)","H"]," ":["($)","I"],"\n":["($)","J"],"\v":["($)","K"],"\f":["($)","L"],"\r":["($)","M"],"":["($)","N"],"":["($)","O"],"":["($)","P"],"":["($)","Q"],"":["($)","R"],"":["($)","S"],"":["($)","T"],"":["($)","U"],"":["($)","V"],"":["($)","W"],"":["($)","X"],"":["($)","Y"],"":["($)","Z"],"\x1B":["(%)","A"],"":["(%)","B"],"":["(%)","C"],"":["(%)","D"],"":["(%)","E"],"!":["(/)","A"],'"':["(/)","B"],"#":["(/)","C"],"&":["(/)","F"],"'":["(/)","G"],"(":["(/)","H"],")":["(/)","I"],"*":["(/)","J"],",":["(/)","L"],":":["(/)","Z"],";":["(%)","F"],"<":["(%)","G"],"=":["(%)","H"],">":["(%)","I"],"?":["(%)","J"],"@":["(%)","V"],"[":["(%)","K"],"\\":["(%)","L"],"]":["(%)","M"],"^":["(%)","N"],_:["(%)","O"],"`":["(%)","W"],a:["(+)","A"],b:["(+)","B"],c:["(+)","C"],d:["(+)","D"],e:["(+)","E"],f:["(+)","F"],g:["(+)","G"],h:["(+)","H"],i:["(+)","I"],j:["(+)","J"],k:["(+)","K"],l:["(+)","L"],m:["(+)","M"],n:["(+)","N"],o:["(+)","O"],p:["(+)","P"],q:["(+)","Q"],r:["(+)","R"],s:["(+)","S"],t:["(+)","T"],u:["(+)","U"],v:["(+)","V"],w:["(+)","W"],x:["(+)","X"],y:["(+)","Y"],z:["(+)","Z"],"{":["(%)","P"],"|":["(%)","Q"],"}":["(%)","R"],"~":["(%)","S"],"\x7F":["(%)","T"]},Object.defineProperty(Pn,"__esModule",{value:!0});var Lm=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Vn=Jt,zm=Ve,Um=qm(zm);function qm(t){return t&&t.__esModule?t:{default:t}}function Gm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Hm(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Wm(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Ym=function(t){Wm(e,t);function e(n,r){return Gm(this,e),Hm(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,r))}return Lm(e,[{key:"valid",value:function(){return/^[0-9A-Z\-. $/+%]+$/.test(this.data)}},{key:"encode",value:function(){var r=this.data.split("").flatMap(function(s){return Vn.MULTI_SYMBOLS[s]||s}),i=r.map(function(s){return e.getEncoding(s)}).join(""),o=e.checksum(r,20),a=e.checksum(r.concat(o),15);return{text:this.text,data:e.getEncoding("\xFF")+i+e.getEncoding(o)+e.getEncoding(a)+e.getEncoding("\xFF")+"1"}}}],[{key:"getEncoding",value:function(r){return Vn.BINARIES[e.symbolValue(r)]}},{key:"getSymbol",value:function(r){return Vn.SYMBOLS[r]}},{key:"symbolValue",value:function(r){return Vn.SYMBOLS.indexOf(r)}},{key:"checksum",value:function(r,i){var o=r.slice().reverse().reduce(function(a,s,l){var f=l%i+1;return a+e.symbolValue(s)*f},0);return e.getSymbol(o%47)}}]),e}(Um.default);Pn.default=Ym;var Hr={};Object.defineProperty(Hr,"__esModule",{value:!0});var Xm=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Jm=Pn,Km=Zm(Jm);function Zm(t){return t&&t.__esModule?t:{default:t}}function Qm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function eg(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function tg(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var ng=function(t){tg(e,t);function e(n,r){return Qm(this,e),eg(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,r))}return Xm(e,[{key:"valid",value:function(){return/^[\x00-\x7f]+$/.test(this.data)}}]),e}(Km.default);Hr.default=ng,Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.CODE93FullASCII=Rt.CODE93=void 0;var rg=Pn,ig=ia(rg),og=Hr,ag=ia(og);function ia(t){return t&&t.__esModule?t:{default:t}}Rt.CODE93=ig.default,Rt.CODE93FullASCII=ag.default;var Tn={};Object.defineProperty(Tn,"__esModule",{value:!0}),Tn.GenericBarcode=void 0;var sg=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),lg=Ve,ug=cg(lg);function cg(t){return t&&t.__esModule?t:{default:t}}function fg(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dg(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function hg(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var pg=function(t){hg(e,t);function e(n,r){return fg(this,e),dg(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,r))}return sg(e,[{key:"encode",value:function(){return{data:"10101010101010101010101010101010101010101",text:this.text}}},{key:"valid",value:function(){return!0}}]),e}(ug.default);Tn.GenericBarcode=pg,Object.defineProperty(Or,"__esModule",{value:!0});var mg=On,Mn=et,Pt=je,oa=Dt,Kt=Ge,gg=Dn,vg=Rn,aa=Rt,yg=Tn;Or.default={CODE39:mg.CODE39,CODE128:Mn.CODE128,CODE128A:Mn.CODE128A,CODE128B:Mn.CODE128B,CODE128C:Mn.CODE128C,EAN13:Pt.EAN13,EAN8:Pt.EAN8,EAN5:Pt.EAN5,EAN2:Pt.EAN2,UPC:Pt.UPC,UPCE:Pt.UPCE,ITF14:oa.ITF14,ITF:oa.ITF,MSI:Kt.MSI,MSI10:Kt.MSI10,MSI11:Kt.MSI11,MSI1010:Kt.MSI1010,MSI1110:Kt.MSI1110,pharmacode:gg.pharmacode,codabar:vg.codabar,CODE93:aa.CODE93,CODE93FullASCII:aa.CODE93FullASCII,GenericBarcode:yg.GenericBarcode};var Vt={};Object.defineProperty(Vt,"__esModule",{value:!0});var _g=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};Vt.default=function(t,e){return _g({},t,e)};var Wr={};Object.defineProperty(Wr,"__esModule",{value:!0}),Wr.default=bg;function bg(t){var e=[];function n(r){if(Array.isArray(r))for(var i=0;i<r.length;i++)n(r[i]);else r.text=r.text||"",r.data=r.data||"",e.push(r)}return n(t),e}var Yr={};Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.default=wg;function wg(t){return t.marginTop=t.marginTop||t.margin,t.marginBottom=t.marginBottom||t.margin,t.marginRight=t.marginRight||t.margin,t.marginLeft=t.marginLeft||t.margin,t}var Xr={},Jr={},jn={};Object.defineProperty(jn,"__esModule",{value:!0}),jn.default=$g;function $g(t){var e=["width","height","textMargin","fontSize","margin","marginTop","marginBottom","marginLeft","marginRight"];for(var n in e)e.hasOwnProperty(n)&&(n=e[n],typeof t[n]=="string"&&(t[n]=parseInt(t[n],10)));return typeof t.displayValue=="string"&&(t.displayValue=t.displayValue!="false"),t}var In={};Object.defineProperty(In,"__esModule",{value:!0});var Sg={width:2,height:100,format:"auto",displayValue:!0,fontOptions:"",font:"monospace",text:void 0,textAlign:"center",textPosition:"bottom",textMargin:2,fontSize:20,background:"#ffffff",lineColor:"#000000",margin:10,marginTop:void 0,marginBottom:void 0,marginLeft:void 0,marginRight:void 0,valid:function(){}};In.default=Sg,Object.defineProperty(Jr,"__esModule",{value:!0});var Og=jn,xg=la(Og),Cg=In,sa=la(Cg);function la(t){return t&&t.__esModule?t:{default:t}}function Eg(t){var e={};for(var n in sa.default)sa.default.hasOwnProperty(n)&&(t.hasAttribute("jsbarcode-"+n.toLowerCase())&&(e[n]=t.getAttribute("jsbarcode-"+n.toLowerCase())),t.hasAttribute("data-"+n.toLowerCase())&&(e[n]=t.getAttribute("data-"+n.toLowerCase())));return e.value=t.getAttribute("jsbarcode-value")||t.getAttribute("data-value"),e=(0,xg.default)(e),e}Jr.default=Eg;var Kr={},Zr={},Le={};Object.defineProperty(Le,"__esModule",{value:!0}),Le.getTotalWidthOfEncodings=Le.calculateEncodingAttributes=Le.getBarcodePadding=Le.getEncodingHeight=Le.getMaximumHeightOfEncodings=void 0;var kg=Vt,Ag=Dg(kg);function Dg(t){return t&&t.__esModule?t:{default:t}}function ua(t,e){return e.height+(e.displayValue&&t.text.length>0?e.fontSize+e.textMargin:0)+e.marginTop+e.marginBottom}function ca(t,e,n){if(n.displayValue&&e<t){if(n.textAlign=="center")return Math.floor((t-e)/2);if(n.textAlign=="left")return 0;if(n.textAlign=="right")return Math.floor(t-e)}return 0}function Rg(t,e,n){for(var r=0;r<t.length;r++){var i=t[r],o=(0,Ag.default)(e,i.options),a;o.displayValue?a=Tg(i.text,o,n):a=0;var s=i.data.length*o.width;i.width=Math.ceil(Math.max(a,s)),i.height=ua(i,o),i.barcodePadding=ca(a,s,o)}}function Pg(t){for(var e=0,n=0;n<t.length;n++)e+=t[n].width;return e}function Vg(t){for(var e=0,n=0;n<t.length;n++)t[n].height>e&&(e=t[n].height);return e}function Tg(t,e,n){var r;if(n)r=n;else if(typeof document<"u")r=document.createElement("canvas").getContext("2d");else return 0;r.font=e.fontOptions+" "+e.fontSize+"px "+e.font;var i=r.measureText(t);if(!i)return 0;var o=i.width;return o}Le.getMaximumHeightOfEncodings=Vg,Le.getEncodingHeight=ua,Le.getBarcodePadding=ca,Le.calculateEncodingAttributes=Rg,Le.getTotalWidthOfEncodings=Pg,Object.defineProperty(Zr,"__esModule",{value:!0});var Mg=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),jg=Vt,Ig=Fg(jg),Qr=Le;function Fg(t){return t&&t.__esModule?t:{default:t}}function Bg(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Ng=function(){function t(e,n,r){Bg(this,t),this.canvas=e,this.encodings=n,this.options=r}return Mg(t,[{key:"render",value:function(){if(!this.canvas.getContext)throw new Error("The browser does not support canvas.");this.prepareCanvas();for(var n=0;n<this.encodings.length;n++){var r=(0,Ig.default)(this.options,this.encodings[n].options);this.drawCanvasBarcode(r,this.encodings[n]),this.drawCanvasText(r,this.encodings[n]),this.moveCanvasDrawing(this.encodings[n])}this.restoreCanvas()}},{key:"prepareCanvas",value:function(){var n=this.canvas.getContext("2d");n.save(),(0,Qr.calculateEncodingAttributes)(this.encodings,this.options,n);var r=(0,Qr.getTotalWidthOfEncodings)(this.encodings),i=(0,Qr.getMaximumHeightOfEncodings)(this.encodings);this.canvas.width=r+this.options.marginLeft+this.options.marginRight,this.canvas.height=i,n.clearRect(0,0,this.canvas.width,this.canvas.height),this.options.background&&(n.fillStyle=this.options.background,n.fillRect(0,0,this.canvas.width,this.canvas.height)),n.translate(this.options.marginLeft,0)}},{key:"drawCanvasBarcode",value:function(n,r){var i=this.canvas.getContext("2d"),o=r.data,a;n.textPosition=="top"?a=n.marginTop+n.fontSize+n.textMargin:a=n.marginTop,i.fillStyle=n.lineColor;for(var s=0;s<o.length;s++){var l=s*n.width+r.barcodePadding;o[s]==="1"?i.fillRect(l,a,n.width,n.height):o[s]&&i.fillRect(l,a,n.width,n.height*o[s])}}},{key:"drawCanvasText",value:function(n,r){var i=this.canvas.getContext("2d"),o=n.fontOptions+" "+n.fontSize+"px "+n.font;if(n.displayValue){var a,s;n.textPosition=="top"?s=n.marginTop+n.fontSize-n.textMargin:s=n.height+n.textMargin+n.marginTop+n.fontSize,i.font=o,n.textAlign=="left"||r.barcodePadding>0?(a=0,i.textAlign="left"):n.textAlign=="right"?(a=r.width-1,i.textAlign="right"):(a=r.width/2,i.textAlign="center"),i.fillText(r.text,a,s)}}},{key:"moveCanvasDrawing",value:function(n){var r=this.canvas.getContext("2d");r.translate(n.width,0)}},{key:"restoreCanvas",value:function(){var n=this.canvas.getContext("2d");n.restore()}}]),t}();Zr.default=Ng;var ei={};Object.defineProperty(ei,"__esModule",{value:!0});var Lg=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),zg=Vt,Ug=qg(zg),ti=Le;function qg(t){return t&&t.__esModule?t:{default:t}}function Gg(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Fn="http://www.w3.org/2000/svg",Hg=function(){function t(e,n,r){Gg(this,t),this.svg=e,this.encodings=n,this.options=r,this.document=r.xmlDocument||document}return Lg(t,[{key:"render",value:function(){var n=this.options.marginLeft;this.prepareSVG();for(var r=0;r<this.encodings.length;r++){var i=this.encodings[r],o=(0,Ug.default)(this.options,i.options),a=this.createGroup(n,o.marginTop,this.svg);this.setGroupOptions(a,o),this.drawSvgBarcode(a,o,i),this.drawSVGText(a,o,i),n+=i.width}}},{key:"prepareSVG",value:function(){for(;this.svg.firstChild;)this.svg.removeChild(this.svg.firstChild);(0,ti.calculateEncodingAttributes)(this.encodings,this.options);var n=(0,ti.getTotalWidthOfEncodings)(this.encodings),r=(0,ti.getMaximumHeightOfEncodings)(this.encodings),i=n+this.options.marginLeft+this.options.marginRight;this.setSvgAttributes(i,r),this.options.background&&this.drawRect(0,0,i,r,this.svg).setAttribute("style","fill:"+this.options.background+";")}},{key:"drawSvgBarcode",value:function(n,r,i){var o=i.data,a;r.textPosition=="top"?a=r.fontSize+r.textMargin:a=0;for(var s=0,l=0,f=0;f<o.length;f++)l=f*r.width+i.barcodePadding,o[f]==="1"?s++:s>0&&(this.drawRect(l-r.width*s,a,r.width*s,r.height,n),s=0);s>0&&this.drawRect(l-r.width*(s-1),a,r.width*s,r.height,n)}},{key:"drawSVGText",value:function(n,r,i){var o=this.document.createElementNS(Fn,"text");if(r.displayValue){var a,s;o.setAttribute("style","font:"+r.fontOptions+" "+r.fontSize+"px "+r.font),r.textPosition=="top"?s=r.fontSize-r.textMargin:s=r.height+r.textMargin+r.fontSize,r.textAlign=="left"||i.barcodePadding>0?(a=0,o.setAttribute("text-anchor","start")):r.textAlign=="right"?(a=i.width-1,o.setAttribute("text-anchor","end")):(a=i.width/2,o.setAttribute("text-anchor","middle")),o.setAttribute("x",a),o.setAttribute("y",s),o.appendChild(this.document.createTextNode(i.text)),n.appendChild(o)}}},{key:"setSvgAttributes",value:function(n,r){var i=this.svg;i.setAttribute("width",n+"px"),i.setAttribute("height",r+"px"),i.setAttribute("x","0px"),i.setAttribute("y","0px"),i.setAttribute("viewBox","0 0 "+n+" "+r),i.setAttribute("xmlns",Fn),i.setAttribute("version","1.1"),i.setAttribute("style","transform: translate(0,0)")}},{key:"createGroup",value:function(n,r,i){var o=this.document.createElementNS(Fn,"g");return o.setAttribute("transform","translate("+n+", "+r+")"),i.appendChild(o),o}},{key:"setGroupOptions",value:function(n,r){n.setAttribute("style","fill:"+r.lineColor+";")}},{key:"drawRect",value:function(n,r,i,o,a){var s=this.document.createElementNS(Fn,"rect");return s.setAttribute("x",n),s.setAttribute("y",r),s.setAttribute("width",i),s.setAttribute("height",o),a.appendChild(s),s}}]),t}();ei.default=Hg;var ni={};Object.defineProperty(ni,"__esModule",{value:!0});var Wg=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();function Yg(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Xg=function(){function t(e,n,r){Yg(this,t),this.object=e,this.encodings=n,this.options=r}return Wg(t,[{key:"render",value:function(){this.object.encodings=this.encodings}}]),t}();ni.default=Xg,Object.defineProperty(Kr,"__esModule",{value:!0});var Jg=Zr,Kg=ri(Jg),Zg=ei,Qg=ri(Zg),e0=ni,t0=ri(e0);function ri(t){return t&&t.__esModule?t:{default:t}}Kr.default={CanvasRenderer:Kg.default,SVGRenderer:Qg.default,ObjectRenderer:t0.default};var Tt={};Object.defineProperty(Tt,"__esModule",{value:!0});function ii(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function oi(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function ai(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var n0=function(t){ai(e,t);function e(n,r){ii(this,e);var i=oi(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return i.name="InvalidInputException",i.symbology=n,i.input=r,i.message='"'+i.input+'" is not a valid input for '+i.symbology,i}return e}(Error),r0=function(t){ai(e,t);function e(){ii(this,e);var n=oi(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.name="InvalidElementException",n.message="Not supported type to render on",n}return e}(Error),i0=function(t){ai(e,t);function e(){ii(this,e);var n=oi(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.name="NoElementException",n.message="No element to render on.",n}return e}(Error);Tt.InvalidInputException=n0,Tt.InvalidElementException=r0,Tt.NoElementException=i0,Object.defineProperty(Xr,"__esModule",{value:!0});var o0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a0=Jr,si=fa(a0),s0=Kr,Zt=fa(s0),l0=Tt;function fa(t){return t&&t.__esModule?t:{default:t}}function li(t){if(typeof t=="string")return u0(t);if(Array.isArray(t)){for(var e=[],n=0;n<t.length;n++)e.push(li(t[n]));return e}else{if(typeof HTMLCanvasElement<"u"&&t instanceof HTMLImageElement)return c0(t);if(t&&t.nodeName&&t.nodeName.toLowerCase()==="svg"||typeof SVGElement<"u"&&t instanceof SVGElement)return{element:t,options:(0,si.default)(t),renderer:Zt.default.SVGRenderer};if(typeof HTMLCanvasElement<"u"&&t instanceof HTMLCanvasElement)return{element:t,options:(0,si.default)(t),renderer:Zt.default.CanvasRenderer};if(t&&t.getContext)return{element:t,renderer:Zt.default.CanvasRenderer};if(t&&(typeof t>"u"?"undefined":o0(t))==="object"&&!t.nodeName)return{element:t,renderer:Zt.default.ObjectRenderer};throw new l0.InvalidElementException}}function u0(t){var e=document.querySelectorAll(t);if(e.length!==0){for(var n=[],r=0;r<e.length;r++)n.push(li(e[r]));return n}}function c0(t){var e=document.createElement("canvas");return{element:e,options:(0,si.default)(t),renderer:Zt.default.CanvasRenderer,afterRender:function(){t.setAttribute("src",e.toDataURL())}}}Xr.default=li;var ui={};Object.defineProperty(ui,"__esModule",{value:!0});var f0=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();function d0(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var h0=function(){function t(e){d0(this,t),this.api=e}return f0(t,[{key:"handleCatch",value:function(n){if(n.name==="InvalidInputException")if(this.api._options.valid!==this.api._defaults.valid)this.api._options.valid(!1);else throw n.message;else throw n;this.api.render=function(){}}},{key:"wrapBarcodeCall",value:function(n){try{var r=n.apply(void 0,arguments);return this.api._options.valid(!0),r}catch(i){return this.handleCatch(i),this.api}}}]),t}();ui.default=h0;var p0=Or,wt=ft(p0),m0=Vt,Qt=ft(m0),g0=Wr,da=ft(g0),v0=Yr,ha=ft(v0),y0=Xr,_0=ft(y0),b0=jn,w0=ft(b0),$0=ui,S0=ft($0),pa=Tt,O0=In,ma=ft(O0);function ft(t){return t&&t.__esModule?t:{default:t}}var at=function(){},Bn=function(e,n,r){var i=new at;if(typeof e>"u")throw Error("No element to render on was provided.");return i._renderProperties=(0,_0.default)(e),i._encodings=[],i._options=ma.default,i._errorHandler=new S0.default(i),typeof n<"u"&&(r=r||{},r.format||(r.format=ya()),i.options(r)[r.format](n,r).render()),i};Bn.getModule=function(t){return wt.default[t]};for(var ga in wt.default)wt.default.hasOwnProperty(ga)&&x0(wt.default,ga);function x0(t,e){at.prototype[e]=at.prototype[e.toUpperCase()]=at.prototype[e.toLowerCase()]=function(n,r){var i=this;return i._errorHandler.wrapBarcodeCall(function(){r.text=typeof r.text>"u"?void 0:""+r.text;var o=(0,Qt.default)(i._options,r);o=(0,w0.default)(o);var a=t[e],s=va(n,a,o);return i._encodings.push(s),i})}}function va(t,e,n){t=""+t;var r=new e(t,n);if(!r.valid())throw new pa.InvalidInputException(r.constructor.name,t);var i=r.encode();i=(0,da.default)(i);for(var o=0;o<i.length;o++)i[o].options=(0,Qt.default)(n,i[o].options);return i}function ya(){return wt.default.CODE128?"CODE128":Object.keys(wt.default)[0]}at.prototype.options=function(t){return this._options=(0,Qt.default)(this._options,t),this},at.prototype.blank=function(t){var e=new Array(t+1).join("0");return this._encodings.push({data:e}),this},at.prototype.init=function(){if(!!this._renderProperties){Array.isArray(this._renderProperties)||(this._renderProperties=[this._renderProperties]);var t;for(var e in this._renderProperties){t=this._renderProperties[e];var n=(0,Qt.default)(this._options,t.options);n.format=="auto"&&(n.format=ya()),this._errorHandler.wrapBarcodeCall(function(){var r=n.value,i=wt.default[n.format.toUpperCase()],o=va(r,i,n);ci(t,o,n)})}}},at.prototype.render=function(){if(!this._renderProperties)throw new pa.NoElementException;if(Array.isArray(this._renderProperties))for(var t=0;t<this._renderProperties.length;t++)ci(this._renderProperties[t],this._encodings,this._options);else ci(this._renderProperties,this._encodings,this._options);return this},at.prototype._defaults=ma.default;function ci(t,e,n){e=(0,da.default)(e);for(var r=0;r<e.length;r++)e[r].options=(0,Qt.default)(n,e[r].options),(0,ha.default)(e[r].options);(0,ha.default)(n);var i=t.renderer,o=new i(t.element,e,n);o.render(),t.afterRender&&t.afterRender()}typeof window<"u"&&(window.JsBarcode=Bn),typeof jQuery<"u"&&(jQuery.fn.JsBarcode=function(t,e){var n=[];return jQuery(this).each(function(){n.push(this)}),Bn(n,t,e)});var C0=Bn;const E0=u.defineComponent({name:"BarCodeBox",data(){return{}},props:{value:String,format:String,displayValue:{type:Boolean,default:!0},fontSize:Number,textPosition:String,textAlign:String,textMargin:Number,width:{type:Number,default:2},height:{type:Number,default:50},background:String,lineColor:String},methods:{},computed:{},components:{},watch:{$props:{handler(){const t=this.value,e={};Object.keys(this.$props).forEach(n=>{this.$props[n]!=null&&this.$props[n]!==""&&(e[n]=this.$props[n])}),delete e.value,delete e.formCreateInject,this.$nextTick(()=>{C0(this.$refs.bar,t||"",e)})},deep:!0,immediate:!0}}}),k0={class:"_fc-barcode",ref:"bar"};function A0(t,e,n,r,i,o){return u.openBlock(),u.createElementBlock("img",k0,null,512)}const D0=Se(E0,[["render",A0]]),p1="",R0=u.defineComponent({name:"VideoBox",emits:["pause","play","ended","error"],data(){return{player:null}},props:{src:String,type:String,controls:{type:Boolean,default:!0},autoplay:Boolean,isLive:Boolean,withCredentials:Boolean,loop:Boolean},watch:{src:{handler:function(){this.$nextTick(()=>{Me.ready("mpegts",()=>{const t=this.$refs.video,e=window.mpegts.createPlayer({isLive:this.isLive,type:this.type,url:this.src});e.attachMediaElement(t),e.on("error",n=>{this.$emit("error",n)}),e.load(),this.autoplay&&e.play().catch(n=>{this.$emit("error",n)}),this.player=e})})},immediate:!0}},created(){window.mpegts?Me.done("mpegts"):Me.isDefined("mpegts")||Me.loadNpm("mpegts.js@1.8.0/dist/mpegts.js","mpegts")}}),P0=["controls","loop"];function V0(t,e,n,r,i,o){return u.openBlock(),u.createElementBlock("video",{ref:"video",class:"_fc-video-box",controls:t.controls,loop:t.loop,onPause:e[0]||(e[0]=a=>t.$emit("pause",a)),onPlay:e[1]||(e[1]=a=>t.$emit("play",a)),onEnded:e[2]||(e[2]=a=>t.$emit("ended",a))},null,40,P0)}const T0=Se(R0,[["render",V0]]);var _a={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(oo,()=>(()=>{var n={873:(a,s)=>{var l,f,c=function(){var p=function(A,$){var _=A,h=B[$],d=null,g=0,y=null,v=[],E={},M=function(w,C){d=function(x){for(var V=new Array(x),j=0;j<x;j+=1){V[j]=new Array(x);for(var X=0;X<x;X+=1)V[j][X]=null}return V}(g=4*_+17),T(0,0),T(g-7,0),T(0,g-7),L(),G(),q(w,C),_>=7&&z(w),y==null&&(y=k(_,h,v)),R(y,C)},T=function(w,C){for(var x=-1;x<=7;x+=1)if(!(w+x<=-1||g<=w+x))for(var V=-1;V<=7;V+=1)C+V<=-1||g<=C+V||(d[w+x][C+V]=0<=x&&x<=6&&(V==0||V==6)||0<=V&&V<=6&&(x==0||x==6)||2<=x&&x<=4&&2<=V&&V<=4)},G=function(){for(var w=8;w<g-8;w+=1)d[w][6]==null&&(d[w][6]=w%2==0);for(var C=8;C<g-8;C+=1)d[6][C]==null&&(d[6][C]=C%2==0)},L=function(){for(var w=F.getPatternPosition(_),C=0;C<w.length;C+=1)for(var x=0;x<w.length;x+=1){var V=w[C],j=w[x];if(d[V][j]==null)for(var X=-2;X<=2;X+=1)for(var K=-2;K<=2;K+=1)d[V+X][j+K]=X==-2||X==2||K==-2||K==2||X==0&&K==0}},z=function(w){for(var C=F.getBCHTypeNumber(_),x=0;x<18;x+=1){var V=!w&&(C>>x&1)==1;d[Math.floor(x/3)][x%3+g-8-3]=V}for(x=0;x<18;x+=1)V=!w&&(C>>x&1)==1,d[x%3+g-8-3][Math.floor(x/3)]=V},q=function(w,C){for(var x=h<<3|C,V=F.getBCHTypeInfo(x),j=0;j<15;j+=1){var X=!w&&(V>>j&1)==1;j<6?d[j][8]=X:j<8?d[j+1][8]=X:d[g-15+j][8]=X}for(j=0;j<15;j+=1)X=!w&&(V>>j&1)==1,j<8?d[8][g-j-1]=X:j<9?d[8][15-j-1+1]=X:d[8][15-j-1]=X;d[g-8][8]=!w},R=function(w,C){for(var x=-1,V=g-1,j=7,X=0,K=F.getMaskFunction(C),ie=g-1;ie>0;ie-=2)for(ie==6&&(ie-=1);;){for(var ae=0;ae<2;ae+=1)if(d[V][ie-ae]==null){var le=!1;X<w.length&&(le=(w[X]>>>j&1)==1),K(V,ie-ae)&&(le=!le),d[V][ie-ae]=le,(j-=1)==-1&&(X+=1,j=7)}if((V+=x)<0||g<=V){V-=x,x=-x;break}}},k=function(w,C,x){for(var V=W.getRSBlocks(w,C),j=U(),X=0;X<x.length;X+=1){var K=x[X];j.put(K.getMode(),4),j.put(K.getLength(),F.getLengthInBits(K.getMode(),w)),K.write(j)}var ie=0;for(X=0;X<V.length;X+=1)ie+=V[X].dataCount;if(j.getLengthInBits()>8*ie)throw"code length overflow. ("+j.getLengthInBits()+">"+8*ie+")";for(j.getLengthInBits()+4<=8*ie&&j.put(0,4);j.getLengthInBits()%8!=0;)j.putBit(!1);for(;!(j.getLengthInBits()>=8*ie||(j.put(236,8),j.getLengthInBits()>=8*ie));)j.put(17,8);return function(ae,le){for(var he=0,$e=0,ve=0,de=new Array(le.length),pe=new Array(le.length),Q=0;Q<le.length;Q+=1){var Oe=le[Q].dataCount,Ce=le[Q].totalCount-Oe;$e=Math.max($e,Oe),ve=Math.max(ve,Ce),de[Q]=new Array(Oe);for(var se=0;se<de[Q].length;se+=1)de[Q][se]=255&ae.getBuffer()[se+he];he+=Oe;var Fe=F.getErrorCorrectPolynomial(Ce),Te=Y(de[Q],Fe.getLength()-1).mod(Fe);for(pe[Q]=new Array(Fe.getLength()-1),se=0;se<pe[Q].length;se+=1){var Ae=se+Te.getLength()-pe[Q].length;pe[Q][se]=Ae>=0?Te.getAt(Ae):0}}var Un=0;for(se=0;se<le.length;se+=1)Un+=le[se].totalCount;var en=new Array(Un),Ye=0;for(se=0;se<$e;se+=1)for(Q=0;Q<le.length;Q+=1)se<de[Q].length&&(en[Ye]=de[Q][se],Ye+=1);for(se=0;se<ve;se+=1)for(Q=0;Q<le.length;Q+=1)se<pe[Q].length&&(en[Ye]=pe[Q][se],Ye+=1);return en}(j,V)};E.addData=function(w,C){var x=null;switch(C=C||"Byte"){case"Numeric":x=re(w);break;case"Alphanumeric":x=ne(w);break;case"Byte":x=oe(w);break;case"Kanji":x=Z(w);break;default:throw"mode:"+C}v.push(x),y=null},E.isDark=function(w,C){if(w<0||g<=w||C<0||g<=C)throw w+","+C;return d[w][C]},E.getModuleCount=function(){return g},E.make=function(){if(_<1){for(var w=1;w<40;w++){for(var C=W.getRSBlocks(w,h),x=U(),V=0;V<v.length;V++){var j=v[V];x.put(j.getMode(),4),x.put(j.getLength(),F.getLengthInBits(j.getMode(),w)),j.write(x)}var X=0;for(V=0;V<C.length;V++)X+=C[V].dataCount;if(x.getLengthInBits()<=8*X)break}_=w}M(!1,function(){for(var K=0,ie=0,ae=0;ae<8;ae+=1){M(!0,ae);var le=F.getLostPoint(E);(ae==0||K>le)&&(K=le,ie=ae)}return ie}())},E.createTableTag=function(w,C){w=w||2;var x="";x+='<table style="',x+=" border-width: 0px; border-style: none;",x+=" border-collapse: collapse;",x+=" padding: 0px; margin: "+(C=C===void 0?4*w:C)+"px;",x+='">',x+="<tbody>";for(var V=0;V<E.getModuleCount();V+=1){x+="<tr>";for(var j=0;j<E.getModuleCount();j+=1)x+='<td style="',x+=" border-width: 0px; border-style: none;",x+=" border-collapse: collapse;",x+=" padding: 0px; margin: 0px;",x+=" width: "+w+"px;",x+=" height: "+w+"px;",x+=" background-color: ",x+=E.isDark(V,j)?"#000000":"#ffffff",x+=";",x+='"/>';x+="</tr>"}return(x+="</tbody>")+"</table>"},E.createSvgTag=function(w,C,x,V){var j={};typeof arguments[0]=="object"&&(w=(j=arguments[0]).cellSize,C=j.margin,x=j.alt,V=j.title),w=w||2,C=C===void 0?4*w:C,(x=typeof x=="string"?{text:x}:x||{}).text=x.text||null,x.id=x.text?x.id||"qrcode-description":null,(V=typeof V=="string"?{text:V}:V||{}).text=V.text||null,V.id=V.text?V.id||"qrcode-title":null;var X,K,ie,ae,le=E.getModuleCount()*w+2*C,he="";for(ae="l"+w+",0 0,"+w+" -"+w+",0 0,-"+w+"z ",he+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',he+=j.scalable?"":' width="'+le+'px" height="'+le+'px"',he+=' viewBox="0 0 '+le+" "+le+'" ',he+=' preserveAspectRatio="xMinYMin meet"',he+=V.text||x.text?' role="img" aria-labelledby="'+P([V.id,x.id].join(" ").trim())+'"':"",he+=">",he+=V.text?'<title id="'+P(V.id)+'">'+P(V.text)+"</title>":"",he+=x.text?'<description id="'+P(x.id)+'">'+P(x.text)+"</description>":"",he+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',he+='<path d="',K=0;K<E.getModuleCount();K+=1)for(ie=K*w+C,X=0;X<E.getModuleCount();X+=1)E.isDark(K,X)&&(he+="M"+(X*w+C)+","+ie+ae);return(he+='" stroke="transparent" fill="black"/>')+"</svg>"},E.createDataURL=function(w,C){w=w||2,C=C===void 0?4*w:C;var x=E.getModuleCount()*w+2*C,V=C,j=x-C;return Ie(x,x,function(X,K){if(V<=X&&X<j&&V<=K&&K<j){var ie=Math.floor((X-V)/w),ae=Math.floor((K-V)/w);return E.isDark(ae,ie)?0:1}return 1})},E.createImgTag=function(w,C,x){w=w||2,C=C===void 0?4*w:C;var V=E.getModuleCount()*w+2*C,j="";return j+="<img",j+=' src="',j+=E.createDataURL(w,C),j+='"',j+=' width="',j+=V,j+='"',j+=' height="',j+=V,j+='"',x&&(j+=' alt="',j+=P(x),j+='"'),j+"/>"};var P=function(w){for(var C="",x=0;x<w.length;x+=1){var V=w.charAt(x);switch(V){case"<":C+="<";break;case">":C+=">";break;case"&":C+="&";break;case'"':C+=""";break;default:C+=V}}return C};return E.createASCII=function(w,C){if((w=w||1)<2)return function(de){de=de===void 0?2:de;var pe,Q,Oe,Ce,se,Fe=1*E.getModuleCount()+2*de,Te=de,Ae=Fe-de,Un={"\u2588\u2588":"\u2588","\u2588 ":"\u2580"," \u2588":"\u2584"," ":" "},en={"\u2588\u2588":"\u2580","\u2588 ":"\u2580"," \u2588":" "," ":" "},Ye="";for(pe=0;pe<Fe;pe+=2){for(Oe=Math.floor((pe-Te)/1),Ce=Math.floor((pe+1-Te)/1),Q=0;Q<Fe;Q+=1)se="\u2588",Te<=Q&&Q<Ae&&Te<=pe&&pe<Ae&&E.isDark(Oe,Math.floor((Q-Te)/1))&&(se=" "),Te<=Q&&Q<Ae&&Te<=pe+1&&pe+1<Ae&&E.isDark(Ce,Math.floor((Q-Te)/1))?se+=" ":se+="\u2588",Ye+=de<1&&pe+1>=Ae?en[se]:Un[se];Ye+=`
|
|
101
|
+
`}return Fe%2&&de>0?Ye.substring(0,Ye.length-Fe-1)+Array(Fe+1).join("\u2580"):Ye.substring(0,Ye.length-1)}(C);w-=1,C=C===void 0?2*w:C;var x,V,j,X,K=E.getModuleCount()*w+2*C,ie=C,ae=K-C,le=Array(w+1).join("\u2588\u2588"),he=Array(w+1).join(" "),$e="",ve="";for(x=0;x<K;x+=1){for(j=Math.floor((x-ie)/w),ve="",V=0;V<K;V+=1)X=1,ie<=V&&V<ae&&ie<=x&&x<ae&&E.isDark(j,Math.floor((V-ie)/w))&&(X=0),ve+=X?le:he;for(j=0;j<w;j+=1)$e+=ve+`
|
|
102
|
+
`}return $e.substring(0,$e.length-1)},E.renderTo2dContext=function(w,C){C=C||2;for(var x=E.getModuleCount(),V=0;V<x;V++)for(var j=0;j<x;j++)w.fillStyle=E.isDark(V,j)?"black":"white",w.fillRect(V*C,j*C,C,C)},E};p.stringToBytes=(p.stringToBytesFuncs={default:function(A){for(var $=[],_=0;_<A.length;_+=1){var h=A.charCodeAt(_);$.push(255&h)}return $}}).default,p.createStringToBytes=function(A,$){var _=function(){for(var d=_e(A),g=function(){var G=d.read();if(G==-1)throw"eof";return G},y=0,v={};;){var E=d.read();if(E==-1)break;var M=g(),T=g()<<8|g();v[String.fromCharCode(E<<8|M)]=T,y+=1}if(y!=$)throw y+" != "+$;return v}(),h="?".charCodeAt(0);return function(d){for(var g=[],y=0;y<d.length;y+=1){var v=d.charCodeAt(y);if(v<128)g.push(v);else{var E=_[d.charAt(y)];typeof E=="number"?(255&E)==E?g.push(E):(g.push(E>>>8),g.push(255&E)):g.push(h)}}return g}};var m,b,S,O,D,B={L:1,M:0,Q:3,H:2},F=(m=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],b=1335,S=7973,D=function(A){for(var $=0;A!=0;)$+=1,A>>>=1;return $},(O={}).getBCHTypeInfo=function(A){for(var $=A<<10;D($)-D(b)>=0;)$^=b<<D($)-D(b);return 21522^(A<<10|$)},O.getBCHTypeNumber=function(A){for(var $=A<<12;D($)-D(S)>=0;)$^=S<<D($)-D(S);return A<<12|$},O.getPatternPosition=function(A){return m[A-1]},O.getMaskFunction=function(A){switch(A){case 0:return function($,_){return($+_)%2==0};case 1:return function($,_){return $%2==0};case 2:return function($,_){return _%3==0};case 3:return function($,_){return($+_)%3==0};case 4:return function($,_){return(Math.floor($/2)+Math.floor(_/3))%2==0};case 5:return function($,_){return $*_%2+$*_%3==0};case 6:return function($,_){return($*_%2+$*_%3)%2==0};case 7:return function($,_){return($*_%3+($+_)%2)%2==0};default:throw"bad maskPattern:"+A}},O.getErrorCorrectPolynomial=function(A){for(var $=Y([1],0),_=0;_<A;_+=1)$=$.multiply(Y([1,I.gexp(_)],0));return $},O.getLengthInBits=function(A,$){if(1<=$&&$<10)switch(A){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+A}else if($<27)switch(A){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+A}else{if(!($<41))throw"type:"+$;switch(A){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+A}}},O.getLostPoint=function(A){for(var $=A.getModuleCount(),_=0,h=0;h<$;h+=1)for(var d=0;d<$;d+=1){for(var g=0,y=A.isDark(h,d),v=-1;v<=1;v+=1)if(!(h+v<0||$<=h+v))for(var E=-1;E<=1;E+=1)d+E<0||$<=d+E||v==0&&E==0||y==A.isDark(h+v,d+E)&&(g+=1);g>5&&(_+=3+g-5)}for(h=0;h<$-1;h+=1)for(d=0;d<$-1;d+=1){var M=0;A.isDark(h,d)&&(M+=1),A.isDark(h+1,d)&&(M+=1),A.isDark(h,d+1)&&(M+=1),A.isDark(h+1,d+1)&&(M+=1),M!=0&&M!=4||(_+=3)}for(h=0;h<$;h+=1)for(d=0;d<$-6;d+=1)A.isDark(h,d)&&!A.isDark(h,d+1)&&A.isDark(h,d+2)&&A.isDark(h,d+3)&&A.isDark(h,d+4)&&!A.isDark(h,d+5)&&A.isDark(h,d+6)&&(_+=40);for(d=0;d<$;d+=1)for(h=0;h<$-6;h+=1)A.isDark(h,d)&&!A.isDark(h+1,d)&&A.isDark(h+2,d)&&A.isDark(h+3,d)&&A.isDark(h+4,d)&&!A.isDark(h+5,d)&&A.isDark(h+6,d)&&(_+=40);var T=0;for(d=0;d<$;d+=1)for(h=0;h<$;h+=1)A.isDark(h,d)&&(T+=1);return _+Math.abs(100*T/$/$-50)/5*10},O),I=function(){for(var A=new Array(256),$=new Array(256),_=0;_<8;_+=1)A[_]=1<<_;for(_=8;_<256;_+=1)A[_]=A[_-4]^A[_-5]^A[_-6]^A[_-8];for(_=0;_<255;_+=1)$[A[_]]=_;return{glog:function(h){if(h<1)throw"glog("+h+")";return $[h]},gexp:function(h){for(;h<0;)h+=255;for(;h>=256;)h-=255;return A[h]}}}();function Y(A,$){if(A.length===void 0)throw A.length+"/"+$;var _=function(){for(var d=0;d<A.length&&A[d]==0;)d+=1;for(var g=new Array(A.length-d+$),y=0;y<A.length-d;y+=1)g[y]=A[y+d];return g}(),h={getAt:function(d){return _[d]},getLength:function(){return _.length},multiply:function(d){for(var g=new Array(h.getLength()+d.getLength()-1),y=0;y<h.getLength();y+=1)for(var v=0;v<d.getLength();v+=1)g[y+v]^=I.gexp(I.glog(h.getAt(y))+I.glog(d.getAt(v)));return Y(g,0)},mod:function(d){if(h.getLength()-d.getLength()<0)return h;for(var g=I.glog(h.getAt(0))-I.glog(d.getAt(0)),y=new Array(h.getLength()),v=0;v<h.getLength();v+=1)y[v]=h.getAt(v);for(v=0;v<d.getLength();v+=1)y[v]^=I.gexp(I.glog(d.getAt(v))+g);return Y(y,0).mod(d)}};return h}var W=function(){var A=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],$=function(h,d){var g={};return g.totalCount=h,g.dataCount=d,g},_={getRSBlocks:function(h,d){var g=function(z,q){switch(q){case B.L:return A[4*(z-1)+0];case B.M:return A[4*(z-1)+1];case B.Q:return A[4*(z-1)+2];case B.H:return A[4*(z-1)+3];default:return}}(h,d);if(g===void 0)throw"bad rs block @ typeNumber:"+h+"/errorCorrectionLevel:"+d;for(var y=g.length/3,v=[],E=0;E<y;E+=1)for(var M=g[3*E+0],T=g[3*E+1],G=g[3*E+2],L=0;L<M;L+=1)v.push($(T,G));return v}};return _}(),U=function(){var A=[],$=0,_={getBuffer:function(){return A},getAt:function(h){var d=Math.floor(h/8);return(A[d]>>>7-h%8&1)==1},put:function(h,d){for(var g=0;g<d;g+=1)_.putBit((h>>>d-g-1&1)==1)},getLengthInBits:function(){return $},putBit:function(h){var d=Math.floor($/8);A.length<=d&&A.push(0),h&&(A[d]|=128>>>$%8),$+=1}};return _},re=function(A){var $=A,_={getMode:function(){return 1},getLength:function(g){return $.length},write:function(g){for(var y=$,v=0;v+2<y.length;)g.put(h(y.substring(v,v+3)),10),v+=3;v<y.length&&(y.length-v==1?g.put(h(y.substring(v,v+1)),4):y.length-v==2&&g.put(h(y.substring(v,v+2)),7))}},h=function(g){for(var y=0,v=0;v<g.length;v+=1)y=10*y+d(g.charAt(v));return y},d=function(g){if("0"<=g&&g<="9")return g.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+g};return _},ne=function(A){var $=A,_={getMode:function(){return 2},getLength:function(d){return $.length},write:function(d){for(var g=$,y=0;y+1<g.length;)d.put(45*h(g.charAt(y))+h(g.charAt(y+1)),11),y+=2;y<g.length&&d.put(h(g.charAt(y)),6)}},h=function(d){if("0"<=d&&d<="9")return d.charCodeAt(0)-"0".charCodeAt(0);if("A"<=d&&d<="Z")return d.charCodeAt(0)-"A".charCodeAt(0)+10;switch(d){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+d}};return _},oe=function(A){var $=p.stringToBytes(A);return{getMode:function(){return 4},getLength:function(_){return $.length},write:function(_){for(var h=0;h<$.length;h+=1)_.put($[h],8)}}},Z=function(A){var $=p.stringToBytesFuncs.SJIS;if(!$)throw"sjis not supported.";(function(){var d=$("\u53CB");if(d.length!=2||(d[0]<<8|d[1])!=38726)throw"sjis not supported."})();var _=$(A),h={getMode:function(){return 8},getLength:function(d){return~~(_.length/2)},write:function(d){for(var g=_,y=0;y+1<g.length;){var v=(255&g[y])<<8|255&g[y+1];if(33088<=v&&v<=40956)v-=33088;else{if(!(57408<=v&&v<=60351))throw"illegal char at "+(y+1)+"/"+v;v-=49472}v=192*(v>>>8&255)+(255&v),d.put(v,13),y+=2}if(y<g.length)throw"illegal char at "+(y+1)}};return h},H=function(){var A=[],$={writeByte:function(_){A.push(255&_)},writeShort:function(_){$.writeByte(_),$.writeByte(_>>>8)},writeBytes:function(_,h,d){h=h||0,d=d||_.length;for(var g=0;g<d;g+=1)$.writeByte(_[g+h])},writeString:function(_){for(var h=0;h<_.length;h+=1)$.writeByte(_.charCodeAt(h))},toByteArray:function(){return A},toString:function(){var _="";_+="[";for(var h=0;h<A.length;h+=1)h>0&&(_+=","),_+=A[h];return _+"]"}};return $},_e=function(A){var $=A,_=0,h=0,d=0,g={read:function(){for(;d<8;){if(_>=$.length){if(d==0)return-1;throw"unexpected end of file./"+d}var v=$.charAt(_);if(_+=1,v=="=")return d=0,-1;v.match(/^\s$/)||(h=h<<6|y(v.charCodeAt(0)),d+=6)}var E=h>>>d-8&255;return d-=8,E}},y=function(v){if(65<=v&&v<=90)return v-65;if(97<=v&&v<=122)return v-97+26;if(48<=v&&v<=57)return v-48+52;if(v==43)return 62;if(v==47)return 63;throw"c:"+v};return g},Ie=function(A,$,_){for(var h=function(T,G){var L=T,z=G,q=new Array(T*G),R={setPixel:function(w,C,x){q[C*L+w]=x},write:function(w){w.writeString("GIF87a"),w.writeShort(L),w.writeShort(z),w.writeByte(128),w.writeByte(0),w.writeByte(0),w.writeByte(0),w.writeByte(0),w.writeByte(0),w.writeByte(255),w.writeByte(255),w.writeByte(255),w.writeString(","),w.writeShort(0),w.writeShort(0),w.writeShort(L),w.writeShort(z),w.writeByte(0);var C=k(2);w.writeByte(2);for(var x=0;C.length-x>255;)w.writeByte(255),w.writeBytes(C,x,255),x+=255;w.writeByte(C.length-x),w.writeBytes(C,x,C.length-x),w.writeByte(0),w.writeString(";")}},k=function(w){for(var C=1<<w,x=1+(1<<w),V=w+1,j=P(),X=0;X<C;X+=1)j.add(String.fromCharCode(X));j.add(String.fromCharCode(C)),j.add(String.fromCharCode(x));var K,ie,ae,le=H(),he=(K=le,ie=0,ae=0,{write:function(pe,Q){if(pe>>>Q!=0)throw"length over";for(;ie+Q>=8;)K.writeByte(255&(pe<<ie|ae)),Q-=8-ie,pe>>>=8-ie,ae=0,ie=0;ae|=pe<<ie,ie+=Q},flush:function(){ie>0&&K.writeByte(ae)}});he.write(C,V);var $e=0,ve=String.fromCharCode(q[$e]);for($e+=1;$e<q.length;){var de=String.fromCharCode(q[$e]);$e+=1,j.contains(ve+de)?ve+=de:(he.write(j.indexOf(ve),V),j.size()<4095&&(j.size()==1<<V&&(V+=1),j.add(ve+de)),ve=de)}return he.write(j.indexOf(ve),V),he.write(x,V),he.flush(),le.toByteArray()},P=function(){var w={},C=0,x={add:function(V){if(x.contains(V))throw"dup key:"+V;w[V]=C,C+=1},size:function(){return C},indexOf:function(V){return w[V]},contains:function(V){return w[V]!==void 0}};return x};return R}(A,$),d=0;d<$;d+=1)for(var g=0;g<A;g+=1)h.setPixel(g,d,_(g,d));var y=H();h.write(y);for(var v=function(){var T=0,G=0,L=0,z="",q={},R=function(P){z+=String.fromCharCode(k(63&P))},k=function(P){if(!(P<0)){if(P<26)return 65+P;if(P<52)return P-26+97;if(P<62)return P-52+48;if(P==62)return 43;if(P==63)return 47}throw"n:"+P};return q.writeByte=function(P){for(T=T<<8|255&P,G+=8,L+=1;G>=6;)R(T>>>G-6),G-=6},q.flush=function(){if(G>0&&(R(T<<6-G),T=0,G=0),L%3!=0)for(var P=3-L%3,w=0;w<P;w+=1)z+="="},q.toString=function(){return z},q}(),E=y.toByteArray(),M=0;M<E.length;M+=1)v.writeByte(E[M]);return v.flush(),"data:image/gif;base64,"+v};return p}();c.stringToBytesFuncs["UTF-8"]=function(p){return function(m){for(var b=[],S=0;S<m.length;S++){var O=m.charCodeAt(S);O<128?b.push(O):O<2048?b.push(192|O>>6,128|63&O):O<55296||O>=57344?b.push(224|O>>12,128|O>>6&63,128|63&O):(S++,O=65536+((1023&O)<<10|1023&m.charCodeAt(S)),b.push(240|O>>18,128|O>>12&63,128|O>>6&63,128|63&O))}return b}(p)},(f=typeof(l=function(){return c})=="function"?l.apply(s,[]):l)===void 0||(a.exports=f)}},r={};function i(a){var s=r[a];if(s!==void 0)return s.exports;var l=r[a]={exports:{}};return n[a](l,l.exports,i),l.exports}i.n=a=>{var s=a&&a.__esModule?()=>a.default:()=>a;return i.d(s,{a:s}),s},i.d=(a,s)=>{for(var l in s)i.o(s,l)&&!i.o(a,l)&&Object.defineProperty(a,l,{enumerable:!0,get:s[l]})},i.o=(a,s)=>Object.prototype.hasOwnProperty.call(a,s);var o={};return(()=>{i.d(o,{default:()=>$});const a=_=>!!_&&typeof _=="object"&&!Array.isArray(_);function s(_,...h){if(!h.length)return _;const d=h.shift();return d!==void 0&&a(_)&&a(d)?(_=Object.assign({},_),Object.keys(d).forEach(g=>{const y=_[g],v=d[g];Array.isArray(y)&&Array.isArray(v)?_[g]=v:a(y)&&a(v)?_[g]=s(Object.assign({},y),v):_[g]=v}),s(_,...h)):_}function l(_,h){const d=document.createElement("a");d.download=h,d.href=_,document.body.appendChild(d),d.click(),document.body.removeChild(d)}const f={L:.07,M:.15,Q:.25,H:.3};class c{constructor({svg:h,type:d,window:g}){this._svg=h,this._type=d,this._window=g}draw(h,d,g,y){let v;switch(this._type){case"dots":v=this._drawDot;break;case"classy":v=this._drawClassy;break;case"classy-rounded":v=this._drawClassyRounded;break;case"rounded":v=this._drawRounded;break;case"extra-rounded":v=this._drawExtraRounded;break;default:v=this._drawSquare}v.call(this,{x:h,y:d,size:g,getNeighbor:y})}_rotateFigure({x:h,y:d,size:g,rotation:y=0,draw:v}){var E;const M=h+g/2,T=d+g/2;v(),(E=this._element)===null||E===void 0||E.setAttribute("transform",`rotate(${180*y/Math.PI},${M},${T})`)}_basicDot(h){const{size:d,x:g,y}=h;this._rotateFigure(Object.assign(Object.assign({},h),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(g+d/2)),this._element.setAttribute("cy",String(y+d/2)),this._element.setAttribute("r",String(d/2))}}))}_basicSquare(h){const{size:d,x:g,y}=h;this._rotateFigure(Object.assign(Object.assign({},h),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(g)),this._element.setAttribute("y",String(y)),this._element.setAttribute("width",String(d)),this._element.setAttribute("height",String(d))}}))}_basicSideRounded(h){const{size:d,x:g,y}=h;this._rotateFigure(Object.assign(Object.assign({},h),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${g} ${y}v ${d}h `+d/2+`a ${d/2} ${d/2}, 0, 0, 0, 0 ${-d}`)}}))}_basicCornerRounded(h){const{size:d,x:g,y}=h;this._rotateFigure(Object.assign(Object.assign({},h),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${g} ${y}v ${d}h ${d}v `+-d/2+`a ${d/2} ${d/2}, 0, 0, 0, ${-d/2} ${-d/2}`)}}))}_basicCornerExtraRounded(h){const{size:d,x:g,y}=h;this._rotateFigure(Object.assign(Object.assign({},h),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${g} ${y}v ${d}h ${d}a ${d} ${d}, 0, 0, 0, ${-d} ${-d}`)}}))}_basicCornersRounded(h){const{size:d,x:g,y}=h;this._rotateFigure(Object.assign(Object.assign({},h),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${g} ${y}v `+d/2+`a ${d/2} ${d/2}, 0, 0, 0, ${d/2} ${d/2}h `+d/2+"v "+-d/2+`a ${d/2} ${d/2}, 0, 0, 0, ${-d/2} ${-d/2}`)}}))}_drawDot({x:h,y:d,size:g}){this._basicDot({x:h,y:d,size:g,rotation:0})}_drawSquare({x:h,y:d,size:g}){this._basicSquare({x:h,y:d,size:g,rotation:0})}_drawRounded({x:h,y:d,size:g,getNeighbor:y}){const v=y?+y(-1,0):0,E=y?+y(1,0):0,M=y?+y(0,-1):0,T=y?+y(0,1):0,G=v+E+M+T;if(G!==0)if(G>2||v&&E||M&&T)this._basicSquare({x:h,y:d,size:g,rotation:0});else{if(G===2){let L=0;return v&&M?L=Math.PI/2:M&&E?L=Math.PI:E&&T&&(L=-Math.PI/2),void this._basicCornerRounded({x:h,y:d,size:g,rotation:L})}if(G===1){let L=0;return M?L=Math.PI/2:E?L=Math.PI:T&&(L=-Math.PI/2),void this._basicSideRounded({x:h,y:d,size:g,rotation:L})}}else this._basicDot({x:h,y:d,size:g,rotation:0})}_drawExtraRounded({x:h,y:d,size:g,getNeighbor:y}){const v=y?+y(-1,0):0,E=y?+y(1,0):0,M=y?+y(0,-1):0,T=y?+y(0,1):0,G=v+E+M+T;if(G!==0)if(G>2||v&&E||M&&T)this._basicSquare({x:h,y:d,size:g,rotation:0});else{if(G===2){let L=0;return v&&M?L=Math.PI/2:M&&E?L=Math.PI:E&&T&&(L=-Math.PI/2),void this._basicCornerExtraRounded({x:h,y:d,size:g,rotation:L})}if(G===1){let L=0;return M?L=Math.PI/2:E?L=Math.PI:T&&(L=-Math.PI/2),void this._basicSideRounded({x:h,y:d,size:g,rotation:L})}}else this._basicDot({x:h,y:d,size:g,rotation:0})}_drawClassy({x:h,y:d,size:g,getNeighbor:y}){const v=y?+y(-1,0):0,E=y?+y(1,0):0,M=y?+y(0,-1):0,T=y?+y(0,1):0;v+E+M+T!==0?v||M?E||T?this._basicSquare({x:h,y:d,size:g,rotation:0}):this._basicCornerRounded({x:h,y:d,size:g,rotation:Math.PI/2}):this._basicCornerRounded({x:h,y:d,size:g,rotation:-Math.PI/2}):this._basicCornersRounded({x:h,y:d,size:g,rotation:Math.PI/2})}_drawClassyRounded({x:h,y:d,size:g,getNeighbor:y}){const v=y?+y(-1,0):0,E=y?+y(1,0):0,M=y?+y(0,-1):0,T=y?+y(0,1):0;v+E+M+T!==0?v||M?E||T?this._basicSquare({x:h,y:d,size:g,rotation:0}):this._basicCornerExtraRounded({x:h,y:d,size:g,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:h,y:d,size:g,rotation:-Math.PI/2}):this._basicCornersRounded({x:h,y:d,size:g,rotation:Math.PI/2})}}const p={dot:"dot",square:"square",extraRounded:"extra-rounded"},m=Object.values(p);class b{constructor({svg:h,type:d,window:g}){this._svg=h,this._type=d,this._window=g}draw(h,d,g,y){let v;switch(this._type){case p.square:v=this._drawSquare;break;case p.extraRounded:v=this._drawExtraRounded;break;default:v=this._drawDot}v.call(this,{x:h,y:d,size:g,rotation:y})}_rotateFigure({x:h,y:d,size:g,rotation:y=0,draw:v}){var E;const M=h+g/2,T=d+g/2;v(),(E=this._element)===null||E===void 0||E.setAttribute("transform",`rotate(${180*y/Math.PI},${M},${T})`)}_basicDot(h){const{size:d,x:g,y}=h,v=d/7;this._rotateFigure(Object.assign(Object.assign({},h),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${g+d/2} ${y}a ${d/2} ${d/2} 0 1 0 0.1 0zm 0 ${v}a ${d/2-v} ${d/2-v} 0 1 1 -0.1 0Z`)}}))}_basicSquare(h){const{size:d,x:g,y}=h,v=d/7;this._rotateFigure(Object.assign(Object.assign({},h),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${g} ${y}v ${d}h ${d}v `+-d+`zM ${g+v} ${y+v}h `+(d-2*v)+"v "+(d-2*v)+"h "+(2*v-d)+"z")}}))}_basicExtraRounded(h){const{size:d,x:g,y}=h,v=d/7;this._rotateFigure(Object.assign(Object.assign({},h),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${g} ${y+2.5*v}v `+2*v+`a ${2.5*v} ${2.5*v}, 0, 0, 0, ${2.5*v} ${2.5*v}h `+2*v+`a ${2.5*v} ${2.5*v}, 0, 0, 0, ${2.5*v} ${2.5*-v}v `+-2*v+`a ${2.5*v} ${2.5*v}, 0, 0, 0, ${2.5*-v} ${2.5*-v}h `+-2*v+`a ${2.5*v} ${2.5*v}, 0, 0, 0, ${2.5*-v} ${2.5*v}M ${g+2.5*v} ${y+v}h `+2*v+`a ${1.5*v} ${1.5*v}, 0, 0, 1, ${1.5*v} ${1.5*v}v `+2*v+`a ${1.5*v} ${1.5*v}, 0, 0, 1, ${1.5*-v} ${1.5*v}h `+-2*v+`a ${1.5*v} ${1.5*v}, 0, 0, 1, ${1.5*-v} ${1.5*-v}v `+-2*v+`a ${1.5*v} ${1.5*v}, 0, 0, 1, ${1.5*v} ${1.5*-v}`)}}))}_drawDot({x:h,y:d,size:g,rotation:y}){this._basicDot({x:h,y:d,size:g,rotation:y})}_drawSquare({x:h,y:d,size:g,rotation:y}){this._basicSquare({x:h,y:d,size:g,rotation:y})}_drawExtraRounded({x:h,y:d,size:g,rotation:y}){this._basicExtraRounded({x:h,y:d,size:g,rotation:y})}}const S={dot:"dot",square:"square"},O=Object.values(S);class D{constructor({svg:h,type:d,window:g}){this._svg=h,this._type=d,this._window=g}draw(h,d,g,y){let v;v=this._type===S.square?this._drawSquare:this._drawDot,v.call(this,{x:h,y:d,size:g,rotation:y})}_rotateFigure({x:h,y:d,size:g,rotation:y=0,draw:v}){var E;const M=h+g/2,T=d+g/2;v(),(E=this._element)===null||E===void 0||E.setAttribute("transform",`rotate(${180*y/Math.PI},${M},${T})`)}_basicDot(h){const{size:d,x:g,y}=h;this._rotateFigure(Object.assign(Object.assign({},h),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(g+d/2)),this._element.setAttribute("cy",String(y+d/2)),this._element.setAttribute("r",String(d/2))}}))}_basicSquare(h){const{size:d,x:g,y}=h;this._rotateFigure(Object.assign(Object.assign({},h),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(g)),this._element.setAttribute("y",String(y)),this._element.setAttribute("width",String(d)),this._element.setAttribute("height",String(d))}}))}_drawDot({x:h,y:d,size:g,rotation:y}){this._basicDot({x:h,y:d,size:g,rotation:y})}_drawSquare({x:h,y:d,size:g,rotation:y}){this._basicSquare({x:h,y:d,size:g,rotation:y})}}const B="circle",F=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],I=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];class Y{constructor(h,d){this._roundSize=g=>this._options.dotsOptions.roundSize?Math.floor(g):g,this._window=d,this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(h.width)),this._element.setAttribute("height",String(h.height)),this._element.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),h.dotsOptions.roundSize||this._element.setAttribute("shape-rendering","crispEdges"),this._element.setAttribute("viewBox",`0 0 ${h.width} ${h.height}`),this._defs=this._window.document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._imageUri=h.image,this._instanceId=Y.instanceCount++,this._options=h}get width(){return this._options.width}get height(){return this._options.height}getElement(){return this._element}async drawQR(h){const d=h.getModuleCount(),g=Math.min(this._options.width,this._options.height)-2*this._options.margin,y=this._options.shape===B?g/Math.sqrt(2):g,v=this._roundSize(y/d);let E={hideXDots:0,hideYDots:0,width:0,height:0};if(this._qr=h,this._options.image){if(await this.loadImage(),!this._image)return;const{imageOptions:M,qrOptions:T}=this._options,G=M.imageSize*f[T.errorCorrectionLevel],L=Math.floor(G*d*d);E=function({originalHeight:z,originalWidth:q,maxHiddenDots:R,maxHiddenAxisDots:k,dotSize:P}){const w={x:0,y:0},C={x:0,y:0};if(z<=0||q<=0||R<=0||P<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};const x=z/q;return w.x=Math.floor(Math.sqrt(R/x)),w.x<=0&&(w.x=1),k&&k<w.x&&(w.x=k),w.x%2==0&&w.x--,C.x=w.x*P,w.y=1+2*Math.ceil((w.x*x-1)/2),C.y=Math.round(C.x*x),(w.y*w.x>R||k&&k<w.y)&&(k&&k<w.y?(w.y=k,w.y%2==0&&w.x--):w.y-=2,C.y=w.y*P,w.x=1+2*Math.ceil((w.y/x-1)/2),C.x=Math.round(C.y/x)),{height:C.y,width:C.x,hideYDots:w.y,hideXDots:w.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:L,maxHiddenAxisDots:d-14,dotSize:v})}this.drawBackground(),this.drawDots((M,T)=>{var G,L,z,q,R,k;return!(this._options.imageOptions.hideBackgroundDots&&M>=(d-E.hideYDots)/2&&M<(d+E.hideYDots)/2&&T>=(d-E.hideXDots)/2&&T<(d+E.hideXDots)/2||((G=F[M])===null||G===void 0?void 0:G[T])||((L=F[M-d+7])===null||L===void 0?void 0:L[T])||((z=F[M])===null||z===void 0?void 0:z[T-d+7])||((q=I[M])===null||q===void 0?void 0:q[T])||((R=I[M-d+7])===null||R===void 0?void 0:R[T])||((k=I[M])===null||k===void 0?void 0:k[T-d+7]))}),this.drawCorners(),this._options.image&&await this.drawImage({width:E.width,height:E.height,count:d,dotSize:v})}drawBackground(){var h,d,g;const y=this._element,v=this._options;if(y){const E=(h=v.backgroundOptions)===null||h===void 0?void 0:h.gradient,M=(d=v.backgroundOptions)===null||d===void 0?void 0:d.color;let T=v.height,G=v.width;if(E||M){const L=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");this._backgroundClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._backgroundClipPath.setAttribute("id",`clip-path-background-color-${this._instanceId}`),this._defs.appendChild(this._backgroundClipPath),!((g=v.backgroundOptions)===null||g===void 0)&&g.round&&(T=G=Math.min(v.width,v.height),L.setAttribute("rx",String(T/2*v.backgroundOptions.round))),L.setAttribute("x",String(this._roundSize((v.width-G)/2))),L.setAttribute("y",String(this._roundSize((v.height-T)/2))),L.setAttribute("width",String(G)),L.setAttribute("height",String(T)),this._backgroundClipPath.appendChild(L),this._createColor({options:E,color:M,additionalRotation:0,x:0,y:0,height:v.height,width:v.width,name:`background-color-${this._instanceId}`})}}}drawDots(h){var d,g;if(!this._qr)throw"QR code is not defined";const y=this._options,v=this._qr.getModuleCount();if(v>y.width||v>y.height)throw"The canvas is too small.";const E=Math.min(y.width,y.height)-2*y.margin,M=y.shape===B?E/Math.sqrt(2):E,T=this._roundSize(M/v),G=this._roundSize((y.width-v*T)/2),L=this._roundSize((y.height-v*T)/2),z=new c({svg:this._element,type:y.dotsOptions.type,window:this._window});this._dotsClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id",`clip-path-dot-color-${this._instanceId}`),this._defs.appendChild(this._dotsClipPath),this._createColor({options:(d=y.dotsOptions)===null||d===void 0?void 0:d.gradient,color:y.dotsOptions.color,additionalRotation:0,x:0,y:0,height:y.height,width:y.width,name:`dot-color-${this._instanceId}`});for(let q=0;q<v;q++)for(let R=0;R<v;R++)h&&!h(q,R)||!((g=this._qr)===null||g===void 0)&&g.isDark(q,R)&&(z.draw(G+R*T,L+q*T,T,(k,P)=>!(R+k<0||q+P<0||R+k>=v||q+P>=v)&&!(h&&!h(q+P,R+k))&&!!this._qr&&this._qr.isDark(q+P,R+k)),z._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(z._element));if(y.shape===B){const q=this._roundSize((E/T-v)/2),R=v+2*q,k=G-q*T,P=L-q*T,w=[],C=this._roundSize(R/2);for(let x=0;x<R;x++){w[x]=[];for(let V=0;V<R;V++)x>=q-1&&x<=R-q&&V>=q-1&&V<=R-q||Math.sqrt((x-C)*(x-C)+(V-C)*(V-C))>C?w[x][V]=0:w[x][V]=this._qr.isDark(V-2*q<0?V:V>=v?V-2*q:V-q,x-2*q<0?x:x>=v?x-2*q:x-q)?1:0}for(let x=0;x<R;x++)for(let V=0;V<R;V++)w[x][V]&&(z.draw(k+V*T,P+x*T,T,(j,X)=>{var K;return!!(!((K=w[x+X])===null||K===void 0)&&K[V+j])}),z._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(z._element))}}drawCorners(){if(!this._qr)throw"QR code is not defined";const h=this._element,d=this._options;if(!h)throw"Element code is not defined";const g=this._qr.getModuleCount(),y=Math.min(d.width,d.height)-2*d.margin,v=d.shape===B?y/Math.sqrt(2):y,E=this._roundSize(v/g),M=7*E,T=3*E,G=this._roundSize((d.width-g*E)/2),L=this._roundSize((d.height-g*E)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(([z,q,R])=>{var k,P,w,C,x,V,j,X,K,ie,ae,le,he,$e;const ve=G+z*E*(g-7),de=L+q*E*(g-7);let pe=this._dotsClipPath,Q=this._dotsClipPath;if((((k=d.cornersSquareOptions)===null||k===void 0?void 0:k.gradient)||((P=d.cornersSquareOptions)===null||P===void 0?void 0:P.color))&&(pe=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),pe.setAttribute("id",`clip-path-corners-square-color-${z}-${q}-${this._instanceId}`),this._defs.appendChild(pe),this._cornersSquareClipPath=this._cornersDotClipPath=Q=pe,this._createColor({options:(w=d.cornersSquareOptions)===null||w===void 0?void 0:w.gradient,color:(C=d.cornersSquareOptions)===null||C===void 0?void 0:C.color,additionalRotation:R,x:ve,y:de,height:M,width:M,name:`corners-square-color-${z}-${q}-${this._instanceId}`})),((x=d.cornersSquareOptions)===null||x===void 0?void 0:x.type)&&m.includes(d.cornersSquareOptions.type)){const Oe=new b({svg:this._element,type:d.cornersSquareOptions.type,window:this._window});Oe.draw(ve,de,M,R),Oe._element&&pe&&pe.appendChild(Oe._element)}else{const Oe=new c({svg:this._element,type:((V=d.cornersSquareOptions)===null||V===void 0?void 0:V.type)||d.dotsOptions.type,window:this._window});for(let Ce=0;Ce<F.length;Ce++)for(let se=0;se<F[Ce].length;se++)!((j=F[Ce])===null||j===void 0)&&j[se]&&(Oe.draw(ve+se*E,de+Ce*E,E,(Fe,Te)=>{var Ae;return!!(!((Ae=F[Ce+Te])===null||Ae===void 0)&&Ae[se+Fe])}),Oe._element&&pe&&pe.appendChild(Oe._element))}if((((X=d.cornersDotOptions)===null||X===void 0?void 0:X.gradient)||((K=d.cornersDotOptions)===null||K===void 0?void 0:K.color))&&(Q=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),Q.setAttribute("id",`clip-path-corners-dot-color-${z}-${q}-${this._instanceId}`),this._defs.appendChild(Q),this._cornersDotClipPath=Q,this._createColor({options:(ie=d.cornersDotOptions)===null||ie===void 0?void 0:ie.gradient,color:(ae=d.cornersDotOptions)===null||ae===void 0?void 0:ae.color,additionalRotation:R,x:ve+2*E,y:de+2*E,height:T,width:T,name:`corners-dot-color-${z}-${q}-${this._instanceId}`})),((le=d.cornersDotOptions)===null||le===void 0?void 0:le.type)&&O.includes(d.cornersDotOptions.type)){const Oe=new D({svg:this._element,type:d.cornersDotOptions.type,window:this._window});Oe.draw(ve+2*E,de+2*E,T,R),Oe._element&&Q&&Q.appendChild(Oe._element)}else{const Oe=new c({svg:this._element,type:((he=d.cornersDotOptions)===null||he===void 0?void 0:he.type)||d.dotsOptions.type,window:this._window});for(let Ce=0;Ce<I.length;Ce++)for(let se=0;se<I[Ce].length;se++)!(($e=I[Ce])===null||$e===void 0)&&$e[se]&&(Oe.draw(ve+se*E,de+Ce*E,E,(Fe,Te)=>{var Ae;return!!(!((Ae=I[Ce+Te])===null||Ae===void 0)&&Ae[se+Fe])}),Oe._element&&Q&&Q.appendChild(Oe._element))}})}loadImage(){return new Promise((h,d)=>{var g;const y=this._options;if(!y.image)return d("Image is not defined");if(!((g=y.nodeCanvas)===null||g===void 0)&&g.loadImage)y.nodeCanvas.loadImage(y.image).then(v=>{var E,M;if(this._image=v,this._options.imageOptions.saveAsBlob){const T=(E=y.nodeCanvas)===null||E===void 0?void 0:E.createCanvas(this._image.width,this._image.height);(M=T==null?void 0:T.getContext("2d"))===null||M===void 0||M.drawImage(v,0,0),this._imageUri=T==null?void 0:T.toDataURL()}h()}).catch(d);else{const v=new this._window.Image;typeof y.imageOptions.crossOrigin=="string"&&(v.crossOrigin=y.imageOptions.crossOrigin),this._image=v,v.onload=async()=>{this._options.imageOptions.saveAsBlob&&(this._imageUri=await async function(E,M){return new Promise(T=>{const G=new M.XMLHttpRequest;G.onload=function(){const L=new M.FileReader;L.onloadend=function(){T(L.result)},L.readAsDataURL(G.response)},G.open("GET",E),G.responseType="blob",G.send()})}(y.image||"",this._window)),h()},v.src=y.image}})}async drawImage({width:h,height:d,count:g,dotSize:y}){const v=this._options,E=this._roundSize((v.width-g*y)/2),M=this._roundSize((v.height-g*y)/2),T=E+this._roundSize(v.imageOptions.margin+(g*y-h)/2),G=M+this._roundSize(v.imageOptions.margin+(g*y-d)/2),L=h-2*v.imageOptions.margin,z=d-2*v.imageOptions.margin,q=this._window.document.createElementNS("http://www.w3.org/2000/svg","image");q.setAttribute("href",this._imageUri||""),q.setAttribute("xlink:href",this._imageUri||""),q.setAttribute("x",String(T)),q.setAttribute("y",String(G)),q.setAttribute("width",`${L}px`),q.setAttribute("height",`${z}px`),this._element.appendChild(q)}_createColor({options:h,color:d,additionalRotation:g,x:y,y:v,height:E,width:M,name:T}){const G=M>E?M:E,L=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");if(L.setAttribute("x",String(y)),L.setAttribute("y",String(v)),L.setAttribute("height",String(E)),L.setAttribute("width",String(M)),L.setAttribute("clip-path",`url('#clip-path-${T}')`),h){let z;if(h.type==="radial")z=this._window.document.createElementNS("http://www.w3.org/2000/svg","radialGradient"),z.setAttribute("id",T),z.setAttribute("gradientUnits","userSpaceOnUse"),z.setAttribute("fx",String(y+M/2)),z.setAttribute("fy",String(v+E/2)),z.setAttribute("cx",String(y+M/2)),z.setAttribute("cy",String(v+E/2)),z.setAttribute("r",String(G/2));else{const q=((h.rotation||0)+g)%(2*Math.PI),R=(q+2*Math.PI)%(2*Math.PI);let k=y+M/2,P=v+E/2,w=y+M/2,C=v+E/2;R>=0&&R<=.25*Math.PI||R>1.75*Math.PI&&R<=2*Math.PI?(k-=M/2,P-=E/2*Math.tan(q),w+=M/2,C+=E/2*Math.tan(q)):R>.25*Math.PI&&R<=.75*Math.PI?(P-=E/2,k-=M/2/Math.tan(q),C+=E/2,w+=M/2/Math.tan(q)):R>.75*Math.PI&&R<=1.25*Math.PI?(k+=M/2,P+=E/2*Math.tan(q),w-=M/2,C-=E/2*Math.tan(q)):R>1.25*Math.PI&&R<=1.75*Math.PI&&(P+=E/2,k+=M/2/Math.tan(q),C-=E/2,w-=M/2/Math.tan(q)),z=this._window.document.createElementNS("http://www.w3.org/2000/svg","linearGradient"),z.setAttribute("id",T),z.setAttribute("gradientUnits","userSpaceOnUse"),z.setAttribute("x1",String(Math.round(k))),z.setAttribute("y1",String(Math.round(P))),z.setAttribute("x2",String(Math.round(w))),z.setAttribute("y2",String(Math.round(C)))}h.colorStops.forEach(({offset:q,color:R})=>{const k=this._window.document.createElementNS("http://www.w3.org/2000/svg","stop");k.setAttribute("offset",100*q+"%"),k.setAttribute("stop-color",R),z.appendChild(k)}),L.setAttribute("fill",`url('#${T}')`),this._defs.appendChild(z)}else d&&L.setAttribute("fill",d);this._element.appendChild(L)}}Y.instanceCount=0;const W=Y,U="canvas",re={};for(let _=0;_<=40;_++)re[_]=_;const ne={type:U,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:re[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{saveAsBlob:!0,hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000",roundSize:!0},backgroundOptions:{round:0,color:"#fff"}};function oe(_){const h=Object.assign({},_);if(!h.colorStops||!h.colorStops.length)throw"Field 'colorStops' is required in gradient";return h.rotation?h.rotation=Number(h.rotation):h.rotation=0,h.colorStops=h.colorStops.map(d=>Object.assign(Object.assign({},d),{offset:Number(d.offset)})),h}function Z(_){const h=Object.assign({},_);return h.width=Number(h.width),h.height=Number(h.height),h.margin=Number(h.margin),h.imageOptions=Object.assign(Object.assign({},h.imageOptions),{hideBackgroundDots:Boolean(h.imageOptions.hideBackgroundDots),imageSize:Number(h.imageOptions.imageSize),margin:Number(h.imageOptions.margin)}),h.margin>Math.min(h.width,h.height)&&(h.margin=Math.min(h.width,h.height)),h.dotsOptions=Object.assign({},h.dotsOptions),h.dotsOptions.gradient&&(h.dotsOptions.gradient=oe(h.dotsOptions.gradient)),h.cornersSquareOptions&&(h.cornersSquareOptions=Object.assign({},h.cornersSquareOptions),h.cornersSquareOptions.gradient&&(h.cornersSquareOptions.gradient=oe(h.cornersSquareOptions.gradient))),h.cornersDotOptions&&(h.cornersDotOptions=Object.assign({},h.cornersDotOptions),h.cornersDotOptions.gradient&&(h.cornersDotOptions.gradient=oe(h.cornersDotOptions.gradient))),h.backgroundOptions&&(h.backgroundOptions=Object.assign({},h.backgroundOptions),h.backgroundOptions.gradient&&(h.backgroundOptions.gradient=oe(h.backgroundOptions.gradient))),h}var H=i(873),_e=i.n(H);function Ie(_){if(!_)throw new Error("Extension must be defined");_[0]==="."&&(_=_.substring(1));const h={bmp:"image/bmp",gif:"image/gif",ico:"image/vnd.microsoft.icon",jpeg:"image/jpeg",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",tif:"image/tiff",tiff:"image/tiff",webp:"image/webp",pdf:"application/pdf"}[_.toLowerCase()];if(!h)throw new Error(`Extension "${_}" is not supported`);return h}class A{constructor(h){h!=null&&h.jsdom?this._window=new h.jsdom("",{resources:"usable"}).window:this._window=window,this._options=h?Z(s(ne,h)):ne,this.update()}static _clearContainer(h){h&&(h.innerHTML="")}_setupSvg(){if(!this._qr)return;const h=new W(this._options,this._window);this._svg=h.getElement(),this._svgDrawingPromise=h.drawQR(this._qr).then(()=>{var d;this._svg&&((d=this._extension)===null||d===void 0||d.call(this,h.getElement(),this._options))})}_setupCanvas(){var h,d;this._qr&&(!((h=this._options.nodeCanvas)===null||h===void 0)&&h.createCanvas?(this._nodeCanvas=this._options.nodeCanvas.createCanvas(this._options.width,this._options.height),this._nodeCanvas.width=this._options.width,this._nodeCanvas.height=this._options.height):(this._domCanvas=document.createElement("canvas"),this._domCanvas.width=this._options.width,this._domCanvas.height=this._options.height),this._setupSvg(),this._canvasDrawingPromise=(d=this._svgDrawingPromise)===null||d===void 0?void 0:d.then(()=>{var g;if(!this._svg)return;const y=this._svg,v=new this._window.XMLSerializer().serializeToString(y),E=btoa(v),M=`data:${Ie("svg")};base64,${E}`;if(!((g=this._options.nodeCanvas)===null||g===void 0)&&g.loadImage)return this._options.nodeCanvas.loadImage(M).then(T=>{var G,L;T.width=this._options.width,T.height=this._options.height,(L=(G=this._nodeCanvas)===null||G===void 0?void 0:G.getContext("2d"))===null||L===void 0||L.drawImage(T,0,0)});{const T=new this._window.Image;return new Promise(G=>{T.onload=()=>{var L,z;(z=(L=this._domCanvas)===null||L===void 0?void 0:L.getContext("2d"))===null||z===void 0||z.drawImage(T,0,0),G()},T.src=M})}}))}async _getElement(h="png"){if(!this._qr)throw"QR code is empty";return h.toLowerCase()==="svg"?(this._svg&&this._svgDrawingPromise||this._setupSvg(),await this._svgDrawingPromise,this._svg):((this._domCanvas||this._nodeCanvas)&&this._canvasDrawingPromise||this._setupCanvas(),await this._canvasDrawingPromise,this._domCanvas||this._nodeCanvas)}update(h){A._clearContainer(this._container),this._options=h?Z(s(this._options,h)):this._options,this._options.data&&(this._qr=_e()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(d){switch(!0){case/^[0-9]*$/.test(d):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(d):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===U?this._setupCanvas():this._setupSvg(),this.append(this._container))}append(h){if(h){if(typeof h.appendChild!="function")throw"Container should be a single DOM node";this._options.type===U?this._domCanvas&&h.appendChild(this._domCanvas):this._svg&&h.appendChild(this._svg),this._container=h}}applyExtension(h){if(!h)throw"Extension function should be defined.";this._extension=h,this.update()}deleteExtension(){this._extension=void 0,this.update()}async getRawData(h="png"){if(!this._qr)throw"QR code is empty";const d=await this._getElement(h),g=Ie(h);if(!d)return null;if(h.toLowerCase()==="svg"){const y=`<?xml version="1.0" standalone="no"?>\r
|
|
103
|
+
${new this._window.XMLSerializer().serializeToString(d)}`;return typeof Blob>"u"||this._options.jsdom?Buffer.from(y):new Blob([y],{type:g})}return new Promise(y=>{const v=d;if("toBuffer"in v)if(g==="image/png")y(v.toBuffer(g));else if(g==="image/jpeg")y(v.toBuffer(g));else{if(g!=="application/pdf")throw Error("Unsupported extension");y(v.toBuffer(g))}else"toBlob"in v&&v.toBlob(y,g,1)})}async download(h){if(!this._qr)throw"QR code is empty";if(typeof Blob>"u")throw"Cannot download in Node.js, call getRawData instead.";let d="png",g="qr";typeof h=="string"?(d=h,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):typeof h=="object"&&h!==null&&(h.name&&(g=h.name),h.extension&&(d=h.extension));const y=await this._getElement(d);if(y)if(d.toLowerCase()==="svg"){let v=new XMLSerializer().serializeToString(y);v=`<?xml version="1.0" standalone="no"?>\r
|
|
104
|
+
`+v,l(`data:${Ie(d)};charset=utf-8,${encodeURIComponent(v)}`,`${g}.svg`)}else l(y.toDataURL(Ie(d)),`${g}.${d}`)}}const $=A})(),o.default})())})(_a);const M0=Zl(_a.exports),j0=u.defineComponent({name:"QrCodeBox",data(){return{qrcode:null}},props:{data:String,image:String,width:Number,height:Number,circleType:String,circleColor:String},methods:{},computed:{},components:{},watch:{$props:{handler(){const t={dotsOptions:{}};Object.keys(this.$props).forEach(e=>{this.$props[e]!=null&&this.$props[e]!==""&&(t[e]=this.$props[e])}),delete t.formCreateInject,t.circleType&&(t.dotsOptions.type=t.circleType),t.circleColor&&(t.dotsOptions.color=t.circleColor),delete t.circleColor,delete t.circleType,this.$nextTick(()=>{this.qrcode?this.qrcode.update(t):(this.qrcode=u.markRaw(new M0(t)),this.qrcode.append(this.$refs.qr))})},deep:!0,immediate:!0}}}),I0={class:"_fc-qrcode",ref:"qr"};function F0(t,e,n,r,i,o){return u.openBlock(),u.createElementBlock("div",I0,null,512)}const B0=Se(j0,[["render",F0]]),m1="",g1="",N0=(t,e)=>{let n=[t];const r=e.split(".");let i=1;for(;r[i];){let o=[];n.forEach(a=>{Object.values(a.ctxs).forEach(s=>{if(s.rule._fc_id===r[i-1]){const l=a.subForm[s.id];o.push(...Array.isArray(l)?l:[l])}})}),n=o.map(a=>a.rule[0].__fc__.$handle),i++}return[n,r[i-1]]},Nn=(t,e,n)=>{const r=t.vm.setupState.top.setupState.fc.$handle;let i=[t.$handle];t.$handle!==r&&i.push(r);let o=e;e.indexOf(".")>-1&&([i,o]=N0(r,e)),i.forEach(a=>{Object.values(a.ctxs).forEach(s=>{s.rule._fc_id===o&&n(s.rule,a.api)})})},ba={redirectPage(t,e){if(t.type==="router"){const n=e.api.getData("$router");if(!n)return console.error('[form-create error]: \u9875\u9762\u8DF3\u8F6C\u5931\u8D25, \u8BF7\u901A\u8FC7 formCreate.setData("$router", router) \u6CE8\u5165\u5168\u5C40\u8DEF\u7531\u53D8\u91CF'),Promise.reject();n.push(t.url)}else t.break?window.open(t.url):location.href=t.url},reloadPage(){location.reload()},openModel(t,e){e.api.open(t.model)},closeModel(t,e){e.api.close(t.model)},hidden(t,e,n){const r=typeof t.id=="string"?[t.id]:t.id||[];let i=!!t.status;t.compute&&(i=!!n.$handle.compute(e.self.__fc__,t.formula)),r.forEach(o=>{Nn(n,o,a=>{a.hidden=i})})},disabled(t,e,n){const r=typeof t.id=="string"?[t.id]:t.id||[];let i=!!t.status;t.compute&&(i=!!n.$handle.compute(e.self.__fc__,t.formula)),r.forEach(o=>{Nn(n,o,a=>{a.props||(a.props={}),a.props.disabled=i})})},resetFields(t,e){e.api.top.resetFields()},clearFields(t,e){e.api.top.coverValue({})},validate(t,e){return e.api.top.validate()},validateFields(t,e,n){const r=typeof t.id=="string"?[t.id]:t.id||[],i=[];return r.forEach(o=>{Nn(n,o,(a,s)=>{a.field&&i.push(s.validateField(a.field))})}),i.length?Promise.all(i):void 0},submit(t,e){return e.api.top.submit()},setValue(t,e,n){(t.formData||[]).forEach(r=>{let i=r.value;r.compute&&(i=n.$handle.compute(e.self.__fc__,r.formula)),Nn(n,r.id,o=>{o.value=i})})},fetch(t,e){const{append:n,response:r,fetch:i}=t;return n&&(i.data={...e.api.formData(),...i.data||{}}),new Promise((o,a)=>{e.api.fetch(t.fetch).then(s=>{r&&e.api.setData(r,s),o(s)}).catch(s=>{a(s)})})},copy(t,e,n){let r=t.content||"";t.compute&&(r=n.$handle.compute(e.self.__fc__,t.formula)),df(r)},callback(t,e){return t.callback&&t.callback(e)},message(t){mi.ElMessage(t||{})}};function wa(t,e){return t.reduce((n,r)=>n.then(()=>r(e)),Promise.resolve())}const L0=function(t){return{name:"behavior",load(e,n){const r=e.getValue(),i={},o={},a=s=>{const l=[];return s.forEach(f=>{const{method:c,config:p,expression:m,stopPropagation:b,ignoreError:S}=f;l.push(O=>new Promise(D=>{if(c==="condition"){const I=[];(f.children||[]).forEach(Y=>{try{t.$handle.compute(n.__fc__,Y.config)!==!1&&I.push(wa(a(Y.children||[]),O))}catch(W){console.error(W)}}),I.length?Promise.allSettled(I).then(Y=>{Y.filter(U=>U.status==="fulfilled").length&&D()}):(!f.children||!f.children.length)&&D();return}if(m&&t.$handle.compute(n.__fc__,m)===!1){D();return}const B=(...I)=>{(!b||t.$handle.compute(n.__fc__,b)!==!0)&&D(...I)};let F;try{F=ba[c](p||{},O,t)}catch(I){console.error(I),S!==!1&&B();return}F&&F.then?F.then(B).catch(()=>{S!==!1&&B()}):B(F)}))}),l};r&&Object.keys(r).forEach(s=>{if(Array.isArray(r[s])){const l=a(r[s]);if(l.length){const f=t.$handle.inject(n,function(c){wa(l,c)},n.inject||t.$handle.options.injectEvent);s.indexOf("hook_")>-1?o[s.replace("hook_","")]=f:i[s]=f}}}),e.getProp().on=i,e.getProp().hook=o}}};function z0(t){t.__proto__.setBehavior=e=>{ho(ba,e)},t.extendApi(e=>({open(n,...r){(e.el(n)||e.top.el(n)).open(...r)},close(n){n?(e.el(n)||e.top.el(n)).close():(e.top.bus.$emit("fc.closeDialog"),e!==e.top&&e.bus.$emit("fc.closeDialog"))}}))}function U0(t){t.extendApi((e,n,r)=>{function i(a){a.imageSmoothingEnabled=!1,a.mozImageSmoothingEnabled=!1,a.webkitImageSmoothingEnabled=!1,a.msImageSmoothingEnabled=!1}function o(a){const s={left:20,right:20,top:20,bottom:20,width:780,format:"a4",...a||{}};return new Promise(l=>{Me.isDefined("html2canvas")||Me.loadNpm("html2canvas@1.4.1/dist/html2canvas.min.js","html2canvas"),Me.isDefined("jspdf")||Me.loadNpm("jspdf@3.0.1/dist/jspdf.umd.js","jspdf"),Me.ready(["html2canvas","jspdf"],()=>{const f=s.el||e.formEl().$el;f.classList.add("fc-print-form"),window.html2canvas(f,{allowTaint:!0,useCORS:!0}).then(c=>{const p=new window.jspdf.jsPDF({orientation:"p",unit:"pt",format:(s.format||"a4").toLowerCase()});i(c.getContext("2d"));const{left:m,right:b,top:S,bottom:O}=s,D=p.internal.pageSize.getWidth(),B=p.internal.pageSize.getHeight(),F=D-m-b,I=B-S-O,Y=c.height*F/c.width;if(Y<=I)p.addImage(c.toDataURL("image/jpeg"),"JPEG",m,S,F,Y);else{let W=Y,U=0;const re=c.width*I/F;for(;W>0;){const ne=document.createElement("canvas"),oe=ne.getContext("2d");i(oe);const Z=U*re,H=Math.min(re,c.height-Z);ne.width=c.width,ne.height=H,oe.drawImage(c,0,Z,c.width,H,0,0,c.width,H);const _e=H/c.height*Y;p.addImage(ne.toDataURL("image/jpeg"),"JPEG",m,S,F,_e),W-=I,W>0&&(p.addPage(),U++)}}return l(p)}).finally(()=>{f.classList.remove("fc-print-form")})})})}return{exportPdf(a){o(a).then(s=>{window.open(URL.createObjectURL(s.output("blob")))})},print(a){o(a).then(s=>{const l=document.createElement("iframe");l.style.width="0",l.style.position="absolute",l.style.height="0",l.style.border="none",l.onload=function(){setTimeout(()=>{l.contentWindow.print()},100)},document.body.appendChild(l),l.src=URL.createObjectURL(s.output("blob"))})}}})}function q0(t){const e={name:"easySlots",load(n,r){const i=n.getValue(),o={};i&&Object.keys(i).forEach(a=>{const s={};Object.keys(i[a].on||{}).forEach(l=>{s[l]=t.$handle.inject(r,i[a].on[l])}),o[a]=i[a].type==="icon"?{type:"i",class:"fc-icon iconfont "+i[a].value,on:s,style:i[a].style}:{type:"div",on:s,style:i[a].style,children:[""+(i[a].value||"")]}}),n.getProp().renderSlots=o}};return e.watch=e.load,e}const Ln={components:{},mobileComponents:{},updateFormCreate(t){}},$a={date:"YYYY-MM-DD",month:"YYYY-MM",datetime:"YYYY-MM-DD HH:mm:ss",timerange:"HH:mm:ss",daterange:"YYYY-MM-DD",monthrange:"YYYY-MM",datetimerange:"YYYY-MM-DD HH:mm:ss",year:"YYYY"};function G0(t){return t/20+"em"}function H0(t){var e;!((e=t.wrap)!=null&&e.class)||(t.wrap.class==="fc-wrap-top"?(t.wrap.labelAlign="top",delete t.wrap.class):t.wrap.class==="fc-wrap-left"?(t.wrap.labelAlign="left",delete t.wrap.class):t.wrap.class==="fc-wrap-right"&&(t.wrap.labelAlign="right",delete t.wrap.class))}const zn=function(t,e,n,r){const i=r||{};return e.forEach(o=>{t.indexOf(o[n||"id"])>-1&&t.splice(t.indexOf(o[n||"id"]),1,o[i.label||"label"]||o.text),Be.trueArray(o[i.children||"children"])&&zn(t,o[i.children||"children"],n,r)}),t},W0=function(t,e){return e.forEach(n=>{t.indexOf(n.value)>-1&&(t[t.indexOf(n.value)]=n.label||n.text)}),t};function Mt(t){if(t){if(!Array.isArray(t))return[t]}else return[];return t}function Sa(t){Object.keys(xe).forEach(e=>{t.setFormula(e,xe[e])}),z0(t),U0(t),t.register("behavior",L0),t.register("easySlots",q0),t.extendApi(e=>({message(n){Xe.showNotify({type:"warning",...n||{}})}})),t.setDriver("elm",{defaultPreview(e,n){let r=e.rule.value;const i=(...l)=>e.$render.vNode.h(...l),o=e.type,a=e.$handle.subForm[e.id],s=e.prop.readMode;if(s===!1||s==="custom"||!e.input||e.rule.subForm||(Array.isArray(a)?a.length:a)||["fcGroup","fcSubForm","tableForm","stepForm","nestedTableForm","infiniteTableForm","upload","fcDialog","fcDrawer","fcPopup"].indexOf(e.trueType)>-1)return e.parser.render(n,e);if(["radio","select","checkbox"].indexOf(o)>-1)r=W0([...Mt(r)],e.prop.props.options||e.prop.props.formCreateInject.options||[]).join(", ");else if(["timePicker","datePicker","slider"].indexOf(o)>-1)o==="datePicker"&&e.prop.props.format&&(r=Array.isArray(r)?r.map(l=>l?lr(l).format(e.prop.props.format):""):r?lr(r).format(e.prop.props.format):""),r=Array.isArray(r)?r.join(" - "):r;else if(o==="cascader")r=[...Mt(r)],Array.isArray(r[0])||(r=[r]),r=r.map(l=>zn(l,e.prop.props.options||e.prop.props.formCreateInject.options||[],"value").join("/")).join(", ");else if(o==="elTransfer"){const l=[...Mt(r)];r=zn(l,e.prop.props.data||e.prop.props.formCreateInject.options||[],"key").join(", ")}else if(o==="fcDataSelect")r=[...Mt(r)].map(f=>f[e.prop.props.labelKey||"label"]).join(", ");else if(["tree","elTreeSelect"].indexOf(o)>-1){const l=e.prop.props.data||e.prop.props.formCreateInject.options||[];r=zn([...Mt(r)],l,o==="elTreeSelect"?"value":"id").join(", ")}else{if(o==="fcEditor"||s==="html")return i("div",{innerHTML:r});if(o==="uploader"||s==="image")return r=Mt(r),i("div",{class:"_fc-upload"},r.map(function(l){return i("div",{class:"_fc-upload-preview"},[i("van-image",{src:l,fit:"cover"})])}));if(o==="signaturePad"&&r)return i("van-image",{src:r,fit:"cover",style:{height:"90px"}});(typeof r=="boolean"||o==="switch")&&(r=r?"\u662F":"\u5426")}return i("span",{class:"_fc-read-view",style:{whiteSpace:"pre-line"}},[""+(r==null?"":r)])},updateWrap(e){var r,i;let n=(i=(r=e.prop)==null?void 0:r.wrap)==null?void 0:i.style;e.prop.col&&e.prop.col.span&&(e.prop.col.span=24),n&&(n=Array.isArray(n)?n:[n],n.forEach(o=>{delete o.marginBottom})),H0(e.prop)},updateOptions(e){var n,r,i;((n=e.form)==null?void 0:n.labelWidth)&&e.form.labelWidth.indexOf("px")>-1&&(e.form.labelWidth=G0(parseInt(e.form.labelWidth))),(r=e.form)!=null&&r.labelPosition&&(e.form.labelAlign=e.form.labelPosition,delete e.form.labelPosition),(i=e.form)!=null&&i.hideRequiredAsterisk&&(e.form.colon=e.form.hideRequiredAsterisk,delete e.form.hideRequiredAsterisk)},parsers:{inputNumber:{mergeProp(e){e.prop.component="vanStepper";const n=e.prop.props;n.decimalLength=n.precision,n.integer=n.precision===0,delete n.precision}},radio:{mergeProp(e){e.prop.options&&(e.prop.props.options=e.prop.options)}},checkbox:{mergeProp(e){e.prop.options&&(e.prop.props.options=e.prop.options)}},select:{mergeProp(e){e.prop.props.multiple===!0?e.prop.component=jl:(e.prop.options&&(e.prop.props.options=e.prop.options),e.prop.props.options=(e.prop.props.options||[]).map(n=>({text:n.label,value:n.value})))}},rate:{mergeProp(e){e.prop.props.count=e.prop.props.max,delete e.prop.props.max}},timePicker:{mergeProp(e){e.prop.component="elTimePicker";const n=e.prop.props;n.valueFormat||(n.valueFormat="HH:mm:ss")}},datePicker:{mergeProp(e){e.prop.component="elDatePicker";const n=e.prop.props;n.valueFormat||(n.valueFormat=$a[n.type]||$a.date)}},colorPicker:{mergeProp(e){e.prop.component="elColorPicker"}},cascader:{mergeProp(e){e.prop.component="elCascader"}},elDivider:{mergeProp(e){e.prop.component="vanDivider"}},upload:{mergeProp(e){e.prop.component=Jl}},tree:{mergeProp(e){e.prop.component=Bl}},row:{mergeProp(e){e.prop.component="vanRow"}},col:{mergeProp(e){e.prop.component="vanCol",e.prop.props.xs&&(e.prop.props={...e.prop.props,...e.prop.props.xs})}},fcDialog:{mergeProp(e){e.prop.component="FcPopup"}},fcDrawer:{mergeProp(e){e.prop.component="FcPopup"}}}})}Sa(me),me.component("FcSlot",Uu),me.component("FcJson",qu),me.component("StepForm",ru),me.component("FcPopup",uu),me.component("FcTable",mu),me.component("FcCell",Tu),me.component("FcInlineForm",Yu),me.component("TableForm",yu),me.component("TableFormPro",Ou),me.component("NestedTableForm",Du),me.component("InfiniteTableForm",Eu),me.component("DataTable",du),me.component("FcValue",Fu),me.component("FcCity",zu),me.component("AudioBox",$f),me.component("VideoBox",T0),me.component("BarCodeBox",D0),me.component("IframeBox",Cf),me.component("QrCodeBox",B0),me.component("SignaturePad",lc),me.component("FcEcharts",Zu),me.component("FcTitle",yc),me.component("FcDataSelect",vf),me.component("FcMarkdown",rf),me.component("FcId",mc),me.loadjs=Me,Object.keys(Ln.components).forEach(t=>{me.component(t,Ln.components[t])}),Object.keys(Ln.mobileComponents).forEach(t=>{me.component(t,Ln.mobileComponents[t])}),ke.default=me,ke.useAdvanced=Sa,Object.defineProperties(ke,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|