UNPKG

xmgo-vform

Version:

VForm 3 Online Form Designer

7 lines 2.41 MB
(function(e,e0){typeof exports=="object"&&typeof module!="undefined"?module.exports=e0(require("vue"),require("element-plus")):typeof define=="function"&&define.amd?define(["vue","element-plus"],e0):(e=typeof globalThis!="undefined"?globalThis:e||self,e.XmFormDesigner=e0(e.Vue,e.ElementPlus))})(this,function(require$$0$2,elementPlus){"use strict";function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var require$$0__default=_interopDefaultLegacy(require$$0$2),commonjsGlobal$1=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var axios$2={exports:{}},bind$2=function(e0,t0){return function(){for(var n0=new Array(arguments.length),i0=0;i0<n0.length;i0++)n0[i0]=arguments[i0];return e0.apply(t0,n0)}},bind$1=bind$2,toString$1=Object.prototype.toString;function isArray$2(e){return toString$1.call(e)==="[object Array]"}function isUndefined(e){return typeof e=="undefined"}function isBuffer(e){return e!==null&&!isUndefined(e)&&e.constructor!==null&&!isUndefined(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function isArrayBuffer(e){return toString$1.call(e)==="[object ArrayBuffer]"}function isFormData(e){return typeof FormData!="undefined"&&e instanceof FormData}function isArrayBufferView(e){var e0;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?e0=ArrayBuffer.isView(e):e0=e&&e.buffer&&e.buffer instanceof ArrayBuffer,e0}function isString$1(e){return typeof e=="string"}function isNumber(e){return typeof e=="number"}function isObject$6(e){return e!==null&&typeof e=="object"}function isPlainObject$1(e){if(toString$1.call(e)!=="[object Object]")return!1;var e0=Object.getPrototypeOf(e);return e0===null||e0===Object.prototype}function isDate(e){return toString$1.call(e)==="[object Date]"}function isFile(e){return toString$1.call(e)==="[object File]"}function isBlob(e){return toString$1.call(e)==="[object Blob]"}function isFunction$2(e){return toString$1.call(e)==="[object Function]"}function isStream(e){return isObject$6(e)&&isFunction$2(e.pipe)}function isURLSearchParams(e){return typeof URLSearchParams!="undefined"&&e instanceof URLSearchParams}function trim(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function isStandardBrowserEnv(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function forEach$1(e,e0){if(!(e===null||typeof e=="undefined"))if(typeof e!="object"&&(e=[e]),isArray$2(e))for(var t0=0,r0=e.length;t0<r0;t0++)e0.call(null,e[t0],t0,e);else for(var n0 in e)Object.prototype.hasOwnProperty.call(e,n0)&&e0.call(null,e[n0],n0,e)}function merge(){var e={};function e0(n0,i0){isPlainObject$1(e[i0])&&isPlainObject$1(n0)?e[i0]=merge(e[i0],n0):isPlainObject$1(n0)?e[i0]=merge({},n0):isArray$2(n0)?e[i0]=n0.slice():e[i0]=n0}for(var t0=0,r0=arguments.length;t0<r0;t0++)forEach$1(arguments[t0],e0);return e}function extend$2(e,e0,t0){return forEach$1(e0,function(n0,i0){t0&&typeof n0=="function"?e[i0]=bind$1(n0,t0):e[i0]=n0}),e}function stripBOM(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}var utils$d={isArray:isArray$2,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString:isString$1,isNumber,isObject:isObject$6,isPlainObject:isPlainObject$1,isUndefined,isDate,isFile,isBlob,isFunction:isFunction$2,isStream,isURLSearchParams,isStandardBrowserEnv,forEach:forEach$1,merge,extend:extend$2,trim,stripBOM},utils$c=utils$d;function encode(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var buildURL$2=function(e0,t0,r0){if(!t0)return e0;var n0;if(r0)n0=r0(t0);else if(utils$c.isURLSearchParams(t0))n0=t0.toString();else{var i0=[];utils$c.forEach(t0,function(s0,c0){s0===null||typeof s0=="undefined"||(utils$c.isArray(s0)?c0=c0+"[]":s0=[s0],utils$c.forEach(s0,function(u0){utils$c.isDate(u0)?u0=u0.toISOString():utils$c.isObject(u0)&&(u0=JSON.stringify(u0)),i0.push(encode(c0)+"="+encode(u0))}))}),n0=i0.join("&")}if(n0){var o0=e0.indexOf("#");o0!==-1&&(e0=e0.slice(0,o0)),e0+=(e0.indexOf("?")===-1?"?":"&")+n0}return e0},utils$b=utils$d;function InterceptorManager$1(){this.handlers=[]}InterceptorManager$1.prototype.use=function(e0,t0,r0){return this.handlers.push({fulfilled:e0,rejected:t0,synchronous:r0?r0.synchronous:!1,runWhen:r0?r0.runWhen:null}),this.handlers.length-1},InterceptorManager$1.prototype.eject=function(e0){this.handlers[e0]&&(this.handlers[e0]=null)},InterceptorManager$1.prototype.forEach=function(e0){utils$b.forEach(this.handlers,function(r0){r0!==null&&e0(r0)})};var InterceptorManager_1=InterceptorManager$1,utils$a=utils$d,normalizeHeaderName$1=function(e0,t0){utils$a.forEach(e0,function(n0,i0){i0!==t0&&i0.toUpperCase()===t0.toUpperCase()&&(e0[t0]=n0,delete e0[i0])})},enhanceError$2=function(e0,t0,r0,n0,i0){return e0.config=t0,r0&&(e0.code=r0),e0.request=n0,e0.response=i0,e0.isAxiosError=!0,e0.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}},e0},enhanceError$1=enhanceError$2,createError$2=function(e0,t0,r0,n0,i0){var o0=new Error(e0);return enhanceError$1(o0,t0,r0,n0,i0)},createError$1=createError$2,settle$2=function(e0,t0,r0){var n0=r0.config.validateStatus;!r0.status||!n0||n0(r0.status)?e0(r0):t0(createError$1("Request failed with status code "+r0.status,r0.config,null,r0.request,r0))},utils$9=utils$d,cookies$1=utils$9.isStandardBrowserEnv()?function(){return{write:function(t0,r0,n0,i0,o0,a0){var s0=[];s0.push(t0+"="+encodeURIComponent(r0)),utils$9.isNumber(n0)&&s0.push("expires="+new Date(n0).toGMTString()),utils$9.isString(i0)&&s0.push("path="+i0),utils$9.isString(o0)&&s0.push("domain="+o0),a0===!0&&s0.push("secure"),document.cookie=s0.join("; ")},read:function(t0){var r0=document.cookie.match(new RegExp("(^|;\\s*)("+t0+")=([^;]*)"));return r0?decodeURIComponent(r0[3]):null},remove:function(t0){this.write(t0,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),isAbsoluteURL$1=function(e0){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e0)},combineURLs$1=function(e0,t0){return t0?e0.replace(/\/+$/,"")+"/"+t0.replace(/^\/+/,""):e0},isAbsoluteURL=isAbsoluteURL$1,combineURLs=combineURLs$1,buildFullPath$1=function(e0,t0){return e0&&!isAbsoluteURL(t0)?combineURLs(e0,t0):t0},utils$8=utils$d,ignoreDuplicateOf=["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"],parseHeaders$1=function(e0){var t0={},r0,n0,i0;return e0&&utils$8.forEach(e0.split(` `),function(a0){if(i0=a0.indexOf(":"),r0=utils$8.trim(a0.substr(0,i0)).toLowerCase(),n0=utils$8.trim(a0.substr(i0+1)),r0){if(t0[r0]&&ignoreDuplicateOf.indexOf(r0)>=0)return;r0==="set-cookie"?t0[r0]=(t0[r0]?t0[r0]:[]).concat([n0]):t0[r0]=t0[r0]?t0[r0]+", "+n0:n0}}),t0},utils$7=utils$d,isURLSameOrigin$1=utils$7.isStandardBrowserEnv()?function(){var e0=/(msie|trident)/i.test(navigator.userAgent),t0=document.createElement("a"),r0;function n0(i0){var o0=i0;return e0&&(t0.setAttribute("href",o0),o0=t0.href),t0.setAttribute("href",o0),{href:t0.href,protocol:t0.protocol?t0.protocol.replace(/:$/,""):"",host:t0.host,search:t0.search?t0.search.replace(/^\?/,""):"",hash:t0.hash?t0.hash.replace(/^#/,""):"",hostname:t0.hostname,port:t0.port,pathname:t0.pathname.charAt(0)==="/"?t0.pathname:"/"+t0.pathname}}return r0=n0(window.location.href),function(o0){var a0=utils$7.isString(o0)?n0(o0):o0;return a0.protocol===r0.protocol&&a0.host===r0.host}}():function(){return function(){return!0}}();function Cancel$3(e){this.message=e}Cancel$3.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},Cancel$3.prototype.__CANCEL__=!0;var Cancel_1=Cancel$3,utils$6=utils$d,settle$1=settle$2,cookies=cookies$1,buildURL$1=buildURL$2,buildFullPath=buildFullPath$1,parseHeaders=parseHeaders$1,isURLSameOrigin=isURLSameOrigin$1,createError=createError$2,defaults$5=defaults_1,Cancel$2=Cancel_1,xhr=function(e0){return new Promise(function(r0,n0){var i0=e0.data,o0=e0.headers,a0=e0.responseType,s0;function c0(){e0.cancelToken&&e0.cancelToken.unsubscribe(s0),e0.signal&&e0.signal.removeEventListener("abort",s0)}utils$6.isFormData(i0)&&delete o0["Content-Type"];var l0=new XMLHttpRequest;if(e0.auth){var u0=e0.auth.username||"",d0=e0.auth.password?unescape(encodeURIComponent(e0.auth.password)):"";o0.Authorization="Basic "+btoa(u0+":"+d0)}var f0=buildFullPath(e0.baseURL,e0.url);l0.open(e0.method.toUpperCase(),buildURL$1(f0,e0.params,e0.paramsSerializer),!0),l0.timeout=e0.timeout;function h0(){if(!!l0){var p0="getAllResponseHeaders"in l0?parseHeaders(l0.getAllResponseHeaders()):null,v0=!a0||a0==="text"||a0==="json"?l0.responseText:l0.response,m0={data:v0,status:l0.status,statusText:l0.statusText,headers:p0,config:e0,request:l0};settle$1(function(b0){r0(b0),c0()},function(b0){n0(b0),c0()},m0),l0=null}}if("onloadend"in l0?l0.onloadend=h0:l0.onreadystatechange=function(){!l0||l0.readyState!==4||l0.status===0&&!(l0.responseURL&&l0.responseURL.indexOf("file:")===0)||setTimeout(h0)},l0.onabort=function(){!l0||(n0(createError("Request aborted",e0,"ECONNABORTED",l0)),l0=null)},l0.onerror=function(){n0(createError("Network Error",e0,null,l0)),l0=null},l0.ontimeout=function(){var v0=e0.timeout?"timeout of "+e0.timeout+"ms exceeded":"timeout exceeded",m0=e0.transitional||defaults$5.transitional;e0.timeoutErrorMessage&&(v0=e0.timeoutErrorMessage),n0(createError(v0,e0,m0.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",l0)),l0=null},utils$6.isStandardBrowserEnv()){var $0=(e0.withCredentials||isURLSameOrigin(f0))&&e0.xsrfCookieName?cookies.read(e0.xsrfCookieName):void 0;$0&&(o0[e0.xsrfHeaderName]=$0)}"setRequestHeader"in l0&&utils$6.forEach(o0,function(v0,m0){typeof i0=="undefined"&&m0.toLowerCase()==="content-type"?delete o0[m0]:l0.setRequestHeader(m0,v0)}),utils$6.isUndefined(e0.withCredentials)||(l0.withCredentials=!!e0.withCredentials),a0&&a0!=="json"&&(l0.responseType=e0.responseType),typeof e0.onDownloadProgress=="function"&&l0.addEventListener("progress",e0.onDownloadProgress),typeof e0.onUploadProgress=="function"&&l0.upload&&l0.upload.addEventListener("progress",e0.onUploadProgress),(e0.cancelToken||e0.signal)&&(s0=function(p0){!l0||(n0(!p0||p0&&p0.type?new Cancel$2("canceled"):p0),l0.abort(),l0=null)},e0.cancelToken&&e0.cancelToken.subscribe(s0),e0.signal&&(e0.signal.aborted?s0():e0.signal.addEventListener("abort",s0))),i0||(i0=null),l0.send(i0)})},utils$5=utils$d,normalizeHeaderName=normalizeHeaderName$1,enhanceError=enhanceError$2,DEFAULT_CONTENT_TYPE={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(e,e0){!utils$5.isUndefined(e)&&utils$5.isUndefined(e["Content-Type"])&&(e["Content-Type"]=e0)}function getDefaultAdapter(){var e;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(e=xhr),e}function stringifySafely(e,e0,t0){if(utils$5.isString(e))try{return(e0||JSON.parse)(e),utils$5.trim(e)}catch(r0){if(r0.name!=="SyntaxError")throw r0}return(t0||JSON.stringify)(e)}var defaults$4={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:getDefaultAdapter(),transformRequest:[function(e0,t0){return normalizeHeaderName(t0,"Accept"),normalizeHeaderName(t0,"Content-Type"),utils$5.isFormData(e0)||utils$5.isArrayBuffer(e0)||utils$5.isBuffer(e0)||utils$5.isStream(e0)||utils$5.isFile(e0)||utils$5.isBlob(e0)?e0:utils$5.isArrayBufferView(e0)?e0.buffer:utils$5.isURLSearchParams(e0)?(setContentTypeIfUnset(t0,"application/x-www-form-urlencoded;charset=utf-8"),e0.toString()):utils$5.isObject(e0)||t0&&t0["Content-Type"]==="application/json"?(setContentTypeIfUnset(t0,"application/json"),stringifySafely(e0)):e0}],transformResponse:[function(e0){var t0=this.transitional||defaults$4.transitional,r0=t0&&t0.silentJSONParsing,n0=t0&&t0.forcedJSONParsing,i0=!r0&&this.responseType==="json";if(i0||n0&&utils$5.isString(e0)&&e0.length)try{return JSON.parse(e0)}catch(o0){if(i0)throw o0.name==="SyntaxError"?enhanceError(o0,this,"E_JSON_PARSE"):o0}return e0}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e0){return e0>=200&&e0<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};utils$5.forEach(["delete","get","head"],function(e0){defaults$4.headers[e0]={}}),utils$5.forEach(["post","put","patch"],function(e0){defaults$4.headers[e0]=utils$5.merge(DEFAULT_CONTENT_TYPE)});var defaults_1=defaults$4,utils$4=utils$d,defaults$3=defaults_1,transformData$1=function(e0,t0,r0){var n0=this||defaults$3;return utils$4.forEach(r0,function(o0){e0=o0.call(n0,e0,t0)}),e0},isCancel$1=function(e0){return!!(e0&&e0.__CANCEL__)},utils$3=utils$d,transformData=transformData$1,isCancel=isCancel$1,defaults$2=defaults_1,Cancel$1=Cancel_1;function throwIfCancellationRequested(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Cancel$1("canceled")}var dispatchRequest$1=function(e0){throwIfCancellationRequested(e0),e0.headers=e0.headers||{},e0.data=transformData.call(e0,e0.data,e0.headers,e0.transformRequest),e0.headers=utils$3.merge(e0.headers.common||{},e0.headers[e0.method]||{},e0.headers),utils$3.forEach(["delete","get","head","post","put","patch","common"],function(n0){delete e0.headers[n0]});var t0=e0.adapter||defaults$2.adapter;return t0(e0).then(function(n0){return throwIfCancellationRequested(e0),n0.data=transformData.call(e0,n0.data,n0.headers,e0.transformResponse),n0},function(n0){return isCancel(n0)||(throwIfCancellationRequested(e0),n0&&n0.response&&(n0.response.data=transformData.call(e0,n0.response.data,n0.response.headers,e0.transformResponse))),Promise.reject(n0)})},utils$2=utils$d,mergeConfig$2=function(e0,t0){t0=t0||{};var r0={};function n0(l0,u0){return utils$2.isPlainObject(l0)&&utils$2.isPlainObject(u0)?utils$2.merge(l0,u0):utils$2.isPlainObject(u0)?utils$2.merge({},u0):utils$2.isArray(u0)?u0.slice():u0}function i0(l0){if(utils$2.isUndefined(t0[l0])){if(!utils$2.isUndefined(e0[l0]))return n0(void 0,e0[l0])}else return n0(e0[l0],t0[l0])}function o0(l0){if(!utils$2.isUndefined(t0[l0]))return n0(void 0,t0[l0])}function a0(l0){if(utils$2.isUndefined(t0[l0])){if(!utils$2.isUndefined(e0[l0]))return n0(void 0,e0[l0])}else return n0(void 0,t0[l0])}function s0(l0){if(l0 in t0)return n0(e0[l0],t0[l0]);if(l0 in e0)return n0(void 0,e0[l0])}var c0={url:o0,method:o0,data:o0,baseURL:a0,transformRequest:a0,transformResponse:a0,paramsSerializer:a0,timeout:a0,timeoutMessage:a0,withCredentials:a0,adapter:a0,responseType:a0,xsrfCookieName:a0,xsrfHeaderName:a0,onUploadProgress:a0,onDownloadProgress:a0,decompress:a0,maxContentLength:a0,maxBodyLength:a0,transport:a0,httpAgent:a0,httpsAgent:a0,cancelToken:a0,socketPath:a0,responseEncoding:a0,validateStatus:s0};return utils$2.forEach(Object.keys(e0).concat(Object.keys(t0)),function(u0){var d0=c0[u0]||i0,f0=d0(u0);utils$2.isUndefined(f0)&&d0!==s0||(r0[u0]=f0)}),r0},data={version:"0.24.0"},VERSION=data.version,validators$1={};["object","boolean","number","function","string","symbol"].forEach(function(e,e0){validators$1[e]=function(r0){return typeof r0===e||"a"+(e0<1?"n ":" ")+e}});var deprecatedWarnings={};validators$1.transitional=function(e0,t0,r0){function n0(i0,o0){return"[Axios v"+VERSION+"] Transitional option '"+i0+"'"+o0+(r0?". "+r0:"")}return function(i0,o0,a0){if(e0===!1)throw new Error(n0(o0," has been removed"+(t0?" in "+t0:"")));return t0&&!deprecatedWarnings[o0]&&(deprecatedWarnings[o0]=!0,console.warn(n0(o0," has been deprecated since v"+t0+" and will be removed in the near future"))),e0?e0(i0,o0,a0):!0}};function assertOptions(e,e0,t0){if(typeof e!="object")throw new TypeError("options must be an object");for(var r0=Object.keys(e),n0=r0.length;n0-- >0;){var i0=r0[n0],o0=e0[i0];if(o0){var a0=e[i0],s0=a0===void 0||o0(a0,i0,e);if(s0!==!0)throw new TypeError("option "+i0+" must be "+s0);continue}if(t0!==!0)throw Error("Unknown option "+i0)}}var validator$1={assertOptions,validators:validators$1},utils$1=utils$d,buildURL=buildURL$2,InterceptorManager=InterceptorManager_1,dispatchRequest=dispatchRequest$1,mergeConfig$1=mergeConfig$2,validator=validator$1,validators=validator.validators;function Axios$1(e){this.defaults=e,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}Axios$1.prototype.request=function(e0){typeof e0=="string"?(e0=arguments[1]||{},e0.url=arguments[0]):e0=e0||{},e0=mergeConfig$1(this.defaults,e0),e0.method?e0.method=e0.method.toLowerCase():this.defaults.method?e0.method=this.defaults.method.toLowerCase():e0.method="get";var t0=e0.transitional;t0!==void 0&&validator.assertOptions(t0,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1);var r0=[],n0=!0;this.interceptors.request.forEach(function(d0){typeof d0.runWhen=="function"&&d0.runWhen(e0)===!1||(n0=n0&&d0.synchronous,r0.unshift(d0.fulfilled,d0.rejected))});var i0=[];this.interceptors.response.forEach(function(d0){i0.push(d0.fulfilled,d0.rejected)});var o0;if(!n0){var a0=[dispatchRequest,void 0];for(Array.prototype.unshift.apply(a0,r0),a0=a0.concat(i0),o0=Promise.resolve(e0);a0.length;)o0=o0.then(a0.shift(),a0.shift());return o0}for(var s0=e0;r0.length;){var c0=r0.shift(),l0=r0.shift();try{s0=c0(s0)}catch(u0){l0(u0);break}}try{o0=dispatchRequest(s0)}catch(u0){return Promise.reject(u0)}for(;i0.length;)o0=o0.then(i0.shift(),i0.shift());return o0},Axios$1.prototype.getUri=function(e0){return e0=mergeConfig$1(this.defaults,e0),buildURL(e0.url,e0.params,e0.paramsSerializer).replace(/^\?/,"")},utils$1.forEach(["delete","get","head","options"],function(e0){Axios$1.prototype[e0]=function(t0,r0){return this.request(mergeConfig$1(r0||{},{method:e0,url:t0,data:(r0||{}).data}))}}),utils$1.forEach(["post","put","patch"],function(e0){Axios$1.prototype[e0]=function(t0,r0,n0){return this.request(mergeConfig$1(n0||{},{method:e0,url:t0,data:r0}))}});var Axios_1=Axios$1,Cancel=Cancel_1;function CancelToken(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var e0;this.promise=new Promise(function(n0){e0=n0});var t0=this;this.promise.then(function(r0){if(!!t0._listeners){var n0,i0=t0._listeners.length;for(n0=0;n0<i0;n0++)t0._listeners[n0](r0);t0._listeners=null}}),this.promise.then=function(r0){var n0,i0=new Promise(function(o0){t0.subscribe(o0),n0=o0}).then(r0);return i0.cancel=function(){t0.unsubscribe(n0)},i0},e(function(n0){t0.reason||(t0.reason=new Cancel(n0),e0(t0.reason))})}CancelToken.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},CancelToken.prototype.subscribe=function(e0){if(this.reason){e0(this.reason);return}this._listeners?this._listeners.push(e0):this._listeners=[e0]},CancelToken.prototype.unsubscribe=function(e0){if(!!this._listeners){var t0=this._listeners.indexOf(e0);t0!==-1&&this._listeners.splice(t0,1)}},CancelToken.source=function(){var e0,t0=new CancelToken(function(n0){e0=n0});return{token:t0,cancel:e0}};var CancelToken_1=CancelToken,spread=function(e0){return function(r0){return e0.apply(null,r0)}},isAxiosError=function(e0){return typeof e0=="object"&&e0.isAxiosError===!0},utils=utils$d,bind=bind$2,Axios=Axios_1,mergeConfig=mergeConfig$2,defaults$1=defaults_1;function createInstance(e){var e0=new Axios(e),t0=bind(Axios.prototype.request,e0);return utils.extend(t0,Axios.prototype,e0),utils.extend(t0,e0),t0.create=function(n0){return createInstance(mergeConfig(e,n0))},t0}var axios$1=createInstance(defaults$1);axios$1.Axios=Axios,axios$1.Cancel=Cancel_1,axios$1.CancelToken=CancelToken_1,axios$1.isCancel=isCancel$1,axios$1.VERSION=data.version,axios$1.all=function(e0){return Promise.all(e0)},axios$1.spread=spread,axios$1.isAxiosError=isAxiosError,axios$2.exports=axios$1,axios$2.exports.default=axios$1;var require$$0$1=axios$2.exports,axios=require$$0$1;const containers=[{type:"grid",category:"container",icon:"grid",cols:[],options:{name:"",hidden:!1,gutter:12,colHeight:null,customClass:""}},{type:"table",category:"container",icon:"table",rows:[],options:{name:"",hidden:!1,customClass:""}},{type:"tab",category:"container",icon:"tab",displayType:"border-card",tabs:[],options:{name:"",hidden:!1,customClass:""}},{type:"grid-col",category:"container",icon:"grid-col",internal:!0,widgetList:[],options:{name:"",hidden:!1,span:12,offset:0,push:0,pull:0,responsive:!1,md:12,sm:12,xs:12,customClass:""}},{type:"table-cell",category:"container",icon:"table-cell",internal:!0,widgetList:[],merged:!1,options:{name:"",cellWidth:"",cellHeight:"",colspan:1,rowspan:1,customClass:""}},{type:"tab-pane",category:"container",icon:"tab-pane",internal:!0,widgetList:[],options:{name:"",label:"",hidden:!1,active:!1,disabled:!1,customClass:""}}],basicFields=[{type:"input",icon:"text-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",type:"text",defaultValue:"",placeholder:"",columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,readonly:!1,disabled:!1,hidden:!1,clearable:!0,showPassword:!1,required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,minLength:null,maxLength:null,showWordLimit:!1,prefixIcon:"",suffixIcon:"",appendButton:!1,appendButtonDisabled:!1,buttonIcon:"custom-search",onCreated:"",onMounted:"",onInput:"",onChange:"",onFocus:"",onBlur:"",onValidate:"",onAppendButtonClick:""}},{type:"textarea",icon:"textarea-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",rows:3,defaultValue:"",placeholder:"",columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,readonly:!1,disabled:!1,hidden:!1,required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,minLength:null,maxLength:null,showWordLimit:!1,onCreated:"",onMounted:"",onInput:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}},{type:"number",icon:"number-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:0,placeholder:"",columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,min:-1e11,max:1e11,precision:0,step:1,controlsPosition:"right",onCreated:"",onMounted:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}},{type:"radio",icon:"radio-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:null,columnWidth:"200px",size:"",displayStyle:"inline",buttonStyle:!1,border:!1,labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,optionItems:[{label:"radio 1",value:1},{label:"radio 2",value:2},{label:"radio 3",value:3}],dataSource:!1,remote:{},required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onValidate:""}},{type:"checkbox",icon:"checkbox-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:[],columnWidth:"200px",size:"",displayStyle:"inline",buttonStyle:!1,border:!1,labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,optionItems:[{label:"check 1",value:1},{label:"check 2",value:2},{label:"check 3",value:3}],isDataSource:!1,dataSource:{},required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onValidate:""}},{type:"select",icon:"select-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:"",placeholder:"",columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,clearable:!0,filterable:!1,allowCreate:!1,remote:!1,automaticDropdown:!1,multiple:!1,multipleLimit:0,optionItems:[{label:"select 1",value:1},{label:"select 2",value:2},{label:"select 3",value:3}],isDataSource:!1,dataSource:{},required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onRemoteQuery:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}},{type:"time",icon:"time-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:null,placeholder:"",columnWidth:"200px",size:"",autoFullWidth:!0,labelWidth:null,labelHidden:!1,readonly:!1,disabled:!1,hidden:!1,clearable:!0,editable:!1,format:"HH:mm:ss",required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}},{type:"time-range",icon:"time-range-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:null,startPlaceholder:"",endPlaceholder:"",columnWidth:"200px",size:"",autoFullWidth:!0,labelWidth:null,labelHidden:!1,readonly:!1,disabled:!1,hidden:!1,clearable:!0,editable:!1,format:"HH:mm:ss",required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}},{type:"date",icon:"date-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",type:"date",defaultValue:null,placeholder:"",columnWidth:"200px",size:"",autoFullWidth:!0,labelWidth:null,labelHidden:!1,readonly:!1,disabled:!1,hidden:!1,clearable:!0,editable:!1,format:"YYYY-MM-DD",valueFormat:"YYYY-MM-DD",required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}},{type:"date-range",icon:"date-range-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",type:"daterange",defaultValue:null,startPlaceholder:"",endPlaceholder:"",columnWidth:"200px",size:"",autoFullWidth:!0,labelWidth:null,labelHidden:!1,readonly:!1,disabled:!1,hidden:!1,clearable:!0,editable:!1,format:"YYYY-MM-DD",valueFormat:"YYYY-MM-DD",required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}},{type:"switch",icon:"switch-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:null,columnWidth:"200px",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,switchWidth:40,activeText:"",inactiveText:"",activeColor:null,inactiveColor:null,onCreated:"",onMounted:"",onChange:"",onValidate:""}},{type:"rate",icon:"rate-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:null,columnWidth:"200px",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,max:5,lowThreshold:2,highThreshold:4,allowHalf:!1,showText:!1,showScore:!1,onCreated:"",onMounted:"",onChange:"",onValidate:""}},{type:"color",icon:"color-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:null,columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onValidate:""}},{type:"slider",icon:"slider-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",columnWidth:"200px",showStops:!0,size:"",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,min:0,max:100,step:10,range:!1,height:null,onCreated:"",onMounted:"",onChange:"",onValidate:""}},{type:"static-text",icon:"static-text",formItemFlag:!1,options:{name:"",columnWidth:"200px",hidden:!1,textContent:"static text",customClass:"",onCreated:"",onMounted:""}},{type:"html-text",icon:"html-text",formItemFlag:!1,options:{name:"",columnWidth:"200px",hidden:!1,htmlContent:"<b>html text</b>",customClass:"",onCreated:"",onMounted:""}},{type:"button",icon:"button",formItemFlag:!1,options:{name:"",label:"",columnWidth:"200px",size:"",displayStyle:"block",disabled:!1,hidden:!1,type:"",plain:!1,round:!1,circle:!1,icon:null,customClass:"",onCreated:"",onMounted:"",onClick:""}},{type:"divider",icon:"divider",formItemFlag:!1,options:{name:"",label:"",columnWidth:"200px",direction:"horizontal",contentPosition:"center",hidden:!1,customClass:"",onCreated:"",onMounted:""}}],advancedFields=[{type:"picture-upload",icon:"picture-upload-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",labelWidth:null,labelHidden:!1,columnWidth:"200px",disabled:!1,hidden:!1,required:!1,requiredHint:"",customRule:"",customRuleHint:"",uploadURL:"",uploadTip:"",withCredentials:!1,multipleSelect:!1,showFileList:!0,limit:3,fileMaxSize:5,fileTypes:["jpg","jpeg","png"],customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onBeforeUpload:"",onUploadSuccess:"",onUploadError:"",onFileRemove:"",onValidate:""}},{type:"file-upload",icon:"file-upload-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",labelWidth:null,labelHidden:!1,columnWidth:"200px",disabled:!1,hidden:!1,required:!1,requiredHint:"",customRule:"",customRuleHint:"",uploadURL:"",uploadTip:"",withCredentials:!1,multipleSelect:!1,showFileList:!0,limit:3,fileMaxSize:5,fileTypes:["doc","docx","xls","xlsx"],customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onBeforeUpload:"",onUploadSuccess:"",onUploadError:"",onFileRemove:"",onValidate:""}},{type:"rich-editor",icon:"rich-editor-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",placeholder:"",labelWidth:null,labelHidden:!1,columnWidth:"200px",contentHeight:"200px",disabled:!1,hidden:!1,required:!1,requiredHint:"",customRule:"",customRuleHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,minLength:null,maxLength:null,showWordLimit:!1,onCreated:"",onMounted:"",onValidate:""}},{type:"cascader",icon:"cascader-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:"",placeholder:"",size:"",labelWidth:null,labelHidden:!1,columnWidth:"200px",disabled:!1,hidden:!1,clearable:!0,filterable:!1,optionItems:[{label:"select 1",value:1,children:[{label:"child 1",value:11}]},{label:"select 2",value:2},{label:"select 3",value:3}],isDataSource:!1,dataSource:{},required:!1,requiredHint:"",customRule:"",customRuleHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}}],customFields=[];function addContainerWidgetSchema(e){containers.push(e)}function addCustomWidgetSchema(e){customFields.push(e)}const formTemplates=[{title:"\u5355\u5217\u8868\u5355",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t1.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json1.txt",description:"\u8868\u5355\u6A21\u677F\u8BE6\u7EC6\u8BF4\u660E..."},{title:"\u591A\u5217\u8868\u5355",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t2.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json2.txt",description:"\u8868\u5355\u6A21\u677F\u8BE6\u7EC6\u8BF4\u660E..."},{title:"\u5206\u7EC4\u8868\u5355",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t3.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json3.txt",description:"\u8868\u5355\u6A21\u677F\u8BE6\u7EC6\u8BF4\u660E..."},{title:"\u6807\u7B7E\u9875\u8868\u5355",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t4.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json4.txt",description:"\u8868\u5355\u6A21\u677F\u8BE6\u7EC6\u8BF4\u660E..."},{title:"\u4E3B\u4ECE\u8868\u5355",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t5.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json5.txt",description:"\u8868\u5355\u6A21\u677F\u8BE6\u7EC6\u8BF4\u660E..."},{title:"\u54CD\u5E94\u5F0F\u8868\u5355",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t6.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json6.txt",description:"\u8868\u5355\u6A21\u677F\u8BE6\u7EC6\u8BF4\u660E..."},{title:"\u95EE\u5377\u8C03\u67E5\u8868",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t7.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json7.txt",description:"\u8868\u5355\u6A21\u677F\u8BE6\u7EC6\u8BF4\u660E..."},{title:"\u56FA\u5B9A\u8868\u683C\u8868\u5355",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t8.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json8.txt",description:"\u8868\u5355\u6A21\u677F\u8BE6\u7EC6\u8BF4\u660E..."}];var clipboard={exports:{}};/*! * clipboard.js v2.0.11 * https://clipboardjs.com/ * * Licensed MIT © Zeno Rocha */(function(e,e0){(function(r0,n0){e.exports=n0()})(commonjsGlobal$1,function(){return function(){var t0={686:function(i0,o0,a0){a0.d(o0,{default:function(){return U0}});var s0=a0(279),c0=a0.n(s0),l0=a0(370),u0=a0.n(l0),d0=a0(817),f0=a0.n(d0);function h0(q0){try{return document.execCommand(q0)}catch{return!1}}var $0=function(O0){var M0=f0()(O0);return h0("cut"),M0},p0=$0;function v0(q0){var O0=document.documentElement.getAttribute("dir")==="rtl",M0=document.createElement("textarea");M0.style.fontSize="12pt",M0.style.border="0",M0.style.padding="0",M0.style.margin="0",M0.style.position="absolute",M0.style[O0?"right":"left"]="-9999px";var R0=window.pageYOffset||document.documentElement.scrollTop;return M0.style.top="".concat(R0,"px"),M0.setAttribute("readonly",""),M0.value=q0,M0}var m0=function(O0,M0){var R0=v0(O0);M0.container.appendChild(R0);var V0=f0()(R0);return h0("copy"),R0.remove(),V0},C0=function(O0){var M0=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},R0="";return typeof O0=="string"?R0=m0(O0,M0):O0 instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(O0==null?void 0:O0.type)?R0=m0(O0.value,M0):(R0=f0()(O0),h0("copy")),R0},b0=C0;function g0(q0){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?g0=function(M0){return typeof M0}:g0=function(M0){return M0&&typeof Symbol=="function"&&M0.constructor===Symbol&&M0!==Symbol.prototype?"symbol":typeof M0},g0(q0)}var _0=function(){var O0=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},M0=O0.action,R0=M0===void 0?"copy":M0,V0=O0.container,I0=O0.target,K0=O0.text;if(R0!=="copy"&&R0!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(I0!==void 0)if(I0&&g0(I0)==="object"&&I0.nodeType===1){if(R0==="copy"&&I0.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(R0==="cut"&&(I0.hasAttribute("readonly")||I0.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(K0)return b0(K0,{container:V0});if(I0)return R0==="cut"?p0(I0):b0(I0,{container:V0})},E0=_0;function y0(q0){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y0=function(M0){return typeof M0}:y0=function(M0){return M0&&typeof Symbol=="function"&&M0.constructor===Symbol&&M0!==Symbol.prototype?"symbol":typeof M0},y0(q0)}function x0(q0,O0){if(!(q0 instanceof O0))throw new TypeError("Cannot call a class as a function")}function w0(q0,O0){for(var M0=0;M0<O0.length;M0++){var R0=O0[M0];R0.enumerable=R0.enumerable||!1,R0.configurable=!0,"value"in R0&&(R0.writable=!0),Object.defineProperty(q0,R0.key,R0)}}function S0(q0,O0,M0){return O0&&w0(q0.prototype,O0),M0&&w0(q0,M0),q0}function A0(q0,O0){if(typeof O0!="function"&&O0!==null)throw new TypeError("Super expression must either be null or a function");q0.prototype=Object.create(O0&&O0.prototype,{constructor:{value:q0,writable:!0,configurable:!0}}),O0&&k0(q0,O0)}function k0(q0,O0){return k0=Object.setPrototypeOf||function(R0,V0){return R0.__proto__=V0,R0},k0(q0,O0)}function T0(q0){var O0=P0();return function(){var R0=N0(q0),V0;if(O0){var I0=N0(this).constructor;V0=Reflect.construct(R0,arguments,I0)}else V0=R0.apply(this,arguments);return D0(this,V0)}}function D0(q0,O0){return O0&&(y0(O0)==="object"||typeof O0=="function")?O0:F0(q0)}function F0(q0){if(q0===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return q0}function P0(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function N0(q0){return N0=Object.setPrototypeOf?Object.getPrototypeOf:function(M0){return M0.__proto__||Object.getPrototypeOf(M0)},N0(q0)}function j0(q0,O0){var M0="data-clipboard-".concat(q0);if(!!O0.hasAttribute(M0))return O0.getAttribute(M0)}var z0=function(q0){A0(M0,q0);var O0=T0(M0);function M0(R0,V0){var I0;return x0(this,M0),I0=O0.call(this),I0.resolveOptions(V0),I0.listenClick(R0),I0}return S0(M0,[{key:"resolveOptions",value:function(){var V0=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof V0.action=="function"?V0.action:this.defaultAction,this.target=typeof V0.target=="function"?V0.target:this.defaultTarget,this.text=typeof V0.text=="function"?V0.text:this.defaultText,this.container=y0(V0.container)==="object"?V0.container:document.body}},{key:"listenClick",value:function(V0){var I0=this;this.listener=u0()(V0,"click",function(K0){return I0.onClick(K0)})}},{key:"onClick",value:function(V0){var I0=V0.delegateTarget||V0.currentTarget,K0=this.action(I0)||"copy",J0=E0({action:K0,container:this.container,target:this.target(I0),text:this.text(I0)});this.emit(J0?"success":"error",{action:K0,text:J0,trigger:I0,clearSelection:function(){I0&&I0.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(V0){return j0("action",V0)}},{key:"defaultTarget",value:function(V0){var I0=j0("target",V0);if(I0)return document.querySelector(I0)}},{key:"defaultText",value:function(V0){return j0("text",V0)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(V0){var I0=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return b0(V0,I0)}},{key:"cut",value:function(V0){return p0(V0)}},{key:"isSupported",value:function(){var V0=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],I0=typeof V0=="string"?[V0]:V0,K0=!!document.queryCommandSupported;return I0.forEach(function(J0){K0=K0&&!!document.queryCommandSupported(J0)}),K0}}]),M0}(c0()),U0=z0},828:function(i0){var o0=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var a0=Element.prototype;a0.matches=a0.matchesSelector||a0.mozMatchesSelector||a0.msMatchesSelector||a0.oMatchesSelector||a0.webkitMatchesSelector}function s0(c0,l0){for(;c0&&c0.nodeType!==o0;){if(typeof c0.matches=="function"&&c0.matches(l0))return c0;c0=c0.parentNode}}i0.exports=s0},438:function(i0,o0,a0){var s0=a0(828);function c0(d0,f0,h0,$0,p0){var v0=u0.apply(this,arguments);return d0.addEventListener(h0,v0,p0),{destroy:function(){d0.removeEventListener(h0,v0,p0)}}}function l0(d0,f0,h0,$0,p0){return typeof d0.addEventListener=="function"?c0.apply(null,arguments):typeof h0=="function"?c0.bind(null,document).apply(null,arguments):(typeof d0=="string"&&(d0=document.querySelectorAll(d0)),Array.prototype.map.call(d0,function(v0){return c0(v0,f0,h0,$0,p0)}))}function u0(d0,f0,h0,$0){return function(p0){p0.delegateTarget=s0(p0.target,f0),p0.delegateTarget&&$0.call(d0,p0)}}i0.exports=l0},879:function(i0,o0){o0.node=function(a0){return a0!==void 0&&a0 instanceof HTMLElement&&a0.nodeType===1},o0.nodeList=function(a0){var s0=Object.prototype.toString.call(a0);return a0!==void 0&&(s0==="[object NodeList]"||s0==="[object HTMLCollection]")&&"length"in a0&&(a0.length===0||o0.node(a0[0]))},o0.string=function(a0){return typeof a0=="string"||a0 instanceof String},o0.fn=function(a0){var s0=Object.prototype.toString.call(a0);return s0==="[object Function]"}},370:function(i0,o0,a0){var s0=a0(879),c0=a0(438);function l0(h0,$0,p0){if(!h0&&!$0&&!p0)throw new Error("Missing required arguments");if(!s0.string($0))throw new TypeError("Second argument must be a String");if(!s0.fn(p0))throw new TypeError("Third argument must be a Function");if(s0.node(h0))return u0(h0,$0,p0);if(s0.nodeList(h0))return d0(h0,$0,p0);if(s0.string(h0))return f0(h0,$0,p0);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function u0(h0,$0,p0){return h0.addEventListener($0,p0),{destroy:function(){h0.removeEventListener($0,p0)}}}function d0(h0,$0,p0){return Array.prototype.forEach.call(h0,function(v0){v0.addEventListener($0,p0)}),{destroy:function(){Array.prototype.forEach.call(h0,function(v0){v0.removeEventListener($0,p0)})}}}function f0(h0,$0,p0){return c0(document.body,h0,$0,p0)}i0.exports=l0},817:function(i0){function o0(a0){var s0;if(a0.nodeName==="SELECT")a0.focus(),s0=a0.value;else if(a0.nodeName==="INPUT"||a0.nodeName==="TEXTAREA"){var c0=a0.hasAttribute("readonly");c0||a0.setAttribute("readonly",""),a0.select(),a0.setSelectionRange(0,a0.value.length),c0||a0.removeAttribute("readonly"),s0=a0.value}else{a0.hasAttribute("contenteditable")&&a0.focus();var l0=window.getSelection(),u0=document.createRange();u0.selectNodeContents(a0),l0.removeAllRanges(),l0.addRange(u0),s0=l0.toString()}return s0}i0.exports=o0},279:function(i0){function o0(){}o0.prototype={on:function(a0,s0,c0){var l0=this.e||(this.e={});return(l0[a0]||(l0[a0]=[])).push({fn:s0,ctx:c0}),this},once:function(a0,s0,c0){var l0=this;function u0(){l0.off(a0,u0),s0.apply(c0,arguments)}return u0._=s0,this.on(a0,u0,c0)},emit:function(a0){var s0=[].slice.call(arguments,1),c0=((this.e||(this.e={}))[a0]||[]).slice(),l0=0,u0=c0.length;for(l0;l0<u0;l0++)c0[l0].fn.apply(c0[l0].ctx,s0);return this},off:function(a0,s0){var c0=this.e||(this.e={}),l0=c0[a0],u0=[];if(l0&&s0)for(var d0=0,f0=l0.length;d0<f0;d0++)l0[d0].fn!==s0&&l0[d0].fn._!==s0&&u0.push(l0[d0]);return u0.length?c0[a0]=u0:delete c0[a0],this}},i0.exports=o0,i0.exports.TinyEmitter=o0}},r0={};function n0(i0){if(r0[i0])return r0[i0].exports;var o0=r0[i0]={exports:{}};return t0[i0](o0,o0.exports,n0),o0.exports}return function(){n0.n=function(i0){var o0=i0&&i0.__esModule?function(){return i0.default}:function(){return i0};return n0.d(o0,{a:o0}),o0}}(),function(){n0.d=function(i0,o0){for(var a0 in o0)n0.o(o0,a0)&&!n0.o(i0,a0)&&Object.defineProperty(i0,a0,{enumerable:!0,get:o0[a0]})}}(),function(){n0.o=function(i0,o0){return Object.prototype.hasOwnProperty.call(i0,o0)}}(),n0(686)}().default})})(clipboard);var Clipboard=getDefaultExportFromCjs(clipboard.exports);function isNull(e){return e==null}function isNotNull(e){return e!=null}function isEmptyStr(e){return e===void 0||!e&&e!==0&&e!=="0"||!/[^\s]/.test(e)}const generateId=function(){return Math.floor(Math.random()*1e5+Math.random()*2e4+Math.random()*5e3)},deepClone=function(e){if(e!==void 0)return JSON.parse(JSON.stringify(e))},overwriteObj=function(e,e0){Object.keys(e0).forEach(t0=>{e[t0]=e0[t0]})},addWindowResizeHandler=function(e){let e0=window.onresize;typeof window.onresize!="function"?window.onresize=e:window.onresize=function(){e0(),e()}},insertCustomCssToHead=function(e,e0=""){let t0=document.getElementsByTagName("head")[0],r0=document.getElementById("vform-custom-css");r0&&t0.removeChild(r0),e0&&(r0=document.getElementById("vform-custom-css-"+e0),r0&&t0.removeChild(r0));let n0=document.createElement("style");n0.type="text/css",n0.rel="stylesheet",n0.id=e0?"vform-custom-css-"+e0:"vform-custom-css";try{n0.appendChild(document.createTextNode(e))}catch{n0.styleSheet.cssText=e}t0.appendChild(n0)},insertGlobalFunctionsToHtml=function(e,e0=""){let t0=document.getElementsByTagName("body")[0],r0=document.getElementById("v_form_global_functions");r0&&t0.removeChild(r0),e0&&(r0=document.getElementById("v_form_global_functions-"+e0),r0&&t0.removeChild(r0));let n0=document.createElement("script");n0.id=e0?"v_form_global_functions-"+e0:"v_form_global_functions",n0.type="text/javascript",n0.innerHTML=e,t0.appendChild(n0)},loadRemoteScript=function(e,e0){let t0=encodeURIComponent(e);if(!document.getElementById(t0)){let n0=document.createElement("script");n0.src=e,n0.id=t0,document.body.appendChild(n0),n0.onload=n0.onreadystatechange=function(i0,o0){(o0||!n0.readyState||n0.readyState==="loaded"||n0.readyState==="complete")&&(n0=n0.onload=n0.onreadystatechange=null,o0||e0())}}};function traverseFieldWidgets(e,e0,t0=null){e.map(r0=>{r0.formItemFlag?e0(r0,t0):r0.type==="grid"?r0.cols.map(n0=>{traverseFieldWidgets(n0.widgetList,e0,r0)}):r0.type==="table"?r0.rows.map(n0=>{n0.cols.map(i0=>{traverseFieldWidgets(i0.widgetList,e0,r0)})}):r0.type==="tab"?r0.tabs.map(n0=>{traverseFieldWidgets(n0.widgetList,e0,r0)}):(r0.type==="sub-form"||r0.category==="container")&&traverseFieldWidgets(r0.widgetList,e0,r0)})}function traverseContainWidgets(e,e0){e.map(t0=>{t0.category==="container"&&e0(t0),t0.type==="grid"?t0.cols.map(r0=>{traverseContainWidgets(r0.widgetList,e0)}):t0.type==="table"?t0.rows.map(r0=>{r0.cols.map(n0=>{traverseContainWidgets(n0.widgetList,e0)})}):t0.type==="tab"?t0.tabs.map(r0=>{traverseContainWidgets(r0.widgetList,e0)}):(t0.type==="sub-form"||t0.category==="container")&&traverseContainWidgets(t0.widgetList,e0)})}function traverseAllWidgets(e,e0){e.map(t0=>{e0(t0),t0.type==="grid"?t0.cols.map(r0=>{e0(r0),traverseAllWidgets(r0.widgetList,e0)}):t0.type==="table"?t0.rows.map(r0=>{r0.cols.map(n0=>{e0(n0),traverseAllWidgets(n0.widgetList,e0)})}):t0.type==="tab"?t0.tabs.map(r0=>{traverseAllWidgets(r0.widgetList,e0)}):(t0.type==="sub-form"||t0.category==="container")&&traverseAllWidgets(t0.widgetList,e0)})}function handleWidgetForTraverse(e,e0){e.category?traverseFieldWidgetsOfContainer(e,e0):e.formItemFlag&&e0(e)}function traverseFieldWidgetsOfContainer(e,e0){e.type==="grid"?e.cols.forEach(t0=>{t0.widgetList.forEach(r0=>{handleWidgetForTraverse(r0,e0)})}):e.type==="table"?e.rows.forEach(t0=>{t0.cols.forEach(r0=>{r0.widgetList.forEach(n0=>{handleWidgetForTraverse(n0,e0)})})}):e.type==="tab"?e.tabs.forEach(t0=>{t0.widgetList.forEach(r0=>{handleWidgetForTraverse(r0,e0)})}):e.type==="sub-form"?e.widgetList.forEach(t0=>{handleWidgetForTraverse(t0,e0)}):e.category==="container"&&e.widgetList.forEach(t0=>{handleWidgetForTraverse(t0,e0)})}function getAllFieldWidgets(e){let e0=[];return traverseFieldWidgets(e,r0=>{e0.push({type:r0.type,name:r0.options.name,field:r0})}),e0}function getAllContainerWidgets(e){let e0=[];return traverseContainWidgets(e,r0=>{e0.push({type:r0.type,name:r0.options.name,container:r0})}),e0}function copyToClipboard(e,e0,t0,r0,n0){const i0=new Clipboard(e0.target,{text:()=>e});i0.on("success",()=>{t0.success(r0),i0.destroy()}),i0.on("error",()=>{t0.error(n0),i0.destroy()}),i0.onClick(e0)}function getQueryParam(e){let t0=window.location.search.substring(1).split("&");for(let r0=0;r0<t0.length;r0++){let n0=t0[r0].split("=");if(n0[0]==e)return n0[1]}}function getDefaultFormConfig(){return{modelName:"formData",refName:"vForm",rulesName:"rules",labelWidth:80,labelPosition:"left",size:"",labelAlign:"label-left-align",cssCode:"",customClass:"",functions:"",layoutType:"PC",jsonVersion:3,onFormCreated:"",onFormMounted:"",onFormDataChange:""}}function buildDefaultFormJson(){return{widgetList:[],formConfig:deepClone(getDefaultFormConfig())}}function isDef$1(e){return e!=null}function get(e,e0){const t0=e0.split(".");let r0=e;return t0.forEach(n0=>{r0=isDef$1(r0)&&isDef$1(r0[n0])?r0[n0]:null}),r0}let locale$2=require$$0$2.reactive({lang:localStorage.getItem("v_form_locale")||"zh-CN"});function createI18n(e){return{messages:e.messages,$st(e0,...t0){const r0=get(this.messages[locale$2.lang],e0);return typeof r0=="function"?r0(...t0):r0!==null?r0:e0},$st2(e0,t0){let r0=this.messages[locale$2.lang];const n0=get(r0,e0);return n0!==null?n0:get(r0,t0)},setLang(e0){locale$2.lang=e0}}}var en$8={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});var e0={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous