cnhis-design-vue 0.3.2-beta → 0.3.5-beta

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.
Files changed (82) hide show
  1. package/env.d.ts +2 -0
  2. package/es/big-table/index.css +1 -0
  3. package/es/big-table/index.js +97 -64
  4. package/es/button-print/index.css +1 -0
  5. package/es/button-print/index.js +8806 -11
  6. package/es/drag-layout/index.css +2 -1
  7. package/es/drag-layout/index.js +33 -58
  8. package/es/grid/index.css +2 -1
  9. package/es/grid/index.js +3 -4
  10. package/es/index.css +2 -1
  11. package/es/index.js +9467 -664
  12. package/package.json +5 -2
  13. package/packages/big-table/index.ts +17 -0
  14. package/packages/big-table/src/BigTable.vue +2514 -0
  15. package/packages/big-table/src/assets/iconfont/iconfont.less +21 -0
  16. package/packages/big-table/src/assets/iconfont/iconfont.ttf +0 -0
  17. package/packages/big-table/src/assets/img/failure.png +0 -0
  18. package/packages/big-table/src/assets/img/icon-asc.png +0 -0
  19. package/packages/big-table/src/assets/img/icon-desc.png +0 -0
  20. package/packages/big-table/src/assets/img/no-permission.png +0 -0
  21. package/packages/big-table/src/assets/img/nodata.png +0 -0
  22. package/packages/big-table/src/assets/img/notfound.png +0 -0
  23. package/packages/big-table/src/assets/img/qr.png +0 -0
  24. package/packages/big-table/src/assets/img/video_default_cover.png +0 -0
  25. package/packages/big-table/src/assets/img/xb_big.png +0 -0
  26. package/packages/big-table/src/assets/img/xb_small.png +0 -0
  27. package/packages/big-table/src/assets/style/table-base.less +275 -0
  28. package/packages/big-table/src/assets/style/table-global.less +167 -0
  29. package/packages/big-table/src/bigTableEmits.ts +46 -0
  30. package/packages/big-table/src/bigTableProps.ts +125 -0
  31. package/packages/big-table/src/bigTableState.ts +62 -0
  32. package/packages/big-table/src/components/NoData.vue +90 -0
  33. package/packages/big-table/src/components/SvgIcon.vue +49 -0
  34. package/packages/big-table/src/components/TextOverTooltip.vue +110 -0
  35. package/packages/big-table/src/components/edit-form/EditForm.vue +426 -0
  36. package/packages/big-table/src/components/edit-form/edit-component/edit-date-picker/edit-date-picker.vue +66 -0
  37. package/packages/big-table/src/components/edit-form/edit-component/edit-digital/edit-digital.vue +60 -0
  38. package/packages/big-table/src/components/edit-form/edit-component/edit-input/edit-input.vue +38 -0
  39. package/packages/big-table/src/components/edit-form/edit-component/edit-input-password/edit-input-password.vue +89 -0
  40. package/packages/big-table/src/components/edit-form/edit-component/edit-month-picker/edit-month-picker.vue +38 -0
  41. package/packages/big-table/src/components/edit-form/edit-component/edit-search/edit-search.vue +63 -0
  42. package/packages/big-table/src/components/edit-form/edit-component/edit-search-more/edit-search-more.vue +69 -0
  43. package/packages/big-table/src/components/edit-form/edit-component/edit-select/edit-select.vue +51 -0
  44. package/packages/big-table/src/components/edit-form/edit-component/edit-select-multiple/edit-select-multiple.vue +60 -0
  45. package/packages/big-table/src/components/edit-form/edit-component/edit-textarea/edit-textarea.vue +34 -0
  46. package/packages/big-table/src/components/edit-form/edit-component/edit-time-picker/edit-time-picker.vue +42 -0
  47. package/packages/big-table/src/components/edit-form/edit-component/editFormProps.ts +91 -0
  48. package/packages/big-table/src/components/edit-form/edit-component/register-com.ts +18 -0
  49. package/packages/big-table/src/components/edit-form/hooks/useConfigData.ts +79 -0
  50. package/packages/big-table/src/components/edit-form/hooks/useDateType.ts +184 -0
  51. package/packages/big-table/src/components/edit-form/hooks/useFormCommon.ts +373 -0
  52. package/packages/big-table/src/components/edit-form/hooks/useItemDefault.ts +638 -0
  53. package/packages/big-table/src/components/edit-form/hooks/useSearch.ts +910 -0
  54. package/packages/big-table/src/components/edit-form/hooks/useValidateRules.ts +387 -0
  55. package/packages/big-table/src/components/edit-form/interface.ts +53 -0
  56. package/packages/big-table/src/components/edit-form/types.ts +3 -0
  57. package/packages/big-table/src/components/edit-form/utils.ts +247 -0
  58. package/packages/big-table/src/hooks/useBatchEditing.ts +574 -0
  59. package/packages/big-table/src/hooks/useFormat.ts +612 -0
  60. package/packages/big-table/src/hooks/useNestTable.ts +109 -0
  61. package/packages/big-table/src/hooks/useTableParse.ts +169 -0
  62. package/packages/big-table/src/utils.ts +705 -0
  63. package/packages/button-print/index.ts +15 -0
  64. package/packages/button-print/src/ButtonPrint.vue +697 -0
  65. package/packages/button-print/src/components/IdentityVerification.vue +149 -0
  66. package/packages/button-print/src/interfaces.ts +19 -0
  67. package/packages/button-print/src/utils/crypto.js +25 -0
  68. package/packages/button-print/src/utils/print.es.min.js +1 -0
  69. package/packages/drag-layout/index.ts +15 -0
  70. package/packages/drag-layout/src/DragFormLeftItem.vue +131 -0
  71. package/packages/drag-layout/src/DragFormRightItem.vue +277 -0
  72. package/packages/drag-layout/src/DragLayout.vue +712 -0
  73. package/packages/grid/index.ts +17 -0
  74. package/packages/grid/src/Grid.tsx +22 -0
  75. package/packages/grid/src/hooks.ts +168 -0
  76. package/packages/index.ts +36 -0
  77. package/src/component/svg/index.vue +49 -0
  78. package/src/core/create.ts +5 -0
  79. package/src/global/variable.ts +2 -0
  80. package/src/utils/clickoutside.ts +80 -0
  81. package/src/utils/crypto.js +25 -0
  82. package/src/utils/vexutils.ts +811 -0
