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,89 @@
|
|
|
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-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-step-form{width:100%}._fc-step-form>.el-steps{margin-bottom:20px}._fc-step-form .el-step .el-step__head{line-height:1.4}._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-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-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-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-city .el-select{width:150px}.form-create-m ._fc-city,.form-create-m ._fc-city .el-select{width:100%}.form-create ._fc-city .el-select+.el-select{margin-left:12px}._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-drawer .el-drawer__header{border-bottom:1px solid var(--fc-line-color-3);color:#333;font-size:15px;font-weight:600;margin-bottom:0;padding:14px 24px 14px 20px}._fc-drawer .el-drawer__body{padding:10px 24px 50px}._fc-drawer .el-drawer__close-btn{color:#909399;font-size:14px}._fc-drawer .el-drawer__footer{background:var(--fc-bg-color-1);bottom:0;box-shadow:0 -2px 4px #0000000d;left:0;padding:10px 0;position:absolute;right:0;text-align:center;width:100%;z-index:10}._fc-echarts{height:300px;width:100%}._fc-signature{width:100%}._fc-signature-btn,._fc-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-signature-btn{cursor:pointer}._fc-signature.disabled ._fc-signature-btn{cursor:not-allowed}._fc-signature-preview>img{display:inline-block;height:88px}._fc-signature-preview .icon-delete2{cursor:pointer;display:inline-block;font-size:14px;line-height:14px;position:absolute;right:9px;top:9px}._fc-signature-btn i{font-size:14px}._fc-signature-dialog .el-dialog__body{text-align:center}._fc-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}._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-iframe-box,._fc-video-box{width:100%}._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{width:100%}._fc-data-select-pop{display:none!important}._fc-data-select{width:100%}._fc-upload-preview{border-radius:5px;display:inline-block;height:120px;overflow:hidden;width:120px}.form-create.is-preview ._fc-upload .el-icon--close,.form-create.is-preview ._fc-upload .el-icon--close-tip,.form-create.is-preview ._fc-upload .el-upload{display:none!important}.fc-print-form .el-input__wrapper,.fc-print-form .el-select__wrapper,.fc-print-form .el-textarea__inner{border:1px solid var(--el-input-border-color,var(--el-border-color));box-shadow: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 n1=Object.defineProperty;var r1=(De,u,nt)=>u in De?n1(De,u,{enumerable:!0,configurable:!0,writable:!0,value:nt}):De[u]=nt;var Z=(De,u,nt)=>(r1(De,typeof u!="symbol"?u+"":u,nt),nt);(function(De,u){typeof exports=="object"&&typeof module<"u"?u(exports,require("vue"),require("element-plus")):typeof define=="function"&&define.amd?define(["exports","vue","element-plus"],u):(De=typeof globalThis<"u"?globalThis:De||self,u(De.formCreate={},De.Vue,De.ElementPlus))})(this,function(De,u,nt){var ci;"use strict";/*!
|
|
9
|
+
* @form-create/element-ui v3.2.31
|
|
10
|
+
* (c) 2018-2025 xaboy
|
|
11
|
+
* Github https://github.com/xaboy/form-create
|
|
12
|
+
* Released under the MIT License.
|
|
13
|
+
*/function pi(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 Y(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?pi(Object(n),!0).forEach(function(r){Ce(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pi(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function de(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?de=function(e){return typeof e}:de=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},de(t)}function Oa(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ce(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ra(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&&Ln(t,e)}function nn(t){return nn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},nn(t)}function Ln(t,e){return Ln=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Ln(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 Pa(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 Va(t){var e=Aa();return function(){var r=nn(t),i;if(e){var o=nn(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Pa(this,i)}}function Ta(t,e){return Ma(t)||Fa(t,e)||mi(t,e)||Na()}function ce(t){return Ia(t)||Ba(t)||mi(t)||ja()}function Ia(t){if(Array.isArray(t))return zn(t)}function Ma(t){if(Array.isArray(t))return t}function Ba(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Fa(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 mi(t,e){if(!!t){if(typeof t=="string")return zn(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 zn(t,e)}}function zn(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 ja(){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 Na(){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.`)}function rn(t,e){return Object.keys(t).reduce(function(n,r){return(!e||e.indexOf(r)===-1)&&(n[r]=t[r]),n},{})}function Me(t){return Array.isArray(t)?t:[null,void 0,""].indexOf(t)>-1?[]:[t]}var La="fcCheckbox",za=u.defineComponent({name:La,inheritAttrs:!1,props:{formCreateInject:Object,modelValue:{type:Array,default:function(){return[]}},type:String,options:Array,input:Boolean,inputValue:String},emits:["update:modelValue","fc.el"],setup:function(e,n){var r=u.toRef(e.formCreateInject,"options",[]),i=u.toRef(e,"options"),o=u.toRef(e,"modelValue"),a=u.toRef(e,"inputValue",""),s=u.ref(a.value),l=u.toRef(e,"input",!1),f=function(_){var w=ce(Me(o.value)),$=w.indexOf(s.value);s.value=_,$>-1&&(w.splice($,1),w.push(_),m(w))};u.watch(a,function(p){if(!l.value){s.value=p;return}f(p)});var c=u.computed(function(){var p=r.value||[];return i.value&&(p=i.value||[]),Array.isArray(p)?p:[]});u.watch(o,function(p){var _=null;if(!a.value&&p!=null&&Array.isArray(p)&&p.length>0&&l.value){var w=c.value.map(function($){return $.value});p.forEach(function($){w.indexOf($)===-1&&(_=$)})}_!=null&&(s.value=_)},{immediate:!0});var m=function(_){n.emit("update:modelValue",_)};return{options:c,value:o,onInput:m,updateCustomValue:f,makeInput:function(_){if(!!l.value)return u.createVNode(_,{value:s.value||void 0,label:s.value||void 0},{default:function(){return[u.createVNode(u.resolveComponent("ElInput"),{size:"small",modelValue:s.value,"onUpdate:modelValue":f},null)]}})}}},render:function(){var e,n,r=this,i=this.type==="button"?"ElCheckboxButton":"ElCheckbox",o=u.resolveComponent(i);return u.createVNode(u.resolveComponent("ElCheckboxGroup"),u.mergeProps(this.$attrs,{modelValue:this.value,"onUpdate:modelValue":this.onInput,ref:"el"}),Y({default:function(){return[r.options.map(function(s,l){var f=Y({},s),c=f.value,m=f.label;return delete f.value,delete f.label,u.createVNode(o,u.mergeProps(f,{label:c,value:c,key:i+l+"-"+c}),{default:function(){return[m||c||""]}})}),(e=(n=r.$slots).default)===null||e===void 0?void 0:e.call(n),r.makeInput(o)]}},rn(this.$slots,["default"])))},mounted:function(){this.$emit("fc.el",this.$refs.el)}});function gi(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}function on(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 Ua="._fc-frame ._fc-files img{display:inline-block;height:100%;vertical-align:top;width:100%}._fc-frame ._fc-upload-btn{border:1px dashed #c0ccda;cursor:pointer}._fc-frame._fc-disabled ._fc-upload-btn,._fc-frame._fc-disabled .el-button{color:#999;cursor:not-allowed!important}._fc-frame ._fc-upload-cover{background:rgba(0,0,0,.6);bottom:0;left:0;opacity:0;position:absolute;right:0;top:0;-webkit-transition:opacity .3s;-o-transition:opacity .3s;transition:opacity .3s}._fc-frame ._fc-upload-cover i{color:#fff;cursor:pointer;font-size:20px;margin:0 2px}._fc-frame ._fc-files:hover ._fc-upload-cover{opacity:1}._fc-frame .el-upload{display:block}._fc-frame ._fc-upload-icon{cursor:pointer}._fc-files,._fc-frame ._fc-upload-btn{background:#fff;border:1px solid #c0ccda;border-radius:4px;-webkit-box-shadow:2px 2px 5px rgba(0,0,0,.1);box-shadow:2px 2px 5px rgba(0,0,0,.1);-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;height:58px;line-height:58px;margin-right:4px;overflow:hidden;position:relative;text-align:center;width:58px}";on(Ua);var vi={name:"IconCircleClose"},qa={class:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Ga=u.createElementVNode("path",{fill:"currentColor",d:"M466.752 512l-90.496-90.496a32 32 0 0145.248-45.248L512 466.752l90.496-90.496a32 32 0 1145.248 45.248L557.248 512l90.496 90.496a32 32 0 11-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 01-45.248-45.248L466.752 512z"},null,-1),Ha=u.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 100-768 384 384 0 000 768zm0 64a448 448 0 110-896 448 448 0 010 896z"},null,-1),Wa=[Ga,Ha];function Ya(t,e,n,r,i,o){return u.openBlock(),u.createElementBlock("svg",qa,Wa)}vi.render=Ya;var _i={name:"IconDocument"},Xa={class:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Ja=u.createElementVNode("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640V384zm-26.496-64L640 154.496V320h165.504zM160 64h480l256 256v608a32 32 0 01-32 32H160a32 32 0 01-32-32V96a32 32 0 0132-32zm160 448h384v64H320v-64zm0-192h160v64H320v-64zm0 384h384v64H320v-64z"},null,-1),Ka=[Ja];function Za(t,e,n,r,i,o){return u.openBlock(),u.createElementBlock("svg",Xa,Ka)}_i.render=Za;var yi={name:"IconDelete"},Qa={class:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},es=u.createElementVNode("path",{fill:"currentColor",d:"M160 256H96a32 32 0 010-64h256V95.936a32 32 0 0132-32h256a32 32 0 0132 32V192h256a32 32 0 110 64h-64v672a32 32 0 01-32 32H192a32 32 0 01-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 01-32-32V416a32 32 0 0164 0v320a32 32 0 01-32 32zm192 0a32 32 0 01-32-32V416a32 32 0 0164 0v320a32 32 0 01-32 32z"},null,-1),ts=[es];function ns(t,e,n,r,i,o){return u.openBlock(),u.createElementBlock("svg",Qa,ts)}yi.render=ns;var bi={name:"IconView"},rs={class:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},is=u.createElementVNode("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 110 448 224 224 0 010-448zm0 64a160.192 160.192 0 00-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z"},null,-1),os=[is];function as(t,e,n,r,i,o){return u.openBlock(),u.createElementBlock("svg",rs,os)}bi.render=as;var wi={name:"IconFolderOpened"},ss={class:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},ls=u.createElementVNode("path",{fill:"currentColor",d:"M878.08 448H241.92l-96 384h636.16l96-384zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 01216.96 384H832zm-24.96 512H96a32 32 0 01-32-32V160a32 32 0 0132-32h287.872l128.384 128H864a32 32 0 0132 32v96h23.04a32 32 0 0131.04 39.744l-112 448A32 32 0 01807.04 896z"},null,-1),us=[ls];function cs(t,e,n,r,i,o){return u.openBlock(),u.createElementBlock("svg",ss,us)}wi.render=cs;var fs="fcFrame",ds=u.defineComponent({name:fs,props:{type:{type:String,default:"input"},field:String,helper:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},src:{type:String,required:!0},icon:{type:String,default:"IconFolderOpened"},width:{type:String,default:"500px"},height:{type:String,default:"370px"},maxLength:{type:Number,default:0},okBtnText:{type:String,default:""},closeBtnText:{type:String,default:""},modalTitle:String,handleIcon:{type:[String,Boolean],default:void 0},title:String,allowRemove:{type:Boolean,default:!0},onOpen:{type:Function,default:function(){}},onOk:{type:Function,default:function(){}},onCancel:{type:Function,default:function(){}},onLoad:{type:Function,default:function(){}},onBeforeRemove:{type:Function,default:function(){}},onRemove:{type:Function,default:function(){}},onHandle:Function,modal:{type:Object,default:function(){return{}}},srcKey:[String,Number],modelValue:[Array,String,Number,Object],previewMask:void 0,footer:{type:Boolean,default:!0},reload:{type:Boolean,default:!0},closeBtn:{type:Boolean,default:!0},okBtn:{type:Boolean,default:!0},formCreateInject:Object},emits:["update:modelValue","change"],components:{IconFolderOpened:wi,IconView:bi},data:function(){return{fileList:Me(this.modelValue),previewVisible:!1,frameVisible:!1,previewImage:"",bus:new gi}},watch:{modelValue:function(e){this.fileList=Me(e)}},methods:{close:function(){this.closeModel(!0)},closeModel:function(e){this.bus.$emit(e?"$close":"$ok"),this.reload&&(this.bus.$off("$ok"),this.bus.$off("$close")),this.frameVisible=!1},handleCancel:function(){this.previewVisible=!1},showModel:function(){this.disabled||this.onOpen()===!1||(this.frameVisible=!0)},input:function(){var e=this.fileList,n=this.maxLength===1?e[0]||"":e;this.$emit("update:modelValue",n),this.$emit("change",n)},makeInput:function(){var e=this;return u.createVNode(u.resolveComponent("ElInput"),u.mergeProps({type:"text",modelValue:this.fileList.map(function(n){return e.getSrc(n)}).toString(),readonly:!0},{key:1}),{append:function(){return u.createVNode(u.resolveComponent("ElButton"),{icon:u.resolveComponent(e.icon),onClick:function(){return e.showModel()}},null)},suffix:function(){return e.fileList.length&&!e.disabled?u.createVNode(u.resolveComponent("ElIcon"),{class:"el-input__icon _fc-upload-icon",onClick:function(){e.fileList=[],e.input()}},{default:function(){return[u.createVNode(vi,null,null)]}}):null}})},makeGroup:function(e){return(!this.maxLength||this.fileList.length<this.maxLength)&&e.push(this.makeBtn()),u.createVNode("div",{key:2},[e])},makeItem:function(e,n){return u.createVNode("div",{class:"_fc-files",key:"3"+e},[n])},valid:function(e){var n=this.formCreateInject.field||this.field;if(n&&e!==n)throw new Error("[frame]\u65E0\u6548\u7684\u5B57\u6BB5\u503C")},makeIcons:function(e,n){if(this.handleIcon!==!1||this.allowRemove===!0){var r=[];return(this.type!=="file"&&this.handleIcon!==!1||this.type==="file"&&this.handleIcon)&&r.push(this.makeHandleIcon(e,n)),this.allowRemove&&r.push(this.makeRemoveIcon(e,n)),u.createVNode("div",{class:"_fc-upload-cover",key:4},[r])}},makeHandleIcon:function(e,n){var r=this,i=u.resolveComponent(this.handleIcon===!0||this.handleIcon===void 0?"icon-view":this.handleIcon);return u.createVNode(u.resolveComponent("ElIcon"),{onClick:function(){return r.handleClick(e)},key:"5"+n},{default:function(){return[u.createVNode(i,null,null)]}})},makeRemoveIcon:function(e,n){var r=this;return u.createVNode(u.resolveComponent("ElIcon"),{onClick:function(){return r.handleRemove(e)},key:"6"+n},{default:function(){return[u.createVNode(yi,null,null)]}})},makeFiles:function(){var e=this;return this.makeGroup(this.fileList.map(function(n,r){return e.makeItem(r,[u.createVNode(u.resolveComponent("ElIcon"),{onClick:function(){return e.handleClick(n)}},{default:function(){return[u.createVNode(_i,null,null)]}}),e.makeIcons(n,r)])}))},makeImages:function(){var e=this;return this.makeGroup(this.fileList.map(function(n,r){return e.makeItem(r,[u.createVNode("img",{src:e.getSrc(n)},null),e.makeIcons(n,r)])}))},makeBtn:function(){var e=this,n=u.resolveComponent(this.icon);return u.createVNode("div",{class:"_fc-upload-btn",onClick:function(){return e.showModel()},key:7},[u.createVNode(u.resolveComponent("ElIcon"),null,{default:function(){return[u.createVNode(n,null,null)]}})])},handleClick:function(e){if(this.onHandle)return this.onHandle(e);this.previewImage=this.getSrc(e),this.previewVisible=!0},handleRemove:function(e){this.disabled||this.onBeforeRemove(e)!==!1&&(this.fileList.splice(this.fileList.indexOf(e),1),this.input(),this.onRemove(e))},getSrc:function(e){return this.srcKey?e[this.srcKey]:e},frameLoad:function(e){var n=this;this.onLoad(e);try{this.helper===!0&&(e.form_create_helper={api:this.formCreateInject.api,close:function(i){n.valid(i),n.closeModel()},set:function(i,o){n.valid(i),!n.disabled&&n.$emit("update:modelValue",o)},get:function(i){return n.valid(i),n.modelValue},onOk:function(i){return n.bus.$on("$ok",i)},onClose:function(i){return n.bus.$on("$close",i)}})}catch(r){console.error(r)}},makeFooter:function(){var e=this,n=this.$props,r=n.okBtnText,i=n.closeBtnText,o=n.closeBtn,a=n.okBtn,s=n.footer;if(!!s)return u.createVNode("div",null,[o?u.createVNode(u.resolveComponent("ElButton"),{onClick:function(){return e.onCancel()!==!1&&(e.frameVisible=!1)}},{default:function(){return[i||e.formCreateInject.t("close")||"\u5173\u95ED"]}}):null,a?u.createVNode(u.resolveComponent("ElButton"),{type:"primary",onClick:function(){return e.onOk()!==!1&&e.closeModel()}},{default:function(){return[r||e.formCreateInject.t("ok")||"\u786E\u5B9A"]}}):null])}},render:function(){var e=this,n=this.type,r;n==="input"?r=this.makeInput():n==="image"?r=this.makeImages():r=this.makeFiles();var i=this.$props,o=i.width,a=o===void 0?"30%":o,s=i.height,l=i.src,f=i.title,c=i.modalTitle;return u.nextTick(function(){e.$refs.frame&&e.frameLoad(e.$refs.frame.contentWindow||{})}),u.createVNode("div",{class:{"_fc-frame":!0,"_fc-disabled":this.disabled}},[r,u.createVNode(u.resolveComponent("ElDialog"),{appendToBody:!0,modal:this.previewMask,title:c,modelValue:this.previewVisible,onClose:this.handleCancel},{default:function(){return[u.createVNode("img",{style:"width: 100%",src:e.previewImage},null)]}}),u.createVNode(u.resolveComponent("ElDialog"),u.mergeProps({appendToBody:!0},Y({width:a,title:f},this.modal),{modelValue:this.frameVisible,onClose:function(){return e.closeModel(!0)}}),{default:function(){return[e.frameVisible||!e.reload?u.createVNode("iframe",{ref:"frame",src:l,frameBorder:"0",style:{height:s,border:"0 none",width:"100%"}},null):null]},footer:function(){return e.makeFooter()}})])},beforeMount:function(){var e=this.formCreateInject,n=e.name,r=e.field,i=e.api;n&&i.on("fc:closeModal:"+n,this.close),r&&i.on("fc:closeModal:"+r,this.close)},beforeUnmount:function(){var e=this.formCreateInject,n=e.name,r=e.field,i=e.api;n&&i.off("fc:closeModal:"+n,this.close),r&&i.off("fc:closeModal:"+r,this.close)}}),hs="fcRadio",ps=u.defineComponent({name:hs,inheritAttrs:!1,props:{formCreateInject:Object,modelValue:{type:[String,Number,Boolean],default:""},options:Array,type:String,input:Boolean,inputValue:String},emits:["update:modelValue","fc.el"],setup:function(e,n){var r=u.toRef(e.formCreateInject,"options",[]),i=u.toRef(e,"options"),o=u.toRef(e,"modelValue"),a=u.toRef(e,"inputValue",""),s=u.ref(a.value),l=u.toRef(e,"input",!1);u.watch(a,function(p){if(!l.value){s.value=p;return}m(p)});var f=u.computed(function(){var p=r.value||[];return i.value&&(p=i.value||[]),Array.isArray(p)?p:[]});u.watch(o,function(p){var _=!1;!a.value&&p!=null&&l.value&&(_=f.value.map(function(w){return w.value}).indexOf(p)===-1),_&&(s.value=p)},{immediate:!0});var c=function(_){n.emit("update:modelValue",_)},m=function(_){var w=s.value;s.value=_,o.value===w&&c(_)};return{options:f,value:o,onInput:c,updateCustomValue:m,customValue:s,makeInput:function(_){if(!!l.value)return u.createVNode(_,{checked:!1,value:s.value||void 0,label:s.value||void 0},{default:function(){return[u.createVNode(u.resolveComponent("ElInput"),{size:"small",modelValue:s.value,"onUpdate:modelValue":m},null)]}})}}},render:function(){var e,n,r=this,i=this.type==="button"?"ElRadioButton":"ElRadio",o=u.resolveComponent(i);return u.createVNode(u.resolveComponent("ElRadioGroup"),u.mergeProps(this.$attrs,{modelValue:this.value,"onUpdate:modelValue":this.onInput,ref:"el"}),Y({default:function(){return[r.options.map(function(s,l){var f=Y({},s),c=f.value,m=f.label;return delete f.value,delete f.label,u.createVNode(o,u.mergeProps(f,{label:c,value:c,key:i+l+"-"+c}),{default:function(){return[m||c||""]}})}),(e=(n=r.$slots).default)===null||e===void 0?void 0:e.call(n),r.makeInput(o)]}},rn(this.$slots,["default"])))},mounted:function(){this.$emit("fc.el",this.$refs.el)}}),N={type:function(e,n){return Object.prototype.toString.call(e)==="[object "+n+"]"},Undef:function(e){return e==null},Element:function(e){return de(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 we(t,e){return{}.hasOwnProperty.call(t,e)}var ms="fcSelect",gs=u.defineComponent({name:ms,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[N.trueArray(l.options)&&l.options.map(function(m,p){return i(m,p)})]}})},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"}),Y({default:function(){return[a.map(function(l,f){return we(l||"","options")?o(l,f):i(l,f)}),(n=(r=e.$slots).default)===null||n===void 0?void 0:n.call(r)]}},rn(this.$slots,["default"])))},mounted:function(){this.$emit("fc.el",this.$refs.el)}}),vs="fcTree",_s=u.defineComponent({name:vs,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(Me(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)}}),ys="._fc-upload{width:100%}._fc-exceed .el-upload{display:none}.el-upload-list.is-disabled .el-upload{cursor:not-allowed!important}";on(ys);var $i={name:"IconUpload"},bs={class:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},ws=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),$s=[ws];function Ss(t,e,n,r,i,o){return u.openBlock(),u.createElementBlock("svg",bs,$s)}$i.render=Ss;function Si(t,e){return de(t)==="object"?t:{url:t,is_string:!0,name:ks(t),uid:e}}function ki(t){return Y(Y({},t),{},{file:t,value:t})}function ks(t){return(""+t).split("/").pop()}var xs="fcUpload",Cs=u.defineComponent({name:xs,inheritAttrs:!1,formCreateParser:{toFormValue:function(e){return Me(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=Me(this.modelValue).map(Si).map(ki)},watch:{modelValue:function(e){this.fileList=Me(e).map(Si).map(ki)}},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=Me(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"}),Y({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($i,null,null)]}}):u.createVNode(u.resolveComponent("ElButton"),{type:"primary"},{default:function(){return[r.formCreateInject.t("clickToUpload")||r.uploadText||"\u70B9\u51FB\u4E0A\u4F20"]}}))]}},rn(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)}});function Ue(t,e,n){t[e]=n}function mt(t,e){delete t[e]}function Bt(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&&Ue(t,i,[]);else if(o._clone&&n!==void 0)if(n)o=o.getRule(),a&&Ue(t,i,{});else{Ue(t,i,o._clone());continue}else a&&Ue(t,i,{});t[i]=Bt(t[i],o,n)}else Ue(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 We(t){return Bt({},{value:t}).value}var Es=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)&&Ue(t,r,e[r]);return t};function Q(){return Es.apply(this,arguments)}function Un(t){return de(t)!=="object"||t===null?t:t instanceof Array?ce(t):Y({},t)}var Os='._fc-group{display:flex;flex-direction:column;justify-content:center;min-height:38px;width:100%}._fc-group-disabled ._fc-group-add,._fc-group-disabled ._fc-group-btn{cursor:not-allowed}._fc-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}._fc-group-btn{cursor:pointer}._fc-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-group-handle ._fc-group-btn+._fc-group-btn{margin-left:7px}._fc-group-container{border:1px dashed #d9d9d9;border-radius:5px;display:flex;flex-direction:column;margin:5px 5px 25px;padding:20px 20px 25px;position:relative}._fc-group-arrow{height:20px;position:relative;width:20px}._fc-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-group-arrow._fc-group-down{transform:rotate(180deg)}._fc-group-plus-minus{cursor:pointer;height:20px;position:relative;width:20px}._fc-group-plus-minus:after,._fc-group-plus-minus:before{background-color:#409eff;content:"";height:2px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:60%}._fc-group-plus-minus:before{transform:translate(-50%,-50%) rotate(90deg)}._fc-group-plus-minus._fc-group-minus:before{display:none}._fc-group-plus-minus._fc-group-minus:after{background-color:#f56c6c}._fc-group-add{border:1px solid rgba(64,158,255,.5);border-radius:15px;cursor:pointer;height:25px;width:25px}._fc-group-add._fc-group-plus-minus:after,._fc-group-add._fc-group-plus-minus:before{width:50%}._fc-group._fc-group-card{display:flex;flex-direction:column;gap:16px;width:100%}._fc-group._fc-group-card._fc-group-disabled ._fc-group-add,._fc-group._fc-group-card._fc-group-disabled ._fc-group-btn{cursor:not-allowed;opacity:.5}._fc-group._fc-group-card ._fc-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-group._fc-group-card ._fc-group-header{align-items:center;background:#fafafa;border-bottom:1px solid #f0f0f0;display:flex;justify-content:space-between;padding:16px 20px 12px}._fc-group._fc-group-card ._fc-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-group._fc-group-card ._fc-group-title{color:rgba(0,0,0,.85);flex:1;font-size:14px;font-weight:500;line-height:1.5715}._fc-group._fc-group-card ._fc-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}._fc-group._fc-group-card ._fc-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-group._fc-group-card ._fc-group-btn:hover{background:#f0f8ff;border-color:#1890ff;color:#1890ff}._fc-group._fc-group-card ._fc-group-btn:active{border-color:#096dd9;color:#096dd9}._fc-group._fc-group-card ._fc-group-arrow{position:relative}._fc-group._fc-group-card ._fc-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-group._fc-group-card ._fc-group-arrow._fc-group-down{transform:rotate(180deg)}._fc-group._fc-group-card ._fc-group-sort{align-items:center;display:flex;flex-direction:column;height:24px;justify-content:center;position:relative}._fc-group._fc-group-card ._fc-group-sort:after,._fc-group._fc-group-card ._fc-group-sort:before{border-left:1px solid;border-top:1px solid;content:"";height:4px;left:50%;position:absolute;transform:translateX(-50%);width:4px}._fc-group._fc-group-card ._fc-group-sort:before{top:6px;transform:translateX(-50%) rotate(45deg)}._fc-group._fc-group-card ._fc-group-sort:after{bottom:6px;transform:translateX(-50%) rotate(225deg)}._fc-group._fc-group-card ._fc-group-sort-down,._fc-group._fc-group-card ._fc-group-sort-up{cursor:pointer;height:12px;left:0;position:absolute;right:0;z-index:1}._fc-group._fc-group-card ._fc-group-sort-up{top:0}._fc-group._fc-group-card ._fc-group-sort-down{bottom:0}._fc-group._fc-group-card ._fc-group-sort-down:hover,._fc-group._fc-group-card ._fc-group-sort-up:hover{background:rgba(24,144,255,.1)}._fc-group._fc-group-card ._fc-group-plus-minus{background:#409eff;border-color:#409eff;color:#fff;height:24px;position:relative;width:24px}._fc-group._fc-group-card ._fc-group-plus-minus:hover{background:#66b1ff;border-color:#66b1ff;color:#fff}._fc-group._fc-group-card ._fc-group-plus-minus:after,._fc-group._fc-group-card ._fc-group-plus-minus:before{background-color:currentColor;content:"";height:1px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:8px}._fc-group._fc-group-card ._fc-group-plus-minus:before{transform:translate(-50%,-50%) rotate(90deg)}._fc-group._fc-group-card ._fc-group-plus-minus._fc-group-minus{background:#f56c6c;border-color:#f56c6c}._fc-group._fc-group-card ._fc-group-plus-minus._fc-group-minus:hover{background:#f78989;border-color:#f78989}._fc-group._fc-group-card ._fc-group-plus-minus._fc-group-minus:before{display:none}._fc-group._fc-group-card ._fc-group-content{padding:20px}._fc-group._fc-group-card ._fc-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;width:24px}._fc-group._fc-group-card ._fc-group-add:hover{background:#f0f8ff;border-color:#409eff;color:#409eff}._fc-group._fc-group-card ._fc-group-add._fc-group-plus-minus{background:#409eff;border-color:#409eff;color:#fff;height:24px;width:24px}._fc-group._fc-group-card ._fc-group-add._fc-group-plus-minus:hover{background:#66b1ff;border-color:#66b1ff;color:#fff}._fc-group._fc-group-card ._fc-group-add._fc-group-plus-minus:after,._fc-group._fc-group-card ._fc-group-add._fc-group-plus-minus:before{background-color:currentColor;content:"";height:1px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:8px}._fc-group._fc-group-card ._fc-group-add._fc-group-plus-minus:before{transform:translate(-50%,-50%) rotate(90deg)}._fc-group._fc-group-card ._fc-group-empty{color:rgba(0,0,0,.45);font-size:14px;padding:40px 20px;text-align:center}@media (max-width:768px){._fc-group._fc-group-card ._fc-group-container{border-left:none;border-radius:0;border-right:none;margin:0 -8px}._fc-group._fc-group-card ._fc-group-header{padding:12px 16px 8px}._fc-group._fc-group-card ._fc-group-content{padding:16px}._fc-group._fc-group-card ._fc-group-handle{gap:2px}._fc-group._fc-group-card ._fc-group-btn{height:22px;width:22px}}@media (prefers-color-scheme:dark){._fc-group._fc-group-card ._fc-group-container{background:#141414;border-color:#303030}._fc-group._fc-group-card ._fc-group-container:hover{border-color:#434343}._fc-group._fc-group-card ._fc-group-header{background:#1f1f1f;border-bottom-color:#303030}._fc-group._fc-group-card ._fc-group-title{color:hsla(0,0%,100%,.85)}._fc-group._fc-group-card ._fc-group-btn{background:#1f1f1f;border-color:#434343;color:hsla(0,0%,100%,.45)}._fc-group._fc-group-card ._fc-group-btn:hover{background:#111b26;border-color:#177ddc;color:#177ddc}._fc-group._fc-group-card ._fc-group-content{background:#141414}._fc-group._fc-group-card ._fc-group-add{background:#1f1f1f;border-color:#434343;color:hsla(0,0%,100%,.45)}._fc-group._fc-group-card ._fc-group-add:hover{background:#111b26;border-color:#177ddc;color:#177ddc}}';on(Os);function ut(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 xi(t){return t==null?"":de(t)==="object"?JSON.stringify(t,null,2):String(t)}function Rs(t){return t&&de(t)==="object"&&typeof t.then=="function"}function an(t){return Rs(t)?t:Promise.resolve(t)}function Ft(t){var e=t.replace(/([A-Z])/g,"-$1").toLocaleLowerCase();return e.indexOf("-")===0&&(e=e.substr(1)),e}function Ci(t){return t.replace(t[0],t[0].toLocaleUpperCase())}function Ei(t,e,n){return"[form-create ".concat(t,"]: ").concat(e)+(n?`
|
|
16
|
+
|
|
17
|
+
rule: `+JSON.stringify(n.getRule?n.getRule():n):"")}function qn(t,e){console.error(Ei("err",t,e))}function As(t){qn(t.toString()),console.error(t)}var Gn="[[FORM-CREATE-PREFIX-",Hn="-FORM-CREATE-SUFFIX]]";function jt(t,e){return JSON.stringify(Bt(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 Gn+r+Hn}},e)}function Wn(t){return new Function("return "+t)()}function Ke(t,e){if(t&&N.String(t)&&t.length>4){var n=t.trim(),r=!1;try{if(n.indexOf(Hn)>0&&n.indexOf(Gn)===0)n=n.replace(Hn,"").replace(Gn,""),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=Wn(`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=Wn(n)}catch{o=Wn("function "+n)}return o.__json=t,o}catch(a){qn("\u89E3\u6790\u5931\u8D25:".concat(n,`
|
|
20
|
+
|
|
21
|
+
err: `).concat(a));return}}return t}function Oi(t,e){return JSON.parse(t,function(n,r){return N.Undef(r)||!r.indexOf?r:Ke(r,e)})}var Ds=0;function sn(){var t=370+ ++Ds;return"F"+Math.random().toString(36).substr(3,3)+Number("".concat(Date.now())).toString(36)+t.toString(36)+"c"}function ct(t,e,n){var r=t,i;return(e||"").split(".").forEach(function(o){i&&((!r[i]||de(r[i])!="object")&&(r[i]={}),r=r[i]),i=o}),r[i]=n,r}var Ps="fcGroup",Vs=u.defineComponent({name:Ps,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:!0},disabled:{type:Boolean,default:!1},syncDisabled:{type:Boolean,default:!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(){Bt(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=We(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&&we(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:Y({},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=Ce({},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?Y({},this.options):{submitBtn:!1,resetBtn:!1};if(this.defaultValue){o.formData||(o.formData={});var a=We(this.defaultValue);Q(o.formData,this.field?Ce({},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=ce(this.modelValue);n.push(this.defaultValue?We(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=ce(r.modelValue);a.splice(e,1),r.input(a)};an(this.onBeforeRemove(this.modelValue,e)).then(function(o){o!==!1&&i()})}},addIcon:function(e){return u.createVNode("div",{class:"_fc-group-btn _fc-group-plus-minus",onClick:this.add},null)},delIcon:function(e,n){var r=this;return u.createVNode("div",{class:"_fc-group-btn _fc-group-plus-minus _fc-group-minus",onClick:function(){return r.del(e,n)}},null)},sortUpIcon:function(e){var n=this;return u.createVNode("div",{class:"_fc-group-btn _fc-group-arrow _fc-group-up",onClick:function(){return n.changeSort(e,-1)}},null)},sortDownIcon:function(e){var n=this;return u.createVNode("div",{class:"_fc-group-btn _fc-group-arrow _fc-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-group-btn _fc-group-sort"},[u.createVNode("div",{class:"_fc-group-sort-up",onClick:function(){return r.changeSort(e,-1)}},null),u.createVNode("div",{class:"_fc-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(ce(n),[this.cacheRule[i].$f,r]))},expandRule:function(e){for(var n=0;n<e;n++)this.modelValue.push(this.field?null:{});this.input(ce(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-group-plus-minus _fc-group-add fc-clock",onClick:this.add},null):n.map(function(l,f){var c=e.cacheRule[l],m=c.rule,p=c.options,_=r&&!o?e.makeIcon(n.length,f,l):[],w=e.getTitle(f,l);return a?u.createVNode("div",{class:"_fc-group-container",key:l},[u.createVNode("div",{class:"_fc-group-header"},[w===!1?u.createVNode("div",{class:"_fc-group-idx"},[f+1]):null,w!==!1?u.createVNode("div",{class:"_fc-group-title"},[w]):null,u.createVNode("div",{class:"_fc-group-handle fc-clock"},[_.length?_:null])]),u.createVNode("div",{class:"_fc-group-content"},[u.createVNode(i,u.mergeProps({key:l},{disabled:o,"onUpdate:modelValue":function(R){return e.formData(l,R)},"onEmit-event":function(R){for(var F=arguments.length,M=new Array(F>1?F-1:0),I=1;I<F;I++)M[I-1]=arguments[I];return e.emitEvent(R,M,f,l)},"onUpdate:api":function(R){return e.add$f(f,l,R)},inFor:!0,modelValue:e.field?Ce({},e.field,e._value(e.modelValue[f])):e.modelValue[f],rule:m,option:p,extendOption:!0}),null)])]):u.createVNode("div",{class:"_fc-group-container",key:l},[u.createVNode(i,u.mergeProps({key:l},{disabled:o,"onUpdate:modelValue":function(R){return e.formData(l,R)},"onEmit-event":function(R){for(var F=arguments.length,M=new Array(F>1?F-1:0),I=1;I<F;I++)M[I-1]=arguments[I];return e.emitEvent(R,M,f,l)},"onUpdate:api":function(R){return e.add$f(f,l,R)},inFor:!0,modelValue:e.field?Ce({},e.field,e._value(e.modelValue[f])):e.modelValue[f],rule:m,option:p,extendOption:!0}),null),u.createVNode("div",{class:"_fc-group-idx"},[f+1]),_.length?u.createVNode("div",{class:"_fc-group-handle fc-clock"},[_]):null])});return u.createVNode("div",{key:"con",class:"_fc-group "+(o?"_fc-group-disabled":"")+(a?" _fc-group-card":"")},[s])}}),Ts="fcSubForm",Is=u.defineComponent({name:Ts,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)}}),Ri={name:"IconWarning"},Ms={class:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Bs=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),Fs=[Bs];function js(t,e,n,r,i,o){return u.openBlock(),u.createElementBlock("svg",Ms,Fs)}Ri.render=js;var Ns=[za,ds,ps,gs,_s,Cs,Vs,Is,Ri],Ai=["props"],Di=["class","style","directives"],Pi=["on","hook"],ft=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(Ai,ce(r.normal||[])),o=[].concat(Di,ce(r.array||[])),a=[].concat(Pi,ce(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]=Y(Y({},l[c]),f[c]);else if(o.indexOf(c)>-1){var m=l[c]instanceof Array?l[c]:[l[c]],p=f[c]instanceof Array?f[c]:[f[c]];l[c]=[].concat(ce(m),ce(p))}else if(a.indexOf(c)>-1)for(var _ in f[c])if(l[c][_]){var w=l[c][_]instanceof Array?l[c][_]:[l[c][_]],$=f[c][_]instanceof Array?f[c][_]:[f[c][_]];l[c][_]=[].concat(ce(w),ce($))}else l[c][_]=f[c][_];else if(c==="hook")for(var R in f[c])l[c][R]?l[c][R]=Ls(l[c][R],f[c][R]):l[c][R]=f[c][R];else l[c]=f[c];else i.indexOf(c)>-1||a.indexOf(c)>-1||s.indexOf(c)>-1?l[c]=Y({},f[c]):o.indexOf(c)>-1?l[c]=f[c]instanceof Array?ce(f[c]):de(f[c])==="object"?Y({},f[c]):f[c]:l[c]=f[c];return l},n)},Ls=function(e,n){return function(){e&&e.apply(this,arguments),n&&n.apply(this,arguments)}},Yn=["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"],ln=["validate","children","control"],un=["effect","deep","renderSlots"];function Vi(){return[].concat(Yn,ce(Ai),ce(Di),ce(Pi),ln,un)}function Ye(t){var e=t.replace(/(-[a-z])/g,function(n){return n.replace("-","").toLocaleUpperCase()});return Ti(e)}function Ti(t){return t.replace(t[0],t[0].toLowerCase())}function Xn(t,e){return{value:t,enumerable:!1,configurable:!1,writable:!!e}}function Ii(t,e){return Mi([t],e||!1)[0]}function Mi(t,e){return Bt([],ce(t),e||!1)}function rt(t,e){return ft(Array.isArray(e)?e:[e],t,{array:ln,normal:un}),t}function Bi(t){var e=N.Function(t.getRule)?t.getRule():t;return e.type||(e.type="input"),e}function zs(t,e){return t?(Object.keys(e||{}).forEach(function(n){e[n]&&(t[n]=rt(t[n]||{},e[n]))}),t):e}function Fi(t,e){Object.defineProperties(t,Object.keys(e).reduce(function(n,r){return n[r]={get:function(){return e[r]()}},n},{}))}function it(t){return t.__fc__||(t.__origin__?t.__origin__.__fc__:null)}function le(t,e){try{e=t()}catch(n){As(n)}return e}function cn(){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,ce(a));else if(N.Function(a)){var s=a.apply(void 0,ce(i||[]));Array.isArray(s)?o.push.apply(o,ce(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 ji(t){var e=Y({},t.props||{});return Object.keys(t.on||{}).forEach(function(n){n.indexOf("-")>0&&(n=Ye(n));var r="on".concat(Ci(n));Array.isArray(e[r])?e[r]=[].concat(ce(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 fn(t,e){return Object.setPrototypeOf(t,e),t}var Ni=function(e,n){return typeof e=="string"?String(n):typeof e=="number"?Number(n):n},gt={"==":function(e,n){return JSON.stringify(e)===JSON.stringify(Ni(e,n))},"!=":function(e,n){return!gt["=="](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(Ni(e[0],n))>-1},notOn:function(e,n){return!gt.on(e,n)},in:function(e,n){return n&&n.indexOf&&n.indexOf(e)>-1},notIn:function(e,n){return!gt.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 Pe(t,e){return(Array.isArray(e)?e:(e||"").split(".")).forEach(function(n){t!=null&&(t=t[n])}),t}function Us(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 Li(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 zi(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:zi(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 dn=function(e,n){if(!(!e||e===n)){if(e.props.formCreateInject)return e.props.formCreateInject;if(e.parent)return dn(e.parent,n)}};function qs(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,m=l.subForm,p=l.inFor,_=u.reactive({ctxInject:{},destroyed:!1,isShow:!0,unique:1,renderRule:ce(f.value||[]),updateValue:JSON.stringify(c.value||{})}),w=new t(o),$=w.api(),R=p.value,F=function(){if(a){var ue=dn(o,a);if(ue){var te;R?(te=Me(ue.getSubForm()),te.push($)):te=$,ue.subForm(te)}}},M=function(){var ue=dn(o,a);if(ue)if(R){var te=Me(ue.getSubForm()),ee=te.indexOf($);ee>-1&&te.splice(ee,1)}else ue.subForm()},I=null;u.onBeforeMount(function(){u.watchEffect(function(){var ie="",ue=i.option&&i.option.globalClass||{};Object.keys(ue).forEach(function(te){var ee="";ue[te].style&&Object.keys(ue[te].style).forEach(function(xe){ee+=Ft(xe)+":"+ue[te].style[xe]+";"}),ue[te].content&&(ee+=ue[te].content+";"),ee&&(ie+=".".concat(te,"{").concat(ee,"}"))}),i.option&&i.option.style&&(ie+=i.option.style),I||(I=document.createElement("style"),I.type="text/css",document.head.appendChild(I)),I.innerHTML=ie||""})});var H=ut(function(){w.bus.$emit("$loadData.$topForm")},100),W=ut(function(){w.bus.$emit("$loadData.$scopeForm")},100),U=ut(function(){w.bus.$emit("$loadData.$form")},100),re=function(ue){w.bus.$emit("change-$form."+ue)};return u.onMounted(function(){a&&($.top.bus.$on("$loadData.$form",H),$.top.bus.$on("change",re)),$!==$.scope&&$.scope.bus.$on("$loadData.$scopeForm",W),w.mounted()}),u.onBeforeUnmount(function(){a&&($.top.bus.$off("$loadData.$form",H),$.top.bus.$off("change",re)),$!==$.scope&&$.scope.bus.$off("$loadData.$scopeForm",W),M(),_.destroyed=!0,w.unmount(),I&&(I.parentNode||I.parentElement)&&document.head.removeChild(I)}),u.onUpdated(function(){w.updated()}),F(),u.watch(function(){return i.option},function(){w.initOptions(),$.refresh()},{deep:!0,flush:"sync"}),u.watch(function(){return ce(f.value)},function(ie){w.$handle.isBreakWatch()||ie.length===_.renderRule.length&&ie.every(function(ue){return _.renderRule.indexOf(ue)>-1})||(w.$handle.updateAppendData(),w.$handle.reloadRule(f.value),o.setupState.renderRule())}),u.watch(function(){return[i.disabled,i.preview]},function(){$.refresh()}),u.watch(c,function(ie){jt(ie||{})!==_.updateValue&&($.config.forceCoverValue?$.coverValue(ie||{}):$.setValue(ie||{}))},{deep:!0,flush:"post"}),u.watch(function(){return i.index},function(){$.coverValue({}),w.$handle.updateAppendData(),u.nextTick(function(){u.nextTick(function(){$.clearValidateState()})})},{flush:"sync"}),Y(Y({fc:u.markRaw(w),parent:a&&u.markRaw(a),top:u.markRaw(s),fapi:u.markRaw($)},u.toRefs(_)),{},{getGroupInject:function(){return dn(o,a)},refresh:function(){++_.unique},renderRule:function(){_.renderRule=ce(f.value||[])},updateValue:function(ue){if(!_.destroyed){var te=jt(ue);_.updateValue!==te&&(_.updateValue=te,o.emit("update:modelValue",ue),u.nextTick(function(){U(),a?m.value||W():(H(),W())}))}}})},created:function(){var i=u.getCurrentInstance();i.emit("update:api",i.setupState.fapi),i.setupState.fc.init()}})}function Ui(){return{props:{},on:{},options:[],children:[],hidden:!1,display:!0,value:void 0}}function Re(t,e){return function(n,r,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=new Jn(t,n,r,i,o);return e&&(N.Function(e)?e(a):a.props(e)),a}}function Jn(t,e,n,r,i){this._data=Q(Ui(),{type:t,title:e,field:n,value:r,props:i||{}}),this.event=this.on}Q(Jn.prototype,{getRule:function(){return this._data},setProp:function(e,n){return Ue(this._data,e,n),this},modelField:function(e){return this._data.modelField=e,this},_clone:function(){var e=new this.constructor;return e._data=Ii(this._data),e}});function qi(t){t.forEach(function(e){Jn.prototype[e]=function(n){return rt(this._data,Ce({},e,arguments.length<2?n:Ce({},n,arguments[1]))),this}})}qi(Vi());var Gs=Re("");function Hs(t,e,n){var r=Gs("",e);return r._data.type=t,r._data.title=n,r}function Ws(){return{create:Hs,factory:Re}}function Ys(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 Gi(t){var e=t.responseText||t.response;if(!e)return e;try{return JSON.parse(e)}catch{return e}}function Hi(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(Ys(n,t,e),Gi(e));t.onSuccess(Gi(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 Wi(t,e,n){return new Promise(function(r,i){(e||Hi)(Y(Y({},t),{},{onSuccess:function(a){var s=function(c){return c},l=Ke(t.parse);N.Function(l)?s=l:l&&N.String(l)&&(s=function(c){return Pe(c,l)}),an(s(a,t.targetRule,n)).then(function(f){r(f)})},onError:function(a){i(a)}}))})}function Nt(t){return We(t)}function Xs(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(Y(Y({},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){Ue(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,ce(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 ce(a)}},get index(){var o=i.siblings;if(o){var a=o.indexOf(i);return a>-1?a:void 0}},get formulas(){return Y({},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]=Nt(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?Nt(s.rule.value):t.options.appendValue!==!1&&we(t.appendData,a)?Nt(t.appendData[a]):void 0},coverValue:function(a){var s=Y({},a||{});t.deferSyncValue(function(){t.appendData={},i.fields().forEach(function(l){var f=t.fieldCtx[l];if(f){var c=we(a,l);f.forEach(function(m){m.rule.value=c?a[l]:void 0}),delete s[l]}}),Q(t.appendData,s)},!0)},setValue:function(a){var s=a;arguments.length>=2&&(s=Ce({},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&&it(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,m=t.getCtx(s);if(m)if(l){if(c=m.getPending("children",m.rule.children),!Array.isArray(c))return;f=m.rule.children.length-1}else f=m.root.indexOf(m.origin),c=m.root;else c=t.rules;c.splice(f+1,0,a)},prepend:function(a,s,l){var f=0,c,m=t.getCtx(s);if(m)if(l){if(c=m.getPending("children",m.rule.children),!Array.isArray(c))return}else f=m.root.indexOf(m.origin),c=m.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){Ue(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)?it(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){Q(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){rt(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)),we(f.rule,"$"+s)&&Ue(f.rule,"$"+s,l),we(f.rule,"effect")||(f.rule.effect={}),Ue(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=Nt(l.defaultValue)})}),u.nextTick(function(){u.nextTick(function(){u.nextTick(function(){i.clearValidateState(a)})})}),a==null&&(N.Function(t.options.onReset)&&le(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(Ei("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 le(function(){return i.method(a,s).apply(void 0,f)})},toJson:function(a){return jt(i.rule,a)},trigger:function(a,s){for(var l=i.el(a),f=arguments.length,c=new Array(f>2?f-2:0),m=2;m<f;m++)c[m-2]=arguments[m];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=de(a)==="object",l=s?it(a):t.getCtx(a),f=l?l.rule:s?a:i.getRule(a);if(!f)return[];var c=[],m=function(_){_&&_.forEach(function(w){de(w)==="object"&&(w.field&&c.push(w),c.push.apply(c,ce(i.getChildrenRuleList(w))))})};return m(l?l.loadChildrenPending():f.children),c},getParentRule:function(a){var s=de(a)==="object",l=s?it(a):t.getCtx(a);return l.parent.rule},getParentSubRule:function(a){var s=de(a)==="object",l=s?it(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]=Nt(c.value)),f},{})},setChildrenFormData:function(a,s,l){var f=i.getChildrenRuleList(a);t.deferSyncValue(function(){f.forEach(function(c){we(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 de(s)==="object"&&(s=s.handle),Ke(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=de(a)==="object",c=f?it(a):t.getCtx(a);return c?t.$render.createRuleVnode(c,s,l):void 0},renderChildren:function(a,s,l){var f=de(a)==="object",c=f?it(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&&le(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=We(a),a=t.loadFetchVar(a),t.beforeFetch(a).then(function(){return Wi(a,t.fc.create.fetch,i).then(function(f){le(function(){return a.onSuccess&&a.onSuccess(f)}),s(f)}).catch(function(f){le(function(){return a.onError&&a.onError(f)}),l(f)})}).catch(function(f){})})},watchFetch:function(a,s,l,f){return t.fc.watchLoadData(function(c,m){var p=We(a);p=t.loadFetchVar(p,c),!(f&&f(p,m)===!1)&&t.beforeFetch(p).then(function(){return Wi(p,t.fc.create.fetch,i).then(function(_){le(function(){return p.onSuccess&&p.onSuccess(_)}),s&&s(_,m)}).catch(function(_){le(function(){return p.onError&&p.onError(_)}),l&&l(_)})}).catch(function(_){})},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){le(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 Js(t){Q(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){Q(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-"+Ft(n.rule.field)]||o.slots["field-"+n.rule.field]),a||(a=o.slots["type-"+Ft(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=cn();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 rt({},[o["*"]||o.default||{},o[n.originType]||o[n.type]||o[n.type]||{}])})),n.prop=rt({},[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&&ct(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){ct(n.prop,i,r[i])})},parseSide:function(n,r){return N.Object(n)?rt({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 m=arguments.length,p=new Array(m),_=0;_<m;_++)p[_]=arguments[_];var w={rule:o,prop:s,preview:f,api:i.$handle.api,model:s.model||{},slotValue:p};p.length&&o.slotUpdate&&le(function(){return o.slotUpdate(w)});var $={},R=n.loadChildrenPending();n.parser.renderChildren?$=n.parser.renderChildren(R,n):n.parser.loadChildren!==!1&&($=i.renderChildren(R,n)),Object.keys(s.renderSlots||{}).forEach(function(I){$[I]=function(){for(var H=arguments.length,W=new Array(H),U=0;U<H;U++)W[U]=arguments[U];if(N.Function(s.renderSlots[I]))return le(function(){var ie;return(ie=s.renderSlots)[I].apply(ie,W)});var re=i.parseSide(s.renderSlots[I],n);return i.renderRule(re)}});var F=i.getTypeSlot(n),M;return F?(w.children=$,M=F(w)):M=f?n.parser.preview(Un($),n):n.parser.render(Un($),n),M=i.renderSides(M,n),!(!n.input&&N.Undef(s.native))&&s.native!==!0&&(i.fc.targetFormDriver("updateWrap",n),M=i.$manager.makeWrap(n,M)),n.none&&(Array.isArray(M)?M=M.map(function(I){return!I||!I.__v_isVNode?I:i.none(I)}):M=i.none(M)),l&&i.setCache(n,function(){return i.stable(M)},r),M},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 m=i.renderCtx(n,n.parent);if(m)return m()}}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&&de(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 Q(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(p){p.el.__rule__=n.rule,r.onMounted(n,p.el)},"fc.updateValue":function(p){r.$handle.onUpdateValue(n,p)},"fc.el":function(p){n.exportEl=p,p&&((p.$el||p).__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(p){l&&l(n.field,p,n.rule),r.onInput(n,p)},modelField:f,value:this.$handle.getFormData(n)};s.push({on:Y(Ce({},"update:".concat(f),c.callback),n.prop.modelEmit?Ce({},n.prop.modelEmit,function(){return r.onEmitInput(n)}):{}),props:Ce({},f,c.value)}),n.prop.model=c}return ft(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=cn();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(Ti(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=cn();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=Ye(n.type);var s=this.vNode.aliasMap[a];s&&(a=Ye(s))}if(!!a){var l=cn();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=Y({},n);return delete f.type,delete f.is,this.vNode.make(a,f,l.mergeBag(r).getSlots())}}}})}var Zs=1;function Kn(t){Q(this,{$handle:t,fc:t.fc,vm:t.vm,$manager:t.$manager,vNode:new t.fc.CreateNode(t),force:!1,tmpInput:null,id:Zs++}),Fi(this,{options:function(){return t.options},sort:function(){return t.sort}}),this.initCache(),this.initRender()}Js(Kn),Ks(Kn);function Qs(t){Q(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=Ke(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(m){if(!!m){var p,_=a||s||l;if(N.Object(m)&&(p=m.inject,m=m.name,_=m.prefix||_),_){var w=Ft("".concat(_,"-").concat(m)),$=function(){var M,I,H;r.vm.emitsOptions&&(r.vm.emitsOptions[w]=null);for(var W=arguments.length,U=new Array(W),re=0;re<W;re++)U[re]=arguments[re];(M=r.vm).emit.apply(M,[w].concat(U)),(I=r.vm).emit.apply(I,["emit-event",w].concat(U)),(H=r.bus).$emit.apply(H,[w].concat(U))};if($.__emit=!0,!p&&f===!1)i[m]=$;else{var R=p||f||r.options.injectEvent;i[m]=N.Undef(R)?$:r.inject(o,$,R)}}}}),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),m=0;m<f;m++)c[m]=arguments[m];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=Us(n),l=function(p){var _=!1,w;if(i&&p.indexOf("$form.")===0){var $=p.split(".");$.shift(),we(i.value,$[0])&&(_=!0,w=r?r({id:"$form."+$[0]+"_"+i.rule.__fc__.id,getValue:function(){return Pe(i.value,$)}}):Pe(i.value,$))}return _||(w=r?r(p):o.fc.getLoadData(p)),w},f=function m(p){var _=[];p.forEach(function($){$.key?_.push($.key):$.children&&_.push(m($.children))});var w=!1;return _.forEach(function($,R){$!=null&&($.indexOf("'")===0||$.indexOf('"')===0)&&(_[R]=$.slice(1,-1),w=!0)}),_.length===1&&(w||!isNaN(Number(_[0])))?_[0]:l(_.join("."))},c;if(s.forEach(function(m){var p=m.split("||"),_=p[0].trim();if(_){var w=(p[1]||"").trim(),$=zi(_),R=le(function(){return f($)});(R==null||R==="")&&p.length>1&&(R=w),c=R,n=n.replaceAll("{{".concat(m,"}}"),R==null?"":R)}}),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 Yi=["hook:updated","hook:mounted"];function el(t){Q(t.prototype,{usePage:function(){var n=this,r=this.options.page;if(!!r){var i=25,o=tl(this.rules);N.Object(r)&&(r.first&&(i=parseInt(r.first,10)||i),r.limit&&(o=parseInt(r.limit,10)||o)),Q(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(Yi,i),n.bus.$emit("page-end")):(n.first+=n.limit,n.pageEnd=n.rules.length<=n.first,n.loadRule(),n.refresh())};this.bus.$on(Yi,r)}})}function tl(t){return t.length<31?31:Math.ceil(t.length/3)}function nl(t){Q(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 rl(t){Object.defineProperties(t.origin,{__fc__:Xn(u.markRaw(t),!0)}),t.rule!==t.origin&&Object.defineProperties(t.rule,{__fc__:Xn(u.markRaw(t),!0)})}function Xi(t,e,n){var r=sn(),i=!!e.field;Q(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:Y({},e),computed:{},payload:{},refRule:{},input:i,el:void 0,exportEl:void 0,defaultValue:i?We(n):void 0,field:e.field||void 0}),this.updateKey(),rl(this),this.update(t,!0)}Q(Xi.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=le(function(){return i({rule:n.rule,api:n.$api,update:function(p){var _=p||o,w=n.getPending(r,o);n.setPending(r,i,_),l&&l(_,w)},reload:function(){var p=n.getPending(r,o);delete n.pending[r],s&&s(p),n.$api&&n.$api.sync(n.rule)}})});c&&N.Function(c.then)?(c.then(function(m){var p=m||o;n.setPending(r,i,p),a&&a(p),n.$api&&n.$api.sync(n.rule)}).catch(function(m){console.error(m)}),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=sn(),e&&this.parent&&this.parent.updateKey(e)},updateType:function(){this.originType=this.rule.type,this.type=Ye(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=Y({},this.rule);delete i.children,delete i.validate,this.prop=rt({},[i].concat(ce(Object.keys(this.payload).map(function(o){return e.payload[o]})),[this.computed])),this.prop.validate=[].concat(ce(((n=this.refRule)===null||n===void 0||(r=n.__$validate)===null||r===void 0?void 0:r.value)||[]),ce(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),Q(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),Q(e,{root:[]})},e.input)})},update:function(e,n){Q(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 il(t){Q(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=Bi(n);return Object.defineProperties(i,{__origin__:Xn(n,!0)}),ol(i),this.appendValue(i),[i,i.prefix,i.suffix].forEach(function(o){!o||r.loadFn(o,i)}),this.loadCtrl(i),i.update&&(i.update=Ke(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=Ke(r.handle))})},syncProp:function(n){var r=this,i=n.rule;N.trueArray(i.sync)&&ft([{on:i.sync.reduce(function(o,a){return o[de(a)==="object"&&a.event||"update:".concat(a)]=function(s){i.props[de(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 m=i.sort.indexOf(c.__fc__.id);return m>-1?m: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=Bi(l),m=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:m()}),m()&&i.vm.emit("repeat-field",l,i.api);var p,_=!1,w=!!l.__fc__,$=c.value;if(w){if(p=l.__fc__,$=p.defaultValue,p.deleted){if(Ji(p))return;p.update(i)}else if(!p.check(i)){if(Ji(p))return;n[f]=l=l._clone?l._clone():Oi(jt(l)),p=null,_=!0}}if(p)p.originType!==p.rule.type&&p.updateType(),i.bindParser(p),i.appendValue(p.rule),p.parent&&p.parent!==r&&i.rmSubRuleData(p);else{var R=i.parseRule(l);p=new Xi(i,R,$),i.bindParser(p)}i.parseEmit(p),i.syncProp(p),p.parent=r||null,p.root=n,i.setCtx(p),!_&&!w&&(i.effect(p,"load"),i.targetHook(p,"load")),i.effect(p,"created");var F=p.loadChildrenPending();if(p.parser.loadChildren===!1||a(F,p),!r){var M=o(f);M>-1||!f?i.sort.splice(M+1,0,p.id):i.sort.push(p.id)}var I=p.rule;return p.updated||(p.updated=!0,N.Function(I.update)&&i.bus.$once("load-end",function(){i.refreshUpdate(p,I.value,"init")}),i.effect(p,"loaded")),i.refreshControl(p)&&(i.cycleLoad=!0),p}}).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=al(n),o=[],a=this.api;if(!i.length)return!1;for(var s=function(_){var w=i[_],$=w.handle||function(F){return(gt[w.condition||"=="]||gt["=="])(F,w.value)};if(!N.trueArray(w.rule))return"continue";var R=Y(Y({},w),{},{valid:le(function(){return $(n.rule.value,a)}),ctrl:sl(n,w.rule),isHidden:N.String(w.rule[0])});if(R.valid&&R.ctrl||!R.valid&&!R.ctrl&&!R.isHidden)return"continue";o.push(R)},l=0;l<i.length;l++)var f=s(l);if(!o.length)return!1;var c=[],m=!1;return this.deferSyncValue(function(){o.reverse().forEach(function(p){var _=p.isHidden,w=p.valid,$=p.rule,R=p.prepend,F=p.append,M=p.child,I=p.ctrl,H=p.method;if(_){w?n.ctrlRule.push({__ctrl:!0,children:$,valid:w}):I&&n.ctrlRule.splice(n.ctrlRule.indexOf(I)>>>0,1),c[w?"push":"unshift"](function(){H==="disabled"||H==="enabled"?r.api.disabled(!w,$):H==="display"||H==="show"?r.api.display(w,$):H==="required"?($.forEach(function(re){r.api.setEffect(re,"required",w)}),w||r.api.clearValidateState($)):r.api.hidden(!w,$)});return}if(w){m=!0;var W={type:"fragment",native:!0,__ctrl:!0,children:$};n.ctrlRule.push(W),r.bus.$once("load-start",function(){R?a.prepend(W,R,M):F||M?a.append(W,F||n.id,M):n.root.splice(n.root.indexOf(n.origin)+1,0,W)})}else{n.ctrlRule.splice(n.ctrlRule.indexOf(I),1);var U=it(I);U&&U.rm()}})}),c.length&&(this.loading?c.length&&this.bus.$once("load-end",function(){c.forEach(function(p){return p()})}):c.length&&u.nextTick(function(){c.forEach(function(p){return p()})})),this.vm.emit("control",n.origin,this.api),this.effect(n,"control"),m},reloadRule:function(n){return this._reloadRule(n)},_reloadRule:function(n){var r=this;n||(n=this.rules);var i=Y({},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 ol(t){var e=Ui();return Object.keys(e).forEach(function(n){we(t,n)||(t[n]=e[n])}),t}function al(t){var e=t.rule.control||[];return N.Object(e)?[e]:e}function sl(t,e){for(var n=0;n<t.ctrlRule.length;n++){var r=t.ctrlRule[n];if(r.children===e)return r}}function Ji(t){return!!t.rule.__ctrl}function ll(t){Q(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&&we(a,l)?s[l]=r[l]:we(i.api.form,l)?i.api.form[l]=r[l]:i.api.top!==i.api&&we(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),Ue(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||!we(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),le(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),Ki)!==JSON.stringify(r,Ki)},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=le(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 Ki(t,e){return typeof e=="function"?""+e:e}var hn={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){}},ul=["field","value","vm","template","name","config","control","inject","sync","payload","optionsTo","update","slotUpdate","computed","component","cache"],Lt=Symbol("oldValue");function cl(t){Q(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[Ye(n.type)]||o[n.trueType];if(a)return a}return r[n.originType]||r[Ye(n.type)]||r[n.trueType]||hn},bindParser:function(n){n.setParser(this.getParser(n))},getType:function(n){var r=this.fc.CreateNode.aliasMap,i=r[n]||r[Ye(n)]||n;return Ye(i)},noWatch:function(n){this.noWatchFn||(this.noWatchFn=n),le(n),this.noWatchFn===n&&(this.noWatchFn=null)},watchCtx:function(n){var r=this,i=Vi();if(i.filter(function(a){return a[0]!=="_"&&a[0]!=="$"&&ul.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:ce(s.value||[])}:function(){return s.value},function(f,c){var m=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:m})}),a==="hidden"&&Boolean(m)!==Boolean(c)&&(r.$render.clearCacheAll(),u.nextTick(function(){r.targetHook(n,"hidden",{value:m})})),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,m||{}),a==="props"&&n.input&&r.setFormData(n,n.parser.toFormValue(n.rule.value,n))):a==="emit"?r.parseEmit(n):["prefix","suffix"].indexOf(a)>-1?m&&r.loadFn(m,n.rule):a==="type"?(n.updateType(),r.bindParser(n)):l&&(N.Function(c)&&(c=n.getPending("children",[])),N.Function(m)&&(m=n.loadChildrenPending()),r.updateChildren(n,m,c));r.$render.clearCache(n),r.refresh(),r.watching=!1}},{deep:!l,sync:l}))}),n.refRule.__$title=u.computed(function(){var a=(de(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=(de(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,m;return r.api.t(f[1],{title:(c=n.refRule)===null||c===void 0||(m=c.__$title)===null||m===void 0?void 0:m.value})}return l};return Me(n.rule.validate).map(function(s){var l=Y({},s);if(l.message&&(l.message=a(l.message)),N.Function(l.validator)){var f=n;l.validator=function(){for(var m,p=arguments.length,_=new Array(p),w=0;w<p;w++)_[w]=arguments[w];return(m=s.validator).call.apply(m,[{that:this,id:f.id,field:f.field,rule:f.rule,api:f.$handle.api}].concat(_))}}if(l.adapter){if(de(l.error)==="object"){var c=Y({},l.error);Object.keys(c).forEach(function(m){c[m]=a(c[m])}),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||(de(a)!=="object"&&(a={value:a}),Object.keys(a).forEach(function(s){var l=u.computed(function(){var c=a[s];if(!!c){var m=r.compute(n,c);return(c.linkage||c.linkageVariable)&&m===Lt?Lt:m}}),f=function(m){s==="value"?r.onInput(n,m):s[0]==="$"?r.api.setEffect(n.id,s,m):ct(n.rule,s,m)};(s==="value"?[void 0,null,""].indexOf(n.rule.value)>-1:l.value!==Pe(n.rule,s))&&f(l.value),n.watch.push(u.watch(l,function(c){c!==Lt&&setTimeout(function(){f(c)})},{deep:!0}))}))}),this.watchEffect(n)},adapterValidate:function(n,r){var i=this,o=function(s,l){var f=n.beforeValidate&&le(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 p="";de(n.error)==="object"&&(p=n.error[c]||n.error.default),!p&&typeof n.message=="string"&&(p=n.message),p||(p=i.getValidateMessage(r,{key:c,rule:n[c]})),l(p)}else if(n.validator){var m=n.validator&&le(function(){return n.validator(s,l)});m&&N.Function(m.then)&&m.then(function(){return l()}).catch(function(_){return l(_)})}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={},Ce(a,r.key,s),Ce(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 p=Ta(f[l],2),_=p[0],w=p[1];switch(_){case"len":case"maxLen":case"minLen":var $=function(re){return _==="len"?re===w:_==="maxLen"?re<=w:re>=w};if(Array.isArray(r)){if(!$(r.length))return{v:_}}else{if(de(r)==="object")return{v:_};if(!$((""+r).length))return{v:_}}break;case"pattern":var R=typeof w=="string"?new RegExp(w):w;if(!R.test(""+r))return{v:_};break;case"uppercase":if(w&&(typeof r!="string"||!/^[A-Z]*$/.test(r)))return{v:_};break;case"lowercase":if(w&&(typeof r!="string"||!/^[a-z]*$/.test(r)))return{v:_};break;case"min":case"max":case"positive":case"negative":case"integer":case"number":var F=Number(r);if(Number.isNaN(F))return{v:_};if(_==="min"&&F<w)return{v:_};if(_==="max"&&F>w)return{v:_};if(_==="positive"&&F<=0)return{v:_};if(_==="negative"&&F>=0)return{v:_};if(_==="integer"&&!Number.isInteger(F))return{v:_};break;case"equal":if(r!==w)return{v:_};break;case"enum":if(Array.isArray(w)&&!w.includes(r))return{v:_};break;case"hasKeys":if(de(r)!=="object"||Array.isArray(w)&&w.some(function(U){return!(U in r)}))return{v:_};break;case"email":var M=/^(([^<>()\[\]\\.,;:\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(!M.test(""+r))return{v:_};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:_};break;case"ip":var H=/^(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(!H.test(""+r))return{v:_};break;case"phone":var W=/^(?:(?:\+|00)86)?1[3-9]\d{9}$/;if(!W.test(""+r))return{v:_};break;case"computed":if(!o.compute(n,w))return{v:_};break}},l=0,f=Object.entries(i);l<f.length;l++){var c=s();if(de(c)==="object")return c.v}},compute:function(n,r){var i=this,o;if(de(r)==="object"){var a=n.getParentGroup(),s=function c(m){if(m=Array.isArray(m)?{mode:"AND",group:m}:m,!N.trueArray(m.group))return!0;for(var p=m.mode==="OR",_=!0,w=function(M){var I=m.group[M],H=void 0,W=null;if(I.variable)W=JSON.stringify(i.fc.getLoadData(I.variable))||"";else if(I.field)W=Li(I.field||"");else if(!I.mode)return{v:!0};var U=I.compare;if(U&&(U=Li(U||"")),I.mode?H=c(I):gt[I.condition]?N.Function(I.handler)?H=le(function(){return I.handler(i.api,n.rule)}):H=le(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,gt,I.value,i.api.top.form,i.api.top===i.api.scope?{}:i.api.scope.form,a?i.subRuleData[a.id]||{}:{},n.rule)}):H=!1,p&&H)return{v:!0};p||(_=_&&H)},$=0;$<m.group.length;$++){var R=w($);if(de(R)==="object")return R.v}return p?!1:_},l=s(r);return l=r.invert===!0?!l:l,r.linkage?l?le(function(){return i.computeValue(r.linkage,n,a)},void 0):Lt:r.linkageVariable?l?le(function(){return i.fc.getLoadData(r.linkageVariable)},void 0):Lt: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 le(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,m=arguments.length,p=new Array(m),_=0;_<m;_++)p[_]=arguments[_];return(c=a.fc.formulas[f]).call.apply(c,[{that:this,rule:r.rule,api:a.api,fc:a.fc}].concat(p))},l},{});return le(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;mt(this.ctxs,i),mt(this.formData,i),mt(this.subForm,i),mt(this.vm.setupState.ctxInject,i);var l=n.getParentGroup();l&&this.subRuleData[l.id]&&mt(this.subRuleData[l.id],o),n.group&&mt(this.subRuleData,i),a&&this.rmIdCtx(n,o,"field"),s&&this.rmIdCtx(n,s,"name"),a&&!we(this.fieldCtx,o)&&mt(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(m){return m&&m.__fc__&&r.rmCtx(m.__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 fl(t){Q(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[Ye("on-"+n)];if(s){var l=Ke(s);N.Function(l)&&le(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(R,F){R&&(R=Array.isArray(R)?R:[R],R.forEach(function(M){le(function(){return M(Y(Y({},i||{}),{},{self:n.rule,rule:n.rule,parent:F==null?void 0:F.rule,$f:s.api,api:s.api,option:s.vm.props.option}))})}))};f(l);for(var c="deep"+Ci(r),m=n.parent;m;){var p,_,w=(p=m.prop)===null||p===void 0||(_=p.hook)===null||_===void 0?void 0:_[c];f(w,m),m=m.parent}}})}function dl(t){Q(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=pl(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,ce(f))}))}),n._used=o},watchEffect:function(n){var r=this,i={required:function(){var a,s;return(we(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",Ce({},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(we(n,"$"+r))return n["$"+r];if(we(n,"effect")&&we(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 m=c||Object.keys(s).reduce(function(p,_){return _[0]==="$"&&(p[_.substr(1)]=s[_]),p},Y({},s.effect||{}));Object.keys(m).forEach(function(p){var _=o.providers[p];if(!(!_||_.input&&!l)){var w;if(!_._c)w="*";else if(_._used.indexOf(f)>-1)w=f;else return;var $=Y({value:m[p],getValue:function(){return o.getEffect(s,p)}},i||{});a&&($.getProp=function(){return a.effectData(p)},$.clearProp=function(){return a.clearEffectData(p)},$.mergeProp=function(R){return rt($.getProp(),[R])},$.id=a.id),o.bus.$emit("p:".concat(p,":").concat(w,":").concat(_.input?1:0),r,[$,s,o.api])}})}}})}function hl(t){return t.filter(function(e,n,r){return r.indexOf(e,0)===n})}function pl(t){var e=t.components;if(Array.isArray(e)){var n=hl(e.filter(function(r){return r!=="*"}));return n.length?n:!1}else return N.String(e)?[e]:!1}function Ze(t){var e=this;Fi(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}}),Q(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 Kn(this),this.api=t.extendApiFn.reduce(function(n,r){var i=le(function(){return r(n,e)});return i&&i!==n&&Q(n,i),n},Xs(this))}Q(Ze.prototype,{initData:function(e){Q(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=Y(Y(Y({},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&&le(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&&le(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&&le(function(){return n.options.beforeSubmit(e,{api:n.api})});o&&N.Function(o.then)?o.then(r).catch(i):o===!1?i():r()})}}),Qs(Ze),el(Ze),nl(Ze),il(Ze),ll(Ze),cl(Ze),fl(Ze),dl(Ze);var ml="fcFragment",Zn=u.defineComponent({name:ml,inheritAttrs:!1,props:["vnode"],render:function(){return this.vnode}});function gl(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 Zi(t,e){var n=t.directives;return n?(Array.isArray(n)||(n=[n]),u.withDirectives(e,n.reduce(function(r,i){return r.concat(gl(i))},[]))):e}function vl(){var t={};function e(n){this.vm=n.vm,this.handle=n}return Q(e.prototype,{make:function(r,i,o){return Zi(i,this.h(r,ji(i),o))},makeComponent:function(r,i,o){try{return Zi(i,u.createVNode(r,ji(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}),Q(e,{aliasMap:t,alias:function(r,i){t[r]=i},use:function(r){Object.keys(r).forEach(function(i){var o=Ft(i),a=xi(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 _l(t){var e=function(n){Ra(i,n);var r=Va(i);function i(){return Oa(this,i),r.apply(this,arguments)}return i}(Qi);return Object.assign(e.prototype,t),e}function Qi(t){Q(this,{$handle:t,vm:t.vm,options:{},ref:"fcForm",mergeOptionsRule:{normal:["form","row","info","submitBtn","resetBtn"]}}),this.updateKey(),this.init()}Q(Qi.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=sn()},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 ft(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 yl=function(e){var n={name:"loadData",_fn:[],loaded:function(i,o,a){var s=this;this.deleted(i),u.nextTick(function(){var l=Me(i.getValue()),f=[];l.forEach(function(c){if(c&&(c.attr||c.template)){var m=function($){var R;o&&o.__fc__&&(R=o.__fc__.getParentGroup());var F;c.template?F=e.$handle.loadStrVar(c.template,$,R?{rule:o,value:e.$handle.subRuleData[R.id]||{}}:null):c.handler&&N.Function(c.handler)?F=c.handler($,o,a):F=e.$handle.loadStrVar("{{".concat(c.attr,"}}"),$,R?{rule:o,value:e.$handle.subRuleData[R.id]||{}}:null),(F==null||F==="")&&c.default!=null&&(F=c.default),c.copy!==!1&&(F=We(F));var M=c.modify?o:i.getProp();c.to==="child"?M.children?M.children[0]=F:M.children=[F]:ct(M,c.to||"options",F),a.sync(o)},p=function($){return m($)},_=e.watchLoadData(p);m=ut(m,c.wait||300),c.watch!==!1?f.push(_):_()}}),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},bl=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 m=de(c)==="object",p=function(R){var F=e.t(m?c.attr:c,m?c.params:null,R),M=m&&c.modify?o:i.getProp();f==="child"?M.children?M.children[0]=F:M.children=[F]:ct(M,f,F),a.sync(o)},_=function(R){return p(R)},w=e.watchLoadData(_);p=ut(p,c.wait||300),c.watch!==!1?l.push(w):w()}}),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},Qn={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=Y(Y({},i),{},{validator:function(){var l=it(n);if(l){for(var f=arguments.length,c=new Array(f),m=0;m<f;m++)c[m]=arguments[m];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(){Qn.load.apply(Qn,arguments)}},wl=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(_){_===void 0?o.clearProp():ct(o.getProp(),l.to||"options",_),_!=null&&l&&l.key&&e.$handle.options.globalData[l.key]&&e.fetchCache.set(e.$handle.options.globalData[l.key],{status:!0,data:_}),s.sync(a)};if(!l||!l.action&&!l.key){f(void 0);return}l=We(l),l.to||(l.to="options");var c=l.onError,m=function(){if(!o.getValue())return o.clearProp(),s.sync(a),!0};i._fn[o.id]=e.watchLoadData(ut(function(p,_){if(_&&l.watch===!1)return i._fn[o.id]();if(l.key){e.targetRule=a;var w=p("$globalData."+l.key);if(delete e.targetRule,w){if(m())return;f(w)}return}var $=e.$handle.loadFetchVar(We(l),p,a),R=Y(Y({headers:{}},$),{},{onSuccess:function(M,I){if(!m()){var H=function(re){return I?re:we(re,"data")?re.data:re},W=Ke($.parse);N.Function(W)?H=W:W&&N.String(W)&&(H=function(re){return Pe(re,W)}),an(H(M,a,s)).then(function(U){f(U)})}},onError:function(M){f(void 0),!m()&&(c||function(I){return qn(I.message||"fetch fail "+$.action)})(M,a,s)}});e.$handle.beforeFetch(R,{rule:a,api:s}).then(function(){if(N.Function($.action)){an($.action(a,s)).then(function(F){R.onSuccess(F,!0)}).catch(function(F){R.onError(F)});return}le(function(){return e.create.fetch(R,{inject:o,rule:a,api:s})})}).catch(function(F){})},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},$l={fetch:wl,loadData:yl,t:bl,componentValidate:Qn},Sl="html",kl={name:Sl,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 xl(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 Cl(t){var e=localStorage.getItem(t);if(e)try{return JSON.parse(e)}catch{return e}return null}function El(t){var e=sessionStorage.getItem(t);if(e)try{return JSON.parse(e)}catch{return e}return null}function er(t,e){if(!e)return null;var n=e.split("."),r=t(n.shift());return n.length?r==null?null:Pe(r,n):r}function Ol(t){return er(xl,t)}function Rl(t){return er(Cl,t)}function Al(t){return er(El,t)}var Dl={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 Pl(t,e){var n;return arguments.length===2?(n=arguments[1],e=n[t]):n=arguments[2],{id:e,prop:n}}function tr(){return Pl.apply(void 0,["name"].concat(Array.prototype.slice.call(arguments)))}function Vl(t){var e=t.key||[],n=t.array||[],r=t.normal||[];Yn.push.apply(Yn,ce(e)),ln.push.apply(ln,ce(n)),un.push.apply(un,ce(r)),qi([].concat(ce(e),ce(n),ce(r)))}var Tl=1,qe={},eo=Symbol("defValue");function to(t){var e=Ce({},Zn.name,Zn),n={},r={},i={},o={},a=[],s=[],l=[t.extendApi],f=Y({},$l),c=Ws(),m={global:{}},p=t.isMobile===!0,_=u.reactive({$mobile:p}),w=vl(),$={},R={};Vl(t.attrs||{});function F(A){var C=qe[A];if(Array.isArray(C))return C.map(function(V){return V.api()});if(C)return C.api()}function M(A){a.push(A)}function I(){var A=tr.apply(void 0,arguments);A.id&&A.prop&&(r[A.id]=A.prop)}function H(){var A=tr.apply(void 0,arguments);A.id&&A.prop&&(f[A.id]=N.Function(A.prop)?A.prop:Y(Y({},A.prop),{},{name:A.id}))}function W(A){w.use(A)}function U(){var A=tr.apply(void 0,arguments);if(!A.id||!A.prop)return hn;var C=Ye(A.id),V=A.prop,y=V.merge===!0?n[C]:void 0;n[C]=fn(V,y||hn),c[C]=Re(C),V.maker&&Q(c,V.maker)}function re(A,C){var V;if(N.String(A)){if(V=A,C===void 0)return e[V]}else V=A.displayName||A.name,C=A;if(!(!V||!C)){var y=Ye(V);e[V]=C,e[y]=C,delete w.aliasMap[V],delete w.aliasMap[y],delete n[V],delete n[y],C.formCreateParser&&U(V,C.formCreateParser)}}function ie(){return qs(B,e,r)}function ue(A,C){var V=ie();return u.createApp({data:function(){return u.reactive({rule:A,option:C})},render:function(){return u.h(V,Y({ref:"fc"},this.$data))}})}function te(){return Zn}function ee(A,C){return N.Function(A.install)?A.install(xe,C):N.Function(A)&&A(xe,C),this}function xe(A,C){var V=ue(A,C||{});a.forEach(function(k){le(function(){return k(xe,V)})});var y=document.createElement("div");((C==null?void 0:C.el)||document.body).appendChild(y);var x=V.mount(y);return x.$refs.fc.fapi}fn(xe,R);function Xe(A){var C=Y({},t);return A?C.inherit={components:e,parsers:n,directives:r,modelFields:i,providers:f,useApps:a,maker:c,formulas:$,loadData:_}:delete C.inherit,to(C)}function P(A,C){i[A]=C}function E(A,C){$[A]=C}function S(A,C){var V=o[A]||{},y=V.parsers||{};C.parsers&&Object.keys(C.parsers).forEach(function(x){y[x]=fn(C.parsers[x],hn)}),C.name=A,o[A]=Y(Y(Y({},V),C),{},{parsers:y})}function h(A){A&&Object.keys(qe).forEach(function(C){var V=Array.isArray(qe[C])?qe[C]:[qe[C]];V.forEach(function(y){y.bus.$emit("$loadData."+A)})})}function d(A,C){ct(_,A,C),h(A)}function v(A,C){var V=function(){for(var x=arguments.length,k=new Array(x),D=0;D<x;D++)k[D]=arguments[D];return le(function(){return C.apply(void 0,k)})};V._driver=!0,d(A,V)}function b(A,C){var V=(A||"").split(".");A=V.shift();var y=V.join(".");if(we(_,A)||(_[A]=eo),_[A]!==eo){var x=_[A];return x&&x._driver?x=x(y):V.length&&(x=Pe(x,V)),x==null||x===""?C:x}else return C}function g(A){l.push(A)}function O(A){delete _[A],h(A)}function j(A,C){s.push({name:A,callback:C})}function B(A){var C=this;Q(this,{id:Tl++,create:xe,vm:A,manager:_l(t.manager),parsers:n,providers:f,modelFields:i,formulas:$,isMobile:p,rules:A.props.rule,name:A.props.name||sn(),inFor:A.props.inFor,prop:{components:e,directives:r},get:null,drivers:o,renderDriver:null,refreshData:h,loadData:_,CreateNode:w,bus:new gi,unwatch:[],options:u.ref({}),extendApiFn:l,fetchCache:new WeakMap,tmpData:u.reactive({})}),s.forEach(function(V){C.bus.$on(V.name,V.callback)}),u.nextTick(function(){u.watch(C.options,function(){C.$handle.$manager.updateOptions(C.options.value),C.api().refresh()},{deep:!0})}),Q(A.appContext.components,e),Q(A.appContext.directives,r),this.$handle=new Ze(this),this.name&&(this.inFor?(qe[this.name]||(qe[this.name]=[]),qe[this.name].push(this)):qe[this.name]=this)}B.isMobile=p,Q(B.prototype,{init:function(){var C=this;this.isSub()&&this.unwatch.push(u.watch(function(){return C.vm.setupState.parent.setupState.fc.options.value},function(){C.initOptions(),C.$handle.api.refresh()},{deep:!0,flush:"sync"})),this.vm.props.driver&&(this.renderDriver=de(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(C){for(var V,y=this,x=arguments.length,k=new Array(x>1?x-1:0),D=1;D<x;D++)k[D-1]=arguments[D];if((V=this.bus).$emit.apply(V,[C].concat(k)),this.renderDriver&&this.renderDriver[C])return le(function(){var T;return(T=y.renderDriver)[C].apply(T,k)})},t:function(C,V,y){var x=y?y("$t."+C):this.globalLanguageDriver(C);return x==null&&(x=""),x&&V&&Object.keys(V).forEach(function(k){var D=new RegExp("{".concat(k,"}"),"g");x=x.replace(D,V[k])}),x},globalDataDriver:function(C){var V=this,y=C.split("."),x=y.shift(),k=this.options.value.globalData&&this.options.value.globalData[x];if(k){if(k.type==="static")return Pe(k.data,y);var D,T=this.fetchCache.get(k);if(T){if(T.status&&(D=Pe(T.data,y)),!T.loading)return D;T.loading=!1,this.fetchCache.set(k,T)}else this.fetchCache.set(k,{status:!1});var X=ut(function(){oe();var se=V.fetchCache.get(k);V.options.value.globalData&&Object.values(V.options.value.globalData).indexOf(k)!==-1?(se&&(se.loading=!0,V.fetchCache.set(k,se)),V.bus.$emit("$loadData.$globalData."+x)):V.fetchCache.delete(k)},k.wait||600),J=function(he){V.fetchCache.set(k,{status:!0,data:he}),V.bus.$emit("$loadData.$globalData."+x)},ne=function(he,be){if(be&&k.watch===!1)return oe();if(be){X();return}var ve=V.$handle.loadFetchVar(Un(k),he);ve.targetRule=V.targetRule,V.$handle.api.fetch(ve).then(function(fe){J(fe)}).catch(function(fe){J(null)})},oe=this.watchLoadData(ne);return k.watch===!1&&oe(),this.unwatch.push(oe),D}},getLocale:function(){var C=this.vm.setupState.top.props.locale;return C&&de(C)==="object"?C.name:typeof C=="string"?C:"zh-cn"},globalLanguageDriver:function(C){var V=this.vm.setupState.top.props.t,y=this.vm.setupState.top.props.locale,x=void 0;if(V&&(x=le(function(){return V(C)})),x==null&&y&&de(y)==="object"&&(x=Pe(y,C)),x==null){var k=this.options.value.language||{},D=this.getLocale();x=Pe(k[D]||{},C),x==null&&(x=Pe(Dl[D]||{},C))}return x},globalVarDriver:function(C){var V=this,y=C.split("."),x=y.shift(),k=this.options.value.globalVariable&&this.options.value.globalVariable[x];if(k){var D=N.Function(k)?k:Ke(k.handle);if(D){var T=D(function(){var X;return(X=V.$handle.api).getData.apply(X,arguments)},this.$handle.api);return Pe(T,y)}}},setData:function(C,V,y){y?d(C,V):(ct(this.vm.setupState.top.setupState.fc.tmpData,C,V),this.bus.$emit("$loadData."+C))},getLoadData:function(C,V){var y=null;if(C!=null){var x=C.split("."),k=x.shift();if(y=Pe(this.vm.setupState.top.setupState.fc.tmpData,C),y!=null)return y;if(k==="$topForm")y=this.$handle.api.top.formData(!0);else if(k==="$scopeForm")y=this.$handle.api.scope.formData(!0);else if(k==="$form")y=this.$handle.api.formData(!0);else if(k==="$options")y=this.options.value;else if(k==="$globalData")y=this.globalDataDriver(x.join(".")),x=[];else if(k==="$var")y=this.globalVarDriver(x.join(".")),x=[];else if(k==="$locale")y=this.getLocale(),x=[];else if(k==="$t")y=this.globalLanguageDriver(x.join(".")),x=[];else{if(k==="$preview")return this.$handle.preview;y=b(C),x=[]}y&&x.length&&(y=Pe(y,x))}return y==null||y===""?V:y},watchLoadData:function(C,V){var y=this,x={},k=function(J){y.get||(y.get=D),le(function(){C(D,J)}),y.get===D&&(y.get=void 0)},D=function(J,ne){var oe;if(de(J)==="object"&&(oe=J.getValue,J=J.id),x[J])return x[J].val;var se=u.computed(function(){return oe?oe():y.getLoadData(J,ne)}),he=J.split("."),be=he.shift(),ve=he.shift()||"",fe=ut(function(){var K=oe?oe():y.getLoadData(J,ne);if(x[J])((K instanceof Function||N.Object(K)||Array.isArray(K))&&K===x[J].val||JSON.stringify(K)!==JSON.stringify(x[J].val))&&(x[J].val=K,k(!0));else return},V||0),me=u.watch(se,function(K){fe()});return y.bus.$on("$loadData."+be,fe),ve&&y.bus.$on("$loadData."+be+"."+ve,fe),x[J]={fn:function(){y.bus.$off("$loadData."+be,fe),ve&&y.bus.$off("$loadData."+be+"."+ve,fe),me()},val:se.value},se.value};k(!1);var T=function(){Object.keys(x).forEach(function(J){return x[J].fn()}),x={}};return this.unwatch.push(T),T},isSub:function(){return this.vm.setupState.parent&&this.vm.props.extendOption},initOptions:function(){this.options.value={};var C=Y({formData:{},submitBtn:{},resetBtn:{},globalEvent:{},globalData:{}},We(m)),V=this.isSub();V&&(C=this.mergeOptions(C,this.vm.setupState.parent.setupState.fc.options.value||{},!0)),C=this.mergeOptions(C,this.vm.props.option);var y=this.api();this.targetFormDriver("initOptions",C,{api:y,isSubForm:V}),this.updateOptions(C)},mergeOptions:function(C,V,y){return V=Y({},V||{}),y&&["page","onSubmit","onReset","onCreated","onChange","onMounted","mounted","onReload","reload","formData","el","globalClass","style"].forEach(function(x){delete V[x]}),V.global&&(C.global=zs(C.global,V.global),delete V.global),this.$handle.$manager.mergeOptions([V],C),C},updateOptions:function(C){this.options.value=this.mergeOptions(this.options.value,C),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 C=this;if(this.name)if(this.inFor){var V=qe[this.name].indexOf(this);qe[this.name].splice(V,1)}else delete qe[this.name];s.forEach(function(y){C.bus.$off(y.name,y.callback)}),this.tmpData={},this.unwatch.forEach(function(y){return y()}),this.unwatch=[],this.$handle.reloadRule([])},updated:function(){var C=this;this.$handle.bindNextTick(function(){return C.bus.$emit("next-tick",C.$handle.api)})}});function G(A){Q(A,{version:t.version,ui:t.ui,isMobile:p,extendApi:g,getData:b,setDataDriver:v,setData:d,removeData:O,refreshData:h,maker:c,component:re,directive:I,setModelField:P,setFormula:E,setDriver:S,register:H,$vnode:te,parser:U,use:ee,factory:Xe,componentAlias:W,copyRule:Ii,copyRules:Mi,mergeRule:rt,fetch:Hi,$form:ie,parseFn:Ke,parseJson:Oi,toJson:jt,useApp:M,getApi:F,on:j})}function z(A){Q(A,{create:xe,install:function(V,y){m=Y(Y({},m),y||{});var x="_installedFormCreate_"+t.ui;if(V[x]!==!0){V[x]=!0;var k=function(X){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return xe(X,J)};G(k),V.config.globalProperties.$formCreate=k;var D=ie();V.component(D.name,D),a.forEach(function(T){le(function(){return T(A,V)})})}}})}if(G(R),z(R),v("$cookie",Ol),v("$localStorage",Rl),v("$sessionStorage",Al),w.use({fragment:"fcFragment"}),t.install&&xe.use(t),M(function(A,C){C.mixin({props:["formCreateInject"]})}),U(kl),t.inherit){var L=t.inherit;L.components&&Q(e,L.components),L.parsers&&Q(n,L.parsers),L.directives&&Q(r,L.directives),L.modelFields&&Q(i,L.modelFields),L.providers&&Q(f,L.providers),L.useApps&&Q(a,L.useApps),L.maker&&Q(c,L.maker),L.loadData&&Q(_,L.loadData),L.formulas&&Q($,L.formulas)}var q=ie();return fn(q,R),Object.defineProperties(q,{fetch:{get:function(){return R.fetch},set:function(C){R.fetch=C}}}),q.util=R,q}var no={date:"YYYY-MM-DD",month:"YYYY-MM",week:"YYYY-wo",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"},ro="datePicker",Il={name:ro,maker:function(){return["year","month","date","dates","week","datetime","datetimeRange","dateRange","monthRange"].reduce(function(t,e){return t[e]=Re(ro,{type:e.toLowerCase()}),t},{})}(),mergeProp:function(e){var n=e.prop.props;n.valueFormat||(n.valueFormat=no[n.type]||no.date)}},nr="hidden",Ml={name:nr,maker:Ce({},nr,function(t,e){return Re(nr)("",t,e)}),render:function(){return[]}},rr="input",Bl={name:rr,maker:function(){var t=["password","url","email","text","textarea"].reduce(function(e,n){return e[n]=Re(rr,{type:n}),e},{});return t.idate=Re(rr,{type:"date"}),t}(),mergeProp:function(e){var n=e.prop.props;n&&n.autosize&&n.autosize.minRows&&(n.rows=n.autosize.minRows||2)}},Fl="textarea",jl={name:Fl,mergeProp:function(e){var n=e.prop.props;n.type="textarea",n&&n.autosize&&n.autosize.minRows&&(n.rows=n.autosize.minRows||2)}},io="slider",Nl={name:io,maker:{sliderRange:Re(io,{range:!0})},toFormValue:function(e,n){var r=Array.isArray(e),i=n.prop.props,o=i.min||0,a;return i.range===!0?a=r?e:[o,parseFloat(e)||o]:a=r?parseFloat(e[0])||o:parseFloat(e),a}},ir="timePicker",Ll={name:ir,maker:{time:Re(ir,function(t){return t.props.isRange=!1}),timeRange:Re(ir,function(t){return t.props.isRange=!0})},mergeProp:function(e){var n=e.prop.props;n.valueFormat||(n.valueFormat="HH:mm:ss")}},zl={name:"FcRow",render:function(e,n){return n.vNode.col({props:{span:24}},{default:function(){return[n.vNode.row(n.prop,e)]}})}},Ul="select",ql={name:Ul,toFormValue:function(e,n){return n.prop.props.multiple&&!Array.isArray(e)?Me(e):e}},Gl=[Il,Ml,Bl,jl,Nl,Ll,zl,ql],ke="el",Hl={button:ke+"-button",icon:ke+"-icon",slider:ke+"-slider",rate:ke+"-rate",upload:"fc-upload",cascader:ke+"-cascader",popover:ke+"-popover",tooltip:ke+"-tooltip",colorPicker:ke+"-colorPicker",timePicker:ke+"-time-picker",timeSelect:ke+"-time-select",datePicker:ke+"-date-picker",switch:ke+"-switch",select:"fc-select",checkbox:"fc-checkbox",radio:"fc-radio",inputNumber:ke+"-input-number",number:ke+"-input-number",input:ke+"-input",textarea:ke+"-input",formItem:ke+"-form-item",form:ke+"-form",frame:"fc-frame",col:ke+"-col",row:ke+"-row",tree:"fc-tree",autoComplete:ke+"-autocomplete",auto:ke+"-autocomplete",group:"fc-group",array:"fc-group",object:"fc-sub-form",subForm:"fc-sub-form"};function Wl(){return{form:{inline:!1,labelPosition:"right",labelWidth:"125px",disabled:!1,size:void 0},row:{show:!0,gutter:0},submitBtn:{type:"primary",loading:!1,disabled:!1,innerText:"",show:!0,col:void 0,click:void 0},resetBtn:{type:"default",loading:!1,disabled:!1,innerText:"",show:!1,col:void 0,click:void 0}}}function Yl(t){return t.type==="tooltip"}function oo(t,e){if(!!we(t,e)&&N.String(t[e])){var n;t[e]=(n={},Ce(n,e,t[e]),Ce(n,"show",!0),n)}}function ot(t){return t===!1}function Xl(t,e){we(t,e)&&!N.Object(t[e])&&(t[e]={show:!!t[e]})}function or(t){var e=Y({},t);return delete e.children,e}var Jl={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.validateField(e,function(a,s){s?i(s):r(a)}):r()})},clearValidateState:function(e){var n=this.vm.refs[e.wrapRef];n&&n.clearValidate()},fieldChange:function(e,n,r,i){if(!i){var o,a;(o=this.vm.refs[e.wrapRef])===null||o===void 0||(a=o.validate("change"))===null||a===void 0||a.catch(function(){})}},tidyOptions:function(e){return["submitBtn","resetBtn","row","info","wrap","col","title"].forEach(function(n){Xl(e,n)}),e},tidyRule:function(e){var n=e.prop;return oo(n,"title"),oo(n,"info"),n},mergeProp:function(e){var n=this,r={info:{trigger:"hover",placement:"top-start",icon:!0},title:{},col:{span:24},wrap:{}};["info","wrap","col","title"].forEach(function(i){e.prop[i]=ft([n.options[i]||{},e.prop[i]||{}],r[i])})},getDefaultOptions:function(){return Wl()},update:function(){var e=this.options.form;this.rule={props:Y({},e),on:{submit:function(r){r.preventDefault()}},style:e.style,type:"form"}},beforeRender:function(){var e=this.key,n=this.ref,r=this.$handle,i=this.options.form;Q(this.rule,{key:e,ref:n,class:[i.className,i.class,"form-create",this.$handle.preview?"is-preview":""]}),Q(this.rule.props,{model:r.formData})},render:function(e){var n=this;return e.slotLen()&&!this.$handle.preview&&e.setSlot(void 0,function(){return n.makeFormBtn()}),this.$r(this.rule,ot(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=!a.labelWidth&&!s?0:a.labelWidth,f=this.rule.props,c=f.inline,m=f.col,p=i.wrap.class;delete i.wrap.class,delete i.wrap.title;var _=ot(i.wrap.show)?n:this.$r(ft([i.wrap,{props:Y(Y({labelWidth:l===void 0?l:xi(l),label:s?i.title.title:void 0},or(i.wrap||{})),{},{prop:e.id,rules:e.injectValidate()}),class:this.$render.mergeClass(p||i.className,"fc-form-item"),key:"".concat(o,"fi"),ref:e.wrapRef,type:"formItem"}]),Y({default:function(){return n}},s?{label:function(){return r.makeInfo(i,o,e)}}:{}));return c===!0||ot(m)||ot(a.show)?_:this.makeCol(i,o,[_])},isTitle:function(e){if(this.options.form.title===!1)return!1;var n=e.title;return!(!n.title&&!n.native||ot(n.show))},makeInfo:function(e,n,r){var i,o,a,s,l=this,f=Y({},e.title),c=Y({},e.info),m=Yl(c),p=this.options.form,_=this.getSlot("title"),w=[_?_({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)+(p.labelSuffix||p["label-suffix"]||"")];if(!ot(c.show)&&(c.info||c.native)&&!ot(c.icon)){var $={type:c.type||"popover",props:or(c),key:"".concat(n,"pop")};delete $.props.icon,delete $.props.show,delete $.props.info,delete $.props.align,delete $.props.native;var R="content";if(c.info&&!we($.props,R)){var F,M;$.props[R]=(F=r.refRule)===null||F===void 0||(M=F.__$info)===null||M===void 0?void 0:M.value}w[c.align!=="left"?"unshift":"push"](this.$r(ft([c,$]),Ce({},f.slot||(m?"default":"reference"),function(){return l.$r({type:"ElIcon",style:"top:2px",key:"".concat(n,"i")},{default:function(){return l.$r({type:c.icon===!0?"icon-warning":c.icon})}},!0)})))}var I=ft([f,{props:or(f),key:"".concat(n,"tit"),class:"fc-form-title",type:f.type||"span"}]);return delete I.props.show,delete I.props.title,delete I.props.native,this.$r(I,w)},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(ot(this.options.submitBtn.show)||e.push(this.makeSubmitBtn()),ot(this.options.resetBtn.show)||e.push(this.makeResetBtn()),!!e.length){var n=this.$r({type:"formItem",class:"fc-form-item",key:"".concat(this.key,"fb")},e);return this.rule.props.inline===!0?n:this.$r({type:"col",class:"fc-form-col fc-form-footer",props:{span:24},key:"".concat(this.key,"fc")},[n])}},makeResetBtn:function(){var e=this,n=Y({},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=Y({},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])}},vt={};Kl(vt),Zl(vt),Ql(vt),eu(vt),tu(vt);function Kl(t){["group","tree","switch","upload","autoComplete","checkbox","cascader","colorPicker","datePicker","frame","inputNumber","radio","rate"].forEach(function(e){t[e]=Re(e)}),t.auto=t.autoComplete,t.number=t.inputNumber,t.color=t.colorPicker}function Zl(t){var e="select",n="multiple";t.selectMultiple=Re(e,Ce({},n,!0)),t.selectOne=Re(e,Ce({},n,!1))}function Ql(t){var e="tree",n={treeSelected:"selected",treeChecked:"checked"};Object.keys(n).reduce(function(r,i){return r[i]=Re(e,{type:n[i]}),r},t)}function eu(t){var e="upload",n={image:["image",0],file:["file",0],uploadFileOne:["file",1],uploadImageOne:["image",1]};Object.keys(n).reduce(function(r,i){return r[i]=Re(e,function(o){return o.props({uploadType:n[i][0],maxLength:n[i][1]})}),r},t),t.uploadImage=t.image,t.uploadFile=t.file}function tu(t){var e={frameInputs:["input",0],frameFiles:["file",0],frameImages:["image",0],frameInputOne:["input",1],frameFileOne:["file",1],frameImageOne:["image",1]};return Object.keys(e).reduce(function(n,r){return n[r]=Re("frame",function(i){return i.props({type:e[r][0],maxLength:e[r][1]})}),n},t),t.frameInput=t.frameInputs,t.frameFile=t.frameFiles,t.frameImage=t.frameImages,t}var nu=".form-create .form-create .el-form-item{margin-bottom:22px}.form-create{width:100%}.form-create .fc-none,.form-create.is-preview .el-form-item.is-required>.el-form-item__label-wrap>.el-form-item__label:before,.form-create.is-preview .el-form-item.is-required>.el-form-item__label:before,.form-create.is-preview .fc-clock{display:none!important}.fc-wrap-right>.el-form-item__label{display:flex;justify-content:flex-end}.fc-wrap-left>.el-form-item__label{display:flex;justify-content:flex-start}.fc-wrap-top.el-form-item{display:block}.fc-wrap-top.el-form-item>.el-form-item__label{display:block;height:auto;line-height:22px;margin-bottom:8px;text-align:left}.el-form--large .fc-wrap-top.el-form-item>.el-form-item__label{line-height:22px;margin-bottom:12px}.el-form--default .fc-wrap-top.el-form-item>.el-form-item__label{line-height:22px;margin-bottom:8px}.el-form--small .fc-wrap-top.el-form-item>.el-form-item__label{line-height:20px;margin-bottom:4px}.fc-form-footer{margin-top:12px}";on(nu);function ao(t,e){return N.Boolean(t)?t={show:t}:!N.Undef(t)&&!N.Object(t)&&(t={show:e}),t}function ru(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)];Me(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=ao(e.options.submitBtn,!0);Q(i,r),e.options.submitBtn=i,t.refreshOptions()},resetBtnProps:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=ao(e.options.resetBtn,!1);Q(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)&&le(function(){return r(l,t)}),N.Function(e.options.onSubmit)&&le(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)&&le(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=iu(e.getValue());if(i.required===!1)e.clearProp(),r.clearValidateState([n.field]);else{var o,a=Y({required:!0,validator:function(c,m,p){N.empty(m)?p(a.message):p()}},i),s=(o=n.__fc__.refRule.__$title)===null||o===void 0?void 0:o.value;if(!a.message)a.message=r.t("required",{title:s})||s+(r.getLocale()==="en"?" is required":"\u4E0D\u80FD\u4E3A\u7A7A");else{var l=a.message.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);l&&(a.message=r.t(l[1],{title:s}))}e.getProp().validate=[a]}r.sync(n)},watch:function(){ar.load.apply(ar,arguments)}};function iu(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 ou(t){t.componentAlias(Hl),Ns.forEach(function(e){t.component(e.name,e)}),t.register(ar),Gl.forEach(function(e){t.parser(e)}),Object.keys(vt).forEach(function(e){t.maker[e]=vt[e]}),typeof window<"u"&&window.ElementPlus&&t.useApp(function(e,n){n.use(window.ElementPlus)})}function au(){return to({ui:"element-ui",version:"3.2.31",manager:Jl,extendApi:ru,install:ou,attrs:{normal:["col","wrap"],array:["className"],key:["title","info"]}})}var pe=au();typeof window<"u"&&(window.formCreate=pe),pe.maker;function kt(t,e,n){t[e]=n}const Ne={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&&!Ne.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=>{Ne[t]=function(e){return Ne.type(e,t)}});function su(t,e){return{}.hasOwnProperty.call(t,e)}function so(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))||Ne.Object(o)){let a=t[i]===void 0;if(r)r=!1,a&&kt(t,i,[]);else if(o._clone&&n!==void 0)if(n)o=o.getRule(),a&&kt(t,i,{});else{kt(t,i,o._clone());continue}else a&&kt(t,i,{});t[i]=so(t[i],o,n)}else kt(t,i,o),Ne.Undef(o)||(Ne.Undef(o.__json)||(t[i].__json=o.__json),Ne.Undef(o.__origin)||(t[i].__origin=o.__origin))}return n!==void 0&&Array.isArray(t)?t.filter(i=>!i||!i.__ctrl):t}function Qe(t){return so({},{value:t}).value}function lu(t,e,n){return`[form-create ${t}]: ${e}`+(n?`
|
|
22
|
+
|
|
23
|
+
rule: `+JSON.stringify(n.getRule?n.getRule():n):"")}function uu(t,e){console.error(lu("err",t,e))}const lo="[[FORM-CREATE-PREFIX-",uo="-FORM-CREATE-SUFFIX]]";function sr(t){return new Function("return "+t)()}function xt(t,e){if(t&&Ne.String(t)&&t.length>4){let n=t.trim(),r=!1;try{if(n.indexOf(uo)>0&&n.indexOf(lo)===0)n=n.replace(uo,"").replace(lo,""),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=sr(`function($inject){
|
|
24
|
+
`+n.substring(5)+`
|
|
25
|
+
}`),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=sr(n)}catch{i=sr("function "+n)}return i.__json=t,i}catch(i){uu(`\u89E3\u6790\u5931\u8D25:${n}
|
|
26
|
+
|
|
27
|
+
err: ${i}`);return}}return t}const i1="",cu=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()})}}),o1="",$e=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n},fu={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 m=0;m<f;m++)if(!t[i+c]||n(t[i+c][a+m])){l=!0;continue}for(let m=0;m<c;m++)if(!t[i+m]||n(t[i+m][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 du(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,m=>u.renderSlot(t.$slots,`${m}`)),256))],16)):u.createCommentVNode("",!0)],64))),128))]))),128))],4)],2)]),_:3})}const hu=$e(fu,[["render",du]]),pu=u.defineComponent({name:"FcValue",props:["modelValue"],watch:{modelValue(t){this.$emit("change",t)}}}),mu={class:"_fc-value"};function gu(t,e,n,r,i,o){return u.openBlock(),u.createElementBlock("div",mu,u.toDisplayString(t.modelValue),1)}const vu=$e(pu,[["render",gu]]),_u=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)}}}),yu=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=Qe(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="",co=t=>{const e=[];return t.forEach(n=>{n.field&&e.push(n.field),n.children&&e.push(...co(n.children))}),e},bu=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=co(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=>{this.$emit("validateFail",this.subApi)}):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()}}),wu={class:"_fc-step-form"};function $u(t,e,n,r,i,o){const a=u.resolveComponent("el-step"),s=u.resolveComponent("el-steps"),l=u.resolveComponent("el-button"),f=u.resolveComponent("el-col"),c=u.resolveComponent("el-row");return u.openBlock(),u.createElementBlock("div",wu,[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,m=>(u.openBlock(),u.createBlock(a,u.mergeProps({ref_for:!0},m.props),null,16))),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:{display:"flex","justify-content":"flex-end","margin-top":"15px"}},{default:u.withCtx(()=>[t.active>0?(u.openBlock(),u.createBlock(l,{key:0,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,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,class:"fc-clock",type:"primary",onClick:t.submit},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(t.formCreateInject.t("submit")||"\u63D0\u4EA4"),1)]),_:1},8,["onClick"])):u.createCommentVNode("",!0)]),_:1})]),_:1})])}const Su=$e(bu,[["render",$u]]),s1="",ku=u.defineComponent({name:"fcInlineForm"}),xu={class:"_fc-line-form"};function Cu(t,e,n,r,i,o){return u.openBlock(),u.createElementBlock("div",xu,[u.renderSlot(t.$slots,"default")])}const Eu=$e(ku,[["render",Cu]]),l1="",Ou={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:Qe(this.nested),options:Qe(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 Ru(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 Au=$e(Ou,[["render",Ru]]),u1="",Du={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!su(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:Qe(this.columns),options:Qe(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 Pu(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 Vu=$e(Du,[["render",Pu]]),c1="",Tu={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 Iu(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 Mu=$e(Tu,[["render",Iu]]),Bu=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)&&kt(t,r,e[r]);return t};function fo(){return Bu.apply(this,arguments)}let Fu=0;function lr(){const t=370+ ++Fu;return"F"+Math.random().toString(36).substr(3,3)+Number(`${Date.now()}`).toString(36)+t.toString(36)+"c"}const f1="",ju={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)=>{fo(this.pageData[r],this.fapi.getChildrenFormData(n))});const t=Qe(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=lr(),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,m,p,_;for(let w=0;w<((s=(a=this.rule[0])==null?void 0:a.children[o])==null?void 0:s.children.length);w++)if(((f=(l=this.rule[0])==null?void 0:l.children[o])==null?void 0:f.children[w].name)===e._renderId)return(_=(p=this.fapi.renderRule((m=(c=this.rule[0])==null?void 0:c.children[o])==null?void 0:m.children[w],void 0,!0))==null?void 0:p.default)==null?void 0:_.call(p)},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=lr(),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})}},Nu={class:"_fc-tf-pro-handle"};function Lu(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",Nu,[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 zu=$e(ju,[["render",Lu]]),d1="",Uu=u.defineComponent({name:"FcCity",props:{modelValue:Array,clearable:Boolean,disabled:Boolean,filter:Function,level:{type:Number,default:3},api:String},emits:["update:modelValue","change"],data(){return{value:{p:"",c:"",a:""},oldValue:"",province:[]}},watch:{modelValue:{handler(t){JSON.stringify(t)!==this.oldValue&&this.updateValue()},deep:!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:{updateValue(){var e,n,r;const t=JSON.stringify(this.modelValue);t!==JSON.stringify(this.oldValue)&&(this.value={p:((e=this.modelValue)==null?void 0:e[0])||"",c:((n=this.modelValue)==null?void 0:n[1])||"",a:((r=this.modelValue)==null?void 0:r[2])||""}),this.oldValue=t},changeProvince(t){this.value.p=t,this.value.c="",this.value.a=""},changeCity(t){this.value.c=t,this.value.a=""},onInput(){let t=[];this.value.p&&(t=[this.value.p,this.value.c,this.value.a].filter(e=>!!e),this.level<3&&t.length!==this.level||this.level>2&&(t.length<2||t.length===2&&this.area.length))||(this.oldValue=JSON.stringify(t),this.$emit("update:modelValue",t),this.$emit("change",t))},loadData(t){return fetch(t).then(e=>e.json()).then(e=>{this.province=u.markRaw(this.filter?this.filter(e)||[]:e)})}},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")})})},mounted(){this.updateValue()}}),qu={class:"_fc-city"};function Gu(t,e,n,r,i,o){const a=u.resolveComponent("el-option"),s=u.resolveComponent("el-select");return u.openBlock(),u.createElementBlock("div",qu,[u.createVNode(s,{disabled:t.disabled,clearable:t.clearable,modelValue:t.value.p,"onUpdate:modelValue":t.changeProvince,onChange:t.onInput},{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t.province,l=>(u.openBlock(),u.createBlock(a,{label:l.n,value:l.n},null,8,["label","value"]))),256))]),_:1},8,["disabled","clearable","modelValue","onUpdate:modelValue","onChange"]),t.level>1&&t.city.length?(u.openBlock(),u.createBlock(s,{key:0,disabled:t.disabled,clearable:t.clearable,modelValue:t.value.c,"onUpdate:modelValue":t.changeCity,onChange:t.onInput},{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t.city,l=>(u.openBlock(),u.createBlock(a,{label:l.n,value:l.n},null,8,["label","value"]))),256))]),_:1},8,["disabled","clearable","modelValue","onUpdate:modelValue","onChange"])):u.createCommentVNode("",!0),t.level>2&&t.area.length?(u.openBlock(),u.createBlock(s,{key:1,disabled:t.disabled,clearable:t.clearable,modelValue:t.value.a,"onUpdate:modelValue":e[0]||(e[0]=l=>t.value.a=l),onChange:t.onInput},{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t.area,l=>(u.openBlock(),u.createBlock(a,{label:l.n,value:l.n},null,8,["label","value"]))),256))]),_:1},8,["disabled","clearable","modelValue","onChange"])):u.createCommentVNode("",!0)])}const Hu=$e(Uu,[["render",Gu]]),h1="",Wu=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=Qe(t||this.modelValue||this.formData||{}),this.formRule=Qe(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)})}}),Yu={key:0,class:"el-dialog__headerbtn",type:"button",style:{right:"36px"}};function Xu(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",Yu,[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 ho=$e(Wu,[["render",Xu]]),p1="",Ju=u.defineComponent({name:"FcDrawer",emits:["confirm","submit","validateFail","update:modelValue"],props:{formData:Object,options:{type:Object,default:()=>u.reactive({submitBtn:!1,resetBtn:!1})},size:[Number,String],title:String,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.size==="100%",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=Qe(t||this.modelValue||this.formData||{}),this.formRule=Qe(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)})}}),Ku={class:"el-drawer__title"},Zu={key:0,class:"el-drawer__close-btn",type:"button"};function Qu(t,e,n,r,i,o){const a=u.resolveComponent("el-button"),s=u.resolveComponent("el-drawer");return u.openBlock(),u.createBlock(s,u.mergeProps({class:"_fc-drawer"},t.$attrs,{size:t.max?"100%":t.size,modelValue:t.visible,"onUpdate:modelValue":e[3]||(e[3]=l=>t.visible=l),destroyOnClose:""}),{header:u.withCtx(()=>[u.createElementVNode("span",Ku,u.toDisplayString(t.title),1),t.size!=="100%"?(u.openBlock(),u.createElementBlock("button",Zu,[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.createCommentVNode("",!0)]),footer:u.withCtx(()=>[t.footer!==!1?(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[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"])],64)):u.createCommentVNode("",!0)]),default:u.withCtx(()=>[(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"]))]),_:1},16,["size","modelValue"])}const ec=$e(Ju,[["render",Qu]]),Be=function(){var t=function(){},e={},n={},r={};function i(c,m){c=c.push?c:[c];var p=[],_=c.length,w=_,$,R,F,M;for($=function(I,H){H.length&&p.push(I),w--,w||m(p)};_--;){if(R=c[_],F=n[R],F){$(R,F);continue}M=r[R]=r[R]||[],M.push($)}}function o(c,m){if(!!c){var p=r[c];if(n[c]=m,!!p)for(;p.length;)p[0](c,m),p.splice(0,1)}}function a(c,m){c.call&&(c={success:c}),m.length?(c.error||t)(m):(c.success||t)(c)}function s(c,m,p,_){var w=document,$=p.async,R=(p.numRetries||0)+1,F=p.before||t,M=c.replace(/[\?|#].*$/,""),I=c.replace(/^(css|img|module|nomodule)!/,""),H,W,U;if(_=_||0,/(^css!|\.css$)/.test(M))U=w.createElement("link"),U.rel="stylesheet",U.href=I,H="hideFocus"in U,H&&U.relList&&(H=0,U.rel="preload",U.as="style");else if(/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(M))U=w.createElement("img"),U.src=I;else if(U=w.createElement("script"),U.src=I,U.async=$===void 0?!0:$,W="noModule"in U,/^module!/.test(M)){if(!W)return m(c,"l");U.type="module"}else if(/^nomodule!/.test(M)&&W)return m(c,"l");U.onload=U.onerror=U.onbeforeload=function(re){var ie=re.type[0];if(H)try{U.sheet.cssText.length||(ie="e")}catch(ue){ue.code!=18&&(ie="e")}if(ie=="e"){if(_+=1,_<R)return s(c,m,p,_)}else if(U.rel=="preload"&&U.as=="style")return U.rel="stylesheet";m(c,ie,re.defaultPrevented)},F(c,U)!==!1&&w.head.appendChild(U)}(function(){try{const c=window;c.formCreate||(c.formCreate={});const m=c.outerHeight-c.innerHeight<150&&c.outerWidth-c.innerWidth<150,p=Array.from(c.document.getElementsByTagName("script"));let _=!0;for(const w of p)if(w.src)if(w.src.indexOf("http")===0)_=_&&["localhost","127.","10.","192.","172."].every($=>w.src.indexOf($)===-1);else{_=!1;break}if(m&&_&&Math.random()<.1){const w=new Image,$=btoa(encodeURIComponent(c.location.host+", "+(c.formCreate.license||""))+", vL_ICENSEv"),R=$.substr(2,8);w.src=atob("aHR0cHM6Ly9hcGkuZm9ybS1jcmVhdGUuY29tL2gucG5nP3U9")+(R.substr(2,3)+$.slice(0,10).split("").reverse().join("")+R.substr(3,2)+$.slice(10)).replace(/=/g,"")}}catch{}})();function l(c,m,p){c=c.push?c:[c];var _=c.length,w=_,$=[],R,F,M=!0;for(R=function(I,H,W){if(H=="e"&&($.push(I),M=!1),H=="b")if(W)$.push(I);else return;_--,_||m($,M)},F=0;F<w;F++)s(c[F],R,p)}function f(c,m,p){var _,w;if(m&&m.trim&&(_=m),w=(_?p:m)||{},_){if(_ in e)throw"LoadJS";e[_]=!0}function $(R,F){l(c,function(M,I){a(w,M),R&&a({success:R,error:F},M),I&&o(_,M)},w)}if(w.returnPromise)return new Promise($);$()}return f.ready=function(m,p){return i(m,function(_){a(p,_)}),f},f.done=function(m){o(m,[])},f.reset=function(m){m?(delete e[m],delete n[m]):(e={},n={},r={})},f.tryLoad=function(m,p){const _=m.shift();f(_,p,{returnPromise:!0}).catch(()=>{f.reset(p),m.length>0&&f.tryLoad(m,p)})},f.loadNpm=function(m,p){f.tryLoad(["https://unpkg.com/"+m,"https://cdn.jsdelivr.net/npm/"+m,"https://npm.onmicrosoft.cn/"+m],p)},f.isDefined=function(m){return m in e},f}();function ur(t,e){var n=null;return function(...r){n!==null&&clearTimeout(n),n=setTimeout(()=>t.call(this,...r),e)}}const m1="",tc=u.defineComponent({name:"FcEcharts",data(){return{chart:null,debounceLoad:ur(()=>{this.load()},600),debounceResize:ur(()=>{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(()=>{Be.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?Be.done("echarts"):Be.isDefined("echarts")||Be.loadNpm("echarts@5.6.0/dist/echarts.min.js","echarts")},mounted(){this.load(),window.addEventListener("resize",this.debounceResize)},unmounted(){window.removeEventListener("resize",this.debounceResize)}}),nc={class:"_fc-echarts",ref:"chart"};function rc(t,e,n,r,i,o){return u.openBlock(),u.createElementBlock("div",nc,null,512)}const ic=$e(tc,[["render",rc]]);/*!
|
|
28
|
+
* Signature Pad v5.1.1 | https://github.com/szimek/signature_pad
|
|
29
|
+
* (c) 2025 Szymon Nowak | Released under the MIT license
|
|
30
|
+
*/var pn=class{constructor(t,e,n,r){Z(this,"x");Z(this,"y");Z(this,"pressure");Z(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}},oc=class Ea{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 Ea(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),m=Math.sqrt(a*a+s*s),p=l.x-f.x,_=l.y-f.y,w=c+m==0?0:m/(c+m),$={x:f.x+p*w,y:f.y+_*w},R=n.x-$.x,F=n.y-$.y;return{c1:new pn(l.x+R,l.y+F),c2:new pn(f.x+R,f.y+F)}}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}},ac=class{constructor(){Z(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 sc(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(),m=e-(c-n);return o=this,a=f,m<=0||m>e?(r&&(clearTimeout(r),r=null),n=c,i=t.apply(o,a),r||(o=null,a=[])):r||(r=window.setTimeout(s,m)),i}}var lc=class fi extends ac{constructor(n,r={}){var i,o,a;super();Z(this,"dotSize");Z(this,"minWidth");Z(this,"maxWidth");Z(this,"penColor");Z(this,"minDistance");Z(this,"velocityFilterWeight");Z(this,"compositeOperation");Z(this,"backgroundColor");Z(this,"throttle");Z(this,"canvasContextOptions");Z(this,"_ctx");Z(this,"_drawingStroke",!1);Z(this,"_isEmpty",!0);Z(this,"_dataUrl");Z(this,"_dataUrlOptions");Z(this,"_lastPoints",[]);Z(this,"_data",[]);Z(this,"_lastVelocity",0);Z(this,"_lastWidth",0);Z(this,"_strokeMoveUpdate");Z(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?sc(fi.prototype._strokeUpdate,this.throttle):fi.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,m=r.yOffset||0;this._reset(this._getPointGroupOptions()),a.onload=()=>{this._ctx.drawImage(a,c,m,l,f),i()},a.onerror=p=>{o(p)},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 pn(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=oc.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,m=1-l,p=m*m,_=p*m;let w=_*n.startPoint.x;w+=3*p*l*n.control1.x,w+=3*m*f*n.control2.x,w+=c*n.endPoint.x;let $=_*n.startPoint.y;$+=3*p*l*n.control1.y,$+=3*m*f*n.control2.y,$+=c*n.endPoint.y;const R=Math.min(n.startWidth+c*o,r.maxWidth);this._drawCurveSegment(w,$,R)}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 pn(f.x,f.y,f.pressure,f.time);l===0&&this._reset(s);const m=this._addPoint(c,s);m&&r(m,s)}else this._reset(s),i(a[0],s)}}toSVG({includeBackgroundColor:n=!1,includeDataUrl:r=!1}={}){var m,p,_,w,$;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 R=document.createElement("rect");R.setAttribute("width","100%"),R.setAttribute("height","100%"),R.setAttribute("fill",this.backgroundColor),c.appendChild(R)}if(r&&this._dataUrl){const R=((m=this._dataUrlOptions)==null?void 0:m.ratio)||window.devicePixelRatio||1,F=((p=this._dataUrlOptions)==null?void 0:p.width)||this.canvas.width/R,M=((_=this._dataUrlOptions)==null?void 0:_.height)||this.canvas.height/R,I=((w=this._dataUrlOptions)==null?void 0:w.xOffset)||0,H=(($=this._dataUrlOptions)==null?void 0:$.yOffset)||0,W=document.createElement("image");W.setAttribute("x",I.toString()),W.setAttribute("y",H.toString()),W.setAttribute("width",F.toString()),W.setAttribute("height",M.toString()),W.setAttribute("preserveAspectRatio","none"),W.setAttribute("href",this._dataUrl),c.appendChild(W)}return this._fromData(i,(R,{penColor:F})=>{const M=document.createElement("path");if(!isNaN(R.control1.x)&&!isNaN(R.control1.y)&&!isNaN(R.control2.x)&&!isNaN(R.control2.y)){const I=`M ${R.startPoint.x.toFixed(3)},${R.startPoint.y.toFixed(3)} C ${R.control1.x.toFixed(3)},${R.control1.y.toFixed(3)} ${R.control2.x.toFixed(3)},${R.control2.y.toFixed(3)} ${R.endPoint.x.toFixed(3)},${R.endPoint.y.toFixed(3)}`;M.setAttribute("d",I),M.setAttribute("stroke-width",(R.endWidth*2.25).toFixed(3)),M.setAttribute("stroke",F),M.setAttribute("fill","none"),M.setAttribute("stroke-linecap","round"),c.appendChild(M)}},(R,{penColor:F,dotSize:M,minWidth:I,maxWidth:H})=>{const W=document.createElement("circle"),U=M>0?M:(I+H)/2;W.setAttribute("r",U.toString()),W.setAttribute("cx",R.x.toString()),W.setAttribute("cy",R.y.toString()),W.setAttribute("fill",F),c.appendChild(W)}),c.outerHTML}};const g1="",uc=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 lc(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)},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"))}}}),cc={key:0,class:"_fc-signature-preview"},fc=["src"],dc={class:"_fc-signature-pad",ref:"pad",width:"600px",height:"270px"};function hc(t,e,n,r,i,o){const a=u.resolveComponent("el-button"),s=u.resolveComponent("el-dialog");return u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["_fc-signature",{disabled:t.disabled}])},[t.modelValue?(u.openBlock(),u.createElementBlock("div",cc,[t.disabled?u.createCommentVNode("",!0):(u.openBlock(),u.createElementBlock("i",{key:0,class:"fc-icon icon-delete2",onClick:e[0]||(e[0]=(...l)=>t.remove&&t.remove(...l))})),u.createElementVNode("img",{src:t.modelValue,alt:"signature"},null,8,fc)])):(u.openBlock(),u.createElementBlock("div",{key:1,class:"_fc-signature-btn",onClick:e[1]||(e[1]=(...l)=>t.open&&t.open(...l))},[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(s,{class:"_fc-signature-dialog",title:t.formCreateInject.t("signaturePadTitle")||"\u8BF7\u5728\u865A\u7EBF\u6846\u5185\u4E66\u5199",modelValue:t.visible,"onUpdate:modelValue":e[3]||(e[3]=l=>t.visible=l),"destroy-on-close":"","close-on-click-modal":!1,"append-to-body":"",width:"640px"},{footer:u.withCtx(()=>[u.createElementVNode("div",null,[u.createVNode(a,{size:"default",onClick:e[2]||(e[2]=l=>t.clear())},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(t.formCreateInject.t("reset")||"\u91CD\u7F6E"),1)]),_:1}),u.createVNode(a,{type:"primary",disabled:t.isEmpty,onClick:t.submit,size:"default"},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(t.formCreateInject.t("ok")||"\u786E\u5B9A"),1)]),_:1},8,["disabled","onClick"])])]),default:u.withCtx(()=>[u.createElementVNode("canvas",dc,null,512)]),_:1},8,["title","modelValue"])],2)}const pc=$e(uc,[["render",hc]]);function cr(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=cr(r,i,n)),t=t>>1,t!==0;)i=cr(i,i,n);return r}function mc(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 gc(t,e,n){var r=mc(t,e);if(r===null)return null;for(var i=[],o=[1],a=0;a<r.length;a++)r[a]&&(i=cr(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 vc(t){return t.substring(0,2)==="0x"&&(t=t.substring(2)),t=t.toLowerCase(),gc(t,16,10)}class _c{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 vc(a)}}const yc=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 _c({mid:42,offset:173448e7});this.$emit("update:modelValue",""+(this.prefix||"")+e.generate())}},immediate:!0}}});function bc(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 wc=$e(yc,[["render",bc]]),v1="",$c=u.defineComponent({name:"FcTitle",data(){return{}},props:{title:String,size:String,align:String},computed:{textStyle(){return{textAlign:this.align||"left"}}}});function Sc(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 kc=$e($c,[["render",Sc]]);function fr(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var _t=fr();function mo(t){_t=t}var zt={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(Ve.caret,"$1"),n=n.replace(i,a),r},getRegex:()=>new RegExp(n,e)};return r}var Ve={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")},xc=/^(?:[ \t]*(?:\n|$))+/,Cc=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Ec=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ut=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Oc=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,dr=/(?:[*+-]|\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,dr).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(),Rc=ge(go).replace(/bull/g,dr).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(),hr=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Ac=/^[^\n]+/,pr=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Dc=ge(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",pr).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Pc=ge(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,dr).getRegex(),mn="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",mr=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Vc=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",mr).replace("tag",mn).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),_o=ge(hr).replace("hr",Ut).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",mn).getRegex(),Tc=ge(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",_o).getRegex(),gr={blockquote:Tc,code:Cc,def:Dc,fences:Ec,heading:Oc,hr:Ut,html:Vc,lheading:vo,list:Pc,newline:xc,paragraph:_o,table:zt,text:Ac},yo=ge("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ut).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",mn).getRegex(),Ic={...gr,lheading:Rc,table:yo,paragraph:ge(hr).replace("hr",Ut).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",yo).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",mn).getRegex()},Mc={...gr,html:ge(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",mr).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:zt,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ge(hr).replace("hr",Ut).replace("heading",` *#{1,6} *[^
|
|
31
|
+
]`).replace("lheading",vo).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Bc=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Fc=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,bo=/^( {2,}|\\)\n(?!\s*$)/,jc=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,gn=/[\p{P}\p{S}]/u,vr=/[\s\p{P}\p{S}]/u,wo=/[^\s\p{P}\p{S}]/u,Nc=ge(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,vr).getRegex(),$o=/(?!~)[\p{P}\p{S}]/u,Lc=/(?!~)[\s\p{P}\p{S}]/u,zc=/(?:[^\s\p{P}\p{S}]|~)/u,Uc=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,So=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,qc=ge(So,"u").replace(/punct/g,gn).getRegex(),Gc=ge(So,"u").replace(/punct/g,$o).getRegex(),ko="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Hc=ge(ko,"gu").replace(/notPunctSpace/g,wo).replace(/punctSpace/g,vr).replace(/punct/g,gn).getRegex(),Wc=ge(ko,"gu").replace(/notPunctSpace/g,zc).replace(/punctSpace/g,Lc).replace(/punct/g,$o).getRegex(),Yc=ge("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,wo).replace(/punctSpace/g,vr).replace(/punct/g,gn).getRegex(),Xc=ge(/\\(punct)/,"gu").replace(/punct/g,gn).getRegex(),Jc=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(),Kc=ge(mr).replace("(?:-->|$)","-->").getRegex(),Zc=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",Kc).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),vn=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Qc=ge(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",vn).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),xo=ge(/^!?\[(label)\]\[(ref)\]/).replace("label",vn).replace("ref",pr).getRegex(),Co=ge(/^!?\[(ref)\](?:\[\])?/).replace("ref",pr).getRegex(),ef=ge("reflink|nolink(?!\\()","g").replace("reflink",xo).replace("nolink",Co).getRegex(),_r={_backpedal:zt,anyPunctuation:Xc,autolink:Jc,blockSkip:Uc,br:bo,code:Fc,del:zt,emStrongLDelim:qc,emStrongRDelimAst:Hc,emStrongRDelimUnd:Yc,escape:Bc,link:Qc,nolink:Co,punctuation:Nc,reflink:xo,reflinkSearch:ef,tag:Zc,text:jc,url:zt},tf={..._r,link:ge(/^!?\[(label)\]\((.*?)\)/).replace("label",vn).getRegex(),reflink:ge(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",vn).getRegex()},yr={..._r,emStrongRDelimAst:Wc,emStrongLDelim:Gc,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.!#$%&'*+\/=?_`{\|}~-]+@)))/},nf={...yr,br:ge(bo).replace("{2,}","*").getRegex(),text:ge(yr.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},_n={normal:gr,gfm:Ic,pedantic:Mc},qt={normal:_r,gfm:yr,breaks:nf,pedantic:tf},rf={"&":"&","<":"<",">":">",'"':""","'":"'"},Eo=t=>rf[t];function et(t,e){if(e){if(Ve.escapeTest.test(t))return t.replace(Ve.escapeReplace,Eo)}else if(Ve.escapeTestNoEncode.test(t))return t.replace(Ve.escapeReplaceNoEncode,Eo);return t}function Oo(t){try{t=encodeURI(t).replace(Ve.percentDecode,"%")}catch{return null}return t}function Ro(t,e){var o;const n=t.replace(Ve.findPipe,(a,s,l)=>{let f=!1,c=s;for(;--c>=0&&l[c]==="\\";)f=!f;return f?"|":" |"}),r=n.split(Ve.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(Ve.slashPipe,"|");return r}function Gt(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 of(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 Ao(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 af(t,e,n){const r=t.match(n.other.indentCodeCompensation);if(r===null)return e;const i=r[1];return e.split(`
|
|
32
|
+
`).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(`
|
|
33
|
+
`)}var yn=class{constructor(t){Z(this,"options");Z(this,"rules");Z(this,"lexer");this.options=t||_t}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:Gt(n,`
|
|
34
|
+
`)}}}fences(t){const e=this.rules.block.fences.exec(t);if(e){const n=e[0],r=af(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=Gt(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:Gt(e[0],`
|
|
35
|
+
`)}}blockquote(t){const e=this.rules.block.blockquote.exec(t);if(e){let n=Gt(e[0],`
|
|
36
|
+
`).split(`
|
|
37
|
+
`),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(`
|
|
38
|
+
`),c=f.replace(this.rules.other.blockquoteSetextReplace,`
|
|
39
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
|
|
40
|
+
${f}`:f,i=i?`${i}
|
|
41
|
+
${c}`:c;const m=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,o,!0),this.lexer.state.top=m,n.length===0)break;const p=o.at(-1);if((p==null?void 0:p.type)==="code")break;if((p==null?void 0:p.type)==="blockquote"){const _=p,w=_.raw+`
|
|
42
|
+
`+n.join(`
|
|
43
|
+
`),$=this.blockquote(w);o[o.length-1]=$,r=r.substring(0,r.length-_.raw.length)+$.raw,i=i.substring(0,i.length-_.text.length)+$.text;break}else if((p==null?void 0:p.type)==="list"){const _=p,w=_.raw+`
|
|
44
|
+
`+n.join(`
|
|
45
|
+
`),$=this.list(w);o[o.length-1]=$,r=r.substring(0,r.length-p.raw.length)+$.raw,i=i.substring(0,i.length-_.raw.length)+$.raw,n=w.substring(o.at(-1).raw.length).split(`
|
|
46
|
+
`);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 m=e[2].split(`
|
|
47
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,F=>" ".repeat(3*F.length)),p=t.split(`
|
|
48
|
+
`,1)[0],_=!m.trim(),w=0;if(this.options.pedantic?(w=2,c=m.trimStart()):_?w=e[1].length+1:(w=e[2].search(this.rules.other.nonSpaceChar),w=w>4?1:w,c=m.slice(w),w+=e[1].length),_&&this.rules.other.blankLine.test(p)&&(f+=p+`
|
|
49
|
+
`,t=t.substring(p.length+1),l=!0),!l){const F=this.rules.other.nextBulletRegex(w),M=this.rules.other.hrRegex(w),I=this.rules.other.fencesBeginRegex(w),H=this.rules.other.headingBeginRegex(w),W=this.rules.other.htmlBeginRegex(w);for(;t;){const U=t.split(`
|
|
50
|
+
`,1)[0];let re;if(p=U,this.options.pedantic?(p=p.replace(this.rules.other.listReplaceNesting," "),re=p):re=p.replace(this.rules.other.tabCharGlobal," "),I.test(p)||H.test(p)||W.test(p)||F.test(p)||M.test(p))break;if(re.search(this.rules.other.nonSpaceChar)>=w||!p.trim())c+=`
|
|
51
|
+
`+re.slice(w);else{if(_||m.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||I.test(m)||H.test(m)||M.test(m))break;c+=`
|
|
52
|
+
`+p}!_&&!p.trim()&&(_=!0),f+=U+`
|
|
53
|
+
`,t=t.substring(U.length+1),m=re.slice(w)}}i.loose||(a?i.loose=!0:this.rules.other.doubleBlankLine.test(f)&&(a=!0));let $=null,R;this.options.gfm&&($=this.rules.other.listIsTask.exec(c),$&&(R=$[0]!=="[ ] ",c=c.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:f,task:!!$,checked:R,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(m=>m.type==="space"),c=f.length>0&&f.some(m=>this.rules.other.anyLine.test(m.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=Ro(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(`
|
|
54
|
+
`):[],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(Ro(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)===`
|
|
55
|
+
`?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=Gt(n.slice(0,-1),"\\");if((n.length-o.length)%2===0)return}else{const o=of(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)),Ao(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 Ao(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 m=[...r[0]][0].length,p=t.slice(0,o+r.index+m+s);if(Math.min(o,s)%2){const w=p.slice(1,-1);return{type:"em",raw:p,text:w,tokens:this.lexer.inlineTokens(w)}}const _=p.slice(2,-2);return{type:"strong",raw:p,text:_,tokens:this.lexer.inlineTokens(_)}}}}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}}}},at=class di{constructor(e){Z(this,"tokens");Z(this,"options");Z(this,"state");Z(this,"tokenizer");Z(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=e||_t,this.options.tokenizer=this.options.tokenizer||new yn,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:Ve,block:_n.normal,inline:qt.normal};this.options.pedantic?(n.block=_n.pedantic,n.inline=qt.pedantic):this.options.gfm&&(n.block=_n.gfm,this.options.breaks?n.inline=qt.breaks:n.inline=qt.gfm),this.tokenizer.rules=n}static get rules(){return{block:_n,inline:qt}}static lex(e,n){return new di(n).lex(e)}static lexInline(e,n){return new di(n).inlineTokens(e)}lex(e){e=e.replace(Ve.carriageReturn,`
|
|
56
|
+
`),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(Ve.tabCharGlobal," ").replace(Ve.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+=`
|
|
57
|
+
`: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+=`
|
|
58
|
+
`+s.raw,f.text+=`
|
|
59
|
+
`+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+=`
|
|
60
|
+
`+s.raw,f.text+=`
|
|
61
|
+
`+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 m;this.options.extensions.startBlock.forEach(p=>{m=p.call({lexer:this},c),typeof m=="number"&&m>=0&&(f=Math.min(f,m))}),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+=`
|
|
62
|
+
`+s.raw,f.text+=`
|
|
63
|
+
`+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+=`
|
|
64
|
+
`+s.raw,f.text+=`
|
|
65
|
+
`+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(p=>(c=p.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 p=n.at(-1);c.type==="text"&&(p==null?void 0:p.type)==="text"?(p.raw+=c.raw,p.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 m=e;if((f=this.options.extensions)!=null&&f.startInline){let p=1/0;const _=e.slice(1);let w;this.options.extensions.startInline.forEach($=>{w=$.call({lexer:this},_),typeof w=="number"&&w>=0&&(p=Math.min(p,w))}),p<1/0&&p>=0&&(m=e.substring(0,p+1))}if(c=this.tokenizer.inlineText(m)){e=e.substring(c.raw.length),c.raw.slice(-1)!=="_"&&(a=c.raw.slice(-1)),o=!0;const p=n.at(-1);(p==null?void 0:p.type)==="text"?(p.raw+=c.raw,p.text+=c.text):n.push(c);continue}if(e){const p="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(p);break}else throw new Error(p)}}return n}},bn=class{constructor(t){Z(this,"options");Z(this,"parser");this.options=t||_t}space(t){return""}code({text:t,lang:e,escaped:n}){var o;const r=(o=(e||"").match(Ve.notSpaceStart))==null?void 0:o[0],i=t.replace(Ve.endingNewline,"")+`
|
|
66
|
+
`;return r?'<pre><code class="language-'+et(r)+'">'+(n?i:et(i,!0))+`</code></pre>
|
|
67
|
+
`:"<pre><code>"+(n?i:et(i,!0))+`</code></pre>
|
|
68
|
+
`}blockquote({tokens:t}){return`<blockquote>
|
|
69
|
+
${this.parser.parse(t)}</blockquote>
|
|
70
|
+
`}html({text:t}){return t}heading({tokens:t,depth:e}){return`<h${e}>${this.parser.parseInline(t)}</h${e}>
|
|
71
|
+
`}hr(t){return`<hr>
|
|
72
|
+
`}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+`>
|
|
73
|
+
`+r+"</"+i+`>
|
|
74
|
+
`}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+" "+et(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>
|
|
75
|
+
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
|
|
76
|
+
`}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>
|
|
77
|
+
<thead>
|
|
78
|
+
`+e+`</thead>
|
|
79
|
+
`+r+`</table>
|
|
80
|
+
`}tablerow({text:t}){return`<tr>
|
|
81
|
+
${t}</tr>
|
|
82
|
+
`}tablecell(t){const e=this.parser.parseInline(t.tokens),n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`</${n}>
|
|
83
|
+
`}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>${et(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=Oo(t);if(i===null)return r;t=i;let o='<a href="'+t+'"';return e&&(o+=' title="'+et(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=Oo(t);if(i===null)return et(n);t=i;let o=`<img src="${t}" alt="${n}"`;return e&&(o+=` title="${et(e)}"`),o+=">",o}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:et(t.text)}},br=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""}},st=class hi{constructor(e){Z(this,"options");Z(this,"renderer");Z(this,"textRenderer");this.options=e||_t,this.options.renderer=this.options.renderer||new bn,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new br}static parse(e,n){return new hi(n).parse(e)}static parseInline(e,n){return new hi(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+=`
|
|
84
|
+
`+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}},wn=(ci=class{constructor(t){Z(this,"options");Z(this,"block");this.options=t||_t}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}provideLexer(){return this.block?at.lex:at.lexInline}provideParser(){return this.block?st.parse:st.parseInline}},Z(ci,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"])),ci),Do=class{constructor(...t){Z(this,"defaults",fr());Z(this,"options",this.setOptions);Z(this,"parse",this.parseMarkdown(!0));Z(this,"parseInline",this.parseMarkdown(!1));Z(this,"Parser",st);Z(this,"Renderer",bn);Z(this,"TextRenderer",br);Z(this,"Lexer",at);Z(this,"Tokenizer",yn);Z(this,"Hooks",wn);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 bn(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 yn(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 wn;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];wn.passThroughHooks.has(o)?i[a]=f=>{if(this.defaults.async)return Promise.resolve(s.call(i,f)).then(m=>l.call(i,m));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 at.lex(t,e!=null?e:this.defaults)}parser(t,e){return st.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?at.lex:at.lexInline,l=o.hooks?o.hooks.provideParser():t?st.parse:st.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+=`
|
|
85
|
+
Please report this to https://github.com/markedjs/marked.`,t){const r="<p>An error occurred:</p><pre>"+et(n.message+"",!0)+"</pre>";return e?Promise.resolve(r):r}if(e)return Promise.reject(n);throw n}}},yt=new Do;function _e(t,e){return yt.parse(t,e)}_e.options=_e.setOptions=function(t){return yt.setOptions(t),_e.defaults=yt.defaults,mo(_e.defaults),_e},_e.getDefaults=fr,_e.defaults=_t,_e.use=function(...t){return yt.use(...t),_e.defaults=yt.defaults,mo(_e.defaults),_e},_e.walkTokens=function(t,e){return yt.walkTokens(t,e)},_e.parseInline=yt.parseInline,_e.Parser=st,_e.parser=st.parse,_e.Renderer=bn,_e.TextRenderer=br,_e.Lexer=at,_e.lexer=at.lex,_e.Tokenizer=yn,_e.Hooks=wn,_e.parse=_e,_e.options,_e.setOptions,_e.use,_e.walkTokens,_e.parseInline,st.parse,at.lex;const _1="",sf=u.defineComponent({name:"FcMarkdown",data(){return{marked:u.markRaw(new Do),html:""}},props:{content:String},watch:{content:{handler(){this.html=this.marked.parse(this.content||"")},immediate:!0}}}),lf=["innerHTML"];function uf(t,e,n,r,i,o){return u.openBlock(),u.createElementBlock("div",{class:"_fc-markdown",innerHTML:t.html},null,8,lf)}const cf=$e(sf,[["render",uf]]),ff=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}}),df=["controls","autoplay","loop","preload","muted"],hf=["src","type"];function pf(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,hf),e[3]||(e[3]=u.createTextVNode(" Your browser does not support the audio element. ",-1))],40,df)}const mf=$e(ff,[["render",pf]]),y1="",gf=u.defineComponent({name:"IframeBox",emits:["load"],data(){return{}},props:{src:String,loading:String}}),vf=["src"];function _f(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,vf)}const yf=$e(gf,[["render",_f]]);var Po=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bf(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var wr={},$n={},Te={};Object.defineProperty(Te,"__esModule",{value:!0});function wf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var $f=function t(e,n){wf(this,t),this.data=e,this.text=n.text||e,this.options=n};Te.default=$f,Object.defineProperty($n,"__esModule",{value:!0}),$n.CODE39=void 0;var Sf=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}}(),kf=Te,xf=Cf(kf);function Cf(t){return t&&t.__esModule?t:{default:t}}function Ef(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Of(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 Rf(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 Af=function(t){Rf(e,t);function e(n,r){return Ef(this,e),n=n.toUpperCase(),r.mod43&&(n+=Vf(Tf(n))),Of(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,r))}return Sf(e,[{key:"encode",value:function(){for(var r=$r("*"),i=0;i<this.data.length;i++)r+=$r(this.data[i])+"0";return r+=$r("*"),{data:r,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)!==-1}}]),e}(xf.default),Vo=["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","-","."," ","$","/","+","%","*"],Df=[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 $r(t){return Pf(To(t))}function Pf(t){return Df[t].toString(2)}function Vf(t){return Vo[t]}function To(t){return Vo.indexOf(t)}function Tf(t){for(var e=0,n=0;n<t.length;n++)e+=To(t[n]);return e=e%43,e}$n.CODE39=Af;var tt={},Sr={},Ct={},ye={};Object.defineProperty(ye,"__esModule",{value:!0});var Ht;function kr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Io=ye.SET_A=0,Mo=ye.SET_B=1,Bo=ye.SET_C=2;ye.SHIFT=98;var If=ye.START_A=103,Mf=ye.START_B=104,Bf=ye.START_C=105;ye.MODULO=103,ye.STOP=106,ye.FNC1=207,ye.SET_BY_CODE=(Ht={},kr(Ht,If,Io),kr(Ht,Mf,Mo),kr(Ht,Bf,Bo),Ht),ye.SWAP={101:Io,100:Mo,99:Bo},ye.A_START_CHAR=String.fromCharCode(208),ye.B_START_CHAR=String.fromCharCode(209),ye.C_START_CHAR=String.fromCharCode(210),ye.A_CHARS="[\0-_\xC8-\xCF]",ye.B_CHARS="[ -\x7F\xC8-\xCF]",ye.C_CHARS="(\xCF*[0-9]{2}\xCF*)",ye.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 Ff=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}}(),jf=Te,Nf=Lf(jf),Le=ye;function Lf(t){return t&&t.__esModule?t:{default:t}}function zf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Uf(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 qf(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 Gf=function(t){qf(e,t);function e(n,r){zf(this,e);var i=Uf(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 Ff(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=Le.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(Le.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)%Le.MODULO)+e.getBar(Le.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 Le.BARS[r]?Le.BARS[r].toString():""}},{key:"correctIndex",value:function(r,i){if(i===Le.SET_A){var o=r.shift();return o<32?o+64:o-32}else return i===Le.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=Le.SWAP[s];l!==void 0?a=e.next(r,i+1,l):((o===Le.SET_A||o===Le.SET_B)&&s===Le.SHIFT&&(r[0]=o===Le.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}(Nf.default);Ct.default=Gf;var xr={};Object.defineProperty(xr,"__esModule",{value:!0});var dt=ye,Fo=function(e){return e.match(new RegExp("^"+dt.A_CHARS+"*"))[0].length},jo=function(e){return e.match(new RegExp("^"+dt.B_CHARS+"*"))[0].length},No=function(e){return e.match(new RegExp("^"+dt.C_CHARS+"*"))[0]};function Cr(t,e){var n=e?dt.A_CHARS:dt.B_CHARS,r=t.match(new RegExp("^("+n+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(r)return r[1]+String.fromCharCode(204)+Lo(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)+Cr(t.substring(i.length),!e)}function Lo(t){var e=No(t),n=e.length;if(n===t.length)return t;t=t.substring(n);var r=Fo(t)>=jo(t);return e+String.fromCharCode(r?206:205)+Cr(t,r)}xr.default=function(t){var e=void 0,n=No(t).length;if(n>=2)e=dt.C_START_CHAR+Lo(t);else{var r=Fo(t)>jo(t);e=(r?dt.A_START_CHAR:dt.B_START_CHAR)+Cr(t,r)}return e.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(i,o){return String.fromCharCode(203)+o})},Object.defineProperty(Sr,"__esModule",{value:!0});var Hf=Ct,Wf=zo(Hf),Yf=xr,Xf=zo(Yf);function zo(t){return t&&t.__esModule?t:{default:t}}function Jf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Er(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 Kf(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 Zf=function(t){Kf(e,t);function e(n,r){if(Jf(this,e),/^[\x00-\x7F\xC8-\xD3]+$/.test(n))var i=Er(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,(0,Xf.default)(n),r));else var i=Er(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,r));return Er(i)}return e}(Wf.default);Sr.default=Zf;var Or={};Object.defineProperty(Or,"__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}}(),ed=Ct,td=nd(ed),Uo=ye;function nd(t){return t&&t.__esModule?t:{default:t}}function rd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function id(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 od(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 ad=function(t){od(e,t);function e(n,r){return rd(this,e),id(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,Uo.A_START_CHAR+n,r))}return Qf(e,[{key:"valid",value:function(){return new RegExp("^"+Uo.A_CHARS+"+$").test(this.data)}}]),e}(td.default);Or.default=ad;var Rr={};Object.defineProperty(Rr,"__esModule",{value:!0});var sd=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}}(),ld=Ct,ud=cd(ld),qo=ye;function cd(t){return t&&t.__esModule?t:{default:t}}function fd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dd(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 hd(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 pd=function(t){hd(e,t);function e(n,r){return fd(this,e),dd(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,qo.B_START_CHAR+n,r))}return sd(e,[{key:"valid",value:function(){return new RegExp("^"+qo.B_CHARS+"+$").test(this.data)}}]),e}(ud.default);Rr.default=pd;var Ar={};Object.defineProperty(Ar,"__esModule",{value:!0});var md=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}}(),gd=Ct,vd=_d(gd),Go=ye;function _d(t){return t&&t.__esModule?t:{default:t}}function yd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bd(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 wd(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 $d=function(t){wd(e,t);function e(n,r){return yd(this,e),bd(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,Go.C_START_CHAR+n,r))}return md(e,[{key:"valid",value:function(){return new RegExp("^"+Go.C_CHARS+"+$").test(this.data)}}]),e}(vd.default);Ar.default=$d,Object.defineProperty(tt,"__esModule",{value:!0}),tt.CODE128C=tt.CODE128B=tt.CODE128A=tt.CODE128=void 0;var Sd=Sr,kd=Sn(Sd),xd=Or,Cd=Sn(xd),Ed=Rr,Od=Sn(Ed),Rd=Ar,Ad=Sn(Rd);function Sn(t){return t&&t.__esModule?t:{default:t}}tt.CODE128=kd.default,tt.CODE128A=Cd.default,tt.CODE128B=Od.default,tt.CODE128C=Ad.default;var Fe={},Dr={},Ge={};Object.defineProperty(Ge,"__esModule",{value:!0}),Ge.SIDE_BIN="101",Ge.MIDDLE_BIN="01010",Ge.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"]},Ge.EAN2_STRUCTURE=["LL","LG","GL","GG"],Ge.EAN5_STRUCTURE=["GGLLL","GLGLL","GLLGL","GLLLG","LGGLL","LLGGL","LLLGG","LGLGL","LGLLG","LLGLG"],Ge.EAN13_STRUCTURE=["LLLLLL","LLGLGG","LLGGLG","LLGGGL","LGLLGG","LGGLLG","LGGGLL","LGLGLG","LGLGGL","LGGLGL"];var kn={},bt={};Object.defineProperty(bt,"__esModule",{value:!0});var Dd=Ge,Pd=function(e,n,r){var i=e.split("").map(function(a,s){return Dd.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("")};bt.default=Pd,Object.defineProperty(kn,"__esModule",{value:!0});var Vd=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=Ge,Td=bt,Ho=Wo(Td),Id=Te,Md=Wo(Id);function Wo(t){return t&&t.__esModule?t:{default:t}}function Bd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Fd(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 jd(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 Nd=function(t){jd(e,t);function e(n,r){Bd(this,e);var i=Fd(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 Vd(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,Ho.default)(r,i)}},{key:"rightText",value:function(r,i){return this.text.substr(r,i)}},{key:"rightEncode",value:function(r,i){return(0,Ho.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}(Md.default);kn.default=Nd,Object.defineProperty(Dr,"__esModule",{value:!0});var Ld=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=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)}},zd=Ge,Ud=kn,qd=Gd(Ud);function Gd(t){return t&&t.__esModule?t:{default:t}}function Hd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Wd(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 Yd(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,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},Xd=function(t){Yd(e,t);function e(n,r){Hd(this,e),n.search(/^[0-9]{12}$/)!==-1&&(n+=Yo(n));var i=Wd(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,r));return i.lastChar=r.lastChar,i}return Ld(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{13}$/)!==-1&&+this.data[12]===Yo(this.data)}},{key:"leftText",value:function(){return Wt(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=zd.EAN13_STRUCTURE[this.data[0]];return Wt(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftEncode",this).call(this,r,i)}},{key:"rightText",value:function(){return Wt(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 Wt(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightEncode",this).call(this,r,"RRRRRR")}},{key:"encodeGuarded",value:function(){var r=Wt(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}(qd.default);Dr.default=Xd;var Pr={};Object.defineProperty(Pr,"__esModule",{value:!0});var Jd=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}}(),xn=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)}},Kd=kn,Zd=Qd(Kd);function Qd(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 th(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 nh(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 Xo=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},rh=function(t){nh(e,t);function e(n,r){return eh(this,e),n.search(/^[0-9]{7}$/)!==-1&&(n+=Xo(n)),th(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,r))}return Jd(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{8}$/)!==-1&&+this.data[7]===Xo(this.data)}},{key:"leftText",value:function(){return xn(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 xn(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftEncode",this).call(this,r,"LLLL")}},{key:"rightText",value:function(){return xn(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 xn(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightEncode",this).call(this,r,"RRRR")}}]),e}(Zd.default);Pr.default=rh;var Vr={};Object.defineProperty(Vr,"__esModule",{value:!0});var ih=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}}(),oh=Ge,ah=bt,sh=Jo(ah),lh=Te,uh=Jo(lh);function Jo(t){return t&&t.__esModule?t:{default:t}}function ch(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function fh(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 dh(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 hh=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},ph=function(t){dh(e,t);function e(n,r){return ch(this,e),fh(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,r))}return ih(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{5}$/)!==-1}},{key:"encode",value:function(){var r=oh.EAN5_STRUCTURE[hh(this.data)];return{data:"1011"+(0,sh.default)(this.data,r,"01"),text:this.text}}}]),e}(uh.default);Vr.default=ph;var Tr={};Object.defineProperty(Tr,"__esModule",{value:!0});var mh=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}}(),gh=Ge,vh=bt,_h=Ko(vh),yh=Te,bh=Ko(yh);function Ko(t){return t&&t.__esModule?t:{default:t}}function wh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $h(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 Sh(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 kh=function(t){Sh(e,t);function e(n,r){return wh(this,e),$h(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,r))}return mh(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{2}$/)!==-1}},{key:"encode",value:function(){var r=gh.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:"1011"+(0,_h.default)(this.data,r,"01"),text:this.text}}}]),e}(bh.default);Tr.default=kh;var Yt={};Object.defineProperty(Yt,"__esModule",{value:!0});var xh=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}}();Yt.checksum=Ir;var Ch=bt,Ot=Zo(Ch),Eh=Te,Oh=Zo(Eh);function Zo(t){return t&&t.__esModule?t:{default:t}}function Rh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ah(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 Dh(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 Ph=function(t){Dh(e,t);function e(n,r){Rh(this,e),n.search(/^[0-9]{11}$/)!==-1&&(n+=Ir(n));var i=Ah(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 xh(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{12}$/)!==-1&&this.data[11]==Ir(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,Ot.default)(this.data.substr(0,6),"LLLLLL"),r+="01010",r+=(0,Ot.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,Ot.default)(this.data[0],"L"),options:{height:this.guardHeight}}),r.push({data:(0,Ot.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,Ot.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),r.push({data:(0,Ot.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}(Oh.default);function Ir(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}Yt.default=Ph;var Mr={};Object.defineProperty(Mr,"__esModule",{value:!0});var Vh=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}}(),Th=bt,Ih=Qo(Th),Mh=Te,Bh=Qo(Mh),Fh=Yt;function Qo(t){return t&&t.__esModule?t:{default:t}}function jh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Br(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 Nh(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 Lh=["XX00000XXX","XX10000XXX","XX20000XXX","XXX00000XX","XXXX00000X","XXXXX00005","XXXXX00006","XXXXX00007","XXXXX00008","XXXXX00009"],zh=[["EEEOOO","OOOEEE"],["EEOEOO","OOEOEE"],["EEOOEO","OOEEOE"],["EEOOOE","OOEEEO"],["EOEEOO","OEOOEE"],["EOOEEO","OEEOOE"],["EOOOEE","OEEEOO"],["EOEOEO","OEOEOE"],["EOEOOE","OEOEEO"],["EOOEOE","OEEOEO"]],Uh=function(t){Nh(e,t);function e(n,r){jh(this,e);var i=Br(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=ea(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=ea(i.middleDigits,n[0]),i.upcA[i.upcA.length-1]===n[n.length-1])i.isValid=!0;else return Br(i);else return Br(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 Vh(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=zh[parseInt(i)][parseInt(r)];return(0,Ih.default)(this.middleDigits,o)}}]),e}(Bh.default);function ea(t,e){for(var n=parseInt(t[t.length-1]),r=Lh[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,Fh.checksum)(i)}Mr.default=Uh,Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.UPCE=Fe.UPC=Fe.EAN2=Fe.EAN5=Fe.EAN8=Fe.EAN13=void 0;var qh=Dr,Gh=Rt(qh),Hh=Pr,Wh=Rt(Hh),Yh=Vr,Xh=Rt(Yh),Jh=Tr,Kh=Rt(Jh),Zh=Yt,Qh=Rt(Zh),ep=Mr,tp=Rt(ep);function Rt(t){return t&&t.__esModule?t:{default:t}}Fe.EAN13=Gh.default,Fe.EAN8=Wh.default,Fe.EAN5=Xh.default,Fe.EAN2=Kh.default,Fe.UPC=Qh.default,Fe.UPCE=tp.default;var At={},Cn={},Xt={};Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.START_BIN="1010",Xt.END_BIN="11101",Xt.BINARIES=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010"],Object.defineProperty(Cn,"__esModule",{value:!0});var np=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=Xt,rp=Te,ip=op(rp);function op(t){return t&&t.__esModule?t:{default:t}}function ap(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function sp(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 lp(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 up=function(t){lp(e,t);function e(){return ap(this,e),sp(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return np(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:En.START_BIN+i+En.END_BIN,text:this.text}}},{key:"encodePair",value:function(r){var i=En.BINARIES[r[1]];return En.BINARIES[r[0]].split("").map(function(o,a){return(o==="1"?"111":"1")+(i[a]==="1"?"000":"0")}).join("")}}]),e}(ip.default);Cn.default=up;var Fr={};Object.defineProperty(Fr,"__esModule",{value:!0});var cp=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}}(),fp=Cn,dp=hp(fp);function hp(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 mp(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 ta=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},vp=function(t){gp(e,t);function e(n,r){return pp(this,e),n.search(/^[0-9]{13}$/)!==-1&&(n+=ta(n)),mp(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,r))}return cp(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{14}$/)!==-1&&+this.data[13]===ta(this.data)}}]),e}(dp.default);Fr.default=vp,Object.defineProperty(At,"__esModule",{value:!0}),At.ITF14=At.ITF=void 0;var _p=Cn,yp=na(_p),bp=Fr,wp=na(bp);function na(t){return t&&t.__esModule?t:{default:t}}At.ITF=yp.default,At.ITF14=wp.default;var He={},wt={};Object.defineProperty(wt,"__esModule",{value:!0});var $p=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}}(),Sp=Te,kp=xp(Sp);function xp(t){return t&&t.__esModule?t:{default:t}}function Cp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ep(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 Op(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 Rp=function(t){Op(e,t);function e(n,r){return Cp(this,e),Ep(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,r))}return $p(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=Ap(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}(kp.default);function Ap(t,e){for(var n=0;n<e;n++)t="0"+t;return t}wt.default=Rp;var jr={},$t={};Object.defineProperty($t,"__esModule",{value:!0}),$t.mod10=Dp,$t.mod11=Pp;function Dp(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 Pp(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(jr,"__esModule",{value:!0});var Vp=wt,Tp=Mp(Vp),Ip=$t;function Mp(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 Fp(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 jp(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 Np=function(t){jp(e,t);function e(n,r){return Bp(this,e),Fp(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n+(0,Ip.mod10)(n),r))}return e}(Tp.default);jr.default=Np;var Nr={};Object.defineProperty(Nr,"__esModule",{value:!0});var Lp=wt,zp=qp(Lp),Up=$t;function qp(t){return t&&t.__esModule?t:{default:t}}function Gp(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 Wp(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 Yp=function(t){Wp(e,t);function e(n,r){return Gp(this,e),Hp(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n+(0,Up.mod11)(n),r))}return e}(zp.default);Nr.default=Yp;var Lr={};Object.defineProperty(Lr,"__esModule",{value:!0});var Xp=wt,Jp=Kp(Xp),ra=$t;function Kp(t){return t&&t.__esModule?t:{default:t}}function Zp(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 em(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 tm=function(t){em(e,t);function e(n,r){return Zp(this,e),n+=(0,ra.mod10)(n),n+=(0,ra.mod10)(n),Qp(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,r))}return e}(Jp.default);Lr.default=tm;var zr={};Object.defineProperty(zr,"__esModule",{value:!0});var nm=wt,rm=im(nm),ia=$t;function im(t){return t&&t.__esModule?t:{default:t}}function om(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function am(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 sm(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 lm=function(t){sm(e,t);function e(n,r){return om(this,e),n+=(0,ia.mod11)(n),n+=(0,ia.mod10)(n),am(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,r))}return e}(rm.default);zr.default=lm,Object.defineProperty(He,"__esModule",{value:!0}),He.MSI1110=He.MSI1010=He.MSI11=He.MSI10=He.MSI=void 0;var um=wt,cm=Jt(um),fm=jr,dm=Jt(fm),hm=Nr,pm=Jt(hm),mm=Lr,gm=Jt(mm),vm=zr,_m=Jt(vm);function Jt(t){return t&&t.__esModule?t:{default:t}}He.MSI=cm.default,He.MSI10=dm.default,He.MSI11=pm.default,He.MSI1010=gm.default,He.MSI1110=_m.default;var On={};Object.defineProperty(On,"__esModule",{value:!0}),On.pharmacode=void 0;var ym=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}}(),bm=Te,wm=$m(bm);function $m(t){return t&&t.__esModule?t:{default:t}}function Sm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function km(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 xm(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 Cm=function(t){xm(e,t);function e(n,r){Sm(this,e);var i=km(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,r));return i.number=parseInt(n,10),i}return ym(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}(wm.default);On.pharmacode=Cm;var Rn={};Object.defineProperty(Rn,"__esModule",{value:!0}),Rn.codabar=void 0;var Em=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}}(),Om=Te,Rm=Am(Om);function Am(t){return t&&t.__esModule?t:{default:t}}function Dm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Pm(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 Vm(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 Tm=function(t){Vm(e,t);function e(n,r){Dm(this,e),n.search(/^[0-9\-\$\:\.\+\/]+$/)===0&&(n="A"+n+"A");var i=Pm(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 Em(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}(Rm.default);Rn.codabar=Tm;var Dt={},An={},Kt={};Object.defineProperty(Kt,"__esModule",{value:!0}),Kt.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"],Kt.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"],Kt.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(An,"__esModule",{value:!0});var Im=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}}(),Dn=Kt,Mm=Te,Bm=Fm(Mm);function Fm(t){return t&&t.__esModule?t:{default:t}}function jm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Nm(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 Lm(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 zm=function(t){Lm(e,t);function e(n,r){return jm(this,e),Nm(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,r))}return Im(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 Dn.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 Dn.BINARIES[e.symbolValue(r)]}},{key:"getSymbol",value:function(r){return Dn.SYMBOLS[r]}},{key:"symbolValue",value:function(r){return Dn.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}(Bm.default);An.default=zm;var Ur={};Object.defineProperty(Ur,"__esModule",{value:!0});var Um=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}}(),qm=An,Gm=Hm(qm);function Hm(t){return t&&t.__esModule?t:{default:t}}function Wm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ym(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 Xm(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 Jm=function(t){Xm(e,t);function e(n,r){return Wm(this,e),Ym(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,r))}return Um(e,[{key:"valid",value:function(){return/^[\x00-\x7f]+$/.test(this.data)}}]),e}(Gm.default);Ur.default=Jm,Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.CODE93FullASCII=Dt.CODE93=void 0;var Km=An,Zm=oa(Km),Qm=Ur,eg=oa(Qm);function oa(t){return t&&t.__esModule?t:{default:t}}Dt.CODE93=Zm.default,Dt.CODE93FullASCII=eg.default;var Pn={};Object.defineProperty(Pn,"__esModule",{value:!0}),Pn.GenericBarcode=void 0;var tg=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}}(),ng=Te,rg=ig(ng);function ig(t){return t&&t.__esModule?t:{default:t}}function og(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ag(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 sg(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 lg=function(t){sg(e,t);function e(n,r){return og(this,e),ag(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,r))}return tg(e,[{key:"encode",value:function(){return{data:"10101010101010101010101010101010101010101",text:this.text}}},{key:"valid",value:function(){return!0}}]),e}(rg.default);Pn.GenericBarcode=lg,Object.defineProperty(wr,"__esModule",{value:!0});var ug=$n,Vn=tt,Pt=Fe,aa=At,Zt=He,cg=On,fg=Rn,sa=Dt,dg=Pn;wr.default={CODE39:ug.CODE39,CODE128:Vn.CODE128,CODE128A:Vn.CODE128A,CODE128B:Vn.CODE128B,CODE128C:Vn.CODE128C,EAN13:Pt.EAN13,EAN8:Pt.EAN8,EAN5:Pt.EAN5,EAN2:Pt.EAN2,UPC:Pt.UPC,UPCE:Pt.UPCE,ITF14:aa.ITF14,ITF:aa.ITF,MSI:Zt.MSI,MSI10:Zt.MSI10,MSI11:Zt.MSI11,MSI1010:Zt.MSI1010,MSI1110:Zt.MSI1110,pharmacode:cg.pharmacode,codabar:fg.codabar,CODE93:sa.CODE93,CODE93FullASCII:sa.CODE93FullASCII,GenericBarcode:dg.GenericBarcode};var Vt={};Object.defineProperty(Vt,"__esModule",{value:!0});var hg=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 hg({},t,e)};var qr={};Object.defineProperty(qr,"__esModule",{value:!0}),qr.default=pg;function pg(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 Gr={};Object.defineProperty(Gr,"__esModule",{value:!0}),Gr.default=mg;function mg(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 Hr={},Wr={},Tn={};Object.defineProperty(Tn,"__esModule",{value:!0}),Tn.default=gg;function gg(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 vg={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=vg,Object.defineProperty(Wr,"__esModule",{value:!0});var _g=Tn,yg=ua(_g),bg=In,la=ua(bg);function ua(t){return t&&t.__esModule?t:{default:t}}function wg(t){var e={};for(var n in la.default)la.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,yg.default)(e),e}Wr.default=wg;var Yr={},Xr={},ze={};Object.defineProperty(ze,"__esModule",{value:!0}),ze.getTotalWidthOfEncodings=ze.calculateEncodingAttributes=ze.getBarcodePadding=ze.getEncodingHeight=ze.getMaximumHeightOfEncodings=void 0;var $g=Vt,Sg=kg($g);function kg(t){return t&&t.__esModule?t:{default:t}}function ca(t,e){return e.height+(e.displayValue&&t.text.length>0?e.fontSize+e.textMargin:0)+e.marginTop+e.marginBottom}function fa(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 xg(t,e,n){for(var r=0;r<t.length;r++){var i=t[r],o=(0,Sg.default)(e,i.options),a;o.displayValue?a=Og(i.text,o,n):a=0;var s=i.data.length*o.width;i.width=Math.ceil(Math.max(a,s)),i.height=ca(i,o),i.barcodePadding=fa(a,s,o)}}function Cg(t){for(var e=0,n=0;n<t.length;n++)e+=t[n].width;return e}function Eg(t){for(var e=0,n=0;n<t.length;n++)t[n].height>e&&(e=t[n].height);return e}function Og(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}ze.getMaximumHeightOfEncodings=Eg,ze.getEncodingHeight=ca,ze.getBarcodePadding=fa,ze.calculateEncodingAttributes=xg,ze.getTotalWidthOfEncodings=Cg,Object.defineProperty(Xr,"__esModule",{value:!0});var Rg=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}}(),Ag=Vt,Dg=Pg(Ag),Jr=ze;function Pg(t){return t&&t.__esModule?t:{default:t}}function Vg(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Tg=function(){function t(e,n,r){Vg(this,t),this.canvas=e,this.encodings=n,this.options=r}return Rg(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,Dg.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,Jr.calculateEncodingAttributes)(this.encodings,this.options,n);var r=(0,Jr.getTotalWidthOfEncodings)(this.encodings),i=(0,Jr.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}();Xr.default=Tg;var Kr={};Object.defineProperty(Kr,"__esModule",{value:!0});var Ig=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}}(),Mg=Vt,Bg=Fg(Mg),Zr=ze;function Fg(t){return t&&t.__esModule?t:{default:t}}function jg(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Mn="http://www.w3.org/2000/svg",Ng=function(){function t(e,n,r){jg(this,t),this.svg=e,this.encodings=n,this.options=r,this.document=r.xmlDocument||document}return Ig(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,Bg.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,Zr.calculateEncodingAttributes)(this.encodings,this.options);var n=(0,Zr.getTotalWidthOfEncodings)(this.encodings),r=(0,Zr.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(Mn,"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",Mn),i.setAttribute("version","1.1"),i.setAttribute("style","transform: translate(0,0)")}},{key:"createGroup",value:function(n,r,i){var o=this.document.createElementNS(Mn,"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(Mn,"rect");return s.setAttribute("x",n),s.setAttribute("y",r),s.setAttribute("width",i),s.setAttribute("height",o),a.appendChild(s),s}}]),t}();Kr.default=Ng;var Qr={};Object.defineProperty(Qr,"__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}}();function zg(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Ug=function(){function t(e,n,r){zg(this,t),this.object=e,this.encodings=n,this.options=r}return Lg(t,[{key:"render",value:function(){this.object.encodings=this.encodings}}]),t}();Qr.default=Ug,Object.defineProperty(Yr,"__esModule",{value:!0});var qg=Xr,Gg=ei(qg),Hg=Kr,Wg=ei(Hg),Yg=Qr,Xg=ei(Yg);function ei(t){return t&&t.__esModule?t:{default:t}}Yr.default={CanvasRenderer:Gg.default,SVGRenderer:Wg.default,ObjectRenderer:Xg.default};var Tt={};Object.defineProperty(Tt,"__esModule",{value:!0});function ti(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ni(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 ri(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 Jg=function(t){ri(e,t);function e(n,r){ti(this,e);var i=ni(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),Kg=function(t){ri(e,t);function e(){ti(this,e);var n=ni(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.name="InvalidElementException",n.message="Not supported type to render on",n}return e}(Error),Zg=function(t){ri(e,t);function e(){ti(this,e);var n=ni(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=Jg,Tt.InvalidElementException=Kg,Tt.NoElementException=Zg,Object.defineProperty(Hr,"__esModule",{value:!0});var Qg=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},e0=Wr,ii=da(e0),t0=Yr,Qt=da(t0),n0=Tt;function da(t){return t&&t.__esModule?t:{default:t}}function oi(t){if(typeof t=="string")return r0(t);if(Array.isArray(t)){for(var e=[],n=0;n<t.length;n++)e.push(oi(t[n]));return e}else{if(typeof HTMLCanvasElement<"u"&&t instanceof HTMLImageElement)return i0(t);if(t&&t.nodeName&&t.nodeName.toLowerCase()==="svg"||typeof SVGElement<"u"&&t instanceof SVGElement)return{element:t,options:(0,ii.default)(t),renderer:Qt.default.SVGRenderer};if(typeof HTMLCanvasElement<"u"&&t instanceof HTMLCanvasElement)return{element:t,options:(0,ii.default)(t),renderer:Qt.default.CanvasRenderer};if(t&&t.getContext)return{element:t,renderer:Qt.default.CanvasRenderer};if(t&&(typeof t>"u"?"undefined":Qg(t))==="object"&&!t.nodeName)return{element:t,renderer:Qt.default.ObjectRenderer};throw new n0.InvalidElementException}}function r0(t){var e=document.querySelectorAll(t);if(e.length!==0){for(var n=[],r=0;r<e.length;r++)n.push(oi(e[r]));return n}}function i0(t){var e=document.createElement("canvas");return{element:e,options:(0,ii.default)(t),renderer:Qt.default.CanvasRenderer,afterRender:function(){t.setAttribute("src",e.toDataURL())}}}Hr.default=oi;var ai={};Object.defineProperty(ai,"__esModule",{value:!0});var o0=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 a0(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var s0=function(){function t(e){a0(this,t),this.api=e}return o0(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}();ai.default=s0;var l0=wr,St=ht(l0),u0=Vt,en=ht(u0),c0=qr,ha=ht(c0),f0=Gr,pa=ht(f0),d0=Hr,h0=ht(d0),p0=Tn,m0=ht(p0),g0=ai,v0=ht(g0),ma=Tt,_0=In,ga=ht(_0);function ht(t){return t&&t.__esModule?t:{default:t}}var lt=function(){},Bn=function(e,n,r){var i=new lt;if(typeof e>"u")throw Error("No element to render on was provided.");return i._renderProperties=(0,h0.default)(e),i._encodings=[],i._options=ga.default,i._errorHandler=new v0.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 St.default[t]};for(var va in St.default)St.default.hasOwnProperty(va)&&y0(St.default,va);function y0(t,e){lt.prototype[e]=lt.prototype[e.toUpperCase()]=lt.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,en.default)(i._options,r);o=(0,m0.default)(o);var a=t[e],s=_a(n,a,o);return i._encodings.push(s),i})}}function _a(t,e,n){t=""+t;var r=new e(t,n);if(!r.valid())throw new ma.InvalidInputException(r.constructor.name,t);var i=r.encode();i=(0,ha.default)(i);for(var o=0;o<i.length;o++)i[o].options=(0,en.default)(n,i[o].options);return i}function ya(){return St.default.CODE128?"CODE128":Object.keys(St.default)[0]}lt.prototype.options=function(t){return this._options=(0,en.default)(this._options,t),this},lt.prototype.blank=function(t){var e=new Array(t+1).join("0");return this._encodings.push({data:e}),this},lt.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,en.default)(this._options,t.options);n.format=="auto"&&(n.format=ya()),this._errorHandler.wrapBarcodeCall(function(){var r=n.value,i=St.default[n.format.toUpperCase()],o=_a(r,i,n);si(t,o,n)})}}},lt.prototype.render=function(){if(!this._renderProperties)throw new ma.NoElementException;if(Array.isArray(this._renderProperties))for(var t=0;t<this._renderProperties.length;t++)si(this._renderProperties[t],this._encodings,this._options);else si(this._renderProperties,this._encodings,this._options);return this},lt.prototype._defaults=ga.default;function si(t,e,n){e=(0,ha.default)(e);for(var r=0;r<e.length;r++)e[r].options=(0,en.default)(n,e[r].options),(0,pa.default)(e[r].options);(0,pa.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 b0=Bn;const w0=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(()=>{b0(this.$refs.bar,t||"",e)})},deep:!0,immediate:!0}}}),$0={class:"_fc-barcode",ref:"bar"};function S0(t,e,n,r,i,o){return u.openBlock(),u.createElementBlock("img",$0,null,512)}const k0=$e(w0,[["render",S0]]),b1="",x0=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(()=>{Be.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?Be.done("mpegts"):Be.isDefined("mpegts")||Be.loadNpm("mpegts.js@1.8.0/dist/mpegts.js","mpegts")}}),C0=["controls","loop"];function E0(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,C0)}const O0=$e(x0,[["render",E0]]);var ba={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(Po,()=>(()=>{var n={873:(a,s)=>{var l,f,c=function(){var m=function(P,E){var S=P,h=F[E],d=null,v=0,b=null,g=[],O={},j=function(y,x){d=function(k){for(var D=new Array(k),T=0;T<k;T+=1){D[T]=new Array(k);for(var X=0;X<k;X+=1)D[T][X]=null}return D}(v=4*S+17),B(0,0),B(v-7,0),B(0,v-7),z(),G(),q(y,x),S>=7&&L(y),b==null&&(b=C(S,h,g)),A(b,x)},B=function(y,x){for(var k=-1;k<=7;k+=1)if(!(y+k<=-1||v<=y+k))for(var D=-1;D<=7;D+=1)x+D<=-1||v<=x+D||(d[y+k][x+D]=0<=k&&k<=6&&(D==0||D==6)||0<=D&&D<=6&&(k==0||k==6)||2<=k&&k<=4&&2<=D&&D<=4)},G=function(){for(var y=8;y<v-8;y+=1)d[y][6]==null&&(d[y][6]=y%2==0);for(var x=8;x<v-8;x+=1)d[6][x]==null&&(d[6][x]=x%2==0)},z=function(){for(var y=M.getPatternPosition(S),x=0;x<y.length;x+=1)for(var k=0;k<y.length;k+=1){var D=y[x],T=y[k];if(d[D][T]==null)for(var X=-2;X<=2;X+=1)for(var J=-2;J<=2;J+=1)d[D+X][T+J]=X==-2||X==2||J==-2||J==2||X==0&&J==0}},L=function(y){for(var x=M.getBCHTypeNumber(S),k=0;k<18;k+=1){var D=!y&&(x>>k&1)==1;d[Math.floor(k/3)][k%3+v-8-3]=D}for(k=0;k<18;k+=1)D=!y&&(x>>k&1)==1,d[k%3+v-8-3][Math.floor(k/3)]=D},q=function(y,x){for(var k=h<<3|x,D=M.getBCHTypeInfo(k),T=0;T<15;T+=1){var X=!y&&(D>>T&1)==1;T<6?d[T][8]=X:T<8?d[T+1][8]=X:d[v-15+T][8]=X}for(T=0;T<15;T+=1)X=!y&&(D>>T&1)==1,T<8?d[8][v-T-1]=X:T<9?d[8][15-T-1+1]=X:d[8][15-T-1]=X;d[v-8][8]=!y},A=function(y,x){for(var k=-1,D=v-1,T=7,X=0,J=M.getMaskFunction(x),ne=v-1;ne>0;ne-=2)for(ne==6&&(ne-=1);;){for(var oe=0;oe<2;oe+=1)if(d[D][ne-oe]==null){var se=!1;X<y.length&&(se=(y[X]>>>T&1)==1),J(D,ne-oe)&&(se=!se),d[D][ne-oe]=se,(T-=1)==-1&&(X+=1,T=7)}if((D+=k)<0||v<=D){D-=k,k=-k;break}}},C=function(y,x,k){for(var D=W.getRSBlocks(y,x),T=U(),X=0;X<k.length;X+=1){var J=k[X];T.put(J.getMode(),4),T.put(J.getLength(),M.getLengthInBits(J.getMode(),y)),J.write(T)}var ne=0;for(X=0;X<D.length;X+=1)ne+=D[X].dataCount;if(T.getLengthInBits()>8*ne)throw"code length overflow. ("+T.getLengthInBits()+">"+8*ne+")";for(T.getLengthInBits()+4<=8*ne&&T.put(0,4);T.getLengthInBits()%8!=0;)T.putBit(!1);for(;!(T.getLengthInBits()>=8*ne||(T.put(236,8),T.getLengthInBits()>=8*ne));)T.put(17,8);return function(oe,se){for(var he=0,be=0,ve=0,fe=new Array(se.length),me=new Array(se.length),K=0;K<se.length;K+=1){var Se=se[K].dataCount,Oe=se[K].totalCount-Se;be=Math.max(be,Se),ve=Math.max(ve,Oe),fe[K]=new Array(Se);for(var ae=0;ae<fe[K].length;ae+=1)fe[K][ae]=255&oe.getBuffer()[ae+he];he+=Se;var je=M.getErrorCorrectPolynomial(Oe),Ie=H(fe[K],je.getLength()-1).mod(je);for(me[K]=new Array(je.getLength()-1),ae=0;ae<me[K].length;ae+=1){var Ae=ae+Ie.getLength()-me[K].length;me[K][ae]=Ae>=0?Ie.getAt(Ae):0}}var Nn=0;for(ae=0;ae<se.length;ae+=1)Nn+=se[ae].totalCount;var tn=new Array(Nn),Je=0;for(ae=0;ae<be;ae+=1)for(K=0;K<se.length;K+=1)ae<fe[K].length&&(tn[Je]=fe[K][ae],Je+=1);for(ae=0;ae<ve;ae+=1)for(K=0;K<se.length;K+=1)ae<me[K].length&&(tn[Je]=me[K][ae],Je+=1);return tn}(T,D)};O.addData=function(y,x){var k=null;switch(x=x||"Byte"){case"Numeric":k=re(y);break;case"Alphanumeric":k=ie(y);break;case"Byte":k=ue(y);break;case"Kanji":k=te(y);break;default:throw"mode:"+x}g.push(k),b=null},O.isDark=function(y,x){if(y<0||v<=y||x<0||v<=x)throw y+","+x;return d[y][x]},O.getModuleCount=function(){return v},O.make=function(){if(S<1){for(var y=1;y<40;y++){for(var x=W.getRSBlocks(y,h),k=U(),D=0;D<g.length;D++){var T=g[D];k.put(T.getMode(),4),k.put(T.getLength(),M.getLengthInBits(T.getMode(),y)),T.write(k)}var X=0;for(D=0;D<x.length;D++)X+=x[D].dataCount;if(k.getLengthInBits()<=8*X)break}S=y}j(!1,function(){for(var J=0,ne=0,oe=0;oe<8;oe+=1){j(!0,oe);var se=M.getLostPoint(O);(oe==0||J>se)&&(J=se,ne=oe)}return ne}())},O.createTableTag=function(y,x){y=y||2;var k="";k+='<table style="',k+=" border-width: 0px; border-style: none;",k+=" border-collapse: collapse;",k+=" padding: 0px; margin: "+(x=x===void 0?4*y:x)+"px;",k+='">',k+="<tbody>";for(var D=0;D<O.getModuleCount();D+=1){k+="<tr>";for(var T=0;T<O.getModuleCount();T+=1)k+='<td style="',k+=" border-width: 0px; border-style: none;",k+=" border-collapse: collapse;",k+=" padding: 0px; margin: 0px;",k+=" width: "+y+"px;",k+=" height: "+y+"px;",k+=" background-color: ",k+=O.isDark(D,T)?"#000000":"#ffffff",k+=";",k+='"/>';k+="</tr>"}return(k+="</tbody>")+"</table>"},O.createSvgTag=function(y,x,k,D){var T={};typeof arguments[0]=="object"&&(y=(T=arguments[0]).cellSize,x=T.margin,k=T.alt,D=T.title),y=y||2,x=x===void 0?4*y:x,(k=typeof k=="string"?{text:k}:k||{}).text=k.text||null,k.id=k.text?k.id||"qrcode-description":null,(D=typeof D=="string"?{text:D}:D||{}).text=D.text||null,D.id=D.text?D.id||"qrcode-title":null;var X,J,ne,oe,se=O.getModuleCount()*y+2*x,he="";for(oe="l"+y+",0 0,"+y+" -"+y+",0 0,-"+y+"z ",he+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',he+=T.scalable?"":' width="'+se+'px" height="'+se+'px"',he+=' viewBox="0 0 '+se+" "+se+'" ',he+=' preserveAspectRatio="xMinYMin meet"',he+=D.text||k.text?' role="img" aria-labelledby="'+V([D.id,k.id].join(" ").trim())+'"':"",he+=">",he+=D.text?'<title id="'+V(D.id)+'">'+V(D.text)+"</title>":"",he+=k.text?'<description id="'+V(k.id)+'">'+V(k.text)+"</description>":"",he+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',he+='<path d="',J=0;J<O.getModuleCount();J+=1)for(ne=J*y+x,X=0;X<O.getModuleCount();X+=1)O.isDark(J,X)&&(he+="M"+(X*y+x)+","+ne+oe);return(he+='" stroke="transparent" fill="black"/>')+"</svg>"},O.createDataURL=function(y,x){y=y||2,x=x===void 0?4*y:x;var k=O.getModuleCount()*y+2*x,D=x,T=k-x;return Xe(k,k,function(X,J){if(D<=X&&X<T&&D<=J&&J<T){var ne=Math.floor((X-D)/y),oe=Math.floor((J-D)/y);return O.isDark(oe,ne)?0:1}return 1})},O.createImgTag=function(y,x,k){y=y||2,x=x===void 0?4*y:x;var D=O.getModuleCount()*y+2*x,T="";return T+="<img",T+=' src="',T+=O.createDataURL(y,x),T+='"',T+=' width="',T+=D,T+='"',T+=' height="',T+=D,T+='"',k&&(T+=' alt="',T+=V(k),T+='"'),T+"/>"};var V=function(y){for(var x="",k=0;k<y.length;k+=1){var D=y.charAt(k);switch(D){case"<":x+="<";break;case">":x+=">";break;case"&":x+="&";break;case'"':x+=""";break;default:x+=D}}return x};return O.createASCII=function(y,x){if((y=y||1)<2)return function(fe){fe=fe===void 0?2:fe;var me,K,Se,Oe,ae,je=1*O.getModuleCount()+2*fe,Ie=fe,Ae=je-fe,Nn={"\u2588\u2588":"\u2588","\u2588 ":"\u2580"," \u2588":"\u2584"," ":" "},tn={"\u2588\u2588":"\u2580","\u2588 ":"\u2580"," \u2588":" "," ":" "},Je="";for(me=0;me<je;me+=2){for(Se=Math.floor((me-Ie)/1),Oe=Math.floor((me+1-Ie)/1),K=0;K<je;K+=1)ae="\u2588",Ie<=K&&K<Ae&&Ie<=me&&me<Ae&&O.isDark(Se,Math.floor((K-Ie)/1))&&(ae=" "),Ie<=K&&K<Ae&&Ie<=me+1&&me+1<Ae&&O.isDark(Oe,Math.floor((K-Ie)/1))?ae+=" ":ae+="\u2588",Je+=fe<1&&me+1>=Ae?tn[ae]:Nn[ae];Je+=`
|
|
86
|
+
`}return je%2&&fe>0?Je.substring(0,Je.length-je-1)+Array(je+1).join("\u2580"):Je.substring(0,Je.length-1)}(x);y-=1,x=x===void 0?2*y:x;var k,D,T,X,J=O.getModuleCount()*y+2*x,ne=x,oe=J-x,se=Array(y+1).join("\u2588\u2588"),he=Array(y+1).join(" "),be="",ve="";for(k=0;k<J;k+=1){for(T=Math.floor((k-ne)/y),ve="",D=0;D<J;D+=1)X=1,ne<=D&&D<oe&&ne<=k&&k<oe&&O.isDark(T,Math.floor((D-ne)/y))&&(X=0),ve+=X?se:he;for(T=0;T<y;T+=1)be+=ve+`
|
|
87
|
+
`}return be.substring(0,be.length-1)},O.renderTo2dContext=function(y,x){x=x||2;for(var k=O.getModuleCount(),D=0;D<k;D++)for(var T=0;T<k;T++)y.fillStyle=O.isDark(D,T)?"black":"white",y.fillRect(D*x,T*x,x,x)},O};m.stringToBytes=(m.stringToBytesFuncs={default:function(P){for(var E=[],S=0;S<P.length;S+=1){var h=P.charCodeAt(S);E.push(255&h)}return E}}).default,m.createStringToBytes=function(P,E){var S=function(){for(var d=xe(P),v=function(){var G=d.read();if(G==-1)throw"eof";return G},b=0,g={};;){var O=d.read();if(O==-1)break;var j=v(),B=v()<<8|v();g[String.fromCharCode(O<<8|j)]=B,b+=1}if(b!=E)throw b+" != "+E;return g}(),h="?".charCodeAt(0);return function(d){for(var v=[],b=0;b<d.length;b+=1){var g=d.charCodeAt(b);if(g<128)v.push(g);else{var O=S[d.charAt(b)];typeof O=="number"?(255&O)==O?v.push(O):(v.push(O>>>8),v.push(255&O)):v.push(h)}}return v}};var p,_,w,$,R,F={L:1,M:0,Q:3,H:2},M=(p=[[],[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]],_=1335,w=7973,R=function(P){for(var E=0;P!=0;)E+=1,P>>>=1;return E},($={}).getBCHTypeInfo=function(P){for(var E=P<<10;R(E)-R(_)>=0;)E^=_<<R(E)-R(_);return 21522^(P<<10|E)},$.getBCHTypeNumber=function(P){for(var E=P<<12;R(E)-R(w)>=0;)E^=w<<R(E)-R(w);return P<<12|E},$.getPatternPosition=function(P){return p[P-1]},$.getMaskFunction=function(P){switch(P){case 0:return function(E,S){return(E+S)%2==0};case 1:return function(E,S){return E%2==0};case 2:return function(E,S){return S%3==0};case 3:return function(E,S){return(E+S)%3==0};case 4:return function(E,S){return(Math.floor(E/2)+Math.floor(S/3))%2==0};case 5:return function(E,S){return E*S%2+E*S%3==0};case 6:return function(E,S){return(E*S%2+E*S%3)%2==0};case 7:return function(E,S){return(E*S%3+(E+S)%2)%2==0};default:throw"bad maskPattern:"+P}},$.getErrorCorrectPolynomial=function(P){for(var E=H([1],0),S=0;S<P;S+=1)E=E.multiply(H([1,I.gexp(S)],0));return E},$.getLengthInBits=function(P,E){if(1<=E&&E<10)switch(P){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+P}else if(E<27)switch(P){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+P}else{if(!(E<41))throw"type:"+E;switch(P){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+P}}},$.getLostPoint=function(P){for(var E=P.getModuleCount(),S=0,h=0;h<E;h+=1)for(var d=0;d<E;d+=1){for(var v=0,b=P.isDark(h,d),g=-1;g<=1;g+=1)if(!(h+g<0||E<=h+g))for(var O=-1;O<=1;O+=1)d+O<0||E<=d+O||g==0&&O==0||b==P.isDark(h+g,d+O)&&(v+=1);v>5&&(S+=3+v-5)}for(h=0;h<E-1;h+=1)for(d=0;d<E-1;d+=1){var j=0;P.isDark(h,d)&&(j+=1),P.isDark(h+1,d)&&(j+=1),P.isDark(h,d+1)&&(j+=1),P.isDark(h+1,d+1)&&(j+=1),j!=0&&j!=4||(S+=3)}for(h=0;h<E;h+=1)for(d=0;d<E-6;d+=1)P.isDark(h,d)&&!P.isDark(h,d+1)&&P.isDark(h,d+2)&&P.isDark(h,d+3)&&P.isDark(h,d+4)&&!P.isDark(h,d+5)&&P.isDark(h,d+6)&&(S+=40);for(d=0;d<E;d+=1)for(h=0;h<E-6;h+=1)P.isDark(h,d)&&!P.isDark(h+1,d)&&P.isDark(h+2,d)&&P.isDark(h+3,d)&&P.isDark(h+4,d)&&!P.isDark(h+5,d)&&P.isDark(h+6,d)&&(S+=40);var B=0;for(d=0;d<E;d+=1)for(h=0;h<E;h+=1)P.isDark(h,d)&&(B+=1);return S+Math.abs(100*B/E/E-50)/5*10},$),I=function(){for(var P=new Array(256),E=new Array(256),S=0;S<8;S+=1)P[S]=1<<S;for(S=8;S<256;S+=1)P[S]=P[S-4]^P[S-5]^P[S-6]^P[S-8];for(S=0;S<255;S+=1)E[P[S]]=S;return{glog:function(h){if(h<1)throw"glog("+h+")";return E[h]},gexp:function(h){for(;h<0;)h+=255;for(;h>=256;)h-=255;return P[h]}}}();function H(P,E){if(P.length===void 0)throw P.length+"/"+E;var S=function(){for(var d=0;d<P.length&&P[d]==0;)d+=1;for(var v=new Array(P.length-d+E),b=0;b<P.length-d;b+=1)v[b]=P[b+d];return v}(),h={getAt:function(d){return S[d]},getLength:function(){return S.length},multiply:function(d){for(var v=new Array(h.getLength()+d.getLength()-1),b=0;b<h.getLength();b+=1)for(var g=0;g<d.getLength();g+=1)v[b+g]^=I.gexp(I.glog(h.getAt(b))+I.glog(d.getAt(g)));return H(v,0)},mod:function(d){if(h.getLength()-d.getLength()<0)return h;for(var v=I.glog(h.getAt(0))-I.glog(d.getAt(0)),b=new Array(h.getLength()),g=0;g<h.getLength();g+=1)b[g]=h.getAt(g);for(g=0;g<d.getLength();g+=1)b[g]^=I.gexp(I.glog(d.getAt(g))+v);return H(b,0).mod(d)}};return h}var W=function(){var P=[[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]],E=function(h,d){var v={};return v.totalCount=h,v.dataCount=d,v},S={getRSBlocks:function(h,d){var v=function(L,q){switch(q){case F.L:return P[4*(L-1)+0];case F.M:return P[4*(L-1)+1];case F.Q:return P[4*(L-1)+2];case F.H:return P[4*(L-1)+3];default:return}}(h,d);if(v===void 0)throw"bad rs block @ typeNumber:"+h+"/errorCorrectionLevel:"+d;for(var b=v.length/3,g=[],O=0;O<b;O+=1)for(var j=v[3*O+0],B=v[3*O+1],G=v[3*O+2],z=0;z<j;z+=1)g.push(E(B,G));return g}};return S}(),U=function(){var P=[],E=0,S={getBuffer:function(){return P},getAt:function(h){var d=Math.floor(h/8);return(P[d]>>>7-h%8&1)==1},put:function(h,d){for(var v=0;v<d;v+=1)S.putBit((h>>>d-v-1&1)==1)},getLengthInBits:function(){return E},putBit:function(h){var d=Math.floor(E/8);P.length<=d&&P.push(0),h&&(P[d]|=128>>>E%8),E+=1}};return S},re=function(P){var E=P,S={getMode:function(){return 1},getLength:function(v){return E.length},write:function(v){for(var b=E,g=0;g+2<b.length;)v.put(h(b.substring(g,g+3)),10),g+=3;g<b.length&&(b.length-g==1?v.put(h(b.substring(g,g+1)),4):b.length-g==2&&v.put(h(b.substring(g,g+2)),7))}},h=function(v){for(var b=0,g=0;g<v.length;g+=1)b=10*b+d(v.charAt(g));return b},d=function(v){if("0"<=v&&v<="9")return v.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+v};return S},ie=function(P){var E=P,S={getMode:function(){return 2},getLength:function(d){return E.length},write:function(d){for(var v=E,b=0;b+1<v.length;)d.put(45*h(v.charAt(b))+h(v.charAt(b+1)),11),b+=2;b<v.length&&d.put(h(v.charAt(b)),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 S},ue=function(P){var E=m.stringToBytes(P);return{getMode:function(){return 4},getLength:function(S){return E.length},write:function(S){for(var h=0;h<E.length;h+=1)S.put(E[h],8)}}},te=function(P){var E=m.stringToBytesFuncs.SJIS;if(!E)throw"sjis not supported.";(function(){var d=E("\u53CB");if(d.length!=2||(d[0]<<8|d[1])!=38726)throw"sjis not supported."})();var S=E(P),h={getMode:function(){return 8},getLength:function(d){return~~(S.length/2)},write:function(d){for(var v=S,b=0;b+1<v.length;){var g=(255&v[b])<<8|255&v[b+1];if(33088<=g&&g<=40956)g-=33088;else{if(!(57408<=g&&g<=60351))throw"illegal char at "+(b+1)+"/"+g;g-=49472}g=192*(g>>>8&255)+(255&g),d.put(g,13),b+=2}if(b<v.length)throw"illegal char at "+(b+1)}};return h},ee=function(){var P=[],E={writeByte:function(S){P.push(255&S)},writeShort:function(S){E.writeByte(S),E.writeByte(S>>>8)},writeBytes:function(S,h,d){h=h||0,d=d||S.length;for(var v=0;v<d;v+=1)E.writeByte(S[v+h])},writeString:function(S){for(var h=0;h<S.length;h+=1)E.writeByte(S.charCodeAt(h))},toByteArray:function(){return P},toString:function(){var S="";S+="[";for(var h=0;h<P.length;h+=1)h>0&&(S+=","),S+=P[h];return S+"]"}};return E},xe=function(P){var E=P,S=0,h=0,d=0,v={read:function(){for(;d<8;){if(S>=E.length){if(d==0)return-1;throw"unexpected end of file./"+d}var g=E.charAt(S);if(S+=1,g=="=")return d=0,-1;g.match(/^\s$/)||(h=h<<6|b(g.charCodeAt(0)),d+=6)}var O=h>>>d-8&255;return d-=8,O}},b=function(g){if(65<=g&&g<=90)return g-65;if(97<=g&&g<=122)return g-97+26;if(48<=g&&g<=57)return g-48+52;if(g==43)return 62;if(g==47)return 63;throw"c:"+g};return v},Xe=function(P,E,S){for(var h=function(B,G){var z=B,L=G,q=new Array(B*G),A={setPixel:function(y,x,k){q[x*z+y]=k},write:function(y){y.writeString("GIF87a"),y.writeShort(z),y.writeShort(L),y.writeByte(128),y.writeByte(0),y.writeByte(0),y.writeByte(0),y.writeByte(0),y.writeByte(0),y.writeByte(255),y.writeByte(255),y.writeByte(255),y.writeString(","),y.writeShort(0),y.writeShort(0),y.writeShort(z),y.writeShort(L),y.writeByte(0);var x=C(2);y.writeByte(2);for(var k=0;x.length-k>255;)y.writeByte(255),y.writeBytes(x,k,255),k+=255;y.writeByte(x.length-k),y.writeBytes(x,k,x.length-k),y.writeByte(0),y.writeString(";")}},C=function(y){for(var x=1<<y,k=1+(1<<y),D=y+1,T=V(),X=0;X<x;X+=1)T.add(String.fromCharCode(X));T.add(String.fromCharCode(x)),T.add(String.fromCharCode(k));var J,ne,oe,se=ee(),he=(J=se,ne=0,oe=0,{write:function(me,K){if(me>>>K!=0)throw"length over";for(;ne+K>=8;)J.writeByte(255&(me<<ne|oe)),K-=8-ne,me>>>=8-ne,oe=0,ne=0;oe|=me<<ne,ne+=K},flush:function(){ne>0&&J.writeByte(oe)}});he.write(x,D);var be=0,ve=String.fromCharCode(q[be]);for(be+=1;be<q.length;){var fe=String.fromCharCode(q[be]);be+=1,T.contains(ve+fe)?ve+=fe:(he.write(T.indexOf(ve),D),T.size()<4095&&(T.size()==1<<D&&(D+=1),T.add(ve+fe)),ve=fe)}return he.write(T.indexOf(ve),D),he.write(k,D),he.flush(),se.toByteArray()},V=function(){var y={},x=0,k={add:function(D){if(k.contains(D))throw"dup key:"+D;y[D]=x,x+=1},size:function(){return x},indexOf:function(D){return y[D]},contains:function(D){return y[D]!==void 0}};return k};return A}(P,E),d=0;d<E;d+=1)for(var v=0;v<P;v+=1)h.setPixel(v,d,S(v,d));var b=ee();h.write(b);for(var g=function(){var B=0,G=0,z=0,L="",q={},A=function(V){L+=String.fromCharCode(C(63&V))},C=function(V){if(!(V<0)){if(V<26)return 65+V;if(V<52)return V-26+97;if(V<62)return V-52+48;if(V==62)return 43;if(V==63)return 47}throw"n:"+V};return q.writeByte=function(V){for(B=B<<8|255&V,G+=8,z+=1;G>=6;)A(B>>>G-6),G-=6},q.flush=function(){if(G>0&&(A(B<<6-G),B=0,G=0),z%3!=0)for(var V=3-z%3,y=0;y<V;y+=1)L+="="},q.toString=function(){return L},q}(),O=b.toByteArray(),j=0;j<O.length;j+=1)g.writeByte(O[j]);return g.flush(),"data:image/gif;base64,"+g};return m}();c.stringToBytesFuncs["UTF-8"]=function(m){return function(p){for(var _=[],w=0;w<p.length;w++){var $=p.charCodeAt(w);$<128?_.push($):$<2048?_.push(192|$>>6,128|63&$):$<55296||$>=57344?_.push(224|$>>12,128|$>>6&63,128|63&$):(w++,$=65536+((1023&$)<<10|1023&p.charCodeAt(w)),_.push(240|$>>18,128|$>>12&63,128|$>>6&63,128|63&$))}return _}(m)},(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:()=>E});const a=S=>!!S&&typeof S=="object"&&!Array.isArray(S);function s(S,...h){if(!h.length)return S;const d=h.shift();return d!==void 0&&a(S)&&a(d)?(S=Object.assign({},S),Object.keys(d).forEach(v=>{const b=S[v],g=d[v];Array.isArray(b)&&Array.isArray(g)?S[v]=g:a(b)&&a(g)?S[v]=s(Object.assign({},b),g):S[v]=g}),s(S,...h)):S}function l(S,h){const d=document.createElement("a");d.download=h,d.href=S,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:v}){this._svg=h,this._type=d,this._window=v}draw(h,d,v,b){let g;switch(this._type){case"dots":g=this._drawDot;break;case"classy":g=this._drawClassy;break;case"classy-rounded":g=this._drawClassyRounded;break;case"rounded":g=this._drawRounded;break;case"extra-rounded":g=this._drawExtraRounded;break;default:g=this._drawSquare}g.call(this,{x:h,y:d,size:v,getNeighbor:b})}_rotateFigure({x:h,y:d,size:v,rotation:b=0,draw:g}){var O;const j=h+v/2,B=d+v/2;g(),(O=this._element)===null||O===void 0||O.setAttribute("transform",`rotate(${180*b/Math.PI},${j},${B})`)}_basicDot(h){const{size:d,x:v,y:b}=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(v+d/2)),this._element.setAttribute("cy",String(b+d/2)),this._element.setAttribute("r",String(d/2))}}))}_basicSquare(h){const{size:d,x:v,y:b}=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(v)),this._element.setAttribute("y",String(b)),this._element.setAttribute("width",String(d)),this._element.setAttribute("height",String(d))}}))}_basicSideRounded(h){const{size:d,x:v,y:b}=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 ${v} ${b}v ${d}h `+d/2+`a ${d/2} ${d/2}, 0, 0, 0, 0 ${-d}`)}}))}_basicCornerRounded(h){const{size:d,x:v,y:b}=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 ${v} ${b}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:v,y:b}=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 ${v} ${b}v ${d}h ${d}a ${d} ${d}, 0, 0, 0, ${-d} ${-d}`)}}))}_basicCornersRounded(h){const{size:d,x:v,y:b}=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 ${v} ${b}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:v}){this._basicDot({x:h,y:d,size:v,rotation:0})}_drawSquare({x:h,y:d,size:v}){this._basicSquare({x:h,y:d,size:v,rotation:0})}_drawRounded({x:h,y:d,size:v,getNeighbor:b}){const g=b?+b(-1,0):0,O=b?+b(1,0):0,j=b?+b(0,-1):0,B=b?+b(0,1):0,G=g+O+j+B;if(G!==0)if(G>2||g&&O||j&&B)this._basicSquare({x:h,y:d,size:v,rotation:0});else{if(G===2){let z=0;return g&&j?z=Math.PI/2:j&&O?z=Math.PI:O&&B&&(z=-Math.PI/2),void this._basicCornerRounded({x:h,y:d,size:v,rotation:z})}if(G===1){let z=0;return j?z=Math.PI/2:O?z=Math.PI:B&&(z=-Math.PI/2),void this._basicSideRounded({x:h,y:d,size:v,rotation:z})}}else this._basicDot({x:h,y:d,size:v,rotation:0})}_drawExtraRounded({x:h,y:d,size:v,getNeighbor:b}){const g=b?+b(-1,0):0,O=b?+b(1,0):0,j=b?+b(0,-1):0,B=b?+b(0,1):0,G=g+O+j+B;if(G!==0)if(G>2||g&&O||j&&B)this._basicSquare({x:h,y:d,size:v,rotation:0});else{if(G===2){let z=0;return g&&j?z=Math.PI/2:j&&O?z=Math.PI:O&&B&&(z=-Math.PI/2),void this._basicCornerExtraRounded({x:h,y:d,size:v,rotation:z})}if(G===1){let z=0;return j?z=Math.PI/2:O?z=Math.PI:B&&(z=-Math.PI/2),void this._basicSideRounded({x:h,y:d,size:v,rotation:z})}}else this._basicDot({x:h,y:d,size:v,rotation:0})}_drawClassy({x:h,y:d,size:v,getNeighbor:b}){const g=b?+b(-1,0):0,O=b?+b(1,0):0,j=b?+b(0,-1):0,B=b?+b(0,1):0;g+O+j+B!==0?g||j?O||B?this._basicSquare({x:h,y:d,size:v,rotation:0}):this._basicCornerRounded({x:h,y:d,size:v,rotation:Math.PI/2}):this._basicCornerRounded({x:h,y:d,size:v,rotation:-Math.PI/2}):this._basicCornersRounded({x:h,y:d,size:v,rotation:Math.PI/2})}_drawClassyRounded({x:h,y:d,size:v,getNeighbor:b}){const g=b?+b(-1,0):0,O=b?+b(1,0):0,j=b?+b(0,-1):0,B=b?+b(0,1):0;g+O+j+B!==0?g||j?O||B?this._basicSquare({x:h,y:d,size:v,rotation:0}):this._basicCornerExtraRounded({x:h,y:d,size:v,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:h,y:d,size:v,rotation:-Math.PI/2}):this._basicCornersRounded({x:h,y:d,size:v,rotation:Math.PI/2})}}const m={dot:"dot",square:"square",extraRounded:"extra-rounded"},p=Object.values(m);class _{constructor({svg:h,type:d,window:v}){this._svg=h,this._type=d,this._window=v}draw(h,d,v,b){let g;switch(this._type){case m.square:g=this._drawSquare;break;case m.extraRounded:g=this._drawExtraRounded;break;default:g=this._drawDot}g.call(this,{x:h,y:d,size:v,rotation:b})}_rotateFigure({x:h,y:d,size:v,rotation:b=0,draw:g}){var O;const j=h+v/2,B=d+v/2;g(),(O=this._element)===null||O===void 0||O.setAttribute("transform",`rotate(${180*b/Math.PI},${j},${B})`)}_basicDot(h){const{size:d,x:v,y:b}=h,g=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 ${v+d/2} ${b}a ${d/2} ${d/2} 0 1 0 0.1 0zm 0 ${g}a ${d/2-g} ${d/2-g} 0 1 1 -0.1 0Z`)}}))}_basicSquare(h){const{size:d,x:v,y:b}=h,g=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 ${v} ${b}v ${d}h ${d}v `+-d+`zM ${v+g} ${b+g}h `+(d-2*g)+"v "+(d-2*g)+"h "+(2*g-d)+"z")}}))}_basicExtraRounded(h){const{size:d,x:v,y:b}=h,g=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 ${v} ${b+2.5*g}v `+2*g+`a ${2.5*g} ${2.5*g}, 0, 0, 0, ${2.5*g} ${2.5*g}h `+2*g+`a ${2.5*g} ${2.5*g}, 0, 0, 0, ${2.5*g} ${2.5*-g}v `+-2*g+`a ${2.5*g} ${2.5*g}, 0, 0, 0, ${2.5*-g} ${2.5*-g}h `+-2*g+`a ${2.5*g} ${2.5*g}, 0, 0, 0, ${2.5*-g} ${2.5*g}M ${v+2.5*g} ${b+g}h `+2*g+`a ${1.5*g} ${1.5*g}, 0, 0, 1, ${1.5*g} ${1.5*g}v `+2*g+`a ${1.5*g} ${1.5*g}, 0, 0, 1, ${1.5*-g} ${1.5*g}h `+-2*g+`a ${1.5*g} ${1.5*g}, 0, 0, 1, ${1.5*-g} ${1.5*-g}v `+-2*g+`a ${1.5*g} ${1.5*g}, 0, 0, 1, ${1.5*g} ${1.5*-g}`)}}))}_drawDot({x:h,y:d,size:v,rotation:b}){this._basicDot({x:h,y:d,size:v,rotation:b})}_drawSquare({x:h,y:d,size:v,rotation:b}){this._basicSquare({x:h,y:d,size:v,rotation:b})}_drawExtraRounded({x:h,y:d,size:v,rotation:b}){this._basicExtraRounded({x:h,y:d,size:v,rotation:b})}}const w={dot:"dot",square:"square"},$=Object.values(w);class R{constructor({svg:h,type:d,window:v}){this._svg=h,this._type=d,this._window=v}draw(h,d,v,b){let g;g=this._type===w.square?this._drawSquare:this._drawDot,g.call(this,{x:h,y:d,size:v,rotation:b})}_rotateFigure({x:h,y:d,size:v,rotation:b=0,draw:g}){var O;const j=h+v/2,B=d+v/2;g(),(O=this._element)===null||O===void 0||O.setAttribute("transform",`rotate(${180*b/Math.PI},${j},${B})`)}_basicDot(h){const{size:d,x:v,y:b}=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(v+d/2)),this._element.setAttribute("cy",String(b+d/2)),this._element.setAttribute("r",String(d/2))}}))}_basicSquare(h){const{size:d,x:v,y:b}=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(v)),this._element.setAttribute("y",String(b)),this._element.setAttribute("width",String(d)),this._element.setAttribute("height",String(d))}}))}_drawDot({x:h,y:d,size:v,rotation:b}){this._basicDot({x:h,y:d,size:v,rotation:b})}_drawSquare({x:h,y:d,size:v,rotation:b}){this._basicSquare({x:h,y:d,size:v,rotation:b})}}const F="circle",M=[[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 H{constructor(h,d){this._roundSize=v=>this._options.dotsOptions.roundSize?Math.floor(v):v,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=H.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(),v=Math.min(this._options.width,this._options.height)-2*this._options.margin,b=this._options.shape===F?v/Math.sqrt(2):v,g=this._roundSize(b/d);let O={hideXDots:0,hideYDots:0,width:0,height:0};if(this._qr=h,this._options.image){if(await this.loadImage(),!this._image)return;const{imageOptions:j,qrOptions:B}=this._options,G=j.imageSize*f[B.errorCorrectionLevel],z=Math.floor(G*d*d);O=function({originalHeight:L,originalWidth:q,maxHiddenDots:A,maxHiddenAxisDots:C,dotSize:V}){const y={x:0,y:0},x={x:0,y:0};if(L<=0||q<=0||A<=0||V<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};const k=L/q;return y.x=Math.floor(Math.sqrt(A/k)),y.x<=0&&(y.x=1),C&&C<y.x&&(y.x=C),y.x%2==0&&y.x--,x.x=y.x*V,y.y=1+2*Math.ceil((y.x*k-1)/2),x.y=Math.round(x.x*k),(y.y*y.x>A||C&&C<y.y)&&(C&&C<y.y?(y.y=C,y.y%2==0&&y.x--):y.y-=2,x.y=y.y*V,y.x=1+2*Math.ceil((y.y/k-1)/2),x.x=Math.round(x.y/k)),{height:x.y,width:x.x,hideYDots:y.y,hideXDots:y.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:z,maxHiddenAxisDots:d-14,dotSize:g})}this.drawBackground(),this.drawDots((j,B)=>{var G,z,L,q,A,C;return!(this._options.imageOptions.hideBackgroundDots&&j>=(d-O.hideYDots)/2&&j<(d+O.hideYDots)/2&&B>=(d-O.hideXDots)/2&&B<(d+O.hideXDots)/2||((G=M[j])===null||G===void 0?void 0:G[B])||((z=M[j-d+7])===null||z===void 0?void 0:z[B])||((L=M[j])===null||L===void 0?void 0:L[B-d+7])||((q=I[j])===null||q===void 0?void 0:q[B])||((A=I[j-d+7])===null||A===void 0?void 0:A[B])||((C=I[j])===null||C===void 0?void 0:C[B-d+7]))}),this.drawCorners(),this._options.image&&await this.drawImage({width:O.width,height:O.height,count:d,dotSize:g})}drawBackground(){var h,d,v;const b=this._element,g=this._options;if(b){const O=(h=g.backgroundOptions)===null||h===void 0?void 0:h.gradient,j=(d=g.backgroundOptions)===null||d===void 0?void 0:d.color;let B=g.height,G=g.width;if(O||j){const z=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),!((v=g.backgroundOptions)===null||v===void 0)&&v.round&&(B=G=Math.min(g.width,g.height),z.setAttribute("rx",String(B/2*g.backgroundOptions.round))),z.setAttribute("x",String(this._roundSize((g.width-G)/2))),z.setAttribute("y",String(this._roundSize((g.height-B)/2))),z.setAttribute("width",String(G)),z.setAttribute("height",String(B)),this._backgroundClipPath.appendChild(z),this._createColor({options:O,color:j,additionalRotation:0,x:0,y:0,height:g.height,width:g.width,name:`background-color-${this._instanceId}`})}}}drawDots(h){var d,v;if(!this._qr)throw"QR code is not defined";const b=this._options,g=this._qr.getModuleCount();if(g>b.width||g>b.height)throw"The canvas is too small.";const O=Math.min(b.width,b.height)-2*b.margin,j=b.shape===F?O/Math.sqrt(2):O,B=this._roundSize(j/g),G=this._roundSize((b.width-g*B)/2),z=this._roundSize((b.height-g*B)/2),L=new c({svg:this._element,type:b.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=b.dotsOptions)===null||d===void 0?void 0:d.gradient,color:b.dotsOptions.color,additionalRotation:0,x:0,y:0,height:b.height,width:b.width,name:`dot-color-${this._instanceId}`});for(let q=0;q<g;q++)for(let A=0;A<g;A++)h&&!h(q,A)||!((v=this._qr)===null||v===void 0)&&v.isDark(q,A)&&(L.draw(G+A*B,z+q*B,B,(C,V)=>!(A+C<0||q+V<0||A+C>=g||q+V>=g)&&!(h&&!h(q+V,A+C))&&!!this._qr&&this._qr.isDark(q+V,A+C)),L._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(L._element));if(b.shape===F){const q=this._roundSize((O/B-g)/2),A=g+2*q,C=G-q*B,V=z-q*B,y=[],x=this._roundSize(A/2);for(let k=0;k<A;k++){y[k]=[];for(let D=0;D<A;D++)k>=q-1&&k<=A-q&&D>=q-1&&D<=A-q||Math.sqrt((k-x)*(k-x)+(D-x)*(D-x))>x?y[k][D]=0:y[k][D]=this._qr.isDark(D-2*q<0?D:D>=g?D-2*q:D-q,k-2*q<0?k:k>=g?k-2*q:k-q)?1:0}for(let k=0;k<A;k++)for(let D=0;D<A;D++)y[k][D]&&(L.draw(C+D*B,V+k*B,B,(T,X)=>{var J;return!!(!((J=y[k+X])===null||J===void 0)&&J[D+T])}),L._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(L._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 v=this._qr.getModuleCount(),b=Math.min(d.width,d.height)-2*d.margin,g=d.shape===F?b/Math.sqrt(2):b,O=this._roundSize(g/v),j=7*O,B=3*O,G=this._roundSize((d.width-v*O)/2),z=this._roundSize((d.height-v*O)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(([L,q,A])=>{var C,V,y,x,k,D,T,X,J,ne,oe,se,he,be;const ve=G+L*O*(v-7),fe=z+q*O*(v-7);let me=this._dotsClipPath,K=this._dotsClipPath;if((((C=d.cornersSquareOptions)===null||C===void 0?void 0:C.gradient)||((V=d.cornersSquareOptions)===null||V===void 0?void 0:V.color))&&(me=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),me.setAttribute("id",`clip-path-corners-square-color-${L}-${q}-${this._instanceId}`),this._defs.appendChild(me),this._cornersSquareClipPath=this._cornersDotClipPath=K=me,this._createColor({options:(y=d.cornersSquareOptions)===null||y===void 0?void 0:y.gradient,color:(x=d.cornersSquareOptions)===null||x===void 0?void 0:x.color,additionalRotation:A,x:ve,y:fe,height:j,width:j,name:`corners-square-color-${L}-${q}-${this._instanceId}`})),((k=d.cornersSquareOptions)===null||k===void 0?void 0:k.type)&&p.includes(d.cornersSquareOptions.type)){const Se=new _({svg:this._element,type:d.cornersSquareOptions.type,window:this._window});Se.draw(ve,fe,j,A),Se._element&&me&&me.appendChild(Se._element)}else{const Se=new c({svg:this._element,type:((D=d.cornersSquareOptions)===null||D===void 0?void 0:D.type)||d.dotsOptions.type,window:this._window});for(let Oe=0;Oe<M.length;Oe++)for(let ae=0;ae<M[Oe].length;ae++)!((T=M[Oe])===null||T===void 0)&&T[ae]&&(Se.draw(ve+ae*O,fe+Oe*O,O,(je,Ie)=>{var Ae;return!!(!((Ae=M[Oe+Ie])===null||Ae===void 0)&&Ae[ae+je])}),Se._element&&me&&me.appendChild(Se._element))}if((((X=d.cornersDotOptions)===null||X===void 0?void 0:X.gradient)||((J=d.cornersDotOptions)===null||J===void 0?void 0:J.color))&&(K=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),K.setAttribute("id",`clip-path-corners-dot-color-${L}-${q}-${this._instanceId}`),this._defs.appendChild(K),this._cornersDotClipPath=K,this._createColor({options:(ne=d.cornersDotOptions)===null||ne===void 0?void 0:ne.gradient,color:(oe=d.cornersDotOptions)===null||oe===void 0?void 0:oe.color,additionalRotation:A,x:ve+2*O,y:fe+2*O,height:B,width:B,name:`corners-dot-color-${L}-${q}-${this._instanceId}`})),((se=d.cornersDotOptions)===null||se===void 0?void 0:se.type)&&$.includes(d.cornersDotOptions.type)){const Se=new R({svg:this._element,type:d.cornersDotOptions.type,window:this._window});Se.draw(ve+2*O,fe+2*O,B,A),Se._element&&K&&K.appendChild(Se._element)}else{const Se=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 Oe=0;Oe<I.length;Oe++)for(let ae=0;ae<I[Oe].length;ae++)!((be=I[Oe])===null||be===void 0)&&be[ae]&&(Se.draw(ve+ae*O,fe+Oe*O,O,(je,Ie)=>{var Ae;return!!(!((Ae=I[Oe+Ie])===null||Ae===void 0)&&Ae[ae+je])}),Se._element&&K&&K.appendChild(Se._element))}})}loadImage(){return new Promise((h,d)=>{var v;const b=this._options;if(!b.image)return d("Image is not defined");if(!((v=b.nodeCanvas)===null||v===void 0)&&v.loadImage)b.nodeCanvas.loadImage(b.image).then(g=>{var O,j;if(this._image=g,this._options.imageOptions.saveAsBlob){const B=(O=b.nodeCanvas)===null||O===void 0?void 0:O.createCanvas(this._image.width,this._image.height);(j=B==null?void 0:B.getContext("2d"))===null||j===void 0||j.drawImage(g,0,0),this._imageUri=B==null?void 0:B.toDataURL()}h()}).catch(d);else{const g=new this._window.Image;typeof b.imageOptions.crossOrigin=="string"&&(g.crossOrigin=b.imageOptions.crossOrigin),this._image=g,g.onload=async()=>{this._options.imageOptions.saveAsBlob&&(this._imageUri=await async function(O,j){return new Promise(B=>{const G=new j.XMLHttpRequest;G.onload=function(){const z=new j.FileReader;z.onloadend=function(){B(z.result)},z.readAsDataURL(G.response)},G.open("GET",O),G.responseType="blob",G.send()})}(b.image||"",this._window)),h()},g.src=b.image}})}async drawImage({width:h,height:d,count:v,dotSize:b}){const g=this._options,O=this._roundSize((g.width-v*b)/2),j=this._roundSize((g.height-v*b)/2),B=O+this._roundSize(g.imageOptions.margin+(v*b-h)/2),G=j+this._roundSize(g.imageOptions.margin+(v*b-d)/2),z=h-2*g.imageOptions.margin,L=d-2*g.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(B)),q.setAttribute("y",String(G)),q.setAttribute("width",`${z}px`),q.setAttribute("height",`${L}px`),this._element.appendChild(q)}_createColor({options:h,color:d,additionalRotation:v,x:b,y:g,height:O,width:j,name:B}){const G=j>O?j:O,z=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");if(z.setAttribute("x",String(b)),z.setAttribute("y",String(g)),z.setAttribute("height",String(O)),z.setAttribute("width",String(j)),z.setAttribute("clip-path",`url('#clip-path-${B}')`),h){let L;if(h.type==="radial")L=this._window.document.createElementNS("http://www.w3.org/2000/svg","radialGradient"),L.setAttribute("id",B),L.setAttribute("gradientUnits","userSpaceOnUse"),L.setAttribute("fx",String(b+j/2)),L.setAttribute("fy",String(g+O/2)),L.setAttribute("cx",String(b+j/2)),L.setAttribute("cy",String(g+O/2)),L.setAttribute("r",String(G/2));else{const q=((h.rotation||0)+v)%(2*Math.PI),A=(q+2*Math.PI)%(2*Math.PI);let C=b+j/2,V=g+O/2,y=b+j/2,x=g+O/2;A>=0&&A<=.25*Math.PI||A>1.75*Math.PI&&A<=2*Math.PI?(C-=j/2,V-=O/2*Math.tan(q),y+=j/2,x+=O/2*Math.tan(q)):A>.25*Math.PI&&A<=.75*Math.PI?(V-=O/2,C-=j/2/Math.tan(q),x+=O/2,y+=j/2/Math.tan(q)):A>.75*Math.PI&&A<=1.25*Math.PI?(C+=j/2,V+=O/2*Math.tan(q),y-=j/2,x-=O/2*Math.tan(q)):A>1.25*Math.PI&&A<=1.75*Math.PI&&(V+=O/2,C+=j/2/Math.tan(q),x-=O/2,y-=j/2/Math.tan(q)),L=this._window.document.createElementNS("http://www.w3.org/2000/svg","linearGradient"),L.setAttribute("id",B),L.setAttribute("gradientUnits","userSpaceOnUse"),L.setAttribute("x1",String(Math.round(C))),L.setAttribute("y1",String(Math.round(V))),L.setAttribute("x2",String(Math.round(y))),L.setAttribute("y2",String(Math.round(x)))}h.colorStops.forEach(({offset:q,color:A})=>{const C=this._window.document.createElementNS("http://www.w3.org/2000/svg","stop");C.setAttribute("offset",100*q+"%"),C.setAttribute("stop-color",A),L.appendChild(C)}),z.setAttribute("fill",`url('#${B}')`),this._defs.appendChild(L)}else d&&z.setAttribute("fill",d);this._element.appendChild(z)}}H.instanceCount=0;const W=H,U="canvas",re={};for(let S=0;S<=40;S++)re[S]=S;const ie={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 ue(S){const h=Object.assign({},S);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 te(S){const h=Object.assign({},S);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=ue(h.dotsOptions.gradient)),h.cornersSquareOptions&&(h.cornersSquareOptions=Object.assign({},h.cornersSquareOptions),h.cornersSquareOptions.gradient&&(h.cornersSquareOptions.gradient=ue(h.cornersSquareOptions.gradient))),h.cornersDotOptions&&(h.cornersDotOptions=Object.assign({},h.cornersDotOptions),h.cornersDotOptions.gradient&&(h.cornersDotOptions.gradient=ue(h.cornersDotOptions.gradient))),h.backgroundOptions&&(h.backgroundOptions=Object.assign({},h.backgroundOptions),h.backgroundOptions.gradient&&(h.backgroundOptions.gradient=ue(h.backgroundOptions.gradient))),h}var ee=i(873),xe=i.n(ee);function Xe(S){if(!S)throw new Error("Extension must be defined");S[0]==="."&&(S=S.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"}[S.toLowerCase()];if(!h)throw new Error(`Extension "${S}" is not supported`);return h}class P{constructor(h){h!=null&&h.jsdom?this._window=new h.jsdom("",{resources:"usable"}).window:this._window=window,this._options=h?te(s(ie,h)):ie,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 v;if(!this._svg)return;const b=this._svg,g=new this._window.XMLSerializer().serializeToString(b),O=btoa(g),j=`data:${Xe("svg")};base64,${O}`;if(!((v=this._options.nodeCanvas)===null||v===void 0)&&v.loadImage)return this._options.nodeCanvas.loadImage(j).then(B=>{var G,z;B.width=this._options.width,B.height=this._options.height,(z=(G=this._nodeCanvas)===null||G===void 0?void 0:G.getContext("2d"))===null||z===void 0||z.drawImage(B,0,0)});{const B=new this._window.Image;return new Promise(G=>{B.onload=()=>{var z,L;(L=(z=this._domCanvas)===null||z===void 0?void 0:z.getContext("2d"))===null||L===void 0||L.drawImage(B,0,0),G()},B.src=j})}}))}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){P._clearContainer(this._container),this._options=h?te(s(this._options,h)):this._options,this._options.data&&(this._qr=xe()(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),v=Xe(h);if(!d)return null;if(h.toLowerCase()==="svg"){const b=`<?xml version="1.0" standalone="no"?>\r
|
|
88
|
+
${new this._window.XMLSerializer().serializeToString(d)}`;return typeof Blob>"u"||this._options.jsdom?Buffer.from(b):new Blob([b],{type:v})}return new Promise(b=>{const g=d;if("toBuffer"in g)if(v==="image/png")b(g.toBuffer(v));else if(v==="image/jpeg")b(g.toBuffer(v));else{if(v!=="application/pdf")throw Error("Unsupported extension");b(g.toBuffer(v))}else"toBlob"in g&&g.toBlob(b,v,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",v="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&&(v=h.name),h.extension&&(d=h.extension));const b=await this._getElement(d);if(b)if(d.toLowerCase()==="svg"){let g=new XMLSerializer().serializeToString(b);g=`<?xml version="1.0" standalone="no"?>\r
|
|
89
|
+
`+g,l(`data:${Xe(d)};charset=utf-8,${encodeURIComponent(g)}`,`${v}.svg`)}else l(b.toDataURL(Xe(d)),`${v}.${d}`)}}const E=P})(),o.default})())})(ba);const R0=bf(ba.exports),A0=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 R0(t)),this.qrcode.append(this.$refs.qr))})},deep:!0,immediate:!0}}}),D0={class:"_fc-qrcode",ref:"qr"};function P0(t,e,n,r,i,o){return u.openBlock(),u.createElementBlock("div",D0,null,512)}const V0=$e(A0,[["render",P0]]),w1="",T0=u.defineComponent({name:"FcCell"}),I0={ref:"cell",class:"_fc-cell"};function M0(t,e,n,r,i,o){return u.openBlock(),u.createElementBlock("div",I0,[u.renderSlot(t.$slots,"default")],512)}const B0=$e(T0,[["render",M0]]),F0=t=>t!==null&&typeof t=="object",j0=t=>t!=null;function li(t){if(!j0(t))return t;if(Array.isArray(t))return t.map(e=>li(e));if(F0(t)){const e={};return Object.keys(t).forEach(n=>{e[n]=li(t[n])}),e}return t}const N0=(t,e)=>nt.ElMessage({message:t,type:e||"info",customClass:"_fc-message-tip"});var wa={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(Po,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",a="second",s="minute",l="hour",f="day",c="week",m="month",p="quarter",_="year",w="date",$="Invalid Date",R=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,F=/\[([^\]]+)]|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,M={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(P){var E=["th","st","nd","rd"],S=P%100;return"["+P+(E[(S-20)%10]||E[S]||E[0])+"]"}},I=function(P,E,S){var h=String(P);return!h||h.length>=E?P:""+Array(E+1-h.length).join(S)+P},H={s:I,z:function(P){var E=-P.utcOffset(),S=Math.abs(E),h=Math.floor(S/60),d=S%60;return(E<=0?"+":"-")+I(h,2,"0")+":"+I(d,2,"0")},m:function P(E,S){if(E.date()<S.date())return-P(S,E);var h=12*(S.year()-E.year())+(S.month()-E.month()),d=E.clone().add(h,m),v=S-d<0,b=E.clone().add(h+(v?-1:1),m);return+(-(h+(S-d)/(v?d-b:b-d))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:m,y:_,w:c,d:f,D:w,h:l,m:s,s:a,ms:o,Q:p}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},W="en",U={};U[W]=M;var re="$isDayjsObject",ie=function(P){return P instanceof xe||!(!P||!P[re])},ue=function P(E,S,h){var d;if(!E)return W;if(typeof E=="string"){var v=E.toLowerCase();U[v]&&(d=v),S&&(U[v]=S,d=v);var b=E.split("-");if(!d&&b.length>1)return P(b[0])}else{var g=E.name;U[g]=E,d=g}return!h&&d&&(W=d),d||!h&&W},te=function(P,E){if(ie(P))return P.clone();var S=typeof E=="object"?E:{};return S.date=P,S.args=arguments,new xe(S)},ee=H;ee.l=ue,ee.i=ie,ee.w=function(P,E){return te(P,{locale:E.$L,utc:E.$u,x:E.$x,$offset:E.$offset})};var xe=function(){function P(S){this.$L=ue(S.locale,null,!0),this.parse(S),this.$x=this.$x||S.x||{},this[re]=!0}var E=P.prototype;return E.parse=function(S){this.$d=function(h){var d=h.date,v=h.utc;if(d===null)return new Date(NaN);if(ee.u(d))return new Date;if(d instanceof Date)return new Date(d);if(typeof d=="string"&&!/Z$/i.test(d)){var b=d.match(R);if(b){var g=b[2]-1||0,O=(b[7]||"0").substring(0,3);return v?new Date(Date.UTC(b[1],g,b[3]||1,b[4]||0,b[5]||0,b[6]||0,O)):new Date(b[1],g,b[3]||1,b[4]||0,b[5]||0,b[6]||0,O)}}return new Date(d)}(S),this.init()},E.init=function(){var S=this.$d;this.$y=S.getFullYear(),this.$M=S.getMonth(),this.$D=S.getDate(),this.$W=S.getDay(),this.$H=S.getHours(),this.$m=S.getMinutes(),this.$s=S.getSeconds(),this.$ms=S.getMilliseconds()},E.$utils=function(){return ee},E.isValid=function(){return this.$d.toString()!==$},E.isSame=function(S,h){var d=te(S);return this.startOf(h)<=d&&d<=this.endOf(h)},E.isAfter=function(S,h){return te(S)<this.startOf(h)},E.isBefore=function(S,h){return this.endOf(h)<te(S)},E.$g=function(S,h,d){return ee.u(S)?this[h]:this.set(d,S)},E.unix=function(){return Math.floor(this.valueOf()/1e3)},E.valueOf=function(){return this.$d.getTime()},E.startOf=function(S,h){var d=this,v=!!ee.u(h)||h,b=ee.p(S),g=function(A,C){var V=ee.w(d.$u?Date.UTC(d.$y,C,A):new Date(d.$y,C,A),d);return v?V:V.endOf(f)},O=function(A,C){return ee.w(d.toDate()[A].apply(d.toDate("s"),(v?[0,0,0,0]:[23,59,59,999]).slice(C)),d)},j=this.$W,B=this.$M,G=this.$D,z="set"+(this.$u?"UTC":"");switch(b){case _:return v?g(1,0):g(31,11);case m:return v?g(1,B):g(0,B+1);case c:var L=this.$locale().weekStart||0,q=(j<L?j+7:j)-L;return g(v?G-q:G+(6-q),B);case f:case w:return O(z+"Hours",0);case l:return O(z+"Minutes",1);case s:return O(z+"Seconds",2);case a:return O(z+"Milliseconds",3);default:return this.clone()}},E.endOf=function(S){return this.startOf(S,!1)},E.$set=function(S,h){var d,v=ee.p(S),b="set"+(this.$u?"UTC":""),g=(d={},d[f]=b+"Date",d[w]=b+"Date",d[m]=b+"Month",d[_]=b+"FullYear",d[l]=b+"Hours",d[s]=b+"Minutes",d[a]=b+"Seconds",d[o]=b+"Milliseconds",d)[v],O=v===f?this.$D+(h-this.$W):h;if(v===m||v===_){var j=this.clone().set(w,1);j.$d[g](O),j.init(),this.$d=j.set(w,Math.min(this.$D,j.daysInMonth())).$d}else g&&this.$d[g](O);return this.init(),this},E.set=function(S,h){return this.clone().$set(S,h)},E.get=function(S){return this[ee.p(S)]()},E.add=function(S,h){var d,v=this;S=Number(S);var b=ee.p(h),g=function(B){var G=te(v);return ee.w(G.date(G.date()+Math.round(B*S)),v)};if(b===m)return this.set(m,this.$M+S);if(b===_)return this.set(_,this.$y+S);if(b===f)return g(1);if(b===c)return g(7);var O=(d={},d[s]=r,d[l]=i,d[a]=n,d)[b]||1,j=this.$d.getTime()+S*O;return ee.w(j,this)},E.subtract=function(S,h){return this.add(-1*S,h)},E.format=function(S){var h=this,d=this.$locale();if(!this.isValid())return d.invalidDate||$;var v=S||"YYYY-MM-DDTHH:mm:ssZ",b=ee.z(this),g=this.$H,O=this.$m,j=this.$M,B=d.weekdays,G=d.months,z=d.meridiem,L=function(C,V,y,x){return C&&(C[V]||C(h,v))||y[V].slice(0,x)},q=function(C){return ee.s(g%12||12,C,"0")},A=z||function(C,V,y){var x=C<12?"AM":"PM";return y?x.toLowerCase():x};return v.replace(F,function(C,V){return V||function(y){switch(y){case"YY":return String(h.$y).slice(-2);case"YYYY":return ee.s(h.$y,4,"0");case"M":return j+1;case"MM":return ee.s(j+1,2,"0");case"MMM":return L(d.monthsShort,j,G,3);case"MMMM":return L(G,j);case"D":return h.$D;case"DD":return ee.s(h.$D,2,"0");case"d":return String(h.$W);case"dd":return L(d.weekdaysMin,h.$W,B,2);case"ddd":return L(d.weekdaysShort,h.$W,B,3);case"dddd":return B[h.$W];case"H":return String(g);case"HH":return ee.s(g,2,"0");case"h":return q(1);case"hh":return q(2);case"a":return A(g,O,!0);case"A":return A(g,O,!1);case"m":return String(O);case"mm":return ee.s(O,2,"0");case"s":return String(h.$s);case"ss":return ee.s(h.$s,2,"0");case"SSS":return ee.s(h.$ms,3,"0");case"Z":return b}return null}(C)||b.replace(":","")})},E.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},E.diff=function(S,h,d){var v,b=this,g=ee.p(h),O=te(S),j=(O.utcOffset()-this.utcOffset())*r,B=this-O,G=function(){return ee.m(b,O)};switch(g){case _:v=G()/12;break;case m:v=G();break;case p:v=G()/3;break;case c:v=(B-j)/6048e5;break;case f:v=(B-j)/864e5;break;case l:v=B/i;break;case s:v=B/r;break;case a:v=B/n;break;default:v=B}return d?v:ee.a(v)},E.daysInMonth=function(){return this.endOf(m).$D},E.$locale=function(){return U[this.$L]},E.locale=function(S,h){if(!S)return this.$L;var d=this.clone(),v=ue(S,h,!0);return v&&(d.$L=v),d},E.clone=function(){return ee.w(this.$d,this)},E.toDate=function(){return new Date(this.valueOf())},E.toJSON=function(){return this.isValid()?this.toISOString():null},E.toISOString=function(){return this.$d.toISOString()},E.toString=function(){return this.$d.toUTCString()},P}(),Xe=xe.prototype;return te.prototype=Xe,[["$ms",o],["$s",a],["$m",s],["$H",l],["$W",f],["$M",m],["$y",_],["$D",w]].forEach(function(P){Xe[P[1]]=function(E){return this.$g(E,P[0],P[1])}}),te.extend=function(P,E){return P.$i||(P(E,xe,te),P.$i=!0),te},te.locale=ue,te.isDayjs=ie,te.unix=function(P){return te(1e3*P)},te.en=U[W],te.Ls=U,te.p={},te})})(wa);const ui=wa.exports,Fn=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"]),Ne.trueArray(o[i.children||"children"])&&Fn(t,o[i.children||"children"],n,r)}),t},L0=function(t,e){return e.forEach(n=>{t.indexOf(n.value)>-1&&(t[t.indexOf(n.value)]=n.label)}),t};function It(t){if(t){if(!Array.isArray(t))return[t]}else return[];return t}function z0(t,e){let n=e.rule.value;const r=(...s)=>e.$render.vNode.h(...s),i=e.type,o=e.$handle.subForm[e.id],a=e.prop.readMode;if(e.prop.title.title&&e.prop.title.title.trim()&&(e.prop.title.title+="\uFF1A"),a===!1||a==="custom"||!e.input||e.rule.subForm||(Array.isArray(o)?o.length:o)||["fcGroup","fcSubForm","tableForm","tableFormPro","fcJson","stepForm","nestedTableForm","infiniteTableForm","fcUpload","fcDialog","fcDrawer","fcPopup"].indexOf(e.trueType)>-1)return e.trueType==="fcUpload"&&(e.prop.props.disabled=!0),e.parser.render(t,e);if(["radio","select","checkbox"].indexOf(i)>-1)n=L0([...It(n)],e.prop.props.options||e.prop.props.formCreateInject.options||[]).join(", ");else if(["timePicker","datePicker","slider"].indexOf(i)>-1)i==="datePicker"&&e.prop.props.format&&(n=Array.isArray(n)?n.map(s=>s?ui(s).format(e.prop.props.format):""):n?ui(n).format(e.prop.props.format):""),n=Array.isArray(n)?n.join(" - "):n;else if(i==="cascader")n=[...It(n)],Array.isArray(n[0])||(n=[n]),n=n.map(s=>Fn(s,e.prop.props.options||e.prop.props.formCreateInject.options||[],"value",e.prop.props.props).join("/")).join(", ");else if(i==="elTransfer"){const s=[...It(n)];n=Fn(s,e.prop.props.data||e.prop.props.formCreateInject.options||[],"key").join(", ")}else if(i==="fcDataSelect")n=[...It(n)].map(l=>l[e.prop.props.labelKey||"label"]).join(", ");else if(["tree","elTreeSelect"].indexOf(i)>-1){const s=e.prop.props.data||e.prop.props.formCreateInject.options||[];n=Fn([...It(n)],s,i==="elTreeSelect"?"value":"id").join(", ")}else{if(i==="fcEditor"||a==="html")return r("div",{innerHTML:n});if(a==="image")return n=It(n),r("div",{class:"_fc-upload"},n.map(function(s){return r("div",{class:"_fc-upload-preview"},[r("el-image",{src:(s==null?void 0:s.url)||s,previewSrcList:n.map(l=>(l==null?void 0:l.url)||l),previewTeleported:!0,fit:"cover"})])}));if((i==="switch"||i==="el-switch")&&(e.prop.props.activeValue!=null||e.prop.props.inactiveValue!=null))n=e.prop.props.activeValue===n?"\u662F":"\u5426";else{if(i==="signaturePad"&&n)return r("el-image",{src:n,previewTeleported:!0,fit:"cover",style:{height:"90px"}});typeof n=="boolean"&&(n=n?"\u662F":"\u5426")}}return r("span",{class:"_fc-read-view",style:{whiteSpace:"pre-line"}},[""+(n==null?"":n)])}function $a(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 Mt={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)}},U0="YYYY-MM-DD HH:mm:ss",pt=(t,e)=>t==null?e:t,Ee={ADD:function(t,e){return Mt.Add(pt(t,"0"),pt(e,"0"))},SUB:function(t,e){return Mt.Sub(pt(t,"0"),pt(e,"0"))},MUL:function(t,e){return Mt.Mul(pt(t,"0"),pt(e,"0"))},DIV:function(t,e){return Mt.Div(pt(t,"0"),pt(e,"0"))},SUM:function(...t){return(t||[]).reduce((e,n)=>Mt.Add(e,Array.isArray(n)?Ee.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?Mt.Div(Ee.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=ui(t);return e>0?i=i.add(e,n):e<0&&(i=i.subtract(-1*e,n)),i.format(r||U0)},ADDYEAR:function(t,e,n){return Ee.MODIFYDATE(t,Math.max(e,0),"y",n)},ADDMONTH:function(t,e,n){return Ee.MODIFYDATE(t,Math.max(e,0),"M",n)},ADDDAY:function(t,e,n){return Ee.MODIFYDATE(t,Math.max(e,0),"d",n)},ADDHOUR:function(t,e,n){return Ee.MODIFYDATE(t,Math.max(e,0),"h",n)},ADDMINUTE:function(t,e,n){return Ee.MODIFYDATE(t,Math.max(e,0),"m",n)},ADDSECOND:function(t,e,n){return Ee.MODIFYDATE(t,Math.max(e,0),"s",n)},ADDWEEK:function(t,e,n){return Ee.MODIFYDATE(t,Math.max(e,0),"w",n)},SUBYEAR:function(t,e,n){return e=Math.max(e,0),Ee.MODIFYDATE(t,e>0?-1*e:0,"y",n)},SUBMONTH:function(t,e,n){return e=Math.max(e,0),Ee.MODIFYDATE(t,e>0?-1*e:0,"M",n)},SUBDAY:function(t,e,n){return e=Math.max(e,0),Ee.MODIFYDATE(t,e>0?-1*e:0,"d",n)},SUBHOUR:function(t,e,n){return e=Math.max(e,0),Ee.MODIFYDATE(t,e>0?-1*e:0,"h",n)},SUBMINUTE:function(t,e,n){return e=Math.max(e,0),Ee.MODIFYDATE(t,e>0?-1*e:0,"m",n)},SUBSECOND:function(t,e,n){return e=Math.max(e,0),Ee.MODIFYDATE(t,e>0?-1*e:0,"s",n)},SUBWEEK:function(t,e,n){return e=Math.max(e,0),Ee.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 Ne.empty(t)},NOTEMPTY:function(t){return!Ne.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(p){let _="",w="",$=0,R=!0;for(;p>0;){let F=p%10;F===0?R||(R=!0,w=e[F]+w):(R=!1,_=e[F],_+=r[$],w=_+w),$++,p=Math.floor(p/10)}return w}let a=0,s="",l="",f=!1;if(t===0)return e[0];let c=Math.floor(t),m=Math.round((t-c)*100);for(;c>0;){let p=c%1e4;f&&(l=e[0]+l),s=o(p),s+=p!==0?n[a]:n[0],l=s+l,f=p<1e3&&p>0,c=Math.floor(c/1e4),a++}return l&&(l+="\u5143"),m>0?(l+=e[Math.floor(m/10)]+i[0],m%10!==0&&(l+=e[m%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 Ne.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(...Ee.COLUMN(r,e)):r&&n.push(r[e])}),n},VALUE:function(t,e,n){return $a(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 Ne.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 $a(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)}}};function q0(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")}N0("\u5DF2\u590D\u5236!","success"),document.body.removeChild(e)}function G0(t){return t.filter((e,n)=>t.indexOf(e)===n)}const $1="",H0=u.defineComponent({name:"FcDataSelect",components:{FcDialog:ho},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:ur(()=>{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=G0([...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=li([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=lr())),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())}}}),W0={class:"_fc-data-select"};function Y0(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",W0,[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 X0=$e(H0,[["render",Y0]]),S1="",k1="",J0=(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]]},jn=(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]=J0(r,e)),i.forEach(a=>{Object.values(a.ctxs).forEach(s=>{s.rule._fc_id===o&&n(s.rule,a.api)})})},Sa={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=>{jn(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=>{jn(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=>{jn(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)),jn(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)),q0(r)},callback(t,e){return t.callback&&t.callback(e)},message(t){nt.ElMessage(t||{})}};function ka(t,e){return t.reduce((n,r)=>n.then(()=>r(e)),Promise.resolve())}const K0=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:m,expression:p,stopPropagation:_,ignoreError:w}=f;l.push($=>new Promise(R=>{if(c==="condition"){const I=[];(f.children||[]).forEach(H=>{try{t.$handle.compute(n.__fc__,H.config)!==!1&&I.push(ka(a(H.children||[]),$))}catch(W){console.error(W)}}),I.length?Promise.allSettled(I).then(H=>{H.filter(U=>U.status==="fulfilled").length&&R()}):(!f.children||!f.children.length)&&R();return}if(p&&t.$handle.compute(n.__fc__,p)===!1){R();return}const F=(...I)=>{(!_||t.$handle.compute(n.__fc__,_)!==!0)&&R(...I)};let M;try{M=Sa[c](m||{},$,t)}catch(I){console.error(I),w!==!1&&F();return}M&&M.then?M.then(F).catch(()=>{w!==!1&&F()}):F(M)}))}),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){ka(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){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}function Q0(t){t.__proto__.setBehavior=e=>{fo(Sa,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 e1(t){t.extendApi(e=>({message(n){return nt.ElMessage(n||{})}}))}function t1(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=>{Be.isDefined("html2canvas")||Be.loadNpm("html2canvas@1.4.1/dist/html2canvas.min.js","html2canvas"),Be.isDefined("jspdf")||Be.loadNpm("jspdf@3.0.1/dist/jspdf.umd.js","jspdf"),Be.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 m=new window.jspdf.jsPDF({orientation:"p",unit:"pt",format:(s.format||"a4").toLowerCase()});i(c.getContext("2d"));const{left:p,right:_,top:w,bottom:$}=s,R=m.internal.pageSize.getWidth(),F=m.internal.pageSize.getHeight(),M=R-p-_,I=F-w-$,H=c.height*M/c.width;if(H<=I)m.addImage(c.toDataURL("image/jpeg"),"JPEG",p,w,M,H);else{let W=H,U=0;const re=c.width*I/M;for(;W>0;){const ie=document.createElement("canvas"),ue=ie.getContext("2d");i(ue);const te=U*re,ee=Math.min(re,c.height-te);ie.width=c.width,ie.height=ee,ue.drawImage(c,0,te,c.width,ee,0,0,c.width,ee);const xe=ee/c.height*H;m.addImage(ie.toDataURL("image/jpeg"),"JPEG",p,w,M,xe),W-=I,W>0&&(m.addPage(),U++)}}return l(m)}).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"))})}}})}const xa={components:{},mobileComponents:{},updateFormCreate(t){}};pe.parser().preview=z0;function Ca(t){Object.keys(Ee).forEach(e=>{t.setFormula(e,Ee[e])}),Q0(t),e1(t),t1(t),t.register("behavior",K0),t.register("easySlots",Z0)}Ca(pe),pe.component("FcSlot",_u),pe.component("FcJson",yu),pe.component("DataTable",cu),pe.component("FcCell",B0),pe.component("TableForm",Mu),pe.component("TableFormPro",zu),pe.component("StepForm",Su),pe.component("FcValue",vu),pe.component("FcCity",Hu),pe.component("FcTable",hu),pe.component("NestedTableForm",Au),pe.component("InfiniteTableForm",Vu),pe.component("FcDialog",ho),pe.component("FcDrawer",ec),pe.component("FcInlineForm",Eu),pe.component("AudioBox",mf),pe.component("VideoBox",O0),pe.component("BarCodeBox",k0),pe.component("IframeBox",yf),pe.component("QrCodeBox",V0),pe.component("SignaturePad",pc),pe.component("FcEcharts",ic),pe.component("FcTitle",kc),pe.component("FcMarkdown",cf),pe.component("FcDataSelect",X0),pe.component("FcId",wc),pe.loadjs=Be,Object.keys(xa.components).forEach(t=>{pe.component(t,xa.components[t])}),De.default=pe,De.useAdvanced=Ca,Object.defineProperties(De,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|