@@ -0,0 +1,149 @@
1
+ <template>
2
+ <NModal
3
+ preset="dialog"
4
+ :title="identityVerificationTitle"
5
+ class="standard-modal standard-modal-white authentication-modal"
6
+ :show="visible"
7
+ :close-on-esc="false"
8
+ :show-icon="false"
9
+ :style="{ width: style.width, maxHeight: style.height, overflowY: 'auto' }"
10
+ @after-leave="handleClickClose"
11
+ >
12
+ <div class="content">
13
+ <NForm class="login-form" ref="formRef" :model="form" :rules="rules">
14
+ <NFormItem path="account">
15
+ <NInput v-model:value="form.account" placeholder="请输入账号" />
16
+ </NFormItem>
17
+ <NFormItem path="password">
18
+ <NInput type="password" v-model:value="form.password" placeholder="请输入密码" />
19
+ </NFormItem>
20
+ <NFormItem>
21
+ <NButton type="primary" class="login-form-button" @click="handleClickSubmit">登录</NButton>
22
+ </NFormItem>
23
+ </NForm>
24
+ </div>
25
+ </NModal>
26
+ </template>
27
+
28
+ <script lang="ts">
29
+ export default {
30
+ name: "IdentityVerificationModal"
31
+ }
32
+ </script>
33
+
34
+ <script setup lang="ts">
35
+ import { ref, reactive, computed, watch, onMounted, nextTick } from 'vue'
36
+ import { NButton, NModal, NForm, NFormItem, NInput, FormRules, FormInst } from 'naive-ui'
37
+ import { useMessage } from 'naive-ui'
38
+ import axios from 'axios';
39
+ import crypto from '../utils/crypto.js';
40
+ // const crypto:any = import.meta.globEager('./utils/crypto.js');
41
+
42
+ (window as any).$message = useMessage()
43
+
44
+ let httpFn: any = null;
45
+ const DEFAULT_FORM = {
46
+ account: '',
47
+ password: ''
48
+ };
49
+
50
+ const props = withDefaults(defineProps<{
51
+ visible: boolean
52
+ baseUrl: string
53
+ verifyUserUrl?: string
54
+ identityVerificationTitle?: string
55
+ printConfig?: any
56
+ }>(), {
57
+ verifyUserUrl: '/verifyUser',
58
+ printConfig: () => {}
59
+ })
60
+
61
+ const emit = defineEmits(['update:visible', 'success']);
62
+
63
+ let form = reactive(JSON.parse(JSON.stringify(DEFAULT_FORM)))
64
+ const rules: FormRules = {
65
+ account: { required: true, message: '请输入账号' },
66
+ password: { required: true, message: '请输入密码' }
67
+ }
68
+ const style = {
69
+ width: '416px',
70
+ height: '328px'
71
+ }
72
+ const formRef = ref<FormInst | null>(null)
73
+
74
+ const handleClickClose = () => {
75
+ emit('update:visible', false);
76
+ }
77
+ const submit = () => {
78
+ const url = `${props.baseUrl}${props.verifyUserUrl}`;
79
+
80
+ return httpFn({
81
+ method: 'POST',
82
+ url,
83
+ data: `loginName=${form.account}&password=${crypto.encrypt(form.password)}`
84
+ })
85
+ .then(async ({ data = {} }) => {
86
+ if ((data as any).result !== 'SUCCESS') {
87
+ (window as any).$message.error((data as any).resultMsg);
88
+ return false;
89
+ }
90
+ emit('success', (data as any).map?.token);
91
+ return data;
92
+ })
93
+ .catch((e: any) => {
94
+ return false;
95
+ });
96
+ }
97
+ const handleClickSubmit = () => {
98
+ formRef.value?.validate((errors) => {
99
+ if (!errors) {
100
+ submit();
101
+ } else {
102
+ console.log(errors);
103
+ return false;
104
+ }
105
+ });
106
+ }
107
+
108
+ onMounted(() => {
109
+ let config: any = {
110
+ withCredentials: false,
111
+ timeout: 5000
112
+ };
113
+ let printUrlPrefix = props?.printConfig?.printUrlPrefix;
114
+ if (printUrlPrefix) {
115
+ config.baseURL = printUrlPrefix;
116
+ }
117
+ httpFn = axios.create({
118
+ ...config
119
+ });
120
+ })
121
+
122
+ watch(() => props.visible,
123
+ (val: any) => {
124
+ if (val) return;
125
+ form = JSON.parse(JSON.stringify(DEFAULT_FORM));
126
+ }
127
+ )
128
+
129
+ </script>
130
+ <style lang="less" scoped>
131
+ .login-form {
132
+ padding-top: 15px;
133
+ &:deep(.n-input) {
134
+ height: 50px;
135
+ font-size: 14px;
136
+ color: #757575;
137
+ border-radius: 6px;
138
+ }
139
+ }
140
+ .login-form-button {
141
+ width: 100%;
142
+ height: 50px;
143
+ background: #2d7aff;
144
+ border-radius: 24px;
145
+ border-color: #2d7aff !important;
146
+ font-size: 16px;
147
+ color: #ffffff;
148
+ }
149
+ </style>
@@ -0,0 +1,19 @@
1
+ export interface Props {
2
+ baseUrl: string
3
+ btnText?: string
4
+ printText?: string
5
+ previewText?: string
6
+ formatEditText?: string
7
+ identityVerificationTitle?: string
8
+ authorizationKey: string
9
+ templateNumber: number | string
10
+ params: any[],
11
+ hisParams: any
12
+ prevFn?: Function
13
+ verifyUserUrl?: string
14
+ getPrintFormatByNumberUrl?: string
15
+ getTemplateParamsUrl?: string
16
+ strategy?: string
17
+ printConfig?: any
18
+ versionType?: number | string
19
+ }
@@ -0,0 +1,25 @@
1
+ import CryptoJS from "crypto-js";
2
+
3
+ // 加密
4
+ function encrypt(word) {
5
+ const key = CryptoJS.enc.Utf8.parse("0D7FB71E8EC31E97");
6
+ const srcs = CryptoJS.enc.Utf8.parse(word);
7
+ const encrypted = CryptoJS.AES.encrypt(srcs, key, {
8
+ mode: CryptoJS.mode.ECB,
9
+ padding: CryptoJS.pad.Pkcs7
10
+ });
11
+ return encrypted.toString();
12
+ }
13
+ // 解密
14
+ function decrypt(word) {
15
+ const key = CryptoJS.enc.Utf8.parse("0D7FB71E8EC31E97");
16
+ const decrypt = CryptoJS.AES.decrypt(word, key, {
17
+ mode: CryptoJS.mode.ECB,
18
+ padding: CryptoJS.pad.Pkcs7
19
+ });
20
+ return CryptoJS.enc.Utf8.stringify(decrypt).toString();
21
+ }
22
+ export default {
23
+ encrypt,
24
+ decrypt
25
+ };
@@ -0,0 +1 @@
1
+ function t(t,e,r,n,o,i,a){try{var u=t[i](a),s=u.value}catch(t){return void r(t)}u.done?e(s):Promise.resolve(s).then(n,o)}function e(e){return function(){var r=this,n=arguments;return new Promise((function(o,i){var a=e.apply(r,n);function u(e){t(a,o,i,u,s,"next",e)}function s(e){t(a,o,i,u,s,"throw",e)}u(void 0)}))}}function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function n(t,e){if(t!==e)throw new TypeError("Cannot instantiate an arrow function")}var o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(t,e){return t(e={exports:{}},e.exports),e.exports}i((function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o=e&&e.prototype instanceof m?e:m,i=Object.create(o.prototype),a=new k(n||[]);return i._invoke=function(t,e,r){var n=l;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw i;return T()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=j(a,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var s=f(t,e,r);if("normal"===s.type){if(n=r.done?d:p,s.arg===v)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=d,r.method="throw",r.arg=s.arg)}}}(t,r,a),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var l="suspendedStart",p="suspendedYield",h="executing",d="completed",v={};function m(){}function g(){}function y(){}var b={};s(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(P([])));x&&x!==r&&n.call(x,i)&&(b=x);var E=y.prototype=m.prototype=Object.create(b);function O(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(o,i,a,u){var s=f(t[o],t,i);if("throw"!==s.type){var c=s.arg,l=c.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return r("throw",t,a,u)}))}u(s.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function j(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,j(t,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=f(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function R(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function P(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:T}}function T(){return{value:e,done:!0}}return g.prototype=y,s(E,"constructor",y),s(y,"constructor",g),g.displayName=s(y,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,s(t,u,"GeneratorFunction")),t.prototype=Object.create(E),t},t.awrap=function(t){return{__await:t}},O(S.prototype),s(S.prototype,a,(function(){return this})),t.AsyncIterator=S,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new S(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(E),s(E,u,"Generator"),s(E,i,(function(){return this})),s(E,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=P,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(R),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),R(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;R(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:P(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}));var a,u,s=function(t){return t&&t.Math==Math&&t},c=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof o&&o)||function(){return this}()||Function("return this")(),f=Object.defineProperty,l=function(t,e){try{f(c,t,{value:e,configurable:!0,writable:!0})}catch(r){c[t]=e}return e},p=c["__core-js_shared__"]||l("__core-js_shared__",{}),h=i((function(t){(t.exports=function(t,e){return p[t]||(p[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),d=Function.prototype,v=d.bind,m=d.call,g=v&&v.bind(m),y=v?function(t){return t&&g(m,t)}:function(t){return t&&function(){return m.apply(t,arguments)}},b=c.TypeError,w=function(t){if(null==t)throw b("Can't call method on "+t);return t},x=c.Object,E=function(t){return x(w(t))},O=y({}.hasOwnProperty),S=Object.hasOwn||function(t,e){return O(E(t),e)},j=0,_=Math.random(),R=y(1..toString),k=function(t){return"Symbol("+(void 0===t?"":t)+")_"+R(++j+_,36)},P=function(t){return"function"==typeof t},T=function(t){return P(t)?t:void 0},I=function(t,e){return arguments.length<2?T(c[t]):c[t]&&c[t][e]},C=I("navigator","userAgent")||"",N=c.process,A=c.Deno,L=N&&N.versions||A&&A.version,D=L&&L.v8;D&&(u=(a=D.split("."))[0]>0&&a[0]<4?1:+(a[0]+a[1])),!u&&C&&(!(a=C.match(/Edge\/(\d+)/))||a[1]>=74)&&(a=C.match(/Chrome\/(\d+)/))&&(u=+a[1]);var F=u,U=function(t){try{return!!t()}catch(t){return!0}},M=!!Object.getOwnPropertySymbols&&!U((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&F&&F<41})),B=M&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,q=h("wks"),H=c.Symbol,J=H&&H.for,z=B?H:H&&H.withoutSetter||k,G=function(t){if(!S(q,t)||!M&&"string"!=typeof q[t]){var e="Symbol."+t;M&&S(H,t)?q[t]=H[t]:q[t]=B&&J?J(e):z(e)}return q[t]},W={};W[G("toStringTag")]="z";var Y="[object z]"===String(W),$=!U((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),K=function(t){return"object"==typeof t?null!==t:P(t)},X=c.document,V=K(X)&&K(X.createElement),Q=function(t){return V?X.createElement(t):{}},Z=!$&&!U((function(){return 7!=Object.defineProperty(Q("div"),"a",{get:function(){return 7}}).a})),tt=c.String,et=c.TypeError,rt=function(t){if(K(t))return t;throw et(tt(t)+" is not an object")},nt=Function.prototype.call,ot=nt.bind?nt.bind(nt):function(){return nt.apply(nt,arguments)},it=y({}.isPrototypeOf),at=c.Object,ut=B?function(t){return"symbol"==typeof t}:function(t){var e=I("Symbol");return P(e)&&it(e.prototype,at(t))},st=c.String,ct=function(t){try{return st(t)}catch(t){return"Object"}},ft=c.TypeError,lt=function(t){if(P(t))return t;throw ft(ct(t)+" is not a function")},pt=function(t,e){var r=t[e];return null==r?void 0:lt(r)},ht=c.TypeError,dt=c.TypeError,vt=G("toPrimitive"),mt=function(t,e){if(!K(t)||ut(t))return t;var r,n=pt(t,vt);if(n){if(void 0===e&&(e="default"),r=ot(n,t,e),!K(r)||ut(r))return r;throw dt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var r,n;if("string"===e&&P(r=t.toString)&&!K(n=ot(r,t)))return n;if(P(r=t.valueOf)&&!K(n=ot(r,t)))return n;if("string"!==e&&P(r=t.toString)&&!K(n=ot(r,t)))return n;throw ht("Can't convert object to primitive value")}(t,e)},gt=function(t){var e=mt(t,"string");return ut(e)?e:e+""},yt=c.TypeError,bt=Object.defineProperty,wt={f:$?bt:function(t,e,r){if(rt(t),e=gt(e),rt(r),Z)try{return bt(t,e,r)}catch(t){}if("get"in r||"set"in r)throw yt("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},xt=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Et=$?function(t,e,r){return wt.f(t,e,xt(1,r))}:function(t,e,r){return t[e]=r,t},Ot=y(Function.toString);P(p.inspectSource)||(p.inspectSource=function(t){return Ot(t)});var St,jt,_t,Rt=p.inspectSource,kt=c.WeakMap,Pt=P(kt)&&/native code/.test(Rt(kt)),Tt=h("keys"),It=function(t){return Tt[t]||(Tt[t]=k(t))},Ct={},Nt=c.TypeError,At=c.WeakMap;if(Pt||p.state){var Lt=p.state||(p.state=new At),Dt=y(Lt.get),Ft=y(Lt.has),Ut=y(Lt.set);St=function(t,e){if(Ft(Lt,t))throw new Nt("Object already initialized");return e.facade=t,Ut(Lt,t,e),e},jt=function(t){return Dt(Lt,t)||{}},_t=function(t){return Ft(Lt,t)}}else{var Mt=It("state");Ct[Mt]=!0,St=function(t,e){if(S(t,Mt))throw new Nt("Object already initialized");return e.facade=t,Et(t,Mt,e),e},jt=function(t){return S(t,Mt)?t[Mt]:{}},_t=function(t){return S(t,Mt)}}var Bt={set:St,get:jt,has:_t,enforce:function(t){return _t(t)?jt(t):St(t,{})},getterFor:function(t){return function(e){var r;if(!K(e)||(r=jt(e)).type!==t)throw Nt("Incompatible receiver, "+t+" required");return r}}},qt=Function.prototype,Ht=$&&Object.getOwnPropertyDescriptor,Jt=S(qt,"name"),zt={EXISTS:Jt,PROPER:Jt&&"something"===function(){}.name,CONFIGURABLE:Jt&&(!$||$&&Ht(qt,"name").configurable)},Gt=i((function(t){var e=zt.CONFIGURABLE,r=Bt.get,n=Bt.enforce,o=String(String).split("String");(t.exports=function(t,r,i,a){var u,s=!!a&&!!a.unsafe,f=!!a&&!!a.enumerable,p=!!a&&!!a.noTargetGet,h=a&&void 0!==a.name?a.name:r;P(i)&&("Symbol("===String(h).slice(0,7)&&(h="["+String(h).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!S(i,"name")||e&&i.name!==h)&&Et(i,"name",h),(u=n(i)).source||(u.source=o.join("string"==typeof h?h:""))),t!==c?(s?!p&&t[r]&&(f=!0):delete t[r],f?t[r]=i:Et(t,r,i)):f?t[r]=i:l(r,i)})(Function.prototype,"toString",(function(){return P(this)&&r(this).source||Rt(this)}))})),Wt=y({}.toString),Yt=y("".slice),$t=function(t){return Yt(Wt(t),8,-1)},Kt=G("toStringTag"),Xt=c.Object,Vt="Arguments"==$t(function(){return arguments}()),Qt=Y?$t:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Xt(t),Kt))?r:Vt?$t(e):"Object"==(n=$t(e))&&P(e.callee)?"Arguments":n},Zt=Y?{}.toString:function(){return"[object "+Qt(this)+"]"};Y||Gt(Object.prototype,"toString",Zt,{unsafe:!0});var te={}.propertyIsEnumerable,ee=Object.getOwnPropertyDescriptor,re={f:ee&&!te.call({1:2},1)?function(t){var e=ee(this,t);return!!e&&e.enumerable}:te},ne=c.Object,oe=y("".split),ie=U((function(){return!ne("z").propertyIsEnumerable(0)}))?function(t){return"String"==$t(t)?oe(t,""):ne(t)}:ne,ae=function(t){return ie(w(t))},ue=Object.getOwnPropertyDescriptor,se={f:$?ue:function(t,e){if(t=ae(t),e=gt(e),Z)try{return ue(t,e)}catch(t){}if(S(t,e))return xt(!ot(re.f,t,e),t[e])}},ce=Math.ceil,fe=Math.floor,le=function(t){var e=+t;return e!=e||0===e?0:(e>0?fe:ce)(e)},pe=Math.max,he=Math.min,de=function(t,e){var r=le(t);return r<0?pe(r+e,0):he(r,e)},ve=Math.min,me=function(t){return t>0?ve(le(t),9007199254740991):0},ge=function(t){return me(t.length)},ye=function(t){return function(e,r,n){var o,i=ae(e),a=ge(i),u=de(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},be={includes:ye(!0),indexOf:ye(!1)}.indexOf,we=y([].push),xe=function(t,e){var r,n=ae(t),o=0,i=[];for(r in n)!S(Ct,r)&&S(n,r)&&we(i,r);for(;e.length>o;)S(n,r=e[o++])&&(~be(i,r)||we(i,r));return i},Ee=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Oe=Ee.concat("length","prototype"),Se={f:Object.getOwnPropertyNames||function(t){return xe(t,Oe)}},je={f:Object.getOwnPropertySymbols},_e=y([].concat),Re=I("Reflect","ownKeys")||function(t){var e=Se.f(rt(t)),r=je.f;return r?_e(e,r(t)):e},ke=function(t,e){for(var r=Re(e),n=wt.f,o=se.f,i=0;i<r.length;i++){var a=r[i];S(t,a)||n(t,a,o(e,a))}},Pe=/#|\.prototype\./,Te=function(t,e){var r=Ce[Ie(t)];return r==Ae||r!=Ne&&(P(e)?U(e):!!e)},Ie=Te.normalize=function(t){return String(t).replace(Pe,".").toLowerCase()},Ce=Te.data={},Ne=Te.NATIVE="N",Ae=Te.POLYFILL="P",Le=Te,De=se.f,Fe=function(t,e){var r,n,o,i,a,u=t.target,s=t.global,f=t.stat;if(r=s?c:f?c[u]||l(u,{}):(c[u]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=De(r,n))&&a.value:r[n],!Le(s?n:u+(f?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;ke(i,o)}(t.sham||o&&o.sham)&&Et(i,"sham",!0),Gt(r,n,i,t)}},Ue=c.Promise,Me=c.String,Be=c.TypeError,qe=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=y(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return rt(r),function(t){if("object"==typeof t||P(t))return t;throw Be("Can't set "+Me(t)+" as a prototype")}(n),e?t(r,n):r.__proto__=n,r}}():void 0),He=wt.f,Je=G("toStringTag"),ze=G("species"),Ge=c.TypeError,We=y(y.bind),Ye=function(t,e){return lt(t),void 0===e?t:We?We(t,e):function(){return t.apply(e,arguments)}},$e={},Ke=G("iterator"),Xe=Array.prototype,Ve=G("iterator"),Qe=function(t){if(null!=t)return pt(t,Ve)||pt(t,"@@iterator")||$e[Qt(t)]},Ze=c.TypeError,tr=function(t,e,r){var n,o;rt(t);try{if(!(n=pt(t,"return"))){if("throw"===e)throw r;return r}n=ot(n,t)}catch(t){o=!0,n=t}if("throw"===e)throw r;if(o)throw n;return rt(n),r},er=c.TypeError,rr=function(t,e){this.stopped=t,this.result=e},nr=rr.prototype,or=function(t,e,r){var n,o,i,a,u,s,c,f,l=r&&r.that,p=!(!r||!r.AS_ENTRIES),h=!(!r||!r.IS_ITERATOR),d=!(!r||!r.INTERRUPTED),v=Ye(e,l),m=function(t){return n&&tr(n,"normal",t),new rr(!0,t)},g=function(t){return p?(rt(t),d?v(t[0],t[1],m):v(t[0],t[1])):d?v(t,m):v(t)};if(h)n=t;else{if(!(o=Qe(t)))throw er(ct(t)+" is not iterable");if(void 0!==(f=o)&&($e.Array===f||Xe[Ke]===f)){for(i=0,a=ge(t);a>i;i++)if((u=g(t[i]))&&it(nr,u))return u;return new rr(!1)}n=function(t,e){var r=arguments.length<2?Qe(t):e;if(lt(r))return rt(ot(r,t));throw Ze(ct(t)+" is not iterable")}(t,o)}for(s=n.next;!(c=ot(s,n)).done;){try{u=g(c.value)}catch(t){tr(n,"throw",t)}if("object"==typeof u&&u&&it(nr,u))return u}return new rr(!1)},ir=G("iterator"),ar=!1;try{var ur=0,sr={next:function(){return{done:!!ur++}},return:function(){ar=!0}};sr[ir]=function(){return this},Array.from(sr,(function(){throw 2}))}catch(t){}var cr,fr,lr,pr,hr=function(){},dr=[],vr=I("Reflect","construct"),mr=/^\s*(?:class|function)\b/,gr=y(mr.exec),yr=!mr.exec(hr),br=function(t){if(!P(t))return!1;try{return vr(hr,dr,t),!0}catch(t){return!1}},wr=!vr||U((function(){var t;return br(br.call)||!br(Object)||!br((function(){t=!0}))||t}))?function(t){if(!P(t))return!1;switch(Qt(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return yr||!!gr(mr,Rt(t))}:br,xr=c.TypeError,Er=G("species"),Or=function(t,e){var r,n=rt(t).constructor;return void 0===n||null==(r=rt(n)[Er])?e:function(t){if(wr(t))return t;throw xr(ct(t)+" is not a constructor")}(r)},Sr=Function.prototype,jr=Sr.apply,_r=Sr.bind,Rr=Sr.call,kr="object"==typeof Reflect&&Reflect.apply||(_r?Rr.bind(jr):function(){return Rr.apply(jr,arguments)}),Pr=I("document","documentElement"),Tr=y([].slice),Ir=/(?:ipad|iphone|ipod).*applewebkit/i.test(C),Cr="process"==$t(c.process),Nr=c.setImmediate,Ar=c.clearImmediate,Lr=c.process,Dr=c.Dispatch,Fr=c.Function,Ur=c.MessageChannel,Mr=c.String,Br=0,qr={};try{cr=c.location}catch(t){}var Hr=function(t){if(S(qr,t)){var e=qr[t];delete qr[t],e()}},Jr=function(t){return function(){Hr(t)}},zr=function(t){Hr(t.data)},Gr=function(t){c.postMessage(Mr(t),cr.protocol+"//"+cr.host)};Nr&&Ar||(Nr=function(t){var e=Tr(arguments,1);return qr[++Br]=function(){kr(P(t)?t:Fr(t),void 0,e)},fr(Br),Br},Ar=function(t){delete qr[t]},Cr?fr=function(t){Lr.nextTick(Jr(t))}:Dr&&Dr.now?fr=function(t){Dr.now(Jr(t))}:Ur&&!Ir?(pr=(lr=new Ur).port2,lr.port1.onmessage=zr,fr=Ye(pr.postMessage,pr)):c.addEventListener&&P(c.postMessage)&&!c.importScripts&&cr&&"file:"!==cr.protocol&&!U(Gr)?(fr=Gr,c.addEventListener("message",zr,!1)):fr="onreadystatechange"in Q("script")?function(t){Pr.appendChild(Q("script")).onreadystatechange=function(){Pr.removeChild(this),Hr(t)}}:function(t){setTimeout(Jr(t),0)});var Wr,Yr,$r,Kr,Xr,Vr,Qr,Zr,tn={set:Nr,clear:Ar},en=/ipad|iphone|ipod/i.test(C)&&void 0!==c.Pebble,rn=/web0s(?!.*chrome)/i.test(C),nn=se.f,on=tn.set,an=c.MutationObserver||c.WebKitMutationObserver,un=c.document,sn=c.process,cn=c.Promise,fn=nn(c,"queueMicrotask"),ln=fn&&fn.value;ln||(Wr=function(){var t,e;for(Cr&&(t=sn.domain)&&t.exit();Yr;){e=Yr.fn,Yr=Yr.next;try{e()}catch(t){throw Yr?Kr():$r=void 0,t}}$r=void 0,t&&t.enter()},Ir||Cr||rn||!an||!un?!en&&cn&&cn.resolve?((Qr=cn.resolve(void 0)).constructor=cn,Zr=Ye(Qr.then,Qr),Kr=function(){Zr(Wr)}):Cr?Kr=function(){sn.nextTick(Wr)}:(on=Ye(on,c),Kr=function(){on(Wr)}):(Xr=!0,Vr=un.createTextNode(""),new an(Wr).observe(Vr,{characterData:!0}),Kr=function(){Vr.data=Xr=!Xr}));var pn,hn,dn,vn,mn,gn,yn,bn=ln||function(t){var e={fn:t,next:void 0};$r&&($r.next=e),Yr||(Yr=e,Kr()),$r=e},wn=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n})),this.resolve=lt(e),this.reject=lt(r)},xn={f:function(t){return new wn(t)}},En=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},On="object"==typeof window,Sn=tn.set,jn=G("species"),_n="Promise",Rn=Bt.getterFor(_n),kn=Bt.set,Pn=Bt.getterFor(_n),Tn=Ue&&Ue.prototype,In=Ue,Cn=Tn,Nn=c.TypeError,An=c.document,Ln=c.process,Dn=xn.f,Fn=Dn,Un=!!(An&&An.createEvent&&c.dispatchEvent),Mn=P(c.PromiseRejectionEvent),Bn=!1,qn=Le(_n,(function(){var t=Rt(In),e=t!==String(In);if(!e&&66===F)return!0;if(F>=51&&/native code/.test(t))return!1;var r=new In((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};return(r.constructor={})[jn]=n,!(Bn=r.then((function(){}))instanceof n)||!e&&On&&!Mn})),Hn=qn||!function(t,e){if(!e&&!ar)return!1;var r=!1;try{var n={};n[ir]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r}((function(t){In.all(t).catch((function(){}))})),Jn=function(t){var e;return!(!K(t)||!P(e=t.then))&&e},zn=function(t,e){if(!t.notified){t.notified=!0;var r=t.reactions;bn((function(){for(var n=t.value,o=1==t.state,i=0;r.length>i;){var a,u,s,c=r[i++],f=o?c.ok:c.fail,l=c.resolve,p=c.reject,h=c.domain;try{f?(o||(2===t.rejection&&$n(t),t.rejection=1),!0===f?a=n:(h&&h.enter(),a=f(n),h&&(h.exit(),s=!0)),a===c.promise?p(Nn("Promise-chain cycle")):(u=Jn(a))?ot(u,a,l,p):l(a)):p(n)}catch(t){h&&!s&&h.exit(),p(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&Wn(t)}))}},Gn=function(t,e,r){var n,o;Un?((n=An.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),c.dispatchEvent(n)):n={promise:e,reason:r},!Mn&&(o=c["on"+t])?o(n):"unhandledrejection"===t&&function(t,e){var r=c.console;r&&r.error&&(1==arguments.length?r.error(t):r.error(t,e))}("Unhandled promise rejection",r)},Wn=function(t){ot(Sn,c,(function(){var e,r=t.facade,n=t.value;if(Yn(t)&&(e=En((function(){Cr?Ln.emit("unhandledRejection",n,r):Gn("unhandledrejection",r,n)})),t.rejection=Cr||Yn(t)?2:1,e.error))throw e.value}))},Yn=function(t){return 1!==t.rejection&&!t.parent},$n=function(t){ot(Sn,c,(function(){var e=t.facade;Cr?Ln.emit("rejectionHandled",e):Gn("rejectionhandled",e,t.value)}))},Kn=function(t,e,r){return function(n){t(e,n,r)}},Xn=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,zn(t,!0))},Vn=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw Nn("Promise can't be resolved itself");var n=Jn(e);n?bn((function(){var r={done:!1};try{ot(n,e,Kn(Vn,r,t),Kn(Xn,r,t))}catch(e){Xn(r,e,t)}})):(t.value=e,t.state=1,zn(t,!1))}catch(e){Xn({done:!1},e,t)}}};if(qn&&(Cn=(In=function(t){!function(t,e){if(it(e,t))return t;throw Ge("Incorrect invocation")}(this,Cn),lt(t),ot(pn,this);var e=Rn(this);try{t(Kn(Vn,e),Kn(Xn,e))}catch(t){Xn(e,t)}}).prototype,(pn=function(t){kn(this,{type:_n,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=function(t,e,r){for(var n in e)Gt(t,n,e[n],r);return t}(Cn,{then:function(t,e){var r=Pn(this),n=r.reactions,o=Dn(Or(this,In));return o.ok=!P(t)||t,o.fail=P(e)&&e,o.domain=Cr?Ln.domain:void 0,r.parent=!0,n[n.length]=o,0!=r.state&&zn(r,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),hn=function(){var t=new pn,e=Rn(t);this.promise=t,this.resolve=Kn(Vn,e),this.reject=Kn(Xn,e)},xn.f=Dn=function(t){return t===In||t===dn?new hn(t):Fn(t)},P(Ue)&&Tn!==Object.prototype)){vn=Tn.then,Bn||(Gt(Tn,"then",(function(t,e){var r=this;return new In((function(t,e){ot(vn,r,t,e)})).then(t,e)}),{unsafe:!0}),Gt(Tn,"catch",Cn.catch,{unsafe:!0}));try{delete Tn.constructor}catch(t){}qe&&qe(Tn,Cn)}Fe({global:!0,wrap:!0,forced:qn},{Promise:In}),gn=_n,yn=!1,(mn=In)&&!S(mn=yn?mn:mn.prototype,Je)&&He(mn,Je,{configurable:!0,value:gn}),function(t){var e=I(t),r=wt.f;$&&e&&!e[ze]&&r(e,ze,{configurable:!0,get:function(){return this}})}(_n),dn=I(_n),Fe({target:_n,stat:!0,forced:qn},{reject:function(t){var e=Dn(this);return ot(e.reject,void 0,t),e.promise}}),Fe({target:_n,stat:!0,forced:qn},{resolve:function(t){return function(t,e){if(rt(t),K(e)&&e.constructor===t)return e;var r=xn.f(t);return(0,r.resolve)(e),r.promise}(this,t)}}),Fe({target:_n,stat:!0,forced:Hn},{all:function(t){var e=this,r=Dn(e),n=r.resolve,o=r.reject,i=En((function(){var r=lt(e.resolve),i=[],a=0,u=1;or(t,(function(t){var s=a++,c=!1;u++,ot(r,e,t).then((function(t){c||(c=!0,i[s]=t,--u||n(i))}),o)})),--u||n(i)}));return i.error&&o(i.value),r.promise},race:function(t){var e=this,r=Dn(e),n=r.reject,o=En((function(){var o=lt(e.resolve);or(t,(function(t){ot(o,e,t).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var Qn=c.Function,Zn=y([].concat),to=y([].join),eo={},ro=function(t,e,r){if(!S(eo,e)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";eo[e]=Qn("C,a","return new C("+to(n,",")+")")}return eo[e](t,r)};Fe({target:"Function",proto:!0},{bind:Qn.bind||function(t){var e=lt(this),r=e.prototype,n=Tr(arguments,1),o=function(){var r=Zn(n,Tr(arguments));return this instanceof o?ro(e,r.length,r):e.apply(t,r)};return K(r)&&(o.prototype=r),o}});var no=Object.keys||function(t){return xe(t,Ee)},oo=Object.assign,io=Object.defineProperty,ao=y([].concat),uo=!oo||U((function(){if($&&1!==oo({b:1},oo(io({},"a",{enumerable:!0,get:function(){io(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!=oo({},t)[r]||no(oo({},e)).join("")!=n}))?function(t,e){for(var r=E(t),n=arguments.length,o=1,i=je.f,a=re.f;n>o;)for(var u,s=ie(arguments[o++]),c=i?ao(no(s),i(s)):no(s),f=c.length,l=0;f>l;)u=c[l++],$&&!ot(a,s,u)||(r[u]=s[u]);return r}:oo;Fe({target:"Object",stat:!0,forced:Object.assign!==uo},{assign:uo});var so,co=Array.isArray||function(t){return"Array"==$t(t)},fo=function(t,e,r){var n=gt(e);n in t?wt.f(t,n,xt(0,r)):t[n]=r},lo=G("species"),po=(so="slice",F>=51||!U((function(){var t=[];return(t.constructor={})[lo]=function(){return{foo:1}},1!==t[so](Boolean).foo}))),ho=G("species"),vo=c.Array,mo=Math.max;Fe({target:"Array",proto:!0,forced:!po},{slice:function(t,e){var r,n,o,i=ae(this),a=ge(i),u=de(t,a),s=de(void 0===e?a:e,a);if(co(i)&&(r=i.constructor,(wr(r)&&(r===vo||co(r.prototype))||K(r)&&null===(r=r[ho]))&&(r=void 0),r===vo||void 0===r))return Tr(i,u,s);for(n=new(void 0===r?vo:r)(mo(s-u,0)),o=0;u<s;u++,o++)u in i&&fo(n,o,i[u]);return n.length=o,n}});var go=Date.prototype,yo=y(go.toString),bo=y(go.getTime);"Invalid Date"!=String(new Date(NaN))&&Gt(go,"toString",(function(){var t=bo(this);return t==t?yo(this):"Invalid Date"}));var wo=c.String,xo=function(t){if("Symbol"===Qt(t))throw TypeError("Cannot convert a Symbol value to a string");return wo(t)},Eo=function(){var t=rt(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},Oo=zt.PROPER,So=RegExp.prototype,jo=So.toString,_o=y(Eo),Ro=U((function(){return"/a/b"!=jo.call({source:"a",flags:"b"})})),ko=Oo&&"toString"!=jo.name;(Ro||ko)&&Gt(RegExp.prototype,"toString",(function(){var t=rt(this),e=xo(t.source),r=t.flags;return"/"+e+"/"+xo(void 0===r&&it(So,t)&&!("flags"in So)?_o(t):r)}),{unsafe:!0});var Po="\t\n\v\f\r                 \u2028\u2029\ufeff",To=y("".replace),Io="["+Po+"]",Co=RegExp("^"+Io+Io+"*"),No=RegExp(Io+Io+"*$"),Ao=function(t){return function(e){var r=xo(w(e));return 1&t&&(r=To(r,Co,"")),2&t&&(r=To(r,No,"")),r}},Lo={start:Ao(1),end:Ao(2),trim:Ao(3)}.trim,Do=c.parseInt,Fo=c.Symbol,Uo=Fo&&Fo.iterator,Mo=/^[+-]?0x/i,Bo=y(Mo.exec),qo=8!==Do(Po+"08")||22!==Do(Po+"0x16")||Uo&&!U((function(){Do(Object(Uo))}))?function(t,e){var r=Lo(xo(t));return Do(r,e>>>0||(Bo(Mo,r)?16:10))}:Do;Fe({global:!0,forced:parseInt!=qo},{parseInt:qo});var Ho,Jo=c.RegExp,zo=U((function(){var t=Jo("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),Go=zo||U((function(){return!Jo("a","y").sticky})),Wo={BROKEN_CARET:zo||U((function(){var t=Jo("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:Go,UNSUPPORTED_Y:zo},Yo=$?Object.defineProperties:function(t,e){rt(t);for(var r,n=ae(e),o=no(e),i=o.length,a=0;i>a;)wt.f(t,r=o[a++],n[r]);return t},$o=It("IE_PROTO"),Ko=function(){},Xo=function(t){return"<script>"+t+"<\/script>"},Vo=function(t){t.write(Xo("")),t.close();var e=t.parentWindow.Object;return t=null,e},Qo=function(){try{Ho=new ActiveXObject("htmlfile")}catch(t){}var t,e;Qo="undefined"!=typeof document?document.domain&&Ho?Vo(Ho):((e=Q("iframe")).style.display="none",Pr.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Xo("document.F=Object")),t.close(),t.F):Vo(Ho);for(var r=Ee.length;r--;)delete Qo.prototype[Ee[r]];return Qo()};Ct[$o]=!0;var Zo,ti,ei=Object.create||function(t,e){var r;return null!==t?(Ko.prototype=rt(t),r=new Ko,Ko.prototype=null,r[$o]=t):r=Qo(),void 0===e?r:Yo(r,e)},ri=c.RegExp,ni=U((function(){var t=ri(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),oi=c.RegExp,ii=U((function(){var t=oi("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),ai=Bt.get,ui=h("native-string-replace",String.prototype.replace),si=RegExp.prototype.exec,ci=si,fi=y("".charAt),li=y("".indexOf),pi=y("".replace),hi=y("".slice),di=(ti=/b*/g,ot(si,Zo=/a/,"a"),ot(si,ti,"a"),0!==Zo.lastIndex||0!==ti.lastIndex),vi=Wo.BROKEN_CARET,mi=void 0!==/()??/.exec("")[1];(di||mi||vi||ni||ii)&&(ci=function(t){var e,r,n,o,i,a,u,s=this,c=ai(s),f=xo(t),l=c.raw;if(l)return l.lastIndex=s.lastIndex,e=ot(ci,l,f),s.lastIndex=l.lastIndex,e;var p=c.groups,h=vi&&s.sticky,d=ot(Eo,s),v=s.source,m=0,g=f;if(h&&(d=pi(d,"y",""),-1===li(d,"g")&&(d+="g"),g=hi(f,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==fi(f,s.lastIndex-1))&&(v="(?: "+v+")",g=" "+g,m++),r=new RegExp("^(?:"+v+")",d)),mi&&(r=new RegExp("^"+v+"$(?!\\s)",d)),di&&(n=s.lastIndex),o=ot(si,h?r:s,g),h?o?(o.input=hi(o.input,m),o[0]=hi(o[0],m),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:di&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),mi&&o&&o.length>1&&ot(ui,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&p)for(o.groups=a=ei(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var gi=ci;Fe({target:"RegExp",proto:!0,forced:/./.exec!==gi},{exec:gi});var yi=G("species"),bi=RegExp.prototype,wi=G("match"),xi=y("".charAt),Ei=y("".charCodeAt),Oi=y("".slice),Si=function(t){return function(e,r){var n,o,i=xo(w(e)),a=le(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=Ei(i,a))<55296||n>56319||a+1===u||(o=Ei(i,a+1))<56320||o>57343?t?xi(i,a):n:t?Oi(i,a,a+2):o-56320+(n-55296<<10)+65536}},ji={codeAt:Si(!1),charAt:Si(!0)}.charAt,_i=function(t,e,r){return e+(r?ji(t,e).length:1)},Ri=c.Array,ki=Math.max,Pi=function(t,e,r){for(var n=ge(t),o=de(e,n),i=de(void 0===r?n:r,n),a=Ri(ki(i-o,0)),u=0;o<i;o++,u++)fo(a,u,t[o]);return a.length=u,a},Ti=c.TypeError,Ii=function(t,e){var r=t.exec;if(P(r)){var n=ot(r,t,e);return null!==n&&rt(n),n}if("RegExp"===$t(t))return ot(gi,t,e);throw Ti("RegExp#exec called on incompatible receiver")},Ci=Wo.UNSUPPORTED_Y,Ni=Math.min,Ai=[].push,Li=y(/./.exec),Di=y(Ai),Fi=y("".slice);!function(t,e,r,n){var o=G(t),i=!U((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),a=i&&!U((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[yi]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return e=!0,null},r[o](""),!e}));if(!i||!a||r){var u=y(/./[o]),s=e(o,""[t],(function(t,e,r,n,o){var a=y(t),s=e.exec;return s===gi||s===bi.exec?i&&!o?{done:!0,value:u(e,r,n)}:{done:!0,value:a(r,e,n)}:{done:!1}}));Gt(String.prototype,t,s[0]),Gt(bi,o,s[1])}n&&Et(bi[o],"sham",!0)}("split",(function(t,e,r){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,r){var n=xo(w(this)),o=void 0===r?4294967295:r>>>0;if(0===o)return[];if(void 0===t)return[n];if(!function(t){var e;return K(t)&&(void 0!==(e=t[wi])?!!e:"RegExp"==$t(t))}(t))return ot(e,n,t,o);for(var i,a,u,s=[],c=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,l=new RegExp(t.source,c+"g");(i=ot(gi,l,n))&&!((a=l.lastIndex)>f&&(Di(s,Fi(n,f,i.index)),i.length>1&&i.index<n.length&&kr(Ai,s,Pi(i,1)),u=i[0].length,f=a,s.length>=o));)l.lastIndex===i.index&&l.lastIndex++;return f===n.length?!u&&Li(l,"")||Di(s,""):Di(s,Fi(n,f)),s.length>o?Pi(s,0,o):s}:"0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:ot(e,this,t,r)}:e,[function(e,r){var o=w(this),i=null==e?void 0:pt(e,t);return i?ot(i,e,o,r):ot(n,xo(o),e,r)},function(t,o){var i=rt(this),a=xo(t),u=r(n,i,a,o,n!==e);if(u.done)return u.value;var s=Or(i,RegExp),c=i.unicode,f=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(Ci?"g":"y"),l=new s(Ci?"^(?:"+i.source+")":i,f),p=void 0===o?4294967295:o>>>0;if(0===p)return[];if(0===a.length)return null===Ii(l,a)?[a]:[];for(var h=0,d=0,v=[];d<a.length;){l.lastIndex=Ci?0:d;var m,g=Ii(l,Ci?Fi(a,d):a);if(null===g||(m=Ni(me(l.lastIndex+(Ci?d:0)),a.length))===h)d=_i(a,d,c);else{if(Di(v,Fi(a,h,d)),v.length===p)return v;for(var y=1;y<=g.length-1;y++)if(Di(v,g[y]),v.length===p)return v;d=h=m}}return Di(v,Fi(a,h)),v}]}),!!U((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),Ci);var Ui,Mi=i((function(t,e){t.exports=function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=11)}([function(t,e,r){var n=r(3),o=Object.prototype.toString;function i(t){return"[object Array]"===o.call(t)}function a(t){return void 0===t}function u(t){return null!==t&&"object"==typeof t}function s(t){if("[object Object]"!==o.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function c(t){return"[object Function]"===o.call(t)}function f(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),i(t))for(var r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}t.exports={isArray:i,isArrayBuffer:function(t){return"[object ArrayBuffer]"===o.call(t)},isBuffer:function(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:u,isPlainObject:s,isUndefined:a,isDate:function(t){return"[object Date]"===o.call(t)},isFile:function(t){return"[object File]"===o.call(t)},isBlob:function(t){return"[object Blob]"===o.call(t)},isFunction:c,isStream:function(t){return u(t)&&c(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:f,merge:function t(){var e={};function r(r,n){s(e[n])&&s(r)?e[n]=t(e[n],r):s(r)?e[n]=t({},r):i(r)?e[n]=r.slice():e[n]=r}for(var n=0,o=arguments.length;n<o;n++)f(arguments[n],r);return e},extend:function(t,e,r){return f(e,(function(e,o){t[o]=r&&"function"==typeof e?n(e,r):e})),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},function(t,e,r){var n=r(0),o=r(17),i=r(5),a={"Content-Type":"application/x-www-form-urlencoded"};function u(t,e){!n.isUndefined(t)&&n.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var s,c={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(s=r(6)),s),transformRequest:[function(t,e){return o(e,"Accept"),o(e,"Content-Type"),n.isFormData(t)||n.isArrayBuffer(t)||n.isBuffer(t)||n.isStream(t)||n.isFile(t)||n.isBlob(t)?t:n.isArrayBufferView(t)?t.buffer:n.isURLSearchParams(t)?(u(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):n.isObject(t)||e&&"application/json"===e["Content-Type"]?(u(e,"application/json"),function(t,e,r){if(n.isString(t))try{return(e||JSON.parse)(t),n.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(r||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||c.transitional,r=e&&e.silentJSONParsing,o=e&&e.forcedJSONParsing,a=!r&&"json"===this.responseType;if(a||o&&n.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(a){if("SyntaxError"===t.name)throw i(t,this,"E_JSON_PARSE");throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(t){c.headers[t]={}})),n.forEach(["post","put","patch"],(function(t){c.headers[t]=n.merge(a)})),t.exports=c},function(t,e,r){function n(t){this.message=t}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,t.exports=n},function(t,e,r){t.exports=function(t,e){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return t.apply(e,r)}}},function(t,e,r){var n=r(0);function o(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,r){if(!e)return t;var i;if(r)i=r(e);else if(n.isURLSearchParams(e))i=e.toString();else{var a=[];n.forEach(e,(function(t,e){null!=t&&(n.isArray(t)?e+="[]":t=[t],n.forEach(t,(function(t){n.isDate(t)?t=t.toISOString():n.isObject(t)&&(t=JSON.stringify(t)),a.push(o(e)+"="+o(t))})))})),i=a.join("&")}if(i){var u=t.indexOf("#");-1!==u&&(t=t.slice(0,u)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}},function(t,e,r){t.exports=function(t,e,r,n,o){return t.config=e,r&&(t.code=r),t.request=n,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t}},function(t,e,r){var n=r(0),o=r(18),i=r(19),a=r(4),u=r(20),s=r(23),c=r(24),f=r(7),l=r(1),p=r(2);t.exports=function(t){return new Promise((function(e,r){var h,d=t.data,v=t.headers,m=t.responseType;function g(){t.cancelToken&&t.cancelToken.unsubscribe(h),t.signal&&t.signal.removeEventListener("abort",h)}n.isFormData(d)&&delete v["Content-Type"];var y=new XMLHttpRequest;if(t.auth){var b=t.auth.username||"",w=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";v.Authorization="Basic "+btoa(b+":"+w)}var x=u(t.baseURL,t.url);function E(){if(y){var n="getAllResponseHeaders"in y?s(y.getAllResponseHeaders()):null,i={data:m&&"text"!==m&&"json"!==m?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:n,config:t,request:y};o((function(t){e(t),g()}),(function(t){r(t),g()}),i),y=null}}if(y.open(t.method.toUpperCase(),a(x,t.params,t.paramsSerializer),!0),y.timeout=t.timeout,"onloadend"in y?y.onloadend=E:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(E)},y.onabort=function(){y&&(r(f("Request aborted",t,"ECONNABORTED",y)),y=null)},y.onerror=function(){r(f("Network Error",t,null,y)),y=null},y.ontimeout=function(){var e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",n=t.transitional||l.transitional;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(f(e,t,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",y)),y=null},n.isStandardBrowserEnv()){var O=(t.withCredentials||c(x))&&t.xsrfCookieName?i.read(t.xsrfCookieName):void 0;O&&(v[t.xsrfHeaderName]=O)}"setRequestHeader"in y&&n.forEach(v,(function(t,e){void 0===d&&"content-type"===e.toLowerCase()?delete v[e]:y.setRequestHeader(e,t)})),n.isUndefined(t.withCredentials)||(y.withCredentials=!!t.withCredentials),m&&"json"!==m&&(y.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&y.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&y.upload&&y.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(h=function(t){y&&(r(!t||t&&t.type?new p("canceled"):t),y.abort(),y=null)},t.cancelToken&&t.cancelToken.subscribe(h),t.signal&&(t.signal.aborted?h():t.signal.addEventListener("abort",h))),d||(d=null),y.send(d)}))}},function(t,e,r){var n=r(5);t.exports=function(t,e,r,o,i){var a=new Error(t);return n(a,e,r,o,i)}},function(t,e,r){t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,r){var n=r(0);t.exports=function(t,e){e=e||{};var r={};function o(t,e){return n.isPlainObject(t)&&n.isPlainObject(e)?n.merge(t,e):n.isPlainObject(e)?n.merge({},e):n.isArray(e)?e.slice():e}function i(r){return n.isUndefined(e[r])?n.isUndefined(t[r])?void 0:o(void 0,t[r]):o(t[r],e[r])}function a(t){if(!n.isUndefined(e[t]))return o(void 0,e[t])}function u(r){return n.isUndefined(e[r])?n.isUndefined(t[r])?void 0:o(void 0,t[r]):o(void 0,e[r])}function s(r){return r in e?o(t[r],e[r]):r in t?o(void 0,t[r]):void 0}var c={url:a,method:a,data:a,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:s};return n.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){var e=c[t]||i,o=e(t);n.isUndefined(o)&&e!==s||(r[t]=o)})),r}},function(t,e){t.exports={version:"0.24.0"}},function(t,e,r){t.exports=r(12)},function(t,e,r){var n=r(0),o=r(3),i=r(13),a=r(9),u=function t(e){var r=new i(e),u=o(i.prototype.request,r);return n.extend(u,i.prototype,r),n.extend(u,r),u.create=function(r){return t(a(e,r))},u}(r(1));u.Axios=i,u.Cancel=r(2),u.CancelToken=r(26),u.isCancel=r(8),u.VERSION=r(10).version,u.all=function(t){return Promise.all(t)},u.spread=r(27),u.isAxiosError=r(28),t.exports=u,t.exports.default=u},function(t,e,r){var n=r(0),o=r(4),i=r(14),a=r(15),u=r(9),s=r(25),c=s.validators;function f(t){this.defaults=t,this.interceptors={request:new i,response:new i}}f.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=u(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=t.transitional;void 0!==e&&s.assertOptions(e,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var r=[],n=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(n=n&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(t){i.push(t.fulfilled,t.rejected)})),!n){var f=[a,void 0];for(Array.prototype.unshift.apply(f,r),f=f.concat(i),o=Promise.resolve(t);f.length;)o=o.then(f.shift(),f.shift());return o}for(var l=t;r.length;){var p=r.shift(),h=r.shift();try{l=p(l)}catch(t){h(t);break}}try{o=a(l)}catch(t){return Promise.reject(t)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},f.prototype.getUri=function(t){return t=u(this.defaults,t),o(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(t){f.prototype[t]=function(e,r){return this.request(u(r||{},{method:t,url:e,data:(r||{}).data}))}})),n.forEach(["post","put","patch"],(function(t){f.prototype[t]=function(e,r,n){return this.request(u(n||{},{method:t,url:e,data:r}))}})),t.exports=f},function(t,e,r){var n=r(0);function o(){this.handlers=[]}o.prototype.use=function(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){n.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=o},function(t,e,r){var n=r(0),o=r(16),i=r(8),a=r(1),u=r(2);function s(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new u("canceled")}t.exports=function(t){return s(t),t.headers=t.headers||{},t.data=o.call(t,t.data,t.headers,t.transformRequest),t.headers=n.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||a.adapter)(t).then((function(e){return s(t),e.data=o.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return i(e)||(s(t),e&&e.response&&(e.response.data=o.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},function(t,e,r){var n=r(0),o=r(1);t.exports=function(t,e,r){var i=this||o;return n.forEach(r,(function(r){t=r.call(i,t,e)})),t}},function(t,e,r){var n=r(0);t.exports=function(t,e){n.forEach(t,(function(r,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[n])}))}},function(t,e,r){var n=r(7);t.exports=function(t,e,r){var o=r.config.validateStatus;r.status&&o&&!o(r.status)?e(n("Request failed with status code "+r.status,r.config,null,r.request,r)):t(r)}},function(t,e,r){var n=r(0);t.exports=n.isStandardBrowserEnv()?{write:function(t,e,r,o,i,a){var u=[];u.push(t+"="+encodeURIComponent(e)),n.isNumber(r)&&u.push("expires="+new Date(r).toGMTString()),n.isString(o)&&u.push("path="+o),n.isString(i)&&u.push("domain="+i),!0===a&&u.push("secure"),document.cookie=u.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,r){var n=r(21),o=r(22);t.exports=function(t,e){return t&&!n(e)?o(t,e):e}},function(t,e,r){t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,r){t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,r){var n=r(0),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,r,i,a={};return t?(n.forEach(t.split("\n"),(function(t){if(i=t.indexOf(":"),e=n.trim(t.substr(0,i)).toLowerCase(),r=n.trim(t.substr(i+1)),e){if(a[e]&&o.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([r]):a[e]?a[e]+", "+r:r}})),a):a}},function(t,e,r){var n=r(0);t.exports=n.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function o(t){var n=t;return e&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=o(window.location.href),function(e){var r=n.isString(e)?o(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0}},function(t,e,r){var n=r(10).version,o={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){o[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));var i={};o.transitional=function(t,e,r){function o(t,e){return"[Axios v"+n+"] Transitional option '"+t+"'"+e+(r?". "+r:"")}return function(r,n,a){if(!1===t)throw new Error(o(n," has been removed"+(e?" in "+e:"")));return e&&!i[n]&&(i[n]=!0,console.warn(o(n," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,n,a)}},t.exports={assertOptions:function(t,e,r){if("object"!=typeof t)throw new TypeError("options must be an object");for(var n=Object.keys(t),o=n.length;o-- >0;){var i=n[o],a=e[i];if(a){var u=t[i],s=void 0===u||a(u,i,t);if(!0!==s)throw new TypeError("option "+i+" must be "+s)}else if(!0!==r)throw Error("Unknown option "+i)}},validators:o}},function(t,e,r){var n=r(2);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var r=this;this.promise.then((function(t){if(r._listeners){var e,n=r._listeners.length;for(e=0;e<n;e++)r._listeners[e](t);r._listeners=null}})),this.promise.then=function(t){var e,n=new Promise((function(t){r.subscribe(t),e=t})).then(t);return n.cancel=function(){r.unsubscribe(e)},n},t((function(t){r.reason||(r.reason=new n(t),e(r.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]},o.prototype.unsubscribe=function(t){if(this._listeners){var e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}},o.source=function(){var t;return{token:new o((function(e){t=e})),cancel:t}},t.exports=o},function(t,e,r){t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,r){t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}}])})),Bi=(Ui=Mi)&&Ui.__esModule&&Object.prototype.hasOwnProperty.call(Ui,"default")?Ui.default:Ui;Mi.axios;var qi="".concat("http://127.0.0.1:11111","/services/print"),Hi="".concat("http://127.0.0.1:11111","/PrintLocal"),Ji={transtime:"20211105111933684",transtype:"SYSTEM",interfaceid:"120001",serialnumber:"f81166d2-c175-8cfc-82be-6bd336b5c132",operatorcode:"888",operatorname:"888",transcmd:"100000",transdata:{cmdid:8,reportid:280,formatid:"742",formatname:"血液入库单打印按钮",datamode:1,param:{id:"58"},UserInfo:{ID:"12"},datas:[]},transsystem:"10",transchannel:"100",verifycode:""},zi=Bi.create({timeout:1e3,withCredentials:!1}),Gi=Bi.create({withCredentials:!1}),Wi=Bi.create({timeout:6e4,withCredentials:!1,headers:{"Content-Type":"application/x-www-form-urlencoded"}}),Yi=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var o,i,a,u,s,c,f,l,p,h,d,v,m;return o=t,i=[{key:"_testConnection",value:function(){var t=this;return new Promise(function(e){var r=this;n(this,t),zi({url:"".concat("http://127.0.0.1:11111","/test"),method:"get",withCredentials:!1,params:{inputdata:{result:"success"}}}).then(function(t){n(this,r),"success"===t.data.result?e(!0):e(!1)}.bind(this)).catch(function(t){n(this,r),e(!1)}.bind(this))}.bind(this))}},{key:"_queryServicesPrint",value:function(t){var e=this;return Gi({url:qi,method:"get",params:{inputData:JSON.stringify(t)}}).then(function(t){return n(this,e),t.data}.bind(this))}},{key:"_callPrintWithFile",value:function(t){var e=this,r={cmdid:"7",flag:"1"},o={inputData:JSON.stringify(Object.assign({},r,t))};return Gi({url:Hi,method:"post",data:o,transformRequest:[function(t){var e="";for(var r in t)e+=encodeURIComponent(r)+"="+encodeURIComponent(t[r])+"&";return e=e.slice(0,-1)}]}).then(function(t){return n(this,e),t.data}.bind(this))}},{key:"_handleResult",value:function(t,e){return"success"!==t.result?(e({type:"printError",message:t.message||t.Message,result:t.result,errinfo:t.errinfo}),!1):t}},{key:"_handleResultTest",value:function(t,e){return!!t||(console.log("notInstalledApp"),e({type:"notInstalledApp",message:"请打开打印服务器插件"}),!1)}},{key:"_handleEventQueryPrintData",value:(m=e(regeneratorRuntime.mark((function t(e,r,n,o){var i,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i={templateId:e,formatId:r,params:n,cmdid:"7"},t.next=3,this._queryServicesPrint(i);case 3:return a=t.sent,t.abrupt("return",this._handleQueryPrintDataResult(a,r,o));case 5:case"end":return t.stop()}}),t,this)}))),function(t,e,r,n){return m.apply(this,arguments)})},{key:"_handleQueryPrintDataResult",value:function(t,e,r){if(null==t||!t.file){try{var n=t.message||t.Message;console.log(n),r({type:"queryPrintDataFailure",message:n})}catch(t){console.log(t)}return!1}return{file:t.file,printerName:t.defprinter,pageCount:t.pagecount,formatId:e}}},{key:"_handleEventDirect",value:(v=e(regeneratorRuntime.mark((function t(e){var r,n,o,i,a,u,s,c,f;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.templateId,n=e.formatId,o=e.params,i=e.cmdid,a=e.print,u=e.printdlgshow,s=void 0===u?"1":u,c=e.nobillnode,f={templateId:r,formatId:n,params:o,cmdid:i,nobillnode:void 0===c?"1":c,printdlgshow:s},a){try{a=JSON.parse(a)}catch(t){}f.print=a}return t.next=5,this._queryServicesPrint(f);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t,this)}))),function(t){return v.apply(this,arguments)})},{key:"_handleEventEditFormat",value:(d=e(regeneratorRuntime.mark((function t(e){var r,n,o,i,a,u,s,c,f;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=e.templateId,n=e.formatId,o=void 0===n?"":n,i=e.params,a=void 0===i?{}:i,u=e.token,s={},c={};try{c=Object.assign({},s,JSON.parse(a))}catch(t){c=s}return f={templateId:r,formatId:o,cmdid:"9",token:u,params:JSON.stringify(c)},t.next=7,this._queryServicesPrint(f);case 7:return t.abrupt("return",t.sent);case 8:case"end":return t.stop()}}),t,this)}))),function(t){return d.apply(this,arguments)})},{key:"preview",value:(h=e(regeneratorRuntime.mark((function t(e,r,n){var o,i,a,u,s,c,f;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=e.templateId,i=e.formatId,a=e.params,u=void 0===a?"":a,t.next=3,this._testConnection();case 3:if(s=t.sent,this._handleResultTest(s,n)){t.next=6;break}return t.abrupt("return",!1);case 6:return t.next=8,this._handleEventDirect({templateId:o,formatId:i,params:u,cmdid:"8"});case 8:if(c=t.sent){t.next=11;break}return t.abrupt("return",!1);case 11:if(f=this._handleResult(c,n)){t.next=14;break}return t.abrupt("return",!1);case 14:r&&r(f);case 15:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return h.apply(this,arguments)})},{key:"printDirect",value:(p=e(regeneratorRuntime.mark((function t(e,r,n){var o,i,a,u,s,c,f,l,p,h;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=e.templateId,i=e.formatId,a=e.params,u=void 0===a?"":a,s=e.print,c=e.printdlgshow,f=e.nobillnode,t.next=3,this._testConnection();case 3:if(l=t.sent,this._handleResultTest(l,n)){t.next=6;break}return t.abrupt("return",!1);case 6:return t.next=8,this._handleEventDirect({templateId:o,formatId:i,params:u,cmdid:"7",print:s,printdlgshow:c,nobillnode:f});case 8:if(p=t.sent){t.next=11;break}return t.abrupt("return",!1);case 11:if(h=this._handleResult(p,n)){t.next=14;break}return t.abrupt("return",!1);case 14:r&&r(h);case 15:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return p.apply(this,arguments)})},{key:"print",value:(l=e(regeneratorRuntime.mark((function t(e,r,n){var o,i,a,u,s,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=e.templateId,i=e.formatId,a=e.params,u=void 0===a?"":a,t.next=3,this._testConnection();case 3:if(s=t.sent,this._handleResultTest(s,n)){t.next=6;break}return t.abrupt("return",!1);case 6:return t.next=8,this.queryPrintData({templateId:o,formatId:i,params:u},null,n);case 8:if(c=t.sent,this.printFileData({formatId:i,file:c.file,printerName:c.printerName},null,n)){t.next=12;break}return t.abrupt("return",!1);case 12:r&&r(result);case 13:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return l.apply(this,arguments)})},{key:"queryPrintData",value:(f=e(regeneratorRuntime.mark((function t(e,r,n){var o,i,a,u,s,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=e.templateId,i=e.formatId,a=e.params,u=void 0===a?"":a,t.next=3,this._testConnection();case 3:if(s=t.sent,this._handleResultTest(s,n)){t.next=6;break}return t.abrupt("return",!1);case 6:return t.next=8,this._handleEventQueryPrintData(o,i,u,n);case 8:if(c=t.sent){t.next=11;break}return t.abrupt("return",!1);case 11:return r&&r(c),t.abrupt("return",c);case 13:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return f.apply(this,arguments)})},{key:"printFileData",value:(c=e(regeneratorRuntime.mark((function t(e,r,n){var o,i,a,u,s,c,f;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=e.formatId,i=e.file,a=e.printerName,u=void 0===a?"Default":a,t.next=3,this._testConnection();case 3:if(s=t.sent,this._handleResultTest(s,n)){t.next=6;break}return t.abrupt("return",!1);case 6:return t.next=8,this._callPrintWithFile({formatId:o,printname:u,file:i});case 8:if(c=t.sent,f=this._handleResult(c,n)){t.next=12;break}return t.abrupt("return",!1);case 12:return r&&r(f),t.abrupt("return",f);case 14:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return c.apply(this,arguments)})},{key:"editPrintFormat",value:(s=e(regeneratorRuntime.mark((function t(e,r,n){var o,i,a,u,s,c,f;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=e.templateId,i=e.formatId,a=e.params,u=e.token,t.next=3,this._testConnection();case 3:if(s=t.sent,this._handleResultTest(s,n)){t.next=6;break}return t.abrupt("return",!1);case 6:return t.next=8,this._handleEventEditFormat({templateId:o,formatId:i,params:a,token:u});case 8:if(c=t.sent,f=this._handleResult(c,n)){t.next=12;break}return t.abrupt("return",!1);case 12:r&&r(f);case 13:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return s.apply(this,arguments)})},{key:"addPrintFormat",value:(u=e(regeneratorRuntime.mark((function t(e,r,n){var o,i,a,u,s,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=e.templateId,i=e.params,a=e.token,t.next=3,this._testConnection();case 3:if(u=t.sent,this._handleResultTest(u,n)){t.next=6;break}return t.abrupt("return",!1);case 6:return t.next=8,this._handleEventEditFormat({templateId:o,params:i,token:a});case 8:if(s=t.sent,c=this._handleResult(s,n)){t.next=12;break}return t.abrupt("return",!1);case 12:r&&r(c);case 13:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return u.apply(this,arguments)})},{key:"handleHisPrint",value:function(t,e){var r=this._getHisPrintParams(e);return r.transdata.cmdid=t,Wi({url:"http://127.0.0.1"+":".concat("8031","/HOInterfaceSvr"),method:"post",data:r})}},{key:"handleOldHisPrint",value:function(t,e){var r=this._getHisPrintParams(e);return r.transdata.cmdid=t,r.transdata.datamode=1,Wi({url:"http://127.0.0.1:802"+"/services/HisService?inputData=".concat(JSON.stringify(r.transdata)),method:"get"})}},{key:"_getHisPrintParams",value:function(t){var e=this._getTranstime(),r=this._getSerialnumber(),n=this._getOperatorcode(),o=this._getOperatorname(),i=this._getCookieUserId(),a=t.reportid,u=t.formatid,s=t.formatname,c=t.param;return Object.assign(Ji.transdata,{reportid:a,formatid:u,formatname:s,param:c,UserInfo:{ID:i}}),Object.assign({},Ji,{transtime:e,serialnumber:r,operatorcode:n,operatorname:o})}},{key:"_getSerialnumber",value:function(){function t(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}},{key:"_getOperatorcode",value:function(){return this._getCookie("loginName")||"9000"}},{key:"_getOperatorname",value:function(){return this._getCookie("trueName")||"%E4%BE%AF%E7%9B%BC%E7%9B%BC"}},{key:"_getCookieUserId",value:function(){return this._getCookie("userId")||122298}},{key:"_getTranstime",value:function(){return this._generateTimeReqestNumber()+parseInt(1e3*Math.random())}},{key:"_pad2",value:function(t){return t<10?"0"+t:t}},{key:"_generateTimeReqestNumber",value:function(){var t=new Date;return t.getFullYear().toString()+this._pad2(t.getMonth()+1)+this._pad2(t.getDate())+this._pad2(t.getHours())+this._pad2(t.getMinutes())+this._pad2(t.getSeconds())}},{key:"_getCookie",value:function(t){for(var e=document.cookie.split("; "),r=0;r<e[r].length;r++){var n=e[r].split("=");return n[0]==t?n[1]:""}}}],i&&r(o.prototype,i),a&&r(o,a),t}();export{Yi as default};
@@ -0,0 +1,15 @@
1
+ import type { App } from "vue";
2
+ // 导入组件
3
+ import DragLayout from "./src/DragLayout.vue"
4
+
5
+ type SFCWithInstall<T> = T & { install(app: App): void }; // vue 安装
6
+
7
+ // 为组件提供 install 安装方法,供按需引入
8
+ DragLayout.install = function(app: App) {
9
+ app.component(DragLayout.name, DragLayout);
10
+ };
11
+
12
+ const CDragLayout: SFCWithInstall<typeof DragLayout> = DragLayout; // 增加类型
13
+
14
+ // 默认导出组件
15
+ export default CDragLayout;
@@ -0,0 +1,131 @@
1
+ <template>
2
+ <div class="DragFormLeftItem">
3
+ <div
4
+ class="left-content"
5
+ :class="[element.extraField ? 'blue-border' : '', 'item-' + element.html_type]"
6
+ >
7
+ <!-- 文本域 -->
8
+ <div class="style-box" v-if="element.html_type === 'TEXTAREA'">
9
+ <NInput
10
+ class="style-box-input"
11
+ disabled
12
+ :placeholder="element.placeholder || element.name"
13
+ type="textarea"
14
+ :rows="2"
15
+ />
16
+ </div>
17
+ <!-- 日期 -->
18
+ <div
19
+ class="style-box"
20
+ v-else-if="
21
+ element.html_type === 'DATE' ||
22
+ element.html_type === 'DATE-INPUT' ||
23
+ element.html_type === 'DATETIME-INPUT'
24
+ "
25
+ >
26
+ <NDatePicker
27
+ disabled
28
+ :placeholder="element.placeholder || element.name"
29
+ />
30
+ </div>
31
+ <!-- 下拉 标签 -->
32
+ <div
33
+ class="style-box"
34
+ v-else-if="
35
+ element.html_type === 'SELECT' ||
36
+ element.html_type === 'SEARCH' ||
37
+ element.html_type === 'SEARCH_MORE' ||
38
+ element.html_type === 'PHONE_TYPE' ||
39
+ element.html_type === 'IDCARD_TYPE' ||
40
+ element.html_type === 'LABEL'
41
+ "
42
+ >
43
+ <NSelect
44
+ disabled
45
+ :options="[]"
46
+ />
47
+ </div>
48
+ <!-- 单选 -->
49
+ <div class="style-box" v-else-if="element.html_type === 'RADIO'">
50
+ <NRadio disabled defaultChecked>男</NRadio>
51
+ <NRadio disabled :defaultChecked="false">女</NRadio>
52
+ </div>
53
+ <!-- 多选 -->
54
+ <div
55
+ class="style-box"
56
+ v-else-if="element.html_type === 'CHECKBOX' || element.html_type === 'CHECKBOX_BLOCK'"
57
+ >
58
+ <NCheckbox defaultChecked disabled />
59
+ <NCheckbox defaultChecked disabled />
60
+ </div>
61
+ <!-- 级联 -->
62
+ <div
63
+ class="style-box"
64
+ v-else-if="
65
+ element.html_type === 'SEARCH_CASCADE' || element.html_type === 'LEVEL_SEARCH_CASCADE'
66
+ "
67
+ >
68
+ <NSelect defaultValue="省/市/区" disabled />
69
+ </div>
70
+ <div class="style-box" v-else-if="element.html_type === 'PHONE_TYPE'">
71
+ <NInput class="style-box-input" disabled placeholder="+86"></NInput>
72
+ </div>
73
+ <div class="style-box" v-else>
74
+ <NInput
75
+ class="style-box-input"
76
+ disabled
77
+ :placeholder="element.placeholder || element.name"
78
+ ></NInput>
79
+ </div>
80
+ {{ element.name }}
81
+ </div>
82
+ </div>
83
+ </template>
84
+ <script lang="ts">
85
+ export default {
86
+ name: "DragFormLeftItem"
87
+ }
88
+ </script>
89
+ <script setup lang="ts">
90
+ import { NGridItem, NDatePicker, NSelect, NRadio, NCheckbox, NInput } from 'naive-ui'
91
+
92
+ const props = withDefaults(defineProps<{
93
+ element: any
94
+ }>(), {})
95
+
96
+ </script>
97
+ <style lang="less" scoped>
98
+ .DragFormLeftItem {
99
+ .left-content {
100
+ width: 100%;
101
+ margin-bottom: 16px;
102
+ overflow: hidden;
103
+ cursor: pointer;
104
+ color: #2e2e2e;
105
+ .style-box {
106
+ display: flex;
107
+ justify-content: center;
108
+ align-items: center;
109
+ width: 100%;
110
+ height: 60px;
111
+ padding: 0 8px;
112
+ box-sizing: border-box;
113
+ margin-bottom: 8px;
114
+ background: #f3f5f8;
115
+ &-input {
116
+ width: 85%;
117
+ overflow: hidden;
118
+ text-overflow: ellipsis;
119
+ white-space: nowrap;
120
+ cursor: pointer !important;
121
+ }
122
+ input[type="radio"][disabled],
123
+ input[type="checkbox"][disabled],
124
+ input[type="radio"].disabled,
125
+ input[type="checkbox"].disabled {
126
+ cursor: pointer !important;
127
+ }
128
+ }
129
+ }
130
+ }
131
+ </style>