tianheng-ui 0.0.64 → 0.0.65

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.
@@ -1,4 +1,4 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("tianheng-ui",[],t):"object"==typeof exports?exports["tianheng-ui"]=t():e["tianheng-ui"]=t()}(window,(function(){return function(e){var t={};function n(i){var o;return(t[i]||(o=t[i]={i:i,l:!1,exports:{}},e[i].call(o.exports,o,o.exports,n),o.l=!0,o)).exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/lib/",n(n.s=287)}([function(e,t,n){"use strict";function i(e,t,n,i,o,r,s,a){var l,c,u=typeof(e=e||{}).default;u="function"==typeof(e="object"!=u&&"function"!=u?e:e.default)?e.options:e;return t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),r&&(u._scopeId=r),s?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},u._ssrRegister=l):o&&(l=a?function(){o.call(this,this.$root.$options.shadowRoot)}:o),l&&(u.functional?(u._injectStyles=l,c=u.render,u.render=function(e,t){return l.call(t),c(e,t)}):(t=u.beforeCreate,u.beforeCreate=t?[].concat(t,l):[l])),{exports:e,options:u}}n.d(t,"a",(function(){return i}))},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return configComponent})),__webpack_require__.d(__webpack_exports__,"b",(function(){return itemsComponent}));var configComponent={props:{widget:{type:Object,default:function(){return{}}},config:{type:Object,default:function(){return{}}},remoteApis:{type:Array,default:function(){return[]}}},data:function(){return{}},methods:{handleEventsShow:function(){this.$emit("events-show")},handleEventsEdit:function(e){this.$emit("events-edit",e)}}},itemsComponent={props:["widget","widgetArray","select","config"],methods:{handleEventAction:function handleEventAction(key){for(var eventScript=this.config.eventScript,i=0;i<eventScript.length;i++){var element=eventScript[i],func;element.key===key&&(func="(item,value)=>{".concat(element.func,"}"),eval(func)(this.widget,this.widget.options.defaultValue))}},display:function(e){console.log("请在 预览 模式下使用 display 方法")},hide:function(e){console.log("请在 预览 模式下使用 hide 方法")},setData:function(e){console.log("请在 预览 模式下使用 setData 方法")},getData:function(e){console.log("请在 预览 模式下使用 getData 方法")}}}},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",i=e[3];return i?t&&"function"==typeof btoa?(e=function(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}(i),t=i.sources.map((function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"})),[n].concat(t).concat([e]).join("\n")):[n].join("\n"):n}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var i={},o=0;o<this.length;o++){var r=this[o][0];"number"==typeof r&&(i[r]=!0)}for(o=0;o<e.length;o++){var s=e[o];"number"==typeof s[0]&&i[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),t.push(s))}},t}},function(e,t,n){"use strict";function i(e,t){for(var n=[],i={},o=0;o<t.length;o++){var r=(s=t[o])[0],s={id:e+":"+o,css:s[1],media:s[2],sourceMap:s[3]};i[r]?i[r].parts.push(s):n.push(i[r]={id:r,parts:[s]})}return n}if(n.r(t),n.d(t,"default",(function(){return f})),n="undefined"!=typeof document,"undefined"!=typeof DEBUG&&DEBUG&&!n)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");function o(){}var r={},s=n&&(document.head||document.getElementsByTagName("head")[0]),a=null,l=0,c=!1,u=null,d="data-vue-ssr-id",h="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function f(e,t,n,o){c=n,u=o||{};var s=i(e,t);return p(s),function(t){for(var n=[],o=0;o<s.length;o++){var a=s[o];(l=r[a.id]).refs--,n.push(l)}t?p(s=i(e,t)):s=[];var l;for(o=0;o<n.length;o++)if(0===(l=n[o]).refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete r[l.id]}}}function p(e){for(var t=0;t<e.length;t++){var n=e[t],i=r[n.id];if(i){i.refs++;for(var o=0;o<i.parts.length;o++)i.parts[o](n.parts[o]);for(;o<n.parts.length;o++)i.parts.push(m(n.parts[o]));i.parts.length>n.parts.length&&(i.parts.length=n.parts.length)}else{var s=[];for(o=0;o<n.parts.length;o++)s.push(m(n.parts[o]));r[n.id]={id:n.id,refs:1,parts:s}}}}function g(){var e=document.createElement("style");return e.type="text/css",s.appendChild(e),e}function m(e){var t,n,i,r=document.querySelector("style["+d+'~="'+e.id+'"]');if(r){if(c)return o;r.parentNode.removeChild(r)}return i=h?(t=l++,r=a=a||g(),n=b.bind(null,r,t,!1),b.bind(null,r,t,!0)):(r=g(),n=function(e,t){var n=t.css,i=t.media,o=t.sourceMap;if(i&&e.setAttribute("media",i),u.ssrId&&e.setAttribute(d,t.id),o&&(n=(n+="\n/*# sourceURL="+o.sources[0]+" */")+"\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,r),function(){r.parentNode.removeChild(r)}),n(e),function(t){t?t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap||n(e=t):i()}}v=[];var v;function b(e,t,n,i){n=n?"":i.css;e.styleSheet?e.styleSheet.cssText=function(e,t){return v[e]=t,v.filter(Boolean).join("\n")}(t,n):(i=document.createTextNode(n),(n=e.childNodes)[t]&&e.removeChild(n[t]),n.length?e.insertBefore(i,n[t]):e.appendChild(i))}},function(e,t,n){var i;i=function(e){return n={"01f9":function(e,t,n){"use strict";function i(){return this}var o=n("2d00"),r=n("5ca1"),s=n("2aba"),a=n("32e9"),l=n("84f2"),c=n("41a0"),u=n("7f20"),d=n("38fd"),h=n("2b4c")("iterator"),f=!([].keys&&"next"in[].keys()),p="values";e.exports=function(e,t,n,g,m,v,b){function w(e){if(!f&&e in C)return C[e];switch(e){case"keys":case p:return function(){return new n(this,e)}}return function(){return new n(this,e)}}c(n,t,g);g=t+" Iterator";var y,x,k=m==p,_=!1,C=e.prototype,S=C[h]||C["@@iterator"]||m&&C[m],E=S||w(m),T=m?k?w("entries"):E:void 0,A="Array"==t&&C.entries||S;if(A&&(A=d(A.call(new e)))!==Object.prototype&&A.next&&(u(A,g,!0),o||"function"==typeof A[h]||a(A,h,i)),k&&S&&S.name!==p&&(_=!0,E=function(){return S.call(this)}),o&&!b||!f&&!_&&C[h]||a(C,h,E),l[t]=E,l[g]=i,m)if(y={values:k?E:w(p),keys:v?E:w("keys"),entries:T},b)for(x in y)x in C||s(C,x,y[x]);else r(r.P+r.F*(f||_),t,y);return y}},"02f4":function(e,t,n){var i=n("4588"),o=n("be13");e.exports=function(e){return function(t,n){t=String(o(t)),n=i(n);var r,s=t.length;return n<0||s<=n?e?"":void 0:(r=t.charCodeAt(n))<55296||56319<r||n+1===s||(s=t.charCodeAt(n+1))<56320||57343<s?e?t.charAt(n):r:e?t.slice(n,n+2):s-56320+(r-55296<<10)+65536}}},"0390":function(e,t,n){"use strict";var i=n("02f4")(!0);e.exports=function(e,t,n){return t+(n?i(e,t).length:1)}},"0bfb":function(e,t,n){"use strict";var i=n("cb7c");e.exports=function(){var e=i(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"0d58":function(e,t,n){var i=n("ce10"),o=n("e11e");e.exports=Object.keys||function(e){return i(e,o)}},1495:function(e,t,n){var i=n("86cc"),o=n("cb7c"),r=n("0d58");e.exports=n("9e1e")?Object.defineProperties:function(e,t){o(e);for(var n,s=r(t),a=s.length,l=0;l<a;)i.f(e,n=s[l++],t[n]);return e}},"214f":function(e,t,n){"use strict";n("b0c5");var i,o=n("2aba"),r=n("32e9"),s=n("79e5"),a=n("be13"),l=n("2b4c"),c=n("520a"),u=l("species"),d=!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),h=(i=(n=/(?:)/).exec,n.exec=function(){return i.apply(this,arguments)},2===(n="ab".split(n)).length&&"a"===n[0]&&"b"===n[1]);e.exports=function(e,t,n){var i,f,p=l(e),g=!s((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),m=g?!s((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[u]=function(){return n}),n[p](""),!t})):void 0;g&&m&&("replace"!==e||d)&&("split"!==e||h)||(i=/./[p],n=(m=n(a,p,""[e],(function(e,t,n,o,r){return t.exec===c?g&&!r?{done:!0,value:i.call(t,n,o)}:{done:!0,value:e.call(n,t,o)}:{done:!1}})))[0],f=m[1],o(String.prototype,e,n),r(RegExp.prototype,p,2==t?function(e,t){return f.call(e,this,t)}:function(e){return f.call(e,this)}))}},"230e":function(e,t,n){var i=n("d3f4"),o=n("7726").document,r=i(o)&&i(o.createElement);e.exports=function(e){return r?o.createElement(e):{}}},"23c6":function(e,t,n){var i=n("2d95"),o=n("2b4c")("toStringTag"),r="Arguments"==i(function(){return arguments}());e.exports=function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,t){try{return e[t]}catch(e){}}(e=Object(e),o))?t:r?i(e):"Object"==(t=i(e))&&"function"==typeof e.callee?"Arguments":t}},2621:function(e,t){t.f=Object.getOwnPropertySymbols},"2aba":function(e,t,n){var i=n("7726"),o=n("32e9"),r=n("69a8"),s=n("ca5a")("src"),a=n("fa5b"),l="toString",c=(""+a).split(l);n("8378").inspectSource=function(e){return a.call(e)},(e.exports=function(e,t,n,a){var l="function"==typeof n;l&&!r(n,"name")&&o(n,"name",t),e[t]!==n&&(l&&!r(n,s)&&o(n,s,e[t]?""+e[t]:c.join(String(t))),e===i?e[t]=n:a?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,l,(function(){return"function"==typeof this&&this[s]||a.call(this)}))},"2aeb":function(e,t,n){function i(){}var o=n("cb7c"),r=n("1495"),s=n("e11e"),a=n("613b")("IE_PROTO"),l="prototype",c=function(){var e=n("230e")("iframe"),t=s.length;for(e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",(e=e.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;t--;)delete c[l][s[t]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(i[l]=o(e),n=new i,i[l]=null,n[a]=e):n=c(),void 0===t?n:r(n,t)}},"2b4c":function(e,t,n){var i=n("5537")("wks"),o=n("ca5a"),r=n("7726").Symbol,s="function"==typeof r;(e.exports=function(e){return i[e]||(i[e]=s&&r[e]||(s?r:o)("Symbol."+e))}).store=i},"2d00":function(e,t){e.exports=!1},"2d95":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"2fdb":function(e,t,n){"use strict";var i=n("5ca1"),o=n("d2c8"),r="includes";i(i.P+i.F*n("5147")(r),"String",{includes:function(e){return!!~o(this,e,r).indexOf(e,1<arguments.length?arguments[1]:void 0)}})},"32e9":function(e,t,n){var i=n("86cc"),o=n("4630");e.exports=n("9e1e")?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},"38fd":function(e,t,n){var i=n("69a8"),o=n("4bf8"),r=n("613b")("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),i(e,r)?e[r]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},"41a0":function(e,t,n){"use strict";var i=n("2aeb"),o=n("4630"),r=n("7f20"),s={};n("32e9")(s,n("2b4c")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=i(s,{next:o(1,n)}),r(e,t+" Iterator")}},"456d":function(e,t,n){var i=n("4bf8"),o=n("0d58");n("5eda")("keys",(function(){return function(e){return o(i(e))}}))},4588:function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?i:n)(e)}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"4bf8":function(e,t,n){var i=n("be13");e.exports=function(e){return Object(i(e))}},5147:function(e,t,n){var i=n("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[i]=!1,!"/./"[e](t)}catch(e){}}return!0}},"520a":function(e,t,n){"use strict";var i,o,r=n("0bfb"),s=RegExp.prototype.exec,a=String.prototype.replace,l=(n=s,"lastIndex"),c=(i=/a/,o=/b*/g,s.call(i,"a"),s.call(o,"a"),0!==i[l]||0!==o[l]),u=void 0!==/()??/.exec("")[1];e.exports=n=c||u?function(e){var t,n,i,o,d=this;return u&&(n=new RegExp("^"+d.source+"$(?!\\s)",r.call(d))),c&&(t=d[l]),i=s.call(d,e),c&&i&&(d[l]=d.global?i.index+i[0].length:t),u&&i&&1<i.length&&a.call(i[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i}:n},"52a7":function(e,t){t.f={}.propertyIsEnumerable},5537:function(e,t,n){var i=n("8378"),o=n("7726"),r="__core-js_shared__",s=o[r]||(o[r]={});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(e,t,n){function i(e,t,n){var u,d,h,f=e&i.F,p=e&i.G,g=e&i.P,m=e&i.B,v=p?o:e&i.S?o[t]||(o[t]={}):(o[t]||{})[c],b=p?r:r[t]||(r[t]={}),w=b[c]||(b[c]={});for(u in n=p?t:n)d=((h=!f&&v&&void 0!==v[u])?v:n)[u],h=m&&h?l(d,o):g&&"function"==typeof d?l(Function.call,d):d,v&&a(v,u,d,e&i.U),b[u]!=d&&s(b,u,h),g&&w[u]!=d&&(w[u]=d)}var o=n("7726"),r=n("8378"),s=n("32e9"),a=n("2aba"),l=n("9b43"),c="prototype";o.core=r,i.F=1,i.G=2,i.S=4,i.P=8,i.B=16,i.W=32,i.U=64,i.R=128,e.exports=i},"5eda":function(e,t,n){var i=n("5ca1"),o=n("8378"),r=n("79e5");e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],s={};s[e]=t(n),i(i.S+i.F*r((function(){n(1)})),"Object",s)}},"5f1b":function(e,t,n){"use strict";var i=n("23c6"),o=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"==typeof n){if("object"!=typeof(n=n.call(e,t)))throw new TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==i(e))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},"613b":function(e,t,n){var i=n("5537")("keys"),o=n("ca5a");e.exports=function(e){return i[e]||(i[e]=o(e))}},"626a":function(e,t,n){var i=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},6762:function(e,t,n){"use strict";var i=n("5ca1"),o=n("c366")(!0);i(i.P,"Array",{includes:function(e){return o(this,e,1<arguments.length?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(e,t,n){var i=n("626a"),o=n("be13");e.exports=function(e){return i(o(e))}},"69a8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"6a99":function(e,t,n){var i=n("d3f4");e.exports=function(e,t){if(!i(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e))||"function"==typeof(n=e.valueOf)&&!i(o=n.call(e))||!t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},7333:function(e,t,n){"use strict";var i=n("0d58"),o=n("2621"),r=n("52a7"),s=n("4bf8"),a=n("626a"),l=Object.assign;e.exports=!l||n("79e5")((function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=i}))?function(e,t){for(var n=s(e),l=arguments.length,c=1,u=o.f,d=r.f;c<l;)for(var h,f=a(arguments[c++]),p=u?i(f).concat(u(f)):i(f),g=p.length,m=0;m<g;)d.call(f,h=p[m++])&&(n[h]=f[h]);return n}:l},7726:function(e,t){e=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),"number"==typeof __g&&(__g=e)},"77f1":function(e,t,n){var i=n("4588"),o=Math.max,r=Math.min;e.exports=function(e,t){return(e=i(e))<0?o(e+t,0):r(e,t)}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"7f20":function(e,t,n){var i=n("86cc").f,o=n("69a8"),r=n("2b4c")("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,r)&&i(e,r,{configurable:!0,value:t})}},8378:function(e,t){e=e.exports={version:"2.6.5"},"number"==typeof __e&&(__e=e)},"84f2":function(e,t){e.exports={}},"86cc":function(e,t,n){var i=n("cb7c"),o=n("c69a"),r=n("6a99"),s=Object.defineProperty;t.f=n("9e1e")?Object.defineProperty:function(e,t,n){if(i(e),t=r(t,!0),i(n),o)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"9b43":function(e,t,n){var i=n("d8e8");e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,o){return e.call(t,n,i,o)}}return function(){return e.apply(t,arguments)}}},"9c6c":function(e,t,n){var i=n("2b4c")("unscopables"),o=Array.prototype;null==o[i]&&n("32e9")(o,i,{}),e.exports=function(e){o[i][e]=!0}},"9def":function(e,t,n){var i=n("4588"),o=Math.min;e.exports=function(e){return 0<e?o(i(e),9007199254740991):0}},"9e1e":function(e,t,n){e.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a352:function(t,n){t.exports=e},a481:function(e,t,n){"use strict";var i=n("cb7c"),o=n("4bf8"),r=n("9def"),s=n("4588"),a=n("0390"),l=n("5f1b"),c=Math.max,u=Math.min,d=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,f=/\$([$&`']|\d\d?)/g;n("214f")("replace",2,(function(e,t,n,p){return[function(i,o){var r=e(this),s=null==i?void 0:i[t];return void 0!==s?s.call(i,r,o):n.call(String(r),i,o)},function(e,t){var g=p(n,e,this,t);if(g.done)return g.value;for(var m,v=i(e),b=String(this),w="function"==typeof t,y=(w||(t=String(t)),v.global),x=(y&&(m=v.unicode,v.lastIndex=0),[]);null!==(E=l(v,b))&&(x.push(E),y);)""===String(E[0])&&(v.lastIndex=a(b,r(v.lastIndex),m));for(var k,_="",C=0,S=0;S<x.length;S++){for(var E=x[S],T=String(E[0]),A=c(u(s(E.index),b.length),0),O=[],L=1;L<E.length;L++)O.push(void 0===(k=E[L])?k:String(k));var $=E.groups,R=w?(R=[T].concat(O,A,b),void 0!==$&&R.push($),String(t.apply(void 0,R))):function(e,t,i,r,s,a){var l=i+e.length,c=r.length,u=f;return void 0!==s&&(s=o(s),u=h),n.call(a,u,(function(n,o){var a;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,i);case"'":return t.slice(l);case"<":a=s[o.slice(1,-1)];break;default:var u,h=+o;if(0==h)return n;if(c<h)return 0!==(u=d(h/10))&&u<=c?void 0===r[u-1]?o.charAt(1):r[u-1]+o.charAt(1):n;a=r[h-1]}return void 0===a?"":a}))}(T,b,A,O,$,t);C<=A&&(_+=b.slice(C,A)+R,C=A+T.length)}return _+b.slice(C)}]}))},aae3:function(e,t,n){var i=n("d3f4"),o=n("2d95"),r=n("2b4c")("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[r])?!!t:"RegExp"==o(e))}},ac6a:function(e,t,n){for(var i=n("cadf"),o=n("0d58"),r=n("2aba"),s=n("7726"),a=n("32e9"),l=n("84f2"),c=(n=n("2b4c"))("iterator"),u=n("toStringTag"),d=l.Array,h={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},f=o(h),p=0;p<f.length;p++){var g,m=f[p],v=h[m],b=s[m],w=b&&b.prototype;if(w&&(w[c]||a(w,c,d),w[u]||a(w,u,m),l[m]=d,v))for(g in i)w[g]||r(w,g,i[g],!0)}},b0c5:function(e,t,n){"use strict";var i=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:i!==/./.exec},{exec:i})},be13:function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},c366:function(e,t,n){var i=n("6821"),o=n("9def"),r=n("77f1");e.exports=function(e){return function(t,n,s){var a,l=i(t),c=o(l.length),u=r(s,c);if(e&&n!=n){for(;u<c;)if((a=l[u++])!=a)return!0}else for(;u<c;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},c649:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r})),n.d(t,"d",(function(){return l})),n("a481");var i,o,r=("undefined"!=typeof window?window:e).console,s=/-(\w)/g,a=(i=function(e){return e.replace(s,(function(e,t){return t?t.toUpperCase():""}))},o=Object.create(null),function(e){return o[e]||(o[e]=i(e))});function l(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function c(e,t,n){n=0===n?e.children[0]:e.children[n-1].nextSibling,e.insertBefore(t,n)}}).call(this,n("c8ba"))},c69a:function(e,t,n){e.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(e,t){var n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},ca5a:function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},cadf:function(e,t,n){"use strict";var i=n("9c6c"),o=n("d53b"),r=n("84f2"),s=n("6821");e.exports=n("01f9")(Array,"Array",(function(e,t){this._t=s(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),r.Arguments=r.Array,i("keys"),i("values"),i("entries")},cb7c:function(e,t,n){var i=n("d3f4");e.exports=function(e){if(i(e))return e;throw TypeError(e+" is not an object!")}},ce10:function(e,t,n){var i=n("69a8"),o=n("6821"),r=n("c366")(!1),s=n("613b")("IE_PROTO");e.exports=function(e,t){var n,a=o(e),l=0,c=[];for(n in a)n!=s&&i(a,n)&&c.push(n);for(;t.length>l;)!i(a,n=t[l++])||~r(c,n)||c.push(n);return c}},d2c8:function(e,t,n){var i=n("aae3"),o=n("be13");e.exports=function(e,t,n){if(i(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(e))}},d3f4:function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},d53b:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},e11e:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(e,t,n){"use strict";var i=n("5ca1"),o=n("9def"),r=n("d2c8"),s="startsWith",a=""[s];i(i.P+i.F*n("5147")(s),"String",{startsWith:function(e){var t=r(this,e,s),n=o(Math.min(1<arguments.length?arguments[1]:void 0,t.length));e=String(e);return a?a.call(t,e,n):t.slice(n,n+e.length)===e}})},f6fd:function(e,t){var n,i,o;n=document,i="currentScript",o=n.getElementsByTagName("script"),i in n||Object.defineProperty(n,i,{get:function(){try{throw new Error}catch(n){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(n.stack)||[!1])[1];for(e in o)if(o[e].src==t||"interactive"==o[e].readyState)return o[e];return null}}})},f751:function(e,t,n){var i=n("5ca1");i(i.S+i.F,"Object",{assign:n("7333")})},fa5b:function(e,t,n){e.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(e,t,n){n=n("7726").document,e.exports=n&&n.documentElement},fb15:function(e,t,n){"use strict";function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function o(e,t){var n;if(e)return"string"==typeof e?i(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,o=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(o)throw r}}return n}}(e,t)||o(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||o(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.r(t),"undefined"!=typeof window&&(n("f6fd"),a=(a=window.document.currentScript)&&a.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=a[1]),n("f751"),n("f559"),n("ac6a"),n("cadf"),n("456d"),n("6762"),n("2fdb");var a=n("a352"),l=n.n(a),c=n("c649");function u(e,t){var n=this;this.$nextTick((function(){return n.$emit(e.toLowerCase(),t)}))}function d(e){return["transition-group","TransitionGroup"].includes(e)}function h(e,t,n){return e[n]||(t[n]?t[n]():void 0)}var f=["Start","Add","Remove","Update","End"],p=["Choose","Unchoose","Sort","Filter","Clone"],g=["Move"].concat(f,p).map((function(e){return"on"+e})),m=null;a={name:"draggable",inheritAttrs:!1,props:{options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(e){return e}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(e){var t,n,i=this.$slots.default,o=(i=(this.transitionMode=!(!(l=i)||1!==l.length||!(l=r(l,1)[0].componentOptions))&&d(l.tag),l=i,n=t=0,(a=h(i=this.$slots,o=this.$scopedSlots,"header"))&&(t=a.length,l=l?[].concat(s(a),s(l)):s(a)),(a=h(i,o,"footer"))&&(n=a.length,l=l?[].concat(s(l),s(a)):s(a)),{children:l,headerOffset:t,footerOffset:n})).children,a=i.footerOffset,l=(this.headerOffset=i.headerOffset,this.footerOffset=a,function(e,t){function n(e,t){var n;n=r,e=e,void 0!==(t=t)&&((n=n||{})[e]=t),r=n}var i,o,r=null;return n("attrs",Object.keys(e).filter((function(e){return"id"===e||e.startsWith("data-")})).reduce((function(t,n){return t[n]=e[n],t}),{})),t&&(i=t.on,o=t.props,t=t.attrs,n("on",i),n("props",o),Object.assign(r.attrs,t)),r}(this.$attrs,this.componentData));return e(this.getTag(),l,o)},created:function(){null!==this.list&&null!==this.value&&c.b.error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&c.b.warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&c.b.warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var e=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var t={},n=(f.forEach((function(n){t["on"+n]=function(e){var t=this;return function(n){null!==t.realList&&t["onDrag"+e](n),u.call(t,e,n)}}.call(e,n)})),p.forEach((function(n){t["on"+n]=u.bind(e,n)})),Object.keys(this.$attrs).reduce((function(t,n){return t[Object(c.a)(n)]=e.$attrs[n],t}),{}));"draggable"in(n=Object.assign({},this.options,n,t,{onMove:function(t,n){return e.onDragMove(t,n)}}))||(n.draggable=">*"),this._sortable=new l.a(this.rootContainer,n),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list||this.value}},watch:{options:{handler:function(e){this.updateOptions(e)},deep:!0},$attrs:{handler:function(e){this.updateOptions(e)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var e=this._vnode.fnOptions;return e&&e.functional},getTag:function(){return this.tag||this.element},updateOptions:function(e){for(var t in e){var n=Object(c.a)(t);-1===g.indexOf(n)&&this._sortable.option(n,e[t])}},getChildrenNodes:function(){var e;return this.noneFunctionalComponentMode?this.$children[0].$slots.default:(e=this.$slots.default,this.transitionMode?e[0].child.$slots.default:e)},computeIndexes:function(){var e=this;this.$nextTick((function(){var t,n,i,o,r,a;e.visibleIndexes=(t=e.getChildrenNodes(),n=e.rootContainer.children,i=e.transitionMode,o=e.footerOffset,t?(r=t.map((function(e){return e.elm})),a=n.length-o,t=s(n).map((function(e,t){return a<=t?r.length:r.indexOf(e)})),i?t.filter((function(e){return-1!==e})):t):[])}))},getUnderlyingVm:function(e){e=e;var t=(t=this.getChildrenNodes()||[]).map((function(e){return e.elm})).indexOf(e);return-1===t?null:{index:t,element:this.realList[t]}},getUnderlyingPotencialDraggableComponent:function(e){return(e=e.__vue__)&&e.$options&&d(e.$options._componentTag)?e.$parent:!("realList"in e)&&1===e.$children.length&&"realList"in e.$children[0]?e.$children[0]:e},emitChanges:function(e){var t=this;this.$nextTick((function(){t.$emit("change",e)}))},alterList:function(e){this.list?e(this.list):(e(e=s(this.value)),this.$emit("input",e))},spliceList:function(){var e=arguments;this.alterList((function(t){return t.splice.apply(t,s(e))}))},updatePosition:function(e,t){this.alterList((function(n){return n.splice(t,0,n.splice(e,1)[0])}))},getRelatedContextFromMoveEvent:function(e){var t=e.to,n=(e=e.related,this.getUnderlyingPotencialDraggableComponent(t));if(!n)return{component:n};var i=n.realList,o={list:i,component:n};return t!==e&&i&&n.getUnderlyingVm&&(t=n.getUnderlyingVm(e))?Object.assign(t,o):o},getVmIndex:function(e){var t=this.visibleIndexes,n=t.length;return n-1<e?n:t[e]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(e){this.noTransitionOnDrag&&this.transitionMode&&(this.getChildrenNodes()[e].data=null,(e=this.getComponent()).children=[],e.kept=void 0)},onDragStart:function(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),m=e.item},onDragAdd:function(e){var t=e.item._underlying_vm_;void 0!==t&&(Object(c.d)(e.item),e=this.getVmIndex(e.newIndex),this.spliceList(e,0,t),this.computeIndexes(),this.emitChanges({added:{element:t,newIndex:e}}))},onDragRemove:function(e){var t;Object(c.c)(this.rootContainer,e.item,e.oldIndex),"clone"===e.pullMode?Object(c.d)(e.clone):(e=this.context.index,this.spliceList(e,1),t={element:this.context.element,oldIndex:e},this.resetTransitionData(e),this.emitChanges({removed:t}))},onDragUpdate:function(e){Object(c.d)(e.item),Object(c.c)(e.from,e.item,e.oldIndex);var t=this.context.index;e=this.getVmIndex(e.newIndex),this.updatePosition(t,e),t={element:this.context.element,oldIndex:t,newIndex:e};this.emitChanges({moved:t})},updateProperty:function(e,t){e.hasOwnProperty(t)&&(e[t]+=this.headerOffset)},computeFutureIndex:function(e,t){var n,i;return e.element?(i=(n=s(t.to.children).filter((function(e){return"none"!==e.style.display}))).indexOf(t.related),e=e.component.getVmIndex(i),-1===n.indexOf(m)&&t.willInsertAfter?e+1:e):0},onDragMove:function(e,t){var n,i,o,r=this.move;return!r||!this.realList||(n=this.getRelatedContextFromMoveEvent(e),i=this.context,o=this.computeFutureIndex(n,e),Object.assign(i,{futureIndex:o}),r(Object.assign({},e,{relatedContext:n,draggedContext:i}),t))},onDragEnd:function(){this.computeIndexes(),m=null}}};"undefined"!=typeof window&&"Vue"in window&&window.Vue.component("draggable",a),t.default=a}},i={},t.m=n,t.c=i,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:i})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(t.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(i,o,function(t){return e[t]}.bind(null,o));return i},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s="fb15").default;function t(e){var o;return(i[e]||(o=i[e]={i:e,l:!1,exports:{}},n[e].call(o.exports,o,o.exports,t),o.l=!0,o)).exports}var n,i},e.exports=i(n(149))},function(e,t,n){"use strict";var i=n(16),o=n.n(i),r=(i=(n(123),n(124),n(125),n(126),n(127),n(128),n(129),n(130),n(131),n(132),n(103)),i=n.n(i),n(104)),s=(r=n.n(r),n(105)),a=(s=n.n(s),n(106));a=n.n(a),o.a.config.setModuleUrl("ace/mode/javascript_worker",i.a),o.a.config.setModuleUrl("ace/snippets/javascript",n(133)),o.a.config.setModuleUrl("ace/mode/css_worker",r.a),o.a.config.setModuleUrl("ace/snippets/css",n(134)),o.a.config.setModuleUrl("ace/mode/json_worker",s.a),o.a.config.setModuleUrl("ace/mode/html_worker",a.a),i={name:"ThCodeEditor",model:{event:"change"},props:{value:String,language:{type:String,default:"javascript"},theme:{type:String,default:"textmate"},height:String|Number,readonly:Boolean,maxLines:Number,completions:{type:Array,default:function(){return[]}},showGutter:{type:Boolean,default:!0},highlightActiveLine:{type:Boolean,default:!0},highlightSelectedWord:{type:Boolean,default:!0}},data:function(){return{editor:null,generateId:"id_"+Math.random().toString(36).substr(2,4)}},mounted:function(){this.initEditor(),this.setCompleteData()},computed:{selfStyle:function(){var e={};return"string"==typeof this.height&&this.height&&(e.height=this.height,e.minHeight="auto"),"number"==typeof this.height&&null!=this.height&&(e.height="".concat(this.height,"px"),e.minHeight="auto"),e}},watch:{value:function(e){this.editor.getValue()!==e&&(this.editor.setValue(e),this.editor.clearSelection())}},methods:{initEditor:function(){var e=this;this.editor=o.a.edit(this.$refs[this.generateId],{mode:"ace/mode/".concat(this.language),theme:"ace/theme/".concat(this.theme),fontSize:14,tabSize:2,value:this.value,selectionStyle:"text",maxLines:this.maxLines,readOnly:this.readonly,showGutter:this.showGutter,highlightActiveLine:this.highlightActiveLine,highlightSelectedWord:this.highlightSelectedWord}),this.editor.setOptions({enableBasicAutocompletion:!0,enableSnippets:!0,enableLiveAutocompletion:!0,wrap:!0,setShowPrintMargin:!1}),this.editor.on("change",(function(){e.$emit("change",e.editor.getValue())}))},setCompleteData:function(){var e=this;o.a.require("ace/ext/language_tools").addCompleter({getCompletions:function(t,n,i,o,r){return 0===o.length?r(null,[]):r(null,e.completions)}})},setShowGutter:function(e){this.editor.renderer.setShowGutter(e)},gotoLine:function(e){this.editor.gotoLine(e)},resize:function(){this.editor.resize()},destroy:function(){this.editor&&(this.editor.destroy(),this.editor=null)}},beforeDestroy:function(){this.destroy()}},r=n(0),s=Object(r.a)(i,(function(){var e=this.$createElement;return(this._self._c||e)("div",{ref:this.generateId,staticClass:"th-codeEditor",style:this.selfStyle})}),[],!1,null,null,null);t.a=s.exports},function(e,t,n){"use strict";var i,o=n(40),r=Object.prototype.toString,s=(i=Object.create(null),function(e){return e=r.call(e),i[e]||(i[e]=e.slice(8,-1).toLowerCase())});function a(e){return e=e.toLowerCase(),function(t){return s(t)===e}}function l(e){return Array.isArray(e)}function c(e){return void 0===e}var u=a("ArrayBuffer");function d(e){return null!==e&&"object"==typeof e}function h(e){return"object"===s(e)&&(null===(e=Object.getPrototypeOf(e))||e===Object.prototype)}n=a("Date");var f=a("File"),p=a("Blob"),g=a("FileList");function m(e){return"[object Function]"===r.call(e)}var v,b=a("URLSearchParams");function w(e,t){if(null!=e)if(l(e="object"!=typeof e?[e]:e))for(var n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}v="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),e.exports={isArray:l,isArrayBuffer:u,isBuffer:function(e){return null!==e&&!c(e)&&null!==e.constructor&&!c(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||r.call(e)===t||m(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&u(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:d,isPlainObject:h,isUndefined:c,isDate:n,isFile:f,isBlob:p,isFunction:m,isStream:function(e){return d(e)&&m(e.pipe)},isURLSearchParams:b,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:w,merge:function e(){var t={};function n(n,i){h(t[i])&&h(n)?t[i]=e(t[i],n):h(n)?t[i]=e({},n):l(n)?t[i]=n.slice():t[i]=n}for(var i=0,o=arguments.length;i<o;i++)w(arguments[i],n);return t},extend:function(e,t,n){return w(t,(function(t,i){e[i]=n&&"function"==typeof t?o(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)?e.slice(1):e},inherits:function(e,t,n,i){e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n){var i,o,r,s={};t=t||{};do{for(o=(i=Object.getOwnPropertyNames(e)).length;0<o--;)s[r=i[o]]||(t[r]=e[r],s[r]=!0)}while((e=Object.getPrototypeOf(e))&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:a,endsWith:function(e,t,n){return e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length,-1!==(e=e.indexOf(t,n))&&e===n},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var n=new Array(t);0<t--;)n[t]=e[t];return n},isTypedArray:function(e){return v&&e instanceof v},isFileList:g}},function(e,t,n){"use strict";var i,o,r=(o={},function(e){if(void 0===o[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}o[e]=t}return o[e]}),s=[];function a(e){for(var t=-1,n=0;n<s.length;n++)if(s[n].identifier===e){t=n;break}return t}function l(e,t){for(var n={},i=[],o=0;o<e.length;o++){var r=e[o],l=n[p=t.base?r[0]+t.base:r[0]]||0,u="".concat(p," ").concat(l),p=(n[p]=l+1,a(u));l={css:r[1],media:r[2],sourceMap:r[3]};-1!==p?(s[p].references++,s[p].updater(l)):s.push({identifier:u,updater:function(e,t){var n,i,o,r;return o=t.singleton?(r=f++,n=h=h||c(t),i=d.bind(null,n,r,!1),d.bind(null,n,r,!0)):(n=c(t),i=function(e,t,n){var i=n.css,o=n.media;n=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),n&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(n))))," */")),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}.bind(null,n,t),function(){var e=n;null!==e.parentNode&&e.parentNode.removeChild(e)}),i(e),function(t){t?t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap||i(e=t):o()}}(l,t),references:1}),i.push(u)}return i}function c(e){var t=document.createElement("style"),i=e.attributes||{};if(void 0===i.nonce&&(o=n.nc)&&(i.nonce=o),Object.keys(i).forEach((function(e){t.setAttribute(e,i[e])})),"function"==typeof e.insert)e.insert(t);else{var o=r(e.insert||"head");if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(t)}return t}u=[];var u;function d(e,t,n,i){n=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;e.styleSheet?e.styleSheet.cssText=function(e,t){return u[e]=t,u.filter(Boolean).join("\n")}(t,n):(i=document.createTextNode(n),(n=e.childNodes)[t]&&e.removeChild(n[t]),n.length?e.insertBefore(i,n[t]):e.appendChild(i))}var h=null,f=0;e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=i=void 0===i?Boolean(window&&document&&document.all&&!window.atob):i);var n=l(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var i=0;i<n.length;i++){var o=a(n[i]);s[o].references--}e=l(e,t);for(var r=0;r<n.length;r++){var c=a(n[r]);0===s[c].references&&(s[c].updater(),s.splice(c,1))}n=e}}}},function(e,t,n){(function(t){
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("tianheng-ui",[],t):"object"==typeof exports?exports["tianheng-ui"]=t():e["tianheng-ui"]=t()}(window,(function(){return function(e){var t={};function n(i){var o;return(t[i]||(o=t[i]={i:i,l:!1,exports:{}},e[i].call(o.exports,o,o.exports,n),o.l=!0,o)).exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/lib/",n(n.s=288)}([function(e,t,n){"use strict";function i(e,t,n,i,o,r,s,a){var l,c,u=typeof(e=e||{}).default;u="function"==typeof(e="object"!=u&&"function"!=u?e:e.default)?e.options:e;return t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),r&&(u._scopeId=r),s?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},u._ssrRegister=l):o&&(l=a?function(){o.call(this,this.$root.$options.shadowRoot)}:o),l&&(u.functional?(u._injectStyles=l,c=u.render,u.render=function(e,t){return l.call(t),c(e,t)}):(t=u.beforeCreate,u.beforeCreate=t?[].concat(t,l):[l])),{exports:e,options:u}}n.d(t,"a",(function(){return i}))},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return configComponent})),__webpack_require__.d(__webpack_exports__,"b",(function(){return itemsComponent}));var configComponent={props:{widget:{type:Object,default:function(){return{}}},config:{type:Object,default:function(){return{}}},remoteApis:{type:Array,default:function(){return[]}}},data:function(){return{}},methods:{handleEventsShow:function(){this.$emit("events-show")},handleEventsEdit:function(e){this.$emit("events-edit",e)}}},itemsComponent={props:["widget","widgetArray","select","config"],methods:{handleEventAction:function handleEventAction(key){for(var eventScript=this.config.eventScript,i=0;i<eventScript.length;i++){var element=eventScript[i],func;element.key===key&&(func="(item,value)=>{".concat(element.func,"}"),eval(func)(this.widget,this.widget.options.defaultValue))}},display:function(e){console.log("请在 预览 模式下使用 display 方法")},hide:function(e){console.log("请在 预览 模式下使用 hide 方法")},setData:function(e){console.log("请在 预览 模式下使用 setData 方法")},getData:function(e){console.log("请在 预览 模式下使用 getData 方法")}}}},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",i=e[3];return i?t&&"function"==typeof btoa?(e=function(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}(i),t=i.sources.map((function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"})),[n].concat(t).concat([e]).join("\n")):[n].join("\n"):n}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var i={},o=0;o<this.length;o++){var r=this[o][0];"number"==typeof r&&(i[r]=!0)}for(o=0;o<e.length;o++){var s=e[o];"number"==typeof s[0]&&i[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),t.push(s))}},t}},function(e,t,n){"use strict";function i(e,t){for(var n=[],i={},o=0;o<t.length;o++){var r=(s=t[o])[0],s={id:e+":"+o,css:s[1],media:s[2],sourceMap:s[3]};i[r]?i[r].parts.push(s):n.push(i[r]={id:r,parts:[s]})}return n}if(n.r(t),n.d(t,"default",(function(){return f})),n="undefined"!=typeof document,"undefined"!=typeof DEBUG&&DEBUG&&!n)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");function o(){}var r={},s=n&&(document.head||document.getElementsByTagName("head")[0]),a=null,l=0,c=!1,u=null,d="data-vue-ssr-id",h="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function f(e,t,n,o){c=n,u=o||{};var s=i(e,t);return p(s),function(t){for(var n=[],o=0;o<s.length;o++){var a=s[o];(l=r[a.id]).refs--,n.push(l)}t?p(s=i(e,t)):s=[];var l;for(o=0;o<n.length;o++)if(0===(l=n[o]).refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete r[l.id]}}}function p(e){for(var t=0;t<e.length;t++){var n=e[t],i=r[n.id];if(i){i.refs++;for(var o=0;o<i.parts.length;o++)i.parts[o](n.parts[o]);for(;o<n.parts.length;o++)i.parts.push(m(n.parts[o]));i.parts.length>n.parts.length&&(i.parts.length=n.parts.length)}else{var s=[];for(o=0;o<n.parts.length;o++)s.push(m(n.parts[o]));r[n.id]={id:n.id,refs:1,parts:s}}}}function g(){var e=document.createElement("style");return e.type="text/css",s.appendChild(e),e}function m(e){var t,n,i,r=document.querySelector("style["+d+'~="'+e.id+'"]');if(r){if(c)return o;r.parentNode.removeChild(r)}return i=h?(t=l++,r=a=a||g(),n=b.bind(null,r,t,!1),b.bind(null,r,t,!0)):(r=g(),n=function(e,t){var n=t.css,i=t.media,o=t.sourceMap;if(i&&e.setAttribute("media",i),u.ssrId&&e.setAttribute(d,t.id),o&&(n=(n+="\n/*# sourceURL="+o.sources[0]+" */")+"\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,r),function(){r.parentNode.removeChild(r)}),n(e),function(t){t?t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap||n(e=t):i()}}v=[];var v;function b(e,t,n,i){n=n?"":i.css;e.styleSheet?e.styleSheet.cssText=function(e,t){return v[e]=t,v.filter(Boolean).join("\n")}(t,n):(i=document.createTextNode(n),(n=e.childNodes)[t]&&e.removeChild(n[t]),n.length?e.insertBefore(i,n[t]):e.appendChild(i))}},function(e,t,n){var i;i=function(e){return n={"01f9":function(e,t,n){"use strict";function i(){return this}var o=n("2d00"),r=n("5ca1"),s=n("2aba"),a=n("32e9"),l=n("84f2"),c=n("41a0"),u=n("7f20"),d=n("38fd"),h=n("2b4c")("iterator"),f=!([].keys&&"next"in[].keys()),p="values";e.exports=function(e,t,n,g,m,v,b){function w(e){if(!f&&e in C)return C[e];switch(e){case"keys":case p:return function(){return new n(this,e)}}return function(){return new n(this,e)}}c(n,t,g);g=t+" Iterator";var y,x,k=m==p,_=!1,C=e.prototype,S=C[h]||C["@@iterator"]||m&&C[m],E=S||w(m),T=m?k?w("entries"):E:void 0,A="Array"==t&&C.entries||S;if(A&&(A=d(A.call(new e)))!==Object.prototype&&A.next&&(u(A,g,!0),o||"function"==typeof A[h]||a(A,h,i)),k&&S&&S.name!==p&&(_=!0,E=function(){return S.call(this)}),o&&!b||!f&&!_&&C[h]||a(C,h,E),l[t]=E,l[g]=i,m)if(y={values:k?E:w(p),keys:v?E:w("keys"),entries:T},b)for(x in y)x in C||s(C,x,y[x]);else r(r.P+r.F*(f||_),t,y);return y}},"02f4":function(e,t,n){var i=n("4588"),o=n("be13");e.exports=function(e){return function(t,n){t=String(o(t)),n=i(n);var r,s=t.length;return n<0||s<=n?e?"":void 0:(r=t.charCodeAt(n))<55296||56319<r||n+1===s||(s=t.charCodeAt(n+1))<56320||57343<s?e?t.charAt(n):r:e?t.slice(n,n+2):s-56320+(r-55296<<10)+65536}}},"0390":function(e,t,n){"use strict";var i=n("02f4")(!0);e.exports=function(e,t,n){return t+(n?i(e,t).length:1)}},"0bfb":function(e,t,n){"use strict";var i=n("cb7c");e.exports=function(){var e=i(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"0d58":function(e,t,n){var i=n("ce10"),o=n("e11e");e.exports=Object.keys||function(e){return i(e,o)}},1495:function(e,t,n){var i=n("86cc"),o=n("cb7c"),r=n("0d58");e.exports=n("9e1e")?Object.defineProperties:function(e,t){o(e);for(var n,s=r(t),a=s.length,l=0;l<a;)i.f(e,n=s[l++],t[n]);return e}},"214f":function(e,t,n){"use strict";n("b0c5");var i,o=n("2aba"),r=n("32e9"),s=n("79e5"),a=n("be13"),l=n("2b4c"),c=n("520a"),u=l("species"),d=!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),h=(i=(n=/(?:)/).exec,n.exec=function(){return i.apply(this,arguments)},2===(n="ab".split(n)).length&&"a"===n[0]&&"b"===n[1]);e.exports=function(e,t,n){var i,f,p=l(e),g=!s((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),m=g?!s((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[u]=function(){return n}),n[p](""),!t})):void 0;g&&m&&("replace"!==e||d)&&("split"!==e||h)||(i=/./[p],n=(m=n(a,p,""[e],(function(e,t,n,o,r){return t.exec===c?g&&!r?{done:!0,value:i.call(t,n,o)}:{done:!0,value:e.call(n,t,o)}:{done:!1}})))[0],f=m[1],o(String.prototype,e,n),r(RegExp.prototype,p,2==t?function(e,t){return f.call(e,this,t)}:function(e){return f.call(e,this)}))}},"230e":function(e,t,n){var i=n("d3f4"),o=n("7726").document,r=i(o)&&i(o.createElement);e.exports=function(e){return r?o.createElement(e):{}}},"23c6":function(e,t,n){var i=n("2d95"),o=n("2b4c")("toStringTag"),r="Arguments"==i(function(){return arguments}());e.exports=function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,t){try{return e[t]}catch(e){}}(e=Object(e),o))?t:r?i(e):"Object"==(t=i(e))&&"function"==typeof e.callee?"Arguments":t}},2621:function(e,t){t.f=Object.getOwnPropertySymbols},"2aba":function(e,t,n){var i=n("7726"),o=n("32e9"),r=n("69a8"),s=n("ca5a")("src"),a=n("fa5b"),l="toString",c=(""+a).split(l);n("8378").inspectSource=function(e){return a.call(e)},(e.exports=function(e,t,n,a){var l="function"==typeof n;l&&!r(n,"name")&&o(n,"name",t),e[t]!==n&&(l&&!r(n,s)&&o(n,s,e[t]?""+e[t]:c.join(String(t))),e===i?e[t]=n:a?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,l,(function(){return"function"==typeof this&&this[s]||a.call(this)}))},"2aeb":function(e,t,n){function i(){}var o=n("cb7c"),r=n("1495"),s=n("e11e"),a=n("613b")("IE_PROTO"),l="prototype",c=function(){var e=n("230e")("iframe"),t=s.length;for(e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",(e=e.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;t--;)delete c[l][s[t]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(i[l]=o(e),n=new i,i[l]=null,n[a]=e):n=c(),void 0===t?n:r(n,t)}},"2b4c":function(e,t,n){var i=n("5537")("wks"),o=n("ca5a"),r=n("7726").Symbol,s="function"==typeof r;(e.exports=function(e){return i[e]||(i[e]=s&&r[e]||(s?r:o)("Symbol."+e))}).store=i},"2d00":function(e,t){e.exports=!1},"2d95":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"2fdb":function(e,t,n){"use strict";var i=n("5ca1"),o=n("d2c8"),r="includes";i(i.P+i.F*n("5147")(r),"String",{includes:function(e){return!!~o(this,e,r).indexOf(e,1<arguments.length?arguments[1]:void 0)}})},"32e9":function(e,t,n){var i=n("86cc"),o=n("4630");e.exports=n("9e1e")?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},"38fd":function(e,t,n){var i=n("69a8"),o=n("4bf8"),r=n("613b")("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),i(e,r)?e[r]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},"41a0":function(e,t,n){"use strict";var i=n("2aeb"),o=n("4630"),r=n("7f20"),s={};n("32e9")(s,n("2b4c")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=i(s,{next:o(1,n)}),r(e,t+" Iterator")}},"456d":function(e,t,n){var i=n("4bf8"),o=n("0d58");n("5eda")("keys",(function(){return function(e){return o(i(e))}}))},4588:function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?i:n)(e)}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"4bf8":function(e,t,n){var i=n("be13");e.exports=function(e){return Object(i(e))}},5147:function(e,t,n){var i=n("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[i]=!1,!"/./"[e](t)}catch(e){}}return!0}},"520a":function(e,t,n){"use strict";var i,o,r=n("0bfb"),s=RegExp.prototype.exec,a=String.prototype.replace,l=(n=s,"lastIndex"),c=(i=/a/,o=/b*/g,s.call(i,"a"),s.call(o,"a"),0!==i[l]||0!==o[l]),u=void 0!==/()??/.exec("")[1];e.exports=n=c||u?function(e){var t,n,i,o,d=this;return u&&(n=new RegExp("^"+d.source+"$(?!\\s)",r.call(d))),c&&(t=d[l]),i=s.call(d,e),c&&i&&(d[l]=d.global?i.index+i[0].length:t),u&&i&&1<i.length&&a.call(i[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i}:n},"52a7":function(e,t){t.f={}.propertyIsEnumerable},5537:function(e,t,n){var i=n("8378"),o=n("7726"),r="__core-js_shared__",s=o[r]||(o[r]={});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(e,t,n){function i(e,t,n){var u,d,h,f=e&i.F,p=e&i.G,g=e&i.P,m=e&i.B,v=p?o:e&i.S?o[t]||(o[t]={}):(o[t]||{})[c],b=p?r:r[t]||(r[t]={}),w=b[c]||(b[c]={});for(u in n=p?t:n)d=((h=!f&&v&&void 0!==v[u])?v:n)[u],h=m&&h?l(d,o):g&&"function"==typeof d?l(Function.call,d):d,v&&a(v,u,d,e&i.U),b[u]!=d&&s(b,u,h),g&&w[u]!=d&&(w[u]=d)}var o=n("7726"),r=n("8378"),s=n("32e9"),a=n("2aba"),l=n("9b43"),c="prototype";o.core=r,i.F=1,i.G=2,i.S=4,i.P=8,i.B=16,i.W=32,i.U=64,i.R=128,e.exports=i},"5eda":function(e,t,n){var i=n("5ca1"),o=n("8378"),r=n("79e5");e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],s={};s[e]=t(n),i(i.S+i.F*r((function(){n(1)})),"Object",s)}},"5f1b":function(e,t,n){"use strict";var i=n("23c6"),o=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"==typeof n){if("object"!=typeof(n=n.call(e,t)))throw new TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==i(e))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},"613b":function(e,t,n){var i=n("5537")("keys"),o=n("ca5a");e.exports=function(e){return i[e]||(i[e]=o(e))}},"626a":function(e,t,n){var i=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},6762:function(e,t,n){"use strict";var i=n("5ca1"),o=n("c366")(!0);i(i.P,"Array",{includes:function(e){return o(this,e,1<arguments.length?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(e,t,n){var i=n("626a"),o=n("be13");e.exports=function(e){return i(o(e))}},"69a8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"6a99":function(e,t,n){var i=n("d3f4");e.exports=function(e,t){if(!i(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e))||"function"==typeof(n=e.valueOf)&&!i(o=n.call(e))||!t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},7333:function(e,t,n){"use strict";var i=n("0d58"),o=n("2621"),r=n("52a7"),s=n("4bf8"),a=n("626a"),l=Object.assign;e.exports=!l||n("79e5")((function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=i}))?function(e,t){for(var n=s(e),l=arguments.length,c=1,u=o.f,d=r.f;c<l;)for(var h,f=a(arguments[c++]),p=u?i(f).concat(u(f)):i(f),g=p.length,m=0;m<g;)d.call(f,h=p[m++])&&(n[h]=f[h]);return n}:l},7726:function(e,t){e=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),"number"==typeof __g&&(__g=e)},"77f1":function(e,t,n){var i=n("4588"),o=Math.max,r=Math.min;e.exports=function(e,t){return(e=i(e))<0?o(e+t,0):r(e,t)}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"7f20":function(e,t,n){var i=n("86cc").f,o=n("69a8"),r=n("2b4c")("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,r)&&i(e,r,{configurable:!0,value:t})}},8378:function(e,t){e=e.exports={version:"2.6.5"},"number"==typeof __e&&(__e=e)},"84f2":function(e,t){e.exports={}},"86cc":function(e,t,n){var i=n("cb7c"),o=n("c69a"),r=n("6a99"),s=Object.defineProperty;t.f=n("9e1e")?Object.defineProperty:function(e,t,n){if(i(e),t=r(t,!0),i(n),o)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"9b43":function(e,t,n){var i=n("d8e8");e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,o){return e.call(t,n,i,o)}}return function(){return e.apply(t,arguments)}}},"9c6c":function(e,t,n){var i=n("2b4c")("unscopables"),o=Array.prototype;null==o[i]&&n("32e9")(o,i,{}),e.exports=function(e){o[i][e]=!0}},"9def":function(e,t,n){var i=n("4588"),o=Math.min;e.exports=function(e){return 0<e?o(i(e),9007199254740991):0}},"9e1e":function(e,t,n){e.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a352:function(t,n){t.exports=e},a481:function(e,t,n){"use strict";var i=n("cb7c"),o=n("4bf8"),r=n("9def"),s=n("4588"),a=n("0390"),l=n("5f1b"),c=Math.max,u=Math.min,d=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,f=/\$([$&`']|\d\d?)/g;n("214f")("replace",2,(function(e,t,n,p){return[function(i,o){var r=e(this),s=null==i?void 0:i[t];return void 0!==s?s.call(i,r,o):n.call(String(r),i,o)},function(e,t){var g=p(n,e,this,t);if(g.done)return g.value;for(var m,v=i(e),b=String(this),w="function"==typeof t,y=(w||(t=String(t)),v.global),x=(y&&(m=v.unicode,v.lastIndex=0),[]);null!==(E=l(v,b))&&(x.push(E),y);)""===String(E[0])&&(v.lastIndex=a(b,r(v.lastIndex),m));for(var k,_="",C=0,S=0;S<x.length;S++){for(var E=x[S],T=String(E[0]),A=c(u(s(E.index),b.length),0),O=[],L=1;L<E.length;L++)O.push(void 0===(k=E[L])?k:String(k));var $=E.groups,R=w?(R=[T].concat(O,A,b),void 0!==$&&R.push($),String(t.apply(void 0,R))):function(e,t,i,r,s,a){var l=i+e.length,c=r.length,u=f;return void 0!==s&&(s=o(s),u=h),n.call(a,u,(function(n,o){var a;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,i);case"'":return t.slice(l);case"<":a=s[o.slice(1,-1)];break;default:var u,h=+o;if(0==h)return n;if(c<h)return 0!==(u=d(h/10))&&u<=c?void 0===r[u-1]?o.charAt(1):r[u-1]+o.charAt(1):n;a=r[h-1]}return void 0===a?"":a}))}(T,b,A,O,$,t);C<=A&&(_+=b.slice(C,A)+R,C=A+T.length)}return _+b.slice(C)}]}))},aae3:function(e,t,n){var i=n("d3f4"),o=n("2d95"),r=n("2b4c")("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[r])?!!t:"RegExp"==o(e))}},ac6a:function(e,t,n){for(var i=n("cadf"),o=n("0d58"),r=n("2aba"),s=n("7726"),a=n("32e9"),l=n("84f2"),c=(n=n("2b4c"))("iterator"),u=n("toStringTag"),d=l.Array,h={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},f=o(h),p=0;p<f.length;p++){var g,m=f[p],v=h[m],b=s[m],w=b&&b.prototype;if(w&&(w[c]||a(w,c,d),w[u]||a(w,u,m),l[m]=d,v))for(g in i)w[g]||r(w,g,i[g],!0)}},b0c5:function(e,t,n){"use strict";var i=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:i!==/./.exec},{exec:i})},be13:function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},c366:function(e,t,n){var i=n("6821"),o=n("9def"),r=n("77f1");e.exports=function(e){return function(t,n,s){var a,l=i(t),c=o(l.length),u=r(s,c);if(e&&n!=n){for(;u<c;)if((a=l[u++])!=a)return!0}else for(;u<c;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},c649:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r})),n.d(t,"d",(function(){return l})),n("a481");var i,o,r=("undefined"!=typeof window?window:e).console,s=/-(\w)/g,a=(i=function(e){return e.replace(s,(function(e,t){return t?t.toUpperCase():""}))},o=Object.create(null),function(e){return o[e]||(o[e]=i(e))});function l(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function c(e,t,n){n=0===n?e.children[0]:e.children[n-1].nextSibling,e.insertBefore(t,n)}}).call(this,n("c8ba"))},c69a:function(e,t,n){e.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(e,t){var n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},ca5a:function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},cadf:function(e,t,n){"use strict";var i=n("9c6c"),o=n("d53b"),r=n("84f2"),s=n("6821");e.exports=n("01f9")(Array,"Array",(function(e,t){this._t=s(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),r.Arguments=r.Array,i("keys"),i("values"),i("entries")},cb7c:function(e,t,n){var i=n("d3f4");e.exports=function(e){if(i(e))return e;throw TypeError(e+" is not an object!")}},ce10:function(e,t,n){var i=n("69a8"),o=n("6821"),r=n("c366")(!1),s=n("613b")("IE_PROTO");e.exports=function(e,t){var n,a=o(e),l=0,c=[];for(n in a)n!=s&&i(a,n)&&c.push(n);for(;t.length>l;)!i(a,n=t[l++])||~r(c,n)||c.push(n);return c}},d2c8:function(e,t,n){var i=n("aae3"),o=n("be13");e.exports=function(e,t,n){if(i(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(e))}},d3f4:function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},d53b:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},e11e:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(e,t,n){"use strict";var i=n("5ca1"),o=n("9def"),r=n("d2c8"),s="startsWith",a=""[s];i(i.P+i.F*n("5147")(s),"String",{startsWith:function(e){var t=r(this,e,s),n=o(Math.min(1<arguments.length?arguments[1]:void 0,t.length));e=String(e);return a?a.call(t,e,n):t.slice(n,n+e.length)===e}})},f6fd:function(e,t){var n,i,o;n=document,i="currentScript",o=n.getElementsByTagName("script"),i in n||Object.defineProperty(n,i,{get:function(){try{throw new Error}catch(n){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(n.stack)||[!1])[1];for(e in o)if(o[e].src==t||"interactive"==o[e].readyState)return o[e];return null}}})},f751:function(e,t,n){var i=n("5ca1");i(i.S+i.F,"Object",{assign:n("7333")})},fa5b:function(e,t,n){e.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(e,t,n){n=n("7726").document,e.exports=n&&n.documentElement},fb15:function(e,t,n){"use strict";function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function o(e,t){var n;if(e)return"string"==typeof e?i(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,o=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(o)throw r}}return n}}(e,t)||o(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||o(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.r(t),"undefined"!=typeof window&&(n("f6fd"),a=(a=window.document.currentScript)&&a.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=a[1]),n("f751"),n("f559"),n("ac6a"),n("cadf"),n("456d"),n("6762"),n("2fdb");var a=n("a352"),l=n.n(a),c=n("c649");function u(e,t){var n=this;this.$nextTick((function(){return n.$emit(e.toLowerCase(),t)}))}function d(e){return["transition-group","TransitionGroup"].includes(e)}function h(e,t,n){return e[n]||(t[n]?t[n]():void 0)}var f=["Start","Add","Remove","Update","End"],p=["Choose","Unchoose","Sort","Filter","Clone"],g=["Move"].concat(f,p).map((function(e){return"on"+e})),m=null;a={name:"draggable",inheritAttrs:!1,props:{options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(e){return e}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(e){var t,n,i=this.$slots.default,o=(i=(this.transitionMode=!(!(l=i)||1!==l.length||!(l=r(l,1)[0].componentOptions))&&d(l.tag),l=i,n=t=0,(a=h(i=this.$slots,o=this.$scopedSlots,"header"))&&(t=a.length,l=l?[].concat(s(a),s(l)):s(a)),(a=h(i,o,"footer"))&&(n=a.length,l=l?[].concat(s(l),s(a)):s(a)),{children:l,headerOffset:t,footerOffset:n})).children,a=i.footerOffset,l=(this.headerOffset=i.headerOffset,this.footerOffset=a,function(e,t){function n(e,t){var n;n=r,e=e,void 0!==(t=t)&&((n=n||{})[e]=t),r=n}var i,o,r=null;return n("attrs",Object.keys(e).filter((function(e){return"id"===e||e.startsWith("data-")})).reduce((function(t,n){return t[n]=e[n],t}),{})),t&&(i=t.on,o=t.props,t=t.attrs,n("on",i),n("props",o),Object.assign(r.attrs,t)),r}(this.$attrs,this.componentData));return e(this.getTag(),l,o)},created:function(){null!==this.list&&null!==this.value&&c.b.error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&c.b.warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&c.b.warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var e=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var t={},n=(f.forEach((function(n){t["on"+n]=function(e){var t=this;return function(n){null!==t.realList&&t["onDrag"+e](n),u.call(t,e,n)}}.call(e,n)})),p.forEach((function(n){t["on"+n]=u.bind(e,n)})),Object.keys(this.$attrs).reduce((function(t,n){return t[Object(c.a)(n)]=e.$attrs[n],t}),{}));"draggable"in(n=Object.assign({},this.options,n,t,{onMove:function(t,n){return e.onDragMove(t,n)}}))||(n.draggable=">*"),this._sortable=new l.a(this.rootContainer,n),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list||this.value}},watch:{options:{handler:function(e){this.updateOptions(e)},deep:!0},$attrs:{handler:function(e){this.updateOptions(e)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var e=this._vnode.fnOptions;return e&&e.functional},getTag:function(){return this.tag||this.element},updateOptions:function(e){for(var t in e){var n=Object(c.a)(t);-1===g.indexOf(n)&&this._sortable.option(n,e[t])}},getChildrenNodes:function(){var e;return this.noneFunctionalComponentMode?this.$children[0].$slots.default:(e=this.$slots.default,this.transitionMode?e[0].child.$slots.default:e)},computeIndexes:function(){var e=this;this.$nextTick((function(){var t,n,i,o,r,a;e.visibleIndexes=(t=e.getChildrenNodes(),n=e.rootContainer.children,i=e.transitionMode,o=e.footerOffset,t?(r=t.map((function(e){return e.elm})),a=n.length-o,t=s(n).map((function(e,t){return a<=t?r.length:r.indexOf(e)})),i?t.filter((function(e){return-1!==e})):t):[])}))},getUnderlyingVm:function(e){e=e;var t=(t=this.getChildrenNodes()||[]).map((function(e){return e.elm})).indexOf(e);return-1===t?null:{index:t,element:this.realList[t]}},getUnderlyingPotencialDraggableComponent:function(e){return(e=e.__vue__)&&e.$options&&d(e.$options._componentTag)?e.$parent:!("realList"in e)&&1===e.$children.length&&"realList"in e.$children[0]?e.$children[0]:e},emitChanges:function(e){var t=this;this.$nextTick((function(){t.$emit("change",e)}))},alterList:function(e){this.list?e(this.list):(e(e=s(this.value)),this.$emit("input",e))},spliceList:function(){var e=arguments;this.alterList((function(t){return t.splice.apply(t,s(e))}))},updatePosition:function(e,t){this.alterList((function(n){return n.splice(t,0,n.splice(e,1)[0])}))},getRelatedContextFromMoveEvent:function(e){var t=e.to,n=(e=e.related,this.getUnderlyingPotencialDraggableComponent(t));if(!n)return{component:n};var i=n.realList,o={list:i,component:n};return t!==e&&i&&n.getUnderlyingVm&&(t=n.getUnderlyingVm(e))?Object.assign(t,o):o},getVmIndex:function(e){var t=this.visibleIndexes,n=t.length;return n-1<e?n:t[e]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(e){this.noTransitionOnDrag&&this.transitionMode&&(this.getChildrenNodes()[e].data=null,(e=this.getComponent()).children=[],e.kept=void 0)},onDragStart:function(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),m=e.item},onDragAdd:function(e){var t=e.item._underlying_vm_;void 0!==t&&(Object(c.d)(e.item),e=this.getVmIndex(e.newIndex),this.spliceList(e,0,t),this.computeIndexes(),this.emitChanges({added:{element:t,newIndex:e}}))},onDragRemove:function(e){var t;Object(c.c)(this.rootContainer,e.item,e.oldIndex),"clone"===e.pullMode?Object(c.d)(e.clone):(e=this.context.index,this.spliceList(e,1),t={element:this.context.element,oldIndex:e},this.resetTransitionData(e),this.emitChanges({removed:t}))},onDragUpdate:function(e){Object(c.d)(e.item),Object(c.c)(e.from,e.item,e.oldIndex);var t=this.context.index;e=this.getVmIndex(e.newIndex),this.updatePosition(t,e),t={element:this.context.element,oldIndex:t,newIndex:e};this.emitChanges({moved:t})},updateProperty:function(e,t){e.hasOwnProperty(t)&&(e[t]+=this.headerOffset)},computeFutureIndex:function(e,t){var n,i;return e.element?(i=(n=s(t.to.children).filter((function(e){return"none"!==e.style.display}))).indexOf(t.related),e=e.component.getVmIndex(i),-1===n.indexOf(m)&&t.willInsertAfter?e+1:e):0},onDragMove:function(e,t){var n,i,o,r=this.move;return!r||!this.realList||(n=this.getRelatedContextFromMoveEvent(e),i=this.context,o=this.computeFutureIndex(n,e),Object.assign(i,{futureIndex:o}),r(Object.assign({},e,{relatedContext:n,draggedContext:i}),t))},onDragEnd:function(){this.computeIndexes(),m=null}}};"undefined"!=typeof window&&"Vue"in window&&window.Vue.component("draggable",a),t.default=a}},i={},t.m=n,t.c=i,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:i})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(t.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(i,o,function(t){return e[t]}.bind(null,o));return i},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s="fb15").default;function t(e){var o;return(i[e]||(o=i[e]={i:e,l:!1,exports:{}},n[e].call(o.exports,o,o.exports,t),o.l=!0,o)).exports}var n,i},e.exports=i(n(149))},function(e,t,n){"use strict";var i=n(16),o=n.n(i),r=(i=(n(123),n(124),n(125),n(126),n(127),n(128),n(129),n(130),n(131),n(132),n(103)),i=n.n(i),n(104)),s=(r=n.n(r),n(105)),a=(s=n.n(s),n(106));a=n.n(a),o.a.config.setModuleUrl("ace/mode/javascript_worker",i.a),o.a.config.setModuleUrl("ace/snippets/javascript",n(133)),o.a.config.setModuleUrl("ace/mode/css_worker",r.a),o.a.config.setModuleUrl("ace/snippets/css",n(134)),o.a.config.setModuleUrl("ace/mode/json_worker",s.a),o.a.config.setModuleUrl("ace/mode/html_worker",a.a),i={name:"ThCodeEditor",model:{event:"change"},props:{value:String,language:{type:String,default:"javascript"},theme:{type:String,default:"textmate"},height:String|Number,readonly:Boolean,maxLines:Number,completions:{type:Array,default:function(){return[]}},showGutter:{type:Boolean,default:!0},highlightActiveLine:{type:Boolean,default:!0},highlightSelectedWord:{type:Boolean,default:!0}},data:function(){return{editor:null,generateId:"id_"+Math.random().toString(36).substr(2,4)}},mounted:function(){this.initEditor(),this.setCompleteData()},computed:{selfStyle:function(){var e={};return"string"==typeof this.height&&this.height&&(e.height=this.height,e.minHeight="auto"),"number"==typeof this.height&&null!=this.height&&(e.height="".concat(this.height,"px"),e.minHeight="auto"),e}},watch:{value:function(e){this.editor.getValue()!==e&&(this.editor.setValue(e),this.editor.clearSelection())}},methods:{initEditor:function(){var e=this;this.editor=o.a.edit(this.$refs[this.generateId],{mode:"ace/mode/".concat(this.language),theme:"ace/theme/".concat(this.theme),fontSize:14,tabSize:2,value:this.value,selectionStyle:"text",maxLines:this.maxLines,readOnly:this.readonly,showGutter:this.showGutter,highlightActiveLine:this.highlightActiveLine,highlightSelectedWord:this.highlightSelectedWord}),this.editor.setOptions({enableBasicAutocompletion:!0,enableSnippets:!0,enableLiveAutocompletion:!0,wrap:!0,setShowPrintMargin:!1}),this.editor.on("change",(function(){e.$emit("change",e.editor.getValue())}))},setCompleteData:function(){var e=this;o.a.require("ace/ext/language_tools").addCompleter({getCompletions:function(t,n,i,o,r){return 0===o.length?r(null,[]):r(null,e.completions)}})},setShowGutter:function(e){this.editor.renderer.setShowGutter(e)},gotoLine:function(e){this.editor.gotoLine(e)},resize:function(){this.editor.resize()},destroy:function(){this.editor&&(this.editor.destroy(),this.editor=null)}},beforeDestroy:function(){this.destroy()}},r=n(0),s=Object(r.a)(i,(function(){var e=this.$createElement;return(this._self._c||e)("div",{ref:this.generateId,staticClass:"th-codeEditor",style:this.selfStyle})}),[],!1,null,null,null);t.a=s.exports},function(e,t,n){"use strict";var i,o=n(40),r=Object.prototype.toString,s=(i=Object.create(null),function(e){return e=r.call(e),i[e]||(i[e]=e.slice(8,-1).toLowerCase())});function a(e){return e=e.toLowerCase(),function(t){return s(t)===e}}function l(e){return Array.isArray(e)}function c(e){return void 0===e}var u=a("ArrayBuffer");function d(e){return null!==e&&"object"==typeof e}function h(e){return"object"===s(e)&&(null===(e=Object.getPrototypeOf(e))||e===Object.prototype)}n=a("Date");var f=a("File"),p=a("Blob"),g=a("FileList");function m(e){return"[object Function]"===r.call(e)}var v,b=a("URLSearchParams");function w(e,t){if(null!=e)if(l(e="object"!=typeof e?[e]:e))for(var n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}v="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),e.exports={isArray:l,isArrayBuffer:u,isBuffer:function(e){return null!==e&&!c(e)&&null!==e.constructor&&!c(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||r.call(e)===t||m(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&u(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:d,isPlainObject:h,isUndefined:c,isDate:n,isFile:f,isBlob:p,isFunction:m,isStream:function(e){return d(e)&&m(e.pipe)},isURLSearchParams:b,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:w,merge:function e(){var t={};function n(n,i){h(t[i])&&h(n)?t[i]=e(t[i],n):h(n)?t[i]=e({},n):l(n)?t[i]=n.slice():t[i]=n}for(var i=0,o=arguments.length;i<o;i++)w(arguments[i],n);return t},extend:function(e,t,n){return w(t,(function(t,i){e[i]=n&&"function"==typeof t?o(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)?e.slice(1):e},inherits:function(e,t,n,i){e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n){var i,o,r,s={};t=t||{};do{for(o=(i=Object.getOwnPropertyNames(e)).length;0<o--;)s[r=i[o]]||(t[r]=e[r],s[r]=!0)}while((e=Object.getPrototypeOf(e))&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:a,endsWith:function(e,t,n){return e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length,-1!==(e=e.indexOf(t,n))&&e===n},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var n=new Array(t);0<t--;)n[t]=e[t];return n},isTypedArray:function(e){return v&&e instanceof v},isFileList:g}},function(e,t,n){"use strict";var i,o,r=(o={},function(e){if(void 0===o[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}o[e]=t}return o[e]}),s=[];function a(e){for(var t=-1,n=0;n<s.length;n++)if(s[n].identifier===e){t=n;break}return t}function l(e,t){for(var n={},i=[],o=0;o<e.length;o++){var r=e[o],l=n[p=t.base?r[0]+t.base:r[0]]||0,u="".concat(p," ").concat(l),p=(n[p]=l+1,a(u));l={css:r[1],media:r[2],sourceMap:r[3]};-1!==p?(s[p].references++,s[p].updater(l)):s.push({identifier:u,updater:function(e,t){var n,i,o,r;return o=t.singleton?(r=f++,n=h=h||c(t),i=d.bind(null,n,r,!1),d.bind(null,n,r,!0)):(n=c(t),i=function(e,t,n){var i=n.css,o=n.media;n=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),n&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(n))))," */")),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}.bind(null,n,t),function(){var e=n;null!==e.parentNode&&e.parentNode.removeChild(e)}),i(e),function(t){t?t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap||i(e=t):o()}}(l,t),references:1}),i.push(u)}return i}function c(e){var t=document.createElement("style"),i=e.attributes||{};if(void 0===i.nonce&&(o=n.nc)&&(i.nonce=o),Object.keys(i).forEach((function(e){t.setAttribute(e,i[e])})),"function"==typeof e.insert)e.insert(t);else{var o=r(e.insert||"head");if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(t)}return t}u=[];var u;function d(e,t,n,i){n=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;e.styleSheet?e.styleSheet.cssText=function(e,t){return u[e]=t,u.filter(Boolean).join("\n")}(t,n):(i=document.createTextNode(n),(n=e.childNodes)[t]&&e.removeChild(n[t]),n.length?e.insertBefore(i,n[t]):e.appendChild(i))}var h=null,f=0;e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=i=void 0===i?Boolean(window&&document&&document.all&&!window.atob):i);var n=l(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var i=0;i<n.length;i++){var o=a(n[i]);s[o].references--}e=l(e,t);for(var r=0;r<n.length;r++){var c=a(n[r]);0===s[c].references&&(s[c].updater(),s.splice(c,1))}n=e}}}},function(e,t,n){(function(t){
2
2
  /*!
3
3
  * Quill Editor v1.3.7
4
4
  * https://quilljs.com/
@@ -82,6 +82,6 @@ e.exports=function(){"use strict";function e(e,t){var n=Object.keys(e);if(Object
82
82
  * @license MIT
83
83
  */function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(this,arguments)}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);(i="function"==typeof Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))):i).forEach((function(t){var i,o;i=e,o=n[t=t],t in i?Object.defineProperty(i,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[t]=o}))}return e}function s(e,t){if(null==e)return{};var n,i=function(e,t){if(null==e)return{};for(var n,i={},o=Object.keys(e),r=0;r<o.length;r++)n=o[r],0<=t.indexOf(n)||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols)for(var o=Object.getOwnPropertySymbols(e),r=0;r<o.length;r++)n=o[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n]);return i}function a(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function l(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}n.r(t),n.d(t,"MultiDrag",(function(){return pt})),n.d(t,"Sortable",(function(){return De})),n.d(t,"Swap",(function(){return it}));var c=l(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),u=l(/Edge/i),d=l(/firefox/i),h=l(/safari/i)&&!l(/chrome/i)&&!l(/android/i),f=(n=l(/iP(ad|od|hone)/i),l(/chrome/i)&&l(/android/i)),p={capture:!1,passive:!1};function g(e,t,n){e.addEventListener(t,n,!c&&p)}function m(e,t,n){e.removeEventListener(t,n,!c&&p)}function v(e,t){if(t&&(">"===t[0]&&(t=t.substring(1)),e))try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return}}function b(e,t,n,i){if(e){n=n||document;do{if(null!=t&&(">"!==t[0]||e.parentNode===n)&&v(e,t)||i&&e===n)return e}while(e!==n&&(e=(o=e).host&&o!==document&&o.host.nodeType?o.host:o.parentNode))}var o;return null}var w,y=/\s+/g;function x(e,t,n){var i;e&&t&&(e.classList?e.classList[n?"add":"remove"](t):(i=(" "+e.className+" ").replace(y," ").replace(" "+t+" "," "),e.className=(i+(n?" "+t:"")).replace(y," ")))}function k(e,t,n){var i=e&&e.style;if(i){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];i[t=t in i||-1!==t.indexOf("webkit")?t:"-webkit-"+t]=n+("string"==typeof n?"":"px")}}function _(e,t){var n="";if("string"==typeof e)n=e;else do{var i=k(e,"transform")}while(i&&"none"!==i&&(n=i+" "+n),!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function C(e,t,n){if(e){var i=e.getElementsByTagName(t),o=0,r=i.length;if(n)for(;o<r;o++)n(i[o],o);return i}return[]}function S(){return document.scrollingElement||document.documentElement}function E(e,t,n,i,o){if(e.getBoundingClientRect||e===window){var r,s,a,l,u,d,h=e!==window&&e!==S()?(s=(r=e.getBoundingClientRect()).top,a=r.left,l=r.bottom,u=r.right,d=r.height,r.width):(a=s=0,l=window.innerHeight,u=window.innerWidth,d=window.innerHeight,window.innerWidth);if((t||n)&&e!==window&&(o=o||e.parentNode,!c))do{if(o&&o.getBoundingClientRect&&("none"!==k(o,"transform")||n&&"static"!==k(o,"position"))){var f=o.getBoundingClientRect();s-=f.top+parseInt(k(o,"border-top-width")),a-=f.left+parseInt(k(o,"border-left-width")),l=s+r.height,u=a+r.width;break}}while(o=o.parentNode);return i&&e!==window&&(i=(t=_(o||e))&&t.a,e=t&&t.d,t)&&(l=(s/=e)+(d/=e),u=(a/=i)+(h/=i)),{top:s,left:a,bottom:l,right:u,width:h,height:d}}}function T(e,t,n){for(var i=R(e,!0),o=E(e)[t];i;){var r=E(i)[n];if(!("top"===n||"left"===n?r<=o:o<=r))return i;if(i===S())break;i=R(i,!1)}return!1}function A(e,t,n){for(var i=0,o=0,r=e.children;o<r.length;){if("none"!==r[o].style.display&&r[o]!==De.ghost&&r[o]!==De.dragged&&b(r[o],n.draggable,e,!1)){if(i===t)return r[o];i++}o++}return null}function O(e,t){for(var n=e.lastElementChild;n&&(n===De.ghost||"none"===k(n,"display")||t&&!v(n,t));)n=n.previousElementSibling;return n||null}function L(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===De.clone||t&&!v(e,t)||n++;return n}function $(e){var t=0,n=0,i=S();if(e)do{var o=(r=_(e)).a,r=r.d}while(t+=e.scrollLeft*o,n+=e.scrollTop*r,e!==i&&(e=e.parentNode));return[t,n]}function R(e,t){if(e&&e.getBoundingClientRect){var n=e,i=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=k(n);if(n.clientWidth<n.scrollWidth&&("auto"==o.overflowX||"scroll"==o.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==o.overflowY||"scroll"==o.overflowY)){if(!n.getBoundingClientRect||n===document.body)return S();if(i||t)return n;i=!0}}}while(n=n.parentNode)}return S()}function M(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function I(e,t){return function(){var n;w||(1===(n=arguments).length?e.call(this,n[0]):e.apply(this,n),w=setTimeout((function(){w=void 0}),t))}}function N(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function D(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function P(e,t){k(e,"position","absolute"),k(e,"top",t.top),k(e,"left",t.left),k(e,"width",t.width),k(e,"height",t.height)}function F(e){k(e,"position",""),k(e,"top",""),k(e,"left",""),k(e,"width",""),k(e,"height","")}var q="Sortable"+(new Date).getTime();var B=[],j={initializeByDefault:!0},W={mount:function(e){for(var t in j)!j.hasOwnProperty(t)||t in e||(e[t]=j[t]);B.push(e)},pluginEvent:function(e,t,n){var i=this,o=(this.eventCanceled=!1,n.cancel=function(){i.eventCanceled=!0},e+"Global");B.forEach((function(i){t[i.pluginName]&&(t[i.pluginName][o]&&t[i.pluginName][o](r({sortable:t},n)),t.options[i.pluginName])&&t[i.pluginName][e]&&t[i.pluginName][e](r({sortable:t},n))}))},initializePlugins:function(e,t,n,i){for(var r in B.forEach((function(i){var r=i.pluginName;(e.options[r]||i.initializeByDefault)&&((i=new i(e,t,e.options)).sortable=e,i.options=e.options,e[r]=i,o(n,i.defaults))})),e.options){var s;e.options.hasOwnProperty(r)&&void 0!==(s=this.modifyOption(e,r,e.options[r]))&&(e.options[r]=s)}},getEventProperties:function(e,t){var n={};return B.forEach((function(i){"function"==typeof i.eventProperties&&o(n,i.eventProperties.call(t[i.pluginName],e))})),n},modifyOption:function(e,t,n){var i;return B.forEach((function(o){e[o.pluginName]&&o.optionListeners&&"function"==typeof o.optionListeners[t]&&(i=o.optionListeners[t].call(e[o.pluginName],n))})),i}};function z(e){var t=e.sortable,n=e.rootEl,i=e.name,o=e.targetEl,s=e.cloneEl,a=e.toEl,l=e.fromEl,d=e.oldIndex,h=e.newIndex,f=e.oldDraggableIndex,p=e.newDraggableIndex,g=e.originalEvent,m=e.putSortable;e=e.extraEventProperties;if(t=t||n&&n[q]){var v,b,w=t.options,y="on"+i.charAt(0).toUpperCase()+i.substr(1),x=(!window.CustomEvent||c||u?(v=document.createEvent("Event")).initEvent(i,!0,!0):v=new CustomEvent(i,{bubbles:!0,cancelable:!0}),v.to=a||n,v.from=l||n,v.item=o||n,v.clone=s,v.oldIndex=d,v.newIndex=h,v.oldDraggableIndex=f,v.newDraggableIndex=p,v.originalEvent=g,v.pullMode=m?m.lastPutMode:void 0,r({},e,W.getEventProperties(i,t)));for(b in x)v[b]=x[b];n&&n.dispatchEvent(v),w[y]&&w[y].call(t,v)}}function H(e,t){var n=(i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{}).evt,i=s(i,["evt"]);W.pluginEvent.bind(De)(e,t,r({dragEl:X,parentEl:J,ghostEl:Z,rootEl:Q,nextEl:ee,lastDownEl:te,cloneEl:ne,cloneHidden:ie,dragStarted:me,putSortable:ce,activeSortable:De.active,originalEvent:n,oldIndex:oe,oldDraggableIndex:se,newIndex:re,newDraggableIndex:ae,hideGhostForTarget:V,unhideGhostForTarget:G,cloneNowHidden:function(){ie=!0},cloneNowShown:function(){ie=!1},dispatchSortableEvent:function(e){U({sortable:t,name:e,originalEvent:n})}},i))}function U(e){z(r({putSortable:ce,cloneEl:ne,targetEl:X,rootEl:Q,oldIndex:oe,oldDraggableIndex:se,newIndex:re,newDraggableIndex:ae},e))}function V(){!Me&&Z&&k(Z,"display","none")}function G(){!Me&&Z&&k(Z,"display","")}function K(e){if(X){e=e.touches?e.touches[0]:e,o=e.clientX,r=e.clientY,_e.some((function(e){var t,n,i;if(!O(e))return i=E(e),t=e[q].options.emptyInsertThreshold,n=o>=i.left-t&&o<=i.right+t,i=r>=i.top-t&&r<=i.bottom+t,t&&n&&i?s=e:void 0}));var t=s;if(t){var n,i={};for(n in e)e.hasOwnProperty(n)&&(i[n]=e[n]);i.target=i.rootEl=t,i.preventDefault=void 0,i.stopPropagation=void 0,t[q]._onDragOver(i)}}var o,r,s}function Y(e){X&&X.parentNode[q]._isOutsideThisEl(e.target)}var X,J,Z,Q,ee,te,ne,ie,oe,re,se,ae,le,ce,ue,de,he,fe,pe,ge,me,ve,be,we,ye,xe=!1,ke=!1,_e=[],Ce=!1,Se=!1,Ee=[],Te=!1,Ae=[],Oe="undefined"!=typeof document,Le=n,$e=u||c?"cssFloat":"float",Re=Oe&&!f&&!n&&"draggable"in document.createElement("div"),Me=function(){var e;if(Oe)return!c&&((e=document.createElement("x")).style.cssText="pointer-events:auto","auto"===e.style.pointerEvents)}(),Ie=function(e,t){var n,i=k(e),o=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),r=A(e,0,t),s=(e=A(e,1,t),t=r&&k(r),e&&k(e)),a=t&&parseInt(t.marginLeft)+parseInt(t.marginRight)+E(r).width,l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+E(e).width;return"flex"===i.display?"column"===i.flexDirection||"column-reverse"===i.flexDirection?"vertical":"horizontal":"grid"===i.display?i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal":r&&t.float&&"none"!==t.float?(n="left"===t.float?"left":"right",!e||"both"!==s.clear&&s.clear!==n?"horizontal":"vertical"):r&&("block"===t.display||"flex"===t.display||"table"===t.display||"grid"===t.display||o<=a&&"none"===i[$e]||e&&"none"===i[$e]&&o<a+l)?"vertical":"horizontal"},Ne=function(e){function t(e,n){return function(i,o,r,s){var a=i.options.group.name&&o.options.group.name&&i.options.group.name===o.options.group.name;return!(null!=e||!n&&!a)||null!=e&&!1!==e&&(n&&"clone"===e?e:"function"==typeof e?t(e(i,o,r,s),n)(i,o,r,s):(a=(n?i:o).options.group.name,!0===e||"string"==typeof e&&e===a||e.join&&-1<e.indexOf(a)))}}var n={},o=e.group;o&&"object"==i(o)||(o={name:o}),n.name=o.name,n.checkPull=t(o.pull,!0),n.checkPut=t(o.put),n.revertClone=o.revertClone,e.group=n};function De(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=o({},t),e[q]=this;var n,i,s={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ie(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==De.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(n in W.initializePlugins(this,e,s),s)n in t||(t[n]=s[n]);for(i in Ne(t),this)"_"===i.charAt(0)&&"function"==typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!t.forceFallback&&Re,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?g(e,"pointerdown",this._onTapStart):(g(e,"mousedown",this._onTapStart),g(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(g(e,"dragover",this),g(e,"dragenter",this)),_e.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),o(this,function(){var e,t=[];return{captureAnimationState:function(){t=[],this.options.animation&&[].slice.call(this.el.children).forEach((function(e){var n,i;"none"!==k(e,"display")&&e!==De.ghost&&(t.push({target:e,rect:E(e)}),n=r({},t[t.length-1].rect),e.thisAnimationDuration&&(i=_(e,!0))&&(n.top-=i.f,n.left-=i.e),e.fromRect=n)}))},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var i in t)if(t.hasOwnProperty(i)&&t[i]===e[n][i])return Number(n);return-1}(t,{target:e}),1)},animateAll:function(n){var i,o,r=this;this.options.animation?(i=!1,o=0,t.forEach((function(e){var t,n=0,s=e.target,a=s.fromRect,l=E(s),c=s.prevFromRect,u=s.prevToRect,d=(e=e.rect,_(s,!0));d&&(l.top-=d.f,l.left-=d.e),s.toRect=l,s.thisAnimationDuration&&M(c,l)&&!M(a,l)&&(e.top-l.top)/(e.left-l.left)==(a.top-l.top)/(a.left-l.left)&&(d=e,c=c,u=u,t=r.options,n=Math.sqrt(Math.pow(c.top-d.top,2)+Math.pow(c.left-d.left,2))/Math.sqrt(Math.pow(c.top-u.top,2)+Math.pow(c.left-u.left,2))*t.animation),M(l,a)||(s.prevFromRect=a,s.prevToRect=l,n=n||r.options.animation,r.animate(s,e,l,n)),n&&(i=!0,o=Math.max(o,n),clearTimeout(s.animationResetTimer),s.animationResetTimer=setTimeout((function(){s.animationTime=0,s.prevFromRect=null,s.fromRect=null,s.prevToRect=null,s.thisAnimationDuration=null}),n),s.thisAnimationDuration=n)})),clearTimeout(e),i?e=setTimeout((function(){"function"==typeof n&&n()}),o):"function"==typeof n&&n(),t=[]):(clearTimeout(e),"function"==typeof n&&n())},animate:function(e,t,n,i){var o,r;i&&(k(e,"transition",""),k(e,"transform",""),r=(o=_(this.el))&&o.a,o=o&&o.d,r=(t.left-n.left)/(r||1),t=(t.top-n.top)/(o||1),e.animatingX=!!r,e.animatingY=!!t,k(e,"transform","translate3d("+r+"px,"+t+"px,0)"),e.offsetWidth,k(e,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),k(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){k(e,"transition",""),k(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),i))}}}())}function Pe(e,t,n,i,o,r,s,a){var l,d,h=e[q],f=h.options.onMove;return!window.CustomEvent||c||u?(l=document.createEvent("Event")).initEvent("move",!0,!0):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=n,l.draggedRect=i,l.related=o||t,l.relatedRect=r||E(t),l.willInsertAfter=a,l.originalEvent=s,e.dispatchEvent(l),f?f.call(h,l,s):d}function Fe(e){e.draggable=!1}function qe(){Te=!1}function Be(e){return setTimeout(e,0)}function je(e){return clearTimeout(e)}Oe&&document.addEventListener("click",(function(e){if(ke)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),ke=!1}),!0),De.prototype={constructor:De,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(ve=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,X):this.options.direction},_onTapStart:function(e){if(e.cancelable){for(var t=this,n=this.el,i=this.options,o=i.preventOnFilter,r=e.type,s=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,a=(s||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||a,c=i.filter,u=n,d=(Ae.length=0,u.getElementsByTagName("input")),h=d.length;h--;){var f=d[h];f.checked&&Ae.push(f)}if(!X&&!(/mousedown|pointerdown/.test(r)&&0!==e.button||i.disabled||l.isContentEditable||(a=b(a,i.draggable,n,!1))&&a.animated||te===a)){if(oe=L(a),se=L(a,i.draggable),"function"==typeof c){if(c.call(this,e,a,this))return U({sortable:t,rootEl:l,name:"filter",targetEl:a,toEl:n,fromEl:n}),H("filter",t,{evt:e}),void(o&&e.cancelable&&e.preventDefault())}else if(c=c&&c.split(",").some((function(i){if(i=b(l,i.trim(),n,!1))return U({sortable:t,rootEl:i,name:"filter",targetEl:a,fromEl:n,toEl:n}),H("filter",t,{evt:e}),!0})))return void(o&&e.cancelable&&e.preventDefault());i.handle&&!b(l,i.handle,n,!1)||this._prepareDragStart(e,s,a)}}},_prepareDragStart:function(e,t,n){var i,o=this,r=o.el,s=o.options,a=r.ownerDocument;n&&!X&&n.parentNode===r&&(i=E(n),Q=r,J=(X=n).parentNode,ee=X.nextSibling,te=n,le=s.group,ue={target:De.dragged=X,clientX:(t||e).clientX,clientY:(t||e).clientY},pe=ue.clientX-i.left,ge=ue.clientY-i.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,X.style["will-change"]="all",r=function(){H("delayEnded",o,{evt:e}),De.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!d&&o.nativeDraggable&&(X.draggable=!0),o._triggerDragStart(e,t),U({sortable:o,name:"choose",originalEvent:e}),x(X,s.chosenClass,!0))},s.ignore.split(",").forEach((function(e){C(X,e.trim(),Fe)})),g(a,"dragover",K),g(a,"mousemove",K),g(a,"touchmove",K),g(a,"mouseup",o._onDrop),g(a,"touchend",o._onDrop),g(a,"touchcancel",o._onDrop),d&&this.nativeDraggable&&(this.options.touchStartThreshold=4,X.draggable=!0),H("delayStart",this,{evt:e}),!s.delay||s.delayOnTouchOnly&&!t||this.nativeDraggable&&(u||c)?r():De.eventCanceled?this._onDrop():(g(a,"mouseup",o._disableDelayedDrag),g(a,"touchend",o._disableDelayedDrag),g(a,"touchcancel",o._disableDelayedDrag),g(a,"mousemove",o._delayedDragTouchMoveHandler),g(a,"touchmove",o._delayedDragTouchMoveHandler),s.supportPointer&&g(a,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(r,s.delay)))},_delayedDragTouchMoveHandler:function(e){e=e.touches?e.touches[0]:e,Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){X&&Fe(X),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;m(e,"mouseup",this._disableDelayedDrag),m(e,"touchend",this._disableDelayedDrag),m(e,"touchcancel",this._disableDelayedDrag),m(e,"mousemove",this._delayedDragTouchMoveHandler),m(e,"touchmove",this._delayedDragTouchMoveHandler),m(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?g(document,"pointermove",this._onTouchMove):g(document,t?"touchmove":"mousemove",this._onTouchMove):(g(X,"dragend",this),g(Q,"dragstart",this._onDragStart));try{document.selection?Be((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){var n;xe=!1,Q&&X?(H("dragStarted",this,{evt:t}),this.nativeDraggable&&g(document,"dragover",Y),n=this.options,e||x(X,n.dragClass,!1),x(X,n.ghostClass,!0),De.active=this,e&&this._appendGhost(),U({sortable:this,name:"start",originalEvent:t})):this._nulling()},_emulateDragOver:function(){if(de){this._lastX=de.clientX,this._lastY=de.clientY,V();for(var e=document.elementFromPoint(de.clientX,de.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(de.clientX,de.clientY))!==t;)t=e;if(X.parentNode[q]._isOutsideThisEl(e),t)do{if(t[q]&&t[q]._onDragOver({clientX:de.clientX,clientY:de.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}while(t=(e=t).parentNode);G()}},_onTouchMove:function(e){if(ue){var t=(n=this.options).fallbackTolerance,n=n.fallbackOffset,i=e.touches?e.touches[0]:e,o=Z&&_(Z,!0),r=Z&&o&&o.a,s=Z&&o&&o.d,a=Le&&ye&&$(ye);r=(i.clientX-ue.clientX+n.x)/(r||1)+(a?a[0]-Ee[0]:0)/(r||1),n=(i.clientY-ue.clientY+n.y)/(s||1)+(a?a[1]-Ee[1]:0)/(s||1);if(!De.active&&!xe){if(t&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<t)return;this._onDragStart(e,!0)}Z&&(o?(o.e+=r-(he||0),o.f+=n-(fe||0)):o={a:1,b:0,c:0,d:1,e:r,f:n},a="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")"),k(Z,"webkitTransform",a),k(Z,"mozTransform",a),k(Z,"msTransform",a),k(Z,"transform",a),he=r,fe=n,de=i),e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!Z){var e=this.options.fallbackOnBody?document.body:Q,t=E(X,!0,Le,!0,e),n=this.options;if(Le){for(ye=e;"static"===k(ye,"position")&&"none"===k(ye,"transform")&&ye!==document;)ye=ye.parentNode;ye!==document.body&&ye!==document.documentElement?(ye===document&&(ye=S()),t.top+=ye.scrollTop,t.left+=ye.scrollLeft):ye=S(),Ee=$(ye)}x(Z=X.cloneNode(!0),n.ghostClass,!1),x(Z,n.fallbackClass,!0),x(Z,n.dragClass,!0),k(Z,"transition",""),k(Z,"transform",""),k(Z,"box-sizing","border-box"),k(Z,"margin",0),k(Z,"top",t.top),k(Z,"left",t.left),k(Z,"width",t.width),k(Z,"height",t.height),k(Z,"opacity","0.8"),k(Z,"position",Le?"absolute":"fixed"),k(Z,"zIndex","100000"),k(Z,"pointerEvents","none"),De.ghost=Z,e.appendChild(Z),k(Z,"transform-origin",pe/parseInt(Z.style.width)*100+"% "+ge/parseInt(Z.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,i=e.dataTransfer,o=n.options;H("dragStart",this,{evt:e}),De.eventCanceled?this._onDrop():(H("setupClone",this),De.eventCanceled||((ne=D(X)).draggable=!1,ne.style["will-change"]="",this._hideClone(),x(ne,this.options.chosenClass,!1),De.clone=ne),n.cloneId=Be((function(){H("clone",n),De.eventCanceled||(n.options.removeCloneOnHide||Q.insertBefore(ne,X),n._hideClone(),U({sortable:n,name:"clone"}))})),t||x(X,o.dragClass,!0),t?(ke=!0,n._loopId=setInterval(n._emulateDragOver,50)):(m(document,"mouseup",n._onDrop),m(document,"touchend",n._onDrop),m(document,"touchcancel",n._onDrop),i&&(i.effectAllowed="move",o.setData)&&o.setData.call(n,i,X),g(document,"drop",n),k(X,"transform","translateZ(0)")),xe=!0,n._dragStartId=Be(n._dragStarted.bind(n,t,e)),g(document,"selectstart",n),me=!0,h&&k(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,i,o=this.el,s=e.target,a=this.options,l=a.group,c=De.active,u=le===l,d=a.sort,h=ce||c,f=this,p=!1;if(!Te){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),s=b(s,a.draggable,o,!0),I("dragOver"),De.eventCanceled)return p;if(X.contains(e.target)||s.animated&&s.animatingX&&s.animatingY||f._ignoreWhileAnimating===s)return P(!1);if(ke=!1,c&&!a.disabled&&(u?d||(n=!Q.contains(X)):ce===this||(this.lastPutMode=le.checkPull(this,c,X,e))&&l.checkPut(this,c,X,e))){if(i="vertical"===this._getDirection(e,s),t=E(X),I("dragOverValid"),De.eventCanceled)return p;if(n)return J=Q,D(),this._hideClone(),I("revert"),De.eventCanceled||(ee?Q.insertBefore(X,ee):Q.appendChild(X)),P(!0);if(!(l=O(o,a.draggable))||function(e,t,n){return n=E(O(n.el,n.options.draggable)),t?e.clientX>n.right+10||e.clientX<=n.right&&e.clientY>n.bottom&&e.clientX>=n.left:e.clientX>n.right&&e.clientY>n.top||e.clientX<=n.right&&e.clientY>n.bottom+10}(e,i,this)&&!l.animated){if(l===X)return P(!1);if((s=l&&o===e.target?l:s)&&(w=E(s)),!1!==Pe(Q,o,X,t,s,w,e,!!s))return D(),o.appendChild(X),J=o,F(),P(!0)}else if(s.parentNode===o){var g,m,v,w=E(s),y=(l=X.parentNode!==o,$=X.animated&&X.toRect||t,y=s.animated&&s.toRect||w,S=(M=i)?$.left:$.top,_=M?$.right:$.bottom,$=M?$.width:$.height,R=M?y.left:y.top,C=M?y.right:y.bottom,M=M?y.width:y.height,!(S===R||_===C||S+$/2===R+M/2)),_=i?"top":"left",C=T(s,"top","top")||T(X,"top","top"),S=C?C.scrollTop:void 0;if(ve!==s&&(m=w[_],Ce=!1,Se=!y&&a.invertSwap||l),0!==(g=function(e,t,n,i,o,r,s,a){e=i?e.clientY:e.clientX;var l=i?n.height:n.width,c=i?n.top:n.left;i=i?n.bottom:n.right,n=!1;if(!s)if(a&&we<l*o){if(Ce=!Ce&&(1===be?c+l*r/2<e:e<i-l*r/2)||Ce)n=!0;else if(1===be?e<c+we:i-we<e)return-be}else if(c+l*(1-o)/2<e&&e<i-l*(1-o)/2)return function(e){return L(X)<L(e)?1:-1}(t);return(n=n||s)&&(e<c+l*r/2||i-l*r/2<e)?c+l/2<e?1:-1:0}(e,s,w,i,y?1:a.swapThreshold,null==a.invertedSwapThreshold?a.swapThreshold:a.invertedSwapThreshold,Se,ve===s)))for(var A=L(X);(v=J.children[A-=g])&&("none"===k(v,"display")||v===Z););if(0===g||v===s)return P(!1);be=g;var $=(ve=s).nextElementSibling,R=!1,M=Pe(Q,o,X,t,s,w,e,R=1===g);if(!1!==M)return 1!==M&&-1!==M||(R=1===M),Te=!0,setTimeout(qe,30),D(),R&&!$?o.appendChild(X):s.parentNode.insertBefore(X,R?$:s),C&&N(C,0,S-C.scrollTop),J=X.parentNode,void 0===m||Se||(we=Math.abs(m-E(s)[_])),F(),P(!0)}if(o.contains(X))return P(!1)}return!1}function I(a,l){H(a,f,r({evt:e,isOwner:u,axis:i?"vertical":"horizontal",revert:n,dragRect:t,targetRect:w,canSort:d,fromSortable:h,target:s,completed:P,onMove:function(n,i){return Pe(Q,o,X,t,n,E(n),e,i)},changed:F},l))}function D(){I("dragOverAnimationCapture"),f.captureAnimationState(),f!==h&&h.captureAnimationState()}function P(t){return I("dragOverCompleted",{insertion:t}),t&&(u?c._hideClone():c._showClone(f),f!==h&&(x(X,(ce||c).options.ghostClass,!1),x(X,a.ghostClass,!0)),ce!==f&&f!==De.active?ce=f:f===De.active&&(ce=ce&&null),h===f&&(f._ignoreWhileAnimating=s),f.animateAll((function(){I("dragOverAnimationComplete"),f._ignoreWhileAnimating=null})),f!==h)&&(h.animateAll(),h._ignoreWhileAnimating=null),(s===X&&!X.animated||s===o&&!s.animated)&&(ve=null),a.dragoverBubble||e.rootEl||s===document||(X.parentNode[q]._isOutsideThisEl(e.target),t)||K(e),!a.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),p=!0}function F(){re=L(X),ae=L(X,a.draggable),U({sortable:f,name:"change",toEl:o,newIndex:re,newDraggableIndex:ae,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){m(document,"mousemove",this._onTouchMove),m(document,"touchmove",this._onTouchMove),m(document,"pointermove",this._onTouchMove),m(document,"dragover",K),m(document,"mousemove",K),m(document,"touchmove",K)},_offUpEvents:function(){var e=this.el.ownerDocument;m(e,"mouseup",this._onDrop),m(e,"touchend",this._onDrop),m(e,"pointerup",this._onDrop),m(e,"touchcancel",this._onDrop),m(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;re=L(X),ae=L(X,n.draggable),H("drop",this,{evt:e}),J=X&&X.parentNode,re=L(X),ae=L(X,n.draggable),De.eventCanceled||(Ce=Se=xe=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),je(this.cloneId),je(this._dragStartId),this.nativeDraggable&&(m(document,"drop",this),m(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),h&&k(document.body,"user-select",""),k(X,"transform",""),e&&(me&&(e.cancelable&&e.preventDefault(),n.dropBubble||e.stopPropagation()),Z&&Z.parentNode&&Z.parentNode.removeChild(Z),(Q===J||ce&&"clone"!==ce.lastPutMode)&&ne&&ne.parentNode&&ne.parentNode.removeChild(ne),X)&&(this.nativeDraggable&&m(X,"dragend",this),Fe(X),X.style["will-change"]="",me&&!xe&&x(X,(ce||this).options.ghostClass,!1),x(X,this.options.chosenClass,!1),U({sortable:this,name:"unchoose",toEl:J,newIndex:null,newDraggableIndex:null,originalEvent:e}),Q!==J?(0<=re&&(U({rootEl:J,name:"add",toEl:J,fromEl:Q,originalEvent:e}),U({sortable:this,name:"remove",toEl:J,originalEvent:e}),U({rootEl:J,name:"sort",toEl:J,fromEl:Q,originalEvent:e}),U({sortable:this,name:"sort",toEl:J,originalEvent:e})),ce&&ce.save()):re!==oe&&0<=re&&(U({sortable:this,name:"update",toEl:J,originalEvent:e}),U({sortable:this,name:"sort",toEl:J,originalEvent:e})),De.active)&&(null!=re&&-1!==re||(re=oe,ae=se),U({sortable:this,name:"end",toEl:J,originalEvent:e}),this.save())),this._nulling()},_nulling:function(){H("nulling",this),Q=X=J=Z=ee=ne=te=ie=ue=de=me=re=ae=oe=se=ve=be=ce=le=De.dragged=De.ghost=De.clone=De.active=null,Ae.forEach((function(e){e.checked=!0})),Ae.length=he=fe=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":var t;X&&(this._onDragOver(e),(t=e).dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable)&&t.preventDefault();break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,i=0,o=n.length,r=this.options;i<o;i++)b(e=n[i],r.draggable,this.el,!1)&&t.push(e.getAttribute(r.dataIdAttr)||function(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,i=0;n--;)i+=t.charCodeAt(n);return i.toString(36)}(e));return t},sort:function(e){var t={},n=this.el;this.toArray().forEach((function(e,i){b(i=n.children[i],this.options.draggable,n,!1)&&(t[e]=i)}),this),e.forEach((function(e){t[e]&&(n.removeChild(t[e]),n.appendChild(t[e]))}))},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return b(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var i=W.modifyOption(this,e,t);n[e]=void 0!==i?i:t,"group"===e&&Ne(n)},destroy:function(){H("destroy",this);var e=this.el;e[q]=null,m(e,"mousedown",this._onTapStart),m(e,"touchstart",this._onTapStart),m(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(m(e,"dragover",this),m(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),_e.splice(_e.indexOf(this.el),1),this.el=e=null},_hideClone:function(){ie||(H("hideClone",this),De.eventCanceled)||(k(ne,"display","none"),this.options.removeCloneOnHide&&ne.parentNode&&ne.parentNode.removeChild(ne),ie=!0)},_showClone:function(e){"clone"!==e.lastPutMode?this._hideClone():ie&&(H("showClone",this),De.eventCanceled||(Q.contains(X)&&!this.options.group.revertClone?Q.insertBefore(ne,X):ee?Q.insertBefore(ne,ee):Q.appendChild(ne),this.options.group.revertClone&&this.animate(X,ne),k(ne,"display",""),ie=!1))}},Oe&&g(document,"touchmove",(function(e){(De.active||xe)&&e.cancelable&&e.preventDefault()})),De.utils={on:g,off:m,css:k,find:C,is:function(e,t){return!!b(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:I,closest:b,toggleClass:x,clone:D,index:L,nextTick:Be,cancelNextTick:je,detectDirection:Ie,getChild:A},De.get=function(e){return e[q]},De.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];(t=t[0].constructor===Array?t[0]:t).forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(De.utils=r({},De.utils,e.utils)),W.mount(e)}))},De.create=function(e,t){return new De(e,t)};var We,ze,He,Ue,Ve,Ge,Ke=[],Ye=!(De.version="1.10.2");function Xe(){Ke.forEach((function(e){clearInterval(e.pid)})),Ke=[]}function Je(){clearInterval(Ge)}function Ze(e){var t=e.originalEvent,n=e.putSortable,i=e.dragEl,o=e.activeSortable,r=e.dispatchSortableEvent,s=e.hideGhostForTarget;e=e.unhideGhostForTarget;t&&(o=n||o,s(),s=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,t=document.elementFromPoint(s.clientX,s.clientY),e(),o)&&!o.el.contains(t)&&(r("spill"),this.onSpill({dragEl:i,putSortable:n}))}var Qe,et=I((function(e,t,n,i){if(t.scroll){var o,r=(e.touches?e.touches[0]:e).clientX,s=(e.touches?e.touches[0]:e).clientY,a=t.scrollSensitivity,l=t.scrollSpeed,c=S(),u=!1,d=0,h=We=ze!==n&&(ze=n,Xe(),We=t.scroll,o=t.scrollFn,!0===We)?R(n,!0):We;do{var f=h,p=(w=E(f)).top,g=w.bottom,m=w.left,v=w.right,b=w.width,w=w.height,y=void 0,x=f.scrollWidth,_=f.scrollHeight,C=k(f),T=f.scrollLeft,A=f.scrollTop,O=f===c?(y=b<x&&("auto"===C.overflowX||"scroll"===C.overflowX||"visible"===C.overflowX),w<_&&("auto"===C.overflowY||"scroll"===C.overflowY||"visible"===C.overflowY)):(y=b<x&&("auto"===C.overflowX||"scroll"===C.overflowX),w<_&&("auto"===C.overflowY||"scroll"===C.overflowY));C=y&&(Math.abs(v-r)<=a&&T+b<x)-(Math.abs(m-r)<=a&&!!T),y=O&&(Math.abs(g-s)<=a&&A+w<_)-(Math.abs(p-s)<=a&&!!A);if(!Ke[d])for(var L=0;L<=d;L++)Ke[L]||(Ke[L]={});Ke[d].vx==C&&Ke[d].vy==y&&Ke[d].el===f||(Ke[d].el=f,Ke[d].vx=C,Ke[d].vy=y,clearInterval(Ke[d].pid),0==C&&0==y)||(u=!0,Ke[d].pid=setInterval(function(){i&&0===this.layer&&De.active._onTouchMove(Ve);var t=Ke[this.layer].vy?Ke[this.layer].vy*l:0,n=Ke[this.layer].vx?Ke[this.layer].vx*l:0;"function"==typeof o&&"continue"!==o.call(De.dragged.parentNode[q],n,t,e,Ve,Ke[this.layer].el)||N(Ke[this.layer].el,n,t)}.bind({layer:d}),24)),d++}while(t.bubbleScroll&&h!==c&&(h=R(h,!1)));Ye=u}}),30);function tt(){}function nt(){}function it(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){e=e.dragEl,Qe=e},dragOverValid:function(e){var t,n=e.completed,i=e.target,o=e.onMove,r=e.activeSortable,s=e.changed;e=e.cancel;r.options.swap&&(r=this.sortable.el,t=this.options,i&&i!==r&&(r=Qe,Qe=!1!==o(i)?(x(i,t.swapClass,!0),i):null,r)&&r!==Qe&&x(r,t.swapClass,!1),s(),n(!0),e())},drop:function(e){var t,n,i,o=e.activeSortable,r=e.putSortable,s=(e=e.dragEl,r||this.sortable),a=this.options;Qe&&x(Qe,a.swapClass,!1),Qe&&(a.swap||r&&r.options.swap)&&e!==Qe&&(s.captureAnimationState(),s!==o&&o.captureAnimationState(),a=Qe,e=(r=e).parentNode,i=a.parentNode,e&&i&&!e.isEqualNode(a)&&!i.isEqualNode(r)&&(t=L(r),n=L(a),e.isEqualNode(i)&&t<n&&n++,e.insertBefore(a,e.children[t]),i.insertBefore(r,i.children[n])),s.animateAll(),s!==o)&&o.animateAll()},nulling:function(){Qe=null}},o(e,{pluginName:"swap",eventProperties:function(){return{swapItem:Qe}}})}tt.prototype={startIndex:null,dragStart:function(e){e=e.oldDraggableIndex,this.startIndex=e},onSpill:function(e){var t=e.dragEl,n=(e=e.putSortable,this.sortable.captureAnimationState(),e&&e.captureAnimationState(),A(this.sortable.el,this.startIndex,this.options));n?this.sortable.el.insertBefore(t,n):this.sortable.el.appendChild(t),this.sortable.animateAll(),e&&e.animateAll()},drop:Ze},o(tt,{pluginName:"revertOnSpill"}),nt.prototype={onSpill:function(e){var t=e.dragEl;(e=e.putSortable||this.sortable).captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),e.animateAll()},drop:Ze},o(nt,{pluginName:"removeOnSpill"});var ot,rt,st,at,lt,ct=[],ut=[],dt=!1,ht=!1,ft=!1;function pt(){function e(e){for(var t in this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this));e.options.supportPointer?g(document,"pointerup",this._deselectMultiDrag):(g(document,"mouseup",this._deselectMultiDrag),g(document,"touchend",this._deselectMultiDrag)),g(document,"keydown",this._checkKeyDown),g(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(t,n){var i="";ct.length&&rt===e?ct.forEach((function(e,t){i+=(t?", ":"")+e.textContent})):i=n.textContent,t.setData("Text",i)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){e=e.dragEl,st=e},delayEnded:function(){this.isMultiDrag=~ct.indexOf(st)},setupClone:function(e){var t=e.sortable;e=e.cancel;if(this.isMultiDrag){for(var n=0;n<ct.length;n++)ut.push(D(ct[n])),ut[n].sortableIndex=ct[n].sortableIndex,ut[n].draggable=!1,ut[n].style["will-change"]="",x(ut[n],this.options.selectedClass,!1),ct[n]===st&&x(ut[n],this.options.chosenClass,!1);t._hideClone(),e()}},clone:function(e){var t=e.sortable,n=e.rootEl,i=e.dispatchSortableEvent;e=e.cancel;this.isMultiDrag&&!this.options.removeCloneOnHide&&ct.length&&rt===t&&(gt(!0,n),i("clone"),e())},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl;e=e.cancel;this.isMultiDrag&&(gt(!1,n),ut.forEach((function(e){k(e,"display","")})),t(),lt=!1,e())},hideClone:function(e){var t=this,n=(e.sortable,e.cloneNowHidden);e=e.cancel;this.isMultiDrag&&(ut.forEach((function(e){k(e,"display","none"),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)})),n(),lt=!0,e())},dragStartGlobal:function(e){e.sortable,!this.isMultiDrag&&rt&&rt.multiDrag._deselectMultiDrag(),ct.forEach((function(e){e.sortableIndex=L(e)})),ct=ct.sort((function(e,t){return e.sortableIndex-t.sortableIndex})),ft=!0},dragStarted:function(e){var t,n=this;e=e.sortable;this.isMultiDrag&&(this.options.sort&&(e.captureAnimationState(),this.options.animation)&&(ct.forEach((function(e){e!==st&&k(e,"position","absolute")})),t=E(st,!1,!0,!0),ct.forEach((function(e){e!==st&&P(e,t)})),dt=ht=!0),e.animateAll((function(){dt=ht=!1,n.options.animation&&ct.forEach((function(e){F(e)})),n.options.sort&&mt()})))},dragOver:function(e){var t=e.target,n=e.completed;e=e.cancel;ht&&~ct.indexOf(t)&&(n(!1),e())},revert:function(e){var t,n,i=e.fromSortable,o=e.rootEl,r=e.sortable,s=e.dragRect;1<ct.length&&(ct.forEach((function(e){r.addAnimationState({target:e,rect:ht?E(e):s}),F(e),e.fromRect=s,i.removeAnimationState(e)})),ht=!1,t=!this.options.removeCloneOnHide,n=o,ct.forEach((function(e,i){(i=n.children[e.sortableIndex+(t?Number(i):0)])?n.insertBefore(e,i):n.appendChild(e)})))},dragOverCompleted:function(e){var t,n=e.sortable,i=e.isOwner,o=e.insertion,r=e.activeSortable,s=e.parentEl,a=(e=e.putSortable,this.options);o&&(i&&r._hideClone(),dt=!1,a.animation&&1<ct.length&&(ht||!i&&!r.options.sort&&!e)&&(t=E(st,!1,!0,!0),ct.forEach((function(e){e!==st&&(P(e,t),s.appendChild(e))})),ht=!0),i||(ht||mt(),1<ct.length?(o=lt,r._showClone(n),r.options.animation&&!lt&&o&&ut.forEach((function(e){r.addAnimationState({target:e,rect:at}),e.fromRect=at,e.thisAnimationDuration=null}))):r._showClone(n)))},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner;e=e.activeSortable;ct.forEach((function(e){e.thisAnimationDuration=null})),e.options.animation&&!n&&e.multiDrag.isMultiDrag&&(at=o({},t),n=_(st,!0),at.top-=n.f,at.left-=n.e)},dragOverAnimationComplete:function(){ht&&(ht=!1,mt())},drop:function(e){var t=e.originalEvent,n=e.rootEl,i=e.parentEl,o=e.sortable,r=e.dispatchSortableEvent,s=e.oldIndex,a=(e=e.putSortable)||this.sortable;if(t){var l,c,u,d=this.options,h=i.children;if(!ft)if(d.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),x(st,d.selectedClass,!~ct.indexOf(st)),~ct.indexOf(st))ct.splice(ct.indexOf(st),1),ot=null,z({sortable:o,rootEl:n,name:"deselect",targetEl:st,originalEvt:t});else{if(ct.push(st),z({sortable:o,rootEl:n,name:"select",targetEl:st,originalEvt:t}),t.shiftKey&&ot&&o.el.contains(ot)){var f=L(ot),p=L(st);if(~f&&~p&&f!==p)for(var g,m=f<p?(g=f,p):(g=p,f+1);g<m;g++)~ct.indexOf(h[g])||(x(h[g],d.selectedClass,!0),ct.push(h[g]),z({sortable:o,rootEl:n,name:"select",targetEl:h[g],originalEvt:t}))}else ot=st;rt=a}ft&&this.isMultiDrag&&((i[q].options.sort||i!==n)&&1<ct.length&&(l=E(st),c=L(st,":not(."+this.options.selectedClass+")"),!dt&&d.animation&&(st.thisAnimationDuration=null),a.captureAnimationState(),dt||(d.animation&&(st.fromRect=l,ct.forEach((function(e){var t;e.thisAnimationDuration=null,e!==st&&(t=ht?E(e):l,e.fromRect=t,a.addAnimationState({target:e,rect:t}))}))),mt(),ct.forEach((function(e){h[c]?i.insertBefore(e,h[c]):i.appendChild(e),c++})),s===L(st)&&(u=!1,ct.forEach((function(e){e.sortableIndex!==L(e)&&(u=!0)})),u)&&r("update")),ct.forEach((function(e){F(e)})),a.animateAll()),rt=a),(n===i||e&&"clone"!==e.lastPutMode)&&ut.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=ft=!1,ut.length=0},destroyGlobal:function(){this._deselectMultiDrag(),m(document,"pointerup",this._deselectMultiDrag),m(document,"mouseup",this._deselectMultiDrag),m(document,"touchend",this._deselectMultiDrag),m(document,"keydown",this._checkKeyDown),m(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(void 0!==ft&&ft||rt!==this.sortable||e&&b(e.target,this.options.draggable,this.sortable.el,!1)||e&&0!==e.button))for(;ct.length;){var t=ct[0];x(t,this.options.selectedClass,!1),ct.shift(),z({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvt:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},o(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[q];t&&t.options.multiDrag&&!~ct.indexOf(e)&&(rt&&rt!==t&&(rt.multiDrag._deselectMultiDrag(),rt=t),x(e,t.options.selectedClass,!0),ct.push(e))},deselect:function(e){var t=e.parentNode[q],n=ct.indexOf(e);t&&t.options.multiDrag&&~n&&(x(e,t.options.selectedClass,!1),ct.splice(n,1))}},eventProperties:function(){var e=this,t=[],n=[];return ct.forEach((function(i){var o;t.push({multiDragElement:i,index:i.sortableIndex}),o=ht&&i!==st?-1:ht?L(i,":not(."+e.options.selectedClass+")"):L(i),n.push({multiDragElement:i,index:o})})),{items:a(ct),clones:[].concat(ut),oldIndicies:t,newIndicies:n}},optionListeners:{multiDragKey:function(e){return"ctrl"===(e=e.toLowerCase())?e="Control":1<e.length&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function gt(e,t){ut.forEach((function(n,i){(i=t.children[n.sortableIndex+(e?Number(i):0)])?t.insertBefore(n,i):t.appendChild(n)}))}function mt(){ct.forEach((function(e){e!==st&&e.parentNode&&e.parentNode.removeChild(e)}))}De.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){e=e.originalEvent,this.sortable.nativeDraggable?g(document,"dragover",this._handleAutoScroll):this.options.supportPointer?g(document,"pointermove",this._handleFallbackAutoScroll):e.touches?g(document,"touchmove",this._handleFallbackAutoScroll):g(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){e=e.originalEvent,this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?m(document,"dragover",this._handleAutoScroll):(m(document,"pointermove",this._handleFallbackAutoScroll),m(document,"touchmove",this._handleFallbackAutoScroll),m(document,"mousemove",this._handleFallbackAutoScroll)),Je(),Xe(),clearTimeout(w),w=void 0},nulling:function(){Ve=ze=We=Ye=Ge=He=Ue=null,Ke.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n,i=this,o=(e.touches?e.touches[0]:e).clientX,r=(e.touches?e.touches[0]:e).clientY,s=document.elementFromPoint(o,r);Ve=e,t||u||c||h?(et(e,this.options,s,t),n=R(s,!0),!Ye||Ge&&o===He&&r===Ue||(Ge&&Je(),Ge=setInterval((function(){var s=R(document.elementFromPoint(o,r),!0);s!==n&&(n=s,Xe()),et(e,i.options,s,t)}),10),He=o,Ue=r)):this.options.bubbleScroll&&R(s,!0)!==S()?et(e,this.options,R(s,!1),!1):Xe()}},o(e,{pluginName:"scroll",initializeByDefault:!0})}),De.mount(nt,tt),t.default=De},function(e,t,n){var i=n(151);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("39fbe5c9",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,'.remoteApis[data-v-0a2d5ca5]{width:100%;margin-bottom:6px}.remoteApis/deep/.el-input--prefix .el-input__inner[data-v-0a2d5ca5]{padding-left:85px}.remoteApis/deep/.el-input__prefix[data-v-0a2d5ca5]{left:0;width:75px;color:#999}[data-v-0a2d5ca5].el-form-item__label{width:100%}.el-dialog__body[data-v-0a2d5ca5]{padding:20px}.eventsSetting[data-v-0a2d5ca5]{height:100%;display:flex;border:1px solid #eee}.eventsSetting .list[data-v-0a2d5ca5]{width:270px;min-height:430px;overflow-y:overlay;border-right:1px solid #eee}.eventsSetting .list .list-header[data-v-0a2d5ca5]{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;padding:5px;line-height:30px;border-bottom:1px solid #eee;background:#f2f6fc}.eventsSetting .list .list-item[data-v-0a2d5ca5]{display:flex;margin:5px;padding:10px;border-radius:3px;border:1px solid #dcdfe6;transition:.25s}.eventsSetting .list .list-item .list-item-title[data-v-0a2d5ca5]{color:var(--th-green)}.eventsSetting .list .list-item .list-item-value[data-v-0a2d5ca5]{flex:1;padding:0 5px}.eventsSetting .list .list-item i[data-v-0a2d5ca5]{cursor:pointer}.eventsSetting .list .list-item[data-v-0a2d5ca5]:hover{background-color:#f2f6fc}.eventsSetting .detail[data-v-0a2d5ca5]{flex:1;padding:10px}.eventsSetting .detail>div[data-v-0a2d5ca5]:first-child{position:relative;display:flex;align-items:center;margin-bottom:20px;padding-left:10px}.eventsSetting .detail>div[data-v-0a2d5ca5]:first-child.el-input{flex:1;margin-left:10px}.eventsSetting .detail>div[data-v-0a2d5ca5]:first-child::after{content:"*";position:absolute;left:0;color:red}.eventsSetting .detail>div[data-v-0a2d5ca5]:nth-child(2){height:calc(100% - 48px)}.eventsSetting .detail>div:nth-child(2)>div[data-v-0a2d5ca5]:first-child{margin-bottom:10px;color:var(--th-blue)}.eventsSetting .detail>div:nth-child(2)>div[data-v-0a2d5ca5]:nth-child(3){margin-top:10px;color:var(--th-blue)}.selectableRange[data-v-0a2d5ca5]{width:100%}.selectableRange/deep/.el-range-separator[data-v-0a2d5ca5]{width:20px}.functions span[data-v-0a2d5ca5]{margin:0 5px}',""])},function(e,t,n){var i={"./alliance":38,"./alliance.vue":38,"./blank":49,"./blank.vue":49,"./button":50,"./button.vue":50,"./cascader":51,"./cascader.vue":51,"./cell":52,"./cell.vue":52,"./checkbox":53,"./checkbox.vue":53,"./color":54,"./color.vue":54,"./date":55,"./date.vue":55,"./divider":56,"./divider.vue":56,"./editor":57,"./editor.vue":57,"./filler":58,"./filler.vue":58,"./grid":59,"./grid.vue":59,"./image":60,"./image.vue":60,"./input":61,"./input.vue":61,"./number":62,"./number.vue":62,"./radio":63,"./radio.vue":63,"./rate":64,"./rate.vue":64,"./select":65,"./select.vue":65,"./slider":66,"./slider.vue":66,"./switch":67,"./switch.vue":67,"./table":68,"./table.vue":68,"./table_h5":69,"./table_h5.vue":69,"./tabs":70,"./tabs.vue":70,"./text":71,"./text.vue":71,"./textarea":72,"./textarea.vue":72,"./time":73,"./time.vue":73,"./upload":74,"./upload.vue":74};function o(e){return e=r(e),n(e)}function r(e){if(n.o(i,e))return i[e];throw(e=new Error("Cannot find module '"+e+"'")).code="MODULE_NOT_FOUND",e}o.keys=function(){return Object.keys(i)},o.resolve=r,(e.exports=o).id=152},function(e,t,n){var i=n(154);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("9860f7c4",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(156);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("833d62ac",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(158);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("59cd657c",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(160);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("dc2dc4ec",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(162);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("6c96398c",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(164);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("3c18ffbe",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(166);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("1276b322",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(168);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("771f523e",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(170);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("09607ec0",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(172);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("d0158bb4",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(174);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("acfa875c",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(176);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("49c76cbe",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(178);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("56becc5e",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(180);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("42b9a258",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(182);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("a014ae84",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(184);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("75be6b06",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(186);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("daa0e184",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(188);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("070aacf0",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(190);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("22a0afae",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(192);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("6be41444",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(194);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("2f426afc",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(196);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("6e33d6c2",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(198);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("41b51160",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(200);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("2a094a3a",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(202);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("637886ea",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,".selectableRange[data-v-21088a29]{width:100%}.selectableRange/deep/.el-range-separator[data-v-21088a29]{width:20px}",""])},function(e,t,n){var i=n(204);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("467063c8",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){"use strict";n.r(t);var i=n(7),o=(i=n.n(i),n(32));n=n.n(o),o={insert:"head",singleton:!1};i()(n.a,o),t.default=n.a.locals||{}},function(e,t,n){"use strict";n.r(t);var i=n(7),o=(i=n.n(i),n(33));n=n.n(o),o={insert:"head",singleton:!1};i()(n.a,o),t.default=n.a.locals||{}},function(e,t,n){var i={"./alliance":75,"./alliance.vue":75,"./blank":76,"./blank.vue":76,"./button":77,"./button.vue":77,"./cascader":78,"./cascader.vue":78,"./cell":79,"./cell.vue":79,"./checkbox":80,"./checkbox.vue":80,"./color":81,"./color.vue":81,"./date":82,"./date.vue":82,"./divider":83,"./divider.vue":83,"./editor":84,"./editor.vue":84,"./filler":85,"./filler.vue":85,"./grid":86,"./grid.vue":86,"./image":87,"./image.vue":87,"./input":88,"./input.vue":88,"./login":89,"./login.vue":89,"./number":90,"./number.vue":90,"./radio":91,"./radio.vue":91,"./rate":92,"./rate.vue":92,"./select":93,"./select.vue":93,"./slider":94,"./slider.vue":94,"./switch":95,"./switch.vue":95,"./table":96,"./table.vue":96,"./table_h5":97,"./table_h5.vue":97,"./tabs":98,"./tabs.vue":98,"./text":99,"./text.vue":99,"./textarea":100,"./textarea.vue":100,"./time":101,"./time.vue":101,"./upload":102,"./upload.vue":102};function o(e){return e=r(e),n(e)}function r(e){if(n.o(i,e))return i[e];throw(e=new Error("Cannot find module '"+e+"'")).code="MODULE_NOT_FOUND",e}o.keys=function(){return Object.keys(i)},o.resolve=r,(e.exports=o).id=207},function(e,t,n){"use strict";n.r(t);var i=n(7),o=(i=n.n(i),n(34));n=n.n(o),o={insert:"head",singleton:!1};i()(n.a,o),t.default=n.a.locals||{}},function(e,t,n){var i=n(210);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("bf5978a6",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(212);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("3b90650a",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(214);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("063aced3",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(216);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("d882eeca",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(218);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("7dd3c85d",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(220);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("c16a60e6",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(222);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("f51dfd9a",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(224);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("4bfe84cd",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(226);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("05a35b9e",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){"use strict";t.byteLength=function(e){return 3*((e=c(e))[0]+(e=e[1]))/4-e},t.toByteArray=function(e){var t,n,i=(s=c(e))[0],s=s[1],a=new r(function(e,t){return 3*(e+t)/4-t}(i,s)),l=0,u=0<s?i-4:i;for(n=0;n<u;n+=4)t=o[e.charCodeAt(n)]<<18|o[e.charCodeAt(n+1)]<<12|o[e.charCodeAt(n+2)]<<6|o[e.charCodeAt(n+3)],a[l++]=t>>16&255,a[l++]=t>>8&255,a[l++]=255&t;return 2===s&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,a[l++]=255&t),1===s&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,a[l++]=t>>8&255,a[l++]=255&t),a},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,r=[],s=0,a=n-o;s<a;s+=16383)r.push(function(e,t,n){for(var o,r=[],s=t;s<n;s+=3)o=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),r.push(function(e){return i[e>>18&63]+i[e>>12&63]+i[e>>6&63]+i[63&e]}(o));return r.join("")}(e,s,a<s+16383?a:s+16383));return 1==o?(t=e[n-1],r.push(i[t>>2]+i[t<<4&63]+"==")):2==o&&(t=(e[n-2]<<8)+e[n-1],r.push(i[t>>10]+i[t>>4&63]+i[t<<2&63]+"=")),r.join("")};for(var i=[],o=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,l=s.length;a<l;++a)i[a]=s[a],o[s.charCodeAt(a)]=a;function c(e){var t=e.length;if(0<t%4)throw new Error("Invalid string. Length must be a multiple of 4");return t=(e=-1===(e=e.indexOf("="))?t:e)===t?0:4-e%4,[e,t]}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,t){
84
84
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
85
- t.read=function(e,t,n,i,o){var r,s,a=8*o-i-1,l=(1<<a)-1,c=l>>1,u=-7,d=n?o-1:0,h=n?-1:1;o=e[t+d];for(d+=h,r=o&(1<<-u)-1,o>>=-u,u+=a;0<u;r=256*r+e[t+d],d+=h,u-=8);for(s=r&(1<<-u)-1,r>>=-u,u+=i;0<u;s=256*s+e[t+d],d+=h,u-=8);if(0===r)r=1-c;else{if(r===l)return s?NaN:1/0*(o?-1:1);s+=Math.pow(2,i),r-=c}return(o?-1:1)*s*Math.pow(2,r-i)},t.write=function(e,t,n,i,o,r){var s,a,l=8*r-o-1,c=(1<<l)-1,u=c>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=i?0:r-1,f=i?1:-1;r=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(i=Math.pow(2,-s))<1&&(s--,i*=2),2<=(t+=1<=s+u?d/i:d*Math.pow(2,1-u))*i&&(s++,i/=2),c<=s+u?(a=0,s=c):1<=s+u?(a=(t*i-1)*Math.pow(2,o),s+=u):(a=t*Math.pow(2,u-1)*Math.pow(2,o),s=0));8<=o;e[n+h]=255&a,h+=f,a/=256,o-=8);for(s=s<<o|a,l+=o;0<l;e[n+h]=255&s,h+=f,s/=256,l-=8);e[n+h-f]|=128*r}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){var i=n(231);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("1dc7b077",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(233);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("435e9063",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(235);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("4be95e8d",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(237);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("30099326",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(239);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("509c544d",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(241);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("17f3fae9",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(243);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("599f1ae6",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(245);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("44b9fd97",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(247);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("1361788f",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(249);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("10658819",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(251);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("2b1bc6ff",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(253);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("24d60eed",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(255);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("9e6f17da",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(257);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("47844e5a",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(259);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("46586331",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(261);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("430f9acb",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(263);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("460b1e71",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(265);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("0b860a59",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){e.exports=n.p+"theme-chalk/images/notData.png"},function(e,t,n){var i=n(268);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("4dcf9f51",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,".generateForm[data-v-f384d7c4]{margin:0 auto}.generateForm/deep/.widget-form-list-table>.el-form-item__content .el-form-item__label[data-v-f384d7c4]{display:none}.generateForm/deep/.widget-form-list-table>.el-form-item__content .el-form-item__content[data-v-f384d7c4]{margin-left:0!important}.generateForm .form-hideLabel .el-form-item__label[data-v-f384d7c4]{display:none}.generateForm .form-hideLabel .el-form-item__content[data-v-f384d7c4]{margin-left:0!important}.generateForm .widget-form-list-filler[data-v-f384d7c4],.generateForm .widget-form-list-image[data-v-f384d7c4]{margin-bottom:0!important}.generateForm .tableH5 .tableH5-item>div[data-v-f384d7c4]{display:flex}.generateForm .tableH5 .tableH5-item>div .actions[data-v-f384d7c4]{align-items:center;justify-content:right}",""])},function(e,t,n){"use strict";var i=n(6),o=n(40),r=n(270),s=n(47),a=function e(t){var n=new r(t),a=o(r.prototype.request,n);return i.extend(a,r.prototype,n),i.extend(a,n),a.create=function(n){return e(s(t,n))},a}(n(27));a.Axios=r,a.CanceledError=n(21),a.CancelToken=n(284),a.isCancel=n(46),a.VERSION=n(48).version,a.toFormData=n(43),a.AxiosError=n(19),a.Cancel=a.CanceledError,a.all=function(e){return Promise.all(e)},a.spread=n(285),a.isAxiosError=n(286),e.exports=a,e.exports.default=a},function(e,t,n){"use strict";var i=n(6),o=n(41),r=n(271),s=n(272),a=n(47),l=n(45),c=n(283),u=c.validators;function d(e){this.defaults=e,this.interceptors={request:new r,response:new r}}d.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=a(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n,i=(void 0!==(e=t.transitional)&&c.assertOptions(e,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1),[]),o=!0,r=(this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,i.unshift(e.fulfilled,e.rejected))})),[]);if(this.interceptors.response.forEach((function(e){r.push(e.fulfilled,e.rejected)})),o){for(var l=t;i.length;){var d=i.shift(),h=i.shift();try{l=d(l)}catch(e){h(e);break}}try{n=s(l)}catch(e){return Promise.reject(e)}for(;r.length;)n=n.then(r.shift(),r.shift())}else{var f=[s,void 0];for(Array.prototype.unshift.apply(f,i),f=f.concat(r),n=Promise.resolve(t);f.length;)n=n.then(f.shift(),f.shift())}return n},d.prototype.getUri=function(e){e=a(this.defaults,e);var t=l(e.baseURL,e.url);return o(t,e.params,e.paramsSerializer)},i.forEach(["delete","get","head","options"],(function(e){d.prototype[e]=function(t,n){return this.request(a(n||{},{method:e,url:t,data:(n||{}).data}))}})),i.forEach(["post","put","patch"],(function(e){function t(t){return function(n,i,o){return this.request(a(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}d.prototype[e]=t(),d.prototype[e+"Form"]=t(!0)})),e.exports=d},function(e,t,n){"use strict";var i=n(6);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){i.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},function(e,t,n){"use strict";var i=n(6),o=n(273),r=n(46),s=n(27),a=n(21);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new a}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=i.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),i.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||s.adapter)(e).then((function(t){return l(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return r(t)||(l(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var i=n(6),o=n(27);e.exports=function(e,t,n){var r=this||o;return i.forEach(n,(function(n){e=n.call(r,e,t)})),e}},function(e,t,n){"use strict";var i=n(6);e.exports=function(e,t){i.forEach(e,(function(n,i){i!==t&&i.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[i])}))}},function(e,t,n){"use strict";var i=n(19);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new i("Request failed with status code "+n.status,[i.ERR_BAD_REQUEST,i.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}},function(e,t,n){"use strict";var i=n(6);e.exports=i.isStandardBrowserEnv()?{write:function(e,t,n,o,r,s){var a=[];a.push(e+"="+encodeURIComponent(t)),i.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),i.isString(o)&&a.push("path="+o),i.isString(r)&&a.push("domain="+r),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){return(e=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)")))?decodeURIComponent(e[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var i=n(6),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"];e.exports=function(e){var t,n,r={};return e&&i.forEach(e.split("\n"),(function(e){n=e.indexOf(":"),t=i.trim(e.substr(0,n)).toLowerCase(),n=i.trim(e.substr(n+1)),!t||r[t]&&0<=o.indexOf(t)||(r[t]="set-cookie"===t?(r[t]||[]).concat([n]):r[t]?r[t]+", "+n:n)})),r}},function(e,t,n){"use strict";var i,o,r,s=n(6);function a(e){return o&&(r.setAttribute("href",e),e=r.href),r.setAttribute("href",e),{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}}e.exports=s.isStandardBrowserEnv()?(o=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),i=a(window.location.href),function(e){return(e=s.isString(e)?a(e):e).protocol===i.protocol&&e.host===i.host}):function(){return!0}},function(e,t,n){"use strict";e.exports=function(e){return(e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e))&&e[1]||""}},function(e,t){e.exports=null},function(e,t,n){"use strict";var i=n(48).version,o=n(19),r={},s=(["object","boolean","number","function","string","symbol"].forEach((function(e,t){r[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}})),{});r.transitional=function(e,t,n){function r(e,t){return"[Axios v"+i+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,i,a){if(!1===e)throw new o(r(i," has been removed"+(t?" in "+t:"")),o.ERR_DEPRECATED);return t&&!s[i]&&(s[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,a)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new o("options must be an object",o.ERR_BAD_OPTION_VALUE);for(var i=Object.keys(e),r=i.length;0<r--;){var s=i[r];if(a=t[s]){var a,l=e[s];if(!0!==(a=void 0===l||a(l,s,e)))throw new o("option "+s+" must be "+a,o.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new o("Unknown option "+s,o.ERR_BAD_OPTION)}},validators:r}},function(e,t,n){"use strict";var i=n(21);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");this.promise=new Promise((function(e){t=e}));var t,n=this;this.promise.then((function(e){if(n._listeners){for(var t=n._listeners.length,i=0;i<t;i++)n._listeners[i](e);n._listeners=null}})),this.promise.then=function(e){var t;return(e=new Promise((function(e){n.subscribe(e),t=e})).then(e)).cancel=function(){n.unsubscribe(t)},e},e((function(e){n.reason||(n.reason=new i(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},o.prototype.unsubscribe=function(e){this._listeners&&-1!==(e=this._listeners.indexOf(e))&&this._listeners.splice(e,1)},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";var i=n(6);e.exports=function(e){return i.isObject(e)&&!0===e.isAxiosError}},function(e,t,n){"use strict";n.r(t);var i=n(12),o=(i.a.install=function(e){e.component(i.a.name,i.a)},i.a),r=n(18),s=(r.a.install=function(e){e.component(r.a.name,r.a)},r.a),a={name:"TableColumn",props:{options:{type:Array,default:function(){return[]}}}},l=n(0);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}a={name:"ThTable",components:{TableColumn:Object(l.a)(a,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._l(e.options,(function(t,i){return[t.hide?e._e():[t.type?n("el-table-column",{key:i,attrs:{type:t.type,label:t.label,width:"50"}}):t.children?n("el-table-column",{key:i,attrs:{prop:t.prop,label:t.label,width:t.width,align:t.align,fixed:t.fixed,sortable:t.sortable,"sort-method":t.sortMethod,"show-overflow-tooltip":t.showOverflowTooltip}},[n("TableColumn",{key:i,attrs:{options:t.children}})],1):n("el-table-column",{key:i,attrs:{prop:t.prop,label:t.label,width:t.width,align:t.align,fixed:t.fixed,sortable:t.sortable,"sort-method":t.sortMethod,"show-overflow-tooltip":t.showOverflowTooltip},scopedSlots:e._u([{key:"default",fn:function(i){return[t.slot?e._t("slot",null,{scope:i,option:t}):n("span",[e._v(e._s(i.row[t.prop]))])]}}],null,!0)})]]}))],2)}),[],!1,(function(e){n(115)}),null,null).exports},props:{data:{type:Array,default:function(){return[]}},options:{type:Array,default:function(){return[]}},dblclick:{type:Function,default:function(){return null}},stripe:{type:Boolean,default:function(){return!1}},treeProps:{type:Object,default:function(){return{}}},pageInfo:{type:Object,default:function(){return{}}},loading:{type:Boolean,default:function(){return!1}},height:String|Number,rowKey:String|Function,showPage:{type:Boolean,default:function(){return!0}},emptyText:{type:String,default:function(){return"暂无数据"}},loadingText:{type:String,default:function(){return"加载中"}},border:{type:Boolean,default:function(){return!1}},highlightCurrentRow:{type:Boolean,default:function(){return!1}}},data:function(){return{}},methods:{handleSelectionChange:function(e){e&&this.$emit("selection-change",e)},handleSingleSelect:function(e,t){e&&this.$emit("current-change",e)},handleSizeChange:function(e){this.pageInfo.pageSize=e,this.$emit("page-number-change",this.pageInfo.currentPage,this.pageInfo.pageSize)},handleCurrentChange:function(e){this.pageInfo.currentPage=e,this.$emit("page-number-change",this.pageInfo.currentPage,this.pageInfo.pageSize)},handlePrevClick:function(){1!==this.pageInfo.currentPage&&(--this.pageInfo.currentPage,this.$emit("page-number-change",this.pageInfo.currentPage,this.pageInfo.pageSize))},handleNextClick:function(){this.pageInfo.currentPage!==this.pageInfo.pageCount&&(this.pageInfo.currentPage+=1,this.$emit("page-number-change",this.pageInfo.currentPage,this.pageInfo.pageSize))},getTable:function(){return this.$refs.th_table},handleFormatTime:function(e,t){var n;return 0===arguments.length?null:(t=t||"yyyy-MM-dd HH:mm:ss",null==e||"null"===e?"":(n={yyyy:(e="object"===c(e)?e:("number"==typeof(e="string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e):e)&&10===e.toString().length&&(e*=1e3),new Date(e))).getFullYear(),MM:e.getMonth()+1,dd:e.getDate(),HH:e.getHours(),mm:e.getMinutes(),ss:e.getSeconds(),a:e.getDay()},t.replace(/(yyyy|MM|dd|HH|mm|ss|a)/g,(function(e,t){var i=n[t];return"a"===t?["日","一","二","三","四","五","六"][i]:(i=0<e.length&&i<10?"0"+i:i)||0}))))},objectSpanMethod:function(e){this.$emit("span-method",e)}}};var u=Object(l.a)(a,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"th-table"},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"th_table",attrs:{height:e.height,data:e.data,"row-key":e.rowKey,stripe:e.stripe,border:e.border,"highlight-current-row":e.highlightCurrentRow,"tree-props":e.treeProps,"span-method":e.objectSpanMethod},on:{"current-change":e.handleSingleSelect,"row-dblclick":e.dblclick,"selection-change":e.handleSelectionChange},scopedSlots:e._u([{key:"empty",fn:function(){return[n("div",[e._v("\n "+e._s(e.loading?e.loadingText||"加载中":e.emptyText||"暂无数据")+"\n ")])]},proxy:!0}])},[e._l(e.options,(function(t,i){return[t.hide?e._e():[t.type?n("el-table-column",{key:i,attrs:{type:t.type,label:t.label,width:"50"}}):t.children?n("el-table-column",{key:i,attrs:{prop:t.prop,label:t.label,width:t.width,align:t.align||"left",fixed:t.fixed||null,sortable:t.sortable,"sort-method":t.sortMethod,"show-overflow-tooltip":t.showOverflowTooltip}},[n("table-column",{attrs:{options:t.children}})],1):n("el-table-column",{key:i,attrs:{prop:t.prop,label:t.label,width:t.width,align:t.align||"left",fixed:t.fixed||null,sortable:t.sortable,"sort-method":t.sortMethod,"show-overflow-tooltip":t.showOverflowTooltip},scopedSlots:e._u([{key:"default",fn:function(i){return[t.slot?e._t(t.slot,null,{scope:i,option:t}):t.formatTime?n("span",[e._v("\n "+e._s(e.handleFormatTime(i.row[t.alias||t.prop],t.format))+"\n ")]):t.format?n("span",[e._v("\n "+e._s(t.format(i.row))+"\n ")]):t.alias?n("span",[e._v(e._s(i.row[t.alias]))]):n("span",[e._v(e._s(i.row[t.prop]))])]}}],null,!0)})]]}))],2),e._v(" "),0<Object.keys(e.pageInfo).length&&e.showPage?n("div",{staticClass:"pagination"},[n("el-pagination",{attrs:{"current-page":e.pageInfo.currentPage,"page-sizes":e.pageInfo.sizes,"page-size":e.pageInfo.pageSize,layout:"total, prev, pager, next, sizes",total:e.pageInfo.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"prev-click":e.handlePrevClick,"next-click":e.handleNextClick}})],1):e._e()],1)}),[],!1,(function(e){n(113)}),"data-v-2a65ee46",null).exports,d=(a=(u.install=function(e){e.component(u.name,u)},u),{name:"ThTableAction",props:{actions:{type:Array,default:function(){return[]}},scope:{type:Object|String},permission:{type:Object,required:!1},msg:{type:String,default:"确定删除本条数据吗?"}},data:function(){return{pop:!1,loadingDel:!1}},computed:{btnDisabled:function(){var e=this;return function(t){return"boolean"==typeof t.disabled?t.disabled:"function"==typeof t.disabled?t.disabled(e.scope):void 0}},btnHide:function(){var e=this;return function(t){return"boolean"==typeof t.hide?t.hide:"function"==typeof t.hide?t.hide(e.scope):void 0}}},methods:{handleCancel:function(){this.loadingDel=!1,this.pop=!1},handleClick:function(e,t){this.$emit("on-click",e,t)},handleDelete:function(e){var t=this;this.loadingDel=!0,this.handleClick(e,(function(e){e?t.handleCancel():t.loadingDel=!1}))},handleMore:function(e,t,n){for(var i=0;i<n.children.length;i++){var o=n.children[i];if(o.act===e){this.handleClick(o);break}}}}});var h=Object(l.a)(d,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"th-table-action",on:{click:function(e){e.stopPropagation()}}},[e._l(e.actions,(function(t,i){return["delete"!==t.act||e.btnHide(t)?"more"!==t.act||e.btnHide(t)?e.btnHide(t)?e._e():n("el-button",{key:i,style:t.style,attrs:{type:t.type,icon:t.icon,disabled:e.btnDisabled(t)},on:{click:function(n){return e.handleClick(t)}}},[e._v(e._s(t.name))]):n("el-dropdown",{key:i,attrs:{trigger:t.trigger||"click",placement:t.placement||"bottom-end",disabled:e.btnDisabled(t)},on:{command:function(n){e.handleMore(n,i,t)}}},[n("el-button",{style:t.style,attrs:{disabled:e.loadingDel||e.btnDisabled(t),type:t.type,icon:t.icon}},[e._v(e._s(t.name))]),e._v(" "),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(t.children,(function(t,i){return n("el-dropdown-item",{key:i,style:t.style,attrs:{command:t.act,icon:t.icon,disabled:t.disabled}},[e._v(e._s(t.name))])})),1)],1):n("el-popover",{key:i,attrs:{placement:"top",width:"180",trigger:"manual"},model:{value:e.pop,callback:function(t){e.pop=t},expression:"pop"}},[n("p",[e._v(e._s(t.delmsg||e.msg))]),e._v(" "),n("div",{staticStyle:{"text-align":"right",margin:"0"}},[n("el-button",{attrs:{type:"text",disabled:e.loadingDel},on:{click:e.handleCancel}},[e._v("取消")]),e._v(" "),n("el-button",{attrs:{type:"text",loading:e.loadingDel},on:{click:function(n){return e.handleDelete(t)}}},[e._v("确定")])],1),e._v(" "),n("el-button",{style:t.style,attrs:{slot:"reference",disabled:e.loadingDel||e.btnDisabled(t),type:t.type,icon:t.icon},on:{click:function(t){e.pop=!0}},slot:"reference"},[e._v(e._s(t.name))])],1)]}))],2)}),[],!1,(function(e){n(117)}),null,null).exports,f=(d=(h.install=function(e){e.component(h.name,h)},h),{name:"ThTableSearch",props:{options:{type:Array,default:function(){return[]}}},data:function(){return{params:{},datePickerTypes:["year","month","date","dates","week","datetime","datetimerange","daterange","monthrange"]}},watch:{options:{handler:function(e,t){var n=this;e&&e.length&&e.map((function(e){n.$set(n.params,e.options.prop,e.options.defaultValue)}))},deep:!0,immediate:!0}},methods:{doSearch:function(){this.$emit("on-search",this.params)},doReset:function(){this.$emit("on-reset",this.params)}}});var p=Object(l.a)(f,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"th-table-search"},[e._l(e.options,(function(t,i){return n("div",{key:i,staticClass:"th-table-search-item"},[n("span",{staticClass:"th-table-search-item-title"},[e._v(e._s(t.options.name)+":")]),e._v(" "),"input"===t.type?n("el-input",{style:{width:t.options.width+"px"},attrs:{placeholder:t.options.placeholder||"请输入",disabled:t.options.disabled,clearable:""},model:{value:e.params[t.options.prop],callback:function(n){e.$set(e.params,t.options.prop,n)},expression:"params[item.options.prop]"}}):e._e(),e._v(" "),"date"===t.type?n("el-date-picker",{style:{width:t.options.width+"px"},attrs:{type:t.options.dateType||"date",format:t.options.format,"value-format":t.options.valueFormat,"range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",clearable:""},model:{value:e.params[t.options.prop],callback:function(n){e.$set(e.params,t.options.prop,n)},expression:"params[item.options.prop]"}}):e._e(),e._v(" "),"select"===t.type?n("el-select",{style:{width:t.options.width+"px"},attrs:{placeholder:t.options.placeholder||"请选择",multiple:t.options.multiple,"multiple-limit":t.options.multipleLimit,filterable:t.options.filterable,disabled:t.options.disabled,clearable:""},model:{value:e.params[t.options.prop],callback:function(n){e.$set(e.params,t.options.prop,n)},expression:"params[item.options.prop]"}},[t.options.remote?e._l(t.options.options,(function(e){return n("el-option",{key:e[t.option.props.value],attrs:{label:e[t.option.props.label],value:e[t.option.props.value]}})})):e._l(t.options.options,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],2):e._e()],1)})),e._v(" "),n("el-button",{attrs:{type:"primary",icon:"el-icon-search",plain:""},on:{click:e.doSearch}},[e._v("查询")]),e._v(" "),n("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-right",plain:""},on:{click:e.doReset}},[e._v("重置")])],2)}),[],!1,(function(e){n(119)}),"data-v-03530a45",null).exports,g=(f=(p.install=function(e){e.component(p.name,p)},p),{name:"ThTableTools",props:{options:{type:Array,default:function(){return[]}},disabled:{type:Object,default:function(){return{}}}},data:function(){return{}},methods:{handleClick:function(e){this.$emit("on-click",e)}}});var m=Object(l.a)(g,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"th-tools"},e._l(e.options,(function(t,i){return n("el-button",{key:i,style:t.style,attrs:{type:t.type,icon:t.icon,disabled:t.disabled||e.disabled[t.act],loading:t.loading},on:{click:function(n){return e.handleClick(t)}}},[e._v(e._s(t.name))])})),1)}),[],!1,(function(e){n(121)}),"data-v-3d9c25f1",null).exports,v=(g=(m.install=function(e){e.component(m.name,m)},m),{name:"ThEmpty",props:{image:{type:String,default:""},imageSize:{type:Number,default:300},description:{type:String,default:"暂无数据"}},computed:{imageStyle:function(){return{width:this.imageSize?"".concat(this.imageSize,"px"):""}}}}),b=Object(l.a)(v,(function(){var e=this,t=e.$createElement;return(t=e._self._c||t)("div",{staticClass:"th-empty"},[e.image?t("img",{staticClass:"th-empty-img",style:e.imageStyle,attrs:{src:e.image,alt:""}}):e._t("image"),e._v(" "),e.$slots.description?e._t("description"):t("p",{staticClass:"th-empty-description"},[e._v(e._s(e.description))]),e._v(" "),e.$slots.default?t("div",{staticClass:"th-empty-bottom"},[e._t("default")],2):e._e()],2)}),[],!1,null,null,null).exports,w=(v=(b.install=function(e){e.component(b.name,b)},b),{name:"ThDialog",model:{prop:"visible",event:"input"},props:{visible:Boolean,loading:Boolean,title:{type:String,default:""},showAffirm:{type:Boolean,default:!0},affirmText:{type:String,default:"确 认"},showCancel:{type:Boolean,default:!0},cancelText:{type:String,default:"取 消"},showClose:{type:Boolean,default:!0},closeIcon:{type:String,default:"el-icon-close"},fullscreen:{type:Boolean,default:!1},showFullscreen:{type:Boolean,default:!0},fullscreenIcon:{type:String,default:"el-icon-full-screen"},showFooter:{type:Boolean,default:!0}},data:function(){return{formRules:{},dialogFullscreen:this.fullscreen}},watch:{fullscreen:function(e){this.dialogFullscreen=e}},methods:{handleClose:function(){this.$emit("input",!this.visible),this.$emit("on-close")},handleAffirm:function(){this.$emit("on-affirm")},handleFullscreenChange:function(){var e=this;this.dialogFullscreen=!this.dialogFullscreen,this.$nextTick((function(){e.$emit("on-fullscreen")}))}}}),y=Object(l.a)(w,(function(){var e=this,t=e.$createElement;return(t=e._self._c||t)("el-dialog",{staticClass:"th-dialog",attrs:{visible:e.visible,fullscreen:e.dialogFullscreen,"close-on-click-modal":!1,"show-close":!1,"before-close":e.handleClose},on:{"update:visible":function(t){e.visible=t}}},[t("div",{attrs:{slot:"title"},slot:"title"},[t("div",{staticClass:"th-dialog__header",attrs:{slot:"title"},slot:"title"},[t("div",{staticClass:"th-dialog__title"},[e._v(e._s(e.title))]),e._v(" "),t("div",{staticClass:"th-dialog__action"},[e.showFullscreen?t("i",{staticClass:"th-dialog__action_item",class:e.fullscreenIcon,on:{click:e.handleFullscreenChange}}):e._e(),e._v(" "),e.showClose?t("i",{staticClass:"th-dialog__action_item",class:e.closeIcon,on:{click:e.handleClose}}):e._e()])])]),e._v(" "),e._t("default"),e._v(" "),e.$slots.footer?t("template",{slot:"footer"},[e._t("footer")],2):e.showFooter?t("template",{slot:"footer"},[e.showAffirm?t("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:e.handleAffirm}},[e._v(e._s(e.affirmText))]):e._e(),e._v(" "),e.showCancel?t("el-button",{on:{click:e.handleClose}},[e._v(e._s(e.cancelText))]):e._e()],1):e._e()],2)}),[],!1,null,null,null).exports,x=(w=(y.install=function(e){e.component(y.name,y)},y),{name:"ThCard",props:{showHeader:{type:Boolean,default:!0},title:String,label:String,bodyStyle:String|Object,shadow:{type:String,default:"always"},border:Boolean},computed:{seflClass:function(){var e="".concat(this.shadow,"-shadow");return this.border?"".concat(e," th-is_border"):e}}}),k=Object(l.a)(x,(function(){var e=this,t=e.$createElement;return(t=e._self._c||t)("div",{staticClass:"th-card",class:e.seflClass},[e.showHeader?[e.$slots.header?e._t("header"):t("div",{staticClass:"th-card-header"},[e.title?t("span",[e._v(e._s(e.title))]):e._t("title"),e._v(" "),e.label?t("span",[e._v(e._s(e.label))]):e._t("label")],2)]:e._e(),e._v(" "),t("div",{staticClass:"th-card-body",style:e.bodyStyle},[e._t("default")],2)],2)}),[],!1,null,null,null).exports,_=(x=(k.install=function(e){e.component(k.name,k)},k),n(5)),C=(_.a.install=function(e){e.component(_.a.name,_.a)},_.a),S={name:"ThButton",inject:{thForm:{default:""},thFormItem:{default:""}},props:{type:{type:String,default:"default"},size:String,icon:{type:String,default:""},nativeType:{type:String,default:"button"},loading:Boolean,disabled:Boolean,plain:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean},computed:{selfClass:function(){return[this.type?"th-button-"+this.type:"",this.buttonSize?"th-button-size-"+this.buttonSize:"",{"is-disabled":this.buttonDisabled,"is-loading":this.loading,"is-plain":this.plain,"is-round":this.round,"is-circle":this.circle}]},_thFormItemSize:function(){return(this.thFormItem||{}).thFormItemSize},buttonSize:function(){return this.size||this._thFormItemSize||(this.$ELEMENT||{}).size},buttonDisabled:function(){return(this.$options.propsData.hasOwnProperty("disabled")?this:this.thForm||{}).disabled}},methods:{handleClick:function(e){this.$emit("click",e)}}},E=Object(l.a)(S,(function(){var e=this,t=e.$createElement;return(t=e._self._c||t)("button",{staticClass:"th-button",class:e.selfClass,attrs:{disabled:e.buttonDisabled||e.loading,autofocus:e.autofocus,type:e.nativeType},on:{click:e.handleClick}},[e.loading?t("i",{staticClass:"el-icon-loading"}):e._e(),e._v(" "),e.icon&&!e.loading?t("i",{class:e.icon}):e._e(),e._v(" "),e.$slots.default?t("span",[e._t("default")],2):e._e()])}),[],!1,null,null,null).exports,T=(S=(E.install=function(e){e.component(E.name,E)},E),n(13)),A=(T.a.install=function(e){e.component(T.a.name,T.a)},T.a),O=n(17),L=(O.a.install=function(e){e.component(O.a.name,O.a)},O.a),R=n(14),M=(R.a.install=function(e){e.component(R.a.name,R.a)},R.a),I=n(15),N=(I.a.install=function(e){e.component(I.a.name,I.a)},I.a),D=n(107),P=n.n(D),F=(D={name:"ElProgress",props:{type:{type:String,default:"line",validator:e=>-1<["line","circle","dashboard"].indexOf(e)},percentage:{type:Number,default:0,required:!0,validator:e=>0<=e&&e<=100},status:{type:String,validator:e=>-1<["success","exception","warning"].indexOf(e)},strokeWidth:{type:Number,default:6},strokeLinecap:{type:String,default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:[String,Array,Function],default:""},format:Function},computed:{barStyle(){var e={};return e.width=this.percentage+"%",e.backgroundColor=this.getCurrentColor(this.percentage),e},relativeStrokeWidth(){return(this.strokeWidth/this.width*100).toFixed(1)},radius(){return"circle"===this.type||"dashboard"===this.type?parseInt(50-parseFloat(this.relativeStrokeWidth)/2,10):0},trackPath(){var e=this.radius,t="dashboard"===this.type;return`\n M 50 50\n m 0 ${t?"":"-"}${e}\n a ${e} ${e} 0 1 1 0 ${t?"-":""}${2*e}\n a ${e} ${e} 0 1 1 0 ${t?"":"-"}${2*e}\n `},perimeter(){return 2*Math.PI*this.radius},rate(){return"dashboard"===this.type?.75:1},strokeDashoffset(){return-1*this.perimeter*(1-this.rate)/2+"px"},trailPathStyle(){return{strokeDasharray:`${this.perimeter*this.rate}px, ${this.perimeter}px`,strokeDashoffset:this.strokeDashoffset}},circlePathStyle(){return{strokeDasharray:`${this.perimeter*this.rate*(this.percentage/100)}px, ${this.perimeter}px`,strokeDashoffset:this.strokeDashoffset,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease"}},stroke(){let e;if(this.color)e=this.getCurrentColor(this.percentage);else switch(this.status){case"success":e="#13ce66";break;case"exception":e="#ff4949";break;case"warning":e="#e6a23c";break;default:e="#20a0ff"}return e},iconClass(){return"warning"===this.status?"el-icon-warning":"line"===this.type?"success"===this.status?"el-icon-circle-check":"el-icon-circle-close":"success"===this.status?"el-icon-check":"el-icon-close"},progressTextSize(){return"line"===this.type?12+.4*this.strokeWidth:.111111*this.width+2},content(){return"function"==typeof this.format?this.format(this.percentage)||"":this.percentage+"%"}},methods:{getCurrentColor(e){return"function"==typeof this.color?this.color(e):"string"==typeof this.color?this.color:this.getLevelColor(e)},getLevelColor(e){var t=this.getColorArray().sort((e,t)=>e.percentage-t.percentage);for(let n=0;n<t.length;n++)if(t[n].percentage>e)return t[n].color;return t[t.length-1].color},getColorArray(){var e=this.color;const t=100/e.length;return e.map((e,n)=>"string"==typeof e?{color:e,percentage:(n+1)*t}:e)}}},Object(l.a)(D,(function(){var e=this,t=e.$createElement;return(t=e._self._c||t)("div",{staticClass:"el-progress",class:["el-progress--"+e.type,e.status?"is-"+e.status:"",{"el-progress--without-text":!e.showText,"el-progress--text-inside":e.textInside}],attrs:{role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"}},["line"===e.type?t("div",{staticClass:"el-progress-bar"},[t("div",{staticClass:"el-progress-bar__outer",style:{height:e.strokeWidth+"px"}},[t("div",{staticClass:"el-progress-bar__inner",style:e.barStyle},[e.showText&&e.textInside?t("div",{staticClass:"el-progress-bar__innerText"},[e._v(e._s(e.content))]):e._e()])])]):t("div",{staticClass:"el-progress-circle",style:{height:e.width+"px",width:e.width+"px"}},[t("svg",{attrs:{viewBox:"0 0 100 100"}},[t("path",{staticClass:"el-progress-circle__track",style:e.trailPathStyle,attrs:{d:e.trackPath,stroke:"#e5e9f2","stroke-width":e.relativeStrokeWidth,fill:"none"}}),e._v(" "),t("path",{staticClass:"el-progress-circle__path",style:e.circlePathStyle,attrs:{d:e.trackPath,stroke:e.stroke,fill:"none","stroke-linecap":e.strokeLinecap,"stroke-width":e.percentage?e.relativeStrokeWidth:0}})])]),e._v(" "),e.showText&&!e.textInside?t("div",{staticClass:"el-progress__text",style:{fontSize:e.progressTextSize+"px"}},[e.status?t("i",{class:e.iconClass}):[e._v(e._s(e.content))]],2):e._e()])}),[],!1,null,null,null).exports),q={name:"ThUploadList",data:function(){return{focusing:!1}},components:{ElProgress:D=(F.install=function(e){e.component(F.name,F)},F)},props:{files:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},handlePreview:Function,listType:String},methods:{parsePercentage:function(e){return parseInt(e,10)},handleClick:function(e){this.handlePreview&&this.handlePreview(e)}}},B=Object(l.a)(q,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition-group",{class:["th-upload-list","th-upload-list--"+e.listType,{"is-disabled":e.disabled}],attrs:{tag:"ul",name:"th-list"}},e._l(e.files,(function(t){return n("li",{key:t.uid,class:["th-upload-list__item","is-"+t.status,e.focusing?"focusing":""],attrs:{tabindex:"0"},on:{keydown:function(n){if(!n.type.indexOf("key")&&e._k(n.keyCode,"delete",[8,46],n.key,["Backspace","Delete","Del"]))return null;e.disabled||e.$emit("remove",t)},focus:function(t){e.focusing=!0},blur:function(t){e.focusing=!1},click:function(t){e.focusing=!1}}},[e._t("default",(function(){return["uploading"!==t.status&&-1<["picture-card","picture"].indexOf(e.listType)?n("img",{staticClass:"th-upload-list__item-thumbnail",attrs:{src:t.url,alt:""}}):e._e(),e._v(" "),n("a",{staticClass:"th-upload-list__item-name",on:{click:function(n){return e.handleClick(t)}}},[n("i",{staticClass:"el-icon-document"}),e._v(e._s(t.name)+"\n ")]),e._v(" "),n("label",{staticClass:"th-upload-list__item-status-label"},[n("i",{class:{"el-icon-upload-success":!0,"el-icon-circle-check":"text"===e.listType,"el-icon-check":-1<["picture-card","picture"].indexOf(e.listType)}})]),e._v(" "),e.disabled?e._e():n("i",{staticClass:"el-icon-close",on:{click:function(n){return e.$emit("remove",t)}}}),e._v(" "),"uploading"===t.status?n("el-progress",{attrs:{type:"picture-card"===e.listType?"circle":"line","stroke-width":"picture-card"===e.listType?6:2,percentage:e.parsePercentage(t.percentage)}}):e._e(),e._v(" "),"picture-card"===e.listType?n("span",{staticClass:"th-upload-list__item-actions"},[e.handlePreview&&"picture-card"===e.listType?n("span",{staticClass:"th-upload-list__item-preview",on:{click:function(n){return e.handlePreview(t)}}},[n("i",{staticClass:"el-icon-zoom-in"})]):e._e(),e._v(" "),e.disabled?e._e():n("span",{staticClass:"th-upload-list__item-delete",on:{click:function(n){return e.$emit("remove",t)}}},[n("i",{staticClass:"el-icon-delete"})])]):e._e()]}),{file:t})],2)})),0)}),[],!1,null,null,null).exports;function j(){}q={name:"ThUploadDrag",props:{disabled:Boolean},inject:{uploader:{default:""}},data:function(){return{dragover:!1}},methods:{onDragover:function(){this.disabled||(this.dragover=!0)},onDrop:function(e){var t;!this.disabled&&this.uploader&&(t=this.uploader.accept,this.dragover=!1,t?this.$emit("file",[].slice.call(e.dataTransfer.files).filter((function(e){var n=e.type,i=-1<(e=e.name).indexOf(".")?".".concat(e.split(".").pop()):"",o=n.replace(/\/.*$/,"");return t.split(",").map((function(e){return e.trim()})).filter((function(e){return e})).some((function(e){return/\..+$/.test(e)?i===e:/\/\*$/.test(e)?o===e.replace(/\/\*$/,""):!!/^[^\/]+\/[^\/]+$/.test(e)&&n===e}))}))):this.$emit("file",e.dataTransfer.files))}}},q={inject:["uploader"],components:{UploadDragger:Object(l.a)(q,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"th-upload-dragger",class:{"is-dragover":e.dragover},on:{drop:function(t){return t.preventDefault(),e.onDrop.apply(null,arguments)},dragover:function(t){return t.preventDefault(),e.onDragover.apply(null,arguments)},dragleave:function(t){t.preventDefault(),e.dragover=!1}}},[e._t("default")],2)}),[],!1,null,null,null).exports},props:{type:String,action:{type:String,required:!0},name:{type:String,default:"file"},data:Object,headers:Object,withCredentials:Boolean,multiple:Boolean,accept:String,onStart:Function,onProgress:Function,onSuccess:Function,onError:Function,beforeUpload:Function,drag:Boolean,onPreview:{type:Function,default:function(){}},onRemove:{type:Function,default:function(){}},fileList:Array,autoUpload:Boolean,listType:String,httpRequest:{type:Function,default:function(e){if("undefined"!=typeof XMLHttpRequest){var t,n=new XMLHttpRequest,i=e.action,o=(n.upload&&(n.upload.onprogress=function(t){0<t.total&&(t.percent=t.loaded/t.total*100),e.onProgress(t)}),new FormData),r=(e.data&&Object.keys(e.data).forEach((function(t){o.append(t,e.data[t])})),o.append(e.filename,e.file,e.file.name),n.onerror=function(t){e.onError(t)},n.onload=function(){if(n.status<200||300<=n.status)return e.onError((t=i,r=(o=n).response?"".concat(o.response.error||o.response):o.responseText?"".concat(o.responseText):"fail to post ".concat(t," ").concat(o.status),(r=new Error(r)).status=o.status,r.method="post",r.url=t,r));var t,o,r;e.onSuccess(function(e){if(!(e=e.responseText||e.response))return e;try{return JSON.parse(e)}catch(t){return e}}(n))},n.open("post",i,!0),e.withCredentials&&"withCredentials"in n&&(n.withCredentials=!0),e.headers||{});for(t in r)r.hasOwnProperty(t)&&null!==r[t]&&n.setRequestHeader(t,r[t]);return n.send(o),n}}},disabled:Boolean,limit:Number,onExceed:Function},data:function(){return{mouseover:!1,reqs:{}}},computed:{classMatch:function(){var e={"th-upload":!0};return e["th-upload--".concat(this.listType)]=!0,e}},methods:{isImage:function(e){return-1!==e.indexOf("image")},handleChange:function(e){(e=e.target.files)&&this.uploadFiles(e)},uploadFiles:function(e){var t=this;this.limit&&this.fileList.length+e.length>this.limit?this.onExceed&&this.onExceed(e,this.fileList):(e=Array.prototype.slice.call(e),0!==(e=this.multiple?e:e.slice(0,1)).length&&e.forEach((function(e){t.onStart(e),t.autoUpload&&t.upload(e)})))},upload:function(e){var t=this;if(this.$refs.input.value=null,!this.beforeUpload)return this.post(e);var n=this.beforeUpload(e);n&&n.then?n.then((function(n){var i=Object.prototype.toString.call(n);if("[object File]"===i||"[object Blob]"===i){for(var o in"[object Blob]"===i&&(n=new File([n],e.name,{type:e.type})),e)e.hasOwnProperty(o)&&(n[o]=e[o]);t.post(n)}else t.post(e)}),(function(){t.onRemove(null,e)})):!1!==n?this.post(e):this.onRemove(null,e)},abort:function(e){var t,n=this.reqs;e?((t=e).uid&&(t=e.uid),n[t]&&n[t].abort()):Object.keys(n).forEach((function(e){n[e]&&n[e].abort(),delete n[e]}))},post:function(e){var t=this,n=e.uid,i={headers:this.headers,withCredentials:this.withCredentials,file:e,data:this.data,filename:this.name,action:this.action,onProgress:function(n){t.onProgress(n,e)},onSuccess:function(i){t.onSuccess(i,e),delete t.reqs[n]},onError:function(i){t.onError(i,e),delete t.reqs[n]}},o=this.httpRequest(i);(this.reqs[n]=o)&&o.then&&o.then(i.onSuccess,i.onError)},handleClick:function(){this.disabled||(this.$refs.input.value=null,this.$refs.input.click())},handleKeydown:function(e){e.target!==e.currentTarget||13!==e.keyCode&&32!==e.keyCode||this.handleClick()}}},q=Object(l.a)(q,(function(){var e=this,t=e.$createElement;return(t=e._self._c||t)("div",{class:e.classMatch,attrs:{tabindex:"0"},on:{click:e.handleClick,keydown:e.handleKeydown}},[e.drag?t("upload-dragger",{attrs:{disabled:e.disabled},on:{file:e.uploadFiles}},[e._t("default")],2):e._t("default"),e._v(" "),t("input",{ref:"input",staticClass:"th-upload__input",attrs:{type:"file",name:e.name,multiple:e.multiple,accept:e.accept},on:{change:e.handleChange}})],2)}),[],!1,null,null,null).exports;D={name:"ThUpload",components:{ElProgress:D,UploadList:B,Upload:q},provide:function(){return{uploader:this}},inject:{elForm:{default:""}},props:{action:{type:String,required:!0},headers:{type:Object,default:function(){return{}}},data:Object,multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,dragger:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:String,type:{type:String,default:"select"},beforeUpload:Function,beforeRemove:Function,onRemove:{type:Function,default:j},onChange:{type:Function,default:j},onPreview:{type:Function},onSuccess:{type:Function,default:j},onProgress:{type:Function,default:j},onError:{type:Function,default:j},fileList:{type:Array,default:function(){return[]}},autoUpload:{type:Boolean,default:!0},listType:{type:String,default:"text"},httpRequest:Function,disabled:Boolean,limit:Number,onExceed:{type:Function,default:j}},data:function(){return{uploadFiles:[],dragOver:!1,draging:!1,tempIndex:1}},computed:{uploadDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{listType:function(e){"picture-card"!==e&&"picture"!==e||(this.uploadFiles=this.uploadFiles.map((function(e){if(!e.url&&e.raw)try{e.url=URL.createObjectURL(e.raw)}catch(e){console.error("[Element Error][Upload]",e)}return e})))},fileList:{immediate:!0,handler:function(e){var t=this;this.uploadFiles=e.map((function(e){return e.uid=e.uid||Date.now()+t.tempIndex++,e.status=e.status||"success",e}))}}},methods:{handleStart:function(e){e.uid=Date.now()+this.tempIndex++;var t={status:"ready",name:e.name,size:e.size,percentage:0,uid:e.uid,raw:e};if("picture-card"===this.listType||"picture"===this.listType)try{t.url=URL.createObjectURL(e)}catch(e){return void console.error("[Element Error][Upload]",e)}this.uploadFiles.push(t),this.onChange(t,this.uploadFiles)},handleProgress:function(e,t){t=this.getFile(t),this.onProgress(e,t,this.uploadFiles),t.status="uploading",t.percentage=e.percent||0},handleSuccess:function(e,t){(t=this.getFile(t))&&(t.status="success",t.response=e,this.onSuccess(e,t,this.uploadFiles),this.onChange(t,this.uploadFiles))},handleError:function(e,t){t=this.getFile(t);var n=this.uploadFiles;t.status="fail",n.splice(n.indexOf(t),1),this.onError(e,t,this.uploadFiles),this.onChange(t,this.uploadFiles)},handleRemove:function(e,t){function n(){i.abort(e);var t=i.uploadFiles;t.splice(t.indexOf(e),1),i.onRemove(e,t)}var i=this;t&&(e=this.getFile(t)),this.beforeRemove?"function"==typeof this.beforeRemove&&((t=this.beforeRemove(e,this.uploadFiles))&&t.then?t.then((function(){n()}),j):!1!==t&&n()):n()},getFile:function(e){var t;return this.uploadFiles.every((function(n){return!(t=e.uid===n.uid?n:null)})),t},abort:function(e){this.$refs["upload-inner"].abort(e)},clearFiles:function(){this.uploadFiles=[]},submit:function(){var e=this;this.uploadFiles.filter((function(e){return"ready"===e.status})).forEach((function(t){e.$refs["upload-inner"].upload(t.raw)}))}},beforeDestroy:function(){this.uploadFiles.forEach((function(e){e.url&&0===e.url.indexOf("blob:")&&URL.revokeObjectURL(e.url)}))},render:function(e){var t,n=this,i=(this.showFileList&&(t=e(B,{attrs:{disabled:this.uploadDisabled,listType:this.listType,files:this.uploadFiles,handlePreview:this.onPreview},on:{remove:this.handleRemove}},[function(e){if(n.$scopedSlots.file)return n.$scopedSlots.file({file:e.file})}])),{props:{type:this.type,drag:this.drag,action:this.action,multiple:this.multiple,"before-upload":this.beforeUpload,headers:this.headers,name:this.name,data:this.data,accept:this.accept,fileList:this.uploadFiles,autoUpload:this.autoUpload,listType:this.listType,disabled:this.uploadDisabled,limit:this.limit,"on-exceed":this.onExceed,"on-start":this.handleStart,"on-progress":this.handleProgress,"on-success":this.handleSuccess,"on-error":this.handleError,"on-preview":this.onPreview,"on-remove":this.handleRemove,"http-request":this.httpRequest},ref:"upload-inner"}),o=this.$slots.trigger||this.$slots.default;i=e("upload",P()([{},i]),[o]);return e("div",["picture-card"===this.listType?t:"",this.$slots.trigger?[i,this.$slots.default]:i,this.$slots.tip,"picture-card"!==this.listType?t:""])}};var W=Object(l.a)(D,void 0,void 0,!1,null,null,null).exports,z=(q=(W.install=function(e){e.component(W.name,W)},W),D=n(7),D=n.n(D),n(28)),H=(z=n.n(z),{insert:"head",singleton:!1}),U=(H=(D()(z.a,H),z.a.locals,n(29)),z=n.n(H),H={insert:"head",singleton:!1},H=(D()(z.a,H),z.a.locals,n(30)),z=n.n(H),H={insert:"head",singleton:!1},H=(D()(z.a,H),z.a.locals,n(31)),z=n.n(H),H={insert:"head",singleton:!1},D=(D()(z.a,H),z.a.locals,n(4)),H=n.n(D),z=n(108),n.n(z)),V=n(23);D={components:{ThDialog:y,ThCodeEditor:_.a},props:{data:{type:Object,default:function(){return{}}},remoteApis:{type:Array,default:function(){return[]}},config:{type:Object,default:function(){return{}}}},data:function(){return{compsData:JSON.parse(JSON.stringify(V.a)),validator:{type:null,required:null,pattern:null,range:null,length:null},eventsDialog:{visible:!1,eventScript:[],active:null},aceCompletions:[{meta:"设置数据",caption:"setData",value:"setData({ })",score:1},{meta:"获取数据",caption:"getData",value:"getData()",score:1},{meta:"显示组件",caption:"display",value:"display([ ])",score:1},{meta:"隐藏组件",caption:"hide",value:"hide([ ])",score:1}]}},computed:{show:function(){return!!(this.data&&0<Object.keys(this.data).length)}},created:function(){for(var e=0,t=Object.keys(this.compsData);e<t.length;e++){var i=t[e];this.compsData[i].content=n(152)("./".concat(i)).default}},methods:{generateRule:function(){var e=this;this.data.rules=[],Object.keys(this.validator).forEach((function(t){e.validator[t]&&e.data.rules.push(e.validator[t])}))},validateRequired:function(e){var t=this;this.validator.required=e?{required:!0,message:"".concat(this.data.name,"必须填写")}:null,this.$nextTick((function(){t.generateRule()}))},validateDataType:function(e){if(!this.show)return!1;this.validator.type=e?{type:e,message:this.data.name+"格式不正确"}:null,this.generateRule()},valiatePattern:function(e){if(!this.show)return!1;this.validator.pattern=e?{pattern:e,message:this.data.name+"格式不匹配"}:null,this.generateRule()},handleInputNumberChange:function(){this.data.options.minRows>this.data.options.maxRows&&(this.data.options.maxRows=this.data.options.minRows)},handleImguploadType:function(e){"picture-card"==e&&(this.data.options.drag=!1)},handleImguploadDrag:function(e){e&&(this.data.options.listType="default")},handleEventDialogShow:function(){this.eventsDialog={visible:!0,eventScript:JSON.parse(JSON.stringify(this.config.eventScript)),active:null}},handleAddEvent:function(){var e={key:e=(new Date).getTime(),name:e,func:""};this.eventsDialog.eventScript.push(e),this.eventsDialog.active=e},handleEventDialogAffirm:function(){this.config.eventScript=this.eventsDialog.eventScript,this.eventsDialog={visible:!1,eventScript:[],active:null}},handleEventDialogDelete:function(e,t){var n=this;this.$confirm("确定要删除该方法 ".concat(e.name," ?"),"",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){n.eventsDialog.active&&e.key===n.eventsDialog.active.key&&(n.eventsDialog.active=null),n.eventsDialog.eventScript.splice(t,1)})).catch()},handleEventsCollapseClick:function(e){for(var t=0;t<this.config.eventScript.length;t++)if(this.config.eventScript[t].key===e){var n=JSON.parse(JSON.stringify(this.config.eventScript));this.eventsDialog={visible:!0,eventScript:n,active:n[t]};break}}},watch:{"data.options.isRange":function(e){void 0!==e&&(e?this.data.options.defaultValue=null:0<=Object.keys(this.data.options).indexOf("defaultValue")&&(this.data.options.defaultValue=""))},"data.options.required":function(e){this.validateRequired(e)},"data.options.dataType":function(e){this.validateDataType(e)},"data.options.pattern":function(e){this.valiatePattern(e)},"data.name":function(e){this.data.options&&(this.validateRequired(this.data.options.required),this.validateDataType(this.data.options.dataType),this.valiatePattern(this.data.options.pattern))}}};z=Object(l.a)(D,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.show?n("div",[n(e.compsData[e.data.type].content,{tag:"component",attrs:{widget:e.data,config:e.config,remoteApis:e.remoteApis},on:{"events-show":e.handleEventDialogShow,"events-edit":e.handleEventsCollapseClick}}),e._v(" "),n("th-dialog",{attrs:{title:"动作设置"},on:{"on-fullscreen":function(t){e.$refs.codeEditor&&e.$refs.codeEditor.resize()}},model:{value:e.eventsDialog.visible,callback:function(t){e.$set(e.eventsDialog,"visible",t)},expression:"eventsDialog.visible"}},[n("div",{staticClass:"eventsSetting"},[n("div",{staticClass:"list"},[n("div",{staticClass:"list-header",on:{click:e.handleAddEvent}},[n("div",[e._v("动作库")]),e._v(" "),n("el-button",{attrs:{type:"text",icon:"el-icon-plus",size:"mini"}},[e._v("添加")])],1),e._v(" "),e._l(e.eventsDialog.eventScript,(function(t,i){return n("div",{key:t.key,staticClass:"list-item",on:{click:function(n){e.eventsDialog.active=t}}},[n("div",{staticClass:"list-item-title"},[e._v("Function")]),e._v(" "),n("div",{staticClass:"list-item-value"},[e._v(e._s(t.name))]),e._v(" "),n("i",{staticClass:"el-icon-delete",on:{click:function(n){return n.stopPropagation(),e.handleEventDialogDelete(t,i)}}})])}))],2),e._v(" "),e.eventsDialog.active?n("div",{staticClass:"detail"},[n("div",[n("span",[e._v("Function Name")]),e._v(" "),n("el-input",{attrs:{placeholder:"请输入动作名称",size:"small",disabled:"mounted"===e.eventsDialog.active.name||"refresh"===e.eventsDialog.active.name},model:{value:e.eventsDialog.active.name,callback:function(t){e.$set(e.eventsDialog.active,"name",t)},expression:"eventsDialog.active.name"}})],1),e._v(" "),n("div",[n("div",[e._v("\n function(\n "+e._s("mounted"!==e.eventsDialog.active.name&&"refresh"!==e.eventsDialog.active.name?"item,value":"")+"\n ) {\n\n "),n("el-popover",{attrs:{placement:"top-start",title:"可用Api",width:"200",trigger:"hover"}},[n("i",{staticClass:"el-icon-question",staticStyle:{float:"right"},attrs:{slot:"reference"},slot:"reference"}),e._v(" "),n("div",{staticClass:"functions"},[n("div",[e._v("setData")]),e._v(" "),n("div",[e._v("getData")]),e._v(" "),n("div",[e._v("display")]),e._v(" "),n("div",[e._v("hide")])])])],1),e._v(" "),n("th-code-editor",{ref:"codeEditor",staticStyle:{height:"calc(100% - 48px)"},attrs:{completions:e.aceCompletions},model:{value:e.eventsDialog.active.func,callback:function(t){e.$set(e.eventsDialog.active,"func",t)},expression:"eventsDialog.active.func"}}),e._v(" "),n("div",[e._v("}")])],1)]):e._e()]),e._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{size:"small"},on:{click:function(t){e.eventsDialog.visible=!1}}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleEventDialogAffirm}},[e._v("保 存")])],1)])],1):e._e()}),[],!1,(function(e){n(150)}),"data-v-0a2d5ca5",null).exports,D=Object(l.a)({props:["data"]},(function(){var e=this,t=e.$createElement;return(t=e._self._c||t)("div",{staticClass:"form-config-container"},[t("el-form",{attrs:{"label-position":"top"}},[t("el-form-item",{attrs:{label:"UI"}},[t("el-radio-group",{model:{value:e.data.ui,callback:function(t){e.$set(e.data,"ui",t)},expression:"data.ui"}},[t("el-radio-button",{attrs:{label:"element"}},[e._v("Element")]),e._v(" "),t("el-radio-button",{attrs:{label:"vant",disabled:""}},[e._v("Vant")])],1)],1),e._v(" "),t("el-form-item",{attrs:{label:"表单标题"}},[t("el-input",{model:{value:e.data.title,callback:function(t){e.$set(e.data,"title",t)},expression:"data.title"}})],1),e._v(" "),t("el-form-item",{attrs:{label:"表单宽度"}},[t("el-input",{model:{value:e.data.width,callback:function(t){e.$set(e.data,"width",t)},expression:"data.width"}})],1),e._v(" "),t("el-form-item",{attrs:{label:"表单标签宽度"}},[t("el-input-number",{attrs:{min:0,max:200,step:10},model:{value:e.data.labelWidth,callback:function(t){e.$set(e.data,"labelWidth",t)},expression:"data.labelWidth"}})],1),e._v(" "),t("el-form-item",{attrs:{label:"标签对齐方式"}},[t("el-radio-group",{model:{value:e.data.labelPosition,callback:function(t){e.$set(e.data,"labelPosition",t)},expression:"data.labelPosition"}},[t("el-radio-button",{attrs:{label:"left"}},[e._v("左对齐")]),e._v(" "),t("el-radio-button",{attrs:{label:"right"}},[e._v("右对齐")]),e._v(" "),t("el-radio-button",{attrs:{label:"top"}},[e._v("顶部对齐")])],1)],1),e._v(" "),t("el-form-item",{attrs:{label:"组件尺寸"}},[t("el-radio-group",{model:{value:e.data.size,callback:function(t){e.$set(e.data,"size",t)},expression:"data.size"}},[t("el-radio-button",{attrs:{label:"medium"}},[e._v("medium")]),e._v(" "),t("el-radio-button",{attrs:{label:"small"}},[e._v("small")]),e._v(" "),t("el-radio-button",{attrs:{label:"mini"}},[e._v("mini")])],1)],1),e._v(" "),t("el-form-item",{attrs:{label:"操作属性"}},[t("el-checkbox",{model:{value:e.data.disabled,callback:function(t){e.$set(e.data,"disabled",t)},expression:"data.disabled"}},[e._v("禁用 ")]),e._v(" "),t("el-checkbox",{model:{value:e.data.hideLabel,callback:function(t){e.$set(e.data,"hideLabel",t)},expression:"data.hideLabel"}},[e._v("隐藏标签 ")])],1)],1)],1)}),[],!1,null,null,null).exports;var G=n(9),K=(G={components:{Draggable:H.a,WidgetFormItem:G.a,ThEmpty:b},props:["data","select","client"],data:function(){return{selectWidget:this.select,config:{}}},watch:{select:function(e){this.selectWidget=e},selectWidget:{handler:function(e){this.$emit("update:select",e)},deep:!0}},computed:{widgetList:function(){return this.data.list.filter((function(e){return e.key}))},formWidth:function(){return this.data.config.width||("mobile"===this.client?"375px":"")}},mounted:function(){document.body.ondrop=function(e){var t=navigator.userAgent;("string"==typeof t?-1<t.toLowerCase().indexOf("firefox"):-1<t.indexOf("firefox"))&&(e.preventDefault(),e.stopPropagation())}},methods:{handleMoveEnd:function(e){e.newIndex,e.oldIndex},handleSelectWidget:function(e){this.selectWidget=this.data.list[e]},handleWidgetAdd:function(e){var t=e.newIndex,n=(e=(e.to,Date.parse(new Date)+"_"+Math.ceil(99999*Math.random())),JSON.parse(JSON.stringify(this.data.list[t])));n.key=e,n.model=n.type+"_"+e,n.rules=[],this.$set(this.data.list,t,n),this.selectWidget=this.data.list[t]}}},G=Object(l.a)(G,(function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"formContainer",staticClass:"widget-form-container"},[0==e.data.list.length?i("th-empty",{staticClass:"form-empty",attrs:{image:n(266),description:"从左侧拖拽来添加字段"}}):e._e(),e._v(" "),i("el-form",{class:{"form-hideLabel":e.data.config.hideLabel},staticStyle:{margin:"0 auto",padding:"5px",height:"100%"},style:{width:e.formWidth},attrs:{size:e.data.config.size,"label-suffix":e.data.config.labelSuffix,"label-position":e.data.config.labelPosition,"label-width":e.data.config.labelWidth+"px",disabled:e.data.config.disabled}},[i("draggable",e._b({staticStyle:{height:"100%"},on:{end:e.handleMoveEnd,add:e.handleWidgetAdd},model:{value:e.data.list,callback:function(t){e.$set(e.data,"list",t)},expression:"data.list"}},"draggable",{group:"people",ghostClass:"ghost",animation:200,handle:".drag-widget"},!1),[i("transition-group",{staticClass:"widget-form-list",attrs:{name:"fade",tag:"div"}},e._l(e.widgetList,(function(t,n){return i("widget-form-item",{key:t.key,attrs:{widget:t,widgetIndex:n,widgetArray:e.data,config:e.data.config,select:e.selectWidget},on:{"update:select":function(t){e.selectWidget=t}}})})),1)],1)],1)],1)}),[],!1,null,null,null).exports,n(22));function Y(e,t){var n,i=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)),i}function X(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(n),!0).forEach((function(t){var i,o;i=e,o=n[t=t],t in i?Object.defineProperty(i,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[t]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}K={name:"th-generate-form",components:{GenetateFormItem:Object(l.a)(K.a,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!e.widget.options.hidden,expression:"!widget.options.hidden"}],ref:e.widget.model,class:((t={})[e.widget.model]=!0,t["widget-form-list-"+e.widget.type]=!0,t),attrs:{label:e.widget.options.hideLabel?"":e.widget.name,"label-width":e.labelWidth,prop:e.prop||e.widget.model,rules:e.widget.rules}},["input"==e.widget.type?["number"==e.widget.options.dataType||"integer"==e.widget.options.dataType||"float"==e.widget.options.dataType?n("el-input",{style:{width:e.widget.options.width},attrs:{type:"number",placeholder:e.widget.options.placeholder,disabled:e.widget.options.disabled,readonly:e.widget.options.readonly,clearable:e.widget.options.clearable,maxlength:e.widget.options.maxlength,"show-word-limit":e.widget.options.showWordLimit,"show-password":e.widget.options.showPassword},on:{input:function(t){return e.handleEventAction(e.widget.events.onChange)},focus:function(t){return e.handleEventAction(e.widget.events.onFocus)},blur:function(t){return e.handleEventAction(e.widget.events.onBlur)}},model:{value:e.dataModel,callback:function(t){e.dataModel=e._n(t)},expression:"dataModel"}}):n("el-input",{style:{width:e.widget.options.width},attrs:{type:"text",placeholder:e.widget.options.placeholder,disabled:e.widget.options.disabled,readonly:e.widget.options.readonly,clearable:e.widget.options.clearable,maxlength:e.widget.options.maxlength,"show-word-limit":e.widget.options.showWordLimit,"show-password":e.widget.options.showPassword,"suffix-icon":e.widget.options.suffixIcon,"prefix-icon":e.widget.options.prefixIcon},on:{input:function(t){return e.handleEventAction(e.widget.events.onChange)},focus:function(t){return e.handleEventAction(e.widget.events.onFocus)},blur:function(t){return e.handleEventAction(e.widget.events.onBlur)}},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}},[e.widget.options.prepend?n("template",{slot:"prepend"},[e._v(e._s(e.widget.options.prepend))]):e._e(),e._v(" "),e.widget.options.append?n("template",{slot:"append"},[e._v(e._s(e.widget.options.append))]):e._e()],2)]:e._e(),e._v(" "),"textarea"==e.widget.type?[n("el-input",{style:{width:e.widget.options.width},attrs:{type:"textarea",disabled:e.widget.options.disabled,placeholder:e.widget.options.placeholder,maxlength:e.widget.options.maxlength,clearable:e.widget.options.clearable,"show-word-limit":e.widget.options.showWordLimit,autosize:{minRows:e.widget.options.minRows,maxRows:e.widget.options.maxRows}},on:{input:function(t){return e.handleEventAction(e.widget.events.onChange)},focus:function(t){return e.handleEventAction(e.widget.events.onFocus)},blur:function(t){return e.handleEventAction(e.widget.events.onBlur)}},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),e._v(" "),"cell"==e.widget.type?[n("th-cell",{attrs:{title:e.widget.options.title,value:e.widget.options.value,label:e.widget.options.label}})]:e._e(),e._v(" "),"number"==e.widget.type?[n("el-input-number",{style:{width:e.widget.options.width},attrs:{step:e.widget.options.step,"controls-position":e.widget.options.controlsPosition?"right":"",disabled:e.widget.options.disabled,min:e.widget.options.min,max:e.widget.options.max,precision:e.widget.options.precision},on:{change:function(t){return e.handleEventAction(e.widget.events.onChange)},focus:function(t){return e.handleEventAction(e.widget.events.onFocus)},blur:function(t){return e.handleEventAction(e.widget.events.onBlur)}},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),e._v(" "),"text"==e.widget.type?[n("div",{style:{height:e.widget.options.height,textAlign:e.widget.options.textAlign},domProps:{innerHTML:e._s(e.dataModel)}})]:e._e(),e._v(" "),"radio"==e.widget.type?[n("el-radio-group",{style:{width:e.widget.options.width},attrs:{disabled:e.widget.options.disabled},on:{change:function(t){return e.handleEventAction(e.widget.events.onChange)}},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}},[e.widget.options.buttonType?e._l(e.widget.options.remote?e.widget.options.remoteOptions:e.widget.options.options,(function(t,i){return n("el-radio-button",{key:i,style:{display:e.widget.options.inline?"inline-block":"block"},attrs:{label:t.value,border:e.widget.options.border}},[e.widget.options.remote?[e._v(e._s(t.label))]:[e._v(e._s(e.widget.options.showLabel?t.label:t.value))]],2)})):e._l(e.widget.options.remote?e.widget.options.remoteOptions:e.widget.options.options,(function(t,i){return n("el-radio",{key:i,style:{display:e.widget.options.inline?"inline-block":"block"},attrs:{label:t.value,border:e.widget.options.border}},[e.widget.options.remote?[e._v(e._s(t.label))]:[e._v(e._s(e.widget.options.showLabel?t.label:t.value))]],2)}))],2)]:e._e(),e._v(" "),"checkbox"==e.widget.type?[n("el-checkbox-group",{style:{width:e.widget.options.width},attrs:{disabled:e.widget.options.disabled,min:e.widget.options.min,max:e.widget.options.max},on:{change:function(t){return e.handleEventAction(e.widget.events.onChange)}},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}},[e.widget.options.buttonType?e._l(e.widget.options.remote?e.widget.options.remoteOptions:e.widget.options.options,(function(t,i){return n("el-checkbox-button",{key:i,style:{display:e.widget.options.inline?"inline-block":"block"},attrs:{label:t.value,border:e.widget.options.border}},[e.widget.options.remote?[e._v(e._s(t.label))]:[e._v(e._s(e.widget.options.showLabel?t.label:t.value))]],2)})):e._l(e.widget.options.remote?e.widget.options.remoteOptions:e.widget.options.options,(function(t,i){return n("el-checkbox",{key:i,style:{display:e.widget.options.inline?"inline-block":"block"},attrs:{label:t.value,border:e.widget.options.border}},[e.widget.options.remote?[e._v(e._s(t.label))]:[e._v(e._s(e.widget.options.showLabel?t.label:t.value))]],2)}))],2)]:e._e(),e._v(" "),"time"==e.widget.type?[n("el-time-picker",{style:{width:e.widget.options.width},attrs:{"is-range":e.widget.options.isRange,placeholder:e.widget.options.placeholder,"start-placeholder":e.widget.options.startPlaceholder,"end-placeholder":e.widget.options.endPlaceholder,readonly:e.widget.options.readonly,disabled:e.widget.options.disabled,editable:e.widget.options.editable,clearable:e.widget.options.clearable,arrowControl:e.widget.options.arrowControl,"value-format":e.widget.options.format,"picker-options":{selectableRange:e.widget.options.pickerOptions.selectableRange[0]+" - "+e.widget.options.pickerOptions.selectableRange[1]}},on:{change:function(t){return e.handleEventAction(e.widget.events.onChange)},focus:function(t){return e.handleEventAction(e.widget.events.onFocus)},blur:function(t){return e.handleEventAction(e.widget.events.onBlur)}},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),e._v(" "),"date"==e.widget.type?[n("el-date-picker",{style:{width:e.widget.options.width},attrs:{type:e.widget.options.type,"is-range":e.widget.options.isRange,placeholder:e.widget.options.placeholder,"start-placeholder":e.widget.options.startPlaceholder,"end-placeholder":e.widget.options.endPlaceholder,readonly:e.widget.options.readonly,disabled:e.widget.options.disabled,editable:e.widget.options.editable,clearable:e.widget.options.clearable,"value-format":e.widget.options.format},on:{change:function(t){return e.handleEventAction(e.widget.events.onChange)},focus:function(t){return e.handleEventAction(e.widget.events.onFocus)},blur:function(t){return e.handleEventAction(e.widget.events.onBlur)}},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),e._v(" "),"select"==e.widget.type?[n("el-select",{style:{width:e.widget.options.width},attrs:{disabled:e.widget.options.disabled,multiple:e.widget.options.multiple,clearable:e.widget.options.clearable,placeholder:e.widget.options.placeholder,collapseTags:e.widget.options.collapseTags,allowCreate:e.widget.options.allowCreate,filterable:!!e.widget.options.allowCreate||e.widget.options.filterable},on:{change:function(t){return e.handleEventAction(e.widget.events.onChange)},focus:function(t){return e.handleEventAction(e.widget.events.onFocus)},blur:function(t){return e.handleEventAction(e.widget.events.onBlur)}},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}},e._l(e.widget.options.remote?e.widget.options.remoteOptions:e.widget.options.options,(function(t){return n("el-option",{key:t.value,attrs:{value:t.value,label:e.widget.options.showLabel||e.widget.options.remote?t.label:t.value}})})),1)]:e._e(),e._v(" "),"color"==e.widget.type?[n("el-color-picker",{attrs:{disabled:e.widget.options.disabled,"show-alpha":e.widget.options.showAlpha},on:{change:function(t){return e.handleEventAction(e.widget.events.onChange)}},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),e._v(" "),"switch"==e.widget.type?[n("el-switch",{attrs:{width:e.widget.options.width-20,disabled:e.widget.options.disabled,"inactive-text":e.widget.options.switchInactiveText,"active-text":e.widget.options.switchActiveText,"inactive-color":e.widget.options.switchInactiveColor,"active-color":e.widget.options.switchActiveColor},on:{change:function(t){return e.handleEventAction(e.widget.events.onChange)}},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),e._v(" "),"button"==e.widget.type?[n("el-button",{style:{width:e.widget.options.width,height:e.widget.options.height},attrs:{size:e.widget.options.buttonSize,type:e.widget.options.buttonType,plain:e.widget.options.buttonPlain,round:e.widget.options.buttonRound,circle:e.widget.options.buttonCircle,loading:e.widget.options.loading,disabled:e.widget.options.disabled,icon:e.widget.options.buttonIcon},on:{click:function(t){return e.handleEventAction(e.widget.events.onClick)}}},[e._v(e._s(e.widget.options.defaultValue))])]:e._e(),e._v(" "),"slider"==e.widget.type?[n("el-slider",{style:{width:e.widget.options.width,height:e.widget.options.height},attrs:{min:e.widget.options.min,max:e.widget.options.max,disabled:e.widget.options.disabled,step:e.widget.options.step,"show-input":e.widget.options.showInput,range:e.widget.options.range,"show-tooltip":e.widget.options.showTooltip,"format-tooltip":function(t){return e.formatTooltip(t,e.widget.options.formatTooltip)},"show-stops":e.widget.options.showStops,vertical:e.widget.options.vertical},on:{change:function(t){return e.handleEventAction(e.widget.events.onChange)}},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),e._v(" "),"rate"==e.widget.type?[n("el-rate",{attrs:{max:e.widget.options.max,disabled:e.widget.options.disabled,"allow-half":e.widget.options.allowHalf,"show-text":e.widget.options.showText,texts:e.widget.options.auxiliaryValue},on:{change:function(t){return e.handleEventAction(e.widget.events.onChange)}},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),e._v(" "),"filler"==e.widget.type?[n("div",{style:{width:e.widget.options.width,height:e.widget.options.height}})]:e._e(),e._v(" "),"image"==e.widget.type?[n("th-image",{attrs:{src:e.widget.options.defaultValue,height:e.widget.options.height,width:e.widget.options.width,fit:e.widget.options.fit}})]:e._e(),e._v(" "),"upload"==e.widget.type?[n("el-upload",{staticClass:"upload-demo",attrs:{action:e.widget.options.remoteFunc,"on-preview":function(t){return e.handlePictureCardPreview(t,e.widget.options.listType)},"on-remove":e.handleRemove,multiple:e.widget.options.multiple,limit:e.widget.options.length,width:e.widget.options.size.width,height:e.widget.options.size.height,"list-type":e.widget.options.listType,"on-change":e.handleAvatar,"on-error":e.handleAvatarError,drag:e.widget.options.drag,disabled:e.widget.options.disabled,"auto-upload":!1}},[["default","picture"].includes(e.widget.options.listType)&&!e.widget.options.drag?n("el-button",{attrs:{size:"small",type:"primary",disabled:e.widget.options.disabled}},[e._v("点击上传")]):e._e(),e._v(" "),"picture-card"!==e.widget.options.listType||e.widget.options.drag?e._e():n("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"}),e._v(" "),e.widget.options.drag?n("i",{staticClass:"el-icon-upload"}):e._e(),e._v(" "),e.widget.options.drag?n("div",{staticClass:"el-upload__text"},[e._v("\n 将文件拖到此处,或"),n("em",[e._v("点击上传")])]):e._e(),e._v(" "),n("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},domProps:{innerHTML:e._s(e.widget.options.elUploadTip)},slot:"tip"})],1)]:e._e(),e._v(" "),"editor"==e.widget.type?[n("vue-editor",{style:{width:e.widget.options.width},attrs:{disabled:e.widget.options.disabled},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),e._v(" "),"cascader"==e.widget.type?[n("el-cascader",{style:{width:e.widget.options.width,height:e.widget.options.height},attrs:{disabled:e.widget.options.disabled,clearable:e.widget.options.clearable,placeholder:e.widget.options.placeholder,options:e.widget.options.remoteOptions,props:e.widget.options.props,"show-all-levels":!e.widget.options.showAllLevels,"collapse-tags":e.widget.options.collapseTags,filterable:e.widget.options.filterable},on:{change:function(t){return e.handleEventAction(e.widget.events.onChange)}},scopedSlots:e._u([{key:"default",fn:function(t){return t=t.data,[n("span",{domProps:{innerHTML:e._s(e.widget.options.prepend)}}),e._v(" "),n("span",[e._v(e._s(t.label))]),e._v(" "),n("span",{domProps:{innerHTML:e._s(e.widget.options.append)}})]}}],null,!1,1426148692),model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),e._v(" "),"blank"==e.widget.type?[e._t(e.widget.model)]:e._e(),e._v(" "),"table"==e.widget.type?[n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.dataModel,stripe:e.widget.options.stripe,"show-header":e.widget.options.showHeader,"highlight-current-row":e.widget.options.highlightCurrentRow,border:e.widget.options.border}},[e.widget.options.isSerial?n("el-table-column",{attrs:{label:"序号",type:"index",width:"50",align:"center"}}):e._e(),e._v(" "),e._l(e.widget.list,(function(t){return n("el-table-column",{key:"table_"+t.key,attrs:{label:t.name,prop:t.model,width:t.options.width},scopedSlots:e._u([{key:"default",fn:function(i){return[n("genetate-form-item",{attrs:{models:e.dataModel[i.$index],widget:t,remote:e.remote,config:e.config,prop:e.prop+"."+i.$index+"."+t.model,slotKeys:e.slotKeys,componentsData:e.componentsData},on:{"update:models":function(t){return e.$set(e.dataModel,i.$index,t)}}},[e._l(e.slotKeys,(function(t){return n("template",{slot:t},[e._t(t)],2)}))],2)]}}],null,!0)})})),e._v(" "),e.widget.options.isDelete?n("el-table-column",{attrs:{fixed:"right",label:"操作",width:"60",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{staticStyle:{color:"#F56C6C"},attrs:{type:"text"},nativeOn:{click:function(n){return n.preventDefault(),e.handleTableDelete(t.$index)}}},[e._v("\n 移除\n ")])]}}],null,!1,4146503235)}):e._e(),e._v(" "),e.widget.options.isAdd?n("template",{slot:"append"},[n("div",{staticStyle:{"text-align":"center"},style:{borderTop:e.dataModel&&0!=e.dataModel.length?"":"1px solid #EBEEF5"}},[n("el-button",{attrs:{type:"text",disabled:e.widget.options.disabled},on:{click:e.handleTableAdd}},[e._v("新增")])],1)]):e._e()],2)]:e._e(),e._v(" "),"table_h5"==e.widget.type?[n("div",{staticClass:"tableH5"},[e._l(e.dataModel,(function(t,i){return n("div",{key:"table_h5_"+i,staticClass:"tableH5-item"},e._l(e.widget.list,(function(o,r){return n("div",{key:"table_h5_"+i+"_"+o.key},[n("genetate-form-item",{staticStyle:{flex:"1"},attrs:{models:t,widget:o,remote:e.remote,config:e.config,prop:"grid"===o.type?e.prop+"."+i:e.prop+"."+i+"."+o.model,slotKeys:e.slotKeys,componentsData:e.componentsData},on:{"update:models":function(e){t=e}}},[e._l(e.slotKeys,(function(t){return n("template",{slot:t},[e._t(t)],2)}))],2),e._v(" "),e.widget.options.isDelete&&0===r&&i>=e.widget.options.deleteIndex?n("div",{staticClass:"actions"},[n("el-button",{attrs:{type:"danger"},nativeOn:{click:function(t){return t.preventDefault(),e.handleTableDelete(i)}}},[e._v(e._s(e.widget.options.deleteButtonText))])],1):e._e()],1)})),0)})),e._v(" "),e.widget.options.isAdd?n("div",{staticStyle:{"text-align":"center"}},[n("el-button",{attrs:{type:"text",disabled:e.widget.options.disabled},on:{click:e.handleTableAdd}},[e._v(e._s(e.widget.options.addButtonText))])],1):e._e()],2)]:e._e(),e._v(" "),"grid"==e.widget.type?[n("th-row",{attrs:{gutter:e.widget.options.gutter||0,justify:e.widget.options.justify,align:e.widget.options.align}},e._l(e.widget.columns,(function(t,i){return n("th-col",{key:i,attrs:{span:t.span}},e._l(t.list,(function(t){return n("genetate-form-item",{key:t.key,attrs:{widget:t,models:e.models,config:e.config,remote:e.remote,prop:e.prop?e.prop+"."+t.model:t.model,slotKeys:e.slotKeys,componentsData:e.componentsData}},[e._l(e.slotKeys,(function(t){return n("template",{slot:t},[e._t(t)],2)}))],2)})),1)})),1)]:e._e(),e._v(" "),"tabs"==e.widget.type?[n("el-tabs",{model:{value:e.widget.options.defaultValue,callback:function(t){e.$set(e.widget.options,"defaultValue",t)},expression:"widget.options.defaultValue"}},e._l(e.widget.tabs,(function(t,i){return n("el-tab-pane",{key:"tabs_"+i,attrs:{label:t.label,name:t.value}},e._l(t.list,(function(o){return n("genetate-form-item",{key:"tabs_"+i+"_"+o.key,attrs:{widget:o,models:e.dataModel[t.value],config:e.config,remote:e.remote,prop:"grid"===o.type?e.prop+"."+t.value:e.prop+"."+t.value+"."+o.model,slotKeys:e.slotKeys,componentsData:e.componentsData},on:{"update:models":function(n){return e.$set(e.dataModel,t.value,n)}}},[e._l(e.slotKeys,(function(t){return n("template",{slot:t},[e._t(t)],2)}))],2)})),1)})),1)]:e._e(),e._v(" "),"divider"==e.widget.type?[n("el-divider",{attrs:{"content-position":e.widget.options.contentPosition}},[e._v("\n "+e._s(e.widget.options.defaultValue)+"\n ")])]:e._e(),e._v(" "),n("el-dialog",{attrs:{visible:e.dialogVisible,"append-to-body":""},on:{"update:visible":function(t){e.dialogVisible=t}}},[n("img",{attrs:{width:"100%",src:e.dialogImageUrl,alt:""}})])],2)}),[],!1,null,null,null).exports},props:{data:{type:Object,default:function(){return{}}},remote:{type:Object,default:function(){return{}}},value:{type:Object,default:function(){return{}}},slotKeys:{type:Array,default:function(){return[]}},client:String},data:function(){return{formJson:this.data,models:{},componentsData:[]}},computed:{formWidth:function(){return this.formJson.config.width||("mobile"===this.client?"375px":"")}},watch:{data:function(e){this.formJson=e},formJson:{handler:function(e){this.$emit("update:data",e)},deep:!0},value:{deep:!0,handler:function(e){this.models=X(X({},this.models),e)}}},created:function(){this.generateModle(this.formJson.list)},mounted:function(){},methods:{generateModle:function(e,t){var n=this;e&&e.map((function(e){"grid"===e.type?e.columns.forEach((function(e){n.generateModle(e.list,t)})):"tabs"===e.type?t?(n.$set(t,e.model,{}),e.tabs.forEach((function(i){n.$set(t[e.model],i.value,{}),n.generateModle(i.list,t[e.model][i.value])}))):(n.$set(n.models,e.model,{}),e.tabs.forEach((function(t){n.$set(n.models[e.model],t.value,{}),n.generateModle(t.list,n.models[e.model][t.value])}))):"table"===e.type||"table_h5"===e.type?t?(n.$set(t,e.model,JSON.parse(e.options.defaultValue||"[]")),n.generateModle(e.list,t[e.model])):(n.$set(n.models,e.model,JSON.parse(e.options.defaultValue||"[]")),n.generateModle(e.list,n.models[e.model])):(t?t[e.model]||n.$set(t,e.model,e.options.defaultValue):n.value&&0<=Object.keys(n.value).indexOf(e.model)?n.$set(n.models,e.model,n.value[e.model]):"blank"===e.type?n.$set(n.models,e.model,"String"===e.options.defaultType?"":"Object"===e.options.defaultType?{}:[]):n.$set(n.models,e.model,JSON.parse(JSON.stringify(e.options.defaultValue))),n.generateRules(e))}))},generateRules:function(e){e.rules||(e.rules=[]),e.rules.forEach((function(e){e.pattern&&(e.pattern=new RegExp(e.pattern))}))},getData:function(){var e=this;return new Promise((function(t,n){e.$refs.generateForm.validate((function(i){i?t(e.models):n(new Error("表单数据校验失败").message)}))}))},reset:function(){this.$refs.generateForm.resetFields()},onInputChange:function(e,t){this.$emit("on-change",t,e,this.models)},setJSON:function(e){this.formJson=e,this.generateModle(this.formJson.list)}}};var J=Object(l.a)(K,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.formJson.config?n("div",[n("el-form",{ref:"generateForm",staticClass:"generateForm",class:{"form-hideLabel":e.formJson.config.hideLabel},style:{width:e.formWidth},attrs:{"label-suffix":e.formJson.config.labelSuffix,size:e.formJson.config.size,model:e.models,"label-position":e.formJson.config.labelPosition,"label-width":e.formJson.config.labelWidth+"px"}},e._l(e.formJson.list,(function(t){return n("genetate-form-item",{key:t.key,attrs:{models:e.models,widget:t,slotKeys:e.slotKeys,remote:e.remote,config:e.formJson.config,prop:"grid"===t.type?"":t.model,componentsData:e.componentsData},on:{"update:models":function(t){e.models=t},"input-change":e.onInputChange}},[e._l(e.slotKeys,(function(t){return n("template",{slot:t},[e._t(t)],2)}))],2)})),1)],1):e._e()}),[],!1,(function(e){n(267)}),"data-v-f384d7c4",null).exports;function Z(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}var Q=[{name:"单行文本",type:"input",icon:"icon-input",options:{width:"100%",labelWidth:100,isLabelWidth:!1,defaultValue:"",dataType:"string",pattern:"",placeholder:"",maxlength:-1,required:!1,disabled:!1,readonly:!1,clearable:!1,showWordLimit:!1,showPassword:!1,prefixIcon:"",suffixIcon:"",prepend:"",append:"",hidden:!1,hideLabel:!1},events:{onChange:"",onFocus:"",onBlur:""}},{name:"多行文本",type:"textarea",icon:"icon-diy-com-textarea",options:{width:"100%",labelWidth:100,isLabelWidth:!1,defaultValue:"",dataType:"string",pattern:"",placeholder:"",maxlength:-1,rows:2,showWordLimit:!1,minRows:2,maxRows:5,required:!1,disabled:!1,readonly:!1,clearable:!1,hidden:!1,hideLabel:!1},events:{onChange:"",onFocus:"",onBlur:""}},{name:"单元格",type:"cell",icon:"icon-ic",options:{width:"100%",height:"40px",labelWidth:100,isLabelWidth:!1,title:"标题",value:"内容",label:"副标题",defaultValue:"",customClass:"",textAlign:"right",hidden:!1,hideLabel:!1}},{name:"文字",type:"text",icon:"icon-wenzishezhi-",options:{width:"100%",height:"",labelWidth:100,isLabelWidth:!1,defaultValue:"",customClass:"",textAlign:"left",hidden:!1,hideLabel:!1}},{name:"单选框组",type:"radio",icon:"icon-radio-active",options:{width:"",labelWidth:100,isLabelWidth:!1,inline:!1,defaultValue:"",showLabel:!1,options:[{value:"Option 1",label:"Option 1"},{value:"Option 2",label:"Option 2"},{value:"Option 3",label:"Option 3"}],required:!1,remote:!1,remoteOptions:[],props:{value:"value",label:"label"},remoteFunc:"",disabled:!1,border:!1,buttonType:!1},events:{onChange:""}},{name:"多选框组",type:"checkbox",icon:"icon-check-box",options:{width:"",labelWidth:100,isLabelWidth:!1,inline:!1,defaultValue:[],showLabel:!1,options:[{value:"Option 1"},{value:"Option 2"},{value:"Option 3"}],required:!1,remote:!1,remoteOptions:[],props:{value:"value",label:"label"},remoteFunc:"",disabled:!1,border:!1,buttonType:!1,min:0,max:0,hidden:!1,hideLabel:!1},events:{onChange:""}},{name:"时间选择器",type:"time",icon:"icon-time",options:{width:"100%",labelWidth:100,isLabelWidth:!1,defaultValue:"00:00:00",placeholder:"",startPlaceholder:"",endPlaceholder:"",isRange:!1,arrowControl:!0,format:"HH:mm:ss",pickerOptions:{selectableRange:["00:00:00","23:59:59"]},readonly:!1,disabled:!1,editable:!0,clearable:!0,required:!1,hidden:!1,hideLabel:!1},events:{onChange:"",onFocus:"",onBlur:""}},{name:"日期选择器",type:"date",icon:"icon-date",options:{width:"100%",labelWidth:100,isLabelWidth:!1,defaultValue:"",readonly:!1,disabled:!1,editable:!0,clearable:!0,placeholder:"",startPlaceholder:"",endPlaceholder:"",type:"date",format:"yyyy-MM-dd",timestamp:!1,required:!1},events:{onChange:"",onFocus:"",onBlur:""}},{name:"下拉选择框",type:"select",icon:"icon-select",options:{width:"100%",labelWidth:100,isLabelWidth:!1,defaultValue:"",multiple:!1,disabled:!1,clearable:!1,placeholder:"",required:!1,showLabel:!1,collapseTags:!1,allowCreate:!1,options:[{value:"Option 1"},{value:"Option 2"},{value:"Option 3"}],remote:!1,filterable:!1,remoteOptions:[],props:{value:"value",label:"label"},remoteFunc:"",hidden:!1,hideLabel:!1},events:{onChange:"",onFocus:"",onBlur:""}},{name:"颜色选择器",type:"color",icon:"icon-color",options:{labelWidth:100,isLabelWidth:!1,defaultValue:"",predefine:["#1989FA","#67C23A","#FF976A","#EE0A24","#000000","#333333","#666666","#999999","#FFFFFF"],disabled:!1,showAlpha:!1,required:!1,hidden:!1,hideLabel:!1},events:{onChange:""}},{name:"开关",type:"switch",icon:"icon-switch",options:{width:70,labelWidth:100,isLabelWidth:!1,defaultValue:!1,switchInactiveText:"",switchActiveText:"",switchInactiveColor:"#C0CCDA",switchActiveColor:"#409EFF",required:!1,disabled:!1,hidden:!1,hideLabel:!1},events:{onChange:""}},{name:"按钮",type:"button",icon:"icon-ic",options:{customClass:"",defaultValue:"Button",width:"",height:"",labelWidth:100,isLabelWidth:!1,dataBind:!1,buttonSize:"small",buttonType:"",buttonPlain:!1,buttonRound:!1,buttonCircle:!1,buttonIcon:"",textAlign:"center",remoteFunc:"",remoteOption:"",tableColumn:!1,disabled:!1,loading:!1,hidden:!1,hideLabel:!1},events:{onClick:""},rules:[]},{name:"计数器",type:"number",icon:"icon-number",options:(Z(K={width:"",labelWidth:100,isLabelWidth:!1,required:!1,defaultValue:0,min:1,max:2,step:1,disabled:!1,controlsPosition:!1},"step",1),Z(K,"precision",1),Z(K,"hidden",!1),Z(K,"hideLabel",!1),K),events:{onChange:"",onFocus:"",onBlur:""}},{name:"滑块",type:"slider",icon:"icon-slider",options:{width:"100%",height:"40px",labelWidth:100,isLabelWidth:!1,defaultValue:0,disabled:!1,required:!1,min:0,max:100,step:1,showInput:!1,range:!1,vertical:!1,showTooltip:!0,formatTooltip:1,showStops:!1,hidden:!1,hideLabel:!1},events:{onChange:""}},{name:"评分",type:"rate",icon:"icon-pingfen1",options:{labelWidth:100,isLabelWidth:!1,defaultValue:0,max:5,disabled:!1,allowHalf:!1,required:!1,showText:!1,hidden:!1,hideLabel:!1,auxiliaryValue:["极差","失望","一般","满意","惊喜"]},events:{onChange:""}},{name:"填充物",type:"filler",icon:"icon-ic",options:{defaultValue:"",width:"100%",height:"20px"}},{name:"图片",type:"image",icon:"icon-ic",options:{defaultValue:"https://cube.elemecdn.com/6/94/4d3ea53c084bad6931a56d5158a48jpeg.jpeg",defaultValueArr:[{url:"https://fuss10.elemecdn.com/a/3f/3302e58f9a181d2509f3dc0fa68b0jpeg.jpeg"},{url:"https://fuss10.elemecdn.com/1/34/19aa98b1fcb2781c4fba33d850549jpeg.jpeg"},{url:"https://fuss10.elemecdn.com/0/6f/e35ff375812e6b0020b6b4e8f9583jpeg.jpeg"}],remote:!1,width:"",height:"200px",fit:"fill",borderRadius:"",displayStyle:"inline-block",errorSrc:"",isLoding:!1,hidden:!1,hideLabel:!1}},{name:"文件",type:"upload",icon:"icon-tupian",options:(Z(K={width:"",labelWidth:100,isLabelWidth:!1,defaultValue:[],size:{width:100,height:100},tokenFunc:"funcGetToken",token:"",domain:"https://tcdn.form.making.link/",disabled:!1,length:8,autoUpload:!1,isQiniu:!1,min:0,remoteFunc:"https://jsonplaceholder.typicode.com/posts/",action:"https://jsonplaceholder.typicode.com/posts/",remoteApi:{}},"disabled",!1),Z(K,"required",!1),Z(K,"multiple",!1),Z(K,"elUploadTip",""),Z(K,"listType","default"),Z(K,"drag",!1),K)},{name:"编辑器",type:"editor",icon:"icon-fuwenbenkuang",options:{width:"100%",height:"",labelWidth:100,isLabelWidth:!1,defaultValue:"",disabled:!1,required:!1,hidden:!1,hideLabel:!1}},{name:"级联选择器",type:"cascader",icon:"icon-jilianxuanze",options:{width:"",labelWidth:100,isLabelWidth:!1,defaultValue:[],placeholder:"",disabled:!1,clearable:!1,required:!1,remote:!0,showAllLevels:!1,collapseTags:!1,filterable:!1,prepend:"",append:"",remoteOptions:[],props:{value:"value",label:"label",children:"children",multiple:!1,expandTrigger:"hover",checkStrictly:!1},remoteFunc:"",hidden:!1,hideLabel:!1},events:{onChange:""}}],ee=[{name:"子表单",type:"table",icon:"icon-table",options:{height:"",defaultValue:"",customClass:"",labelWidth:100,isLabelWidth:!1,dataBind:!0,validatorCheck:!1,validator:"",paging:!1,pageSize:5,remoteFunc:"",remoteOption:"",tableColumn:!1,hidden:!1,hideLabel:!1,disabled:!1,required:!1,isAdd:!0,isDelete:!0,isSerial:!0,border:!1,stripe:!1,showHeader:!0,highlightCurrentRow:!1},list:[]},{name:"子表单H5",type:"table_h5",icon:"icon-table",options:{defaultValue:"",customClass:"",labelWidth:100,isLabelWidth:!1,dataBind:!0,validatorCheck:!1,validator:"",paging:!1,pageSize:5,remoteFunc:"",remoteOption:"",tableColumn:!1,hidden:!1,hideLabel:!1,disabled:!1,required:!1,isAdd:!0,addButtonText:"新增",isDelete:!0,deleteButtonText:"删除",deleteIndex:0},list:[]},{name:"标签页",type:"tabs",icon:"icon-tabs",tabs:[{label:"选项1",value:"tab1",list:[]},{label:"选项2",value:"tab2",list:[]}],options:{defaultValue:"tab1",type:"",tabPosition:"top",customClass:"",hidden:!1,labelWidth:100,isLabelWidth:!1,hideLabel:!0,remote:!1,remoteFunc:"",remoteOption:"",tableColumn:!1},rules:[]},{name:"自定义区域",type:"blank",icon:"icon-zidingyishuju",options:{defaultType:"String",required:!1}}],te=[{name:"栅格布局",type:"grid",icon:"icon-grid-",columns:[{span:12,list:[]},{span:12,list:[]}],options:{gutter:0,justify:"start",align:"top",hideLabel:!0}},{name:"浮动布局",type:"alliance",icon:"icon-grid-",columns:[{span:12,list:[]},{span:12,list:[]}],options:{gutter:0,justify:"start",align:"top",hideLabel:!0}},{name:"分割线",type:"divider",icon:"icon-fengexian",options:{width:"100%",defaultValue:"",hidden:!1,labelWidth:100,isLabelWidth:!1,hideLabel:!0,contentPosition:"left",remoteFunc:"",remoteOption:"",tableColumn:!1},rules:[]}],ne={ui:"element",title:"",width:"",labelWidth:100,labelPosition:"right",labelSuffix:":",size:"small",disabled:!1,hideLabel:!1,eventScript:[{key:"mounted",name:"mounted",func:""},{key:"refresh",name:"refresh",func:""}]},ie=(K=n(110),(K=n.n(K).a.create({withCredentials:!1})).interceptors.request.use((function(e){return e}),(function(e){return console.log("error",e),Promise.reject(new Error(e).message)})),K.interceptors.response.use((function(e){return console.log(".....",e),e.data}),(function(e){return console.log("error",e),Promise.reject(new Error(e).message)})),K);function oe(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"vue",n=[],i=[],o=[],r=(function e(t,n,i,o){for(var r=0;r<t.length;r++)"grid"==t[r].type?t[r].columns.forEach((function(t){e(t.list,n,i,o)})):"tabs"==t[r].type?t[r].tabs.forEach((function(t){e(t.list,n,i,o)})):"table"==t[r].type?e(t[r].list,n,i,o):"blank"==t[r].type?t[r].model&&o.push({name:t[r].model,label:t[r].name}):"upload"==t[r].type?t[r].options.tokenFunc&&i.push({func:t[r].options.tokenFunc,label:t[r].name,model:t[r].model}):t[r].options.remote&&t[r].options.remoteFunc&&n.push({func:t[r].options.remoteFunc,label:t[r].name,model:t[r].model})}(JSON.parse(e).list,n,i,o),""),s="",a=0;a<n.length;a++)r+="\n ".concat(n[a].func," (resolve) {\n // ").concat(n[a].label," ").concat(n[a].model,"\n // Call callback function once get the data from remote server\n // resolve(data)\n },\n ");for(var l=0;l<i.length;l++)r+="\n ".concat(i[l].func," (resolve) {\n // ").concat(i[l].label," ").concat(i[l].model,"\n // Call callback function once get the token\n // resolve(token)\n },\n ");for(var c=0;c<o.length;c++)s+='\n <template slot="'.concat(o[c].name,'" slot-scope="scope">\n \x3c!-- ').concat(o[c].label,' --\x3e\n \x3c!-- use v-model="scope.model.').concat(o[c].name,'" to bind data --\x3e\n </template>\n ');return"vue"==t?'\n<template>\n <div>\n <th-generate-form :data="jsonData" :remote="remoteFuncs" :value="editData" ref="generateForm">\n '.concat(s,'\n </th-generate-form>\n <el-button type="primary" @click="handleSubmit">提交</el-button>\n </div>\n</template>\n\n<script>\n export default {\n data () {\n return {\n jsonData: ').concat(e,",\n editData: {},\n remoteFuncs: {\n ").concat(r,"\n }\n }\n },\n methods: {\n handleSubmit () {\n this.$refs.generateForm.getData().then(data => {\n // data check success\n // data - form data\n }).catch(e => {\n // data check failed\n })\n }\n }\n }\n<\/script>"):'<!DOCTYPE html>\n <html>\n <head>\n <meta charset="UTF-8">\n <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">\n <link rel="stylesheet" href="https://unpkg.com/form-making/dist/FormMaking.css">\n </head>\n <body>\n <div id="app">\n <th-generate-form :data="jsonData" :remote="remoteFuncs" :value="editData" ref="generateForm">\n '.concat(s,'\n </th-generate-form>\n <el-button type="primary" @click="handleSubmit">提交</el-button>\n </div>\n <script src="https://unpkg.com/vue/dist/vue.js"><\/script>\n <script src="https://unpkg.com/element-ui/lib/index.js"><\/script>\n <script src="https://unpkg.com/form-making/dist/FormMaking.umd.js"><\/script>\n <script>\n new Vue({\n el: \'#app\',\n data: {\n jsonData: ').concat(e,",\n editData: {},\n remoteFuncs: {\n ").concat(r,"\n }\n },\n methods: {\n handleSubmit () {\n this.$refs.generateForm.getData().then(data => {\n // data check success\n // data - form data\n }).catch(e => {\n // data check failed\n })\n }\n }\n })\n <\/script>\n </body>\n </html>")}var re=1200,se=1252,ae=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],le={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},ce=function(e){-1!=ae.indexOf(e)&&(se=le[0]=e)},ue=function(e){ce(re=e)};
85
+ t.read=function(e,t,n,i,o){var r,s,a=8*o-i-1,l=(1<<a)-1,c=l>>1,u=-7,d=n?o-1:0,h=n?-1:1;o=e[t+d];for(d+=h,r=o&(1<<-u)-1,o>>=-u,u+=a;0<u;r=256*r+e[t+d],d+=h,u-=8);for(s=r&(1<<-u)-1,r>>=-u,u+=i;0<u;s=256*s+e[t+d],d+=h,u-=8);if(0===r)r=1-c;else{if(r===l)return s?NaN:1/0*(o?-1:1);s+=Math.pow(2,i),r-=c}return(o?-1:1)*s*Math.pow(2,r-i)},t.write=function(e,t,n,i,o,r){var s,a,l=8*r-o-1,c=(1<<l)-1,u=c>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=i?0:r-1,f=i?1:-1;r=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(i=Math.pow(2,-s))<1&&(s--,i*=2),2<=(t+=1<=s+u?d/i:d*Math.pow(2,1-u))*i&&(s++,i/=2),c<=s+u?(a=0,s=c):1<=s+u?(a=(t*i-1)*Math.pow(2,o),s+=u):(a=t*Math.pow(2,u-1)*Math.pow(2,o),s=0));8<=o;e[n+h]=255&a,h+=f,a/=256,o-=8);for(s=s<<o|a,l+=o;0<l;e[n+h]=255&s,h+=f,s/=256,l-=8);e[n+h-f]|=128*r}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){var i=n(231);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("1dc7b077",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(233);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("435e9063",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(235);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("4be95e8d",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(237);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("30099326",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(239);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("509c544d",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(241);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("17f3fae9",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(243);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("599f1ae6",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(245);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("44b9fd97",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(247);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("1361788f",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(249);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("10658819",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(251);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("2b1bc6ff",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(253);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("24d60eed",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(255);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("9e6f17da",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(257);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("47844e5a",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(259);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("46586331",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(261);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("430f9acb",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(263);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("460b1e71",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(265);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("0b860a59",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"",""])},function(e,t,n){e.exports=n.p+"theme-chalk/images/notData.png"},function(e,t,n){var i=n(268);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(3).default)("4dcf9f51",i,!0,{})},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,".generateForm[data-v-f384d7c4]{margin:0 auto}.generateForm/deep/.widget-form-list-table>.el-form-item__content .el-form-item__label[data-v-f384d7c4]{display:none}.generateForm/deep/.widget-form-list-table>.el-form-item__content .el-form-item__content[data-v-f384d7c4]{margin-left:0!important}.generateForm .form-hideLabel .el-form-item__label[data-v-f384d7c4]{display:none}.generateForm .form-hideLabel .el-form-item__content[data-v-f384d7c4]{margin-left:0!important}.generateForm .widget-form-list-filler[data-v-f384d7c4],.generateForm .widget-form-list-image[data-v-f384d7c4]{margin-bottom:0!important}.generateForm .tableH5 .tableH5-item>div[data-v-f384d7c4]{display:flex}.generateForm .tableH5 .tableH5-item>div .actions[data-v-f384d7c4]{align-items:center;justify-content:right}",""])},function(e,t,n){"use strict";var i=n(6),o=n(40),r=n(270),s=n(47),a=function e(t){var n=new r(t),a=o(r.prototype.request,n);return i.extend(a,r.prototype,n),i.extend(a,n),a.create=function(n){return e(s(t,n))},a}(n(27));a.Axios=r,a.CanceledError=n(21),a.CancelToken=n(284),a.isCancel=n(46),a.VERSION=n(48).version,a.toFormData=n(43),a.AxiosError=n(19),a.Cancel=a.CanceledError,a.all=function(e){return Promise.all(e)},a.spread=n(285),a.isAxiosError=n(286),e.exports=a,e.exports.default=a},function(e,t,n){"use strict";var i=n(6),o=n(41),r=n(271),s=n(272),a=n(47),l=n(45),c=n(283),u=c.validators;function d(e){this.defaults=e,this.interceptors={request:new r,response:new r}}d.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=a(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n,i=(void 0!==(e=t.transitional)&&c.assertOptions(e,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1),[]),o=!0,r=(this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,i.unshift(e.fulfilled,e.rejected))})),[]);if(this.interceptors.response.forEach((function(e){r.push(e.fulfilled,e.rejected)})),o){for(var l=t;i.length;){var d=i.shift(),h=i.shift();try{l=d(l)}catch(e){h(e);break}}try{n=s(l)}catch(e){return Promise.reject(e)}for(;r.length;)n=n.then(r.shift(),r.shift())}else{var f=[s,void 0];for(Array.prototype.unshift.apply(f,i),f=f.concat(r),n=Promise.resolve(t);f.length;)n=n.then(f.shift(),f.shift())}return n},d.prototype.getUri=function(e){e=a(this.defaults,e);var t=l(e.baseURL,e.url);return o(t,e.params,e.paramsSerializer)},i.forEach(["delete","get","head","options"],(function(e){d.prototype[e]=function(t,n){return this.request(a(n||{},{method:e,url:t,data:(n||{}).data}))}})),i.forEach(["post","put","patch"],(function(e){function t(t){return function(n,i,o){return this.request(a(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}d.prototype[e]=t(),d.prototype[e+"Form"]=t(!0)})),e.exports=d},function(e,t,n){"use strict";var i=n(6);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){i.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},function(e,t,n){"use strict";var i=n(6),o=n(273),r=n(46),s=n(27),a=n(21);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new a}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=i.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),i.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||s.adapter)(e).then((function(t){return l(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return r(t)||(l(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var i=n(6),o=n(27);e.exports=function(e,t,n){var r=this||o;return i.forEach(n,(function(n){e=n.call(r,e,t)})),e}},function(e,t,n){"use strict";var i=n(6);e.exports=function(e,t){i.forEach(e,(function(n,i){i!==t&&i.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[i])}))}},function(e,t,n){"use strict";var i=n(19);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new i("Request failed with status code "+n.status,[i.ERR_BAD_REQUEST,i.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}},function(e,t,n){"use strict";var i=n(6);e.exports=i.isStandardBrowserEnv()?{write:function(e,t,n,o,r,s){var a=[];a.push(e+"="+encodeURIComponent(t)),i.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),i.isString(o)&&a.push("path="+o),i.isString(r)&&a.push("domain="+r),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){return(e=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)")))?decodeURIComponent(e[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var i=n(6),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"];e.exports=function(e){var t,n,r={};return e&&i.forEach(e.split("\n"),(function(e){n=e.indexOf(":"),t=i.trim(e.substr(0,n)).toLowerCase(),n=i.trim(e.substr(n+1)),!t||r[t]&&0<=o.indexOf(t)||(r[t]="set-cookie"===t?(r[t]||[]).concat([n]):r[t]?r[t]+", "+n:n)})),r}},function(e,t,n){"use strict";var i,o,r,s=n(6);function a(e){return o&&(r.setAttribute("href",e),e=r.href),r.setAttribute("href",e),{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}}e.exports=s.isStandardBrowserEnv()?(o=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),i=a(window.location.href),function(e){return(e=s.isString(e)?a(e):e).protocol===i.protocol&&e.host===i.host}):function(){return!0}},function(e,t,n){"use strict";e.exports=function(e){return(e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e))&&e[1]||""}},function(e,t){e.exports=null},function(e,t,n){"use strict";var i=n(48).version,o=n(19),r={},s=(["object","boolean","number","function","string","symbol"].forEach((function(e,t){r[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}})),{});r.transitional=function(e,t,n){function r(e,t){return"[Axios v"+i+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,i,a){if(!1===e)throw new o(r(i," has been removed"+(t?" in "+t:"")),o.ERR_DEPRECATED);return t&&!s[i]&&(s[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,a)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new o("options must be an object",o.ERR_BAD_OPTION_VALUE);for(var i=Object.keys(e),r=i.length;0<r--;){var s=i[r];if(a=t[s]){var a,l=e[s];if(!0!==(a=void 0===l||a(l,s,e)))throw new o("option "+s+" must be "+a,o.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new o("Unknown option "+s,o.ERR_BAD_OPTION)}},validators:r}},function(e,t,n){"use strict";var i=n(21);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");this.promise=new Promise((function(e){t=e}));var t,n=this;this.promise.then((function(e){if(n._listeners){for(var t=n._listeners.length,i=0;i<t;i++)n._listeners[i](e);n._listeners=null}})),this.promise.then=function(e){var t;return(e=new Promise((function(e){n.subscribe(e),t=e})).then(e)).cancel=function(){n.unsubscribe(t)},e},e((function(e){n.reason||(n.reason=new i(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},o.prototype.unsubscribe=function(e){this._listeners&&-1!==(e=this._listeners.indexOf(e))&&this._listeners.splice(e,1)},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";var i=n(6);e.exports=function(e){return i.isObject(e)&&!0===e.isAxiosError}},function(e){e.exports=JSON.parse('{"name":"tianheng-ui","description":"A Vue.js project","version":"0.0.65","author":"shu lang <403732931@qq.com>","license":"MIT","private":false,"main":"./lib/tianheng-ui.js","style":"lib/theme-chalk/index.css","scripts":{"dev":"cross-env NODE_ENV=development webpack-dev-server --open --hot","build":"cross-env NODE_ENV=preview webpack --progress --hide-modules","build:npm":"cross-env NODE_ENV=production webpack --progress --hide-modules"},"dependencies":{"ace-builds":"^1.4.13","axios":"^0.27.2","bpmn-js-sketchy":"^0.5.3","bpmn-js-task-resize":"^1.2.0","bpmn-js-token-simulation":"^0.10.0","clipboard":"^2.0.11","diagram-js-minimap":"^2.0.4","element-ui":"^2.15.6","highlight.js":"^10.5.0","min-dash":"^3.5.2","mini-css-extract-plugin":"^1.6.2","normalize.css":"^8.0.1","nprogress":"^0.2.0","viewerjs":"^1.10.5","vue":"^2.5.11","vue-i18n":"^5.0.3","vue-router":"^3.5.3","vue2-editor":"^2.10.3","vuedraggable":"^2.24.3","vuex":"^3.6.2","x2js":"^3.4.2","xlsx":"^0.18.5","xml-js":"^1.6.11"},"browserslist":["> 1%","last 2 versions","not ie <= 8"],"devDependencies":{"@babel/core":"^7.0.0","@babel/plugin-proposal-class-properties":"^7.0.0","@babel/plugin-proposal-json-strings":"^7.0.0","@babel/plugin-syntax-dynamic-import":"^7.0.0","@babel/plugin-syntax-import-meta":"^7.0.0","@babel/preset-env":"^7.0.0","@types/ace":"0.0.42","@vue/babel-helper-vue-jsx-merge-props":"^1.4.0","@vue/babel-preset-jsx":"^1.4.0","babel-loader":"^8.2.5","babel-plugin-import":"^1.13.5","bpmn-js":"^8.8.3","bpmn-js-properties-panel":"^0.37.2","camunda-bpmn-moddle":"^4.4.1","cross-env":"^5.0.5","css-loader":"^0.28.7","file-loader":"^1.1.4","html-webpack-plugin":"^4.5.0","less":"^3.9.0","less-loader":"^4.1.0","sass":"^1.55.0","sass-loader":"^7.3.1","style-loader":"^2.0.0","uglifyjs-webpack-plugin":"^2.2.0","vue-loader":"^14.2.4","vue-template-compiler":"^2.4.4","webpack":"^4.46.0","webpack-cli":"^3.3.12","webpack-dev-server":"^3.11.3"},"files":["lib","packages"],"homepage":"","keywords":["tianheng","tianheng-ui"]}')},function(e,t,n){"use strict";n.r(t),n.d(t,"Cell",(function(){return o})),n.d(t,"Icons",(function(){return s})),n.d(t,"Table",(function(){return d})),n.d(t,"TableAction",(function(){return f})),n.d(t,"TableSearch",(function(){return g})),n.d(t,"TableTools",(function(){return v})),n.d(t,"Empty",(function(){return w})),n.d(t,"Dialog",(function(){return x})),n.d(t,"Card",(function(){return _})),n.d(t,"CodeEditor",(function(){return S})),n.d(t,"Button",(function(){return T})),n.d(t,"Image",(function(){return O})),n.d(t,"ImagePreview",(function(){return R})),n.d(t,"Row",(function(){return I})),n.d(t,"Col",(function(){return D})),n.d(t,"Upload",(function(){return z})),n.d(t,"MakingForm",(function(){return vl})),n.d(t,"GenerateForm",(function(){return J}));var i=n(12),o=(i.a.install=function(e){e.component(i.a.name,i.a)},i.a),r=n(18),s=(r.a.install=function(e){e.component(r.a.name,r.a)},r.a),a={name:"TableColumn",props:{options:{type:Array,default:function(){return[]}}}},l=n(0);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}a={name:"ThTable",components:{TableColumn:Object(l.a)(a,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._l(e.options,(function(t,i){return[t.hide?e._e():[t.type?n("el-table-column",{key:i,attrs:{type:t.type,label:t.label,width:"50"}}):t.children?n("el-table-column",{key:i,attrs:{prop:t.prop,label:t.label,width:t.width,align:t.align,fixed:t.fixed,sortable:t.sortable,"sort-method":t.sortMethod,"show-overflow-tooltip":t.showOverflowTooltip}},[n("TableColumn",{key:i,attrs:{options:t.children}})],1):n("el-table-column",{key:i,attrs:{prop:t.prop,label:t.label,width:t.width,align:t.align,fixed:t.fixed,sortable:t.sortable,"sort-method":t.sortMethod,"show-overflow-tooltip":t.showOverflowTooltip},scopedSlots:e._u([{key:"default",fn:function(i){return[t.slot?e._t("slot",null,{scope:i,option:t}):n("span",[e._v(e._s(i.row[t.prop]))])]}}],null,!0)})]]}))],2)}),[],!1,(function(e){n(115)}),null,null).exports},props:{data:{type:Array,default:function(){return[]}},options:{type:Array,default:function(){return[]}},dblclick:{type:Function,default:function(){return null}},stripe:{type:Boolean,default:function(){return!1}},treeProps:{type:Object,default:function(){return{}}},pageInfo:{type:Object,default:function(){return{}}},loading:{type:Boolean,default:function(){return!1}},height:String|Number,rowKey:String|Function,showPage:{type:Boolean,default:function(){return!0}},emptyText:{type:String,default:function(){return"暂无数据"}},loadingText:{type:String,default:function(){return"加载中"}},border:{type:Boolean,default:function(){return!1}},highlightCurrentRow:{type:Boolean,default:function(){return!1}}},data:function(){return{}},methods:{handleSelectionChange:function(e){e&&this.$emit("selection-change",e)},handleSingleSelect:function(e,t){e&&this.$emit("current-change",e)},handleSizeChange:function(e){this.pageInfo.pageSize=e,this.$emit("page-number-change",this.pageInfo.currentPage,this.pageInfo.pageSize)},handleCurrentChange:function(e){this.pageInfo.currentPage=e,this.$emit("page-number-change",this.pageInfo.currentPage,this.pageInfo.pageSize)},handlePrevClick:function(){1!==this.pageInfo.currentPage&&(--this.pageInfo.currentPage,this.$emit("page-number-change",this.pageInfo.currentPage,this.pageInfo.pageSize))},handleNextClick:function(){this.pageInfo.currentPage!==this.pageInfo.pageCount&&(this.pageInfo.currentPage+=1,this.$emit("page-number-change",this.pageInfo.currentPage,this.pageInfo.pageSize))},getTable:function(){return this.$refs.th_table},handleFormatTime:function(e,t){var n;return 0===arguments.length?null:(t=t||"yyyy-MM-dd HH:mm:ss",null==e||"null"===e?"":(n={yyyy:(e="object"===c(e)?e:("number"==typeof(e="string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e):e)&&10===e.toString().length&&(e*=1e3),new Date(e))).getFullYear(),MM:e.getMonth()+1,dd:e.getDate(),HH:e.getHours(),mm:e.getMinutes(),ss:e.getSeconds(),a:e.getDay()},t.replace(/(yyyy|MM|dd|HH|mm|ss|a)/g,(function(e,t){var i=n[t];return"a"===t?["日","一","二","三","四","五","六"][i]:(i=0<e.length&&i<10?"0"+i:i)||0}))))},objectSpanMethod:function(e){this.$emit("span-method",e)}}};var u=Object(l.a)(a,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"th-table"},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"th_table",attrs:{height:e.height,data:e.data,"row-key":e.rowKey,stripe:e.stripe,border:e.border,"highlight-current-row":e.highlightCurrentRow,"tree-props":e.treeProps,"span-method":e.objectSpanMethod},on:{"current-change":e.handleSingleSelect,"row-dblclick":e.dblclick,"selection-change":e.handleSelectionChange},scopedSlots:e._u([{key:"empty",fn:function(){return[n("div",[e._v("\n "+e._s(e.loading?e.loadingText||"加载中":e.emptyText||"暂无数据")+"\n ")])]},proxy:!0}])},[e._l(e.options,(function(t,i){return[t.hide?e._e():[t.type?n("el-table-column",{key:i,attrs:{type:t.type,label:t.label,width:"50"}}):t.children?n("el-table-column",{key:i,attrs:{prop:t.prop,label:t.label,width:t.width,align:t.align||"left",fixed:t.fixed||null,sortable:t.sortable,"sort-method":t.sortMethod,"show-overflow-tooltip":t.showOverflowTooltip}},[n("table-column",{attrs:{options:t.children}})],1):n("el-table-column",{key:i,attrs:{prop:t.prop,label:t.label,width:t.width,align:t.align||"left",fixed:t.fixed||null,sortable:t.sortable,"sort-method":t.sortMethod,"show-overflow-tooltip":t.showOverflowTooltip},scopedSlots:e._u([{key:"default",fn:function(i){return[t.slot?e._t(t.slot,null,{scope:i,option:t}):t.formatTime?n("span",[e._v("\n "+e._s(e.handleFormatTime(i.row[t.alias||t.prop],t.format))+"\n ")]):t.format?n("span",[e._v("\n "+e._s(t.format(i.row))+"\n ")]):t.alias?n("span",[e._v(e._s(i.row[t.alias]))]):n("span",[e._v(e._s(i.row[t.prop]))])]}}],null,!0)})]]}))],2),e._v(" "),0<Object.keys(e.pageInfo).length&&e.showPage?n("div",{staticClass:"pagination"},[n("el-pagination",{attrs:{"current-page":e.pageInfo.currentPage,"page-sizes":e.pageInfo.sizes,"page-size":e.pageInfo.pageSize,layout:"total, prev, pager, next, sizes",total:e.pageInfo.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"prev-click":e.handlePrevClick,"next-click":e.handleNextClick}})],1):e._e()],1)}),[],!1,(function(e){n(113)}),"data-v-2a65ee46",null).exports,d=(u.install=function(e){e.component(u.name,u)},u);a={name:"ThTableAction",props:{actions:{type:Array,default:function(){return[]}},scope:{type:Object|String},permission:{type:Object,required:!1},msg:{type:String,default:"确定删除本条数据吗?"}},data:function(){return{pop:!1,loadingDel:!1}},computed:{btnDisabled:function(){var e=this;return function(t){return"boolean"==typeof t.disabled?t.disabled:"function"==typeof t.disabled?t.disabled(e.scope):void 0}},btnHide:function(){var e=this;return function(t){return"boolean"==typeof t.hide?t.hide:"function"==typeof t.hide?t.hide(e.scope):void 0}}},methods:{handleCancel:function(){this.loadingDel=!1,this.pop=!1},handleClick:function(e,t){this.$emit("on-click",e,t)},handleDelete:function(e){var t=this;this.loadingDel=!0,this.handleClick(e,(function(e){e?t.handleCancel():t.loadingDel=!1}))},handleMore:function(e,t,n){for(var i=0;i<n.children.length;i++){var o=n.children[i];if(o.act===e){this.handleClick(o);break}}}}};var h=Object(l.a)(a,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"th-table-action",on:{click:function(e){e.stopPropagation()}}},[e._l(e.actions,(function(t,i){return["delete"!==t.act||e.btnHide(t)?"more"!==t.act||e.btnHide(t)?e.btnHide(t)?e._e():n("el-button",{key:i,style:t.style,attrs:{type:t.type,icon:t.icon,disabled:e.btnDisabled(t)},on:{click:function(n){return e.handleClick(t)}}},[e._v(e._s(t.name))]):n("el-dropdown",{key:i,attrs:{trigger:t.trigger||"click",placement:t.placement||"bottom-end",disabled:e.btnDisabled(t)},on:{command:function(n){e.handleMore(n,i,t)}}},[n("el-button",{style:t.style,attrs:{disabled:e.loadingDel||e.btnDisabled(t),type:t.type,icon:t.icon}},[e._v(e._s(t.name))]),e._v(" "),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(t.children,(function(t,i){return n("el-dropdown-item",{key:i,style:t.style,attrs:{command:t.act,icon:t.icon,disabled:t.disabled}},[e._v(e._s(t.name))])})),1)],1):n("el-popover",{key:i,attrs:{placement:"top",width:"180",trigger:"manual"},model:{value:e.pop,callback:function(t){e.pop=t},expression:"pop"}},[n("p",[e._v(e._s(t.delmsg||e.msg))]),e._v(" "),n("div",{staticStyle:{"text-align":"right",margin:"0"}},[n("el-button",{attrs:{type:"text",disabled:e.loadingDel},on:{click:e.handleCancel}},[e._v("取消")]),e._v(" "),n("el-button",{attrs:{type:"text",loading:e.loadingDel},on:{click:function(n){return e.handleDelete(t)}}},[e._v("确定")])],1),e._v(" "),n("el-button",{style:t.style,attrs:{slot:"reference",disabled:e.loadingDel||e.btnDisabled(t),type:t.type,icon:t.icon},on:{click:function(t){e.pop=!0}},slot:"reference"},[e._v(e._s(t.name))])],1)]}))],2)}),[],!1,(function(e){n(117)}),null,null).exports,f=(h.install=function(e){e.component(h.name,h)},h);a={name:"ThTableSearch",props:{options:{type:Array,default:function(){return[]}}},data:function(){return{params:{},datePickerTypes:["year","month","date","dates","week","datetime","datetimerange","daterange","monthrange"]}},watch:{options:{handler:function(e,t){var n=this;e&&e.length&&e.map((function(e){n.$set(n.params,e.options.prop,e.options.defaultValue)}))},deep:!0,immediate:!0}},methods:{doSearch:function(){this.$emit("on-search",this.params)},doReset:function(){this.$emit("on-reset",this.params)}}};var p=Object(l.a)(a,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"th-table-search"},[e._l(e.options,(function(t,i){return n("div",{key:i,staticClass:"th-table-search-item"},[n("span",{staticClass:"th-table-search-item-title"},[e._v(e._s(t.options.name)+":")]),e._v(" "),"input"===t.type?n("el-input",{style:{width:t.options.width+"px"},attrs:{placeholder:t.options.placeholder||"请输入",disabled:t.options.disabled,clearable:""},model:{value:e.params[t.options.prop],callback:function(n){e.$set(e.params,t.options.prop,n)},expression:"params[item.options.prop]"}}):e._e(),e._v(" "),"date"===t.type?n("el-date-picker",{style:{width:t.options.width+"px"},attrs:{type:t.options.dateType||"date",format:t.options.format,"value-format":t.options.valueFormat,"range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",clearable:""},model:{value:e.params[t.options.prop],callback:function(n){e.$set(e.params,t.options.prop,n)},expression:"params[item.options.prop]"}}):e._e(),e._v(" "),"select"===t.type?n("el-select",{style:{width:t.options.width+"px"},attrs:{placeholder:t.options.placeholder||"请选择",multiple:t.options.multiple,"multiple-limit":t.options.multipleLimit,filterable:t.options.filterable,disabled:t.options.disabled,clearable:""},model:{value:e.params[t.options.prop],callback:function(n){e.$set(e.params,t.options.prop,n)},expression:"params[item.options.prop]"}},[t.options.remote?e._l(t.options.options,(function(e){return n("el-option",{key:e[t.option.props.value],attrs:{label:e[t.option.props.label],value:e[t.option.props.value]}})})):e._l(t.options.options,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],2):e._e()],1)})),e._v(" "),n("el-button",{attrs:{type:"primary",icon:"el-icon-search",plain:""},on:{click:e.doSearch}},[e._v("查询")]),e._v(" "),n("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-right",plain:""},on:{click:e.doReset}},[e._v("重置")])],2)}),[],!1,(function(e){n(119)}),"data-v-03530a45",null).exports,g=(p.install=function(e){e.component(p.name,p)},p);a={name:"ThTableTools",props:{options:{type:Array,default:function(){return[]}},disabled:{type:Object,default:function(){return{}}}},data:function(){return{}},methods:{handleClick:function(e){this.$emit("on-click",e)}}};var m=Object(l.a)(a,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"th-tools"},e._l(e.options,(function(t,i){return n("el-button",{key:i,style:t.style,attrs:{type:t.type,icon:t.icon,disabled:t.disabled||e.disabled[t.act],loading:t.loading},on:{click:function(n){return e.handleClick(t)}}},[e._v(e._s(t.name))])})),1)}),[],!1,(function(e){n(121)}),"data-v-3d9c25f1",null).exports,v=(m.install=function(e){e.component(m.name,m)},m),b=(a={name:"ThEmpty",props:{image:{type:String,default:""},imageSize:{type:Number,default:300},description:{type:String,default:"暂无数据"}},computed:{imageStyle:function(){return{width:this.imageSize?"".concat(this.imageSize,"px"):""}}}},Object(l.a)(a,(function(){var e=this,t=e.$createElement;return(t=e._self._c||t)("div",{staticClass:"th-empty"},[e.image?t("img",{staticClass:"th-empty-img",style:e.imageStyle,attrs:{src:e.image,alt:""}}):e._t("image"),e._v(" "),e.$slots.description?e._t("description"):t("p",{staticClass:"th-empty-description"},[e._v(e._s(e.description))]),e._v(" "),e.$slots.default?t("div",{staticClass:"th-empty-bottom"},[e._t("default")],2):e._e()],2)}),[],!1,null,null,null).exports),w=(b.install=function(e){e.component(b.name,b)},b),y=(a={name:"ThDialog",model:{prop:"visible",event:"input"},props:{visible:Boolean,loading:Boolean,title:{type:String,default:""},showAffirm:{type:Boolean,default:!0},affirmText:{type:String,default:"确 认"},showCancel:{type:Boolean,default:!0},cancelText:{type:String,default:"取 消"},showClose:{type:Boolean,default:!0},closeIcon:{type:String,default:"el-icon-close"},fullscreen:{type:Boolean,default:!1},showFullscreen:{type:Boolean,default:!0},fullscreenIcon:{type:String,default:"el-icon-full-screen"},showFooter:{type:Boolean,default:!0}},data:function(){return{formRules:{},dialogFullscreen:this.fullscreen}},watch:{fullscreen:function(e){this.dialogFullscreen=e}},methods:{handleClose:function(){this.$emit("input",!this.visible),this.$emit("on-close")},handleAffirm:function(){this.$emit("on-affirm")},handleFullscreenChange:function(){var e=this;this.dialogFullscreen=!this.dialogFullscreen,this.$nextTick((function(){e.$emit("on-fullscreen")}))}}},Object(l.a)(a,(function(){var e=this,t=e.$createElement;return(t=e._self._c||t)("el-dialog",{staticClass:"th-dialog",attrs:{visible:e.visible,fullscreen:e.dialogFullscreen,"close-on-click-modal":!1,"show-close":!1,"before-close":e.handleClose},on:{"update:visible":function(t){e.visible=t}}},[t("div",{attrs:{slot:"title"},slot:"title"},[t("div",{staticClass:"th-dialog__header",attrs:{slot:"title"},slot:"title"},[t("div",{staticClass:"th-dialog__title"},[e._v(e._s(e.title))]),e._v(" "),t("div",{staticClass:"th-dialog__action"},[e.showFullscreen?t("i",{staticClass:"th-dialog__action_item",class:e.fullscreenIcon,on:{click:e.handleFullscreenChange}}):e._e(),e._v(" "),e.showClose?t("i",{staticClass:"th-dialog__action_item",class:e.closeIcon,on:{click:e.handleClose}}):e._e()])])]),e._v(" "),e._t("default"),e._v(" "),e.$slots.footer?t("template",{slot:"footer"},[e._t("footer")],2):e.showFooter?t("template",{slot:"footer"},[e.showAffirm?t("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:e.handleAffirm}},[e._v(e._s(e.affirmText))]):e._e(),e._v(" "),e.showCancel?t("el-button",{on:{click:e.handleClose}},[e._v(e._s(e.cancelText))]):e._e()],1):e._e()],2)}),[],!1,null,null,null).exports),x=(y.install=function(e){e.component(y.name,y)},y),k=(a={name:"ThCard",props:{showHeader:{type:Boolean,default:!0},title:String,label:String,bodyStyle:String|Object,shadow:{type:String,default:"always"},border:Boolean},computed:{seflClass:function(){var e="".concat(this.shadow,"-shadow");return this.border?"".concat(e," th-is_border"):e}}},Object(l.a)(a,(function(){var e=this,t=e.$createElement;return(t=e._self._c||t)("div",{staticClass:"th-card",class:e.seflClass},[e.showHeader?[e.$slots.header?e._t("header"):t("div",{staticClass:"th-card-header"},[e.title?t("span",[e._v(e._s(e.title))]):e._t("title"),e._v(" "),e.label?t("span",[e._v(e._s(e.label))]):e._t("label")],2)]:e._e(),e._v(" "),t("div",{staticClass:"th-card-body",style:e.bodyStyle},[e._t("default")],2)],2)}),[],!1,null,null,null).exports),_=(k.install=function(e){e.component(k.name,k)},k),C=n(5),S=(C.a.install=function(e){e.component(C.a.name,C.a)},C.a),E=(a={name:"ThButton",inject:{thForm:{default:""},thFormItem:{default:""}},props:{type:{type:String,default:"default"},size:String,icon:{type:String,default:""},nativeType:{type:String,default:"button"},loading:Boolean,disabled:Boolean,plain:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean},computed:{selfClass:function(){return[this.type?"th-button-"+this.type:"",this.buttonSize?"th-button-size-"+this.buttonSize:"",{"is-disabled":this.buttonDisabled,"is-loading":this.loading,"is-plain":this.plain,"is-round":this.round,"is-circle":this.circle}]},_thFormItemSize:function(){return(this.thFormItem||{}).thFormItemSize},buttonSize:function(){return this.size||this._thFormItemSize||(this.$ELEMENT||{}).size},buttonDisabled:function(){return(this.$options.propsData.hasOwnProperty("disabled")?this:this.thForm||{}).disabled}},methods:{handleClick:function(e){this.$emit("click",e)}}},Object(l.a)(a,(function(){var e=this,t=e.$createElement;return(t=e._self._c||t)("button",{staticClass:"th-button",class:e.selfClass,attrs:{disabled:e.buttonDisabled||e.loading,autofocus:e.autofocus,type:e.nativeType},on:{click:e.handleClick}},[e.loading?t("i",{staticClass:"el-icon-loading"}):e._e(),e._v(" "),e.icon&&!e.loading?t("i",{class:e.icon}):e._e(),e._v(" "),e.$slots.default?t("span",[e._t("default")],2):e._e()])}),[],!1,null,null,null).exports),T=(E.install=function(e){e.component(E.name,E)},E),A=n(13),O=(A.a.install=function(e){e.component(A.a.name,A.a)},A.a),L=n(17),R=(L.a.install=function(e){e.component(L.a.name,L.a)},L.a),M=n(14),I=(M.a.install=function(e){e.component(M.a.name,M.a)},M.a),N=n(15),D=(N.a.install=function(e){e.component(N.a.name,N.a)},N.a),P=(a=n(107),n.n(a)),F=(a={name:"ElProgress",props:{type:{type:String,default:"line",validator:e=>-1<["line","circle","dashboard"].indexOf(e)},percentage:{type:Number,default:0,required:!0,validator:e=>0<=e&&e<=100},status:{type:String,validator:e=>-1<["success","exception","warning"].indexOf(e)},strokeWidth:{type:Number,default:6},strokeLinecap:{type:String,default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:[String,Array,Function],default:""},format:Function},computed:{barStyle(){var e={};return e.width=this.percentage+"%",e.backgroundColor=this.getCurrentColor(this.percentage),e},relativeStrokeWidth(){return(this.strokeWidth/this.width*100).toFixed(1)},radius(){return"circle"===this.type||"dashboard"===this.type?parseInt(50-parseFloat(this.relativeStrokeWidth)/2,10):0},trackPath(){var e=this.radius,t="dashboard"===this.type;return`\n M 50 50\n m 0 ${t?"":"-"}${e}\n a ${e} ${e} 0 1 1 0 ${t?"-":""}${2*e}\n a ${e} ${e} 0 1 1 0 ${t?"":"-"}${2*e}\n `},perimeter(){return 2*Math.PI*this.radius},rate(){return"dashboard"===this.type?.75:1},strokeDashoffset(){return-1*this.perimeter*(1-this.rate)/2+"px"},trailPathStyle(){return{strokeDasharray:`${this.perimeter*this.rate}px, ${this.perimeter}px`,strokeDashoffset:this.strokeDashoffset}},circlePathStyle(){return{strokeDasharray:`${this.perimeter*this.rate*(this.percentage/100)}px, ${this.perimeter}px`,strokeDashoffset:this.strokeDashoffset,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease"}},stroke(){let e;if(this.color)e=this.getCurrentColor(this.percentage);else switch(this.status){case"success":e="#13ce66";break;case"exception":e="#ff4949";break;case"warning":e="#e6a23c";break;default:e="#20a0ff"}return e},iconClass(){return"warning"===this.status?"el-icon-warning":"line"===this.type?"success"===this.status?"el-icon-circle-check":"el-icon-circle-close":"success"===this.status?"el-icon-check":"el-icon-close"},progressTextSize(){return"line"===this.type?12+.4*this.strokeWidth:.111111*this.width+2},content(){return"function"==typeof this.format?this.format(this.percentage)||"":this.percentage+"%"}},methods:{getCurrentColor(e){return"function"==typeof this.color?this.color(e):"string"==typeof this.color?this.color:this.getLevelColor(e)},getLevelColor(e){var t=this.getColorArray().sort((e,t)=>e.percentage-t.percentage);for(let n=0;n<t.length;n++)if(t[n].percentage>e)return t[n].color;return t[t.length-1].color},getColorArray(){var e=this.color;const t=100/e.length;return e.map((e,n)=>"string"==typeof e?{color:e,percentage:(n+1)*t}:e)}}},Object(l.a)(a,(function(){var e=this,t=e.$createElement;return(t=e._self._c||t)("div",{staticClass:"el-progress",class:["el-progress--"+e.type,e.status?"is-"+e.status:"",{"el-progress--without-text":!e.showText,"el-progress--text-inside":e.textInside}],attrs:{role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"}},["line"===e.type?t("div",{staticClass:"el-progress-bar"},[t("div",{staticClass:"el-progress-bar__outer",style:{height:e.strokeWidth+"px"}},[t("div",{staticClass:"el-progress-bar__inner",style:e.barStyle},[e.showText&&e.textInside?t("div",{staticClass:"el-progress-bar__innerText"},[e._v(e._s(e.content))]):e._e()])])]):t("div",{staticClass:"el-progress-circle",style:{height:e.width+"px",width:e.width+"px"}},[t("svg",{attrs:{viewBox:"0 0 100 100"}},[t("path",{staticClass:"el-progress-circle__track",style:e.trailPathStyle,attrs:{d:e.trackPath,stroke:"#e5e9f2","stroke-width":e.relativeStrokeWidth,fill:"none"}}),e._v(" "),t("path",{staticClass:"el-progress-circle__path",style:e.circlePathStyle,attrs:{d:e.trackPath,stroke:e.stroke,fill:"none","stroke-linecap":e.strokeLinecap,"stroke-width":e.percentage?e.relativeStrokeWidth:0}})])]),e._v(" "),e.showText&&!e.textInside?t("div",{staticClass:"el-progress__text",style:{fontSize:e.progressTextSize+"px"}},[e.status?t("i",{class:e.iconClass}):[e._v(e._s(e.content))]],2):e._e()])}),[],!1,null,null,null).exports),q={name:"ThUploadList",data:function(){return{focusing:!1}},components:{ElProgress:a=(F.install=function(e){e.component(F.name,F)},F)},props:{files:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},handlePreview:Function,listType:String},methods:{parsePercentage:function(e){return parseInt(e,10)},handleClick:function(e){this.handlePreview&&this.handlePreview(e)}}},B=Object(l.a)(q,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition-group",{class:["th-upload-list","th-upload-list--"+e.listType,{"is-disabled":e.disabled}],attrs:{tag:"ul",name:"th-list"}},e._l(e.files,(function(t){return n("li",{key:t.uid,class:["th-upload-list__item","is-"+t.status,e.focusing?"focusing":""],attrs:{tabindex:"0"},on:{keydown:function(n){if(!n.type.indexOf("key")&&e._k(n.keyCode,"delete",[8,46],n.key,["Backspace","Delete","Del"]))return null;e.disabled||e.$emit("remove",t)},focus:function(t){e.focusing=!0},blur:function(t){e.focusing=!1},click:function(t){e.focusing=!1}}},[e._t("default",(function(){return["uploading"!==t.status&&-1<["picture-card","picture"].indexOf(e.listType)?n("img",{staticClass:"th-upload-list__item-thumbnail",attrs:{src:t.url,alt:""}}):e._e(),e._v(" "),n("a",{staticClass:"th-upload-list__item-name",on:{click:function(n){return e.handleClick(t)}}},[n("i",{staticClass:"el-icon-document"}),e._v(e._s(t.name)+"\n ")]),e._v(" "),n("label",{staticClass:"th-upload-list__item-status-label"},[n("i",{class:{"el-icon-upload-success":!0,"el-icon-circle-check":"text"===e.listType,"el-icon-check":-1<["picture-card","picture"].indexOf(e.listType)}})]),e._v(" "),e.disabled?e._e():n("i",{staticClass:"el-icon-close",on:{click:function(n){return e.$emit("remove",t)}}}),e._v(" "),"uploading"===t.status?n("el-progress",{attrs:{type:"picture-card"===e.listType?"circle":"line","stroke-width":"picture-card"===e.listType?6:2,percentage:e.parsePercentage(t.percentage)}}):e._e(),e._v(" "),"picture-card"===e.listType?n("span",{staticClass:"th-upload-list__item-actions"},[e.handlePreview&&"picture-card"===e.listType?n("span",{staticClass:"th-upload-list__item-preview",on:{click:function(n){return e.handlePreview(t)}}},[n("i",{staticClass:"el-icon-zoom-in"})]):e._e(),e._v(" "),e.disabled?e._e():n("span",{staticClass:"th-upload-list__item-delete",on:{click:function(n){return e.$emit("remove",t)}}},[n("i",{staticClass:"el-icon-delete"})])]):e._e()]}),{file:t})],2)})),0)}),[],!1,null,null,null).exports;function j(){}q={name:"ThUploadDrag",props:{disabled:Boolean},inject:{uploader:{default:""}},data:function(){return{dragover:!1}},methods:{onDragover:function(){this.disabled||(this.dragover=!0)},onDrop:function(e){var t;!this.disabled&&this.uploader&&(t=this.uploader.accept,this.dragover=!1,t?this.$emit("file",[].slice.call(e.dataTransfer.files).filter((function(e){var n=e.type,i=-1<(e=e.name).indexOf(".")?".".concat(e.split(".").pop()):"",o=n.replace(/\/.*$/,"");return t.split(",").map((function(e){return e.trim()})).filter((function(e){return e})).some((function(e){return/\..+$/.test(e)?i===e:/\/\*$/.test(e)?o===e.replace(/\/\*$/,""):!!/^[^\/]+\/[^\/]+$/.test(e)&&n===e}))}))):this.$emit("file",e.dataTransfer.files))}}},q={inject:["uploader"],components:{UploadDragger:Object(l.a)(q,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"th-upload-dragger",class:{"is-dragover":e.dragover},on:{drop:function(t){return t.preventDefault(),e.onDrop.apply(null,arguments)},dragover:function(t){return t.preventDefault(),e.onDragover.apply(null,arguments)},dragleave:function(t){t.preventDefault(),e.dragover=!1}}},[e._t("default")],2)}),[],!1,null,null,null).exports},props:{type:String,action:{type:String,required:!0},name:{type:String,default:"file"},data:Object,headers:Object,withCredentials:Boolean,multiple:Boolean,accept:String,onStart:Function,onProgress:Function,onSuccess:Function,onError:Function,beforeUpload:Function,drag:Boolean,onPreview:{type:Function,default:function(){}},onRemove:{type:Function,default:function(){}},fileList:Array,autoUpload:Boolean,listType:String,httpRequest:{type:Function,default:function(e){if("undefined"!=typeof XMLHttpRequest){var t,n=new XMLHttpRequest,i=e.action,o=(n.upload&&(n.upload.onprogress=function(t){0<t.total&&(t.percent=t.loaded/t.total*100),e.onProgress(t)}),new FormData),r=(e.data&&Object.keys(e.data).forEach((function(t){o.append(t,e.data[t])})),o.append(e.filename,e.file,e.file.name),n.onerror=function(t){e.onError(t)},n.onload=function(){if(n.status<200||300<=n.status)return e.onError((t=i,r=(o=n).response?"".concat(o.response.error||o.response):o.responseText?"".concat(o.responseText):"fail to post ".concat(t," ").concat(o.status),(r=new Error(r)).status=o.status,r.method="post",r.url=t,r));var t,o,r;e.onSuccess(function(e){if(!(e=e.responseText||e.response))return e;try{return JSON.parse(e)}catch(t){return e}}(n))},n.open("post",i,!0),e.withCredentials&&"withCredentials"in n&&(n.withCredentials=!0),e.headers||{});for(t in r)r.hasOwnProperty(t)&&null!==r[t]&&n.setRequestHeader(t,r[t]);return n.send(o),n}}},disabled:Boolean,limit:Number,onExceed:Function},data:function(){return{mouseover:!1,reqs:{}}},computed:{classMatch:function(){var e={"th-upload":!0};return e["th-upload--".concat(this.listType)]=!0,e}},methods:{isImage:function(e){return-1!==e.indexOf("image")},handleChange:function(e){(e=e.target.files)&&this.uploadFiles(e)},uploadFiles:function(e){var t=this;this.limit&&this.fileList.length+e.length>this.limit?this.onExceed&&this.onExceed(e,this.fileList):(e=Array.prototype.slice.call(e),0!==(e=this.multiple?e:e.slice(0,1)).length&&e.forEach((function(e){t.onStart(e),t.autoUpload&&t.upload(e)})))},upload:function(e){var t=this;if(this.$refs.input.value=null,!this.beforeUpload)return this.post(e);var n=this.beforeUpload(e);n&&n.then?n.then((function(n){var i=Object.prototype.toString.call(n);if("[object File]"===i||"[object Blob]"===i){for(var o in"[object Blob]"===i&&(n=new File([n],e.name,{type:e.type})),e)e.hasOwnProperty(o)&&(n[o]=e[o]);t.post(n)}else t.post(e)}),(function(){t.onRemove(null,e)})):!1!==n?this.post(e):this.onRemove(null,e)},abort:function(e){var t,n=this.reqs;e?((t=e).uid&&(t=e.uid),n[t]&&n[t].abort()):Object.keys(n).forEach((function(e){n[e]&&n[e].abort(),delete n[e]}))},post:function(e){var t=this,n=e.uid,i={headers:this.headers,withCredentials:this.withCredentials,file:e,data:this.data,filename:this.name,action:this.action,onProgress:function(n){t.onProgress(n,e)},onSuccess:function(i){t.onSuccess(i,e),delete t.reqs[n]},onError:function(i){t.onError(i,e),delete t.reqs[n]}},o=this.httpRequest(i);(this.reqs[n]=o)&&o.then&&o.then(i.onSuccess,i.onError)},handleClick:function(){this.disabled||(this.$refs.input.value=null,this.$refs.input.click())},handleKeydown:function(e){e.target!==e.currentTarget||13!==e.keyCode&&32!==e.keyCode||this.handleClick()}}},q=Object(l.a)(q,(function(){var e=this,t=e.$createElement;return(t=e._self._c||t)("div",{class:e.classMatch,attrs:{tabindex:"0"},on:{click:e.handleClick,keydown:e.handleKeydown}},[e.drag?t("upload-dragger",{attrs:{disabled:e.disabled},on:{file:e.uploadFiles}},[e._t("default")],2):e._t("default"),e._v(" "),t("input",{ref:"input",staticClass:"th-upload__input",attrs:{type:"file",name:e.name,multiple:e.multiple,accept:e.accept},on:{change:e.handleChange}})],2)}),[],!1,null,null,null).exports;a={name:"ThUpload",components:{ElProgress:a,UploadList:B,Upload:q},provide:function(){return{uploader:this}},inject:{elForm:{default:""}},props:{action:{type:String,required:!0},headers:{type:Object,default:function(){return{}}},data:Object,multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,dragger:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:String,type:{type:String,default:"select"},beforeUpload:Function,beforeRemove:Function,onRemove:{type:Function,default:j},onChange:{type:Function,default:j},onPreview:{type:Function},onSuccess:{type:Function,default:j},onProgress:{type:Function,default:j},onError:{type:Function,default:j},fileList:{type:Array,default:function(){return[]}},autoUpload:{type:Boolean,default:!0},listType:{type:String,default:"text"},httpRequest:Function,disabled:Boolean,limit:Number,onExceed:{type:Function,default:j}},data:function(){return{uploadFiles:[],dragOver:!1,draging:!1,tempIndex:1}},computed:{uploadDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{listType:function(e){"picture-card"!==e&&"picture"!==e||(this.uploadFiles=this.uploadFiles.map((function(e){if(!e.url&&e.raw)try{e.url=URL.createObjectURL(e.raw)}catch(e){console.error("[Element Error][Upload]",e)}return e})))},fileList:{immediate:!0,handler:function(e){var t=this;this.uploadFiles=e.map((function(e){return e.uid=e.uid||Date.now()+t.tempIndex++,e.status=e.status||"success",e}))}}},methods:{handleStart:function(e){e.uid=Date.now()+this.tempIndex++;var t={status:"ready",name:e.name,size:e.size,percentage:0,uid:e.uid,raw:e};if("picture-card"===this.listType||"picture"===this.listType)try{t.url=URL.createObjectURL(e)}catch(e){return void console.error("[Element Error][Upload]",e)}this.uploadFiles.push(t),this.onChange(t,this.uploadFiles)},handleProgress:function(e,t){t=this.getFile(t),this.onProgress(e,t,this.uploadFiles),t.status="uploading",t.percentage=e.percent||0},handleSuccess:function(e,t){(t=this.getFile(t))&&(t.status="success",t.response=e,this.onSuccess(e,t,this.uploadFiles),this.onChange(t,this.uploadFiles))},handleError:function(e,t){t=this.getFile(t);var n=this.uploadFiles;t.status="fail",n.splice(n.indexOf(t),1),this.onError(e,t,this.uploadFiles),this.onChange(t,this.uploadFiles)},handleRemove:function(e,t){function n(){i.abort(e);var t=i.uploadFiles;t.splice(t.indexOf(e),1),i.onRemove(e,t)}var i=this;t&&(e=this.getFile(t)),this.beforeRemove?"function"==typeof this.beforeRemove&&((t=this.beforeRemove(e,this.uploadFiles))&&t.then?t.then((function(){n()}),j):!1!==t&&n()):n()},getFile:function(e){var t;return this.uploadFiles.every((function(n){return!(t=e.uid===n.uid?n:null)})),t},abort:function(e){this.$refs["upload-inner"].abort(e)},clearFiles:function(){this.uploadFiles=[]},submit:function(){var e=this;this.uploadFiles.filter((function(e){return"ready"===e.status})).forEach((function(t){e.$refs["upload-inner"].upload(t.raw)}))}},beforeDestroy:function(){this.uploadFiles.forEach((function(e){e.url&&0===e.url.indexOf("blob:")&&URL.revokeObjectURL(e.url)}))},render:function(e){var t,n=this,i=(this.showFileList&&(t=e(B,{attrs:{disabled:this.uploadDisabled,listType:this.listType,files:this.uploadFiles,handlePreview:this.onPreview},on:{remove:this.handleRemove}},[function(e){if(n.$scopedSlots.file)return n.$scopedSlots.file({file:e.file})}])),{props:{type:this.type,drag:this.drag,action:this.action,multiple:this.multiple,"before-upload":this.beforeUpload,headers:this.headers,name:this.name,data:this.data,accept:this.accept,fileList:this.uploadFiles,autoUpload:this.autoUpload,listType:this.listType,disabled:this.uploadDisabled,limit:this.limit,"on-exceed":this.onExceed,"on-start":this.handleStart,"on-progress":this.handleProgress,"on-success":this.handleSuccess,"on-error":this.handleError,"on-preview":this.onPreview,"on-remove":this.handleRemove,"http-request":this.httpRequest},ref:"upload-inner"}),o=this.$slots.trigger||this.$slots.default;i=e("upload",P()([{},i]),[o]);return e("div",["picture-card"===this.listType?t:"",this.$slots.trigger?[i,this.$slots.default]:i,this.$slots.tip,"picture-card"!==this.listType?t:""])}};var W=Object(l.a)(a,void 0,void 0,!1,null,null,null).exports,z=(W.install=function(e){e.component(W.name,W)},W),H=(q=n(7),a=n.n(q),q=n(28),q=n.n(q),{insert:"head",singleton:!1}),U=(H=(a()(q.a,H),q.a.locals,n(29)),q=n.n(H),H={insert:"head",singleton:!1},H=(a()(q.a,H),q.a.locals,n(30)),q=n.n(H),H={insert:"head",singleton:!1},H=(a()(q.a,H),q.a.locals,n(31)),q=n.n(H),H={insert:"head",singleton:!1},a=(a()(q.a,H),q.a.locals,n(4)),H=n.n(a),q=n(108),n.n(q)),V=n(23);a={components:{ThDialog:y,ThCodeEditor:C.a},props:{data:{type:Object,default:function(){return{}}},remoteApis:{type:Array,default:function(){return[]}},config:{type:Object,default:function(){return{}}}},data:function(){return{compsData:JSON.parse(JSON.stringify(V.a)),validator:{type:null,required:null,pattern:null,range:null,length:null},eventsDialog:{visible:!1,eventScript:[],active:null},aceCompletions:[{meta:"设置数据",caption:"setData",value:"setData({ })",score:1},{meta:"获取数据",caption:"getData",value:"getData()",score:1},{meta:"显示组件",caption:"display",value:"display([ ])",score:1},{meta:"隐藏组件",caption:"hide",value:"hide([ ])",score:1}]}},computed:{show:function(){return!!(this.data&&0<Object.keys(this.data).length)}},created:function(){for(var e=0,t=Object.keys(this.compsData);e<t.length;e++){var i=t[e];this.compsData[i].content=n(152)("./".concat(i)).default}},methods:{generateRule:function(){var e=this;this.data.rules=[],Object.keys(this.validator).forEach((function(t){e.validator[t]&&e.data.rules.push(e.validator[t])}))},validateRequired:function(e){var t=this;this.validator.required=e?{required:!0,message:"".concat(this.data.name,"必须填写")}:null,this.$nextTick((function(){t.generateRule()}))},validateDataType:function(e){if(!this.show)return!1;this.validator.type=e?{type:e,message:this.data.name+"格式不正确"}:null,this.generateRule()},valiatePattern:function(e){if(!this.show)return!1;this.validator.pattern=e?{pattern:e,message:this.data.name+"格式不匹配"}:null,this.generateRule()},handleInputNumberChange:function(){this.data.options.minRows>this.data.options.maxRows&&(this.data.options.maxRows=this.data.options.minRows)},handleImguploadType:function(e){"picture-card"==e&&(this.data.options.drag=!1)},handleImguploadDrag:function(e){e&&(this.data.options.listType="default")},handleEventDialogShow:function(){this.eventsDialog={visible:!0,eventScript:JSON.parse(JSON.stringify(this.config.eventScript)),active:null}},handleAddEvent:function(){var e={key:e=(new Date).getTime(),name:e,func:""};this.eventsDialog.eventScript.push(e),this.eventsDialog.active=e},handleEventDialogAffirm:function(){this.config.eventScript=this.eventsDialog.eventScript,this.eventsDialog={visible:!1,eventScript:[],active:null}},handleEventDialogDelete:function(e,t){var n=this;this.$confirm("确定要删除该方法 ".concat(e.name," ?"),"",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){n.eventsDialog.active&&e.key===n.eventsDialog.active.key&&(n.eventsDialog.active=null),n.eventsDialog.eventScript.splice(t,1)})).catch()},handleEventsCollapseClick:function(e){for(var t=0;t<this.config.eventScript.length;t++)if(this.config.eventScript[t].key===e){var n=JSON.parse(JSON.stringify(this.config.eventScript));this.eventsDialog={visible:!0,eventScript:n,active:n[t]};break}}},watch:{"data.options.isRange":function(e){void 0!==e&&(e?this.data.options.defaultValue=null:0<=Object.keys(this.data.options).indexOf("defaultValue")&&(this.data.options.defaultValue=""))},"data.options.required":function(e){this.validateRequired(e)},"data.options.dataType":function(e){this.validateDataType(e)},"data.options.pattern":function(e){this.valiatePattern(e)},"data.name":function(e){this.data.options&&(this.validateRequired(this.data.options.required),this.validateDataType(this.data.options.dataType),this.valiatePattern(this.data.options.pattern))}}};q=Object(l.a)(a,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.show?n("div",[n(e.compsData[e.data.type].content,{tag:"component",attrs:{widget:e.data,config:e.config,remoteApis:e.remoteApis},on:{"events-show":e.handleEventDialogShow,"events-edit":e.handleEventsCollapseClick}}),e._v(" "),n("th-dialog",{attrs:{title:"动作设置"},on:{"on-fullscreen":function(t){e.$refs.codeEditor&&e.$refs.codeEditor.resize()}},model:{value:e.eventsDialog.visible,callback:function(t){e.$set(e.eventsDialog,"visible",t)},expression:"eventsDialog.visible"}},[n("div",{staticClass:"eventsSetting"},[n("div",{staticClass:"list"},[n("div",{staticClass:"list-header",on:{click:e.handleAddEvent}},[n("div",[e._v("动作库")]),e._v(" "),n("el-button",{attrs:{type:"text",icon:"el-icon-plus",size:"mini"}},[e._v("添加")])],1),e._v(" "),e._l(e.eventsDialog.eventScript,(function(t,i){return n("div",{key:t.key,staticClass:"list-item",on:{click:function(n){e.eventsDialog.active=t}}},[n("div",{staticClass:"list-item-title"},[e._v("Function")]),e._v(" "),n("div",{staticClass:"list-item-value"},[e._v(e._s(t.name))]),e._v(" "),n("i",{staticClass:"el-icon-delete",on:{click:function(n){return n.stopPropagation(),e.handleEventDialogDelete(t,i)}}})])}))],2),e._v(" "),e.eventsDialog.active?n("div",{staticClass:"detail"},[n("div",[n("span",[e._v("Function Name")]),e._v(" "),n("el-input",{attrs:{placeholder:"请输入动作名称",size:"small",disabled:"mounted"===e.eventsDialog.active.name||"refresh"===e.eventsDialog.active.name},model:{value:e.eventsDialog.active.name,callback:function(t){e.$set(e.eventsDialog.active,"name",t)},expression:"eventsDialog.active.name"}})],1),e._v(" "),n("div",[n("div",[e._v("\n function(\n "+e._s("mounted"!==e.eventsDialog.active.name&&"refresh"!==e.eventsDialog.active.name?"item,value":"")+"\n ) {\n\n "),n("el-popover",{attrs:{placement:"top-start",title:"可用Api",width:"200",trigger:"hover"}},[n("i",{staticClass:"el-icon-question",staticStyle:{float:"right"},attrs:{slot:"reference"},slot:"reference"}),e._v(" "),n("div",{staticClass:"functions"},[n("div",[e._v("setData")]),e._v(" "),n("div",[e._v("getData")]),e._v(" "),n("div",[e._v("display")]),e._v(" "),n("div",[e._v("hide")])])])],1),e._v(" "),n("th-code-editor",{ref:"codeEditor",staticStyle:{height:"calc(100% - 48px)"},attrs:{completions:e.aceCompletions},model:{value:e.eventsDialog.active.func,callback:function(t){e.$set(e.eventsDialog.active,"func",t)},expression:"eventsDialog.active.func"}}),e._v(" "),n("div",[e._v("}")])],1)]):e._e()]),e._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{size:"small"},on:{click:function(t){e.eventsDialog.visible=!1}}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleEventDialogAffirm}},[e._v("保 存")])],1)])],1):e._e()}),[],!1,(function(e){n(150)}),"data-v-0a2d5ca5",null).exports,a=Object(l.a)({props:["data"]},(function(){var e=this,t=e.$createElement;return(t=e._self._c||t)("div",{staticClass:"form-config-container"},[t("el-form",{attrs:{"label-position":"top"}},[t("el-form-item",{attrs:{label:"UI"}},[t("el-radio-group",{model:{value:e.data.ui,callback:function(t){e.$set(e.data,"ui",t)},expression:"data.ui"}},[t("el-radio-button",{attrs:{label:"element"}},[e._v("Element")]),e._v(" "),t("el-radio-button",{attrs:{label:"vant",disabled:""}},[e._v("Vant")])],1)],1),e._v(" "),t("el-form-item",{attrs:{label:"表单标题"}},[t("el-input",{model:{value:e.data.title,callback:function(t){e.$set(e.data,"title",t)},expression:"data.title"}})],1),e._v(" "),t("el-form-item",{attrs:{label:"表单宽度"}},[t("el-input",{model:{value:e.data.width,callback:function(t){e.$set(e.data,"width",t)},expression:"data.width"}})],1),e._v(" "),t("el-form-item",{attrs:{label:"表单标签宽度"}},[t("el-input-number",{attrs:{min:0,max:200,step:10},model:{value:e.data.labelWidth,callback:function(t){e.$set(e.data,"labelWidth",t)},expression:"data.labelWidth"}})],1),e._v(" "),t("el-form-item",{attrs:{label:"标签对齐方式"}},[t("el-radio-group",{model:{value:e.data.labelPosition,callback:function(t){e.$set(e.data,"labelPosition",t)},expression:"data.labelPosition"}},[t("el-radio-button",{attrs:{label:"left"}},[e._v("左对齐")]),e._v(" "),t("el-radio-button",{attrs:{label:"right"}},[e._v("右对齐")]),e._v(" "),t("el-radio-button",{attrs:{label:"top"}},[e._v("顶部对齐")])],1)],1),e._v(" "),t("el-form-item",{attrs:{label:"组件尺寸"}},[t("el-radio-group",{model:{value:e.data.size,callback:function(t){e.$set(e.data,"size",t)},expression:"data.size"}},[t("el-radio-button",{attrs:{label:"medium"}},[e._v("medium")]),e._v(" "),t("el-radio-button",{attrs:{label:"small"}},[e._v("small")]),e._v(" "),t("el-radio-button",{attrs:{label:"mini"}},[e._v("mini")])],1)],1),e._v(" "),t("el-form-item",{attrs:{label:"操作属性"}},[t("el-checkbox",{model:{value:e.data.disabled,callback:function(t){e.$set(e.data,"disabled",t)},expression:"data.disabled"}},[e._v("禁用 ")]),e._v(" "),t("el-checkbox",{model:{value:e.data.hideLabel,callback:function(t){e.$set(e.data,"hideLabel",t)},expression:"data.hideLabel"}},[e._v("隐藏标签 ")])],1)],1)],1)}),[],!1,null,null,null).exports;var G=n(9),K=(G={components:{Draggable:H.a,WidgetFormItem:G.a,ThEmpty:b},props:["data","select","client"],data:function(){return{selectWidget:this.select,config:{}}},watch:{select:function(e){this.selectWidget=e},selectWidget:{handler:function(e){this.$emit("update:select",e)},deep:!0}},computed:{widgetList:function(){return this.data.list.filter((function(e){return e.key}))},formWidth:function(){return this.data.config.width||("mobile"===this.client?"375px":"")}},mounted:function(){document.body.ondrop=function(e){var t=navigator.userAgent;("string"==typeof t?-1<t.toLowerCase().indexOf("firefox"):-1<t.indexOf("firefox"))&&(e.preventDefault(),e.stopPropagation())}},methods:{handleMoveEnd:function(e){e.newIndex,e.oldIndex},handleSelectWidget:function(e){this.selectWidget=this.data.list[e]},handleWidgetAdd:function(e){var t=e.newIndex,n=(e=(e.to,Date.parse(new Date)+"_"+Math.ceil(99999*Math.random())),JSON.parse(JSON.stringify(this.data.list[t])));n.key=e,n.model=n.type+"_"+e,n.rules=[],this.$set(this.data.list,t,n),this.selectWidget=this.data.list[t]}}},G=Object(l.a)(G,(function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"formContainer",staticClass:"widget-form-container"},[0==e.data.list.length?i("th-empty",{staticClass:"form-empty",attrs:{image:n(266),description:"从左侧拖拽来添加字段"}}):e._e(),e._v(" "),i("el-form",{class:{"form-hideLabel":e.data.config.hideLabel},staticStyle:{margin:"0 auto",padding:"5px",height:"100%"},style:{width:e.formWidth},attrs:{size:e.data.config.size,"label-suffix":e.data.config.labelSuffix,"label-position":e.data.config.labelPosition,"label-width":e.data.config.labelWidth+"px",disabled:e.data.config.disabled}},[i("draggable",e._b({staticStyle:{height:"100%"},on:{end:e.handleMoveEnd,add:e.handleWidgetAdd},model:{value:e.data.list,callback:function(t){e.$set(e.data,"list",t)},expression:"data.list"}},"draggable",{group:"people",ghostClass:"ghost",animation:200,handle:".drag-widget"},!1),[i("transition-group",{staticClass:"widget-form-list",attrs:{name:"fade",tag:"div"}},e._l(e.widgetList,(function(t,n){return i("widget-form-item",{key:t.key,attrs:{widget:t,widgetIndex:n,widgetArray:e.data,config:e.data.config,select:e.selectWidget},on:{"update:select":function(t){e.selectWidget=t}}})})),1)],1)],1)],1)}),[],!1,null,null,null).exports,n(22));function Y(e,t){var n,i=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)),i}function X(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(n),!0).forEach((function(t){var i,o;i=e,o=n[t=t],t in i?Object.defineProperty(i,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[t]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}K={name:"th-generate-form",components:{GenetateFormItem:Object(l.a)(K.a,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!e.widget.options.hidden,expression:"!widget.options.hidden"}],ref:e.widget.model,class:((t={})[e.widget.model]=!0,t["widget-form-list-"+e.widget.type]=!0,t),attrs:{label:e.widget.options.hideLabel?"":e.widget.name,"label-width":e.labelWidth,prop:e.prop||e.widget.model,rules:e.widget.rules}},["input"==e.widget.type?["number"==e.widget.options.dataType||"integer"==e.widget.options.dataType||"float"==e.widget.options.dataType?n("el-input",{style:{width:e.widget.options.width},attrs:{type:"number",placeholder:e.widget.options.placeholder,disabled:e.widget.options.disabled,readonly:e.widget.options.readonly,clearable:e.widget.options.clearable,maxlength:e.widget.options.maxlength,"show-word-limit":e.widget.options.showWordLimit,"show-password":e.widget.options.showPassword},on:{input:function(t){return e.handleEventAction(e.widget.events.onChange)},focus:function(t){return e.handleEventAction(e.widget.events.onFocus)},blur:function(t){return e.handleEventAction(e.widget.events.onBlur)}},model:{value:e.dataModel,callback:function(t){e.dataModel=e._n(t)},expression:"dataModel"}}):n("el-input",{style:{width:e.widget.options.width},attrs:{type:"text",placeholder:e.widget.options.placeholder,disabled:e.widget.options.disabled,readonly:e.widget.options.readonly,clearable:e.widget.options.clearable,maxlength:e.widget.options.maxlength,"show-word-limit":e.widget.options.showWordLimit,"show-password":e.widget.options.showPassword,"suffix-icon":e.widget.options.suffixIcon,"prefix-icon":e.widget.options.prefixIcon},on:{input:function(t){return e.handleEventAction(e.widget.events.onChange)},focus:function(t){return e.handleEventAction(e.widget.events.onFocus)},blur:function(t){return e.handleEventAction(e.widget.events.onBlur)}},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}},[e.widget.options.prepend?n("template",{slot:"prepend"},[e._v(e._s(e.widget.options.prepend))]):e._e(),e._v(" "),e.widget.options.append?n("template",{slot:"append"},[e._v(e._s(e.widget.options.append))]):e._e()],2)]:e._e(),e._v(" "),"textarea"==e.widget.type?[n("el-input",{style:{width:e.widget.options.width},attrs:{type:"textarea",disabled:e.widget.options.disabled,placeholder:e.widget.options.placeholder,maxlength:e.widget.options.maxlength,clearable:e.widget.options.clearable,"show-word-limit":e.widget.options.showWordLimit,autosize:{minRows:e.widget.options.minRows,maxRows:e.widget.options.maxRows}},on:{input:function(t){return e.handleEventAction(e.widget.events.onChange)},focus:function(t){return e.handleEventAction(e.widget.events.onFocus)},blur:function(t){return e.handleEventAction(e.widget.events.onBlur)}},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),e._v(" "),"cell"==e.widget.type?[n("th-cell",{attrs:{title:e.widget.options.title,value:e.widget.options.value,label:e.widget.options.label}})]:e._e(),e._v(" "),"number"==e.widget.type?[n("el-input-number",{style:{width:e.widget.options.width},attrs:{step:e.widget.options.step,"controls-position":e.widget.options.controlsPosition?"right":"",disabled:e.widget.options.disabled,min:e.widget.options.min,max:e.widget.options.max,precision:e.widget.options.precision},on:{change:function(t){return e.handleEventAction(e.widget.events.onChange)},focus:function(t){return e.handleEventAction(e.widget.events.onFocus)},blur:function(t){return e.handleEventAction(e.widget.events.onBlur)}},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),e._v(" "),"text"==e.widget.type?[n("div",{style:{height:e.widget.options.height,textAlign:e.widget.options.textAlign},domProps:{innerHTML:e._s(e.dataModel)}})]:e._e(),e._v(" "),"radio"==e.widget.type?[n("el-radio-group",{style:{width:e.widget.options.width},attrs:{disabled:e.widget.options.disabled},on:{change:function(t){return e.handleEventAction(e.widget.events.onChange)}},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}},[e.widget.options.buttonType?e._l(e.widget.options.remote?e.widget.options.remoteOptions:e.widget.options.options,(function(t,i){return n("el-radio-button",{key:i,style:{display:e.widget.options.inline?"inline-block":"block"},attrs:{label:t.value,border:e.widget.options.border}},[e.widget.options.remote?[e._v(e._s(t.label))]:[e._v(e._s(e.widget.options.showLabel?t.label:t.value))]],2)})):e._l(e.widget.options.remote?e.widget.options.remoteOptions:e.widget.options.options,(function(t,i){return n("el-radio",{key:i,style:{display:e.widget.options.inline?"inline-block":"block"},attrs:{label:t.value,border:e.widget.options.border}},[e.widget.options.remote?[e._v(e._s(t.label))]:[e._v(e._s(e.widget.options.showLabel?t.label:t.value))]],2)}))],2)]:e._e(),e._v(" "),"checkbox"==e.widget.type?[n("el-checkbox-group",{style:{width:e.widget.options.width},attrs:{disabled:e.widget.options.disabled,min:e.widget.options.min,max:e.widget.options.max},on:{change:function(t){return e.handleEventAction(e.widget.events.onChange)}},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}},[e.widget.options.buttonType?e._l(e.widget.options.remote?e.widget.options.remoteOptions:e.widget.options.options,(function(t,i){return n("el-checkbox-button",{key:i,style:{display:e.widget.options.inline?"inline-block":"block"},attrs:{label:t.value,border:e.widget.options.border}},[e.widget.options.remote?[e._v(e._s(t.label))]:[e._v(e._s(e.widget.options.showLabel?t.label:t.value))]],2)})):e._l(e.widget.options.remote?e.widget.options.remoteOptions:e.widget.options.options,(function(t,i){return n("el-checkbox",{key:i,style:{display:e.widget.options.inline?"inline-block":"block"},attrs:{label:t.value,border:e.widget.options.border}},[e.widget.options.remote?[e._v(e._s(t.label))]:[e._v(e._s(e.widget.options.showLabel?t.label:t.value))]],2)}))],2)]:e._e(),e._v(" "),"time"==e.widget.type?[n("el-time-picker",{style:{width:e.widget.options.width},attrs:{"is-range":e.widget.options.isRange,placeholder:e.widget.options.placeholder,"start-placeholder":e.widget.options.startPlaceholder,"end-placeholder":e.widget.options.endPlaceholder,readonly:e.widget.options.readonly,disabled:e.widget.options.disabled,editable:e.widget.options.editable,clearable:e.widget.options.clearable,arrowControl:e.widget.options.arrowControl,"value-format":e.widget.options.format,"picker-options":{selectableRange:e.widget.options.pickerOptions.selectableRange[0]+" - "+e.widget.options.pickerOptions.selectableRange[1]}},on:{change:function(t){return e.handleEventAction(e.widget.events.onChange)},focus:function(t){return e.handleEventAction(e.widget.events.onFocus)},blur:function(t){return e.handleEventAction(e.widget.events.onBlur)}},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),e._v(" "),"date"==e.widget.type?[n("el-date-picker",{style:{width:e.widget.options.width},attrs:{type:e.widget.options.type,"is-range":e.widget.options.isRange,placeholder:e.widget.options.placeholder,"start-placeholder":e.widget.options.startPlaceholder,"end-placeholder":e.widget.options.endPlaceholder,readonly:e.widget.options.readonly,disabled:e.widget.options.disabled,editable:e.widget.options.editable,clearable:e.widget.options.clearable,"value-format":e.widget.options.format},on:{change:function(t){return e.handleEventAction(e.widget.events.onChange)},focus:function(t){return e.handleEventAction(e.widget.events.onFocus)},blur:function(t){return e.handleEventAction(e.widget.events.onBlur)}},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),e._v(" "),"select"==e.widget.type?[n("el-select",{style:{width:e.widget.options.width},attrs:{disabled:e.widget.options.disabled,multiple:e.widget.options.multiple,clearable:e.widget.options.clearable,placeholder:e.widget.options.placeholder,collapseTags:e.widget.options.collapseTags,allowCreate:e.widget.options.allowCreate,filterable:!!e.widget.options.allowCreate||e.widget.options.filterable},on:{change:function(t){return e.handleEventAction(e.widget.events.onChange)},focus:function(t){return e.handleEventAction(e.widget.events.onFocus)},blur:function(t){return e.handleEventAction(e.widget.events.onBlur)}},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}},e._l(e.widget.options.remote?e.widget.options.remoteOptions:e.widget.options.options,(function(t){return n("el-option",{key:t.value,attrs:{value:t.value,label:e.widget.options.showLabel||e.widget.options.remote?t.label:t.value}})})),1)]:e._e(),e._v(" "),"color"==e.widget.type?[n("el-color-picker",{attrs:{disabled:e.widget.options.disabled,"show-alpha":e.widget.options.showAlpha},on:{change:function(t){return e.handleEventAction(e.widget.events.onChange)}},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),e._v(" "),"switch"==e.widget.type?[n("el-switch",{attrs:{width:e.widget.options.width-20,disabled:e.widget.options.disabled,"inactive-text":e.widget.options.switchInactiveText,"active-text":e.widget.options.switchActiveText,"inactive-color":e.widget.options.switchInactiveColor,"active-color":e.widget.options.switchActiveColor},on:{change:function(t){return e.handleEventAction(e.widget.events.onChange)}},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),e._v(" "),"button"==e.widget.type?[n("el-button",{style:{width:e.widget.options.width,height:e.widget.options.height},attrs:{size:e.widget.options.buttonSize,type:e.widget.options.buttonType,plain:e.widget.options.buttonPlain,round:e.widget.options.buttonRound,circle:e.widget.options.buttonCircle,loading:e.widget.options.loading,disabled:e.widget.options.disabled,icon:e.widget.options.buttonIcon},on:{click:function(t){return e.handleEventAction(e.widget.events.onClick)}}},[e._v(e._s(e.widget.options.defaultValue))])]:e._e(),e._v(" "),"slider"==e.widget.type?[n("el-slider",{style:{width:e.widget.options.width,height:e.widget.options.height},attrs:{min:e.widget.options.min,max:e.widget.options.max,disabled:e.widget.options.disabled,step:e.widget.options.step,"show-input":e.widget.options.showInput,range:e.widget.options.range,"show-tooltip":e.widget.options.showTooltip,"format-tooltip":function(t){return e.formatTooltip(t,e.widget.options.formatTooltip)},"show-stops":e.widget.options.showStops,vertical:e.widget.options.vertical},on:{change:function(t){return e.handleEventAction(e.widget.events.onChange)}},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),e._v(" "),"rate"==e.widget.type?[n("el-rate",{attrs:{max:e.widget.options.max,disabled:e.widget.options.disabled,"allow-half":e.widget.options.allowHalf,"show-text":e.widget.options.showText,texts:e.widget.options.auxiliaryValue},on:{change:function(t){return e.handleEventAction(e.widget.events.onChange)}},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),e._v(" "),"filler"==e.widget.type?[n("div",{style:{width:e.widget.options.width,height:e.widget.options.height}})]:e._e(),e._v(" "),"image"==e.widget.type?[n("th-image",{attrs:{src:e.widget.options.defaultValue,height:e.widget.options.height,width:e.widget.options.width,fit:e.widget.options.fit}})]:e._e(),e._v(" "),"upload"==e.widget.type?[n("el-upload",{staticClass:"upload-demo",attrs:{action:e.widget.options.remoteFunc,"on-preview":function(t){return e.handlePictureCardPreview(t,e.widget.options.listType)},"on-remove":e.handleRemove,multiple:e.widget.options.multiple,limit:e.widget.options.length,width:e.widget.options.size.width,height:e.widget.options.size.height,"list-type":e.widget.options.listType,"on-change":e.handleAvatar,"on-error":e.handleAvatarError,drag:e.widget.options.drag,disabled:e.widget.options.disabled,"auto-upload":!1}},[["default","picture"].includes(e.widget.options.listType)&&!e.widget.options.drag?n("el-button",{attrs:{size:"small",type:"primary",disabled:e.widget.options.disabled}},[e._v("点击上传")]):e._e(),e._v(" "),"picture-card"!==e.widget.options.listType||e.widget.options.drag?e._e():n("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"}),e._v(" "),e.widget.options.drag?n("i",{staticClass:"el-icon-upload"}):e._e(),e._v(" "),e.widget.options.drag?n("div",{staticClass:"el-upload__text"},[e._v("\n 将文件拖到此处,或"),n("em",[e._v("点击上传")])]):e._e(),e._v(" "),n("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},domProps:{innerHTML:e._s(e.widget.options.elUploadTip)},slot:"tip"})],1)]:e._e(),e._v(" "),"editor"==e.widget.type?[n("vue-editor",{style:{width:e.widget.options.width},attrs:{disabled:e.widget.options.disabled},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),e._v(" "),"cascader"==e.widget.type?[n("el-cascader",{style:{width:e.widget.options.width,height:e.widget.options.height},attrs:{disabled:e.widget.options.disabled,clearable:e.widget.options.clearable,placeholder:e.widget.options.placeholder,options:e.widget.options.remoteOptions,props:e.widget.options.props,"show-all-levels":!e.widget.options.showAllLevels,"collapse-tags":e.widget.options.collapseTags,filterable:e.widget.options.filterable},on:{change:function(t){return e.handleEventAction(e.widget.events.onChange)}},scopedSlots:e._u([{key:"default",fn:function(t){return t=t.data,[n("span",{domProps:{innerHTML:e._s(e.widget.options.prepend)}}),e._v(" "),n("span",[e._v(e._s(t.label))]),e._v(" "),n("span",{domProps:{innerHTML:e._s(e.widget.options.append)}})]}}],null,!1,1426148692),model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),e._v(" "),"blank"==e.widget.type?[e._t(e.widget.model)]:e._e(),e._v(" "),"table"==e.widget.type?[n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.dataModel,stripe:e.widget.options.stripe,"show-header":e.widget.options.showHeader,"highlight-current-row":e.widget.options.highlightCurrentRow,border:e.widget.options.border}},[e.widget.options.isSerial?n("el-table-column",{attrs:{label:"序号",type:"index",width:"50",align:"center"}}):e._e(),e._v(" "),e._l(e.widget.list,(function(t){return n("el-table-column",{key:"table_"+t.key,attrs:{label:t.name,prop:t.model,width:t.options.width},scopedSlots:e._u([{key:"default",fn:function(i){return[n("genetate-form-item",{attrs:{models:e.dataModel[i.$index],widget:t,remote:e.remote,config:e.config,prop:e.prop+"."+i.$index+"."+t.model,slotKeys:e.slotKeys,componentsData:e.componentsData},on:{"update:models":function(t){return e.$set(e.dataModel,i.$index,t)}}},[e._l(e.slotKeys,(function(t){return n("template",{slot:t},[e._t(t)],2)}))],2)]}}],null,!0)})})),e._v(" "),e.widget.options.isDelete?n("el-table-column",{attrs:{fixed:"right",label:"操作",width:"60",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{staticStyle:{color:"#F56C6C"},attrs:{type:"text"},nativeOn:{click:function(n){return n.preventDefault(),e.handleTableDelete(t.$index)}}},[e._v("\n 移除\n ")])]}}],null,!1,4146503235)}):e._e(),e._v(" "),e.widget.options.isAdd?n("template",{slot:"append"},[n("div",{staticStyle:{"text-align":"center"},style:{borderTop:e.dataModel&&0!=e.dataModel.length?"":"1px solid #EBEEF5"}},[n("el-button",{attrs:{type:"text",disabled:e.widget.options.disabled},on:{click:e.handleTableAdd}},[e._v("新增")])],1)]):e._e()],2)]:e._e(),e._v(" "),"table_h5"==e.widget.type?[n("div",{staticClass:"tableH5"},[e._l(e.dataModel,(function(t,i){return n("div",{key:"table_h5_"+i,staticClass:"tableH5-item"},e._l(e.widget.list,(function(o,r){return n("div",{key:"table_h5_"+i+"_"+o.key},[n("genetate-form-item",{staticStyle:{flex:"1"},attrs:{models:t,widget:o,remote:e.remote,config:e.config,prop:"grid"===o.type?e.prop+"."+i:e.prop+"."+i+"."+o.model,slotKeys:e.slotKeys,componentsData:e.componentsData},on:{"update:models":function(e){t=e}}},[e._l(e.slotKeys,(function(t){return n("template",{slot:t},[e._t(t)],2)}))],2),e._v(" "),e.widget.options.isDelete&&0===r&&i>=e.widget.options.deleteIndex?n("div",{staticClass:"actions"},[n("el-button",{attrs:{type:"danger"},nativeOn:{click:function(t){return t.preventDefault(),e.handleTableDelete(i)}}},[e._v(e._s(e.widget.options.deleteButtonText))])],1):e._e()],1)})),0)})),e._v(" "),e.widget.options.isAdd?n("div",{staticStyle:{"text-align":"center"}},[n("el-button",{attrs:{type:"text",disabled:e.widget.options.disabled},on:{click:e.handleTableAdd}},[e._v(e._s(e.widget.options.addButtonText))])],1):e._e()],2)]:e._e(),e._v(" "),"grid"==e.widget.type?[n("th-row",{attrs:{gutter:e.widget.options.gutter||0,justify:e.widget.options.justify,align:e.widget.options.align}},e._l(e.widget.columns,(function(t,i){return n("th-col",{key:i,attrs:{span:t.span}},e._l(t.list,(function(t){return n("genetate-form-item",{key:t.key,attrs:{widget:t,models:e.models,config:e.config,remote:e.remote,prop:e.prop?e.prop+"."+t.model:t.model,slotKeys:e.slotKeys,componentsData:e.componentsData}},[e._l(e.slotKeys,(function(t){return n("template",{slot:t},[e._t(t)],2)}))],2)})),1)})),1)]:e._e(),e._v(" "),"tabs"==e.widget.type?[n("el-tabs",{model:{value:e.widget.options.defaultValue,callback:function(t){e.$set(e.widget.options,"defaultValue",t)},expression:"widget.options.defaultValue"}},e._l(e.widget.tabs,(function(t,i){return n("el-tab-pane",{key:"tabs_"+i,attrs:{label:t.label,name:t.value}},e._l(t.list,(function(o){return n("genetate-form-item",{key:"tabs_"+i+"_"+o.key,attrs:{widget:o,models:e.dataModel[t.value],config:e.config,remote:e.remote,prop:"grid"===o.type?e.prop+"."+t.value:e.prop+"."+t.value+"."+o.model,slotKeys:e.slotKeys,componentsData:e.componentsData},on:{"update:models":function(n){return e.$set(e.dataModel,t.value,n)}}},[e._l(e.slotKeys,(function(t){return n("template",{slot:t},[e._t(t)],2)}))],2)})),1)})),1)]:e._e(),e._v(" "),"divider"==e.widget.type?[n("el-divider",{attrs:{"content-position":e.widget.options.contentPosition}},[e._v("\n "+e._s(e.widget.options.defaultValue)+"\n ")])]:e._e(),e._v(" "),n("el-dialog",{attrs:{visible:e.dialogVisible,"append-to-body":""},on:{"update:visible":function(t){e.dialogVisible=t}}},[n("img",{attrs:{width:"100%",src:e.dialogImageUrl,alt:""}})])],2)}),[],!1,null,null,null).exports},props:{data:{type:Object,default:function(){return{}}},remote:{type:Object,default:function(){return{}}},value:{type:Object,default:function(){return{}}},slotKeys:{type:Array,default:function(){return[]}},client:String},data:function(){return{formJson:this.data,models:{},componentsData:[]}},computed:{formWidth:function(){return this.formJson.config.width||("mobile"===this.client?"375px":"")}},watch:{data:function(e){this.formJson=e},formJson:{handler:function(e){this.$emit("update:data",e)},deep:!0},value:{deep:!0,handler:function(e){this.models=X(X({},this.models),e)}}},created:function(){this.generateModle(this.formJson.list)},mounted:function(){},methods:{generateModle:function(e,t){var n=this;e&&e.map((function(e){"grid"===e.type?e.columns.forEach((function(e){n.generateModle(e.list,t)})):"tabs"===e.type?t?(n.$set(t,e.model,{}),e.tabs.forEach((function(i){n.$set(t[e.model],i.value,{}),n.generateModle(i.list,t[e.model][i.value])}))):(n.$set(n.models,e.model,{}),e.tabs.forEach((function(t){n.$set(n.models[e.model],t.value,{}),n.generateModle(t.list,n.models[e.model][t.value])}))):"table"===e.type||"table_h5"===e.type?t?(n.$set(t,e.model,JSON.parse(e.options.defaultValue||"[]")),n.generateModle(e.list,t[e.model])):(n.$set(n.models,e.model,JSON.parse(e.options.defaultValue||"[]")),n.generateModle(e.list,n.models[e.model])):(t?t[e.model]||n.$set(t,e.model,e.options.defaultValue):n.value&&0<=Object.keys(n.value).indexOf(e.model)?n.$set(n.models,e.model,n.value[e.model]):"blank"===e.type?n.$set(n.models,e.model,"String"===e.options.defaultType?"":"Object"===e.options.defaultType?{}:[]):n.$set(n.models,e.model,JSON.parse(JSON.stringify(e.options.defaultValue))),n.generateRules(e))}))},generateRules:function(e){e.rules||(e.rules=[]),e.rules.forEach((function(e){e.pattern&&(e.pattern=new RegExp(e.pattern))}))},getData:function(){var e=this;return new Promise((function(t,n){e.$refs.generateForm.validate((function(i){i?t(e.models):n(new Error("表单数据校验失败").message)}))}))},reset:function(){this.$refs.generateForm.resetFields()},onInputChange:function(e,t){this.$emit("on-change",t,e,this.models)},setJSON:function(e){this.formJson=e,this.generateModle(this.formJson.list)}}};var J=Object(l.a)(K,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.formJson.config?n("div",[n("el-form",{ref:"generateForm",staticClass:"generateForm",class:{"form-hideLabel":e.formJson.config.hideLabel},style:{width:e.formWidth},attrs:{"label-suffix":e.formJson.config.labelSuffix,size:e.formJson.config.size,model:e.models,"label-position":e.formJson.config.labelPosition,"label-width":e.formJson.config.labelWidth+"px"}},e._l(e.formJson.list,(function(t){return n("genetate-form-item",{key:t.key,attrs:{models:e.models,widget:t,slotKeys:e.slotKeys,remote:e.remote,config:e.formJson.config,prop:"grid"===t.type?"":t.model,componentsData:e.componentsData},on:{"update:models":function(t){e.models=t},"input-change":e.onInputChange}},[e._l(e.slotKeys,(function(t){return n("template",{slot:t},[e._t(t)],2)}))],2)})),1)],1):e._e()}),[],!1,(function(e){n(267)}),"data-v-f384d7c4",null).exports;function Z(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}var Q=[{name:"单行文本",type:"input",icon:"icon-input",options:{width:"100%",labelWidth:100,isLabelWidth:!1,defaultValue:"",dataType:"string",pattern:"",placeholder:"",maxlength:-1,required:!1,disabled:!1,readonly:!1,clearable:!1,showWordLimit:!1,showPassword:!1,prefixIcon:"",suffixIcon:"",prepend:"",append:"",hidden:!1,hideLabel:!1},events:{onChange:"",onFocus:"",onBlur:""}},{name:"多行文本",type:"textarea",icon:"icon-diy-com-textarea",options:{width:"100%",labelWidth:100,isLabelWidth:!1,defaultValue:"",dataType:"string",pattern:"",placeholder:"",maxlength:-1,rows:2,showWordLimit:!1,minRows:2,maxRows:5,required:!1,disabled:!1,readonly:!1,clearable:!1,hidden:!1,hideLabel:!1},events:{onChange:"",onFocus:"",onBlur:""}},{name:"单元格",type:"cell",icon:"icon-ic",options:{width:"100%",height:"40px",labelWidth:100,isLabelWidth:!1,title:"标题",value:"内容",label:"副标题",defaultValue:"",customClass:"",textAlign:"right",hidden:!1,hideLabel:!1}},{name:"文字",type:"text",icon:"icon-wenzishezhi-",options:{width:"100%",height:"",labelWidth:100,isLabelWidth:!1,defaultValue:"",customClass:"",textAlign:"left",hidden:!1,hideLabel:!1}},{name:"单选框组",type:"radio",icon:"icon-radio-active",options:{width:"",labelWidth:100,isLabelWidth:!1,inline:!1,defaultValue:"",showLabel:!1,options:[{value:"Option 1",label:"Option 1"},{value:"Option 2",label:"Option 2"},{value:"Option 3",label:"Option 3"}],required:!1,remote:!1,remoteOptions:[],props:{value:"value",label:"label"},remoteFunc:"",disabled:!1,border:!1,buttonType:!1},events:{onChange:""}},{name:"多选框组",type:"checkbox",icon:"icon-check-box",options:{width:"",labelWidth:100,isLabelWidth:!1,inline:!1,defaultValue:[],showLabel:!1,options:[{value:"Option 1"},{value:"Option 2"},{value:"Option 3"}],required:!1,remote:!1,remoteOptions:[],props:{value:"value",label:"label"},remoteFunc:"",disabled:!1,border:!1,buttonType:!1,min:0,max:0,hidden:!1,hideLabel:!1},events:{onChange:""}},{name:"时间选择器",type:"time",icon:"icon-time",options:{width:"100%",labelWidth:100,isLabelWidth:!1,defaultValue:"00:00:00",placeholder:"",startPlaceholder:"",endPlaceholder:"",isRange:!1,arrowControl:!0,format:"HH:mm:ss",pickerOptions:{selectableRange:["00:00:00","23:59:59"]},readonly:!1,disabled:!1,editable:!0,clearable:!0,required:!1,hidden:!1,hideLabel:!1},events:{onChange:"",onFocus:"",onBlur:""}},{name:"日期选择器",type:"date",icon:"icon-date",options:{width:"100%",labelWidth:100,isLabelWidth:!1,defaultValue:"",readonly:!1,disabled:!1,editable:!0,clearable:!0,placeholder:"",startPlaceholder:"",endPlaceholder:"",type:"date",format:"yyyy-MM-dd",timestamp:!1,required:!1},events:{onChange:"",onFocus:"",onBlur:""}},{name:"下拉选择框",type:"select",icon:"icon-select",options:{width:"100%",labelWidth:100,isLabelWidth:!1,defaultValue:"",multiple:!1,disabled:!1,clearable:!1,placeholder:"",required:!1,showLabel:!1,collapseTags:!1,allowCreate:!1,options:[{value:"Option 1"},{value:"Option 2"},{value:"Option 3"}],remote:!1,filterable:!1,remoteOptions:[],props:{value:"value",label:"label"},remoteFunc:"",hidden:!1,hideLabel:!1},events:{onChange:"",onFocus:"",onBlur:""}},{name:"颜色选择器",type:"color",icon:"icon-color",options:{labelWidth:100,isLabelWidth:!1,defaultValue:"",predefine:["#1989FA","#67C23A","#FF976A","#EE0A24","#000000","#333333","#666666","#999999","#FFFFFF"],disabled:!1,showAlpha:!1,required:!1,hidden:!1,hideLabel:!1},events:{onChange:""}},{name:"开关",type:"switch",icon:"icon-switch",options:{width:70,labelWidth:100,isLabelWidth:!1,defaultValue:!1,switchInactiveText:"",switchActiveText:"",switchInactiveColor:"#C0CCDA",switchActiveColor:"#409EFF",required:!1,disabled:!1,hidden:!1,hideLabel:!1},events:{onChange:""}},{name:"按钮",type:"button",icon:"icon-ic",options:{customClass:"",defaultValue:"Button",width:"",height:"",labelWidth:100,isLabelWidth:!1,dataBind:!1,buttonSize:"small",buttonType:"",buttonPlain:!1,buttonRound:!1,buttonCircle:!1,buttonIcon:"",textAlign:"center",remoteFunc:"",remoteOption:"",tableColumn:!1,disabled:!1,loading:!1,hidden:!1,hideLabel:!1},events:{onClick:""},rules:[]},{name:"计数器",type:"number",icon:"icon-number",options:(Z(K={width:"",labelWidth:100,isLabelWidth:!1,required:!1,defaultValue:0,min:1,max:2,step:1,disabled:!1,controlsPosition:!1},"step",1),Z(K,"precision",1),Z(K,"hidden",!1),Z(K,"hideLabel",!1),K),events:{onChange:"",onFocus:"",onBlur:""}},{name:"滑块",type:"slider",icon:"icon-slider",options:{width:"100%",height:"40px",labelWidth:100,isLabelWidth:!1,defaultValue:0,disabled:!1,required:!1,min:0,max:100,step:1,showInput:!1,range:!1,vertical:!1,showTooltip:!0,formatTooltip:1,showStops:!1,hidden:!1,hideLabel:!1},events:{onChange:""}},{name:"评分",type:"rate",icon:"icon-pingfen1",options:{labelWidth:100,isLabelWidth:!1,defaultValue:0,max:5,disabled:!1,allowHalf:!1,required:!1,showText:!1,hidden:!1,hideLabel:!1,auxiliaryValue:["极差","失望","一般","满意","惊喜"]},events:{onChange:""}},{name:"填充物",type:"filler",icon:"icon-ic",options:{defaultValue:"",width:"100%",height:"20px"}},{name:"图片",type:"image",icon:"icon-ic",options:{defaultValue:"https://cube.elemecdn.com/6/94/4d3ea53c084bad6931a56d5158a48jpeg.jpeg",defaultValueArr:[{url:"https://fuss10.elemecdn.com/a/3f/3302e58f9a181d2509f3dc0fa68b0jpeg.jpeg"},{url:"https://fuss10.elemecdn.com/1/34/19aa98b1fcb2781c4fba33d850549jpeg.jpeg"},{url:"https://fuss10.elemecdn.com/0/6f/e35ff375812e6b0020b6b4e8f9583jpeg.jpeg"}],remote:!1,width:"",height:"200px",fit:"fill",borderRadius:"",displayStyle:"inline-block",errorSrc:"",isLoding:!1,hidden:!1,hideLabel:!1}},{name:"文件",type:"upload",icon:"icon-tupian",options:(Z(K={width:"",labelWidth:100,isLabelWidth:!1,defaultValue:[],size:{width:100,height:100},tokenFunc:"funcGetToken",token:"",domain:"https://tcdn.form.making.link/",disabled:!1,length:8,autoUpload:!1,isQiniu:!1,min:0,remoteFunc:"https://jsonplaceholder.typicode.com/posts/",action:"https://jsonplaceholder.typicode.com/posts/",remoteApi:{}},"disabled",!1),Z(K,"required",!1),Z(K,"multiple",!1),Z(K,"elUploadTip",""),Z(K,"listType","default"),Z(K,"drag",!1),K)},{name:"编辑器",type:"editor",icon:"icon-fuwenbenkuang",options:{width:"100%",height:"",labelWidth:100,isLabelWidth:!1,defaultValue:"",disabled:!1,required:!1,hidden:!1,hideLabel:!1}},{name:"级联选择器",type:"cascader",icon:"icon-jilianxuanze",options:{width:"",labelWidth:100,isLabelWidth:!1,defaultValue:[],placeholder:"",disabled:!1,clearable:!1,required:!1,remote:!0,showAllLevels:!1,collapseTags:!1,filterable:!1,prepend:"",append:"",remoteOptions:[],props:{value:"value",label:"label",children:"children",multiple:!1,expandTrigger:"hover",checkStrictly:!1},remoteFunc:"",hidden:!1,hideLabel:!1},events:{onChange:""}}],ee=[{name:"子表单",type:"table",icon:"icon-table",options:{height:"",defaultValue:"",customClass:"",labelWidth:100,isLabelWidth:!1,dataBind:!0,validatorCheck:!1,validator:"",paging:!1,pageSize:5,remoteFunc:"",remoteOption:"",tableColumn:!1,hidden:!1,hideLabel:!1,disabled:!1,required:!1,isAdd:!0,isDelete:!0,isSerial:!0,border:!1,stripe:!1,showHeader:!0,highlightCurrentRow:!1},list:[]},{name:"子表单H5",type:"table_h5",icon:"icon-table",options:{defaultValue:"",customClass:"",labelWidth:100,isLabelWidth:!1,dataBind:!0,validatorCheck:!1,validator:"",paging:!1,pageSize:5,remoteFunc:"",remoteOption:"",tableColumn:!1,hidden:!1,hideLabel:!1,disabled:!1,required:!1,isAdd:!0,addButtonText:"新增",isDelete:!0,deleteButtonText:"删除",deleteIndex:0},list:[]},{name:"标签页",type:"tabs",icon:"icon-tabs",tabs:[{label:"选项1",value:"tab1",list:[]},{label:"选项2",value:"tab2",list:[]}],options:{defaultValue:"tab1",type:"",tabPosition:"top",customClass:"",hidden:!1,labelWidth:100,isLabelWidth:!1,hideLabel:!0,remote:!1,remoteFunc:"",remoteOption:"",tableColumn:!1},rules:[]},{name:"自定义区域",type:"blank",icon:"icon-zidingyishuju",options:{defaultType:"String",required:!1}}],te=[{name:"栅格布局",type:"grid",icon:"icon-grid-",columns:[{span:12,list:[]},{span:12,list:[]}],options:{gutter:0,justify:"start",align:"top",hideLabel:!0}},{name:"浮动布局",type:"alliance",icon:"icon-grid-",columns:[{span:12,list:[]},{span:12,list:[]}],options:{gutter:0,justify:"start",align:"top",hideLabel:!0}},{name:"分割线",type:"divider",icon:"icon-fengexian",options:{width:"100%",defaultValue:"",hidden:!1,labelWidth:100,isLabelWidth:!1,hideLabel:!0,contentPosition:"left",remoteFunc:"",remoteOption:"",tableColumn:!1},rules:[]}],ne={ui:"element",title:"",width:"",labelWidth:100,labelPosition:"right",labelSuffix:":",size:"small",disabled:!1,hideLabel:!1,eventScript:[{key:"mounted",name:"mounted",func:""},{key:"refresh",name:"refresh",func:""}]},ie=(K=n(110),(K=n.n(K).a.create({withCredentials:!1})).interceptors.request.use((function(e){return e}),(function(e){return console.log("error",e),Promise.reject(new Error(e).message)})),K.interceptors.response.use((function(e){return console.log(".....",e),e.data}),(function(e){return console.log("error",e),Promise.reject(new Error(e).message)})),K);function oe(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"vue",n=[],i=[],o=[],r=(function e(t,n,i,o){for(var r=0;r<t.length;r++)"grid"==t[r].type?t[r].columns.forEach((function(t){e(t.list,n,i,o)})):"tabs"==t[r].type?t[r].tabs.forEach((function(t){e(t.list,n,i,o)})):"table"==t[r].type?e(t[r].list,n,i,o):"blank"==t[r].type?t[r].model&&o.push({name:t[r].model,label:t[r].name}):"upload"==t[r].type?t[r].options.tokenFunc&&i.push({func:t[r].options.tokenFunc,label:t[r].name,model:t[r].model}):t[r].options.remote&&t[r].options.remoteFunc&&n.push({func:t[r].options.remoteFunc,label:t[r].name,model:t[r].model})}(JSON.parse(e).list,n,i,o),""),s="",a=0;a<n.length;a++)r+="\n ".concat(n[a].func," (resolve) {\n // ").concat(n[a].label," ").concat(n[a].model,"\n // Call callback function once get the data from remote server\n // resolve(data)\n },\n ");for(var l=0;l<i.length;l++)r+="\n ".concat(i[l].func," (resolve) {\n // ").concat(i[l].label," ").concat(i[l].model,"\n // Call callback function once get the token\n // resolve(token)\n },\n ");for(var c=0;c<o.length;c++)s+='\n <template slot="'.concat(o[c].name,'" slot-scope="scope">\n \x3c!-- ').concat(o[c].label,' --\x3e\n \x3c!-- use v-model="scope.model.').concat(o[c].name,'" to bind data --\x3e\n </template>\n ');return"vue"==t?'\n<template>\n <div>\n <th-generate-form :data="jsonData" :remote="remoteFuncs" :value="editData" ref="generateForm">\n '.concat(s,'\n </th-generate-form>\n <el-button type="primary" @click="handleSubmit">提交</el-button>\n </div>\n</template>\n\n<script>\n export default {\n data () {\n return {\n jsonData: ').concat(e,",\n editData: {},\n remoteFuncs: {\n ").concat(r,"\n }\n }\n },\n methods: {\n handleSubmit () {\n this.$refs.generateForm.getData().then(data => {\n // data check success\n // data - form data\n }).catch(e => {\n // data check failed\n })\n }\n }\n }\n<\/script>"):'<!DOCTYPE html>\n <html>\n <head>\n <meta charset="UTF-8">\n <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">\n <link rel="stylesheet" href="https://unpkg.com/form-making/dist/FormMaking.css">\n </head>\n <body>\n <div id="app">\n <th-generate-form :data="jsonData" :remote="remoteFuncs" :value="editData" ref="generateForm">\n '.concat(s,'\n </th-generate-form>\n <el-button type="primary" @click="handleSubmit">提交</el-button>\n </div>\n <script src="https://unpkg.com/vue/dist/vue.js"><\/script>\n <script src="https://unpkg.com/element-ui/lib/index.js"><\/script>\n <script src="https://unpkg.com/form-making/dist/FormMaking.umd.js"><\/script>\n <script>\n new Vue({\n el: \'#app\',\n data: {\n jsonData: ').concat(e,",\n editData: {},\n remoteFuncs: {\n ").concat(r,"\n }\n },\n methods: {\n handleSubmit () {\n this.$refs.generateForm.getData().then(data => {\n // data check success\n // data - form data\n }).catch(e => {\n // data check failed\n })\n }\n }\n })\n <\/script>\n </body>\n </html>")}var re=1200,se=1252,ae=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],le={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},ce=function(e){-1!=ae.indexOf(e)&&(se=le[0]=e)},ue=function(e){ce(re=e)};
86
86
  /*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */function de(){ue(1200),ce(1252)}function he(e){for(var t=[],n=0,i=e.length;n<i;++n)t[n]=e.charCodeAt(n);return t}function fe(e){for(var t=[],n=0;n<e.length>>1;++n)t[n]=String.fromCharCode(e.charCodeAt(2*n+1)+(e.charCodeAt(2*n)<<8));return t.join("")}var pe,ge=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1);if(255!=t||254!=n)return 254==t&&255==n?fe(e.slice(2)):65279==t?e.slice(1):e;for(var i=e.slice(2),o=[],r=0;r<i.length>>1;++r)o[r]=String.fromCharCode(i.charCodeAt(2*r)+(i.charCodeAt(2*r+1)<<8));return o.join("")},me=function(e){return String.fromCharCode(e)},ve=function(e){return String.fromCharCode(e)},be="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function we(e){for(var t,n,i,o,r="",s=0,a=0,l=0;l<e.length;)i=(t=e.charCodeAt(l++))>>2,o=(3&t)<<4|(t=e.charCodeAt(l++))>>4,s=(15&t)<<2|(n=e.charCodeAt(l++))>>6,a=63&n,isNaN(t)?s=a=64:isNaN(n)&&(a=64),r+=be.charAt(i)+be.charAt(o)+be.charAt(s)+be.charAt(a);return r}function ye(e){var t,n,i="";e=e.replace(/[^\w\+\/\=]/g,"");for(var o=0;o<e.length;)t=be.indexOf(e.charAt(o++)),n=be.indexOf(e.charAt(o++)),i+=String.fromCharCode(t<<2|n>>4),64!==(t=be.indexOf(e.charAt(o++)))&&(i+=String.fromCharCode((15&n)<<4|t>>2)),64!==(n=be.indexOf(e.charAt(o++)))&&(i+=String.fromCharCode((3&t)<<6|n));return i}var xe="undefined"!=typeof Buffer&&"undefined"!=typeof process&&void 0!==process.versions&&!!process.versions.node,ke=function(){if("undefined"==typeof Buffer)return function(){};var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch(t){e=!0}return e?function(e,t){return t?new Buffer(e,t):new Buffer(e)}:Buffer.from.bind(Buffer)}();function _e(e){return xe?Buffer.alloc?Buffer.alloc(e):new Buffer(e):new("undefined"!=typeof Uint8Array?Uint8Array:Array)(e)}function Ce(e){return xe?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):new("undefined"!=typeof Uint8Array?Uint8Array:Array)(e)}var Se=function(e){return xe?ke(e,"binary"):e.split("").map((function(e){return 255&e.charCodeAt(0)}))};function Ee(e){if(Array.isArray(e))return e.map((function(e){return String.fromCharCode(e)})).join("");for(var t=[],n=0;n<e.length;++n)t[n]=String.fromCharCode(e[n]);return t.join("")}function Te(e){if("undefined"==typeof ArrayBuffer)throw new Error("Unsupported");if(e instanceof ArrayBuffer)return Te(new Uint8Array(e));for(var t=new Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t}var Ae=xe?function(e){return Buffer.concat(e.map((function(e){return Buffer.isBuffer(e)?e:ke(e)})))}:function(e){if("undefined"==typeof Uint8Array)return[].concat.apply([],e.map((function(e){return Array.isArray(e)?e:[].slice.call(e)})));var t=0,n=0;for(t=0;t<e.length;++t)n+=e[t].length;var i,o=new Uint8Array(n);for(n=t=0;t<e.length;n+=i,++t)if(i=e[t].length,e[t]instanceof Uint8Array)o.set(e[t],n);else{if("string"==typeof e[t])throw"wtf";o.set(new Uint8Array(e[t]),n)}return o},Oe=/\u0000/g,Le=/[\u0001-\u0006]/g;function $e(e){for(var t="",n=e.length-1;0<=n;)t+=e.charAt(n--);return t}function Re(e,t){return t<=(e=""+e).length?e:Mt("0",t-e.length)+e}function Me(e,t){return t<=(e=""+e).length?e:Mt(" ",t-e.length)+e}function Ie(e,t){return t<=(e=""+e).length?e:e+Mt(" ",t-e.length)}var Ne=Math.pow(2,32);function De(e,t){var n,i;return Ne<e||e<-Ne?(i=e,(n=t)<=(i=""+Math.round(i)).length?i:Mt("0",n-i.length)+i):(i=t)<=(e=""+(e=n=Math.round(e))).length?e:Mt("0",i-e.length)+e}function Pe(e,t){return e.length>=7+(t=t||0)&&103==(32|e.charCodeAt(t))&&101==(32|e.charCodeAt(t+1))&&110==(32|e.charCodeAt(t+2))&&101==(32|e.charCodeAt(t+3))&&114==(32|e.charCodeAt(t+4))&&97==(32|e.charCodeAt(t+5))&&108==(32|e.charCodeAt(t+6))}var Fe=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],qe=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]],Be={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},je={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},We={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function ze(e,t,n){var i,o=e<0?-1:1,r=e*o,s=0,a=1,l=0,c=1,u=0,d=0;for(Math.floor(r);u<t&&(l=(i=Math.floor(r))*a+s,d=i*u+c,!(r-i<5e-8));)r=1/(r-i),s=a,a=l,c=u,u=d;return t<d&&(l=t<u?(d=c,s):(d=u,a)),n?[e=Math.floor(o*l/d),o*l-e*d,d]:[0,o*l,d]}function He(e,t,n){var i,o,r,s;return 2958465<e||e<0?null:(r=[],s={D:i=0|e,T:o=Math.floor(86400*(e-i)),u:86400*(e-i)-o,y:e=0,m:0,d:0,H:0,M:0,S:0,q:0},Math.abs(s.u)<1e-6&&(s.u=0),t&&t.date1904&&(i+=1462),.9999<s.u&&(s.u=0,86400==++o)&&(s.T=o=0,++i,++s.D),60===i?(r=n?[1317,10,29]:[1900,2,29],e=3):0===i?(r=n?[1317,8,29]:[1900,1,0],e=6):(60<i&&--i,(t=new Date(1900,0,1)).setDate(t.getDate()+i-1),r=[t.getFullYear(),t.getMonth()+1,t.getDate()],e=t.getDay(),i<60&&(e=(e+6)%7),n&&(e=function(e,t){return t[0]-=581,t=e.getDay(),e<60&&(t=(t+6)%7),t}(t,r))),s.y=r[0],s.m=r[1],s.d=r[2],s.S=o%60,o=Math.floor(o/60),s.M=o%60,o=Math.floor(o/60),s.H=o,s.q=e,s)}var Ue=new Date(1899,11,31,0,0,0),Ve=Ue.getTime(),Ge=new Date(1900,2,1,0,0,0);function Ke(e,t){var n=e.getTime();return t?n-=1262304e5:Ge<=e&&(n+=864e5),(n-(Ve+6e4*(e.getTimezoneOffset()-Ue.getTimezoneOffset())))/864e5}function Ye(e){return-1==e.indexOf(".")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function Xe(e){var t,n,i=Math.floor(Math.log(Math.abs(e))*Math.LOG10E),o=-4<=i&&i<=-1?e.toPrecision(10+i):Math.abs(i)<=9?(t=(o=e)<0?12:11,(n=Ye(o.toFixed(12))).length<=t||(n=o.toPrecision(10)).length<=t?n:o.toExponential(5)):10===i?e.toFixed(10).substr(0,12):(n=Ye((t=e).toFixed(11))).length>(t<0?12:11)||"0"===n||"-0"===n?t.toPrecision(6):n;return Ye(-1==(i=o.toUpperCase()).indexOf("E")?i:i.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2"))}function Je(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(0|e)===e?e.toString(10):Xe(e);case"undefined":return"";case"object":if(null==e)return"";if(e instanceof Date)return pt(14,Ke(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function Ze(e){if(e.length<=3)return e;for(var t=e.length%3,n=e.substr(0,t);t!=e.length;t+=3)n+=(0<n.length?",":"")+e.substr(t,3);return n}var Qe=/%/g,et=/# (\?+)( ?)\/( ?)(\d+)/,tt=/^#*0*\.([0#]+)/,nt=/\).*[0#]/,it=/\(###\) ###\\?-####/;function ot(e){for(var t,n="",i=0;i!=e.length;++i)switch(t=e.charCodeAt(i)){case 35:break;case 63:n+=" ";break;case 48:n+="0";break;default:n+=String.fromCharCode(t)}return n}function rt(e,t){return t=Math.pow(10,t),""+Math.round(e*t)/t}function st(e,t){e-=Math.floor(e);var n=Math.pow(10,t);return t<(""+Math.round(e*n)).length?0:Math.round(e*n)}function at(e,t,n){if(40===e.charCodeAt(0)&&!t.match(nt))return i=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,""),0<=n?at("n",i,n):"("+at("n",i,-n)+")";if(44===t.charCodeAt(t.length-1)){for(var i=e,o=t,r=n,s=o.length-1;44===o.charCodeAt(s-1);)--s;return ct(i,o.substr(0,s),r/Math.pow(10,3*(o.length-s)))}if(-1!==t.indexOf("%"))return r=e,c=n,l=(u=t).replace(Qe,""),u=u.length-l.length,ct(r,l,c*Math.pow(10,2*u))+Mt("%",u);if(-1!==t.indexOf("E"))return function e(t,n){var i,o=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(0==n)return"0.0E+0";if(n<0)return"-"+e(t,-n);var r=t.indexOf("."),s=(-1===r&&(r=t.indexOf("E")),Math.floor(Math.log(n)*Math.LOG10E)%r);if(s<0&&(s+=r),-1===(i=(n/Math.pow(10,s)).toPrecision(1+o+(r+s)%r)).indexOf("e")){var a=Math.floor(Math.log(n)*Math.LOG10E);for(-1===i.indexOf(".")?i=i.charAt(0)+"."+i.substr(1)+"E+"+(a-i.length+s):i+="E+"+(a-s);"0."===i.substr(0,2);)i=(i=i.charAt(0)+i.substr(2,r)+"."+i.substr(2+r)).replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");i=i.replace(/\+-/,"-")}i=i.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(e,t,n,i){return t+n+i.substr(0,(r+s)%r)+"."+i.substr(s)+"E"}))}else i=n.toExponential(o);return t.match(/E\+00$/)&&i.match(/e[+-]\d$/)&&(i=i.substr(0,i.length-1)+"0"+i.charAt(i.length-1)),(i=t.match(/E\-/)&&i.match(/e\+/)?i.replace(/e\+/,"e"):i).replace("e","E")}(t,n);if(36===t.charCodeAt(0))return"$"+at(e,t.substr(" "==t.charAt(1)?2:1),n);var a,l,c,u,d,h=Math.abs(n),f=n<0?"-":"";if(t.match(/^00+$/))return f+De(h,t.length);if(t.match(/^[#?]+$/))return(p="0"===(p=De(n,0))?"":p).length>t.length?p:ot(t.substr(0,t.length-p.length))+p;if(a=t.match(et))return l=a,c=h,u=f,b=parseInt(l[4],10),c=Math.round(c*b),u+(0===(d=Math.floor(c/b))?"":""+d)+" "+(0==(c-=d*b)?Mt(" ",l[1].length+1+l[4].length):Me(c,l[1].length)+l[2]+"/"+l[3]+Re(b,l[4].length));if(t.match(/^#+0+$/))return f+De(h,t.length-t.indexOf("0"));if(a=t.match(tt))return p=rt(n,a[1].length).replace(/^([^\.]+)$/,"$1."+ot(a[1])).replace(/\.$/,"."+ot(a[1])).replace(/\.(\d*)$/,(function(e,t){return"."+t+Mt("0",ot(a[1]).length-t.length)})),-1!==t.indexOf("0.")?p:p.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),a=t.match(/^(0*)\.(#*)$/))return f+rt(h,a[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=t.match(/^#{1,3},##0(\.?)$/))return f+Ze(De(h,0));if(a=t.match(/^#,##0\.([#0]*0)$/))return n<0?"-"+at(e,t,-n):Ze(""+(Math.floor(n)+((d=a[1].length)<(""+Math.round((n-Math.floor(n))*Math.pow(10,d))).length?1:0)))+"."+Re(st(n,a[1].length),a[1].length);if(a=t.match(/^#,#*,#0/))return at(e,t.replace(/^#,#*,/,""),n);if(a=t.match(/^([0#]+)(\\?-([0#]+))+$/))return p=$e(at(e,t.replace(/[\\-]/g,""),n)),g=0,$e($e(t.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return g<p.length?p.charAt(g++):"0"===e?"0":""})));if(t.match(it))return"("+(p=at(e,"##########",n)).substr(0,3)+") "+p.substr(3,3)+"-"+p.substr(6);var p,g,m,v,b="";if(a=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return g=Math.min(a[4].length,7),v=ze(h,Math.pow(10,g)-1,!1),p=f," "==(b=ct("n",a[1],v[1])).charAt(b.length-1)&&(b=b.substr(0,b.length-1)+"0"),p+=b+a[2]+"/"+a[3],(b=Ie(v[2],g)).length<a[4].length&&(b=ot(a[4].substr(a[4].length-b.length))+b),p+=b;if(a=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return g=Math.min(Math.max(a[1].length,a[4].length),7),f+((v=ze(h,Math.pow(10,g)-1,!0))[0]||(v[1]?"":"0"))+" "+(v[1]?Me(v[1],g)+a[2]+"/"+a[3]+Ie(v[2],g):Mt(" ",2*g+1+a[2].length+a[3].length));if(a=t.match(/^[#0?]+$/))return p=De(n,0),t.length<=p.length?p:ot(t.substr(0,t.length-p.length))+p;if(a=t.match(/^([#0?]+)\.([#0]+)$/))return g=(p=""+n.toFixed(Math.min(a[2].length,10)).replace(/([^0])0+$/,"$1")).indexOf("."),v=t.indexOf(".")-g,m=t.length-p.length-v,ot(t.substr(0,v)+p+t.substr(t.length-m));if(a=t.match(/^00,000\.([#0]*0)$/))return g=st(n,a[1].length),n<0?"-"+at(e,t,-n):Ze((v=n)<2147483647&&-2147483648<v?""+(0<=v?0|v:v-1|0):""+Math.floor(v)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,(function(e){return"00,"+(e.length<3?Re(0,3-e.length):"")+e}))+"."+Re(g,a[1].length);switch(t){case"###,##0.00":return at(e,"#,##0.00",n);case"###,###":case"##,###":case"#,###":var w=Ze(De(h,0));return"0"!==w?f+w:"";case"###,###.00":return at(e,"###,##0.00",n).replace(/^0\./,".");case"#,###.00":return at(e,"#,##0.00",n).replace(/^0\./,".")}throw new Error("unsupported format |"+t+"|")}function lt(e,t,n){if(40===e.charCodeAt(0)&&!t.match(nt))return i=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,""),0<=n?lt("n",i,n):"("+lt("n",i,-n)+")";if(44===t.charCodeAt(t.length-1)){for(var i=e,o=t,r=n,s=o.length-1;44===o.charCodeAt(s-1);)--s;return ct(i,o.substr(0,s),r/Math.pow(10,3*(o.length-s)))}if(-1!==t.indexOf("%"))return r=e,l=n,c=(m=t).replace(Qe,""),m=m.length-c.length,ct(r,c,l*Math.pow(10,2*m))+Mt("%",m);if(-1!==t.indexOf("E"))return function e(t,n){var i,o=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(0==n)return"0.0E+0";if(n<0)return"-"+e(t,-n);var r,s=t.indexOf("."),a=(-1===s&&(s=t.indexOf("E")),Math.floor(Math.log(n)*Math.LOG10E)%s);a<0&&(a+=s),(i=(n/Math.pow(10,a)).toPrecision(1+o+(s+a)%s)).match(/[Ee]/)||(r=Math.floor(Math.log(n)*Math.LOG10E),-1===i.indexOf(".")?i=i.charAt(0)+"."+i.substr(1)+"E+"+(r-i.length+a):i+="E+"+(r-a),i=i.replace(/\+-/,"-")),i=i.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(e,t,n,i){return t+n+i.substr(0,(s+a)%s)+"."+i.substr(a)+"E"}))}else i=n.toExponential(o);return t.match(/E\+00$/)&&i.match(/e[+-]\d$/)&&(i=i.substr(0,i.length-1)+"0"+i.charAt(i.length-1)),(i=t.match(/E\-/)&&i.match(/e\+/)?i.replace(/e\+/,"e"):i).replace("e","E")}(t,n);if(36===t.charCodeAt(0))return"$"+lt(e,t.substr(" "==t.charAt(1)?2:1),n);var a,l,c,u=Math.abs(n),d=n<0?"-":"";if(t.match(/^00+$/))return d+Re(u,t.length);if(t.match(/^[#?]+$/))return(h=0===n?"":""+n).length>t.length?h:ot(t.substr(0,t.length-h.length))+h;if(a=t.match(et))return d+(0===(c=u)?"":""+c)+Mt(" ",(l=a)[1].length+2+l[4].length);if(t.match(/^#+0+$/))return d+Re(u,t.length-t.indexOf("0"));if(a=t.match(tt))return h=(h=(""+n).replace(/^([^\.]+)$/,"$1."+ot(a[1])).replace(/\.$/,"."+ot(a[1]))).replace(/\.(\d*)$/,(function(e,t){return"."+t+Mt("0",ot(a[1]).length-t.length)})),-1!==t.indexOf("0.")?h:h.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),a=t.match(/^(0*)\.(#*)$/))return d+(""+u).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=t.match(/^#{1,3},##0(\.?)$/))return d+Ze(""+u);if(a=t.match(/^#,##0\.([#0]*0)$/))return n<0?"-"+lt(e,t,-n):Ze(""+n)+"."+Mt("0",a[1].length);if(a=t.match(/^#,#*,#0/))return lt(e,t.replace(/^#,#*,/,""),n);if(a=t.match(/^([0#]+)(\\?-([0#]+))+$/))return h=$e(lt(e,t.replace(/[\\-]/g,""),n)),f=0,$e($e(t.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return f<h.length?h.charAt(f++):"0"===e?"0":""})));if(t.match(it))return"("+(h=lt(e,"##########",n)).substr(0,3)+") "+h.substr(3,3)+"-"+h.substr(6);var h,f,p,g,m="";if(a=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return f=Math.min(a[4].length,7),p=ze(u,Math.pow(10,f)-1,!1),h=d," "==(m=ct("n",a[1],p[1])).charAt(m.length-1)&&(m=m.substr(0,m.length-1)+"0"),h+=m+a[2]+"/"+a[3],(m=Ie(p[2],f)).length<a[4].length&&(m=ot(a[4].substr(a[4].length-m.length))+m),h+=m;if(a=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return f=Math.min(Math.max(a[1].length,a[4].length),7),d+((p=ze(u,Math.pow(10,f)-1,!0))[0]||(p[1]?"":"0"))+" "+(p[1]?Me(p[1],f)+a[2]+"/"+a[3]+Ie(p[2],f):Mt(" ",2*f+1+a[2].length+a[3].length));if(a=t.match(/^[#0?]+$/))return h=""+n,t.length<=h.length?h:ot(t.substr(0,t.length-h.length))+h;if(a=t.match(/^([#0]+)\.([#0]+)$/))return f=(h=""+n.toFixed(Math.min(a[2].length,10)).replace(/([^0])0+$/,"$1")).indexOf("."),p=t.indexOf(".")-f,g=t.length-h.length-p,ot(t.substr(0,p)+h+t.substr(t.length-g));if(a=t.match(/^00,000\.([#0]*0)$/))return n<0?"-"+lt(e,t,-n):Ze(""+n).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,(function(e){return"00,"+(e.length<3?Re(0,3-e.length):"")+e}))+"."+Re(0,a[1].length);switch(t){case"###,###":case"##,###":case"#,###":var v=Ze(""+u);return"0"!==v?d+v:"";default:if(t.match(/\.[0#?]*$/))return lt(e,t.slice(0,t.lastIndexOf(".")),n)+ot(t.slice(t.lastIndexOf(".")))}throw new Error("unsupported format |"+t+"|")}function ct(e,t,n){return((0|n)===n?lt:at)(e,t,n)}var ut=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function dt(e){for(var t=0,n="",i="";t<e.length;)switch(n=e.charAt(t)){case"G":Pe(e,t)&&(t+=6),t++;break;case'"':for(;34!==e.charCodeAt(++t)&&t<e.length;);++t;break;case"\\":case"_":t+=2;break;case"@":++t;break;case"B":case"b":if("1"===e.charAt(t+1)||"2"===e.charAt(t+1))return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if("A/P"===e.substr(t,3).toUpperCase())return!0;if("AM/PM"===e.substr(t,5).toUpperCase())return!0;if("上午/下午"===e.substr(t,5).toUpperCase())return!0;++t;break;case"[":for(i=n;"]"!==e.charAt(t++)&&t<e.length;)i+=e.charAt(t);if(i.match(ut))return!0;break;case".":case"0":case"#":for(;t<e.length&&(-1<"0#?.,E+-%".indexOf(n=e.charAt(++t))||"\\"==n&&"-"==e.charAt(t+1)&&-1<"0#".indexOf(e.charAt(t+2))););break;case"?":for(;e.charAt(++t)===n;);break;case"*":++t," "!=e.charAt(t)&&"*"!=e.charAt(t)||++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;t<e.length&&-1<"0123456789".indexOf(e.charAt(++t)););break;default:++t}return!1}var ht=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function ft(e,t){if(null!=t){var n=parseFloat(t[2]);switch(t[1]){case"=":if(e==n)return 1;break;case">":if(n<e)return 1;break;case"<":if(e<n)return 1;break;case"<>":if(e!=n)return 1;break;case">=":if(n<=e)return 1;break;case"<=":if(e<=n)return 1}}}function pt(e,t,n){null==n&&(n={});var i="";switch(typeof e){case"string":i="m/d/yy"==e&&n.dateNF?n.dateNF:e;break;case"number":null==(i=null==(i=14==e&&n.dateNF?n.dateNF:(null!=n.table?n.table:Be)[e])?n.table&&n.table[je[e]]||Be[je[e]]:i)&&(i=We[e]||"General")}if(Pe(i,0))return Je(t,n);var o=function(e,t){var n=function(e){for(var t=[],n=!1,i=0,o=0;i<e.length;++i)switch(e.charCodeAt(i)){case 34:n=!n;break;case 95:case 42:case 92:++i;break;case 59:t[t.length]=e.substr(o,i-o),o=i+1}if(t[t.length]=e.substr(o),!0===n)throw new Error("Format |"+e+"| unterminated string ");return t}(e),i=n[(e=n.length)-1].indexOf("@");if(e<4&&-1<i&&--e,4<n.length)throw new Error("cannot find right format for |"+n.join("|")+"|");if("number"!=typeof t)return[4,4===n.length||-1<i?n[n.length-1]:"@"];switch(n.length){case 1:n=-1<i?["General","General","General",n[0]]:[n[0],n[0],n[0],"@"];break;case 2:n=-1<i?[n[0],n[0],n[0],n[1]]:[n[0],n[1],n[0],"@"];break;case 3:n=-1<i?[n[0],n[1],n[0],n[2]]:[n[0],n[1],n[2],"@"]}var o,r,s=0<t?n[0]:t<0?n[1]:n[2];return-1===n[0].indexOf("[")&&-1===n[1].indexOf("[")||null==n[0].match(/\[[=<>]/)&&null==n[1].match(/\[[=<>]/)?[e,s]:(o=n[0].match(ht),r=n[1].match(ht),ft(t,o)?[e,n[0]]:ft(t,r)?[e,n[1]]:[e,n[null!=o&&null!=r?2:1]])}(i,t=t instanceof Date?Ke(t,n.date1904):t);if(Pe(o[1]))return Je(t,n);if(!0===t)t="TRUE";else if(!1===t)t="FALSE";else if(""===t||null==t)return"";return function(e,t,n,i){for(var o,r,s,a=[],l="",c=0,u="",d="t",h="H";c<e.length;)switch(u=e.charAt(c)){case"G":if(!Pe(e,c))throw new Error("unrecognized character "+u+" in "+e);a[a.length]={t:"G",v:"General"},c+=7;break;case'"':for(l="";34!==(s=e.charCodeAt(++c))&&c<e.length;)l+=String.fromCharCode(s);a[a.length]={t:"t",v:l},++c;break;case"\\":var f=e.charAt(++c);a[a.length]={t:"("===f||")"===f?f:"t",v:f},++c;break;case"_":a[a.length]={t:"t",v:" "},c+=2;break;case"@":a[a.length]={t:"T",v:t},++c;break;case"B":case"b":if("1"===e.charAt(c+1)||"2"===e.charAt(c+1)){if(null==o&&null==(o=He(t,n,"2"===e.charAt(c+1))))return"";a[a.length]={t:"X",v:e.substr(c,2)},d=u,c+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":u=u.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(t<0)return"";if(null==o&&null==(o=He(t,n)))return"";for(l=u;++c<e.length&&e.charAt(c).toLowerCase()===u;)l+=u;"h"===(u="m"===u&&"h"===d.toLowerCase()?"M":u)&&(u=h),a[a.length]={t:u,v:l},d=u;break;case"A":case"a":case"上":if(f={t:u,v:u},null==o&&(o=He(t,n)),"A/P"===e.substr(c,3).toUpperCase()?(null!=o&&(f.v=12<=o.H?"P":"A"),f.t="T",h="h",c+=3):"AM/PM"===e.substr(c,5).toUpperCase()?(null!=o&&(f.v=12<=o.H?"PM":"AM"),f.t="T",c+=5,h="h"):"上午/下午"===e.substr(c,5).toUpperCase()?(null!=o&&(f.v=12<=o.H?"下午":"上午"),f.t="T",c+=5,h="h"):(f.t="t",++c),null==o&&"T"===f.t)return"";a[a.length]=f,d=u;break;case"[":for(l=u;"]"!==e.charAt(c++)&&c<e.length;)l+=e.charAt(c);if("]"!==l.slice(-1))throw'unterminated "[" block: |'+l+"|";if(l.match(ut)){if(null==o&&null==(o=He(t,n)))return"";a[a.length]={t:"Z",v:l.toLowerCase()},d=l.charAt(1)}else-1<l.indexOf("$")&&(l=(l.match(/\$([^-\[\]]*)/)||[])[1]||"$",dt(e)||(a[a.length]={t:"t",v:l}));break;case".":if(null!=o){for(l=u;++c<e.length&&"0"===(u=e.charAt(c));)l+=u;a[a.length]={t:"s",v:l};break}case"0":case"#":for(l=u;++c<e.length&&-1<"0#?.,E+-%".indexOf(u=e.charAt(c));)l+=u;a[a.length]={t:"n",v:l};break;case"?":for(l=u;e.charAt(++c)===u;)l+=u;a[a.length]={t:u,v:l},d=u;break;case"*":++c," "!=e.charAt(c)&&"*"!=e.charAt(c)||++c;break;case"(":case")":a[a.length]={t:1===i?"t":u,v:u},++c;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(l=u;c<e.length&&-1<"0123456789".indexOf(e.charAt(++c));)l+=e.charAt(c);a[a.length]={t:"D",v:l};break;case" ":a[a.length]={t:u,v:u},++c;break;case"$":a[a.length]={t:"t",v:"$"},++c;break;default:if(-1===",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(u))throw new Error("unrecognized character "+u+" in "+e);a[a.length]={t:"t",v:u},++c}var p,g=0,m=0;for(c=a.length-1,d="t";0<=c;--c)switch(a[c].t){case"h":case"H":a[c].t=h,d="h",g<1&&(g=1);break;case"s":(p=a[c].v.match(/\.0+$/))&&(m=Math.max(m,p[0].length-1)),g<3&&(g=3);case"d":case"y":case"M":case"e":d=a[c].t;break;case"m":"s"===d&&(a[c].t="M",g<2)&&(g=2);break;case"X":break;case"Z":(g=(g=g<1&&a[c].v.match(/[Hh]/)?1:g)<2&&a[c].v.match(/[Mm]/)?2:g)<3&&a[c].v.match(/[Ss]/)&&(g=3)}switch(g){case 0:break;case 1:.5<=o.u&&(o.u=0,++o.S),60<=o.S&&(o.S=0,++o.M),60<=o.M&&(o.M=0,++o.H);break;case 2:.5<=o.u&&(o.u=0,++o.S),60<=o.S&&(o.S=0,++o.M)}var v="";for(c=0;c<a.length;++c)switch(a[c].t){case"t":case"T":case" ":case"D":break;case"X":a[c].v="",a[c].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":a[c].v=function(e,t,n,i){var o,r="",s=0,a=0,l=n.y,c=0;switch(e){case 98:l=n.y+543;case 121:switch(t.length){case 1:case 2:o=l%100,c=2;break;default:o=l%1e4,c=4}break;case 109:switch(t.length){case 1:case 2:o=n.m,c=t.length;break;case 3:return qe[n.m-1][1];case 5:return qe[n.m-1][0];default:return qe[n.m-1][2]}break;case 100:switch(t.length){case 1:case 2:o=n.d,c=t.length;break;case 3:return Fe[n.q][0];default:return Fe[n.q][1]}break;case 104:switch(t.length){case 1:case 2:o=1+(n.H+11)%12,c=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:o=n.H,c=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:o=n.M,c=t.length;break;default:throw"bad minute format: "+t}break;case 115:if("s"!=t&&"ss"!=t&&".0"!=t&&".00"!=t&&".000"!=t)throw"bad second format: "+t;return 0!==n.u||"s"!=t&&"ss"!=t?(60*(a=2<=i?3===i?1e3:100:1===i?10:1)<=(s=Math.round(a*(n.S+n.u)))&&(s=0),"s"===t?0===s?"0":""+s/a:(r=Re(s,2+i),"ss"===t?r.substr(0,2):"."+r.substr(2,t.length-1))):Re(n.S,t.length);case 90:switch(t){case"[h]":case"[hh]":o=24*n.D+n.H;break;case"[m]":case"[mm]":o=60*(24*n.D+n.H)+n.M;break;case"[s]":case"[ss]":o=60*(60*(24*n.D+n.H)+n.M)+Math.round(n.S+n.u);break;default:throw"bad abstime format: "+t}c=3===t.length?1:2;break;case 101:o=l,c=1}return 0<c?Re(o,c):""}(a[c].t.charCodeAt(0),a[c].v,o,m),a[c].t="t";break;case"n":case"?":for(x=c+1;null!=a[x]&&("?"===(u=a[x].t)||"D"===u||(" "===u||"t"===u)&&null!=a[x+1]&&("?"===a[x+1].t||"t"===a[x+1].t&&"/"===a[x+1].v)||"("===a[c].t&&(" "===u||"n"===u||")"===u)||"t"===u&&("/"===a[x].v||" "===a[x].v&&null!=a[x+1]&&"?"==a[x+1].t));)a[c].v+=a[x].v,a[x]={v:"",t:";"},++x;v+=a[c].v,c=x-1;break;case"G":a[c].t="t",a[c].v=Je(t,n)}var b,w,y="";if(0<v.length){40==v.charCodeAt(0)?(b=t<0&&45===v.charCodeAt(0)?-t:t,w=ct("n",v,b)):(w=ct("n",v,b=t<0&&1<i?-t:t),b<0&&a[0]&&"t"==a[0].t&&(w=w.substr(1),a[0].v="-"+a[0].v));var x=w.length-1,k=a.length;for(c=0;c<a.length;++c)if(null!=a[c]&&"t"!=a[c].t&&-1<a[c].v.indexOf(".")){k=c;break}var _=a.length;if(k===a.length&&-1===w.indexOf("E")){for(c=a.length-1;0<=c;--c)null!=a[c]&&-1!=="n?".indexOf(a[c].t)&&(x>=a[c].v.length-1?(x-=a[c].v.length,a[c].v=w.substr(x+1,a[c].v.length)):x<0?a[c].v="":(a[c].v=w.substr(0,x+1),x=-1),a[c].t="t",_=c);0<=x&&_<a.length&&(a[_].v=w.substr(0,x+1)+a[_].v)}else if(k!==a.length&&-1===w.indexOf("E")){for(x=w.indexOf(".")-1,c=k;0<=c;--c)if(null!=a[c]&&-1!=="n?".indexOf(a[c].t)){for(r=-1<a[c].v.indexOf(".")&&c===k?a[c].v.indexOf(".")-1:a[c].v.length-1,y=a[c].v.substr(r+1);0<=r;--r)0<=x&&("0"===a[c].v.charAt(r)||"#"===a[c].v.charAt(r))&&(y=w.charAt(x--)+y);a[c].v=y,a[c].t="t",_=c}for(0<=x&&_<a.length&&(a[_].v=w.substr(0,x+1)+a[_].v),x=w.indexOf(".")+1,c=k;c<a.length;++c)if(null!=a[c]&&(-1!=="n?(".indexOf(a[c].t)||c===k)){for(r=-1<a[c].v.indexOf(".")&&c===k?a[c].v.indexOf(".")+1:0,y=a[c].v.substr(0,r);r<a[c].v.length;++r)x<w.length&&(y+=w.charAt(x++));a[c].v=y,a[c].t="t",_=c}}}for(c=0;c<a.length;++c)null!=a[c]&&-1<"n?".indexOf(a[c].t)&&(b=1<i&&t<0&&0<c&&"-"===a[c-1].v?-t:t,a[c].v=ct(a[c].t,a[c].v,b),a[c].t="t");var C="";for(c=0;c!==a.length;++c)null!=a[c]&&(C+=a[c].v);return C}(o[1],t,n,o[0])}function gt(e,t){if("number"!=typeof t){t=+t||-1;for(var n=0;n<392;++n)if(null==Be[n])t<0&&(t=n);else if(Be[n]==e){t=n;break}t<0&&(t=391)}return Be[t]=e,t}function mt(){var e;(e=e||{})[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',Be=e}var vt={5:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',23:"General",24:"General",25:"General",26:"General",27:"m/d/yy",28:"m/d/yy",29:"m/d/yy",30:"m/d/yy",31:"m/d/yy",32:"h:mm:ss",33:"h:mm:ss",34:"h:mm:ss",35:"h:mm:ss",36:"m/d/yy",41:'_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* (#,##0);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',50:"m/d/yy",51:"m/d/yy",52:"m/d/yy",53:"m/d/yy",54:"m/d/yy",55:"m/d/yy",56:"m/d/yy",57:"m/d/yy",58:"m/d/yy",59:"0",60:"0.00",61:"#,##0",62:"#,##0.00",63:'"$"#,##0_);\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',67:"0%",68:"0.00%",69:"# ?/?",70:"# ??/??",71:"m/d/yy",72:"m/d/yy",73:"d-mmm-yy",74:"d-mmm",75:"mmm-yy",76:"h:mm",77:"h:mm:ss",78:"m/d/yy h:mm",79:"mm:ss",80:"[h]:mm:ss",81:"mmss.0"},bt=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g,wt=function(){var e={version:"1.2.0"},t=function(){for(var e,t=new Array(256),n=0;256!=n;++n)t[e=n]=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&e?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1;return"undefined"!=typeof Int32Array?new Int32Array(t):t}(),n=function(e){var t=0,n=0,i=0,o=new("undefined"!=typeof Int32Array?Int32Array:Array)(4096);for(i=0;256!=i;++i)o[i]=e[i];for(i=0;256!=i;++i)for(n=e[i],t=256+i;t<4096;t+=256)n=o[t]=n>>>8^e[255&n];var r=[];for(i=1;16!=i;++i)r[i-1]="undefined"!=typeof Int32Array?o.subarray(256*i,256*i+256):o.slice(256*i,256*i+256);return r}(t),i=n[0],o=n[1],r=n[2],s=n[3],a=n[4],l=n[5],c=n[6],u=n[7],d=n[8],h=n[9],f=n[10],p=n[11],g=n[12],m=n[13],v=n[14];return e.table=t,e.bstr=function(e,n){for(var i=-1^n,o=0,r=e.length;o<r;)i=i>>>8^t[255&(i^e.charCodeAt(o++))];return~i},e.buf=function(e,n){for(var b=-1^n,w=e.length-15,y=0;y<w;)b=v[e[y++]^255&b]^m[e[y++]^b>>8&255]^g[e[y++]^b>>16&255]^p[e[y++]^b>>>24]^f[e[y++]]^h[e[y++]]^d[e[y++]]^u[e[y++]]^c[e[y++]]^l[e[y++]]^a[e[y++]]^s[e[y++]]^r[e[y++]]^o[e[y++]]^i[e[y++]]^t[e[y++]];for(w+=15;y<w;)b=b>>>8^t[255&(b^e[y++])];return~b},e.str=function(e,n){for(var i,o=-1^n,r=0,s=e.length,a=0;r<s;)o=(a=e.charCodeAt(r++))<128?o>>>8^t[255&(o^a)]:a<2048?(o=o>>>8^t[255&(o^(192|a>>6&31))])>>>8^t[255&(o^(128|63&a))]:55296<=a&&a<57344?(a=64+(1023&a),i=1023&e.charCodeAt(r++),(o=(o=(o=o>>>8^t[255&(o^(240|a>>8&7))])>>>8^t[255&(o^(128|a>>2&63))])>>>8^t[255&(o^(128|i>>6&15|(3&a)<<4))])>>>8^t[255&(o^(128|63&i))]):(o=(o=o>>>8^t[255&(o^(224|a>>12&15))])>>>8^t[255&(o^(128|a>>6&63))])>>>8^t[255&(o^(128|63&a))];return~o},e}(),yt=function(){var e,t={};function n(e){var t;return"/"==e.charAt(e.length-1)?-1===e.slice(0,-1).indexOf("/")?e:n(e.slice(0,-1)):-1===(t=e.lastIndexOf("/"))?e:e.slice(0,t+1)}function i(e){var t;return"/"==e.charAt(e.length-1)?i(e.slice(0,-1)):-1===(t=e.lastIndexOf("/"))?e:e.slice(t+1)}function o(e){ii(e,0);for(var t,n={};e.l<=e.length-4;){var i=e.read_shift(2),o=e.read_shift(2),r=e.l+o,s={};21589===i&&(1&(t=e.read_shift(1))&&(s.mtime=e.read_shift(4)),5<o&&(2&t&&(s.atime=e.read_shift(4)),4&t)&&(s.ctime=e.read_shift(4)),s.mtime)&&(s.mt=new Date(1e3*s.mtime)),e.l=r,n[i]=s}return n}function r(){e=e||{}}function s(e,t){if(80==e[0]&&75==e[1])return X(e,t);if(109==(32|e[0])&&105==(32|e[1])){var n=t;if("mime-version:"!=v((_=e).slice(0,13)).toLowerCase())throw new Error("Unsupported MAD header");var i=n&&n.root||"",o=(xe&&Buffer.isBuffer(_)?_.toString("binary"):v(_)).split("\r\n"),r=0,s="";for(r=0;r<o.length;++r)if(s=o[r],/^Content-Location:/i.test(s)&&(s=s.slice(s.indexOf("file")),i=i||s.slice(0,s.lastIndexOf("/")+1),s.slice(0,i.length)!=i))for(;0<i.length&&(i=(i=i.slice(0,i.length-1)).slice(0,i.lastIndexOf("/")+1),s.slice(0,i.length)!=i););if(!(n=(o[1]||"").match(/boundary="(.*?)"/)))throw new Error("MAD cannot find boundary");var c="--"+(n[1]||""),u={FileIndex:[],FullPaths:[]};l(u);var d,p=0;for(r=0;r<o.length;++r){var g=o[r];g!==c&&g!==c+"--"||(p++&&function(e,t,n){for(var i,o="",r="",s="",a=0;a<10;++a){var l=t[a];if(!l||l.match(/^\s*$/))break;var c=l.match(/^(.*?):\s*([^\s].*)$/);if(c)switch(c[1].toLowerCase()){case"content-location":o=c[2].trim();break;case"content-type":s=c[2].trim();break;case"content-transfer-encoding":r=c[2].trim()}}switch(++a,r.toLowerCase()){case"base64":i=Se(ye(t.slice(a).join("")));break;case"quoted-printable":i=function(e){for(var t=[],n=0;n<e.length;++n){for(var i=e[n];n<=e.length&&"="==i.charAt(i.length-1);)i=i.slice(0,i.length-1)+e[++n];t.push(i)}for(var o=0;o<t.length;++o)t[o]=t[o].replace(/[=][0-9A-Fa-f]{2}/g,(function(e){return String.fromCharCode(parseInt(e.slice(1),16))}));return Se(t.join("\r\n"))}(t.slice(a));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+r)}e=Z(e,o.slice(n.length),i,{unsafe:!0}),s&&(e.ctype=s)}(u,o.slice(d,r),i),d=r)}return u}if(e.length<512)throw new Error("CFB file size "+e.length+" < 512");var m,b=512,w=[],y=e.slice(0,512),x=(ii(y,0),function(e){if(80==e[e.l]&&75==e[e.l+1])return[0,0];e.chk(f,"Header Signature: "),e.l+=16;var t=e.read_shift(2,"u");return[e.read_shift(2,"u"),t]}(y));switch(m=x[0]){case 3:b=512;break;case 4:b=4096;break;case 0:if(0==x[1])return X(e,t);default:throw new Error("Major Version: Expected 3 or 4 saw "+m)}512!==b&&ii(y=e.slice(0,b),28);var k,_=e.slice(0,b),C=m;switch((n=y).l+=2,k=n.read_shift(2)){case 9:if(3!=C)throw new Error("Sector Shift: Expected 9 saw "+k);break;case 12:if(4!=C)throw new Error("Sector Shift: Expected 12 saw "+k);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+k)}n.chk("0600","Mini Sector Shift: "),n.chk("000000000000","Reserved: ");var S=y.read_shift(4,"i");if(3===m&&0!==S)throw new Error("# Directory Sectors: Expected 0 saw "+S);y.l+=4,S=y.read_shift(4,"i"),y.l+=4,y.chk("00100000","Mini Stream Cutoff Size: ");for(var E,T=y.read_shift(4,"i"),A=y.read_shift(4,"i"),O=y.read_shift(4,"i"),L=y.read_shift(4,"i"),$=0;$<109&&!((E=y.read_shift(4,"i"))<0);++$)w[$]=E;for(var R,M=function(e,t){for(var n=Math.ceil(e.length/t)-1,i=[],o=1;o<n;++o)i[o-1]=e.slice(o*t,(o+1)*t);return i[n-1]=e.slice(n*t),i}(e,b),I=(L=((O=(function e(t,n,i,o,r){var s=h;if(t===h){if(0!==n)throw new Error("DIFAT chain shorter than expected")}else if(-1!==t){var a=i[t],l=(o>>>2)-1;if(a){for(var c=0;c<l&&(s=Jn(a,4*c))!==h;++c)r.push(s);e(Jn(a,o-4),n-1,i,o,r)}}}(O,L,M,b,w),function(e,t,n,i){var o=e.length,r=[],s=[],a=[],l=[],c=i-1,u=0,d=0,h=0,f=0;for(u=0;u<o;++u)if(a=[],o<=(h=u+t)&&(h-=o),!s[h]){l=[];var p=[];for(d=h;0<=d;){s[d]=p[d]=!0,a[a.length]=d,l.push(e[d]);var g=n[Math.floor(4*d/i)];if(i<4+(f=4*d&c))throw new Error("FAT boundary crossed: "+d+" 4 "+i);if(!e[g])break;if(p[d=Jn(e[g],f)])break}r[h]={nodes:a,data:Dn([l])}}return r}(M,S,w,b)))[S].name="!Directory",0<A&&T!==h&&(O[T].name="!MiniFAT"),O[w[0]].name="!FAT",O.fat_addrs=w,O.ssz=b,[]),[]),N=[],D=O,P=M,F=L,q=A,B={},j=I,W=T,z=0,H=F.length?2:0,U=D[S].data,V=0,G=0;V<U.length;V+=128){var K=U.slice(V,V+128),Y=(ii(K,64),G=K.read_shift(2),R=Pn(K,0,G-H),F.push(R),{name:R,type:K.read_shift(1),color:K.read_shift(1),L:K.read_shift(4,"i"),R:K.read_shift(4,"i"),C:K.read_shift(4,"i"),clsid:K.read_shift(16),state:K.read_shift(4,"i"),start:0,size:0});0!==K.read_shift(2)+K.read_shift(2)+K.read_shift(2)+K.read_shift(2)&&(Y.ct=a(K,K.l-8)),0!==K.read_shift(2)+K.read_shift(2)+K.read_shift(2)+K.read_shift(2)&&(Y.mt=a(K,K.l-8)),Y.start=K.read_shift(4,"i"),Y.size=K.read_shift(4,"i"),Y.size<0&&Y.start<0&&(Y.size=Y.type=0,Y.start=h,Y.name=""),5===Y.type?(z=Y.start,0<q&&z!==h&&(D[z].name="!StreamData")):4096<=Y.size?(Y.storage="fat",void 0===D[Y.start]&&(D[Y.start]=function(e,t,n,i,o){var r=[],s=[];o=o||[];var a=i-1,l=0,c=0;for(l=t;0<=l;){o[l]=!0,r[r.length]=l,s.push(e[l]);var u=n[Math.floor(4*l/i)];if(i<4+(c=4*l&a))throw new Error("FAT boundary crossed: "+l+" 4 "+i);if(!e[u])break;l=Jn(e[u],c)}return{nodes:r,data:Dn([s])}}(P,Y.start,D.fat_addrs,D.ssz)),D[Y.start].name=Y.name,Y.content=D[Y.start].data.slice(0,Y.size)):(Y.storage="minifat",Y.size<0?Y.size=0:z!==h&&Y.start!==h&&D[z]&&(Y.content=function(e,t,n){for(var i=e.start,o=e.size,r=[],s=i;n&&0<o&&0<=s;)r.push(t.slice(64*s,64*s+64)),o-=64,s=Jn(n,4*s);return 0===r.length?ri(0):Ae(r).slice(0,e.size)}(Y,D[z].data,(D[W]||{}).data))),Y.content&&ii(Y.content,0),B[R]=Y,j.push(Y)}for(var J=I,Q=N,ee=L,te=0,ne=0,ie=0,oe=0,re=0,se=ee.length,ae=[],le=[];te<se;++te)ae[te]=le[te]=te,Q[te]=ee[te];for(;re<le.length;++re)ne=J[te=le[re]].L,ie=J[te].R,oe=J[te].C,ae[te]===te&&(-1!==ne&&ae[ne]!==ne&&(ae[te]=ae[ne]),-1!==ie)&&ae[ie]!==ie&&(ae[te]=ae[ie]),-1!==oe&&(ae[oe]=te),-1!==ne&&te!=ae[te]&&(ae[ne]=ae[te],le.lastIndexOf(ne)<re)&&le.push(ne),-1!==ie&&te!=ae[te]&&(ae[ie]=ae[te],le.lastIndexOf(ie)<re)&&le.push(ie);for(te=1;te<se;++te)ae[te]===te&&(-1!==ie&&ae[ie]!==ie?ae[te]=ae[ie]:-1!==ne&&ae[ne]!==ne&&(ae[te]=ae[ne]));for(te=1;te<se;++te)if(0!==J[te].type){if((re=te)!=ae[re])for(;re=ae[re],Q[te]=Q[re]+"/"+Q[te],0!==re&&-1!==ae[re]&&re!=ae[re];);ae[te]=-1}for(Q[0]+="/",te=1;te<se;++te)2!==J[te].type&&(Q[te]+="/");return L.shift(),O={FileIndex:I,FullPaths:N},t&&t.raw&&(O.raw={header:_,sectors:M}),O}function a(e,t){return new Date(1e3*(Xn(e,t+4)/1e7*Math.pow(2,32)+Xn(e,t)/1e7-11644473600))}function l(e,t){var n=(t=t||{}).root||"Root Entry";if(e.FullPaths||(e.FullPaths=[]),e.FileIndex||(e.FileIndex=[]),e.FullPaths.length!==e.FileIndex.length)throw new Error("inconsistent CFB structure");0===e.FullPaths.length&&(e.FullPaths[0]=n+"/",e.FileIndex[0]={name:n,type:5}),t.CLSID&&(e.FileIndex[0].clsid=t.CLSID),n=e,t="Sh33tJ5",yt.find(n,"/"+t)||((e=ri(4))[0]=55,e[1]=e[3]=50,e[2]=54,n.FileIndex.push({name:t,type:2,content:e,size:4,L:69,R:69,C:69}),n.FullPaths.push(n.FullPaths[0]+t),c(n))}function c(e,t){l(e);for(var o=!1,r=!1,s=e.FullPaths.length-1;0<=s;--s){var a=e.FileIndex[s];switch(a.type){case 0:r?o=!0:(e.FileIndex.pop(),e.FullPaths.pop());break;case 1:case 2:case 5:r=!0,isNaN(a.R*a.L*a.C)&&(o=!0),-1<a.R&&-1<a.L&&a.R==a.L&&(o=!0);break;default:o=!0}}if(o||t){var c=new Date(1987,1,19),u=0,d=Object.create?Object.create(null):{},h=[];for(s=0;s<e.FullPaths.length;++s)d[e.FullPaths[s]]=!0,0!==e.FileIndex[s].type&&h.push([e.FullPaths[s],e.FileIndex[s]]);for(s=0;s<h.length;++s){var f=n(h[s][0]);(r=d[f])||(h.push([f,{name:i(f).replace("/",""),type:1,clsid:g,ct:c,mt:c,content:null}]),d[f]=!0)}for(h.sort((function(e,t){e=e[0],t=t[0];for(var n,i=e.split("/"),o=t.split("/"),r=0,s=Math.min(i.length,o.length);r<s;++r){if(n=i[r].length-o[r].length)return n;if(i[r]!=o[r])return i[r]<o[r]?-1:1}return i.length-o.length})),e.FullPaths=[],e.FileIndex=[],s=0;s<h.length;++s)e.FullPaths[s]=h[s][0],e.FileIndex[s]=h[s][1];for(s=0;s<h.length;++s){var p=e.FileIndex[s],m=e.FullPaths[s];if(p.name=i(m).replace("/",""),p.L=p.R=p.C=-(p.color=1),p.size=p.content?p.content.length:0,p.start=0,p.clsid=p.clsid||g,0===s)p.C=1<h.length?1:-1,p.size=0,p.type=5;else if("/"==m.slice(-1)){for(u=s+1;u<h.length&&n(e.FullPaths[u])!=m;++u);for(p.C=h.length<=u?-1:u,u=s+1;u<h.length&&n(e.FullPaths[u])!=n(m);++u);p.R=h.length<=u?-1:u,p.type=1}else n(e.FullPaths[s+1]||"")==n(m)&&(p.R=s+1),p.type=2}}}function u(e,t){var n=t||{};if("mad"==n.fileType){for(var i=e,o=n||{},r=o.boundary||"SheetJS",s=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+(r="------="+r).slice(2)+'"',"","",""],a=i.FullPaths[0],l=a,u=i.FileIndex[0],f=1;f<i.FullPaths.length;++f)if(l=i.FullPaths[f].slice(a.length),(u=i.FileIndex[f]).size&&u.content&&"Sh33tJ5"!=l){l=l.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,(function(e){return"_x"+e.charCodeAt(0).toString(16)+"_"})).replace(/[\u0080-\uFFFF]/g,(function(e){return"_u"+e.charCodeAt(0).toString(16)+"_"}));for(var g=u.content,b=xe&&Buffer.isBuffer(g)?g.toString("binary"):v(g),w=0,y=Math.min(1024,b.length),x=0,k=0;k<=y;++k)32<=(x=b.charCodeAt(k))&&x<128&&++w;g=4*y/5<=w,s.push(r),s.push("Content-Location: "+(o.root||"file:///C:/SheetJS/")+l),s.push("Content-Transfer-Encoding: "+(g?"quoted-printable":"base64")),s.push("Content-Type: "+function(e,t){if(e.ctype)return e.ctype;var n=(e=e.name||"").match(/\.([^\.]+)$/);return n&&J[n[1]]||t&&(n=(e=t).match(/[\.\\]([^\.\\])+$/))&&J[n[1]]?J[n[1]]:"application/octet-stream"}(u,l)),s.push(""),s.push((g?function(e){"\n"==(e=(e=e.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,(function(e){return"="+(1==(e=e.charCodeAt(0).toString(16).toUpperCase()).length?"0"+e:e)}))).replace(/ $/gm,"=20").replace(/\t$/gm,"=09")).charAt(0)&&(e="=0D"+e.slice(1));for(var t=[],n=(e=e.replace(/\r(?!\n)/gm,"=0D").replace(/\n\n/gm,"\n=0A").replace(/([^\r\n])\n/gm,"$1=0A")).split("\r\n"),i=0;i<n.length;++i){var o=n[i];if(0==o.length)t.push("");else for(var r=0;r<o.length;){var s=76,a=o.slice(r,r+s);"="==a.charAt(s-1)?s--:"="==a.charAt(s-2)?s-=2:"="==a.charAt(s-3)&&(s-=3),a=o.slice(r,r+s),(r+=s)<o.length&&(a+="="),t.push(a)}}return t.join("\r\n")}:function(e){for(var t=we(e),n=[],i=0;i<t.length;i+=76)n.push(t.slice(i,i+76));return n.join("\r\n")+"\r\n"})(b))}return s.push(r+"--\r\n"),s.join("\r\n")}if(c(e),"zip"===n.fileType){var _=e,C=(t=(t=n)||{},[]),S=[],E=ri(1),T=t.compression?8:0,A=0,O=0,L=0,$=0,R=_.FullPaths[0],M=R,I=_.FileIndex[0],N=[],D=0;for(A=1;A<_.FullPaths.length;++A)if(M=_.FullPaths[A].slice(R.length),(I=_.FileIndex[A]).size&&I.content&&"Sh33tJ5"!=M){var P=L,F=ri(M.length);for(O=0;O<M.length;++O)F.write_shift(1,127&M.charCodeAt(O));F=F.slice(0,F.l),N[$]=wt.buf(I.content,0);var q=I.content;8==T&&(q=function(e){return d?d.deflateRawSync(e):W(e)}(q)),(E=ri(30)).write_shift(4,67324752),E.write_shift(2,20),E.write_shift(2,0),E.write_shift(2,T),I.mt?function(e,t){var n;n=((t="string"==typeof t?new Date(t):t).getHours()<<6|t.getMinutes())<<5|t.getSeconds()>>>1,e.write_shift(2,n),n=(t.getFullYear()-1980<<4|t.getMonth()+1)<<5|t.getDate(),e.write_shift(2,n)}(E,I.mt):E.write_shift(4,0),E.write_shift(-4,N[$]),E.write_shift(4,q.length),E.write_shift(4,I.content.length),E.write_shift(2,F.length),E.write_shift(2,0),L+=E.length,C.push(E),L+=F.length,C.push(F),L+=q.length,C.push(q),(E=ri(46)).write_shift(4,33639248),E.write_shift(2,0),E.write_shift(2,20),E.write_shift(2,0),E.write_shift(2,T),E.write_shift(4,0),E.write_shift(-4,N[$]),E.write_shift(4,q.length),E.write_shift(4,I.content.length),E.write_shift(2,F.length),E.write_shift(2,0),E.write_shift(2,0),E.write_shift(2,0),E.write_shift(2,0),E.write_shift(4,0),E.write_shift(4,P),D+=E.l,S.push(E),D+=F.length,S.push(F),++$}return(E=ri(22)).write_shift(4,101010256),E.write_shift(2,0),E.write_shift(2,0),E.write_shift(2,$),E.write_shift(2,$),E.write_shift(4,D),E.write_shift(4,L),E.write_shift(2,0),Ae([Ae(C),Ae(S),E])}var B=function(e){for(var t=0,n=0,i=0;i<e.FileIndex.length;++i){var o=e.FileIndex[i];o.content&&0<(o=o.content.length)&&(o<4096?t+=o+63>>6:n+=o+511>>9)}for(var r=e.FullPaths.length+3>>2,s=t+127>>7,a=(t+7>>3)+n+r+s,l=a+127>>7,c=l<=109?0:Math.ceil((l-109)/127);l<a+l+c+127>>7;)c=++l<=109?0:Math.ceil((l-109)/127);return s=[1,c,l,s,r,n,t,0],e.FileIndex[0].size=t<<6,s[7]=(e.FileIndex[0].start=s[0]+s[1]+s[2]+s[3]+s[4]+s[5])+(s[6]+7>>3),s}(e),j=ri(B[7]<<9),z=0,H=0;for(z=0;z<8;++z)j.write_shift(1,p[z]);for(z=0;z<8;++z)j.write_shift(2,0);for(j.write_shift(2,62),j.write_shift(2,3),j.write_shift(2,65534),j.write_shift(2,9),j.write_shift(2,6),z=0;z<3;++z)j.write_shift(2,0);for(j.write_shift(4,0),j.write_shift(4,B[2]),j.write_shift(4,B[0]+B[1]+B[2]+B[3]-1),j.write_shift(4,0),j.write_shift(4,4096),j.write_shift(4,B[3]?B[0]+B[1]+B[2]-1:h),j.write_shift(4,B[3]),j.write_shift(-4,B[1]?B[0]-1:h),j.write_shift(4,B[1]),z=0;z<109;++z)j.write_shift(-4,z<B[2]?B[1]+z:-1);if(B[1])for(H=0;H<B[1];++H){for(;z<236+127*H;++z)j.write_shift(-4,z<B[2]?B[1]+z:-1);j.write_shift(-4,H===B[1]-1?h:H+1)}function U(e){for(H+=e;z<H-1;++z)j.write_shift(-4,z+1);e&&(++z,j.write_shift(-4,h))}for(H=z=0,H+=B[1];z<H;++z)j.write_shift(-4,m.DIFSECT);for(H+=B[2];z<H;++z)j.write_shift(-4,m.FATSECT);U(B[3]),U(B[4]);for(var V=0,G=0,K=e.FileIndex[0];V<e.FileIndex.length;++V)!(K=e.FileIndex[V]).content||(G=K.content.length)<4096||(K.start=H,U(G+511>>9));for(U(B[6]+7>>3);511&j.l;)j.write_shift(-4,m.ENDOFCHAIN);for(V=H=z=0;V<e.FileIndex.length;++V)!(K=e.FileIndex[V]).content||!(G=K.content.length)||4096<=G||(K.start=H,U(G+63>>6));for(;511&j.l;)j.write_shift(-4,m.ENDOFCHAIN);for(z=0;z<B[4]<<2;++z){var Y=e.FullPaths[z];if(Y&&0!==Y.length){if(K=e.FileIndex[z],0===z&&(K.start=K.size?K.start-1:h),G=2*((Y=0===z&&n.root||K.name).length+1),j.write_shift(64,Y,"utf16le"),j.write_shift(2,G),j.write_shift(1,K.type),j.write_shift(1,K.color),j.write_shift(-4,K.L),j.write_shift(-4,K.R),j.write_shift(-4,K.C),K.clsid)j.write_shift(16,K.clsid,"hex");else for(V=0;V<4;++V)j.write_shift(4,0);j.write_shift(4,K.state||0),j.write_shift(4,0),j.write_shift(4,0),j.write_shift(4,0),j.write_shift(4,0),j.write_shift(4,K.start),j.write_shift(4,K.size),j.write_shift(4,0)}else{for(V=0;V<17;++V)j.write_shift(4,0);for(V=0;V<3;++V)j.write_shift(4,-1);for(V=0;V<12;++V)j.write_shift(4,0)}}for(z=1;z<e.FileIndex.length;++z)if(4096<=(K=e.FileIndex[z]).size)if(j.l=K.start+1<<9,xe&&Buffer.isBuffer(K.content))K.content.copy(j,j.l,0,K.size),j.l+=K.size+511&-512;else{for(V=0;V<K.size;++V)j.write_shift(1,K.content[V]);for(;511&V;++V)j.write_shift(1,0)}for(z=1;z<e.FileIndex.length;++z)if(0<(K=e.FileIndex[z]).size&&K.size<4096)if(xe&&Buffer.isBuffer(K.content))K.content.copy(j,j.l,0,K.size),j.l+=K.size+63&-64;else{for(V=0;V<K.size;++V)j.write_shift(1,K.content[V]);for(;63&V;++V)j.write_shift(1,0)}if(xe)j.l=j.length;else for(;j.l<j.length;)j.write_shift(1,0);return j}t.version="1.2.1";var d,h=-2,f="d0cf11e0a1b11ae1",p=[208,207,17,224,161,177,26,225],g="00000000000000000000000000000000",m={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:h,FREESECT:-1,HEADER_SIGNATURE:f,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:g,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function v(e){for(var t=new Array(e.length),n=0;n<e.length;++n)t[n]=String.fromCharCode(e[n]);return t.join("")}for(var b,w=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],y=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],x=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],k="undefined"!=typeof Uint8Array,_=k?new Uint8Array(256):[],C=0;C<256;++C)_[C]=255&((b=139536&((b=C)<<1|b<<11)|558144&(b<<5|b<<15))>>16|b>>8|b);function S(e,t){var n=7&t;return(e[t=t>>>3]|(n<=5?0:e[1+t]<<8))>>>n&7}function E(e,t){var n=7&t;return(e[t=t>>>3]|(n<=3?0:e[1+t]<<8))>>>n&31}function T(e,t){var n=7&t;return(e[t=t>>>3]|(n<=1?0:e[1+t]<<8))>>>n&127}function A(e,t,n){var i=7&t,o=(1<<n)-1,r=e[t=t>>>3]>>>i;return n<8-i||(r|=e[1+t]<<8-i,n<16-i)||(r|=e[2+t]<<16-i,n<24-i)||(r|=e[3+t]<<24-i),r&o}function O(e,t,n){var i=7&t,o=t>>>3;return i<=5?e[o]|=(7&n)<<i:(e[o]|=n<<i&255,e[1+o]=(7&n)>>8-i),t+3}function L(e,t,n){var i=t>>>3;return e[i]|=255&(n<<=7&t),e[1+i]=n>>>=8,t+8}function $(e,t,n){var i=t>>>3;e[i]|=255&(n<<=7&t),e[1+i]=255&(n>>>=8),e[2+i]=n>>>8}function R(e,t){var n=e.length,i=t<2*n?2*n:t+5,o=0;if(!(t<=n)){if(xe){var r=Ce(i);if(e.copy)e.copy(r);else for(;o<e.length;++o)r[o]=e[o];return r}if(k){var s=new Uint8Array(i);if(s.set)s.set(e);else for(;o<n;++o)s[o]=e[o];return s}e.length=i}return e}function M(e){for(var t=new Array(e),n=0;n<e;++n)t[n]=0;return t}function I(e,t,n){var i,o=1,r=0,s=0,a=0,l=e.length,c=k?new Uint16Array(32):M(32);for(r=0;r<32;++r)c[r]=0;for(r=l;r<n;++r)e[r]=0;l=e.length;var u,d,h,f,p=k?new Uint16Array(l):M(l);for(r=0;r<l;++r)c[i=e[r]]++,o<i&&(o=i),p[r]=0;for(c[0]=0,r=1;r<=o;++r)c[r+16]=a=a+c[r-1]<<1;for(r=0;r<l;++r)0!=(a=e[r])&&(p[r]=c[a+16]++);for(r=0;r<l;++r)if(0!=(u=e[r]))for(d=p[r],h=o,f=void 0,f=_[255&d],a=(h<=8?f>>>8-h:(f=f<<8|_[d>>8&255],h<=16?f>>>16-h:(f<<8|_[d>>16&255])>>>24-h))>>o-u,s=(1<<o+4-u)-1;0<=s;--s)t[a|s<<u]=15&u|r<<4;return o}var N=k?new Uint16Array(512):M(512),D=k?new Uint16Array(32):M(32);if(!k){for(var P=0;P<512;++P)N[P]=0;for(P=0;P<32;++P)D[P]=0}for(var F=[],q=0;q<32;q++)F.push(5);I(F,D,32);var B=[];for(q=0;q<=143;q++)B.push(8);for(;q<=255;q++)B.push(9);for(;q<=279;q++)B.push(7);for(;q<=287;q++)B.push(8);I(B,N,288);var j=function(){for(var e=k?new Uint8Array(32768):[],t=0,n=0;t<x.length-1;++t)for(;n<x[t+1];++n)e[n]=t;for(;n<32768;++n)e[n]=29;var i=k?new Uint8Array(259):[];for(t=0,n=0;t<y.length-1;++t)for(;n<y[t+1];++n)i[n]=t;return function(t,n){if(t.length<8){for(var o=t,r=n,s=0;s<o.length;){var a=Math.min(65535,o.length-s),l=s+a==o.length;for(r.write_shift(1,+l),r.write_shift(2,a),r.write_shift(2,65535&~a);0<a--;)r[r.l++]=o[s++]}return r.l}for(var c,u=t,d=n,h=0,f=0,p=k?new Uint16Array(32768):[];f<u.length;){var g=Math.min(65535,u.length-f);if(g<10){for(7&(h=O(d,h,+!(f+g!=u.length)))&&(h+=8-(7&h)),d.l=h/8|0,d.write_shift(2,g),d.write_shift(2,65535&~g);0<g--;)d[d.l++]=u[f++];h=8*d.l}else{h=O(d,h,+!(f+g!=u.length)+2);for(var m=0;0<g--;){var v=u[f],b=-1,w=0;if((b=p[m=32767&(m<<5^v)])&&(f<(b|=-32768&f)&&(b-=32768),b<f))for(;u[b+w]==u[f+w]&&w<250;)++w;if(2<w){var C;(v=i[w])<=22?h=L(d,h,_[v+1]>>1)-1:(L(d,h,3),L(d,h+=5,_[v-23]>>5),h+=3),0<(C=(0<(C=v<8?0:v-4>>2)&&($(d,h,w-y[v]),h+=C),v=e[f-b],h=L(d,h,_[v]>>3),h-=3,v<4?0:v-2>>1))&&($(d,h,f-b-x[v]),h+=C);for(var S=0;S<w;++S)p[m]=32767&f,m=32767&(m<<5^u[f]),++f;g-=w-1}else v<=143?v+=48:(C=1,d[(c=h)>>>3]|=C=(1&C)<<(7&c),h=c+1),h=L(d,h,_[v]),p[m]=32767&f,++f}h=L(d,h,0)-1}}return d.l=(h+7)/8|0,d.l}}();function W(e){var t=ri(50+Math.floor(1.1*e.length));e=j(e,t);return t.slice(0,e)}var z=k?new Uint16Array(32768):M(32768),H=k?new Uint16Array(32768):M(32768),U=k?new Uint16Array(128):M(128),V=1,G=1;function K(e,t){return t=function(e,t){if(3==e[0]&&!(3&e[1]))return[_e(t),2];for(var n=0,i=0,o=Ce(t||1<<18),r=0,s=o.length>>>0,a=0,l=0;0==(1&i);)if(i=S(e,n),n+=3,i>>>1==0){7&n&&(n+=8-(7&n));var c=e[n>>>3]|e[1+(n>>>3)]<<8;if(n+=32,0<c)for(!t&&s<r+c&&(s=(o=R(o,r+c)).length);0<c--;)o[r++]=e[n>>>3],n+=8}else for(l=i>>1==1?(a=9,5):(n=function(e,t){for(var n,i,o,r=E(e,t)+257,s=E(e,t+=5)+1,a=(t+=5,o=7&t,4+(((n=e)[i=t>>>3]|(o<=4?0:n[1+i]<<8))>>>o&15)),l=(t+=4,0),c=k?new Uint8Array(19):M(19),u=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],d=1,h=k?new Uint8Array(8):M(8),f=k?new Uint8Array(8):M(8),p=c.length,g=0;g<a;++g)c[w[g]]=l=S(e,t),d<l&&(d=l),h[l]++,t+=3;var m=0;for(h[0]=0,g=1;g<=d;++g)f[g]=m=m+h[g-1]<<1;for(g=0;g<p;++g)0!=(m=c[g])&&(u[g]=f[m]++);var v;for(g=0;g<p;++g)if(0!=(v=c[g])){m=_[u[g]]>>8-v;for(var b=(1<<7-v)-1;0<=b;--b)U[m|b<<v]=7&v|g<<3}var y,x,C,A=[];for(d=1;A.length<r+s;)switch(m=U[T(e,t)],t+=7&m,m>>>=3){case 16:for(l=3+(void 0,C=7&t,((y=e)[x=t>>>3]|(C<=6?0:y[1+x]<<8))>>>C&3),t+=2,m=A[A.length-1];0<l--;)A.push(m);break;case 17:for(l=3+S(e,t),t+=3;0<l--;)A.push(0);break;case 18:for(l=11+T(e,t),t+=7;0<l--;)A.push(0);break;default:A.push(m),d<m&&(d=m)}var O=A.slice(0,r),L=A.slice(r);for(g=r;g<286;++g)O[g]=0;for(g=s;g<30;++g)L[g]=0;return V=I(O,z,286),G=I(L,H,30),t}(e,n),a=V,G);;){!t&&s<r+32767&&(s=(o=R(o,r+32767)).length);var u=A(e,n,a),d=(i>>>1==1?N:z)[u];if(n+=15&d,0==((d>>>=4)>>>8&255))o[r++]=d;else{if(256==d)break;var h=(5<(f=(d-=257)<8?0:d-4>>2)&&(f=0),r+y[d]),f=(0<f&&(h+=A(e,n,f),n+=f),u=A(e,n,l),n+=15&(d=(i>>>1==1?D:H)[u]),(d>>>=4)<4?0:d-2>>1),p=x[d];for(0<f&&(p+=A(e,n,f),n+=f),!t&&s<h&&(s=(o=R(o,h+100)).length);r<h;)o[r]=o[r-p],++r}}return t?[o,n+7>>>3]:[o.slice(0,r),n+7>>>3]}(e.slice(e.l||0),t),e.l+=t[1],t[0]}function Y(e,t){if(!e)throw new Error(t);"undefined"!=typeof console&&console.error(t)}function X(e,t){for(var n=e,i=(ii(n,0),{FileIndex:[],FullPaths:[]}),r=(l(i,{root:t.root}),n.length-4);(80!=n[r]||75!=n[r+1]||5!=n[r+2]||6!=n[r+3])&&0<=r;)--r;n.l=r+4,n.l+=4;var s=n.read_shift(2);n.l+=6,e=n.read_shift(4);for(n.l=e,r=0;r<s;++r){n.l+=20;var a=n.read_shift(4),c=n.read_shift(4),u=n.read_shift(2),h=n.read_shift(2),f=n.read_shift(2),p=(n.l+=8,n.read_shift(4)),g=o(n.slice(n.l+u,n.l+u+h)),m=(u=(n.l+=u+h+f,n.l),n.l=p+4,T=A=E=S=k=x=y=p=f=h=m=void 0,n),v=(h=a,f=c,p=i,g),b=(m.l+=2,m.read_shift(2)),w=m.read_shift(2),y=function(e){var t=65535&e.read_shift(2),n=(e=65535&e.read_shift(2),new Date),i=31&e,o=15&(e>>>=5);e>>>=4,n.setMilliseconds(0),n.setFullYear(1980+e),n.setMonth(o-1),n.setDate(i),e=31&t,o=63&(t>>>=5);return n.setHours(t>>>=6),n.setMinutes(o),n.setSeconds(e<<1),n}(m);if(8257&b)throw new Error("Unsupported ZIP encryption");m.read_shift(4);for(var x=m.read_shift(4),k=m.read_shift(4),_=m.read_shift(2),C=m.read_shift(2),S="",E=0;E<_;++E)S+=String.fromCharCode(m[m.l++]);C&&(((A=o(m.slice(m.l,m.l+C)))[21589]||{}).mt&&(y=A[21589].mt),((v||{})[21589]||{}).mt)&&(y=v[21589].mt),m.l+=C;var T=m.slice(m.l,m.l+x);switch(w){case 8:T=function(e,t){var n,i;return d?(i=(n=new d.InflateRaw)._processChunk(e.slice(e.l),n._finishFlushFlag),e.l+=n.bytesRead,i):K(e,t)}(m,k);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+w)}var A=!1;8&b&&(134695760==m.read_shift(4)&&(m.read_shift(4),A=!0),x=m.read_shift(4),k=m.read_shift(4)),x!=h&&Y(A,"Bad compressed size: "+h+" != "+x),k!=f&&Y(A,"Bad uncompressed size: "+f+" != "+k),Z(p,S,T,{unsafe:!0,mt:y}),n.l=u}return i}var J={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function Z(e,t,n,o){var r,s=o&&o.unsafe,a=(s||l(e),!s&&yt.find(e,t));return a||(r=e.FullPaths[0],r=t.slice(0,r.length)==r?t:("/"!=r.slice(-1)&&(r+="/"),(r+t).replace("//","/")),a={name:i(t),type:2},e.FileIndex.push(a),e.FullPaths.push(r),s)||yt.utils.cfb_gc(e),a.content=n,a.size=n?n.length:0,o&&(o.CLSID&&(a.clsid=o.CLSID),o.mt&&(a.mt=o.mt),o.ct)&&(a.ct=o.ct),a}return t.find=function(e,t){var n=e.FullPaths.map((function(e){return e.toUpperCase()})),i=n.map((function(e){var t=e.split("/");return t[t.length-("/"==e.slice(-1)?2:1)]})),o=!1,r=(47===t.charCodeAt(0)?(o=!0,t=n[0].slice(0,-1)+t):o=-1!==t.indexOf("/"),t.toUpperCase()),s=(!0===o?n:i).indexOf(r);if(-1!==s)return e.FileIndex[s];var a=!r.match(Le);r=r.replace(Oe,"");for(a&&(r=r.replace(Le,"!")),s=0;s<n.length;++s){if((a?n[s].replace(Le,"!"):n[s]).replace(Oe,"")==r)return e.FileIndex[s];if((a?i[s].replace(Le,"!"):i[s]).replace(Oe,"")==r)return e.FileIndex[s]}return null},t.read=function(t,n){var i,o=n&&n.type;switch(o||xe&&Buffer.isBuffer(t)&&(o="buffer"),o||"base64"){case"file":return i=n,r(),s(e.readFileSync(t),i);case"base64":return s(Se(ye(t)),n);case"binary":return s(Se(t),n)}return s(t,n)},t.parse=s,t.write=function(t,n){var i=u(t,n);switch(n&&n.type||"buffer"){case"file":return r(),e.writeFileSync(n.filename,i),i;case"binary":return"string"==typeof i?i:v(i);case"base64":return we("string"==typeof i?i:v(i));case"buffer":if(xe)return Buffer.isBuffer(i)?i:ke(i);case"array":return"string"==typeof i?Se(i):i}return i},t.writeFile=function(t,n,i){r(),t=u(t,i),e.writeFileSync(n,t)},t.utils={cfb_new:function(e){var t={};return l(t,e),t},cfb_add:Z,cfb_del:function(e,t){l(e);var n=yt.find(e,t);if(n)for(var i=0;i<e.FileIndex.length;++i)if(e.FileIndex[i]==n)return e.FileIndex.splice(i,1),e.FullPaths.splice(i,1),!0;return!1},cfb_mov:function(e,t,n){l(e);var o=yt.find(e,t);if(o)for(var r=0;r<e.FileIndex.length;++r)if(e.FileIndex[r]==o)return e.FileIndex[r].name=i(n),e.FullPaths[r]=n,!0;return!1},cfb_gc:function(e){c(e,!0)},ReadShift:Qn,CheckField:ni,prep_blob:ii,bconcat:Ae,use_zlib:function(e){try{var t=new e.InflateRaw;if(t._processChunk(new Uint8Array([3,0]),t._finishFlushFlag),!t.bytesRead)throw new Error("zlib does not expose bytesRead");d=e}catch(e){console.error("cannot use native zlib: "+(e.message||e))}},_deflateRaw:W,_inflateRaw:K,consts:m},t}();function xt(e){for(var t=Object.keys(e),n=[],i=0;i<t.length;++i)Object.prototype.hasOwnProperty.call(e,t[i])&&n.push(t[i]);return n}function kt(e){for(var t=[],n=xt(e),i=0;i!==n.length;++i)t[e[n[i]]]=n[i];return t}var _t=new Date(1899,11,30,0,0,0);function Ct(e,t){var n=e.getTime();t&&(n-=1263168e5),t=_t.getTime()+6e4*(e.getTimezoneOffset()-_t.getTimezoneOffset());return(n-t)/864e5}K=new Date;var St=_t.getTime()+6e4*(K.getTimezoneOffset()-_t.getTimezoneOffset()),Et=K.getTimezoneOffset();function Tt(e){var t=new Date;return t.setTime(24*e*60*60*1e3+St),t.getTimezoneOffset()!==Et&&t.setTime(t.getTime()+6e4*(t.getTimezoneOffset()-Et)),t}K=new Date("2017-02-19T19:06:09.000Z");var At=isNaN(K.getFullYear())?new Date("2/19/17"):K,Ot=2017==At.getFullYear();function Lt(e,t){var n=new Date(e);return Ot?(0<t?n.setTime(n.getTime()+60*n.getTimezoneOffset()*1e3):t<0&&n.setTime(n.getTime()-60*n.getTimezoneOffset()*1e3),n):e instanceof Date?e:1917!=At.getFullYear()||isNaN(n.getFullYear())?(t=e.match(/\d+/g)||["2017","2","19","0","0","0"],t=new Date(+t[0],+t[1]-1,+t[2],+t[3]||0,+t[4]||0,+t[5]||0),-1<e.indexOf("Z")?new Date(t.getTime()-60*t.getTimezoneOffset()*1e3):t):(t=n.getFullYear(),-1<e.indexOf(""+t)||n.setFullYear(n.getFullYear()+100),n)}function $t(e,t){if(xe&&Buffer.isBuffer(e)){if(t){if(255==e[0]&&254==e[1])return fn(e.slice(2).toString("utf16le"));if(254==e[1]&&255==e[2])return fn(fe(e.slice(2).toString("binary")))}return e.toString("binary")}if("undefined"!=typeof TextDecoder)try{if(t){if(255==e[0]&&254==e[1])return fn(new TextDecoder("utf-16le").decode(e.slice(2)));if(254==e[0]&&255==e[1])return fn(new TextDecoder("utf-16be").decode(e.slice(2)))}var n={"€":"€","‚":"‚","ƒ":"ƒ","„":"„","…":"…","†":"†","‡":"‡","ˆ":"ˆ","‰":"‰","Š":"Š","‹":"‹","Œ":"Œ","Ž":"Ž","‘":"‘","’":"’","“":"“","”":"”","•":"•","–":"–","—":"—","˜":"˜","™":"™","š":"š","›":"›","œ":"œ","ž":"ž","Ÿ":"Ÿ"};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,(function(e){return n[e]||e}))}catch(e){}for(var i=[],o=0;o!=e.length;++o)i.push(String.fromCharCode(e[o]));return i.join("")}function Rt(e){if("undefined"!=typeof JSON&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if("object"!=typeof e||null==e)return e;if(e instanceof Date)return new Date(e.getTime());var t,n={};for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=Rt(e[t]));return n}function Mt(e,t){for(var n="";n.length<t;)n+=e;return n}function It(e){var t,n=Number(e);return isNaN(n)?!/\d/.test(e)||(t=1,e=e.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,(function(){return t*=100,""})),isNaN(n=Number(e))&&(e=e.replace(/[(](.*)[)]/,(function(e,n){return t=-t,n})),isNaN(n=Number(e))))?n:n/t:isFinite(n)?n:NaN}var Nt=["january","february","march","april","may","june","july","august","september","october","november","december"];function Dt(e){var t=new Date(e),n=new Date(NaN),i=t.getYear(),o=t.getMonth(),r=t.getDate();if(isNaN(r))return n;var s=e.toLowerCase();if(s.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if(3<(s=s.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,"")).length&&-1==Nt.indexOf(s))return n}else if(s.match(/[a-z]/))return n;return i<0||8099<i||(!(0<o||1<r)||101==i)&&e.match(/[^-0-9:,\/\\]/)?n:t}var Pt=function(){var e=5=="abacaba".split(/(:?b)/i).length;return function(t,n,i){if(e||"string"==typeof n)return t.split(n);for(var o=t.split(n),r=[o[0]],s=1;s<o.length;++s)r.push(i),r.push(o[s]);return r}}();function Ft(e){return e?e.content&&e.type?$t(e.content,!0):e.data?ge(e.data):e.asNodeBuffer&&xe?ge(e.asNodeBuffer().toString("binary")):e.asBinary?ge(e.asBinary()):e._data&&e._data.getContent?ge($t(Array.prototype.slice.call(e._data.getContent(),0))):null:null}function qt(e){var t;return e?e.data?he(e.data):e.asNodeBuffer&&xe?e.asNodeBuffer():e._data&&e._data.getContent?"string"==typeof(t=e._data.getContent())?he(t):Array.prototype.slice.call(t):e.content&&e.type?e.content:null:null}function Bt(e,t){for(var n=e.FullPaths||xt(e.files),i=t.toLowerCase().replace(/[\/]/g,"\\"),o=i.replace(/\\/g,"/"),r=0;r<n.length;++r){var s=n[r].replace(/^Root Entry[\/]/,"").toLowerCase();if(i==s||o==s)return e.files?e.files[n[r]]:e.FileIndex[r]}return null}function jt(e,t){if(null==(e=Bt(e,t)))throw new Error("Cannot find file "+t+" in zip");return e}function Wt(e,t,n){if(!n)return((n=jt(e,t))&&".bin"===n.name.slice(-4)?qt:Ft)(n);if(!t)return null;try{return Wt(e,t)}catch(e){return null}}function zt(e,t,n){if(!n)return Ft(jt(e,t));if(!t)return null;try{return zt(e,t)}catch(e){return null}}function Ht(e){for(var t=e.FullPaths||xt(e.files),n=[],i=0;i<t.length;++i)"/"!=t[i].slice(-1)&&n.push(t[i].replace(/^Root Entry[\/]/,""));return n.sort()}function Ut(e,t){switch(t.type){case"base64":return yt.read(e,{type:"base64"});case"binary":return yt.read(e,{type:"binary"});case"buffer":case"array":return yt.read(e,{type:"buffer"})}throw new Error("Unrecognized type "+t.type)}function Vt(e,t){if("/"==e.charAt(0))return e.slice(1);for(var n=t.split("/"),i=("/"!=t.slice(-1)&&n.pop(),e.split("/"));0!==i.length;){var o=i.shift();".."===o?n.pop():"."!==o&&n.push(o)}return n.join("/")}var Gt='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r\n',Kt=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,Yt=Gt.match(K=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/gm)?K:/<[^>]*>/g,Xt=/<\w*:/,Jt=/<(\/?)\w+:/;function Zt(e,t,n){for(var i={},o=0,r=0;o!==e.length&&32!==(r=e.charCodeAt(o))&&10!==r&&13!==r;++o);if(t||(i[0]=e.slice(0,o)),o!==e.length){var s,a,l=e.match(Kt),c=0,u=0,d="",h="";if(l)for(u=0;u!=l.length;++u){for(h=l[u],r=0;r!=h.length&&61!==h.charCodeAt(r);++r);for(d=h.slice(0,r).trim();32==h.charCodeAt(r+1);)++r;for(s=34==(o=h.charCodeAt(r+1))||39==o?1:0,s=h.slice(r+1+s,h.length-s),c=0;c!=d.length&&58!==d.charCodeAt(c);++c);c===d.length?(i[d=0<d.indexOf("_")?d.slice(0,d.indexOf("_")):d]=s,n||(i[d.toLowerCase()]=s)):i[a=(5===c&&"xmlns"===d.slice(0,5)?"xmlns":"")+d.slice(c+1)]&&"ext"==d.slice(c-3,c)||(i[a]=s,n)||(i[a.toLowerCase()]=s)}}return i}function Qt(e){return e.replace(Jt,"<$1")}var en={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},tn=kt(en),nn=function(){var e=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/gi,t=/_x([\da-fA-F]{4})_/gi;return function n(i){var o,r=(i=i+"").indexOf("<![CDATA[");return-1==r?i.replace(e,(function(e,t){return en[e]||String.fromCharCode(parseInt(t,-1<e.indexOf("x")?16:10))||e})).replace(t,(function(e,t){return String.fromCharCode(parseInt(t,16))})):(o=i.indexOf("]]>"),n(i.slice(0,r))+i.slice(r+9,o)+n(i.slice(o+3)))}}(),on=/[&<>'"]/g,rn=/[\u0000-\u001f]/g;function sn(e){return(e+"").replace(on,(function(e){return tn[e]})).replace(/\n/g,"<br/>").replace(rn,(function(e){return"&#x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+";"}))}var an=function(){var e=/&#(\d+);/g;function t(e,t){return String.fromCharCode(parseInt(t,10))}return function(n){return n.replace(e,t)}}();function ln(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function cn(e){for(var t,n,i,o="",r=0,s=0;r<e.length;)(i=e.charCodeAt(r++))<128?o+=String.fromCharCode(i):(t=e.charCodeAt(r++),191<i&&i<224?(s=(31&i)<<6,s|=63&t,o+=String.fromCharCode(s)):(n=e.charCodeAt(r++),i<240?o+=String.fromCharCode((15&i)<<12|(63&t)<<6|63&n):(i=((7&i)<<18|(63&t)<<12|(63&n)<<6|63&(s=e.charCodeAt(r++)))-65536,o=(o+=String.fromCharCode(55296+(i>>>10&1023)))+String.fromCharCode(56320+(1023&i)))));return o}function un(e){for(var t,n,i=_e(2*e.length),o=1,r=0,s=0,a=0;a<e.length;a+=o)o=1,(n=e.charCodeAt(a))<128?t=n:n<224?(t=64*(31&n)+(63&e.charCodeAt(a+1)),o=2):n<240?(t=4096*(15&n)+64*(63&e.charCodeAt(a+1))+(63&e.charCodeAt(a+2)),o=3):(o=4,t=262144*(7&n)+4096*(63&e.charCodeAt(a+1))+64*(63&e.charCodeAt(a+2))+(63&e.charCodeAt(a+3)),s=55296+((t-=65536)>>>10&1023),t=56320+(1023&t)),0!==s&&(i[r++]=255&s,i[r++]=s>>>8,s=0),i[r++]=t%256,i[r++]=t>>>8;return i.slice(0,r).toString("ucs2")}function dn(e){return ke(e,"binary").toString("utf8")}K="foo bar baz☃🍣";var hn=xe&&(dn(K)==cn(K)?dn:un(K)==cn(K)&&un)||cn,fn=xe?function(e){return ke(e,"utf8").toString("binary")}:function(e){for(var t,n=[],i=0,o=0;i<e.length;)switch(!0){case(o=e.charCodeAt(i++))<128:n.push(String.fromCharCode(o));break;case o<2048:n.push(String.fromCharCode(192+(o>>6))),n.push(String.fromCharCode(128+(63&o)));break;case 55296<=o&&o<57344:o-=55296,t=e.charCodeAt(i++)-56320+(o<<10),n.push(String.fromCharCode(240+(t>>18&7))),n.push(String.fromCharCode(144+(t>>12&63))),n.push(String.fromCharCode(128+(t>>6&63))),n.push(String.fromCharCode(128+(63&t)));break;default:n.push(String.fromCharCode(224+(o>>12))),n.push(String.fromCharCode(128+(o>>6&63))),n.push(String.fromCharCode(128+(63&o)))}return n.join("")},pn=function(){var e={};return function(t,n){var i=t+"|"+(n||"");return e[i]||(e[i]=new RegExp("<(?:\\w+:)?"+t+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)</(?:\\w+:)?'+t+">",n||""))}}(),gn=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map((function(e){return[new RegExp("&"+e[0]+";","ig"),e[1]]}));return function(t){for(var n=t.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,"\n").replace(/<[^>]*>/g,""),i=0;i<e.length;++i)n=n.replace(e[i][0],e[i][1]);return n}}(),mn=function(){var e={};return function(t){return void 0!==e[t]?e[t]:e[t]=new RegExp("<(?:vt:)?"+t+">([\\s\\S]*?)</(?:vt:)?"+t+">","g")}}(),vn=/<\/?(?:vt:)?variant>/g,bn=/<(?:vt:)([^>]*)>([\s\S]*)</;function wn(e,t){var n=Zt(e),i=(e=e.match(mn(n.baseType))||[],[]);if(e.length!=n.size){if(t.WTF)throw new Error("unexpected vector length "+e.length+" != "+n.size)}else e.forEach((function(e){(e=e.replace(vn,"").match(bn))&&i.push({v:hn(e[2]),t:e[1]})}));return i}var yn=/(^\s|\s$|\n)/;function xn(e,t,n){return"<"+e+(null!=n?function(e){return xt(e).map((function(t){return" "+t+'="'+e[t]+'"'})).join("")}(n):"")+(null!=t?(t.match(yn)?' xml:space="preserve"':"")+">"+t+"</"+e:"/")+">"}function kn(e){if(xe&&Buffer.isBuffer(e))return e.toString("utf8");if("string"==typeof e)return e;if("undefined"!=typeof Uint8Array&&e instanceof Uint8Array)return hn(Ee(Te(e)));throw new Error("Bad input format: expected Buffer or string")}var _n=/<(\/?)([^\s?><!\/:]*:|)([^\s?<>:\/]+)(?:[\s?:\/][^>]*)?>/gm,Cn="http://schemas.openxmlformats.org/package/2006/content-types",Sn=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"];function En(e){for(var t=[],n=0;n<e[0].length;++n)if(e[0][n])for(var i=0,o=e[0][n].length;i<o;i+=10240)t.push.apply(t,e[0][n].slice(i,i+10240));return t}function Tn(e,t,n){for(var i=[],o=t;o<n;o+=2)i.push(String.fromCharCode(Kn(e,o)));return i.join("").replace(Oe,"")}function An(e,t,n){for(var i=[],o=t;o<t+n;++o)i.push(("0"+e[o].toString(16)).slice(-2));return i.join("")}function On(e,t,n){for(var i=[],o=t;o<n;o++)i.push(String.fromCharCode(Gn(e,o)));return i.join("")}function Ln(e,t){var n=Xn(e,t);return 0<n?qn(e,t+4,t+4+n-1):""}function $n(e,t){var n=Xn(e,t);return 0<n?qn(e,t+4,t+4+n-1):""}function Rn(e,t){var n=2*Xn(e,t);return 0<n?qn(e,t+4,t+4+n-1):""}function Mn(e,t){var n=Xn(e,t);return 0<n?Pn(e,t+4,t+4+n):""}function In(e,t){var n=Xn(e,t);return 0<n?qn(e,t+4,t+4+n):""}function Nn(e,t){for(var n=e,i=t,o=(e=1-2*(n[i+7]>>>7),t=((127&n[i+7])<<4)+(n[i+6]>>>4&15),15&n[i+6]),r=5;0<=r;--r)o=256*o+n[i+r];return 2047==t?0==o?1/0*e:NaN:(0==t?t=-1022:(t-=1023,o+=Math.pow(2,52)),e*Math.pow(2,t-52)*o)}var Dn=xe?function(e){return 0<e[0].length&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map((function(e){return Buffer.isBuffer(e)?e:ke(e)}))):En(e)}:En,Pn=xe?function(e,t,n){return Buffer.isBuffer(e)?e.toString("utf16le",t,n).replace(Oe,""):Tn(e,t,n)}:Tn,Fn=xe?function(e,t,n){return Buffer.isBuffer(e)?e.toString("hex",t,t+n):An(e,t,n)}:An,qn=xe?function(e,t,n){return Buffer.isBuffer(e)?e.toString("utf8",t,n):On(e,t,n)}:On,Bn=Ln,jn=$n,Wn=Rn,zn=Mn,Hn=In,Un=Nn,Vn=function(e){return Array.isArray(e)||"undefined"!=typeof Uint8Array&&e instanceof Uint8Array};xe&&(Bn=function(e,t){var n;return Buffer.isBuffer(e)?0<(n=e.readUInt32LE(t))?e.toString("utf8",t+4,t+4+n-1):"":Ln(e,t)},jn=function(e,t){var n;return Buffer.isBuffer(e)?0<(n=e.readUInt32LE(t))?e.toString("utf8",t+4,t+4+n-1):"":$n(e,t)},Wn=function(e,t){var n;return Buffer.isBuffer(e)?(n=2*e.readUInt32LE(t),e.toString("utf16le",t+4,t+4+n-1)):Rn(e,t)},zn=function(e,t){var n;return Buffer.isBuffer(e)?(n=e.readUInt32LE(t),e.toString("utf16le",t+4,t+4+n)):Mn(e,t)},Hn=function(e,t){var n;return Buffer.isBuffer(e)?(n=e.readUInt32LE(t),e.toString("utf8",t+4,t+4+n)):In(e,t)},Un=function(e,t){return Buffer.isBuffer(e)?e.readDoubleLE(t):Nn(e,t)},Vn=function(e){return Buffer.isBuffer(e)||Array.isArray(e)||"undefined"!=typeof Uint8Array&&e instanceof Uint8Array});var Gn=function(e,t){return e[t]},Kn=function(e,t){return 256*e[t+1]+e[t]},Yn=function(e,t){return(e=256*e[t+1]+e[t])<32768?e:-1*(65535-e+1)},Xn=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},Jn=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},Zn=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function Qn(e,t){var n,i,o,r,s,a,l="",c=[];switch(t){case"dbcs":if(a=this.l,xe&&Buffer.isBuffer(this))l=this.slice(this.l,this.l+2*e).toString("utf16le");else for(s=0;s<e;++s)l+=String.fromCharCode(Kn(this,a)),a+=2;e*=2;break;case"utf8":l=qn(this,this.l,this.l+e);break;case"utf16le":l=Pn(this,this.l,this.l+(e*=2));break;case"wstr":return Qn.call(this,e,"dbcs");case"lpstr-ansi":l=Bn(this,this.l),e=4+Xn(this,this.l);break;case"lpstr-cp":l=jn(this,this.l),e=4+Xn(this,this.l);break;case"lpwstr":l=Wn(this,this.l),e=4+2*Xn(this,this.l);break;case"lpp4":e=4+Xn(this,this.l),l=zn(this,this.l),2&e&&(e+=2);break;case"8lpp4":e=4+Xn(this,this.l),l=Hn(this,this.l),3&e&&(e+=4-(3&e));break;case"cstr":for(e=0,l="";0!==(o=Gn(this,this.l+e++));)c.push(me(o));l=c.join("");break;case"_wstr":for(e=0,l="";0!==(o=Kn(this,this.l+e));)c.push(me(o)),e+=2;e+=2,l=c.join("");break;case"dbcs-cont":for(l="",a=this.l,s=0;s<e;++s){if(this.lens&&-1!==this.lens.indexOf(a))return o=Gn(this,a),this.l=a+1,r=Qn.call(this,e-s,o?"dbcs-cont":"sbcs-cont"),c.join("")+r;c.push(me(Kn(this,a))),a+=2}l=c.join(""),e*=2;break;case"cpstr":0;case"sbcs-cont":for(l="",a=this.l,s=0;s!=e;++s){if(this.lens&&-1!==this.lens.indexOf(a))return o=Gn(this,a),this.l=a+1,r=Qn.call(this,e-s,o?"dbcs-cont":"sbcs-cont"),c.join("")+r;c.push(me(Gn(this,a))),a+=1}l=c.join("");break;default:switch(e){case 1:return n=Gn(this,this.l),this.l++,n;case 2:return n=("i"===t?Yn:Kn)(this,this.l),this.l+=2,n;case 4:case-4:return"i"===t||0==(128&this[this.l+3])?(n=(0<e?Jn:Zn)(this,this.l),this.l+=4,n):(i=Xn(this,this.l),this.l+=4,i);case 8:case-8:if("f"===t)return i=8==e?Un(this,this.l):Un([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,i;e=8;case 16:l=Fn(this,this.l,e)}}return this.l+=e,l}var ei=function(e,t,n){e[n]=255&t,e[n+1]=t>>>8&255};function ti(e,t,n){var i=0,o=0;if("dbcs"===n){for(o=0;o!=t.length;++o)ei(this,t.charCodeAt(o),this.l+2*o);i=2*t.length}else if("sbcs"===n){for(t=t.replace(/[^\x00-\x7F]/g,"_"),o=0;o!=t.length;++o)this[this.l+o]=255&t.charCodeAt(o);i=t.length}else{if("hex"===n){for(;o<e;++o)this[this.l++]=parseInt(t.slice(2*o,2*o+2),16)||0;return this}if("utf16le"===n){var r=Math.min(this.l+e,this.length);for(o=0;o<Math.min(t.length,e);++o){var s=t.charCodeAt(o);this[this.l++]=255&s,this[this.l++]=s>>8}for(;this.l<r;)this[this.l++]=0;return this}switch(e){case 1:i=1,this[this.l]=255&t;break;case 2:i=2,this[this.l]=255&t,this[this.l+1]=255&(t>>>=8);break;case 3:i=3,this[this.l]=255&t,this[this.l+1]=255&(t>>>=8),this[this.l+2]=255&(t>>>=8);break;case 4:i=4,function(e,t,n){e[n]=255&t,e[n+1]=t>>>8&255,e[n+2]=t>>>16&255,e[n+3]=t>>>24&255}(this,t,this.l);break;case 8:if(i=8,"f"===n){var a=this,l=t,c=this.l,u=(l<0||1/l==-1/0?1:0)<<7,d=0,h=0,f=u?-l:l;isFinite(f)?0==f?d=h=0:(d=Math.floor(Math.log(f)/Math.LN2),h=f*Math.pow(2,52-d),d<=-1023&&(!isFinite(h)||h<Math.pow(2,52))?d=-1022:(h-=Math.pow(2,52),d+=1023)):(d=2047,h=isNaN(l)?26985:0);for(var p=0;p<=5;++p,h/=256)a[c+p]=255&h;a[c+6]=(15&d)<<4|15&h,a[c+7]=d>>4|u;break}case 16:break;case-4:i=4,function(e,t,n){e[n]=255&t,e[n+1]=t>>8&255,e[n+2]=t>>16&255,e[n+3]=t>>24&255}(this,t,this.l)}}return this.l+=i,this}function ni(e,t){var n=Fn(this,this.l,e.length>>1);if(n!==e)throw new Error(t+"Expected "+e+" saw "+n);this.l+=e.length>>1}function ii(e,t){e.l=t,e.read_shift=Qn,e.chk=ni,e.write_shift=ti}function oi(e,t){e.l+=t}function ri(e){return ii(e=_e(e),0),e}function si(e,t,n){if(e){ii(e,e.l||0);for(var i=e.length,o=0;e.l<i;){128&(o=e.read_shift(1))&&(o=(127&o)+((127&e.read_shift(1))<<7));for(var r,s=ya[o]||ya[65535],a=127&(r=e.read_shift(1)),l=1;l<4&&128&r;++l)a+=(127&(r=e.read_shift(1)))<<7*l;var c=e.l+a,u=s.f&&s.f(e,a,n);if(e.l=c,t(u,s,o))return}}}function ai(){function e(e){return ii(e=ri(e),0),e}function t(){r&&(r.length>r.l&&((r=r.slice(0,r.l)).l=r.length),0<r.length&&i.push(r),r=null)}function n(n){return r&&n<r.length-r.l?r:(t(),r=e(Math.max(n+1,o)))}var i=[],o=xe?256:2048,r=e(o);return{next:n,push:function(e){t(),null==(r=e).l&&(r.l=r.length),n(o)},end:function(){return t(),Ae(i)},_bufs:i}}function li(e,t,n){var i=Rt(e);if(t.s?(i.cRel&&(i.c+=t.s.c),i.rRel&&(i.r+=t.s.r)):(i.cRel&&(i.c+=t.c),i.rRel&&(i.r+=t.r)),!n||n.biff<12){for(;256<=i.c;)i.c-=256;for(;65536<=i.r;)i.r-=65536}return i}function ci(e,t,n){return(e=Rt(e)).s=li(e.s,t.s,n),e.e=li(e.e,t.s,n),e}function ui(e,t){if(e.cRel&&e.c<0)for(e=Rt(e);e.c<0;)e.c+=8<t?16384:256;if(e.rRel&&e.r<0)for(e=Rt(e);e.r<0;)e.r+=8<t?1048576:5<t?65536:16384;var n=vi(e);return e.cRel||null==e.cRel||(n=n.replace(/^([A-Z])/,"$$$1")),e.rRel||null==e.rRel?n:n.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function di(e,t){return 0!=e.s.r||e.s.rRel||e.e.r!=(12<=t.biff?1048575:8<=t.biff?65536:16384)||e.e.rRel?0!=e.s.c||e.s.cRel||e.e.c!=(12<=t.biff?16383:255)||e.e.cRel?ui(e.s,t.biff)+":"+ui(e.e,t.biff):(e.s.rRel?"":"$")+fi(e.s.r)+":"+(e.e.rRel?"":"$")+fi(e.e.r):(e.s.cRel?"":"$")+gi(e.s.c)+":"+(e.e.cRel?"":"$")+gi(e.e.c)}function hi(e){return parseInt(e.replace(/\$(\d+)$/,"$1"),10)-1}function fi(e){return""+(e+1)}function pi(e){for(var t=e.replace(/^\$([A-Z])/,"$1"),n=0,i=0;i!==t.length;++i)n=26*n+t.charCodeAt(i)-64;return n-1}function gi(e){if(e<0)throw new Error("invalid column "+e);var t="";for(++e;e;e=Math.floor((e-1)/26))t=String.fromCharCode((e-1)%26+65)+t;return t}function mi(e){for(var t=0,n=0,i=0;i<e.length;++i){var o=e.charCodeAt(i);48<=o&&o<=57?t=10*t+(o-48):65<=o&&o<=90&&(n=26*n+(o-64))}return{c:n-1,r:t-1}}function vi(e){for(var t=e.c+1,n="";t;t=(t-1)/26|0)n=String.fromCharCode((t-1)%26+65)+n;return n+(e.r+1)}function bi(e){var t=e.indexOf(":");return-1==t?{s:mi(e),e:mi(e)}:{s:mi(e.slice(0,t)),e:mi(e.slice(t+1))}}function wi(e,t){return void 0===t||"number"==typeof t?wi(e.s,e.e):(e="string"!=typeof e?vi(e):e)==(t="string"!=typeof t?vi(t):t)?e:e+":"+t}function yi(e){var t={s:{c:0,r:0},e:{c:0,r:0}},n=0,i=0,o=0,r=e.length;for(n=0;i<r&&!((o=e.charCodeAt(i)-64)<1||26<o);++i)n=26*n+o;for(t.s.c=--n,n=0;i<r&&!((o=e.charCodeAt(i)-48)<0||9<o);++i)n=10*n+o;if(t.s.r=--n,i===r||10!=o)t.e.c=t.s.c,t.e.r=t.s.r;else{for(++i,n=0;i!=r&&!((o=e.charCodeAt(i)-64)<1||26<o);++i)n=26*n+o;for(t.e.c=--n,n=0;i!=r&&!((o=e.charCodeAt(i)-48)<0||9<o);++i)n=10*n+o;t.e.r=--n}return t}function xi(e,t,n){return null==e||null==e.t||"z"==e.t?"":void 0!==e.w?e.w:("d"==e.t&&!e.z&&n&&n.dateNF&&(e.z=n.dateNF),"e"==e.t?Hi[e.v]||e.v:function(e,t){var n="d"==e.t&&t instanceof Date;if(null!=e.z)try{return e.w=pt(e.z,n?Ct(t):t)}catch(e){}try{return e.w=pt((e.XF||{}).numFmtId||(n?14:0),n?Ct(t):t)}catch(e){return""+t}}(e,null==t?e.v:t))}function ki(e,t){var n={};return n[t=t&&t.sheet?t.sheet:"Sheet1"]=e,{SheetNames:[t],Sheets:n}}function _i(e,t,n){var i=n||{},o=e?Array.isArray(e):i.dense,r=e||(o?[]:{}),s=0,a=0,l=(r&&null!=i.origin&&("number"==typeof i.origin?s=i.origin:(s=(n="string"==typeof i.origin?mi(i.origin):i.origin).r,a=n.c),r["!ref"]||(r["!ref"]="A1:A1")),{s:{c:1e7,r:1e7},e:{c:0,r:0}});r["!ref"]&&(e=yi(r["!ref"]),l.s.c=e.s.c,l.s.r=e.s.r,l.e.c=Math.max(l.e.c,e.e.c),l.e.r=Math.max(l.e.r,e.e.r),-1==s)&&(l.e.r=s=e.e.r+1);for(var c=0;c!=t.length;++c)if(t[c]){if(!Array.isArray(t[c]))throw new Error("aoa_to_sheet expects an array of arrays");for(var u=0;u!=t[c].length;++u)if(void 0!==t[c][u]){var d={v:t[c][u]},h=s+c,f=a+u;if(l.s.r>h&&(l.s.r=h),l.s.c>f&&(l.s.c=f),l.e.r<h&&(l.e.r=h),l.e.c<f&&(l.e.c=f),!t[c][u]||"object"!=typeof t[c][u]||Array.isArray(t[c][u])||t[c][u]instanceof Date)if(Array.isArray(d.v)&&(d.f=t[c][u][1],d.v=d.v[0]),null===d.v)if(d.f)d.t="n";else if(i.nullError)d.t="e",d.v=0;else{if(!i.sheetStubs)continue;d.t="z"}else"number"==typeof d.v?d.t="n":"boolean"==typeof d.v?d.t="b":d.v instanceof Date?(d.z=i.dateNF||Be[14],i.cellDates?(d.t="d",d.w=pt(d.z,Ct(d.v))):(d.t="n",d.v=Ct(d.v),d.w=pt(d.z,d.v))):d.t="s";else d=t[c][u];o?(r[h]||(r[h]=[]),r[h][f]&&r[h][f].z&&(d.z=r[h][f].z),r[h][f]=d):(r[f=vi({c:f,r:h})]&&r[f].z&&(d.z=r[f].z),r[f]=d)}}return l.s.c<1e7&&(r["!ref"]=wi(l)),r}function Ci(e,t){return _i(null,e,t)}function Si(e){var t=e.read_shift(4);return 0===t?"":e.read_shift(t,"dbcs")}function Ei(e,t){var n,i=e.l,o=e.read_shift(1),r=[],s={t:s=Si(e),h:s};if(0!=(1&o)){for(var a=e.read_shift(4),l=0;l!=a;++l)r.push({ich:(n=e).read_shift(2),ifnt:n.read_shift(2)});s.r=r}else s.r=[{ich:0,ifnt:0}];return e.l=i+t,s}function Ti(e){var t=e.read_shift(4),n=e.read_shift(2);return n+=e.read_shift(1)<<16,e.l++,{c:t,iStyleRef:n}}function Ai(e){var t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:t}}K=Ei;var Oi=Si;function Li(e){var t=e.read_shift(4);return 0===t||4294967295===t?"":e.read_shift(t,"dbcs")}var $i=Si,Ri=Li;function Mi(e){var t=e.slice(e.l,e.l+4),n=1&t[0],i=2&t[0];e.l+=4,e=0==i?Un([0,0,0,0,252&t[0],t[1],t[2],t[3]],0):Jn(t,0)>>2;return n?e/100:e}function Ii(e){var t={s:{},e:{}};return t.s.r=e.read_shift(4),t.e.r=e.read_shift(4),t.s.c=e.read_shift(4),t.e.c=e.read_shift(4),t}var Ni=Ii;function Di(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function Pi(e,t){var n=e.read_shift(4);switch(n){case 0:return"";case 4294967295:case 4294967294:return{2:"BITMAP",3:"METAFILEPICT",8:"DIB",14:"ENHMETAFILE"}[e.read_shift(4)]||""}if(400<n)throw new Error("Unsupported Clipboard: "+n.toString(16));return e.l-=4,e.read_shift(0,1==t?"lpstr":"lpwstr")}var Fi=[80,81],qi={1:{n:"CodePage",t:2},2:{n:"Category",t:80},3:{n:"PresentationFormat",t:80},4:{n:"ByteCount",t:3},5:{n:"LineCount",t:3},6:{n:"ParagraphCount",t:3},7:{n:"SlideCount",t:3},8:{n:"NoteCount",t:3},9:{n:"HiddenCount",t:3},10:{n:"MultimediaClipCount",t:3},11:{n:"ScaleCrop",t:11},12:{n:"HeadingPairs",t:4108},13:{n:"TitlesOfParts",t:4126},14:{n:"Manager",t:80},15:{n:"Company",t:80},16:{n:"LinksUpToDate",t:11},17:{n:"CharacterCount",t:3},19:{n:"SharedDoc",t:11},22:{n:"HyperlinksChanged",t:11},23:{n:"AppVersion",t:3,p:"version"},24:{n:"DigSig",t:65},26:{n:"ContentType",t:80},27:{n:"ContentStatus",t:80},28:{n:"Language",t:80},29:{n:"Version",t:80},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},Bi={1:{n:"CodePage",t:2},2:{n:"Title",t:80},3:{n:"Subject",t:80},4:{n:"Author",t:80},5:{n:"Keywords",t:80},6:{n:"Comments",t:80},7:{n:"Template",t:80},8:{n:"LastAuthor",t:80},9:{n:"RevNumber",t:80},10:{n:"EditTime",t:64},11:{n:"LastPrinted",t:64},12:{n:"CreatedDate",t:64},13:{n:"ModifiedDate",t:64},14:{n:"PageCount",t:3},15:{n:"WordCount",t:3},16:{n:"CharCount",t:3},17:{n:"Thumbnail",t:71},18:{n:"Application",t:80},19:{n:"DocSecurity",t:3},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},ji={1:"US",2:"CA",3:"",7:"RU",20:"EG",30:"GR",31:"NL",32:"BE",33:"FR",34:"ES",36:"HU",39:"IT",41:"CH",43:"AT",44:"GB",45:"DK",46:"SE",47:"NO",48:"PL",49:"DE",52:"MX",55:"BR",61:"AU",64:"NZ",66:"TH",81:"JP",82:"KR",84:"VN",86:"CN",90:"TR",105:"JS",213:"DZ",216:"MA",218:"LY",351:"PT",354:"IS",358:"FI",420:"CZ",886:"TW",961:"LB",962:"JO",963:"SY",964:"IQ",965:"KW",966:"SA",971:"AE",972:"IL",974:"QA",981:"IR",65535:"US"},Wi=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];var zi=Rt(function(e){return e.map((function(e){return[e>>16&255,e>>8&255,255&e]}))}([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])),Hi={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},Ui={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},Vi={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"};var Gi={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function Ki(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function Yi(e,t){var n,i={"!id":{}};return e&&("/"!==t.charAt(0)&&(t="/"+t),n={},(e.match(Yt)||[]).forEach((function(e){var o,r;"<Relationship"===(e=Zt(e))[0]&&((o={}).Type=e.Type,o.Target=e.Target,o.Id=e.Id,e.TargetMode&&(o.TargetMode=e.TargetMode),r="External"===e.TargetMode?e.Target:Vt(e.Target,t),i[r]=o,n[e.Id]=o)})),i["!id"]=n),i}var Xi=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]],Ji=function(){for(var e=new Array(Xi.length),t=0;t<Xi.length;++t){var n="(?:"+(n=Xi[t])[0].slice(0,n[0].indexOf(":"))+":)"+n[0].slice(n[0].indexOf(":")+1);e[t]=new RegExp("<"+n+"[^>]*>([\\s\\S]*?)</"+n+">")}return e}();function Zi(e){var t={};e=hn(e);for(var n=0;n<Xi.length;++n){var i=Xi[n],o=e.match(Ji[n]);null!=o&&0<o.length&&(t[i[1]]=nn(o[1])),"date"===i[2]&&t[i[1]]&&(t[i[1]]=Lt(t[i[1]]))}return t}var Qi=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]];function eo(e,t,n,i){var o=[];if("string"==typeof e)o=wn(e,i);else for(var r=0;r<e.length;++r)o=o.concat(e[r].map((function(e){return{v:e}})));var s,a="string"==typeof t?wn(t,i).map((function(e){return e.v})):t,l=0;if(0<a.length)for(var c=0;c!==o.length;c+=2){switch(s=+o[c+1].v,o[c].v){case"Worksheets":case"工作表":case"Листы":case"أوراق العمل":case"ワークシート":case"גליונות עבודה":case"Arbeitsblätter":case"Çalışma Sayfaları":case"Feuilles de calcul":case"Fogli di lavoro":case"Folhas de cálculo":case"Planilhas":case"Regneark":case"Hojas de cálculo":case"Werkbladen":n.Worksheets=s,n.SheetNames=a.slice(l,l+s);break;case"Named Ranges":case"Rangos con nombre":case"名前付き一覧":case"Benannte Bereiche":case"Navngivne områder":n.NamedRanges=s,n.DefinedNames=a.slice(l,l+s);break;case"Charts":case"Diagramme":n.Chartsheets=s,n.ChartNames=a.slice(l,l+s)}l+=s}}var to,no=/<[^>]+>[^<]*/g,io={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function oo(e){var t=e.read_shift(4);e=e.read_shift(4);return new Date(1e3*(e/1e7*Math.pow(2,32)+t/1e7-11644473600)).toISOString().replace(/\.000/,"")}function ro(e,t,n){var i=e.l,o=e.read_shift(0,"lpstr-cp");if(n)for(;e.l-i&3;)++e.l;return o}function so(e,t,n){var i=e.read_shift(0,"lpwstr");return n&&(e.l+=4-(i.length+1&3)&3),i}function ao(e,t,n){return 31===t?so(e):ro(e,0,n)}function lo(e,t,n){return ao(e,t,!1===n?0:4)}function co(e,t){for(var n=e.read_shift(4),i={},o=0;o!=n;++o){var r=e.read_shift(4),s=e.read_shift(4);i[r]=e.read_shift(s,1200===t?"utf16le":"utf8").replace(Oe,"").replace(Le,"!"),1200===t&&s%2&&(e.l+=2)}return 3&e.l&&(e.l=e.l>>3<<2),i}function uo(e){var t=e.read_shift(4),n=e.slice(e.l,e.l+t);return e.l+=t,0<(3&t)&&(e.l+=4-(3&t)&3),n}function ho(e,t,n){var i,o,r=e.read_shift(2),s=n||{};if(e.l+=2,12!==t&&r!==t&&-1===Fi.indexOf(t)&&(4126!=(65534&t)||4126!=(65534&r)))throw new Error("Expected type "+t+" saw "+r);switch(12===t?r:t){case 2:return o=e.read_shift(2,"i"),s.raw||(e.l+=2),o;case 3:return e.read_shift(4,"i");case 11:return 0!==e.read_shift(4);case 19:return e.read_shift(4);case 30:return ro(e,0,4).replace(Oe,"");case 31:return so(e);case 64:return oo(e);case 65:return uo(e);case 71:return(o={}).Size=(i=e).read_shift(4),i.l+=o.Size+3-(o.Size-1)%4,o;case 80:return lo(e,r,!s.raw).replace(Oe,"");case 81:return function(e,t){if(t)return ao(e,t,0);throw new Error("VtUnalignedString must have positive length")}(e,r).replace(Oe,"");case 4108:return function(e){for(var t,n,i,o=e.read_shift(4),r=[],s=0;s<o/2;++s)r.push((void 0,n=(t=e).l,i=ho(t,81),0==t[t.l]&&0==t[t.l+1]&&t.l-n&2&&(t.l+=2),[i,ho(t,3)]));return r}(e);case 4126:case 4127:return(4127==r?function(e){for(var t=e.read_shift(4),n=[],i=0;i!=t;++i){var o=e.l;n[i]=e.read_shift(0,"lpwstr").replace(Oe,""),e.l-o&2&&(e.l+=2)}return n}:function(e){for(var t=e.read_shift(4),n=[],i=0;i!=t;++i)n[i]=e.read_shift(0,"lpstr-cp").replace(Oe,"");return n})(e);default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+r)}}function fo(e,t){var n=e.l,i=e.read_shift(4),o=e.read_shift(4),r=[],s=0,a=0,l=-1,c={};for(s=0;s!=o;++s){var u=e.read_shift(4),d=e.read_shift(4);r[s]=[u,d+n]}r.sort((function(e,t){return e[1]-t[1]}));var h={};for(s=0;s!=o;++s){if(e.l!==r[s][1]){var f=!0;if(0<s&&t)switch(t[r[s-1][0]].t){case 2:e.l+2===r[s][1]&&(e.l+=2,f=!1);break;case 80:case 4108:e.l<=r[s][1]&&(e.l=r[s][1],f=!1)}if((!t||0==s)&&e.l<=r[s][1]&&(f=!1,e.l=r[s][1]),f)throw new Error("Read Error: Expected address "+r[s][1]+" at "+e.l+" :"+s)}if(t){var p=t[r[s][0]];if(h[p.n]=ho(e,p.t,{raw:!0}),"version"===p.p&&(h[p.n]=String(h[p.n]>>16)+"."+("0000"+String(65535&h[p.n])).slice(-4)),"CodePage"==p.n)switch(h[p.n]){case 0:h[p.n]=1252;case 874:case 932:case 936:case 949:case 950:case 1250:case 1251:case 1253:case 1254:case 1255:case 1256:case 1257:case 1258:case 1e4:case 1200:case 1201:case 1252:case 65e3:case-536:case 65001:case-535:ue(a=h[p.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+h[p.n])}}else if(1===r[s][0])a=h.CodePage=ho(e,2),ue(a),-1!==l&&(m=e.l,e.l=r[l][1],c=co(e,a),e.l=m);else if(0===r[s][0])0===a?(l=s,e.l=r[s+1][1]):c=co(e,a);else{var g,m=c[r[s][0]];switch(e[e.l]){case 65:e.l+=4,g=uo(e);break;case 30:case 31:e.l+=4,g=lo(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 3:e.l+=4,g=e.read_shift(4,"i");break;case 19:e.l+=4,g=e.read_shift(4);break;case 5:e.l+=4,g=e.read_shift(8,"f");break;case 11:e.l+=4,g=mo(e,4);break;case 64:e.l+=4,g=Lt(oo(e));break;default:throw new Error("unparsed value: "+e[e.l])}h[m]=g}}return e.l=n+i,h}function po(e,t,n){if(!(e=e.content))return{};ii(e,0);var i,o,r=0,s=(e.chk("feff","Byte Order: "),e.read_shift(2),e.read_shift(4)),a=e.read_shift(16);if(a!==yt.utils.consts.HEADER_CLSID&&a!==n)throw new Error("Bad PropertySet CLSID "+a);if(1!==(n=e.read_shift(4))&&2!==n)throw new Error("Unrecognized #Sets: "+n);if(a=e.read_shift(16),o=e.read_shift(4),1===n&&o!==e.l)throw new Error("Length mismatch: "+o+" !== "+e.l);2===n&&(i=e.read_shift(16),r=e.read_shift(4));var l,c,u=fo(e,t),d={SystemIdentifier:s};for(l in u)d[l]=u[l];if(d.FMTID=a,1!==n){if(r-e.l==2&&(e.l+=2),e.l!==r)throw new Error("Length mismatch 2: "+e.l+" !== "+r);try{c=fo(e,null)}catch(e){}for(l in c)d[l]=c[l];d.FMTID=[a,i]}return d}function go(e,t){return e.read_shift(t),null}function mo(e,t){return 1===e.read_shift(t)}function vo(e){return e.read_shift(2,"u")}function bo(e,t){for(var n=e,i=(e=t,vo),o=[],r=n.l+e;n.l<r;)o.push(i(n,r-n.l));if(r!==n.l)throw new Error("Slurp error");return o}function wo(e,t,n){var i=e.read_shift(n&&12<=n.biff?2:1),o="sbcs-cont",r=re;n&&8<=n.biff&&(re=1200),n&&8!=n.biff?12==n.biff&&(o="wstr"):e.read_shift(1)&&(o="dbcs-cont"),2<=n.biff&&n.biff<=5&&(o="cpstr"),n=i?e.read_shift(i,o):"";return re=r,n}function yo(e,t,n){if(n){if(2<=n.biff&&n.biff<=5)return e.read_shift(t,"cpstr");if(12<=n.biff)return e.read_shift(t,"dbcs-cont")}return 0===e.read_shift(1)?e.read_shift(t,"sbcs-cont"):e.read_shift(t,"dbcs-cont")}function xo(e,t,n){var i=e.read_shift(n&&2==n.biff?1:2);return 0===i?(e.l++,""):yo(e,i,n)}function ko(e,t,n){var i;return 5<n.biff?xo(e,0,n):0===(i=e.read_shift(1))?(e.l++,""):e.read_shift(i,n.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function _o(e){var t=e.read_shift(4);return 0<t?e.read_shift(t,"utf16le").replace(Oe,""):""}function Co(e){return[e.read_shift(1),e.read_shift(1),e.read_shift(1),e.read_shift(1)]}function So(e){return(e=Co(e))[3]=0,e}function Eo(e){return{r:e.read_shift(2),c:e.read_shift(2),ixfe:e.read_shift(2)}}function To(e){return[e.read_shift(2),Mi(e)]}function Ao(e){var t=e.read_shift(2),n=e.read_shift(2);return{s:{c:e.read_shift(2),r:t},e:{c:e.read_shift(2),r:n}}}function Oo(e){var t=e.read_shift(2),n=e.read_shift(2);return{s:{c:e.read_shift(1),r:t},e:{c:e.read_shift(1),r:n}}}var Lo=Oo;function $o(e){e.l+=4;var t=e.read_shift(2),n=e.read_shift(2),i=e.read_shift(2);return e.l+=12,[n,t,i]}function Ro(e){e.l+=2,e.l+=e.read_shift(2)}var Mo={0:Ro,4:Ro,5:Ro,6:Ro,7:function(e){return e.l+=4,e.cf=e.read_shift(2),{}},8:Ro,9:Ro,10:Ro,11:Ro,12:Ro,13:function(e){var t={};return e.l+=4,e.l+=16,t.fSharedNote=e.read_shift(2),e.l+=4,t},14:Ro,15:Ro,16:Ro,17:Ro,18:Ro,19:Ro,20:Ro,21:$o};function Io(e,t){var n={BIFFVer:0,dt:0};switch(n.BIFFVer=e.read_shift(2),2<=(t-=2)&&(n.dt=e.read_shift(2),e.l-=2),n.BIFFVer){case 1536:case 1280:case 1024:case 768:case 512:case 2:case 7:break;default:if(6<t)throw new Error("Unexpected BIFF Ver "+n.BIFFVer)}return e.read_shift(t),n}function No(e,t,n){var i=0;n&&2==n.biff||(i=e.read_shift(2)),e=e.read_shift(2);return n&&2==n.biff&&(i=1-(e>>15),e&=32767),[{Unsynced:1&i,DyZero:(2&i)>>1,ExAsc:(4&i)>>2,ExDsc:(8&i)>>3},e]}var Do=ko;function Po(e,t,n){t=e.l+t,n=8!=n.biff&&n.biff?2:4;var i=e.read_shift(n),o=(n=e.read_shift(n),e.read_shift(2)),r=e.read_shift(2);return e.l=t,{s:{r:i,c:o},e:{r:n,c:r}}}function Fo(e,t,n){var i=Eo(e);2!=n.biff&&9!=t||++e.l,t=(n=e).read_shift(1),e=1===n.read_shift(1)?t:1===t;return i.val=e,i.t=!0===e||!1===e?"b":"e",i}function qo(e,t,n){return 0===t?"":ko(e,0,n)}function Bo(e,t,n){var i,o={fBuiltIn:1&(o=e.read_shift(2)),fWantAdvise:o>>>1&1,fWantPict:o>>>2&1,fOle:o>>>3&1,fOleLink:o>>>4&1,cf:o>>>5&1023,fIcon:o>>>15&1};return 14849===n.sbcch&&(i=function(e,t,n){e.l+=4;t=e.l+(t-=4),n=wo(e,0,n);var i=e.read_shift(2);if(i!==(t-=e.l))throw new Error("Malformed AddinUdf: padding = "+t+" != "+i);return e.l+=i,n}(e,t-2,n)),o.body=i||e.read_shift(t-2),"string"==typeof i&&(o.Name=i),o}var jo=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"];function Wo(e,t,n){t=e.l+t;var i=e.read_shift(2),o=e.read_shift(1),r=e.read_shift(1),s=e.read_shift(n&&2==n.biff?1:2),a=0;(!n||5<=n.biff)&&(5!=n.biff&&(e.l+=2),a=e.read_shift(2),5==n.biff&&(e.l+=2),e.l+=4),r=yo(e,r,n),32&i&&(r=jo[r.charCodeAt(0)]),i=t-e.l;return n&&2==n.biff&&--i,{chKey:o,Name:r,itab:a,rgce:t!=e.l&&0!==s&&0<i?function(e,t,n,i){var o;t=e.l+t,i=gs(e,i,n);return t!==e.l&&(o=ps(e,t-e.l,i,n)),[i,o]}(e,i,n,s):[]}}function zo(e,t,n){var i;if(n.biff<8)return a=n,3==(i=e)[i.l+1]&&i[i.l]++,3==(i=wo(i,0,a)).charCodeAt(0)?i.slice(1):i;for(var o,r,s=[],a=e.l+t,l=e.read_shift(8<n.biff?4:2);0!=l--;)s.push((o=e,n.biff,r=8<(r=n).biff?4:2,[o.read_shift(r),o.read_shift(r,"i"),o.read_shift(r,"i")]));if(e.l!=a)throw new Error("Bad ExternSheet: "+e.l+" != "+a);return s}function Ho(e,t,n){var i=Lo(e,6);switch(n.biff){case 2:e.l++,t-=7;break;case 3:case 4:e.l+=2,t-=8;break;default:e.l+=6,t-=12}return[i,function(e,t,n){var i,o=e.l+t,r=2==n.biff?1:2,s=e.read_shift(r);if(65535==s)return[[],oi(e,t-2)];var a=gs(e,s,n);return t!==s+r&&(i=ps(e,t-s-r,a,n)),e.l=o,[a,i]}(e,t,n)]}var Uo={8:function(e,t){t=e.l+t;var n=(e.l+=10,e.read_shift(2)),i=(e.l+=4,e.l+=2,e.l+=2,e.l+=2,e.l+=4,e.read_shift(1));return e.l+=i,e.l=t,{fmt:n}}};function Vo(e,t,n){var i,o,r,s,a,l;return n.cellStyles?(l=n&&12<=n.biff?4:2,i=e.read_shift(l),o=e.read_shift(l),r=e.read_shift(l),s=e.read_shift(l),a=e.read_shift(2),2==l&&(e.l+=2),l={s:i,e:o,w:r,ixfe:s,flags:a},(5<=n.biff||!n.biff)&&(l.level=a>>8&7),l):oi(e,t)}var Go=Eo,Ko=bo,Yo=xo,Xo=[2,3,48,49,131,139,140,245],Jo=function(){var e={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},t=kt({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function n(t,n){return(n=n||{}).dateNF||(n.dateNF="yyyymmdd"),(t=Ci(function(t,n){var i=[],o=_e(1);switch(n.type){case"base64":o=Se(ye(t));break;case"binary":o=Se(t);break;case"buffer":case"array":o=t}ii(o,0);var r=o.read_shift(1),s=!!(136&r),a=!1,l=!1;switch(r){case 2:case 3:break;case 48:case 49:s=a=!0;break;case 131:case 139:break;case 140:l=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+r.toString(16))}for(var c=0,u=521,d=(2==r&&(c=o.read_shift(2)),o.l+=3,1048576<(c=2!=r?o.read_shift(4):c)&&(c=1e6),2!=r&&(u=o.read_shift(2)),o.read_shift(2)),h=n.codepage||1252,f=(2!=r&&(o.l+=16,o.read_shift(1),0!==o[o.l]&&(h=e[o[o.l]]),o.l+=1,o.l+=2),l&&(o.l+=36),[]),p={},g=Math.min(o.length,2==r?521:u-10-(a?264:0)),m=l?32:11;o.l<g&&13!=o[o.l];)switch((p={}).name=pe.utils.decode(h,o.slice(o.l,o.l+m)).replace(/[\u0000\r\n].*$/g,""),o.l+=m,p.type=String.fromCharCode(o.read_shift(1)),2==r||l||(p.offset=o.read_shift(4)),p.len=o.read_shift(1),2==r&&(p.offset=o.read_shift(2)),p.dec=o.read_shift(1),p.name.length&&f.push(p),2!=r&&(o.l+=l?13:14),p.type){case"B":a&&8==p.len||!n.WTF||console.log("Skipping "+p.name+":"+p.type);break;case"G":case"P":n.WTF&&console.log("Skipping "+p.name+":"+p.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+p.type)}if(13!==o[o.l]&&(o.l=u-1),13!==o.read_shift(1))throw new Error("DBF Terminator not found "+o.l+" "+o[o.l]);o.l=u;var v=0,b=0;for(i[0]=[],b=0;b!=f.length;++b)i[0][b]=f[b].name;for(;0<c--;)if(42===o[o.l])o.l+=d;else for(++o.l,i[++v]=[],b=b=0;b!=f.length;++b){var w=o.slice(o.l,o.l+f[b].len),y=(o.l+=f[b].len,ii(w,0),pe.utils.decode(h,w));switch(f[b].type){case"C":y.trim().length&&(i[v][b]=y.replace(/\s+$/,""));break;case"D":8===y.length?i[v][b]=new Date(+y.slice(0,4),+y.slice(4,6)-1,+y.slice(6,8)):i[v][b]=y;break;case"F":i[v][b]=parseFloat(y.trim());break;case"+":case"I":i[v][b]=l?2147483648^w.read_shift(-4,"i"):w.read_shift(4,"i");break;case"L":switch(y.trim().toUpperCase()){case"Y":case"T":i[v][b]=!0;break;case"N":case"F":i[v][b]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+y+"|")}break;case"M":if(!s)throw new Error("DBF Unexpected MEMO for type "+r.toString(16));i[v][b]="##MEMO##"+(l?parseInt(y.trim(),10):w.read_shift(4));break;case"N":(y=y.replace(/\u0000/g,"").trim())&&"."!=y&&(i[v][b]=+y||0);break;case"@":i[v][b]=new Date(w.read_shift(-8,"f")-621356832e5);break;case"T":i[v][b]=new Date(864e5*(w.read_shift(4)-2440588)+w.read_shift(4));break;case"Y":i[v][b]=w.read_shift(4,"i")/1e4+w.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":i[v][b]=-w.read_shift(-8,"f");break;case"B":if(a&&8==f[b].len){i[v][b]=w.read_shift(8,"f");break}case"G":case"P":w.l+=f[b].len;break;case"0":if("_NullFlags"===f[b].name)break;default:throw new Error("DBF Unsupported data type "+f[b].type)}}if(2!=r&&o.l<o.length&&26!=o[o.l++])throw new Error("DBF EOF Marker missing "+(o.l-1)+" of "+o.length+" "+o[o.l-1].toString(16));return n&&n.sheetRows&&(i=i.slice(0,n.sheetRows)),n.DBF=f,i}(t,n),n))["!cols"]=n.DBF.map((function(e){return{wch:e.len,DBF:e}})),delete n.DBF,t}var i={B:8,C:250,L:1,D:8,"?":0,"":0};return{to_workbook:function(e,t){try{return ki(n(e,t),t)}catch(e){if(t&&t.WTF)throw e}return{SheetNames:[],Sheets:{}}},to_sheet:n,from_sheet:function(e,n){if(0<=+(n=n||{}).codepage&&ue(+n.codepage),"string"==n.type)throw new Error("Cannot write DBF to JS string");var o=ai(),r=(n=tl(e,{header:1,raw:!0,cellDates:!0}))[0],s=n.slice(1),a=e["!cols"]||[],l=0,c=0,u=0,d=1;for(l=0;l<r.length;++l)if(((a[l]||{}).DBF||{}).name)r[l]=a[l].DBF.name,++u;else if(null!=r[l]){if(++u,"number"==typeof r[l]&&(r[l]=r[l].toString(10)),"string"!=typeof r[l])throw new Error("DBF Invalid column name "+r[l]+" |"+typeof r[l]+"|");if(r.indexOf(r[l])!==l)for(c=0;c<1024;++c)if(-1==r.indexOf(r[l]+"_"+c)){r[l]+="_"+c;break}}var h=yi(e["!ref"]),f=[],p=[],g=[];for(l=0;l<=h.e.c-h.s.c;++l){var m="",v="",b=0,w=[];for(c=0;c<s.length;++c)null!=s[c][l]&&w.push(s[c][l]);if(0==w.length||null==r[l])f[l]="?";else{for(c=0;c<w.length;++c){switch(typeof w[c]){case"number":v="B";break;case"string":v="C";break;case"boolean":v="L";break;case"object":v=w[c]instanceof Date?"D":"C";break;default:v="C"}b=Math.max(b,String(w[c]).length),m=m&&m!=v?"C":v}250<b&&(b=250),"C"==(v=((a[l]||{}).DBF||{}).type)&&a[l].DBF.len>b&&(b=a[l].DBF.len),"B"==m&&"N"==v&&(m="N",g[l]=a[l].DBF.dec,b=a[l].DBF.len),p[l]="C"==m||"N"==v?b:i[m]||0,d+=p[l],f[l]=m}}var y,x,k=o.next(32);for(k.write_shift(4,318902576),k.write_shift(4,s.length),k.write_shift(2,296+32*u),k.write_shift(2,d),l=0;l<4;++l)k.write_shift(4,0);for(k.write_shift(4,0|(+t[se]||3)<<8),c=l=0;l<r.length;++l)null!=r[l]&&(y=o.next(32),x=(r[l].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11),y.write_shift(1,x,"sbcs"),y.write_shift(1,"?"==f[l]?"C":f[l],"sbcs"),y.write_shift(4,c),y.write_shift(1,p[l]||i[f[l]]||0),y.write_shift(1,g[l]||0),y.write_shift(1,2),y.write_shift(4,0),y.write_shift(1,0),y.write_shift(4,0),y.write_shift(4,0),c+=p[l]||i[f[l]]||0);var _=o.next(264);for(_.write_shift(4,13),l=0;l<65;++l)_.write_shift(4,0);for(l=0;l<s.length;++l){var C=o.next(d);for(C.write_shift(1,0),c=0;c<r.length;++c)if(null!=r[c])switch(f[c]){case"L":C.write_shift(1,null==s[l][c]?63:s[l][c]?84:70);break;case"B":C.write_shift(8,s[l][c]||0,"f");break;case"N":var S="0";for("number"==typeof s[l][c]&&(S=s[l][c].toFixed(g[c]||0)),u=0;u<p[c]-S.length;++u)C.write_shift(1,32);C.write_shift(1,S,"sbcs");break;case"D":s[l][c]?(C.write_shift(4,("0000"+s[l][c].getFullYear()).slice(-4),"sbcs"),C.write_shift(2,("00"+(s[l][c].getMonth()+1)).slice(-2),"sbcs"),C.write_shift(2,("00"+s[l][c].getDate()).slice(-2),"sbcs")):C.write_shift(8,"00000000","sbcs");break;case"C":var E=String(null!=s[l][c]?s[l][c]:"").slice(0,p[c]);for(C.write_shift(1,E,"sbcs"),u=0;u<p[c]-E.length;++u)C.write_shift(1,32)}}return o.next(1).write_shift(1,26),o.end()}}}(),Zo=function(){var e={AA:"À",BA:"Á",CA:"Â",DA:195,HA:"Ä",JA:197,AE:"È",BE:"É",CE:"Ê",HE:"Ë",AI:"Ì",BI:"Í",CI:"Î",HI:"Ï",AO:"Ò",BO:"Ó",CO:"Ô",DO:213,HO:"Ö",AU:"Ù",BU:"Ú",CU:"Û",HU:"Ü",Aa:"à",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"í",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ç",Kc:"ç",q:"æ",z:"œ",a:"Æ",j:"Œ",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},t=new RegExp("N("+xt(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),n=function(t,n){return"number"==typeof(n=e[n])?ve(n):n},i=function(e,t,n){return 59==(t=t.charCodeAt(0)-32<<4|n.charCodeAt(0)-48)?e:ve(t)};function o(e,o){var r,s,a=e.split(/[\n\r]+/),l=-1,c=-1,u=0,d=0,h=[],f=[],p=null,g=(e={},[]),m=[],v=0;for(0<=+o.codepage&&ue(+o.codepage);u!==a.length;++u){v=0;var b,w=a[u].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,i).replace(t,n),y=w.replace(/;;/g,"\0").split(";").map((function(e){return e.replace(/\u0000/g,";")})),x=y[0];if(0<w.length)switch(x){case"ID":case"E":case"B":case"O":case"W":break;case"P":"P"==y[1].charAt(0)&&f.push(w.slice(3).replace(/;;/g,";"));break;case"C":var k=!1,_=!1,C=!1,S=!1,E=-1,T=-1;for(d=1;d<y.length;++d)switch(y[d].charAt(0)){case"A":break;case"X":c=parseInt(y[d].slice(1))-1,_=!0;break;case"Y":for(l=parseInt(y[d].slice(1))-1,_||(c=0),s=h.length;s<=l;++s)h[s]=[];break;case"K":'"'===(b=y[d].slice(1)).charAt(0)?b=b.slice(1,b.length-1):"TRUE"===b?b=!0:"FALSE"===b?b=!1:isNaN(It(b))?isNaN(Dt(b).getDate())||(b=Lt(b)):(b=It(b),null!==p&&dt(p)&&(b=Tt(b))),k=!0;break;case"E":S=!0;var A=Gr(y[d].slice(1),{r:l,c:c});h[l][c]=[h[l][c],A];break;case"S":C=!0,h[l][c]=[h[l][c],"S5S"];break;case"G":break;case"R":E=parseInt(y[d].slice(1))-1;break;case"C":T=parseInt(y[d].slice(1))-1;break;default:if(o&&o.WTF)throw new Error("SYLK bad record "+w)}if(k&&(h[l][c]&&2==h[l][c].length?h[l][c][0]=b:h[l][c]=b,p=null),C){if(S)throw new Error("SYLK shared formula cannot have own formula");var O=-1<E&&h[E][T];if(!O||!O[1])throw new Error("SYLK shared formula cannot find base");h[l][c][1]=Xr(O[1],{r:l-E,c:c-T})}break;case"F":var L=0;for(d=1;d<y.length;++d)switch(y[d].charAt(0)){case"X":c=parseInt(y[d].slice(1))-1,++L;break;case"Y":for(l=parseInt(y[d].slice(1))-1,s=h.length;s<=l;++s)h[s]=[];break;case"M":v=parseInt(y[d].slice(1))/20;break;case"F":case"G":break;case"P":p=f[parseInt(y[d].slice(1))];break;case"S":case"D":case"N":break;case"W":for(r=y[d].slice(1).split(" "),s=parseInt(r[0],10);s<=parseInt(r[1],10);++s)v=parseInt(r[2],10),m[s-1]=0===v?{hidden:!0}:{wch:v},Er(m[s-1]);break;case"C":m[c=parseInt(y[d].slice(1))-1]||(m[c]={});break;case"R":g[l=parseInt(y[d].slice(1))-1]||(g[l]={}),0<v?(g[l].hpt=v,g[l].hpx=Ar(v)):0===v&&(g[l].hidden=!0);break;default:if(o&&o.WTF)throw new Error("SYLK bad record "+w)}L<1&&(p=null);break;default:if(o&&o.WTF)throw new Error("SYLK bad record "+w)}}return 0<g.length&&(e["!rows"]=g),0<m.length&&(e["!cols"]=m),[h=o&&o.sheetRows?h.slice(0,o.sheetRows):h,e]}function r(e,t){var n=(e=function(e,t){switch(t.type){case"base64":return o(ye(e),t);case"binary":return o(e,t);case"buffer":return o(xe&&Buffer.isBuffer(e)?e.toString("binary"):Ee(e),t);case"array":return o($t(e),t)}throw new Error("Unrecognized type "+t.type)}(e,t))[0],i=e[1],r=Ci(n,t);return xt(i).forEach((function(e){r[e]=i[e]})),r}return e["|"]=254,{to_workbook:function(e,t){return ki(r(e,t),t)},to_sheet:r,from_sheet:function(e,t){var n,i,o=["ID;PWXL;N;E"],r=[],s=yi(e["!ref"]),a=Array.isArray(e),l="\r\n";o.push("P;PGeneral"),o.push("F;P0;DG0G8;M255"),e["!cols"]&&(n=o,e["!cols"].forEach((function(e,t){t="F;W"+(t+1)+" "+(t+1)+" ",e.hidden?t+="0":("number"!=typeof e.width||e.wpx||(e.wpx=xr(e.width)),"number"!=typeof e.wpx||e.wch||(e.wch=kr(e.wpx)),"number"==typeof e.wch&&(t+=Math.round(e.wch)))," "!=t.charAt(t.length-1)&&n.push(t)}))),e["!rows"]&&(i=o,e["!rows"].forEach((function(e,t){var n="F;";e.hidden?n+="M0;":e.hpt?n+="M"+20*e.hpt+";":e.hpx&&(n+="M"+20*Tr(e.hpx)+";"),2<n.length&&i.push(n+"R"+(t+1))}))),o.push("B;Y"+(s.e.r-s.s.r+1)+";X"+(s.e.c-s.s.c+1)+";D"+[s.s.c,s.s.r,s.e.c,s.e.r].join(" "));for(var c=s.s.r;c<=s.e.r;++c)for(var u=s.s.c;u<=s.e.c;++u){var d=vi({r:c,c:u});(d=a?(e[c]||[])[u]:e[d])&&(null!=d.v||d.f&&!d.F)&&r.push(function(e,t,n){var i="C;Y"+(t+1)+";X"+(n+1)+";K";switch(e.t){case"n":i+=e.v||0,e.f&&!e.F&&(i+=";E"+Yr(e.f,{r:t,c:n}));break;case"b":i+=e.v?"TRUE":"FALSE";break;case"e":i+=e.w||e.v;break;case"d":i+='"'+(e.w||e.v)+'"';break;case"s":i+='"'+e.v.replace(/"/g,"").replace(/;/g,";;")+'"'}return i}(d,c,u))}return o.join(l)+l+r.join(l)+l+"E"+l}}}(),Qo=function(){function e(e,t){for(var n=e.split("\n"),i=-1,o=-1,r=0,s=[];r!==n.length;++r)if("BOT"===n[r].trim())s[++i]=[],o=0;else if(!(i<0)){for(var a=n[r].trim().split(","),l=a[0],c=a[1],u=n[++r]||"";1&(u.match(/["]/g)||[]).length&&r<n.length-1;)u+="\n"+n[++r];switch(u=u.trim(),+l){case-1:if("BOT"===u){s[++i]=[],o=0;continue}if("EOD"!==u)throw new Error("Unrecognized DIF special command "+u);break;case 0:"TRUE"===u?s[i][o]=!0:"FALSE"===u?s[i][o]=!1:isNaN(It(c))?isNaN(Dt(c).getDate())?s[i][o]=c:s[i][o]=Lt(c):s[i][o]=It(c),++o;break;case 1:(u=(u=u.slice(1,u.length-1)).replace(/""/g,'"'))&&u.match(/^=".*"$/)&&(u=u.slice(2,-1)),s[i][o++]=""!==u?u:null}if("EOD"===u)break}return t&&t.sheetRows?s.slice(0,t.sheetRows):s}function t(t,n){return Ci(function(t,n){switch(n.type){case"base64":return e(ye(t),n);case"binary":return e(t,n);case"buffer":return e(xe&&Buffer.isBuffer(t)?t.toString("binary"):Ee(t),n);case"array":return e($t(t),n)}throw new Error("Unrecognized type "+n.type)}(t,n),n)}return{to_workbook:function(e,n){return ki(t(e,n),n)},to_sheet:t,from_sheet:function(){function e(e,t,n,i,o){e.push(t),e.push(n+","+i),e.push('"'+o.replace(/"/g,'""')+'"')}function t(e,t,n,i){e.push(t+","+n),e.push(1==t?'"'+i.replace(/"/g,'""')+'"':i)}return function(n){var i=[],o=yi(n["!ref"]),r=Array.isArray(n);e(i,"TABLE",0,1,"sheetjs"),e(i,"VECTORS",0,o.e.r-o.s.r+1,""),e(i,"TUPLES",0,o.e.c-o.s.c+1,""),e(i,"DATA",0,0,"");for(var s=o.s.r;s<=o.e.r;++s){t(i,-1,0,"BOT");for(var a=o.s.c;a<=o.e.c;++a){var l,c=vi({r:s,c:a});if(l=r?(n[s]||[])[a]:n[c])switch(l.t){case"n":var u=l.w;null==(u=u||null==l.v?u:l.v)?l.f&&!l.F?t(i,1,0,"="+l.f):t(i,1,0,""):t(i,0,u,"V");break;case"b":t(i,0,l.v?1:0,l.v?"TRUE":"FALSE");break;case"s":t(i,1,0,isNaN(l.v)?l.v:'="'+l.v+'"');break;case"d":l.w||(l.w=pt(l.z||Be[14],Ct(Lt(l.v)))),t(i,0,l.w,"V");break;default:t(i,1,0,"")}else t(i,1,0,"")}}return t(i,-1,0,"EOD"),i.join("\r\n")}}()}}(),er=function(){function e(e){return e.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function t(e,t){return Ci(function(e,t){for(var n,i=e.split("\n"),o=-1,r=0,s=[];r!==i.length;++r){var a=i[r].trim().split(":");if("cell"===a[0]){var l=mi(a[1]);if(s.length<=l.r)for(o=s.length;o<=l.r;++o)s[o]||(s[o]=[]);switch(o=l.r,n=l.c,a[2]){case"t":s[o][n]=a[3].replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,"\n");break;case"v":s[o][n]=+a[3];break;case"vtf":var c=a[a.length-1];case"vtc":"nl"===a[3]?s[o][n]=!!+a[4]:s[o][n]=+a[4],"vtf"==a[2]&&(s[o][n]=[s[o][n],c])}}}return t&&t.sheetRows?s.slice(0,t.sheetRows):s}(e,t),t)}var n=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join("\n"),i=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join("\n")+"\n",o=["# SocialCalc Spreadsheet Control Save","part:sheet"].join("\n");return{to_workbook:function(e,n){return ki(t(e,n),n)},to_sheet:t,from_sheet:function(t){return[n,i,o,i,function(t){if(!t||!t["!ref"])return"";for(var n,i,o=[],r=[],s=bi(t["!ref"]),a=Array.isArray(t),l=s.s.r;l<=s.e.r;++l)for(var c=s.s.c;c<=s.e.c;++c)if(i=vi({r:l,c:c}),(n=a?(t[l]||[])[c]:t[i])&&null!=n.v&&"z"!==n.t){switch(r=["cell",i,"t"],n.t){case"s":case"str":r.push(e(n.v));break;case"n":n.f?(r[2]="vtf",r[3]="n",r[4]=n.v,r[5]=e(n.f)):(r[2]="v",r[3]=n.v);break;case"b":r[2]="vt"+(n.f?"f":"c"),r[3]="nl",r[4]=n.v?"1":"0",r[5]=e(n.f||(n.v?"TRUE":"FALSE"));break;case"d":var u=Ct(Lt(n.v));r[2]="vtc",r[3]="nd",r[4]=""+u,r[5]=n.w||pt(n.z||Be[14],u);break;case"e":continue}o.push(r.join(":"))}return o.push("sheet:c:"+(s.e.c-s.s.c+1)+":r:"+(s.e.r-s.s.r+1)+":tvf:1"),o.push("valueformat:1:text-wiki"),o.join("\n")}(t),"--SocialCalcSpreadsheetControlSave--"].join("\n")}}}(),tr=function(){function e(e,t,n,i,o){o.raw?t[n][i]=e:""!==e&&("TRUE"===e?t[n][i]=!0:"FALSE"===e?t[n][i]=!1:isNaN(It(e))?isNaN(Dt(e).getDate())?t[n][i]=e:t[n][i]=Lt(e):t[n][i]=It(e))}var t={44:",",9:"\t",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function i(e){for(var i={},o=!1,r=0,s=0;r<e.length;++r)34==(s=e.charCodeAt(r))?o=!o:!o&&s in t&&(i[s]=(i[s]||0)+1);for(r in s=[],i)Object.prototype.hasOwnProperty.call(i,r)&&s.push([i[r],r]);if(!s.length)for(r in i=n)Object.prototype.hasOwnProperty.call(i,r)&&s.push([i[r],r]);return s.sort((function(e,t){return e[0]-t[0]||n[e[1]]-n[t[1]]})),t[s.pop()[1]]||44}function o(t,n){return!n||!n.PRN||n.FS||"sep="==t.slice(0,4)||0<=t.indexOf("\t")||0<=t.indexOf(",")||0<=t.indexOf(";")?function(e,t){var n=t||{},o=(t="",n.dense?[]:{}),r={s:{c:0,r:0},e:{c:0,r:0}},s=("sep="==e.slice(0,4)?13==e.charCodeAt(5)&&10==e.charCodeAt(6)?(t=e.charAt(4),e=e.slice(7)):13==e.charCodeAt(5)||10==e.charCodeAt(5)?(t=e.charAt(4),e=e.slice(6)):t=i(e.slice(0,1024)):t=n&&n.FS?n.FS:i(e.slice(0,1024)),0),a=0,l=0,c=0,u=0,d=t.charCodeAt(0),h=!1,f=0,p=e.charCodeAt(0),g=(e=e.replace(/\r\n/gm,"\n"),null!=n.dateNF?(t=(t="number"==typeof(t=n.dateNF)?Be[t]:t).replace(bt,"(\\d+)"),new RegExp("^"+t+"$")):null);function m(){var t,i=e.slice(c,u),h={};if(0===(i='"'==i.charAt(0)&&'"'==i.charAt(i.length-1)?i.slice(1,-1).replace(/""/g,'"'):i).length?h.t="z":n.raw||0===i.trim().length?(h.t="s",h.v=i):61==i.charCodeAt(0)?34==i.charCodeAt(1)&&34==i.charCodeAt(i.length-1)?(h.t="s",h.v=i.slice(2,-1).replace(/""/g,'"')):1!=i.length?(h.t="n",h.f=i.slice(1)):(h.t="s",h.v=i):"TRUE"==i?(h.t="b",h.v=!0):"FALSE"==i?(h.t="b",h.v=!1):isNaN(l=It(i))?!isNaN(Dt(i).getDate())||g&&i.match(g)?(h.z=n.dateNF||Be[14],t=0,g&&i.match(g)&&(i=function(e,t){var n=-1,i=-1,o=-1,r=-1,s=-1,a=-1;(e.match(bt)||[]).forEach((function(e,l){var c=parseInt(t[l+1],10);switch(e.toLowerCase().charAt(0)){case"y":n=c;break;case"d":o=c;break;case"h":r=c;break;case"s":a=c;break;case"m":0<=r?s=c:i=c}})),0<=a&&-1==s&&0<=i&&(s=i,i=-1),8==(e=7==(e=(""+(0<=n?n:(new Date).getFullYear())).slice(-4)+"-"+("00"+(1<=i?i:1)).slice(-2)+"-"+("00"+(1<=o?o:1)).slice(-2)).length?"0"+e:e).length&&(e="20"+e);var l=("00"+(0<=r?r:0)).slice(-2)+":"+("00"+(0<=s?s:0)).slice(-2)+":"+("00"+(0<=a?a:0)).slice(-2);return-1==r&&-1==s&&-1==a?e:-1==n&&-1==i&&-1==o?l:e+"T"+l}(n.dateNF,i.match(g)||[]),t=1),n.cellDates?(h.t="d",h.v=Lt(i,t)):(h.t="n",h.v=Ct(Lt(i,t))),!1!==n.cellText&&(h.w=pt(h.z,h.v instanceof Date?Ct(h.v):h.v)),n.cellNF||delete h.z):(h.t="s",h.v=i):(!(h.t="n")!==n.cellText&&(h.w=i),h.v=l),"z"!=h.t&&(n.dense?(o[s]||(o[s]=[]),o[s][a]=h):o[vi({c:a,r:s})]=h),c=u+1,p=e.charCodeAt(c),r.e.c<a&&(r.e.c=a),r.e.r<s&&(r.e.r=s),f!=d)return a=0,++s,!!(n.sheetRows&&n.sheetRows<=s);++a}e:for(;u<e.length;++u)switch(f=e.charCodeAt(u)){case 34:34===p&&(h=!h);break;case d:case 10:case 13:if(!h&&m())break e}return 0<u-c&&m(),o["!ref"]=wi(r),o}(t,n):Ci(function(t,n){var i=n||{},o=[];if(t&&0!==t.length){for(var r=t.split(/[\r\n]/),s=r.length-1;0<=s&&0===r[s].length;)--s;for(var a=10,l=0,c=0;c<=s;++c)-1==(l=r[c].indexOf(" "))?l=r[c].length:l++,a=Math.max(a,l);for(c=0;c<=s;++c){o[c]=[];var u=0;for(e(r[c].slice(0,a).trim(),o,c,u,i),u=1;u<=(r[c].length-a)/10+1;++u)e(r[c].slice(a+10*(u-1),a+10*u).trim(),o,c,u,i)}i.sheetRows&&(o=o.slice(0,i.sheetRows))}return o}(t,n),n)}function r(e,t){var n="",i="string"==t.type?[0,0,0,0]:Xa(e,t);switch(t.type){case"base64":n=ye(e);break;case"binary":n=e;break;case"buffer":n=65001==t.codepage?e.toString("utf8"):(t.codepage,xe&&Buffer.isBuffer(e)?e.toString("binary"):Ee(e));break;case"array":n=$t(e);break;case"string":n=e;break;default:throw new Error("Unrecognized type "+t.type)}return 239==i[0]&&187==i[1]&&191==i[2]?n=hn(n.slice(3)):"string"!=t.type&&"buffer"!=t.type&&65001==t.codepage?n=hn(n):t.type,"socialcalc:version:"==n.slice(0,19)?er.to_sheet("string"==t.type?n:hn(n),t):o(n,t)}return{to_workbook:function(e,t){return ki(r(e,t),t)},to_sheet:r,from_sheet:function(e){for(var t=[],n=yi(e["!ref"]),i=Array.isArray(e),o=n.s.r;o<=n.e.r;++o){for(var r=[],s=n.s.c;s<=n.e.c;++s){var a=vi({r:o,c:s});if((a=i?(e[o]||[])[s]:e[a])&&null!=a.v){for(var l=(a.w||(xi(a),a.w)||"").slice(0,10);l.length<10;)l+=" ";r.push(l+(0===s?" ":""))}else r.push(" ")}t.push(r.join(""))}return t.join("\n")}}}(),nr=function(){function e(e,t,n){if(e){ii(e,e.l||0);for(var i=n.Enum||d;e.l<e.length;){var o=e.read_shift(2),r=i[o]||i[65535],s=e.read_shift(2),a=e.l+s;s=r.f&&r.f(e,s,n);if(e.l=a,t(s,r,o))return}}}function t(t,n){if(!t)return t;var i=n||{},o=i.dense?[]:{},r="Sheet1",s="",a=0,l={},c=[],u=[],f={s:{r:0,c:0},e:{r:0,c:0}},p=i.sheetRows||0;if(0==t[2]&&(8==t[3]||9==t[3])&&16<=t.length&&5==t[14]&&108===t[15])throw new Error("Unsupported Works 3 for Mac file");if(2==t[2])i.Enum=d,e(t,(function(e,t,n){switch(n){case 0:4096<=(i.vers=e)&&(i.qpro=!0);break;case 6:f=e;break;case 204:e&&(s=e);break;case 222:s=e;break;case 15:case 51:i.qpro||(e[1].v=e[1].v.slice(1));case 13:case 14:case 16:14==n&&112==(112&e[2])&&1<(15&e[2])&&(15&e[2])<15&&(e[1].z=i.dateNF||Be[14],i.cellDates)&&(e[1].t="d",e[1].v=Tt(e[1].v)),i.qpro&&e[3]>a&&(o["!ref"]=wi(f),l[r]=o,c.push(r),o=i.dense?[]:{},f={s:{r:0,c:0},e:{r:0,c:0}},a=e[3],r=s||"Sheet"+(a+1),s="");var u=i.dense?(o[e[0].r]||[])[e[0].c]:o[vi(e[0])];u?(u.t=e[1].t,u.v=e[1].v,null!=e[1].z&&(u.z=e[1].z),null!=e[1].f&&(u.f=e[1].f)):i.dense?(o[e[0].r]||(o[e[0].r]=[]),o[e[0].r][e[0].c]=e[1]):o[vi(e[0])]=e[1]}}),i);else{if(26!=t[2]&&14!=t[2])throw new Error("Unrecognized LOTUS BOF "+t[2]);i.Enum=h,14==t[2]&&(i.qpro=!0,t.l=0),e(t,(function(e,t,n){switch(n){case 204:r=e;break;case 22:e[1].v=e[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:e[3]>a&&(o["!ref"]=wi(f),l[r]=o,c.push(r),o=i.dense?[]:{},f={s:{r:0,c:0},e:{r:0,c:0}},a=e[3],r="Sheet"+(a+1)),0<p&&e[0].r>=p||(i.dense?(o[e[0].r]||(o[e[0].r]=[]),o[e[0].r][e[0].c]=e[1]):o[vi(e[0])]=e[1],f.e.c<e[0].c&&(f.e.c=e[0].c),f.e.r<e[0].r&&(f.e.r=e[0].r));break;case 27:e[14e3]&&(u[e[14e3][0]]=e[14e3][1]);break;case 1537:u[e[0]]=e[1],e[0]==a&&(r=e[1])}}),i)}if(o["!ref"]=wi(f),l[s||r]=o,c.push(s||r),!u.length)return{SheetNames:c,Sheets:l};for(var g={},m=[],v=0;v<u.length;++v)l[c[v]]?(m.push(u[v]||c[v]),g[u[v]]=l[u[v]]||l[c[v]]):(m.push(u[v]),g[u[v]]={"!ref":"A1"});return{SheetNames:m,Sheets:g}}function n(e,t,n){var i=[{c:0,r:0},{t:"n",v:0},0,0];return n.qpro&&20768!=n.vers?(i[0].c=e.read_shift(1),i[3]=e.read_shift(1),i[0].r=e.read_shift(2),e.l+=2):(i[2]=e.read_shift(1),i[0].c=e.read_shift(2),i[0].r=e.read_shift(2)),i}function i(e,t,i){t=e.l+t;var o,r=n(e,0,i);return r[1].t="s",20768==i.vers?(e.l++,o=e.read_shift(1),r[1].v=e.read_shift(o,"utf8")):(i.qpro&&e.l++,r[1].v=e.read_shift(t-e.l,"cstr")),r}function o(e,t,n){var i=32768&t;return(i?"":"$")+(n?gi:fi)(t=(i?e:0)+(8192<=(t&=-32769)?t-16384:t))}var r={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},s=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function a(e){var t=[{c:0,r:0},{t:"n",v:0},0];return t[0].r=e.read_shift(2),t[3]=e[e.l++],t[0].c=e[e.l++],t}function l(e,t){var n,i=a(e),o=e.read_shift(4),r=e.read_shift(4);return 65535==(e=e.read_shift(2))?0===o&&3221225472===r?(i[1].t="e",i[1].v=15):0===o&&3489660928===r?(i[1].t="e",i[1].v=42):i[1].v=0:(n=32768&e,e=(32767&e)-16446,i[1].v=(1-2*n)*(r*Math.pow(2,32+e)+o*Math.pow(2,e))),i}function c(e,t){var n=a(e);e=e.read_shift(8,"f");return n[1].v=e,n}function u(e,t){return 0==e[e.l+t-1]?e.read_shift(t,"cstr"):""}var d={0:{n:"BOF",f:vo},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:function(e,t,n){var i={s:{c:0,r:0},e:{c:0,r:0}};return 8==t&&n.qpro?(i.s.c=e.read_shift(1),e.l++,i.s.r=e.read_shift(2),i.e.c=e.read_shift(1),e.l++,i.e.r=e.read_shift(2)):(i.s.c=e.read_shift(2),i.s.r=e.read_shift(2),12==t&&n.qpro&&(e.l+=2),i.e.c=e.read_shift(2),i.e.r=e.read_shift(2),12==t&&n.qpro&&(e.l+=2),65535==i.s.c&&(i.s.c=i.e.c=i.s.r=i.e.r=0)),i}},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:function(e,t,i){return(i=n(e,0,i))[1].v=e.read_shift(2,"i"),i}},14:{n:"NUMBER",f:function(e,t,i){return(i=n(e,0,i))[1].v=e.read_shift(8,"f"),i}},15:{n:"LABEL",f:i},16:{n:"FORMULA",f:function(e,t,i){t=e.l+t;var a=n(e,0,i);return a[1].v=e.read_shift(8,"f"),i.qpro?e.l=t:(i=e.read_shift(2),function(e,t){ii(e,0);for(var n=[],i=0,a="",l="",c="",u="";e.l<e.length;){var d=e[e.l++];switch(d){case 0:n.push(e.read_shift(8,"f"));break;case 1:l=o(t[0].c,e.read_shift(2),!0),a=o(t[0].r,e.read_shift(2),!1),n.push(l+a);break;case 2:var h=o(t[0].c,e.read_shift(2),!0),f=o(t[0].r,e.read_shift(2),!1);l=o(t[0].c,e.read_shift(2),!0),a=o(t[0].r,e.read_shift(2),!1),n.push(h+f+":"+l+a);break;case 3:if(e.l<e.length)return console.error("WK1 premature formula end");break;case 4:n.push("("+n.pop()+")");break;case 5:n.push(e.read_shift(2));break;case 6:for(var p="";d=e[e.l++];)p+=String.fromCharCode(d);n.push('"'+p.replace(/"/g,'""')+'"');break;case 8:n.push("-"+n.pop());break;case 23:n.push("+"+n.pop());break;case 22:n.push("NOT("+n.pop()+")");break;case 20:case 21:u=n.pop(),c=n.pop(),n.push(["AND","OR"][d-20]+"("+c+","+u+")");break;default:if(d<32&&s[d])u=n.pop(),c=n.pop(),n.push(c+s[d]+u);else{if(!r[d])return d<=7?console.error("WK1 invalid opcode "+d.toString(16)):d<=24?console.error("WK1 unsupported op "+d.toString(16)):d<=30?console.error("WK1 invalid opcode "+d.toString(16)):d<=115?console.error("WK1 unsupported function opcode "+d.toString(16)):console.error("WK1 unrecognized opcode "+d.toString(16));if(69==(i=r[d][1])&&(i=e[e.l++]),n.length<i)return console.error("WK1 bad formula parse 0x"+d.toString(16)+":|"+n.join("|")+"|");h=n.slice(-i),n.length-=i,n.push(r[d][0]+"("+h.join(",")+")")}}}1==n.length?t[1].f=""+n[0]:console.error("WK1 bad formula parse |"+n.join("|")+"|")}(e.slice(e.l,e.l+i),a),e.l+=i),a}},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:i},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:u},222:{n:"SHEETNAMELP",f:function(e,t){for(var n=e[e.l++],i=(t-1<n&&(n=t-1),"");i.length<n;)i+=String.fromCharCode(e[e.l++]);return i}},65535:{n:""}},h={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:function(e,t){var n=a(e);return n[1].t="s",n[1].v=e.read_shift(t-4,"cstr"),n}},23:{n:"NUMBER17",f:l},24:{n:"NUMBER18",f:function(e,t){var n=a(e),i=(n[1].v=e.read_shift(2),n[1].v>>1);if(1&n[1].v)switch(7&i){case 0:i=5e3*(i>>3);break;case 1:i=500*(i>>3);break;case 2:i=(i>>3)/20;break;case 3:i=(i>>3)/200;break;case 4:i=(i>>3)/2e3;break;case 5:i=(i>>3)/2e4;break;case 6:i=(i>>3)/16;break;case 7:i=(i>>3)/64}return n[1].v=i,n}},25:{n:"FORMULA19",f:function(e,t){var n=l(e);return e.l+=t-14,n}},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:function(e,t){for(var n={},i=e.l+t;e.l<i;){var o=e.read_shift(2);if(14e3==o){for(n[o]=[0,""],n[o][0]=e.read_shift(2);e[e.l];)n[o][1]+=String.fromCharCode(e[e.l]),e.l++;e.l++}}return n}},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:function(e,t){var n=a(e);e=e.read_shift(4);return n[1].v=e>>6,n}},38:{n:"??"},39:{n:"NUMBER27",f:c},40:{n:"FORMULA28",f:function(e,t){var n=c(e);return e.l+=t-10,n}},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:u},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:function(e,t,n){if(n.qpro&&!(t<21))return n=e.read_shift(1),e.l+=17,e.l+=1,e.l+=2,[n,e.read_shift(t-21,"cstr")]}},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:function(e,t){if(0<=+(t=t||{}).codepage&&ue(+t.codepage),"string"==t.type)throw new Error("Cannot write WK1 to JS string");for(var n,i,o,r,s,a=ai(),l=yi(e["!ref"]),c=Array.isArray(e),u=[],d=(ka(a,0,(t=1030,(n=ri(2)).write_shift(2,t),n)),ka(a,6,(t=l,(n=ri(8)).write_shift(2,t.s.c),n.write_shift(2,t.s.r),n.write_shift(2,t.e.c),n.write_shift(2,t.e.r),n)),Math.min(l.e.r,8191)),h=l.s.r;h<=d;++h)for(var f=fi(h),p=l.s.c;p<=l.e.c;++p){h===l.s.r&&(u[p]=gi(p));var g=c?(e[h]||[])[p]:e[u[p]+f];g&&"z"!=g.t&&("n"==g.t?(0|g.v)==g.v&&-32768<=g.v&&g.v<=32767?ka(a,13,(i=h,o=p,r=g.v,s=void 0,(s=ri(7)).write_shift(1,255),s.write_shift(2,o),s.write_shift(2,i),s.write_shift(2,r,"i"),s)):ka(a,14,(o=h,i=p,r=g.v,s=void 0,(s=ri(13)).write_shift(1,255),s.write_shift(2,i),s.write_shift(2,o),s.write_shift(8,r,"f"),s)):ka(a,15,function(e,t,n){var i=ri(7+n.length);i.write_shift(1,255),i.write_shift(2,t),i.write_shift(2,e),i.write_shift(1,39);for(var o=0;o<i.length;++o){var r=n.charCodeAt(o);i.write_shift(1,128<=r?95:r)}return i.write_shift(1,0),i}(h,p,xi(g).slice(0,239))))}return ka(a,1),a.end()},book_to_wk3:function(e,t){if(0<=+(t=t||{}).codepage&&ue(+t.codepage),"string"==t.type)throw new Error("Cannot write WK3 to JS string");var n=ai();ka(n,0,function(e){for(var t=ri(26),n=(t.write_shift(2,4096),t.write_shift(2,4),t.write_shift(4,0),0),i=0,o=0,r=0;r<e.SheetNames.length;++r){var s=e.SheetNames[r];(s=e.Sheets[s])&&s["!ref"]&&(++o,n<(s=bi(s["!ref"])).e.r&&(n=s.e.r),i<s.e.c)&&(i=s.e.c)}return 8191<n&&(n=8191),t.write_shift(2,n),t.write_shift(1,o),t.write_shift(1,i),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(1,1),t.write_shift(1,2),t.write_shift(4,0),t.write_shift(4,0),t}(e));for(var i=0,o=0;i<e.SheetNames.length;++i)(e.Sheets[e.SheetNames[i]]||{})["!ref"]&&ka(n,27,function(e,t){var n=ri(5+e.length);n.write_shift(2,14e3),n.write_shift(2,t);for(var i=0;i<e.length;++i){var o=e.charCodeAt(i);n[n.l++]=127<o?95:o}return n[n.l++]=0,n}(e.SheetNames[i],o++));var r,s,a,l,c,u,d=0;for(i=0;i<e.SheetNames.length;++i){var h=e.Sheets[e.SheetNames[i]];if(h&&h["!ref"]){for(var f=yi(h["!ref"]),p=Array.isArray(h),g=[],m=Math.min(f.e.r,8191),v=f.s.r;v<=m;++v)for(var b=fi(v),w=f.s.c;w<=f.e.c;++w){v===f.s.r&&(g[w]=gi(w));var y=p?(h[v]||[])[w]:h[g[w]+b];y&&"z"!=y.t&&("n"==y.t?ka(n,23,(r=v,s=w,a=d,l=y.v,u=c=void 0,(u=ri(14)).write_shift(2,r),u.write_shift(1,a),u.write_shift(1,s),0==l?(u.write_shift(4,0),u.write_shift(4,0),u.write_shift(2,65535)):(l<(c=s=a=r=0)&&(r=1,l=-l),a=0|Math.log2(l),0==(2147483648&(c=(l/=Math.pow(2,a-31))>>>0))&&(++a,c=(l/=2)>>>0),l-=c,c=(2147483648|c)>>>0,s=(l*=Math.pow(2,32))>>>0,u.write_shift(4,s),u.write_shift(4,c),a+=16383+(r?32768:0),u.write_shift(2,a)),u)):ka(n,22,function(e,t,n,i){var o=ri(6+i.length);o.write_shift(2,e),o.write_shift(1,n),o.write_shift(1,t),o.write_shift(1,39);for(var r=0;r<i.length;++r){var s=i.charCodeAt(r);o.write_shift(1,128<=s?95:s)}return o.write_shift(1,0),o}(v,w,d,xi(y).slice(0,239))))}++d}}return ka(n,1),n.end()},to_workbook:function(e,n){switch(n.type){case"base64":return t(Se(ye(e)),n);case"binary":return t(Se(e),n);case"buffer":case"array":return t(e,n)}throw"Unsupported type "+n.type}}}(),ir=function(){var e=pn("t"),t=pn("rPr");function n(n){var i=n.match(e);return i?(i={t:"s",v:nn(i[1])},(n=n.match(t))&&(i.s=function(e){var t={},n=e.match(Yt),i=0,o=!1;if(n)for(;i!=n.length;++i){var r=Zt(n[i]);switch(r[0].replace(/\w*:/g,"")){case"<condense":case"<extend":break;case"<shadow":if(!r.val)break;case"<shadow>":case"<shadow/>":t.shadow=1;break;case"</shadow>":break;case"<charset":"1"!=r.val&&(t.cp=le[parseInt(r.val,10)]);break;case"<outline":if(!r.val)break;case"<outline>":case"<outline/>":t.outline=1;break;case"</outline>":break;case"<rFont":t.name=r.val;break;case"<sz":t.sz=r.val;break;case"<strike":if(!r.val)break;case"<strike>":case"<strike/>":t.strike=1;break;case"</strike>":break;case"<u":if(!r.val)break;switch(r.val){case"double":t.uval="double";break;case"singleAccounting":t.uval="single-accounting";break;case"doubleAccounting":t.uval="double-accounting"}case"<u>":case"<u/>":t.u=1;break;case"</u>":break;case"<b":if("0"==r.val)break;case"<b>":case"<b/>":t.b=1;break;case"</b>":break;case"<i":if("0"==r.val)break;case"<i>":case"<i/>":t.i=1;break;case"</i>":break;case"<color":r.rgb&&(t.color=r.rgb.slice(2,8));break;case"<color>":case"<color/>":case"</color>":break;case"<family":t.family=r.val;break;case"<family>":case"<family/>":case"</family>":break;case"<vertAlign":t.valign=r.val;break;case"<vertAlign>":case"<vertAlign/>":case"</vertAlign>":case"<scheme":break;case"<scheme>":case"<scheme/>":case"</scheme>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":o=!0;break;case"</ext>":o=!1;break;default:if(47!==r[0].charCodeAt(1)&&!o)throw new Error("Unrecognized rich format "+r[0])}}return t}(n[1])),i):{t:"s",v:""}}var i=/<(?:\w+:)?r>/g,o=/<\/(?:\w+:)?r>/;return function(e){return e.replace(i,"").split(o).map(n).filter((function(e){return e.v}))}}(),or=function(){var e=/(\r\n|\n)/g;function t(t){var n,i,o,r=[[],t.v,[]];return t.v?(t.s&&(t=t.s,n=r[0],i=r[2],o=[],t.u&&o.push("text-decoration: underline;"),t.uval&&o.push("text-underline-style:"+t.uval+";"),t.sz&&o.push("font-size:"+t.sz+"pt;"),t.outline&&o.push("text-effect: outline;"),t.shadow&&o.push("text-shadow: auto;"),n.push('<span style="'+o.join("")+'">'),t.b&&(n.push("<b>"),i.push("</b>")),t.i&&(n.push("<i>"),i.push("</i>")),t.strike&&(n.push("<s>"),i.push("</s>")),"superscript"==(o=t.valign||"")||"super"==o?o="sup":"subscript"==o&&(o="sub"),""!=o&&(n.push("<"+o+">"),i.push("</"+o+">")),i.push("</span>")),r[0].join("")+r[1].replace(e,"<br/>")+r[2].join("")):""}return function(e){return e.map(t).join("")}}(),rr=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,sr=/<(?:\w+:)?r>/,ar=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function lr(e,t){t=!t||t.cellHTML;var n={};return e?(e.match(/^\s*<(?:\w+:)?t[^>]*>/)?(n.t=nn(hn(e.slice(e.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")),n.r=hn(e),t&&(n.h=sn(n.t))):e.match(sr)&&(n.r=hn(e),n.t=nn(hn((e.replace(ar,"").match(rr)||[]).join("").replace(Yt,""))),t)&&(n.h=or(ir(n.r))),n):{t:""}}var cr=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,ur=/<(?:\w+:)?(?:si|sstItem)>/g,dr=/<\/(?:\w+:)?(?:si|sstItem)>/;function hr(e){for(var t=[],n=e.split(""),i=0;i<n.length;++i)t[i]=n[i].charCodeAt(0);return t}function fr(e,t){var n={};return n.Major=e.read_shift(2),n.Minor=e.read_shift(2),4<=t&&(e.l+=t-4),n}function pr(e,t){t=e.l+t;var n={},i=(n.Flags=63&e.read_shift(4),e.l+=4,n.AlgID=e.read_shift(4),!1);switch(n.AlgID){case 26126:case 26127:case 26128:i=36==n.Flags;break;case 26625:i=4==n.Flags;break;case 0:i=16==n.Flags||4==n.Flags||36==n.Flags;break;default:throw"Unrecognized encryption algorithm: "+n.AlgID}if(i)return n.AlgIDHash=e.read_shift(4),n.KeySize=e.read_shift(4),n.ProviderType=e.read_shift(4),e.l+=8,n.CSPName=e.read_shift(t-e.l>>1,"utf16le"),e.l=t,n;throw new Error("Encryption Flags/AlgID mismatch")}function gr(e,t){var n={};t=e.l+t;return e.l+=4,n.Salt=e.slice(e.l,e.l+16),e.l+=16,n.Verifier=e.slice(e.l,e.l+16),e.l+=16,e.read_shift(4),n.VerifierHash=e.slice(e.l,t),e.l=t,n}var mr=function(){function e(e,t){return 255&((e^=t)/2|128*e)}var t=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0],n=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163],i=[44796,19929,39858,10053,20106,40212,10761,31585,63170,64933,60267,50935,40399,11199,17763,35526,1453,2906,5812,11624,23248,885,1770,3540,7080,14160,28320,56640,55369,41139,20807,41614,21821,43642,17621,28485,56970,44341,19019,38038,14605,29210,60195,50791,40175,10751,21502,43004,24537,18387,36774,3949,7898,15796,31592,63184,47201,24803,49606,37805,14203,28406,56812,17824,35648,1697,3394,6788,13576,27152,43601,17539,35078,557,1114,2228,4456,30388,60776,51953,34243,7079,14158,28316,14128,28256,56512,43425,17251,34502,7597,13105,26210,52420,35241,883,1766,3532,4129,8258,16516,33032,4657,9314,18628];return function(o){for(var r,s=hr(o),a=function(e){for(var t=n[e.length-1],o=104,r=e.length-1;0<=r;--r)for(var s=e[r],a=0;7!=a;++a)64&s&&(t^=i[o]),s*=2,--o;return t}(s),l=s.length,c=_e(16),u=0;16!=u;++u)c[u]=0;for(1==(1&l)&&(c[l]=e(t[0],a>>8),o=s[s.length-1],c[--l]=e(o,255&a));0<l;)c[--l]=e(s[l],a>>8),c[--l]=e(s[l],255&a);for(r=(l=15)-s.length;0<r;)c[l]=e(t[r],a>>8),--r,c[--l]=e(s[l],255&a),--l,--r;return c}}();var vr=function(){function e(e,n){switch(n.type){case"base64":return t(ye(e),n);case"binary":return t(e,n);case"buffer":return t(xe&&Buffer.isBuffer(e)?e.toString("binary"):Ee(e),n);case"array":return t($t(e),n)}throw new Error("Unrecognized type "+n.type)}function t(e,t){var n,i=(t||{}).dense?[]:{};if((t=e.match(/\\trowd.*?\\row\b/g)).length)return n={s:{c:0,r:0},e:{c:0,r:t.length-1}},t.forEach((function(e,t){Array.isArray(i)&&(i[t]=[]);for(var o,r=/\\\w+\b/g,s=0,a=-1;o=r.exec(e);)"\\cell"===o[0]&&(++a,(o=" "==(o=e.slice(s,r.lastIndex-o[0].length))[0]?o.slice(1):o).length)&&(o={v:o,t:"s"},Array.isArray(i)?i[t][a]=o:i[vi({r:t,c:a})]=o),s=r.lastIndex;a>n.e.c&&(n.e.c=a)})),i["!ref"]=wi(n),i;throw new Error("RTF missing table")}return{to_workbook:function(t,n){return ki(e(t,n),n)},to_sheet:e,from_sheet:function(e){for(var t=["{\\rtf1\\ansi"],n=yi(e["!ref"]),i=Array.isArray(e),o=n.s.r;o<=n.e.r;++o){t.push("\\trowd\\trautofit1");for(var r=n.s.c;r<=n.e.c;++r)t.push("\\cellx"+(r+1));for(t.push("\\pard\\intbl"),r=n.s.c;r<=n.e.c;++r){var s=vi({r:o,c:r});(s=i?(e[o]||[])[r]:e[s])&&(null!=s.v||s.f&&!s.F)&&(t.push(" "+(s.w||(xi(s),s.w))),t.push("\\cell"))}t.push("\\pard\\intbl\\row")}return t.join("")+"}"}}}();function br(e){for(var t=0,n=1;3!=t;++t)n=256*n+(255<e[t]?255:e[t]<0?0:e[t]);return n.toString(16).toUpperCase().slice(1)}function wr(e,t){return 0===t?e:((e=function(e){var t=e[0]/255,n=e[1]/255,i=e[2]/255,o=(e=Math.max(t,n,i),Math.min(t,n,i)),r=e-o;if(0==r)return[0,0,t];var s=0,a=r/(1<(o=e+o)?2-o:o);switch(e){case t:s=((n-i)/r+6)%6;break;case n:s=(i-t)/r+2;break;case i:s=(t-n)/r+4}return[s/6,a,o/2]}((e=(e=e).slice("#"===e[0]?1:0).slice(0,6),[parseInt(e.slice(0,2),16),parseInt(e.slice(2,4),16),parseInt(e.slice(4,6),16)])))[2]=t<0?e[2]*(1+t):1-(1-e[2])*(1-t),br(function(e){var t,n=e[0],i=e[1],o=2*i*((e=e[2])<.5?e:1-e),r=[e-=o/2,e,e],s=6*n;if(0!==i)switch(0|s){case 0:case 6:t=o*s,r[0]+=o,r[1]+=t;break;case 1:r[0]+=t=o*(2-s),r[1]+=o;break;case 2:t=o*(s-2),r[1]+=o,r[2]+=t;break;case 3:r[1]+=t=o*(4-s),r[2]+=o;break;case 4:t=o*(s-4),r[2]+=o,r[0]+=t;break;case 5:r[2]+=t=o*(6-s),r[0]+=o}for(var a=0;3!=a;++a)r[a]=Math.round(255*r[a]);return r}(e)))}var yr=6;function xr(e){return Math.floor((e+Math.round(128/yr)/256)*yr)}function kr(e){return Math.floor((e-5)/yr*100+.5)/100}function _r(e){return Math.round((e*yr+5)/yr*256)/256}function Cr(e){return _r(kr(xr(e)))}function Sr(e){var t=Math.abs(e-Cr(e)),n=yr;if(.005<t)for(yr=1;yr<15;++yr)Math.abs(e-Cr(e))<=t&&(t=Math.abs(e-Cr(e)),n=yr);yr=n}function Er(e){e.width?(e.wpx=xr(e.width),e.wch=kr(e.wpx),e.MDW=yr):e.wpx?(e.wch=kr(e.wpx),e.width=_r(e.wch),e.MDW=yr):"number"==typeof e.wch&&(e.width=_r(e.wch),e.wpx=xr(e.width),e.MDW=yr),e.customWidth&&delete e.customWidth}function Tr(e){return 96*e/96}function Ar(e){return 96*e/96}var Or={None:"none",Solid:"solid",Gray50:"mediumGray",Gray75:"darkGray",Gray25:"lightGray",HorzStripe:"darkHorizontal",VertStripe:"darkVertical",ReverseDiagStripe:"darkDown",DiagStripe:"darkUp",DiagCross:"darkGrid",ThickDiagCross:"darkTrellis",ThinHorzStripe:"lightHorizontal",ThinVertStripe:"lightVertical",ThinReverseDiagStripe:"lightDown",ThinHorzCross:"lightGrid"},Lr=["numFmtId","fillId","fontId","borderId","xfId"],$r=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"],Rr=function(){var e=/<(?:\w+:)?numFmts([^>]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/,t=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/,n=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/,i=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/,o=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/;return function(r,s,a){var l,c,u,d,h,f,p,g,m,v,b,w,y,x,k,_,C,S,E={};if(r){if(l=(r=r.replace(/<!--([\s\S]*?)-->/gm,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"")).match(e)){var T=l,A=E,O=a;A.NumberFmt=[];for(var L=xt(Be),$=0;$<L.length;++$)A.NumberFmt[L[$]]=Be[L[$]];var R=T[0].match(Yt);if(R)for($=0;$<R.length;++$){var M=Zt(R[$]);switch(Qt(M[0])){case"<numFmts":case"</numFmts>":case"<numFmts/>":case"<numFmts>":break;case"<numFmt":var I=nn(hn(M.formatCode)),N=parseInt(M.numFmtId,10);if(A.NumberFmt[N]=I,0<N){if(392<N){for(N=392;60<N&&null!=A.NumberFmt[N];--N);A.NumberFmt[N]=I}gt(I,N)}break;case"</numFmt>":break;default:if(O.WTF)throw new Error("unrecognized "+M[0]+" in numFmts")}}}(l=r.match(i))&&(T=l,u=s,d=a,(c=E).Fonts=[],f=!(h={}),(T[0].match(Yt)||[]).forEach((function(e){var t,n=Zt(e);switch(Qt(n[0])){case"<fonts":case"<fonts>":case"</fonts>":break;case"<font":case"<font>":break;case"</font>":case"<font/>":c.Fonts.push(h),h={};break;case"<name":n.val&&(h.name=hn(n.val));break;case"<name/>":case"</name>":break;case"<b":h.bold=n.val?ln(n.val):1;break;case"<b/>":h.bold=1;break;case"<i":h.italic=n.val?ln(n.val):1;break;case"<i/>":h.italic=1;break;case"<u":switch(n.val){case"none":h.underline=0;break;case"single":h.underline=1;break;case"double":h.underline=2;break;case"singleAccounting":h.underline=33;break;case"doubleAccounting":h.underline=34}break;case"<u/>":h.underline=1;break;case"<strike":h.strike=n.val?ln(n.val):1;break;case"<strike/>":h.strike=1;break;case"<outline":h.outline=n.val?ln(n.val):1;break;case"<outline/>":h.outline=1;break;case"<shadow":h.shadow=n.val?ln(n.val):1;break;case"<shadow/>":h.shadow=1;break;case"<condense":h.condense=n.val?ln(n.val):1;break;case"<condense/>":h.condense=1;break;case"<extend":h.extend=n.val?ln(n.val):1;break;case"<extend/>":h.extend=1;break;case"<sz":n.val&&(h.sz=+n.val);break;case"<sz/>":case"</sz>":break;case"<vertAlign":n.val&&(h.vertAlign=n.val);break;case"<vertAlign/>":case"</vertAlign>":break;case"<family":n.val&&(h.family=parseInt(n.val,10));break;case"<family/>":case"</family>":break;case"<scheme":n.val&&(h.scheme=n.val);break;case"<scheme/>":case"</scheme>":break;case"<charset":"1"!=n.val&&(n.codepage=le[parseInt(n.val,10)]);break;case"<color":h.color||(h.color={}),n.auto&&(h.color.auto=ln(n.auto)),n.rgb?h.color.rgb=n.rgb.slice(-6):n.indexed?(h.color.index=parseInt(n.indexed,10),t=zi[h.color.index],t=(t=81==h.color.index?zi[1]:t)||zi[1],h.color.rgb=t[0].toString(16)+t[1].toString(16)+t[2].toString(16)):n.theme&&(h.color.theme=parseInt(n.theme,10),n.tint&&(h.color.tint=parseFloat(n.tint)),n.theme)&&u.themeElements&&u.themeElements.clrScheme&&(h.color.rgb=wr(u.themeElements.clrScheme[h.color.theme].rgb,h.color.tint||0));break;case"<color/>":case"</color>":break;case"<AlternateContent":f=!0;break;case"</AlternateContent>":f=!1;break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":f=!0;break;case"</ext>":f=!1;break;default:if(d&&d.WTF&&!f)throw new Error("unrecognized "+n[0]+" in fonts")}}))),(l=r.match(n))&&(s=l,g=a,(p=E).Fills=[],v=!(m={}),(s[0].match(Yt)||[]).forEach((function(e){var t=Zt(e);switch(Qt(t[0])){case"<fills":case"<fills>":case"</fills>":break;case"<fill>":case"<fill":case"<fill/>":m={},p.Fills.push(m);break;case"</fill>":case"<gradientFill>":break;case"<gradientFill":case"</gradientFill>":p.Fills.push(m),m={};break;case"<patternFill":case"<patternFill>":t.patternType&&(m.patternType=t.patternType);break;case"<patternFill/>":case"</patternFill>":break;case"<bgColor":m.bgColor||(m.bgColor={}),t.indexed&&(m.bgColor.indexed=parseInt(t.indexed,10)),t.theme&&(m.bgColor.theme=parseInt(t.theme,10)),t.tint&&(m.bgColor.tint=parseFloat(t.tint)),t.rgb&&(m.bgColor.rgb=t.rgb.slice(-6));break;case"<bgColor/>":case"</bgColor>":break;case"<fgColor":m.fgColor||(m.fgColor={}),t.theme&&(m.fgColor.theme=parseInt(t.theme,10)),t.tint&&(m.fgColor.tint=parseFloat(t.tint)),null!=t.rgb&&(m.fgColor.rgb=t.rgb.slice(-6));break;case"<fgColor/>":case"</fgColor>":break;case"<stop":case"<stop/>":case"</stop>":break;case"<color":case"<color/>":case"</color>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":v=!0;break;case"</ext>":v=!1;break;default:if(g&&g.WTF&&!v)throw new Error("unrecognized "+t[0]+" in fills")}}))),(l=r.match(o))&&(s=l,w=a,(b=E).Borders=[],x=!(y={}),(s[0].match(Yt)||[]).forEach((function(e){var t=Zt(e);switch(Qt(t[0])){case"<borders":case"<borders>":case"</borders>":break;case"<border":case"<border>":case"<border/>":y={},t.diagonalUp&&(y.diagonalUp=ln(t.diagonalUp)),t.diagonalDown&&(y.diagonalDown=ln(t.diagonalDown)),b.Borders.push(y);break;case"</border>":case"<left/>":break;case"<left":case"<left>":case"</left>":case"<right/>":break;case"<right":case"<right>":case"</right>":case"<top/>":break;case"<top":case"<top>":case"</top>":case"<bottom/>":break;case"<bottom":case"<bottom>":case"</bottom>":break;case"<diagonal":case"<diagonal>":case"<diagonal/>":case"</diagonal>":break;case"<horizontal":case"<horizontal>":case"<horizontal/>":case"</horizontal>":break;case"<vertical":case"<vertical>":case"<vertical/>":case"</vertical>":break;case"<start":case"<start>":case"<start/>":case"</start>":break;case"<end":case"<end>":case"<end/>":case"</end>":break;case"<color":case"<color>":break;case"<color/>":case"</color>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":x=!0;break;case"</ext>":x=!1;break;default:if(w&&w.WTF&&!x)throw new Error("unrecognized "+t[0]+" in borders")}}))),(l=r.match(t))&&(s=l,_=a,S=!((k=E).CellXf=[]),(s[0].match(Yt)||[]).forEach((function(e){var t=Zt(e),n=0;switch(Qt(t[0])){case"<cellXfs":case"<cellXfs>":case"<cellXfs/>":case"</cellXfs>":break;case"<xf":case"<xf/>":for(delete(C=t)[0],n=0;n<Lr.length;++n)C[Lr[n]]&&(C[Lr[n]]=parseInt(C[Lr[n]],10));for(n=0;n<$r.length;++n)C[$r[n]]&&(C[$r[n]]=ln(C[$r[n]]));if(k.NumberFmt&&392<C.numFmtId)for(n=392;60<n;--n)if(k.NumberFmt[C.numFmtId]==k.NumberFmt[n]){C.numFmtId=n;break}k.CellXf.push(C);break;case"</xf>":break;case"<alignment":case"<alignment/>":var i={};t.vertical&&(i.vertical=t.vertical),t.horizontal&&(i.horizontal=t.horizontal),null!=t.textRotation&&(i.textRotation=t.textRotation),t.indent&&(i.indent=t.indent),t.wrapText&&(i.wrapText=ln(t.wrapText)),C.alignment=i;break;case"</alignment>":case"<protection":break;case"</protection>":case"<protection/>":break;case"<AlternateContent":S=!0;break;case"</AlternateContent>":S=!1;break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":S=!0;break;case"</ext>":S=!1;break;default:if(_&&_.WTF&&!S)throw new Error("unrecognized "+t[0]+" in cellXfs")}})))}return E}}(),Mr=oi,Ir=oi,Nr=["</a:lt1>","</a:dk1>","</a:lt2>","</a:dk2>","</a:accent1>","</a:accent2>","</a:accent3>","</a:accent4>","</a:accent5>","</a:accent6>","</a:hlink>","</a:folHlink>"];function Dr(e,t,n){t.themeElements.clrScheme=[];var i={};(e[0].match(Yt)||[]).forEach((function(e){var o=Zt(e);switch(o[0]){case"<a:clrScheme":case"</a:clrScheme>":break;case"<a:srgbClr":i.rgb=o.val;break;case"<a:sysClr":i.rgb=o.lastClr;break;case"<a:dk1>":case"</a:dk1>":case"<a:lt1>":case"</a:lt1>":case"<a:dk2>":case"</a:dk2>":case"<a:lt2>":case"</a:lt2>":case"<a:accent1>":case"</a:accent1>":case"<a:accent2>":case"</a:accent2>":case"<a:accent3>":case"</a:accent3>":case"<a:accent4>":case"</a:accent4>":case"<a:accent5>":case"</a:accent5>":case"<a:accent6>":case"</a:accent6>":case"<a:hlink>":case"</a:hlink>":case"<a:folHlink>":case"</a:folHlink>":"/"===o[0].charAt(1)?(t.themeElements.clrScheme[Nr.indexOf(o[0])]=i,i={}):i.name=o[0].slice(3,o[0].length-1);break;default:if(n&&n.WTF)throw new Error("Unrecognized "+o[0]+" in clrScheme")}}))}function Pr(){}function Fr(){}var qr=/<a:clrScheme([^>]*)>[\s\S]*<\/a:clrScheme>/,Br=/<a:fontScheme([^>]*)>[\s\S]*<\/a:fontScheme>/,jr=/<a:fmtScheme([^>]*)>[\s\S]*<\/a:fmtScheme>/,Wr=/<a:themeElements([^>]*)>[\s\S]*<\/a:themeElements>/;function zr(e,t){e&&0!==e.length||(e=function(e,t){return t&&t.themeXLSX?t.themeXLSX:e&&"string"==typeof e.raw?e.raw:((t=[Gt])[t.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',t[t.length]="<a:themeElements>",t[t.length]='<a:clrScheme name="Office">',t[t.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',t[t.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',t[t.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',t[t.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',t[t.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',t[t.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',t[t.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',t[t.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',t[t.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',t[t.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',t[t.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',t[t.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',t[t.length]="</a:clrScheme>",t[t.length]='<a:fontScheme name="Office">',t[t.length]="<a:majorFont>",t[t.length]='<a:latin typeface="Cambria"/>',t[t.length]='<a:ea typeface=""/>',t[t.length]='<a:cs typeface=""/>',t[t.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',t[t.length]='<a:font script="Hang" typeface="맑은 고딕"/>',t[t.length]='<a:font script="Hans" typeface="宋体"/>',t[t.length]='<a:font script="Hant" typeface="新細明體"/>',t[t.length]='<a:font script="Arab" typeface="Times New Roman"/>',t[t.length]='<a:font script="Hebr" typeface="Times New Roman"/>',t[t.length]='<a:font script="Thai" typeface="Tahoma"/>',t[t.length]='<a:font script="Ethi" typeface="Nyala"/>',t[t.length]='<a:font script="Beng" typeface="Vrinda"/>',t[t.length]='<a:font script="Gujr" typeface="Shruti"/>',t[t.length]='<a:font script="Khmr" typeface="MoolBoran"/>',t[t.length]='<a:font script="Knda" typeface="Tunga"/>',t[t.length]='<a:font script="Guru" typeface="Raavi"/>',t[t.length]='<a:font script="Cans" typeface="Euphemia"/>',t[t.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',t[t.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',t[t.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',t[t.length]='<a:font script="Thaa" typeface="MV Boli"/>',t[t.length]='<a:font script="Deva" typeface="Mangal"/>',t[t.length]='<a:font script="Telu" typeface="Gautami"/>',t[t.length]='<a:font script="Taml" typeface="Latha"/>',t[t.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',t[t.length]='<a:font script="Orya" typeface="Kalinga"/>',t[t.length]='<a:font script="Mlym" typeface="Kartika"/>',t[t.length]='<a:font script="Laoo" typeface="DokChampa"/>',t[t.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',t[t.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',t[t.length]='<a:font script="Viet" typeface="Times New Roman"/>',t[t.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',t[t.length]='<a:font script="Geor" typeface="Sylfaen"/>',t[t.length]="</a:majorFont>",t[t.length]="<a:minorFont>",t[t.length]='<a:latin typeface="Calibri"/>',t[t.length]='<a:ea typeface=""/>',t[t.length]='<a:cs typeface=""/>',t[t.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',t[t.length]='<a:font script="Hang" typeface="맑은 고딕"/>',t[t.length]='<a:font script="Hans" typeface="宋体"/>',t[t.length]='<a:font script="Hant" typeface="新細明體"/>',t[t.length]='<a:font script="Arab" typeface="Arial"/>',t[t.length]='<a:font script="Hebr" typeface="Arial"/>',t[t.length]='<a:font script="Thai" typeface="Tahoma"/>',t[t.length]='<a:font script="Ethi" typeface="Nyala"/>',t[t.length]='<a:font script="Beng" typeface="Vrinda"/>',t[t.length]='<a:font script="Gujr" typeface="Shruti"/>',t[t.length]='<a:font script="Khmr" typeface="DaunPenh"/>',t[t.length]='<a:font script="Knda" typeface="Tunga"/>',t[t.length]='<a:font script="Guru" typeface="Raavi"/>',t[t.length]='<a:font script="Cans" typeface="Euphemia"/>',t[t.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',t[t.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',t[t.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',t[t.length]='<a:font script="Thaa" typeface="MV Boli"/>',t[t.length]='<a:font script="Deva" typeface="Mangal"/>',t[t.length]='<a:font script="Telu" typeface="Gautami"/>',t[t.length]='<a:font script="Taml" typeface="Latha"/>',t[t.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',t[t.length]='<a:font script="Orya" typeface="Kalinga"/>',t[t.length]='<a:font script="Mlym" typeface="Kartika"/>',t[t.length]='<a:font script="Laoo" typeface="DokChampa"/>',t[t.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',t[t.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',t[t.length]='<a:font script="Viet" typeface="Arial"/>',t[t.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',t[t.length]='<a:font script="Geor" typeface="Sylfaen"/>',t[t.length]="</a:minorFont>",t[t.length]="</a:fontScheme>",t[t.length]='<a:fmtScheme name="Office">',t[t.length]="<a:fillStyleLst>",t[t.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',t[t.length]='<a:gradFill rotWithShape="1">',t[t.length]="<a:gsLst>",t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',t[t.length]="</a:gsLst>",t[t.length]='<a:lin ang="16200000" scaled="1"/>',t[t.length]="</a:gradFill>",t[t.length]='<a:gradFill rotWithShape="1">',t[t.length]="<a:gsLst>",t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',t[t.length]="</a:gsLst>",t[t.length]='<a:lin ang="16200000" scaled="0"/>',t[t.length]="</a:gradFill>",t[t.length]="</a:fillStyleLst>",t[t.length]="<a:lnStyleLst>",t[t.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',t[t.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',t[t.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',t[t.length]="</a:lnStyleLst>",t[t.length]="<a:effectStyleLst>",t[t.length]="<a:effectStyle>",t[t.length]="<a:effectLst>",t[t.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',t[t.length]="</a:effectLst>",t[t.length]="</a:effectStyle>",t[t.length]="<a:effectStyle>",t[t.length]="<a:effectLst>",t[t.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',t[t.length]="</a:effectLst>",t[t.length]="</a:effectStyle>",t[t.length]="<a:effectStyle>",t[t.length]="<a:effectLst>",t[t.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',t[t.length]="</a:effectLst>",t[t.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',t[t.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',t[t.length]="</a:effectStyle>",t[t.length]="</a:effectStyleLst>",t[t.length]="<a:bgFillStyleLst>",t[t.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',t[t.length]='<a:gradFill rotWithShape="1">',t[t.length]="<a:gsLst>",t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',t[t.length]="</a:gsLst>",t[t.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',t[t.length]="</a:gradFill>",t[t.length]='<a:gradFill rotWithShape="1">',t[t.length]="<a:gsLst>",t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',t[t.length]="</a:gsLst>",t[t.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',t[t.length]="</a:gradFill>",t[t.length]="</a:bgFillStyleLst>",t[t.length]="</a:fmtScheme>",t[t.length]="</a:themeElements>",t[t.length]="<a:objectDefaults>",t[t.length]="<a:spDef>",t[t.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',t[t.length]="</a:spDef>",t[t.length]="<a:lnDef>",t[t.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',t[t.length]="</a:lnDef>",t[t.length]="</a:objectDefaults>",t[t.length]="<a:extraClrSchemeLst/>",t[t.length]="</a:theme>",t.join(""))}());var n,i,o,r,s,a={};if(n=e.match(Wr))return i=n[0],r=t,(o=a).themeElements={},[["clrScheme",qr,Dr],["fontScheme",Br,Pr],["fmtScheme",jr,Fr]].forEach((function(e){if(!(s=i.match(e[1])))throw new Error(e[0]+" not found in themeElements");e[2](s,o,r)})),a.raw=e,a;throw new Error("themeElements not found in theme")}function Hr(e){var t=e.read_shift(2),n=e.read_shift(2)-4,i=[t];switch(t){case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 13:i[1]=function(e){var t={};switch(t.xclrType=e.read_shift(2),t.nTintShade=e.read_shift(2),t.xclrType){case 0:e.l+=4;break;case 1:t.xclrValue=oi(e,4);break;case 2:t.xclrValue=Co(e);break;case 3:t.xclrValue=e.read_shift(4);break;case 4:e.l+=4}return e.l+=8,t}(e);break;case 6:i[1]=oi(e,n);break;case 14:case 15:i[1]=e.read_shift(1==n?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+t+" "+n)}return i}function Ur(e,t,n,i){var o,r=Array.isArray(e);t.forEach((function(t){var s,a=mi(t.ref),l=((o=r?(e[a.r]||(e[a.r]=[]),e[a.r][a.c]):e[t.ref])||(o={t:"z"},r?e[a.r][a.c]=o:e[t.ref]=o,(s=yi(e["!ref"]||"BDWGO1000001:A1")).s.r>a.r&&(s.s.r=a.r),s.e.r<a.r&&(s.e.r=a.r),s.s.c>a.c&&(s.s.c=a.c),s.e.c<a.c&&(s.e.c=a.c),(a=wi(s))!==e["!ref"]&&(e["!ref"]=a)),o.c||(o.c=[]),{a:t.author,t:t.t,r:t.r,T:n});t.h&&(l.h=t.h);for(var c=o.c.length-1;0<=c;--c){if(!n&&o.c[c].T)return;n&&!o.c[c].T&&o.c.splice(c,1)}if(n&&i)for(c=0;c<i.length;++c)if(l.a==i[c].id){l.a=i[c].name||l.a;break}o.c.push(l)}))}var Vr=Si,Gr=function(){var e,t=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g;function n(t,n,i,o){var r=!1,s=!1;0==i.length?s=!0:"["==i.charAt(0)&&(s=!0,i=i.slice(1,-1)),0==o.length?r=!0:"["==o.charAt(0)&&(r=!0,o=o.slice(1,-1)),i=0<i.length?0|parseInt(i,10):0,o=0<o.length?0|parseInt(o,10):0;return r?o+=e.c:--o,s?i+=e.r:--i,n+(r?"":"$")+gi(o)+(s?"":"$")+fi(i)}return function(i,o){return e=o,i.replace(t,n)}}(),Kr=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,Yr=function(e,t){return e.replace(Kr,(function(e,n,i,o,r,s){return o=pi(o)-(i?0:t.c),n+"R"+(0==(s=hi(s)-(r?0:t.r))?"":r?1+s:"["+s+"]")+"C"+(0==o?"":i?1+o:"["+o+"]")}))};function Xr(e,t){return e.replace(Kr,(function(e,n,i,o,r,s){return n+("$"==i?i+o:gi(pi(o)+t.c))+("$"==r?r+s:fi(hi(s)+t.r))}))}function Jr(e){return e.replace(/_xlfn\./g,"")}function Zr(e){e.l+=1}function Qr(e,t){return[16383&(e=e.read_shift(1==t?1:2)),e>>14&1,e>>15&1]}function es(e,t,n){var i=2;if(n){if(2<=n.biff&&n.biff<=5)return ts(e);12==n.biff&&(i=4)}n=e.read_shift(i),i=e.read_shift(i);var o=Qr(e,2);e=Qr(e,2);return{s:{r:n,c:o[0],cRel:o[1],rRel:o[2]},e:{r:i,c:e[0],cRel:e[1],rRel:e[2]}}}function ts(e){var t=Qr(e,2),n=Qr(e,2),i=e.read_shift(1);e=e.read_shift(1);return{s:{r:t[0],c:i,cRel:t[1],rRel:t[2]},e:{r:n[0],c:e,cRel:n[1],rRel:n[2]}}}function ns(e,t,n){var i,o;return n&&2<=n.biff&&n.biff<=5?(i=Qr(o=e,2),o=o.read_shift(1),{r:i[0],c:o,cRel:i[1],rRel:i[2]}):{r:e.read_shift(n&&12==n.biff?4:2),c:(o=Qr(e,2))[0],cRel:o[1],rRel:o[2]}}function is(e){var t=1&e[e.l+1];return e.l+=4,[t,1]}function os(e){return[e.read_shift(1),e.read_shift(1)]}function rs(e,t,n){var i=0,o=0;12==n.biff?(i=e.read_shift(4),o=e.read_shift(4)):(o=1+e.read_shift(1),i=1+e.read_shift(2)),2<=n.biff&&n.biff<8&&(--i,0==--o)&&(o=256);for(var r=0,s=[];r!=i&&(s[r]=[]);++r)for(var a=0;a!=o;++a)s[r][a]=function(e,t){var n=[e.read_shift(1)];if(12==t)switch(n[0]){case 2:n[0]=4;break;case 4:n[0]=16;break;case 0:n[0]=1;break;case 1:n[0]=2}switch(n[0]){case 4:n[1]=mo(e,1)?"TRUE":"FALSE",12!=t&&(e.l+=7);break;case 37:case 16:n[1]=Hi[e[e.l]],e.l+=12==t?4:8;break;case 0:e.l+=8;break;case 1:n[1]=Di(e);break;case 2:n[1]=ko(e,0,{biff:0<t&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+n[0])}return n}(e,n.biff);return s}function ss(e,t,n){return e.l+=2,[(i=(e=e).read_shift(2),e=e.read_shift(2),{r:i,c:255&e,fQuoted:!!(16384&e),cRel:e>>15,rRel:e>>15})];var i}function as(e){return e.l+=6,[]}function ls(e){return e.l+=2,[vo(e),1&e.read_shift(2)]}var cs=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"],us={1:{n:"PtgExp",f:function(e,t,n){return e.l++,n&&12==n.biff?[e.read_shift(4,"i"),0]:[e.read_shift(2),e.read_shift(n&&2==n.biff?1:2)]}},2:{n:"PtgTbl",f:oi},3:{n:"PtgAdd",f:Zr},4:{n:"PtgSub",f:Zr},5:{n:"PtgMul",f:Zr},6:{n:"PtgDiv",f:Zr},7:{n:"PtgPower",f:Zr},8:{n:"PtgConcat",f:Zr},9:{n:"PtgLt",f:Zr},10:{n:"PtgLe",f:Zr},11:{n:"PtgEq",f:Zr},12:{n:"PtgGe",f:Zr},13:{n:"PtgGt",f:Zr},14:{n:"PtgNe",f:Zr},15:{n:"PtgIsect",f:Zr},16:{n:"PtgUnion",f:Zr},17:{n:"PtgRange",f:Zr},18:{n:"PtgUplus",f:Zr},19:{n:"PtgUminus",f:Zr},20:{n:"PtgPercent",f:Zr},21:{n:"PtgParen",f:Zr},22:{n:"PtgMissArg",f:Zr},23:{n:"PtgStr",f:function(e,t,n){return e.l++,wo(e,0,n)}},26:{n:"PtgSheet",f:function(e,t,n){return e.l+=5,e.l+=2,e.l+=2==n.biff?1:4,["PTGSHEET"]}},27:{n:"PtgEndSheet",f:function(e,t,n){return e.l+=2==n.biff?4:5,["PTGENDSHEET"]}},28:{n:"PtgErr",f:function(e){return e.l++,Hi[e.read_shift(1)]}},29:{n:"PtgBool",f:function(e){return e.l++,0!==e.read_shift(1)}},30:{n:"PtgInt",f:function(e){return e.l++,e.read_shift(2)}},31:{n:"PtgNum",f:function(e){return e.l++,Di(e)}},32:{n:"PtgArray",f:function(e,t,n){var i=(96&e[e.l++])>>5;return e.l+=2==n.biff?6:12==n.biff?14:7,[i]}},33:{n:"PtgFunc",f:function(e,t,n){var i=(96&e[e.l])>>5;e.l+=1,e=e.read_shift(n&&n.biff<=3?1:2);return[As[e],Ts[e],i]}},34:{n:"PtgFuncVar",f:function(e,t,n){var i=e[e.l++];return[e.read_shift(1),(0===(n=n&&n.biff<=3?[88==i?-1:0,e.read_shift(1)]:[e[e.l+1]>>7,32767&e.read_shift(2)])[0]?Ts:Es)[n[1]]]}},35:{n:"PtgName",f:function(e,t,n){var i=e.read_shift(1)>>>5&3,o=!n||8<=n.biff?4:2;o=e.read_shift(o);switch(n.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12}return[i,0,o]}},36:{n:"PtgRef",f:function(e,t,n){var i=(96&e[e.l])>>5;return e.l+=1,[i,ns(e,0,n)]}},37:{n:"PtgArea",f:function(e,t,n){return[(96&e[e.l++])>>5,es(e,2<=n.biff&&n.biff,n)]}},38:{n:"PtgMemArea",f:function(e,t,n){var i=e.read_shift(1)>>>5&3;return e.l+=n&&2==n.biff?3:4,[i,e.read_shift(n&&2==n.biff?1:2)]}},39:{n:"PtgMemErr",f:oi},40:{n:"PtgMemNoMem",f:oi},41:{n:"PtgMemFunc",f:function(e,t,n){return[e.read_shift(1)>>>5&3,e.read_shift(n&&2==n.biff?1:2)]}},42:{n:"PtgRefErr",f:function(e,t,n){var i=e.read_shift(1)>>>5&3;return e.l+=4,n.biff<8&&e.l--,12==n.biff&&(e.l+=2),[i]}},43:{n:"PtgAreaErr",f:function(e,t,n){var i=(96&e[e.l++])>>5;return e.l+=n&&8<n.biff?12:n.biff<8?6:8,[i]}},44:{n:"PtgRefN",f:function(e,t,n){var i=(96&e[e.l])>>5;return e.l+=1,[i,function(e,t){var n,i;if(2<=(t=t&&t.biff?t.biff:8)&&t<=5)return s=(a=e).read_shift(2),a=a.read_shift(1),n=(32768&s)>>15,i=(16384&s)>>14,s&=16383,1==n&&8192<=s&&(s-=16384),1==i&&128<=a&&(a-=256),{r:s,c:a,cRel:i,rRel:n};var o=e.read_shift(12<=t?4:2),r=e.read_shift(2),s=(16384&r)>>14,a=(32768&r)>>15;if(r&=16383,1==a)for(;524287<o;)o-=1048576;if(1==s)for(;8191<r;)r-=16384;return{r:o,c:r,cRel:s,rRel:a}}(e,n)]}},45:{n:"PtgAreaN",f:function(e,t,n){var i,o=(96&e[e.l++])>>5;return e=e,[o,(o=n).biff<8?ts(e):(n=e.read_shift(12==o.biff?4:2),o=e.read_shift(12==o.biff?4:2),i=Qr(e,2),e=Qr(e,2),{s:{r:n,c:i[0],cRel:i[1],rRel:i[2]},e:{r:o,c:e[0],cRel:e[1],rRel:e[2]}})]}},46:{n:"PtgMemAreaN",f:function(e){return[e.read_shift(1)>>>5&3,e.read_shift(2)]}},47:{n:"PtgMemNoMemN",f:function(e){return[e.read_shift(1)>>>5&3,e.read_shift(2)]}},57:{n:"PtgNameX",f:function(e,t,n){var i,o,r;return 5==n.biff?(i=(n=e).read_shift(1)>>>5&3,o=n.read_shift(2,"i"),n.l+=8,r=n.read_shift(2),n.l+=12,[i,o,r]):[e.read_shift(1)>>>5&3,e.read_shift(2),e.read_shift(4)]}},58:{n:"PtgRef3d",f:function(e,t,n){var i=(96&e[e.l])>>5,o=(e.l+=1,e.read_shift(2));return n&&5==n.biff&&(e.l+=12),[i,o,ns(e,0,n)]}},59:{n:"PtgArea3d",f:function(e,t,n){var i=(96&e[e.l++])>>5,o=e.read_shift(2,"i");if(n)switch(n.biff){case 5:e.l+=12}return[i,o,es(e,0,n)]}},60:{n:"PtgRefErr3d",f:function(e,t,n){var i=(96&e[e.l++])>>5,o=e.read_shift(2),r=4;if(n)switch(n.biff){case 5:r=15;break;case 12:r=6}return e.l+=r,[i,o]}},61:{n:"PtgAreaErr3d",f:function(e,t,n){var i=(96&e[e.l++])>>5,o=e.read_shift(2),r=8;if(n)switch(n.biff){case 5:e.l+=12,r=6;break;case 12:r=12}return e.l+=r,[i,o]}},255:{}},ds={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},hs={1:{n:"PtgElfLel",f:ls},2:{n:"PtgElfRw",f:ss},3:{n:"PtgElfCol",f:ss},6:{n:"PtgElfRwV",f:ss},7:{n:"PtgElfColV",f:ss},10:{n:"PtgElfRadical",f:ss},11:{n:"PtgElfRadicalS",f:as},13:{n:"PtgElfColS",f:as},15:{n:"PtgElfColSV",f:as},16:{n:"PtgElfRadicalLel",f:ls},25:{n:"PtgList",f:function(e){e.l+=2;var t=e.read_shift(2),n=e.read_shift(2),i=e.read_shift(4),o=e.read_shift(2);e=e.read_shift(2);return{ixti:t,coltype:3&n,rt:cs[n>>2&31],idx:i,c:o,C:e}}},29:{n:"PtgSxName",f:function(e){return e.l+=2,[e.read_shift(4)]}},255:{}},fs={0:{n:"PtgAttrNoop",f:function(e){return e.l+=4,[0,0]}},1:{n:"PtgAttrSemi",f:function(e,t,n){var i=255&e[e.l+1]?1:0;return e.l+=n&&2==n.biff?3:4,[i]}},2:{n:"PtgAttrIf",f:function(e,t,n){var i=255&e[e.l+1]?1:0;return e.l+=2,[i,e.read_shift(n&&2==n.biff?1:2)]}},4:{n:"PtgAttrChoose",f:function(e,t,n){e.l+=2;for(var i=e.read_shift(n&&2==n.biff?1:2),o=[],r=0;r<=i;++r)o.push(e.read_shift(n&&2==n.biff?1:2));return o}},8:{n:"PtgAttrGoto",f:function(e,t,n){var i=255&e[e.l+1]?1:0;return e.l+=2,[i,e.read_shift(n&&2==n.biff?1:2)]}},16:{n:"PtgAttrSum",f:function(e,t,n){e.l+=n&&2==n.biff?3:4}},32:{n:"PtgAttrBaxcel",f:is},33:{n:"PtgAttrBaxcel",f:is},64:{n:"PtgAttrSpace",f:function(e){return e.read_shift(2),os(e)}},65:{n:"PtgAttrSpaceSemi",f:function(e){return e.read_shift(2),os(e)}},128:{n:"PtgAttrIfError",f:function(e){var t=255&e[e.l+1]?1:0;return e.l+=2,[t,e.read_shift(2)]}},255:{}};function ps(e,t,n,i){if(i.biff<8)return oi(e,t);for(var o=e.l+t,r=[],s=0;s!==n.length;++s)switch(n[s][0]){case"PtgArray":n[s][1]=rs(e,0,i),r.push(n[s][1]);break;case"PtgMemArea":n[s][2]=function(e,t){for(var n=e.read_shift(12==t.biff?4:2),i=[],o=0;o!=n;++o)i.push((12==t.biff?Ni:Ao)(e,8));return i}(e,(n[s][1],i)),r.push(n[s][2]);break;case"PtgExp":i&&12==i.biff&&(n[s][1][1]=e.read_shift(4),r.push(n[s][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+n[s][0]}return 0!=(t=o-e.l)&&r.push(oi(e,t)),r}function gs(e,t,n){for(var i,o,r=e.l+t,s=[];r!=e.l;)t=r-e.l,o=e[e.l],i=us[o]||us[ds[o]],(i=24!==o&&25!==o?i:(24===o?hs:fs)[e[e.l+1]])&&i.f?s.push([i.n,i.f(e,t,n)]):oi(e,t);return s}var ms={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function vs(e,t,n){if(!e)return"SH33TJSERR0";if(8<n.biff&&(!e.XTI||!e.XTI[t]))return e.SheetNames[t];if(!e.XTI)return"SH33TJSERR6";var i=e.XTI[t];if(n.biff<8)return 1e4<t&&(t-=65536),0==(t=t<0?-t:t)?"":e.XTI[t-1];if(!i)return"SH33TJSERR1";var o="";if(8<n.biff)switch(e[i[0]][0]){case 357:return o=-1==i[1]?"#REF":e.SheetNames[i[1]],i[1]==i[2]?o:o+":"+e.SheetNames[i[2]];case 358:return null!=n.SID?e.SheetNames[n.SID]:"SH33TJSSAME"+e[i[0]][0];default:return"SH33TJSSRC"+e[i[0]][0]}switch(e[i[0]][0][0]){case 1025:return o=-1==i[1]?"#REF":e.SheetNames[i[1]]||"SH33TJSERR3",i[1]==i[2]?o:o+":"+e.SheetNames[i[2]];case 14849:return e[i[0]].slice(1).map((function(e){return e.Name})).join(";;");default:return e[i[0]][0][3]?(o=-1==i[1]?"#REF":e[i[0]][0][3][i[1]]||"SH33TJSERR4",i[1]==i[2]?o:o+":"+e[i[0]][0][3][i[2]]):"SH33TJSERR2"}}function bs(e,t,n){if("#REF"==(e=vs(e,t,n)))return e;if(t=e,e=n,t||e&&e.biff<=5&&2<=e.biff)return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(t)?"'"+t+"'":t;throw new Error("empty sheet name")}function ws(e,t,n,i,o){var r,s,a=o&&o.biff||8,l={s:{c:0,r:0},e:{c:0,r:0}},c=[],u=0,d=0,h="";if(!e[0]||!e[0][0])return"";for(var f=-1,p="",g=0,m=e[0].length;g<m;++g){switch((O=e[0][g])[0]){case"PtgUminus":c.push("-"+c.pop());break;case"PtgUplus":c.push("+"+c.pop());break;case"PtgPercent":c.push(c.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(A=c.pop(),r=c.pop(),0<=f){switch(e[0][f][1][0]){case 0:p=Mt(" ",e[0][f][1][1]);break;case 1:p=Mt("\r",e[0][f][1][1]);break;default:if(p="",o.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][f][1][0])}r+=p,f=-1}c.push(r+ms[O[0]]+A);break;case"PtgIsect":A=c.pop(),r=c.pop(),c.push(r+" "+A);break;case"PtgUnion":A=c.pop(),r=c.pop(),c.push(r+","+A);break;case"PtgRange":A=c.pop(),r=c.pop(),c.push(r+":"+A);break;case"PtgAttrChoose":case"PtgAttrGoto":case"PtgAttrIf":case"PtgAttrIfError":break;case"PtgRef":v=li(O[1][1],l,o),c.push(ui(v,a));break;case"PtgRefN":v=n?li(O[1][1],n,o):O[1][1],c.push(ui(v,a));break;case"PtgRef3d":u=O[1][1];var v=li(O[1][2],l,o);h=bs(i,u,o),c.push(h+"!"+ui(v,a));break;case"PtgFunc":case"PtgFuncVar":var b=O[1][0],w=O[1][1],y=(b=b||0,0==(b&=127)?[]:c.slice(-b));c.length-=b,"User"===w&&(w=y.shift()),c.push(w+"("+y.join(",")+")");break;case"PtgBool":c.push(O[1]?"TRUE":"FALSE");break;case"PtgInt":c.push(O[1]);break;case"PtgNum":c.push(String(O[1]));break;case"PtgStr":c.push('"'+O[1].replace(/"/g,'""')+'"');break;case"PtgErr":c.push(O[1]);break;case"PtgAreaN":s=ci(O[1][1],n?{s:n}:l,o),c.push(di(s,o));break;case"PtgArea":s=ci(O[1][1],l,o),c.push(di(s,o));break;case"PtgArea3d":u=O[1][1],s=O[1][2],h=bs(i,u,o),c.push(h+"!"+di(s,o));break;case"PtgAttrSum":c.push("SUM("+c.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":d=O[1][2],(w=(b=(i.names||[])[d-1]||(i[0]||[])[d])?b.Name:"SH33TJSNAME"+String(d))&&"_xlfn."==w.slice(0,6)&&!o.xlfn&&(w=w.slice(6)),c.push(w);break;case"PtgNameX":var x,k;y=O[1][1];d=O[1][2],o.biff<=5?(i[y=y<0?-y:y]&&(x=i[y][d]),c.push((x=x||{Name:"SH33TJSERRY"}).Name)):(k="",14849!=((i[y]||[])[0]||[])[0]&&(1025==((i[y]||[])[0]||[])[0]?i[y][d]&&0<i[y][d].itab&&(k=i.SheetNames[i[y][d].itab-1]+"!"):k=i.SheetNames[d-1]+"!"),i[y]&&i[y][d]?k+=i[y][d].Name:i[0]&&i[0][d]?k+=i[0][d].Name:(E=(vs(i,y,o)||"").split(";;"))[d-1]?k=E[d-1]:k+="SH33TJSERRX",c.push(k));break;case"PtgParen":var _="(",C=")";if(0<=f){switch(p="",e[0][f][1][0]){case 2:_=Mt(" ",e[0][f][1][1])+_;break;case 3:_=Mt("\r",e[0][f][1][1])+_;break;case 4:C=Mt(" ",e[0][f][1][1])+C;break;case 5:C=Mt("\r",e[0][f][1][1])+C;break;default:if(o.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][f][1][0])}f=-1}c.push(_+c.pop()+C);break;case"PtgRefErr":case"PtgRefErr3d":c.push("#REF!");break;case"PtgExp":v={c:O[1][1],r:O[1][0]};var S={c:n.c,r:n.r};if(i.sharedf[vi(v)]){var E=i.sharedf[vi(v)];c.push(ws(E,0,S,i,o))}else{for(var T=!1,A=0;A!=i.arrayf.length;++A)if(r=i.arrayf[A],!(v.c<r[0].s.c||v.c>r[0].e.c||v.r<r[0].s.r||v.r>r[0].e.r)){c.push(ws(r[1],0,S,i,o)),T=!0;break}T||c.push(O[1])}break;case"PtgArray":c.push("{"+function(e){for(var t=[],n=0;n<e.length;++n){for(var i=e[n],o=[],r=0;r<i.length;++r){var s=i[r];s?2===s[0]?o.push('"'+s[1].replace(/"/g,'""')+'"'):o.push(s[1]):o.push("")}t.push(o.join(","))}return t.join(";")}(O[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":f=g;break;case"PtgTbl":case"PtgMemErr":break;case"PtgMissArg":c.push("");break;case"PtgAreaErr":case"PtgAreaErr3d":c.push("#REF!");break;case"PtgList":c.push("Table"+O[1].idx+"[#"+O[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":case"PtgMemFunc":case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");default:throw new Error("Unrecognized Formula Token: "+String(O))}if(3!=o.biff&&0<=f&&-1==["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"].indexOf(e[0][g][0])){var O,L=!0;switch((O=e[0][f])[1][0]){case 4:L=!1;case 0:p=Mt(" ",O[1][1]);break;case 5:L=!1;case 1:p=Mt("\r",O[1][1]);break;default:if(p="",o.WTF)throw new Error("Unexpected PtgAttrSpaceType "+O[1][0])}c.push((L?p:"")+c.pop()+(L?"":p)),f=-1}}if(1<c.length&&o.WTF)throw new Error("bad formula stack");return c[0]}function ys(e,t,n){t=e.l+t;var i,o,r,s,a,l=Eo(e),c=(2==n.biff&&++e.l,function(e){var t;if(65535!==Kn(e,e.l+6))return[Di(e),"n"];switch(e[e.l]){case 0:return e.l+=8,["String","s"];case 1:return t=1===e[e.l+2],e.l+=8,[t,"b"];case 2:return t=e[e.l+2],e.l+=8,[t,"e"];case 3:return e.l+=8,["","s"]}return[]}(e)),u=e.read_shift(1);2!=n.biff&&(e.read_shift(1),5<=n.biff)&&e.read_shift(4),e=t-(t=e).l,n=n,r=t.l+e,s=2==n.biff?1:2,e=65535==(a=t.read_shift(s))?[[],oi(t,e-2)]:(o=gs(t,a,n),e!==a+s&&(i=ps(t,e-a-s,o,n)),t.l=r,[o,i]);return{cell:l,val:c[0],formula:e,shared:u>>3&1,tt:c[1]}}function xs(e,t,n){var i=e.read_shift(4),o=(i=gs(e,i,n),e.read_shift(4));return[i,0<o?ps(e,o,i,n):null]}var ks=xs,_s=xs,Cs=xs,Ss=xs,Es={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},Ts={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},As={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function Os(e){return(e=(e=(e=(e=61==(e="of:"==e.slice(0,3)?e.slice(3):e).charCodeAt(0)&&61==(e=e.slice(1)).charCodeAt(0)?e.slice(1):e).replace(/COM\.MICROSOFT\./g,"")).replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,(function(e,t){return t.replace(/\./g,"")}))).replace(/\[.(#[A-Z]*[?!])\]/g,"$1")).replace(/[;~]/g,",").replace(/\|/g,";")}function Ls(e){return[(e=e.split(":"))[0].split(".")[0],e[0].split(".")[1]+(1<e.length?":"+(e[1].split(".")[1]||e[1].split(".")[0]):"")]}var $s={},Rs={};function Ms(e,t){e&&(t="xlml"==t?[1,1,1,1,.5,.5]:[.7,.7,.75,.75,.3,.3],null==e.left&&(e.left=t[0]),null==e.right&&(e.right=t[1]),null==e.top&&(e.top=t[2]),null==e.bottom&&(e.bottom=t[3]),null==e.header&&(e.header=t[4]),null==e.footer)&&(e.footer=t[5])}function Is(e,t,n,i,o,r){try{i.cellNF&&(e.z=Be[t])}catch(e){if(i.WTF)throw e}if("z"!==e.t||i.cellStyles){if("d"===e.t&&"string"==typeof e.v&&(e.v=Lt(e.v)),(!i||!1!==i.cellText)&&"z"!==e.t)try{if(null==Be[t]&&gt(vt[t]||"General",t),"e"===e.t)e.w=e.w||Hi[e.v];else if(0===t)if("n"===e.t)(0|e.v)===e.v?e.w=e.v.toString(10):e.w=Xe(e.v);else if("d"===e.t){var s=Ct(e.v);e.w=(0|s)===s?s.toString(10):Xe(s)}else{if(void 0===e.v)return;e.w=Je(e.v,Rs)}else"d"===e.t?e.w=pt(t,Ct(e.v),Rs):e.w=pt(t,e.v,Rs)}catch(e){if(i.WTF)throw e}if(i.cellStyles&&null!=n)try{e.s=r.Fills[n],e.s.fgColor&&e.s.fgColor.theme&&!e.s.fgColor.rgb&&(e.s.fgColor.rgb=wr(o.themeElements.clrScheme[e.s.fgColor.theme].rgb,e.s.fgColor.tint||0),i.WTF)&&(e.s.fgColor.raw_rgb=o.themeElements.clrScheme[e.s.fgColor.theme].rgb),e.s.bgColor&&e.s.bgColor.theme&&(e.s.bgColor.rgb=wr(o.themeElements.clrScheme[e.s.bgColor.theme].rgb,e.s.bgColor.tint||0),i.WTF)&&(e.s.bgColor.raw_rgb=o.themeElements.clrScheme[e.s.bgColor.theme].rgb)}catch(e){if(i.WTF&&r.Fills)throw e}}}var Ns=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g,Ds=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,Ps=/<(?:\w:)?hyperlink [^>]*>/gm,Fs=/"(\w*:\w*)"/,qs=/<(?:\w:)?col\b[^>]*[\/]?>/g,Bs=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,js=/<(?:\w:)?pageMargins[^>]*\/>/g,Ws=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,zs=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,Hs=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function Us(e,t,n,i){e=Zt(e),n.Sheets[i]||(n.Sheets[i]={}),e.codeName&&(n.Sheets[i].CodeName=nn(hn(e.codeName)))}var Vs=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/?>/,Gs=function(){var e=/<(?:\w+:)?c[ \/>]/,t=/<\/(?:\w+:)?row>/,n=/r=["']([^"']*)["']/,i=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,o=/ref=["']([^"']*)["']/,r=pn("v"),s=pn("f");return function(a,l,c,u,d,h){for(var f,p,g,m,v=0,b="",w=[],y=[],x=0,k=0,_="",C=0,S=0,E=0,T=0,A=Array.isArray(h.CellXf),O=[],L=[],$=Array.isArray(l),R=[],M={},I=!1,N=!!c.sheetStubs,D=a.split(t),P=0,F=D.length;P!=F;++P){var q=(b=D[P].trim()).length;if(0!==q){var B=0;e:for(v=0;v<q;++v)switch(b[v]){case">":if("/"!=b[v-1]){++v;break e}if(c&&c.cellStyles){if(C=null!=(g=Zt(b.slice(B,v),!0)).r?parseInt(g.r,10):C+1,S=-1,c.sheetRows&&c.sheetRows<C)continue;I=!(M={}),g.ht&&(I=!0,M.hpt=parseFloat(g.ht),M.hpx=Ar(M.hpt)),"1"==g.hidden&&(M.hidden=I=!0),null!=g.outlineLevel&&(I=!0,M.level=+g.outlineLevel),I&&(R[C-1]=M)}break;case"<":B=v}if(v<=B)break;if(C=null!=(g=Zt(b.slice(B,v),!0)).r?parseInt(g.r,10):C+1,S=-1,!(c.sheetRows&&c.sheetRows<C)){u.s.r>C-1&&(u.s.r=C-1),u.e.r<C-1&&(u.e.r=C-1),c&&c.cellStyles&&(I=!(M={}),g.ht&&(I=!0,M.hpt=parseFloat(g.ht),M.hpx=Ar(M.hpt)),"1"==g.hidden&&(M.hidden=I=!0),null!=g.outlineLevel&&(I=!0,M.level=+g.outlineLevel),I)&&(R[C-1]=M);w=b.slice(v).split(e);for(var j=0;j!=w.length&&"<"==w[j].trim().charAt(0);++j);for(w=w.slice(j),v=0;v!=w.length;++v)if(0!==(b=w[v].trim()).length){if(y=b.match(n),x=v,b="<c "+("<"==b.slice(k=0,1)?">":"")+b,null!=y&&2===y.length){for(_=y[1],k=x=0;k!=_.length&&!((f=_.charCodeAt(k)-64)<1||26<f);++k)x=26*x+f;S=--x}else++S;for(k=0;k!=b.length&&62!==b.charCodeAt(k);++k);if(++k,(g=Zt(b.slice(0,k),!0)).r||(g.r=vi({r:C-1,c:S})),p={t:""},null!=(y=(_=b.slice(k)).match(r))&&""!==y[1]&&(p.v=nn(y[1])),c.cellFormula){null!=(y=_.match(s))&&""!==y[1]?(p.f=nn(hn(y[1])).replace(/\r\n/g,"\n"),c.xlfn||(p.f=Jr(p.f)),-1<y[0].indexOf('t="array"')?(p.F=(_.match(o)||[])[1],-1<p.F.indexOf(":")&&O.push([yi(p.F),p.F])):-1<y[0].indexOf('t="shared"')&&(W=Zt(y[0]),z=nn(hn(y[1])),c.xlfn||(z=Jr(z)),L[parseInt(W.si,10)]=[W,z,g.r])):(y=_.match(/<f[^>]*\/>/))&&L[(W=Zt(y[0])).si]&&(p.f=(z=L[W.si][1],U=L[W.si][2],G=g.r,U=bi(U).s,Xr(z,{r:(G=mi(G)).r-U.r,c:G.c-U.c})));var W,z,H=mi(g.r);for(k=0;k<O.length;++k)H.r>=O[k][0].s.r&&H.r<=O[k][0].e.r&&H.c>=O[k][0].s.c&&H.c<=O[k][0].e.c&&(p.F=O[k][1])}if(null==g.t&&void 0===p.v)if(p.f||p.F)p.v=0,p.t="n";else{if(!N)continue;p.t="z"}else p.t=g.t||"n";switch(u.s.c>S&&(u.s.c=S),u.e.c<S&&(u.e.c=S),p.t){case"n":if(""==p.v||null==p.v){if(!N)continue;p.t="z"}else p.v=parseFloat(p.v);break;case"s":if(void 0===p.v){if(!N)continue;p.t="z"}else m=$s[parseInt(p.v,10)],p.v=m.t,p.r=m.r,c.cellHTML&&(p.h=m.h);break;case"str":p.t="s",p.v=null!=p.v?hn(p.v):"",c.cellHTML&&(p.h=sn(p.v));break;case"inlineStr":y=_.match(i),p.t="s",null!=y&&(m=lr(y[1]))?(p.v=m.t,c.cellHTML&&(p.h=m.h)):p.v="";break;case"b":p.v=ln(p.v);break;case"d":c.cellDates?p.v=Lt(p.v,1):(p.v=Ct(Lt(p.v,1)),p.t="n");break;case"e":c&&!1===c.cellText||(p.w=p.v),p.v=Ui[p.v]}var U,V,G;E=T=0;A&&void 0!==g.s&&null!=(G=h.CellXf[g.s])&&(null!=G.numFmtId&&(E=G.numFmtId),c.cellStyles)&&null!=G.fillId&&(T=G.fillId),Is(p,E,T,c,d,h),c.cellDates&&A&&"n"==p.t&&dt(Be[E])&&(p.t="d",p.v=Tt(p.v)),g.cm&&c.xlmeta&&(U=(c.xlmeta.Cell||[])[+g.cm-1])&&"XLDAPR"==U.type&&(p.D=!0),$?(l[(V=mi(g.r)).r]||(l[V.r]=[]),l[V.r][V.c]=p):l[g.r]=p}}}}0<R.length&&(l["!rows"]=R)}}();function Ks(e){return[Ai(e),Di(e),"n"]}var Ys=["left","right","top","bottom","header","footer"];var Xs=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]],Js=[["activeTab",0,"int"],["autoFilterDateGrouping",!0,"bool"],["firstSheet",0,"int"],["minimized",!1,"bool"],["showHorizontalScroll",!0,"bool"],["showSheetTabs",!0,"bool"],["showVerticalScroll",!0,"bool"],["tabRatio",600,"int"],["visibility","visible"]],Zs=[],Qs=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function ea(e,t){for(var n=0;n!=e.length;++n)for(var i=e[n],o=0;o!=t.length;++o){var r=t[o];if(null==i[r[0]])i[r[0]]=r[1];else switch(r[2]){case"bool":"string"==typeof i[r[0]]&&(i[r[0]]=ln(i[r[0]]));break;case"int":"string"==typeof i[r[0]]&&(i[r[0]]=parseInt(i[r[0]],10))}}}function ta(e,t){for(var n=0;n!=t.length;++n){var i=t[n];if(null==e[i[0]])e[i[0]]=i[1];else switch(i[2]){case"bool":"string"==typeof e[i[0]]&&(e[i[0]]=ln(e[i[0]]));break;case"int":"string"==typeof e[i[0]]&&(e[i[0]]=parseInt(e[i[0]],10))}}}function na(e){ta(e.WBProps,Xs),ta(e.CalcPr,Qs),ea(e.WBView,Js),ea(e.Sheets,Zs),Rs.date1904=ln(e.WBProps.date1904)}var ia="][*?/\\".split("");var oa=/<\w+:workbook/;function ra(e,t){var n={};return e.read_shift(4),n.ArchID=e.read_shift(4),e.l+=t-8,n}function sa(e,t,n,i,o,r,s,a){if(".bin"!==t.slice(-4))return function(e,t,n,i,o,r,s){if(!e)return e;i=i||{"!id":{}};var a,l,c=t.dense?[]:{},u={s:{r:2e6,c:2e6},e:{r:0,c:0}},d="",h="",f=e.match(Ds),p=((e=(f?(d=e.slice(0,f.index),h=e.slice(f.index+f[0].length)):d=h=e,d.match(Ws)))?Us(e[0],0,o,n):(e=d.match(zs))&&(a=e[0],e[1],e=c,l=o,n=n,Us(a.slice(0,a.indexOf(">")),0,l,n)),(d.match(/<(?:\w*:)?dimension/)||{index:-1}).index);if((n=(0<p&&(a=d.slice(p,p+50).match(Fs))&&(e=c,(l=yi(l=a[1])).s.r<=l.e.r)&&l.s.c<=l.e.c&&0<=l.s.r&&0<=l.s.c&&(e["!ref"]=wi(l)),d.match(Hs)))&&n[1]){e=n[1];var g=o;g.Views||(g.Views=[{}]),(e.match(Vs)||[]).forEach((function(e,t){e=Zt(e),g.Views[t]||(g.Views[t]={}),+e.zoomScale&&(g.Views[t].zoom=+e.zoomScale),ln(e.rightToLeft)&&(g.Views[t].RTL=!0)}))}if(n=[],t.cellStyles&&(o=d.match(qs)))for(var m=n,v=o,b=!1,w=0;w!=v.length;++w){var y=Zt(v[w],!0),x=(y.hidden&&(y.hidden=ln(y.hidden)),parseInt(y.min,10)-1),k=parseInt(y.max,10)-1;for(y.outlineLevel&&(y.level=+y.outlineLevel||0),delete y.min,delete y.max,y.width=+y.width,!b&&y.width&&(b=!0,Sr(y.width)),Er(y);x<=k;)m[x++]=Rt(y)}f&&Gs(f[1],c,t,u,r,s);var _,C,S=((e=h.match(Bs))&&(c["!autofilter"]={ref:(e[0].match(/ref="([^"]*)"/)||[])[1]}),[]),E=h.match(Ns);if(E)for(p=0;p!=E.length;++p)S[p]=yi(E[p].slice(E[p].indexOf('"')+1));return(o=((d=h.match(Ps))&&function(e,t,n){for(var i=Array.isArray(e),o=0;o!=t.length;++o){var r=Zt(hn(t[o]),!0);if(!r.ref)return;for(var s=((n||{})["!id"]||[])[r.id],a=(s?(r.Target=s.Target,r.location&&(r.Target+="#"+nn(r.location))):(r.Target="#"+nn(r.location),s={Target:r.Target,TargetMode:"Internal"}),r.Rel=s,r.tooltip&&(r.Tooltip=r.tooltip,delete r.tooltip),yi(r.ref)),l=a.s.r;l<=a.e.r;++l)for(var c=a.s.c;c<=a.e.c;++c){var u=vi({c:c,r:l});i?(e[l]||(e[l]=[]),e[l][c]||(e[l][c]={t:"z",v:void 0}),e[l][c].l=r):(e[u]||(e[u]={t:"z",v:void 0}),e[u].l=r)}}}(c,d,i),h.match(js)))&&(c["!margins"]=(_=Zt(o[0]),C={},["left","right","top","bottom","header","footer"].forEach((function(e){_[e]&&(C[e]=parseFloat(_[e]))})),C)),!c["!ref"]&&u.e.c>=u.s.c&&u.e.r>=u.s.r&&(c["!ref"]=wi(u)),0<t.sheetRows&&c["!ref"]&&(f=yi(c["!ref"]),t.sheetRows<=+f.e.r)&&(f.e.r=t.sheetRows-1,f.e.r>u.e.r&&(f.e.r=u.e.r),f.e.r<f.s.r&&(f.s.r=f.e.r),f.e.c>u.e.c&&(f.e.c=u.e.c),f.e.c<f.s.c&&(f.s.c=f.e.c),c["!fullref"]=c["!ref"],c["!ref"]=wi(f)),0<n.length&&(c["!cols"]=n),0<S.length&&(c["!merges"]=S),c}(e,i,n,o,r,s,a);var l=n,c=o,u=r,d=s,h=a;if(!(t=e))return t;var f,p,g,m,v,b,w,y,x,k,_=(e=i)||{},C=(c=c||{"!id":{}},_.dense?[]:{}),S={s:{r:2e6,c:2e6},e:{r:0,c:0}},E=[],T=!1,A=!1,O=[],L=(_.biff=12,_["!row"]=0),$=!1,R=[],M={},I=_.supbooks||u.supbooks||[[]];if(I.sharedf=M,I.arrayf=R,I.SheetNames=u.SheetNames||u.Sheets.map((function(e){return e.name})),!_.supbooks&&(_.supbooks=I,u.Names))for(var N=0;N<u.Names.length;++N)I[0][N+1]=u.Names[N];var D,P=[],F=[],q=!1;return ya[16]={n:"BrtShortReal",f:Ks},si(t,(function(e,t,n){if(!A)switch(n){case 148:f=e;break;case 0:p=e,_.sheetRows&&_.sheetRows<=p.r&&(A=!0),x=fi(v=p.r),_["!row"]=p.r,(e.hidden||e.hpt||null!=e.level)&&(e.hpt&&(e.hpx=Ar(e.hpt)),F[e.r]=e);break;case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 13:case 14:case 15:case 16:case 17:case 18:case 62:switch(g={t:e[2]},e[2]){case"n":g.v=e[1];break;case"s":y=$s[e[1]],g.v=y.t,g.r=y.r;break;case"b":g.v=!!e[1];break;case"e":g.v=e[1],!1!==_.cellText&&(g.w=Hi[g.v]);break;case"str":g.t="s",g.v=e[1];break;case"is":g.t="s",g.v=e[1].t}if((m=h.CellXf[e[0].iStyleRef])&&Is(g,m.numFmtId,null,_,d,h),b=-1==e[0].c?b+1:e[0].c,_.dense?(C[v]||(C[v]=[]),C[v][b]=g):C[gi(b)+x]=g,_.cellFormula){for($=!1,L=0;L<R.length;++L){var i=R[L];p.r>=i[0].s.r&&p.r<=i[0].e.r&&b>=i[0].s.c&&b<=i[0].e.c&&(g.F=wi(i[0]),$=!0)}!$&&3<e.length&&(g.f=e[3])}S.s.r>p.r&&(S.s.r=p.r),S.s.c>b&&(S.s.c=b),S.e.r<p.r&&(S.e.r=p.r),S.e.c<b&&(S.e.c=b),_.cellDates&&m&&"n"==g.t&&dt(Be[m.numFmtId])&&(o=He(g.v))&&(g.t="d",g.v=new Date(o.y,o.m-1,o.d,o.H,o.M,o.S,o.u)),D&&("XLDAPR"==D.type&&(g.D=!0),D=void 0);break;case 1:case 12:_.sheetStubs&&!T&&(g={t:"z",v:void 0},b=-1==e[0].c?b+1:e[0].c,_.dense?(C[v]||(C[v]=[]),C[v][b]=g):C[gi(b)+x]=g,S.s.r>p.r&&(S.s.r=p.r),S.s.c>b&&(S.s.c=b),S.e.r<p.r&&(S.e.r=p.r),S.e.c<b&&(S.e.c=b),D&&("XLDAPR"==D.type&&(g.D=!0),D=void 0));break;case 176:O.push(e);break;case 49:D=((_.xlmeta||{}).Cell||[])[e-1];break;case 494:var o=c["!id"][e.relId];for(o?(e.Target=o.Target,e.loc&&(e.Target+="#"+e.loc),e.Rel=o):""==e.relId&&(e.Target="#"+e.loc),v=e.rfx.s.r;v<=e.rfx.e.r;++v)for(b=e.rfx.s.c;b<=e.rfx.e.c;++b)_.dense?(C[v]||(C[v]=[]),C[v][b]||(C[v][b]={t:"z",v:void 0}),C[v][b].l=e):(w=vi({c:b,r:v}),C[w]||(C[w]={t:"z",v:void 0}),C[w].l=e);break;case 426:_.cellFormula&&(R.push(e),(k=_.dense?C[v][b]:C[gi(b)+x]).f=ws(e[1],0,{r:p.r,c:b},I,_),k.F=wi(e[0]));break;case 427:_.cellFormula&&(M[vi(e[0].s)]=e[1],(k=_.dense?C[v][b]:C[gi(b)+x]).f=ws(e[1],0,{r:p.r,c:b},I,_));break;case 60:if(_.cellStyles)for(;e.e>=e.s;)P[e.e--]={width:e.w/256,hidden:!!(1&e.flags),level:e.level},q||(q=!0,Sr(e.w/256)),Er(P[e.e+1]);break;case 161:C["!autofilter"]={ref:wi(e)};break;case 476:C["!margins"]=e;break;case 147:u.Sheets[l]||(u.Sheets[l]={}),e.name&&(u.Sheets[l].CodeName=e.name),(e.above||e.left)&&(C["!outline"]={above:e.above,left:e.left});break;case 137:u.Views||(u.Views=[{}]),u.Views[0]||(u.Views[0]={}),e.RTL&&(u.Views[0].RTL=!0);break;case 485:break;case 64:case 1053:case 151:break;case 152:case 175:case 644:case 625:case 562:case 396:case 1112:case 1146:case 471:case 1050:case 649:case 1105:case 589:case 607:case 564:case 1055:case 168:case 174:case 1180:case 499:case 507:case 550:case 171:case 167:case 1177:case 169:case 1181:case 551:case 552:case 661:case 639:case 478:case 537:case 477:case 536:case 1103:case 680:case 1104:case 1024:case 663:case 535:case 678:case 504:case 1043:case 428:case 170:case 3072:case 50:case 2070:case 1045:break;case 35:T=!0;break;case 36:T=!1;break;case 37:E.push(n),T=!0;break;case 38:E.pop(),T=!1;break;default:if(!t.T&&(!T||_.WTF))throw new Error("Unexpected record 0x"+n.toString(16))}}),_),delete _.supbooks,delete _["!row"],!C["!ref"]&&(S.s.r<2e6||f&&(0<f.e.r||0<f.e.c||0<f.s.r||0<f.s.c))&&(C["!ref"]=wi(f||S)),_.sheetRows&&C["!ref"]&&(e=yi(C["!ref"]),_.sheetRows<=+e.e.r)&&(e.e.r=_.sheetRows-1,e.e.r>S.e.r&&(e.e.r=S.e.r),e.e.r<e.s.r&&(e.s.r=e.e.r),e.e.c>S.e.c&&(e.e.c=S.e.c),e.e.c<e.s.c&&(e.s.c=e.e.c),C["!fullref"]=C["!ref"],C["!ref"]=wi(e)),0<O.length&&(C["!merges"]=O),0<P.length&&(C["!cols"]=P),0<F.length&&(C["!rows"]=F),C}var aa,la=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g,ca=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;function ua(e,t){var n=e.split(/\s+/),i=[];if(t||(i[0]=n[0]),1!==n.length){var o,r,s,a=e.match(la);if(a)for(s=0;s!=a.length;++s)-1===(r=(o=a[s].match(ca))[1].indexOf(":"))?i[o[1]]=o[2].slice(1,o[2].length-1):i["xmlns:"===o[1].slice(0,6)?"xmlns"+o[1].slice(6):o[1].slice(r+1)]=o[2].slice(1,o[2].length-1)}return i}function da(e,t,n){if("z"!==e.t){if(!n||!1!==n.cellText)try{"e"===e.t?e.w=e.w||Hi[e.v]:"General"===t?"n"===e.t?(0|e.v)===e.v?e.w=e.v.toString(10):e.w=Xe(e.v):e.w=Je(e.v):e.w=(i=t||"General",o=e.v,"General"===(i=aa[i]||nn(i))?Je(o):pt(i,o))}catch(e){if(n.WTF)throw e}var i,o;try{var r,s=aa[t]||t||"General";n.cellNF&&(e.z=s),n.cellDates&&"n"==e.t&&dt(s)&&(r=He(e.v))&&(e.t="d",e.v=new Date(r.y,r.m-1,r.d,r.H,r.M,r.S,r.u))}catch(e){if(n.WTF)throw e}}}function ha(e,t){var n,i=t||{},o=(mt(),ge(kn(e))),r=(o="binary"!=i.type&&"array"!=i.type&&"base64"!=i.type?o:hn(o)).slice(0,1024).toLowerCase(),s=!1;if((1023&(r=r.replace(/".*?"/g,"")).indexOf(">"))>Math.min(1023&r.indexOf(","),1023&r.indexOf(";")))return(t=Rt(i)).type="string",tr.to_workbook(o,t);if(-1==r.indexOf("<?xml")&&["html","table","head","meta","script","style","div"].forEach((function(e){0<=r.indexOf("<"+e)&&(s=!0)})),s){var a,l=i;if((e=(e=o).match(/<table[\s\S]*?>[\s\S]*?<\/table>/gi))&&0!=e.length)return 1==e.length?ki(_a(e[0],l),l):(a={SheetNames:[],Sheets:{}},e.forEach((function(e,t){ll(a,_a(e,l),"Sheet"+(t+1))})),a);throw new Error("Invalid HTML: could not find <table>")}aa={"General Number":"General","General Date":Be[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":Be[15],"Short Date":Be[14],"Long Time":Be[19],"Medium Time":Be[18],"Short Time":Be[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:Be[2],Standard:Be[4],Percent:Be[10],Scientific:Be[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};for(var c,u,d,h,f,p,g,m=[],v={},b=[],w=i.dense?[]:{},y="",x={},k={},_=ua('<Data ss:Type="String">'),C=0,S=0,E=0,T={s:{r:2e6,c:2e6},e:{r:0,c:0}},A={},O={},L="",$=0,R=[],M={},I={},N=0,D=[],P=[],F={},q=[],B=!1,j=[],W=[],z={},H=0,U=0,V={Sheets:[],WBProps:{date1904:!1}},G={},K=(_n.lastIndex=0,o=o.replace(/<!--([\s\S]*?)-->/gm,""),"");n=_n.exec(o);)switch(n[3]=(K=n[3]).toLowerCase()){case"data":if("data"==K)if("/"===n[1]){if((c=m.pop())[0]!==n[3])throw new Error("Bad state: "+c.join("|"))}else"/"!==n[0].charAt(n[0].length-2)&&m.push([n[3],!0]);else m[m.length-1][1]||("/"===n[1]?function(e,t,n,i,o,r,s,a,l,c){var u="General",d=i.StyleID,h={},f=(c=c||{},[]),p=0;for(void 0===(d=void 0===d&&a?a.StyleID:d)&&s&&(d=s.StyleID);void 0!==r[d]&&(r[d].nf&&(u=r[d].nf),r[d].Interior&&f.push(r[d].Interior),r[d].Parent);)d=r[d].Parent;switch(n.Type){case"Boolean":i.t="b",i.v=ln(e);break;case"String":i.t="s",i.r=an(nn(e)),i.v=-1<e.indexOf("<")?nn(t||e).replace(/<.*?>/g,""):i.r;break;case"DateTime":"Z"!=e.slice(-1)&&(e+="Z"),i.v=(Lt(e)-new Date(Date.UTC(1899,11,30)))/864e5,i.v!=i.v?i.v=nn(e):i.v<60&&(i.v=i.v-1),u&&"General"!=u||(u="yyyy-mm-dd");case"Number":void 0===i.v&&(i.v=+e),i.t||(i.t="n");break;case"Error":i.t="e",i.v=Ui[e],!1!==c.cellText&&(i.w=e);break;default:""==e&&""==t?i.t="z":(i.t="s",i.v=an(t||e))}if(da(i,u,c),!1!==c.cellFormula)if(i.Formula)61==(a=nn(i.Formula)).charCodeAt(0)&&(a=a.slice(1)),i.f=Gr(a,o),delete i.Formula,"RC"==i.ArrayRange?i.F=Gr("RC:RC",o):i.ArrayRange&&(i.F=Gr(i.ArrayRange,o),l.push([yi(i.F),i.F]));else for(p=0;p<l.length;++p)o.r>=l[p][0].s.r&&o.r<=l[p][0].e.r&&o.c>=l[p][0].s.c&&o.c<=l[p][0].e.c&&(i.F=l[p][1]);c.cellStyles&&(f.forEach((function(e){!h.patternType&&e.patternType&&(h.patternType=e.patternType)})),i.s=h),void 0!==i.StyleID&&(i.ixfe=i.StyleID)}(o.slice(C,n.index),L,_,"comment"==m[m.length-1][0]?F:x,{c:S,r:E},A,q[S],k,j,i):(L="",_=ua(n[0]),C=n.index+n[0].length));break;case"cell":if("/"===n[1])if(0<P.length&&(x.c=P),(!i.sheetRows||i.sheetRows>E)&&void 0!==x.v&&(i.dense?(w[E]||(w[E]=[]),w[E][S]=x):w[gi(S)+fi(E)]=x),x.HRef&&(x.l={Target:nn(x.HRef)},x.HRefScreenTip&&(x.l.Tooltip=x.HRefScreenTip),delete x.HRef,delete x.HRefScreenTip),(x.MergeAcross||x.MergeDown)&&(H=S+(0|parseInt(x.MergeAcross,10)),U=E+(0|parseInt(x.MergeDown,10)),R.push({s:{c:S,r:E},e:{c:H,r:U}})),i.sheetStubs)if(x.MergeAcross||x.MergeDown){for(var Y=S;Y<=H;++Y)for(var X=E;X<=U;++X)(S<Y||E<X)&&(i.dense?(w[X]||(w[X]=[]),w[X][Y]={t:"z"}):w[gi(Y)+fi(X)]={t:"z"});S=H+1}else++S;else x.MergeAcross?S=H+1:++S;else(S=(x=function(e){var t={};if(1!==e.split(/\s+/).length){var n,i,o,r=e.match(la);if(r)for(o=0;o!=r.length;++o)-1===(i=(n=r[o].match(ca))[1].indexOf(":"))?t[n[1]]=n[2].slice(1,n[2].length-1):t["xmlns:"===n[1].slice(0,6)?"xmlns"+n[1].slice(6):n[1].slice(i+1)]=n[2].slice(1,n[2].length-1)}return t}(n[0])).Index?+x.Index-1:S)<T.s.c&&(T.s.c=S),S>T.e.c&&(T.e.c=S),"/>"===n[0].slice(-2)&&++S,P=[];break;case"row":"/"===n[1]||"/>"===n[0].slice(-2)?(E<T.s.r&&(T.s.r=E),E>T.e.r&&(T.e.r=E),"/>"===n[0].slice(-2)&&(k=ua(n[0])).Index&&(E=+k.Index-1),S=0,++E):((k=ua(n[0])).Index&&(E=+k.Index-1),z={},"0"!=k.AutoFitHeight&&!k.Height||(z.hpx=parseInt(k.Height,10),z.hpt=Tr(z.hpx),W[E]=z),"1"==k.Hidden&&(z.hidden=!0,W[E]=z));break;case"worksheet":if("/"===n[1]){if((c=m.pop())[0]!==n[3])throw new Error("Bad state: "+c.join("|"));b.push(y),T.s.r<=T.e.r&&T.s.c<=T.e.c&&(w["!ref"]=wi(T),i.sheetRows)&&i.sheetRows<=T.e.r&&(w["!fullref"]=w["!ref"],T.e.r=i.sheetRows-1,w["!ref"]=wi(T)),R.length&&(w["!merges"]=R),0<q.length&&(w["!cols"]=q),0<W.length&&(w["!rows"]=W),v[y]=w}else E=S=0,m.push([n[3],!(T={s:{r:2e6,c:2e6},e:{r:0,c:0}})]),c=ua(n[0]),y=nn(c.Name),w=i.dense?[]:{},R=[],j=[],W=[],V.Sheets.push(G={name:y,Hidden:0});break;case"table":if("/"===n[1]){if((c=m.pop())[0]!==n[3])throw new Error("Bad state: "+c.join("|"))}else{if("/>"==n[0].slice(-2))break;m.push([n[3],!1]),B=!(q=[])}break;case"style":"/"===n[1]?(f=A,p=O,(g=i).cellStyles&&p.Interior&&(g=p.Interior).Pattern&&(g.patternType=Or[g.Pattern]||g.Pattern),f[p.ID]=p):O=ua(n[0]);break;case"numberformat":O.nf=nn(ua(n[0]).Format||"General"),aa[O.nf]&&(O.nf=aa[O.nf]);for(var J=0;392!=J&&Be[J]!=O.nf;++J);if(392==J)for(J=57;392!=J;++J)if(null==Be[J]){gt(O.nf,J);break}break;case"column":if("table"===m[m.length-1][0]){if((u=ua(n[0])).Hidden&&(u.hidden=!0,delete u.Hidden),u.Width&&(u.wpx=parseInt(u.Width,10)),!B&&10<u.wpx){B=!0,yr=6;for(var Z=0;Z<q.length;++Z)q[Z]&&Er(q[Z])}B&&Er(u),q[u.Index-1||q.length]=u;for(var Q=0;Q<+u.Span;++Q)q[q.length]=Rt(u)}break;case"namedrange":"/"!==n[1]&&(V.Names||(V.Names=[]),f={Name:(g=Zt(n[0])).Name,Ref:Gr(g.RefersTo.slice(1),{r:0,c:0})},0<V.Sheets.length&&(f.Sheet=V.Sheets.length-1),V.Names.push(f));break;case"namedcell":case"b":case"i":case"u":case"s":case"em":case"h2":case"h3":case"sub":case"sup":case"span":case"alignment":case"borders":case"border":break;case"font":"/>"!==n[0].slice(-2)&&("/"===n[1]?L+=o.slice($,n.index):$=n.index+n[0].length);break;case"interior":i.cellStyles&&(O.Interior=ua(n[0]));break;case"protection":break;case"author":case"title":case"description":case"created":case"keywords":case"subject":case"category":case"company":case"lastauthor":case"lastsaved":case"lastprinted":case"version":case"revision":case"totaltime":case"hyperlinkbase":case"manager":case"contentstatus":case"identifier":case"language":case"appname":"/>"!==n[0].slice(-2)&&("/"===n[1]?(p=M,d=K,h=o.slice(N,n.index),p[d=(to=to||kt(io))[d]||d]=h):N=n.index+n[0].length);break;case"paragraphs":break;case"styles":case"workbook":if("/"===n[1]){if((c=m.pop())[0]!==n[3])throw new Error("Bad state: "+c.join("|"))}else m.push([n[3],!1]);break;case"comment":if("/"===n[1]){if((c=m.pop())[0]!==n[3])throw new Error("Bad state: "+c.join("|"));(d=F).t=d.v||"",d.t=d.t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),d.v=d.w=d.ixfe=void 0,P.push(F)}else m.push([n[3],!1]),F={a:(c=ua(n[0])).Author};break;case"autofilter":if("/"===n[1]){if((c=m.pop())[0]!==n[3])throw new Error("Bad state: "+c.join("|"))}else"/"!==n[0].charAt(n[0].length-2)&&(h=ua(n[0]),w["!autofilter"]={ref:Gr(h.Range).replace(/\$/g,"")},m.push([n[3],!0]));break;case"name":break;case"datavalidation":if("/"===n[1]){if((c=m.pop())[0]!==n[3])throw new Error("Bad state: "+c.join("|"))}else"/"!==n[0].charAt(n[0].length-2)&&m.push([n[3],!0]);break;case"pixelsperinch":break;case"componentoptions":case"documentproperties":case"customdocumentproperties":case"officedocumentsettings":case"pivottable":case"pivotcache":case"names":case"mapinfo":case"pagebreaks":case"querytable":case"sorting":case"schema":case"conditionalformatting":case"smarttagtype":case"smarttags":case"excelworkbook":case"workbookoptions":case"worksheetoptions":if("/"===n[1]){if((c=m.pop())[0]!==n[3])throw new Error("Bad state: "+c.join("|"))}else"/"!==n[0].charAt(n[0].length-2)&&m.push([n[3],!0]);break;case"null":break;default:if(0==m.length&&"document"==n[3])return $a(o,i);if(0==m.length&&"uof"==n[3])return $a(o,i);var ee=!0;switch(m[m.length-1][0]){case"officedocumentsettings":switch(n[3]){case"allowpng":case"removepersonalinformation":case"downloadcomponents":case"locationofcomponents":case"colors":case"color":case"index":case"rgb":case"targetscreensize":case"readonlyrecommended":break;default:ee=!1}break;case"componentoptions":switch(n[3]){case"toolbar":case"hideofficelogo":case"spreadsheetautofit":case"label":case"caption":case"maxheight":case"maxwidth":case"nextsheetnumber":break;default:ee=!1}break;case"excelworkbook":switch(n[3]){case"date1904":V.WBProps.date1904=!0;break;case"windowheight":case"windowwidth":case"windowtopx":case"windowtopy":case"tabratio":case"protectstructure":case"protectwindow":case"protectwindows":case"activesheet":case"displayinknotes":case"firstvisiblesheet":case"supbook":case"sheetname":case"sheetindex":case"sheetindexfirst":case"sheetindexlast":case"dll":case"acceptlabelsinformulas":case"donotsavelinkvalues":case"iteration":case"maxiterations":case"maxchange":case"path":case"xct":case"count":case"selectedsheets":case"calculation":case"uncalced":case"startupprompt":case"crn":case"externname":case"formula":case"colfirst":case"collast":case"wantadvise":case"boolean":case"error":case"text":case"ole":case"noautorecover":case"publishobjects":case"donotcalculatebeforesave":case"number":case"refmoder1c1":case"embedsavesmarttags":break;default:ee=!1}break;case"workbookoptions":switch(n[3]){case"owcversion":case"height":case"width":break;default:ee=!1}break;case"worksheetoptions":switch(n[3]){case"visible":if("/>"!==n[0].slice(-2))if("/"===n[1])switch(o.slice(N,n.index)){case"SheetHidden":G.Hidden=1;break;case"SheetVeryHidden":G.Hidden=2}else N=n.index+n[0].length;break;case"header":w["!margins"]||Ms(w["!margins"]={},"xlml"),isNaN(+Zt(n[0]).Margin)||(w["!margins"].header=+Zt(n[0]).Margin);break;case"footer":w["!margins"]||Ms(w["!margins"]={},"xlml"),isNaN(+Zt(n[0]).Margin)||(w["!margins"].footer=+Zt(n[0]).Margin);break;case"pagemargins":var te=Zt(n[0]);w["!margins"]||Ms(w["!margins"]={},"xlml"),isNaN(+te.Top)||(w["!margins"].top=+te.Top),isNaN(+te.Left)||(w["!margins"].left=+te.Left),isNaN(+te.Right)||(w["!margins"].right=+te.Right),isNaN(+te.Bottom)||(w["!margins"].bottom=+te.Bottom);break;case"displayrighttoleft":V.Views||(V.Views=[]),V.Views[0]||(V.Views[0]={}),V.Views[0].RTL=!0;break;case"freezepanes":case"frozennosplit":break;case"splithorizontal":case"splitvertical":case"donotdisplaygridlines":case"activerow":case"activecol":case"toprowbottompane":case"leftcolumnrightpane":case"unsynced":case"print":case"printerrors":case"panes":case"scale":case"pane":case"number":case"layout":case"pagesetup":case"selected":case"protectobjects":case"enableselection":case"protectscenarios":case"validprinterinfo":case"horizontalresolution":case"verticalresolution":case"numberofcopies":case"activepane":case"toprowvisible":case"leftcolumnvisible":case"fittopage":case"rangeselection":case"papersizeindex":case"pagelayoutzoom":case"pagebreakzoom":case"filteron":case"fitwidth":case"fitheight":case"commentslayout":case"zoom":case"lefttoright":case"gridlines":case"allowsort":case"allowfilter":case"allowinsertrows":case"allowdeleterows":case"allowinsertcols":case"allowdeletecols":case"allowinserthyperlinks":case"allowformatcells":case"allowsizecols":case"allowsizerows":break;case"nosummaryrowsbelowdetail":w["!outline"]||(w["!outline"]={}),w["!outline"].above=!0;break;case"tabcolorindex":case"donotdisplayheadings":case"showpagelayoutzoom":break;case"nosummarycolumnsrightdetail":w["!outline"]||(w["!outline"]={}),w["!outline"].left=!0;break;case"blackandwhite":case"donotdisplayzeros":case"displaypagebreak":case"rowcolheadings":case"donotdisplayoutline":case"noorientation":case"allowusepivottables":case"zeroheight":case"viewablerange":case"selection":case"protectcontents":break;default:ee=!1}break;case"pivottable":case"pivotcache":switch(n[3]){case"immediateitemsondrop":case"showpagemultipleitemlabel":case"compactrowindent":case"location":case"pivotfield":case"orientation":case"layoutform":case"layoutsubtotallocation":case"layoutcompactrow":case"position":case"pivotitem":case"datatype":case"datafield":case"sourcename":case"parentfield":case"ptlineitems":case"ptlineitem":case"countofsameitems":case"item":case"itemtype":case"ptsource":case"cacheindex":case"consolidationreference":case"filename":case"reference":case"nocolumngrand":case"norowgrand":case"blanklineafteritems":case"hidden":case"subtotal":case"basefield":case"mapchilditems":case"function":case"refreshonfileopen":case"printsettitles":case"mergelabels":case"defaultversion":case"refreshname":case"refreshdate":case"refreshdatecopy":case"versionlastrefresh":case"versionlastupdate":case"versionupdateablemin":case"versionrefreshablemin":case"calculation":break;default:ee=!1}break;case"pagebreaks":switch(n[3]){case"colbreaks":case"colbreak":case"rowbreaks":case"rowbreak":case"colstart":case"colend":case"rowend":break;default:ee=!1}break;case"autofilter":switch(n[3]){case"autofiltercolumn":case"autofiltercondition":case"autofilterand":case"autofilteror":break;default:ee=!1}break;case"querytable":switch(n[3]){case"id":case"autoformatfont":case"autoformatpattern":case"querysource":case"querytype":case"enableredirections":case"refreshedinxl9":case"urlstring":case"htmltables":case"connection":case"commandtext":case"refreshinfo":case"notitles":case"nextid":case"columninfo":case"overwritecells":case"donotpromptforfile":case"textwizardsettings":case"source":case"number":case"decimal":case"thousandseparator":case"trailingminusnumbers":case"formatsettings":case"fieldtype":case"delimiters":case"tab":case"comma":case"autoformatname":case"versionlastedit":case"versionlastrefresh":break;default:ee=!1}break;case"datavalidation":switch(n[3]){case"range":case"type":case"min":case"max":case"sort":case"descending":case"order":case"casesensitive":case"value":case"errorstyle":case"errormessage":case"errortitle":case"inputmessage":case"inputtitle":case"combohide":case"inputhide":case"condition":case"qualifier":case"useblank":case"value1":case"value2":case"format":case"cellrangelist":break;default:ee=!1}break;case"sorting":case"conditionalformatting":switch(n[3]){case"range":case"type":case"min":case"max":case"sort":case"descending":case"order":case"casesensitive":case"value":case"errorstyle":case"errormessage":case"errortitle":case"cellrangelist":case"inputmessage":case"inputtitle":case"combohide":case"inputhide":case"condition":case"qualifier":case"useblank":case"value1":case"value2":case"format":break;default:ee=!1}break;case"mapinfo":case"schema":case"data":switch(n[3]){case"map":case"entry":case"range":case"xpath":case"field":case"xsdtype":case"filteron":case"aggregate":case"elementtype":case"attributetype":break;case"schema":case"element":case"complextype":case"datatype":case"all":case"attribute":case"extends":case"row":break;default:ee=!1}break;case"smarttags":break;default:ee=!1}if(!ee&&!n[3].match(/!\[CDATA/)){if(!m[m.length-1][1])throw"Unrecognized tag: "+n[3]+"|"+m.join("|");if("customdocumentproperties"===m[m.length-1][0]){if("/>"!==n[0].slice(-2))if("/"===n[1]){se=oe=ne=void 0;var ne=I,ie=K,oe=D,re=o.slice(N,n.index),se=re;switch((oe[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":se=ln(re);break;case"i2":case"int":se=parseInt(re,10);break;case"r4":case"float":se=parseFloat(re);break;case"date":case"dateTime.tz":se=Lt(re);break;case"i8":case"string":case"fixed":case"uuid":case"bin.base64":break;default:throw new Error("bad custprop:"+oe[0])}ne[nn(ie)]=se}else N=(D=n).index+n[0].length}else if(i.WTF)throw"Unrecognized tag: "+n[3]+"|"+m.join("|")}}return t={},i.bookSheets||i.bookProps||(t.Sheets=v),t.SheetNames=b,t.Workbook=V,t.SSF=Rt(Be),t.Props=M,t.Custprops=I,t}function fa(e,t){switch(Ua(t=t||{}),t.type||"base64"){case"base64":return ha(ye(e),t);case"binary":case"buffer":case"file":return ha(e,t);case"array":return ha(Ee(e),t)}}var pa=[60,1084,2066,2165,2175];function ga(e,t,n){if("z"!==e.t&&e.XF){var i=0;try{i=e.z||e.XF.numFmtId||0,t.cellNF&&(e.z=Be[i])}catch(e){if(t.WTF)throw e}if(!t||!1!==t.cellText)try{"e"===e.t?e.w=e.w||Hi[e.v]:0===i||"General"==i?"n"===e.t?(0|e.v)===e.v?e.w=e.v.toString(10):e.w=Xe(e.v):e.w=Je(e.v):e.w=pt(i,e.v,{date1904:!!n,dateNF:t&&t.dateNF})}catch(e){if(t.WTF)throw e}t.cellDates&&i&&"n"==e.t&&dt(Be[i]||String(i))&&(n=He(e.v))&&(e.t="d",e.v=new Date(n.y,n.m-1,n.d,n.H,n.M,n.S,n.u))}}function ma(e,t,n){return{v:e,ixfe:t,t:n}}var va="e0859ff2f94f6810ab9108002b27b3d9",ba="02d5cdd59c2e1b10939708002b2cf9ae";function wa(e,t){var n,i,o;if(Ua(t=t||{}),de(),t.codepage&&ce(t.codepage),e.FullPaths){if(yt.find(e,"/encryption"))throw new Error("File is password-protected");r=yt.find(e,"!CompObj"),s=yt.find(e,"/Workbook")||yt.find(e,"/Book")}else{switch(t.type){case"base64":e=Se(ye(e));break;case"binary":e=Se(e);break;case"buffer":break;case"array":Array.isArray(e)||(e=Array.prototype.slice.call(e))}ii(e,0),s={content:e}}if(r&&function(e){var t;(e=e.content).l=28,e.read_shift(0,"lpstr-ansi"),Pi(e,1),e.length-e.l<=4||0==(t=e.read_shift(4))||40<t||(e.l-=4,e.read_shift(0,"lpstr-ansi"),e.length-e.l<=4)||1907505652!==(t=e.read_shift(4))||(Pi(e,2),0==(t=e.read_shift(4)))||40<t||(e.l-=4,e.read_shift(0,"lpwstr"))}(r),t.bookProps&&!t.bookSheets)n={};else{var r=xe?"buffer":"array";if(s&&s.content)n=function(e,t){for(var n,i,o,r,s,a,l={opts:{}},c={},u=t.dense?[]:{},d={},h={},f=null,p=[],g="",m={},v="",b={},w=[],y=[],x=[],k={Sheets:[],WBProps:{date1904:!1},Views:[{}]},_={},C=function(e){return!(e<8)&&e<64&&x[e-8]||zi[e]},S=function(e,t,i){if(!(1<I||i.sheetRows&&e.r>=i.sheetRows)){var o,r,s;if(i.cellStyles&&t.XF&&t.XF.data&&(r=i,s=(o=t).XF.data)&&s.patternType&&r&&r.cellStyles&&(o.s={},o.s.patternType=s.patternType,(r=br(C(s.icvFore)))&&(o.s.fgColor={rgb:r}),r=br(C(s.icvBack)))&&(o.s.bgColor={rgb:r}),delete t.ixfe,delete t.XF,v=vi(n=e),h&&h.s&&h.e||(h={s:{r:0,c:0},e:{r:0,c:0}}),e.r<h.s.r&&(h.s.r=e.r),e.c<h.s.c&&(h.s.c=e.c),e.r+1>h.e.r&&(h.e.r=e.r+1),e.c+1>h.e.c&&(h.e.c=e.c+1),i.cellFormula&&t.f)for(var a=0;a<w.length;++a)if(!(w[a][0].s.c>e.c||w[a][0].s.r>e.r||w[a][0].e.c<e.c||w[a][0].e.r<e.r)){t.F=wi(w[a][0]),w[a][0].s.c==e.c&&w[a][0].s.r==e.r||delete t.f,t.f&&(t.f=""+ws(w[a][1],0,e,R,E));break}i.dense?(u[e.r]||(u[e.r]=[]),u[e.r][e.c]=t):u[v]=t}},E={enc:!1,sbcch:0,snames:[],sharedf:b,arrayf:w,rrtabid:[],lastuser:"",biff:8,codepage:0,winlocked:0,cellStyles:!!t&&!!t.cellStyles,WTF:!!t&&!!t.wtf},T=(t.password&&(E.password=t.password),[]),A=[],O=[],L=[],$=!1,R=[],M=(R.SheetNames=E.snames,R.sharedf=E.sharedf,R.arrayf=E.arrayf,R.names=[],R.XTI=[],0),I=0,N=0,D=[],P=[],F=(ue(E.codepage=1200),!1);e.l<e.length-1;){var q=e.l,B=e.read_shift(2);if(0===B&&10===M)break;var j=e.l===e.length?0:e.read_shift(2),W=xa[B];if(W&&W.f){if(t.bookSheets&&133===M&&133!==B)break;if(M=B,2===W.r||12==W.r){var z=e.read_shift(2);if(j-=2,!E.enc&&z!==B&&((255&z)<<8|z>>8)!==B)throw new Error("rt mismatch: "+z+"!="+B);12==W.r&&(e.l+=10,j-=10)}var H,U,V,G={};G=10===B?W.f(e,j,E):function(e,t,n,i,o){var r=i,s=[],a=n.slice(n.l,n.l+r);if(o&&o.enc&&o.enc.insitu&&0<a.length)switch(e){case 9:case 521:case 1033:case 2057:case 47:case 405:case 225:case 406:case 312:case 404:case 10:case 133:break;default:o.enc.insitu(a)}s.push(a),n.l+=r;for(var l=Kn(n,n.l),c=xa[l],u=0;null!=c&&-1<pa.indexOf(l);)r=Kn(n,n.l+2),u=n.l+4,2066==l?u+=4:2165!=l&&2175!=l||(u+=12),a=n.slice(u,n.l+4+r),s.push(a),n.l+=4+r,c=xa[l=Kn(n,n.l)];var d=Ae(s),h=(ii(d,0),0);d.lens=[];for(var f=0;f<s.length;++f)d.lens.push(h),h+=s[f].length;if(d.length<i)throw"XLS Record 0x"+e.toString(16)+" Truncated: "+d.length+" < "+i;return t.f(d,d.length,o)}(B,W,e,j,E);if(0!=I||-1!==[9,521,1033,2057].indexOf(M))switch(B){case 34:l.opts.Date1904=k.WBProps.date1904=G;break;case 134:l.opts.WriteProtect=!0;break;case 47:if(E.enc||(e.l=0),E.enc=G,!t.password)throw new Error("File is password-protected");if(null==G.valid)throw new Error("Encryption scheme unsupported");if(G.valid)break;throw new Error("Password is incorrect");case 92:E.lastuser=G;break;case 66:var K=Number(G);switch(K){case 21010:K=1200;break;case 32768:K=1e4;break;case 32769:K=1252}ue(E.codepage=K),F=!0;break;case 317:E.rrtabid=G;break;case 25:E.winlocked=G;break;case 439:l.opts.RefreshAll=G;break;case 12:l.opts.CalcCount=G;break;case 16:l.opts.CalcDelta=G;break;case 17:l.opts.CalcIter=G;break;case 13:l.opts.CalcMode=G;break;case 14:l.opts.CalcPrecision=G;break;case 95:l.opts.CalcSaveRecalc=G;break;case 15:E.CalcRefMode=G;break;case 2211:l.opts.FullCalc=G;break;case 129:G.fDialog&&(u["!type"]="dialog"),G.fBelow||((u["!outline"]||(u["!outline"]={})).above=!0),G.fRight||((u["!outline"]||(u["!outline"]={})).left=!0);break;case 224:y.push(G);break;case 430:R.push([G]),R[R.length-1].XTI=[];break;case 35:case 547:R[R.length-1].push(G);break;case 24:case 536:a={Name:G.Name,Ref:ws(G.rgce,0,null,R,E)},0<G.itab&&(a.Sheet=G.itab-1),R.names.push(a),R[0]||(R[0]=[],R[0].XTI=[]),R[R.length-1].push(G),"_xlnm._FilterDatabase"==G.Name&&0<G.itab&&G.rgce&&G.rgce[0]&&G.rgce[0][0]&&"PtgArea3d"==G.rgce[0][0][0]&&(P[G.itab-1]={ref:wi(G.rgce[0][0][1][2])});break;case 22:E.ExternCount=G;break;case 23:0==R.length&&(R[0]=[],R[0].XTI=[]),R[R.length-1].XTI=R[R.length-1].XTI.concat(G),R.XTI=R.XTI.concat(G);break;case 2196:E.biff<8||null!=a&&(a.Comment=G[1]);break;case 18:u["!protect"]=G;break;case 19:0!==G&&E.WTF&&console.error("Password verifier: "+G);break;case 133:d[G.pos]=G,E.snames.push(G.name);break;case 10:--I||(h.e&&(0<h.e.r&&0<h.e.c&&(h.e.r--,h.e.c--,u["!ref"]=wi(h),t.sheetRows&&t.sheetRows<=h.e.r&&(H=h.e.r,h.e.r=t.sheetRows-1,u["!fullref"]=u["!ref"],u["!ref"]=wi(h),h.e.r=H),h.e.r++,h.e.c++),0<T.length&&(u["!merges"]=T),0<A.length&&(u["!objects"]=A),0<O.length&&(u["!cols"]=O),0<L.length&&(u["!rows"]=L),k.Sheets.push(_)),""===g?m=u:c[g]=u,u=t.dense?[]:{});break;case 9:case 521:case 1033:case 2057:8===E.biff&&(E.biff={9:2,521:3,1033:4}[B]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[G.BIFFVer]||8),E.biffguess=0==G.BIFFVer,0==G.BIFFVer&&4096==G.dt&&(E.biff=5,F=!0,ue(E.codepage=28591)),8==E.biff&&0==G.BIFFVer&&16==G.dt&&(E.biff=2),I++||(u=t.dense?[]:{},E.biff<8&&!F&&(F=!0,ue(E.codepage=t.codepage||1252)),E.biff<5||0==G.BIFFVer&&4096==G.dt?(""===g&&(g="Sheet1"),h={s:{r:0,c:0},e:{r:0,c:0}},H={pos:e.l-j,name:g},d[H.pos]=H,E.snames.push(g)):g=(d[q]||{name:""}).name,32==G.dt&&(u["!type"]="chart"),64==G.dt&&(u["!type"]="macro"),T=[],A=[],E.arrayf=w=[],O=[],$=!(L=[]),_={Hidden:(d[q]||{hs:0}).hs,name:g});break;case 515:case 3:case 2:"chart"==u["!type"]&&(t.dense?(u[G.r]||[])[G.c]:u[vi({c:G.c,r:G.r})])&&++G.c,J={ixfe:G.ixfe,XF:y[G.ixfe]||{},v:G.val,t:"n"},0<N&&(J.z=D[J.ixfe>>8&63]),ga(J,t,l.opts.Date1904),S({c:G.c,r:G.r},J,t);break;case 5:case 517:J={ixfe:G.ixfe,XF:y[G.ixfe],v:G.val,t:G.t},0<N&&(J.z=D[J.ixfe>>8&63]),ga(J,t,l.opts.Date1904),S({c:G.c,r:G.r},J,t);break;case 638:J={ixfe:G.ixfe,XF:y[G.ixfe],v:G.rknum,t:"n"},0<N&&(J.z=D[J.ixfe>>8&63]),ga(J,t,l.opts.Date1904),S({c:G.c,r:G.r},J,t);break;case 189:for(var Y=G.c;Y<=G.C;++Y){var X=G.rkrec[Y-G.c][0],J={ixfe:X,XF:y[X],v:G.rkrec[Y-G.c][1],t:"n"};0<N&&(J.z=D[J.ixfe>>8&63]),ga(J,t,l.opts.Date1904),S({c:Y,r:G.r},J,t)}break;case 6:case 518:case 1030:"String"==G.val||((J=ma(G.val,G.cell.ixfe,G.tt)).XF=y[J.ixfe],t.cellFormula&&((V=G.formula)&&V[0]&&V[0][0]&&"PtgExp"==V[0][0][0]&&!b[U=vi({r:Z=V[0][0][1][0],c:V=V[0][0][1][1]})]?J.F=((t.dense?(u[Z]||[])[V]:u[U])||{}).F:J.f=""+ws(G.formula,0,G.cell,R,E)),0<N&&(J.z=D[J.ixfe>>8&63]),ga(J,t,l.opts.Date1904),S(G.cell,J,t)),f=G;break;case 7:case 519:if(!f)throw new Error("String record expects Formula");(J=ma(f.val=G,f.cell.ixfe,"s")).XF=y[J.ixfe],t.cellFormula&&(J.f=""+ws(f.formula,0,f.cell,R,E)),0<N&&(J.z=D[J.ixfe>>8&63]),ga(J,t,l.opts.Date1904),S(f.cell,J,t),f=null;break;case 33:case 545:w.push(G);var Z=vi(G[0].s),Q=t.dense?(u[G[0].s.r]||[])[G[0].s.c]:u[Z];if(t.cellFormula&&Q){if(!f)break;if(!Z||!Q)break;Q.f=""+ws(G[1],0,G[0],R,E),Q.F=wi(G[0])}break;case 1212:if(t.cellFormula&&v){if(!f)break;b[vi(f.cell)]=G[0],((Q=t.dense?(u[f.cell.r]||[])[f.cell.c]:u[vi(f.cell)])||{}).f=""+ws(G[0],0,n,R,E)}break;case 253:J=ma(p[G.isst].t,G.ixfe,"s"),p[G.isst].h&&(J.h=p[G.isst].h),J.XF=y[J.ixfe],0<N&&(J.z=D[J.ixfe>>8&63]),ga(J,t,l.opts.Date1904),S({c:G.c,r:G.r},J,t);break;case 513:t.sheetStubs&&(J={ixfe:G.ixfe,XF:y[G.ixfe],t:"z"},0<N&&(J.z=D[J.ixfe>>8&63]),ga(J,t,l.opts.Date1904),S({c:G.c,r:G.r},J,t));break;case 190:if(t.sheetStubs)for(var ee=G.c;ee<=G.C;++ee){var te=G.ixfe[ee-G.c];J={ixfe:te,XF:y[te],t:"z"},0<N&&(J.z=D[J.ixfe>>8&63]),ga(J,t,l.opts.Date1904),S({c:ee,r:G.r},J,t)}break;case 214:case 516:case 4:(J=ma(G.val,G.ixfe,"s")).XF=y[J.ixfe],0<N&&(J.z=D[J.ixfe>>8&63]),ga(J,t,l.opts.Date1904),S({c:G.c,r:G.r},J,t);break;case 0:case 512:1===I&&(h=G);break;case 252:p=G;break;case 1054:if(4==E.biff){D[N++]=G[1];for(var ne=0;ne<N+163&&Be[ne]!=G[1];++ne);163<=ne&&gt(G[1],N+163)}else gt(G[1],G[0]);break;case 30:D[N++]=G;for(var ie=0;ie<N+163&&Be[ie]!=G;++ie);163<=ie&&gt(G,N+163);break;case 229:T=T.concat(G);break;case 93:A[G.cmo[0]]=E.lastobj=G;break;case 438:E.lastobj.TxO=G;break;case 127:E.lastobj.ImData=G;break;case 440:for(o=G[0].s.r;o<=G[0].e.r;++o)for(i=G[0].s.c;i<=G[0].e.c;++i)(Q=t.dense?(u[o]||[])[i]:u[vi({c:i,r:o})])&&(Q.l=G[1]);break;case 2048:for(o=G[0].s.r;o<=G[0].e.r;++o)for(i=G[0].s.c;i<=G[0].e.c;++i)(Q=t.dense?(u[o]||[])[i]:u[vi({c:i,r:o})])&&Q.l&&(Q.l.Tooltip=G[1]);break;case 28:E.biff<=5&&2<=E.biff||(Q=t.dense?(u[G[0].r]||[])[G[0].c]:u[vi(G[0])],V=A[G[2]],Q||(Q=t.dense?(u[G[0].r]||(u[G[0].r]=[]),u[G[0].r][G[0].c]={t:"z"}):u[vi(G[0])]={t:"z"},h.e.r=Math.max(h.e.r,G[0].r),h.s.r=Math.min(h.s.r,G[0].r),h.e.c=Math.max(h.e.c,G[0].c),h.s.c=Math.min(h.s.c,G[0].c)),Q.c||(Q.c=[]),U={a:G[1],t:V.TxO.t},Q.c.push(U));break;case 2173:G.ixfe,G.ext.forEach((function(e){e[0]}));break;case 125:if(E.cellStyles)for(;G.e>=G.s;)O[G.e--]={width:G.w/256,level:G.level||0,hidden:!!(1&G.flags)},$||($=!0,Sr(G.w/256)),Er(O[G.e+1]);break;case 520:var oe={};null!=G.level&&((L[G.r]=oe).level=G.level),G.hidden&&((L[G.r]=oe).hidden=!0),G.hpt&&((L[G.r]=oe).hpt=G.hpt,oe.hpx=Ar(G.hpt));break;case 38:case 39:case 40:case 41:u["!margins"]||Ms(u["!margins"]={}),u["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[B]]=G;break;case 161:u["!margins"]||Ms(u["!margins"]={}),u["!margins"].header=G.header,u["!margins"].footer=G.footer;break;case 574:G.RTL&&(k.Views[0].RTL=!0);break;case 146:x=G;break;case 2198:s=G;break;case 140:r=G;break;case 442:g?_.CodeName=G||_.name:k.WBProps.CodeName=G||"ThisWorkbook"}}else W||console.error("Missing Info for XLS Record 0x"+B.toString(16)),e.l+=j}return l.SheetNames=xt(d).sort((function(e,t){return Number(e)-Number(t)})).map((function(e){return d[e].name})),t.bookSheets||(l.Sheets=c),!l.SheetNames.length&&m["!ref"]?(l.SheetNames.push("Sheet1"),l.Sheets&&(l.Sheets.Sheet1=m)):l.Preamble=m,l.Sheets&&P.forEach((function(e,t){l.Sheets[l.SheetNames[t]]["!autofilter"]=e})),l.Strings=p,l.SSF=Rt(Be),E.enc&&(l.Encryption=E.enc),s&&(l.Themes=s),l.Metadata={},void 0!==r&&(l.Metadata.Country=r),0<R.names.length&&(k.Names=R.names),l.Workbook=k,l}(s.content,t);else{if(!((s=yt.find(e,"PerfectOffice_MAIN"))&&s.content||(s=yt.find(e,"NativeContent_MAIN"))&&s.content))throw(s=yt.find(e,"MN0"))&&s.content?new Error("Unsupported Works 4 for Mac file"):new Error("Cannot find Workbook stream");n=nr.to_workbook(s.content,(t.type=r,t))}t.bookVBA&&e.FullPaths&&yt.find(e,"/_VBA_PROJECT_CUR/VBA/dir")&&(n.vbaraw=(i=e,o=yt.utils.cfb_new({root:"R"}),i.FullPaths.forEach((function(e,t){"/"!==e.slice(-1)&&e.match(/_VBA_PROJECT_CUR/)&&(e=e.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,""),yt.utils.cfb_add(o,e,i.FileIndex[t].content))})),yt.write(o)))}var s={};if(e.FullPaths){r=e;var a=s,l=t,c=yt.find(r,"/!DocumentSummaryInformation");if(c&&0<c.size)try{var u,d=po(c,qi,ba);for(u in d)a[u]=d[u]}catch(e){if(l.WTF)throw e}if((c=yt.find(r,"/!SummaryInformation"))&&0<c.size)try{var h,f=po(c,Bi,va);for(h in f)null==a[h]&&(a[h]=f[h])}catch(e){if(l.WTF)throw e}a.HeadingPairs&&a.TitlesOfParts&&(eo(a.HeadingPairs,a.TitlesOfParts,a,l),delete a.HeadingPairs,delete a.TitlesOfParts)}return n.Props=n.Custprops=s,t.bookFiles&&(n.cfb=e),n}var ya={0:{f:function(e,t){var n={},i=(t=e.l+t,n.r=e.read_shift(4),e.l+=4,e.read_shift(2)),o=(e.l+=1,e.read_shift(1));return e.l=t,7&o&&(n.level=7&o),16&o&&(n.hidden=!0),32&o&&(n.hpt=i/20),n}},1:{f:function(e){return[Ti(e)]}},2:{f:function(e){return[Ti(e),Mi(e),"n"]}},3:{f:function(e){return[Ti(e),e.read_shift(1),"e"]}},4:{f:function(e){return[Ti(e),e.read_shift(1),"b"]}},5:{f:function(e){return[Ti(e),Di(e),"n"]}},6:{f:function(e){return[Ti(e),Si(e),"str"]}},7:{f:function(e){return[Ti(e),e.read_shift(4),"s"]}},8:{f:function(e,t,n){t=e.l+t;var i,o=Ti(e),r=(o.r=n["!row"],Si(e));r=[o,r,"str"];return n.cellFormula?(e.l+=2,i=_s(e,t-e.l,n),r[3]=ws(i,0,o,n.supbooks,n)):e.l=t,r}},9:{f:function(e,t,n){t=e.l+t;var i,o=Ti(e),r=(o.r=n["!row"],Di(e));r=[o,r,"n"];return n.cellFormula?(e.l+=2,i=_s(e,t-e.l,n),r[3]=ws(i,0,o,n.supbooks,n)):e.l=t,r}},10:{f:function(e,t,n){t=e.l+t;var i,o=Ti(e),r=(o.r=n["!row"],e.read_shift(1));r=[o,r,"b"];return n.cellFormula?(e.l+=2,i=_s(e,t-e.l,n),r[3]=ws(i,0,o,n.supbooks,n)):e.l=t,r}},11:{f:function(e,t,n){t=e.l+t;var i,o=Ti(e),r=(o.r=n["!row"],e.read_shift(1));r=[o,r,"e"];return n.cellFormula?(e.l+=2,i=_s(e,t-e.l,n),r[3]=ws(i,0,o,n.supbooks,n)):e.l=t,r}},12:{f:function(e){return[Ai(e)]}},13:{f:function(e){return[Ai(e),Mi(e),"n"]}},14:{f:function(e){return[Ai(e),e.read_shift(1),"e"]}},15:{f:function(e){return[Ai(e),e.read_shift(1),"b"]}},16:{f:Ks},17:{f:function(e){return[Ai(e),Si(e),"str"]}},18:{f:function(e){return[Ai(e),e.read_shift(4),"s"]}},19:{f:Ei},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:function(e,t,n){t=e.l+t;var i=(e.l+=4,e.l+=1,e.read_shift(4)),o=$i(e),r=(n=Cs(e,0,n),Li(e));e.l=t,e={Name:o,Ptg:n};return i<268435455&&(e.Sheet=i),r&&(e.Comment=r),e}},40:{},42:{},43:{f:function(e,t,n){var i={};switch(i.sz=e.read_shift(2)/20,r=(o=e).read_shift(1),o.l++,(o={fBold:1&r,fItalic:2&r,fUnderline:4&r,fStrikeout:8&r,fOutline:16&r,fShadow:32&r,fCondense:64&r,fExtend:128&r}).fItalic&&(i.italic=1),o.fCondense&&(i.condense=1),o.fExtend&&(i.extend=1),o.fShadow&&(i.shadow=1),o.fOutline&&(i.outline=1),o.fStrikeout&&(i.strike=1),700===e.read_shift(2)&&(i.bold=1),e.read_shift(2)){case 1:i.vertAlign="superscript";break;case 2:i.vertAlign="subscript"}var o,r=e.read_shift(1);switch(0!=r&&(i.underline=r),0<(o=e.read_shift(1))&&(i.family=o),0<(r=e.read_shift(1))&&(i.charset=r),e.l++,i.color=function(e){var t={},n=e.read_shift(1)>>>1,i=e.read_shift(1),o=e.read_shift(2,"i"),r=e.read_shift(1),s=e.read_shift(1),a=e.read_shift(1);switch(e.l++,n){case 0:t.auto=1;break;case 1:var l=zi[t.index=i];l&&(t.rgb=br(l));break;case 2:t.rgb=br([r,s,a]);break;case 3:t.theme=i}return 0!=o&&(t.tint=0<o?o/32767:o/32768),t}(e),e.read_shift(1)){case 1:i.scheme="major";break;case 2:i.scheme="minor"}return i.name=Si(e),i}},44:{f:function(e,t){return[e.read_shift(2),Si(e)]}},45:{f:Mr},46:{f:Ir},47:{f:function(e,t){t=e.l+t;var n=e.read_shift(2),i=e.read_shift(2);return e.l=t,{ixfe:n,numFmtId:i}}},48:{},49:{f:function(e){return e.read_shift(4,"i")}},50:{},51:{f:function(e){for(var t=[],n=e.read_shift(4);0<n--;)t.push([e.read_shift(4),e.read_shift(4)]);return t}},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:Vo},62:{f:function(e){return[Ti(e),Ei(e),"is"]}},63:{f:function(e){var t={},n=(t.i=e.read_shift(4),{});return n.r=e.read_shift(4),n.c=e.read_shift(4),t.r=vi(n),2&(n=e.read_shift(1))&&(t.l="1"),8&n&&(t.a="1"),t}},64:{f:function(){}},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:oi,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:function(e){var t=e.read_shift(2);return e.l+=28,{RTL:32&t}}},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:function(e,t){var n={},i=e[e.l];return++e.l,n.above=!(64&i),n.left=!(128&i),e.l+=18,n.name=Oi(e,t-19),n}},148:{f:Ni,p:16},151:{f:function(){}},152:{},153:{f:function(e,t){var n={},i=e.read_shift(4);return n.defaultThemeVersion=e.read_shift(4),0<(t=8<t?Si(e):"").length&&(n.CodeName=t),n.autoCompressPictures=!!(65536&i),n.backupFile=!!(64&i),n.checkCompatibility=!!(4096&i),n.date1904=!!(1&i),n.filterPrivacy=!!(8&i),n.hidePivotFieldList=!!(1024&i),n.promptedSolutions=!!(16&i),n.publishItems=!!(2048&i),n.refreshAllConnections=!!(262144&i),n.saveExternalLinkValues=!!(128&i),n.showBorderUnselectedTables=!!(4&i),n.showInkAnnotation=!!(32&i),n.showObjects=["all","placeholders","none"][i>>13&3],n.showPivotChartFilter=!!(32768&i),n.updateLinks=["userSet","never","always"][i>>8&3],n}},154:{},155:{},156:{f:function(e,t){var n={};return n.Hidden=e.read_shift(4),n.iTabID=e.read_shift(4),n.strRelID=Ri(e,t-8),n.name=Si(e),n}},157:{},158:{},159:{T:1,f:function(e){return[e.read_shift(4),e.read_shift(4)]}},160:{T:-1},161:{T:1,f:Ni},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:Ni},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:function(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:Si(e)}}},336:{T:-1},337:{f:function(e){return e.l+=4,0!=e.read_shift(4)},T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:Ri},357:{},358:{},359:{},360:{T:1},361:{},362:{f:zo},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:function(e,t,n){t=e.l+t;var i=Ii(e),o=e.read_shift(1);return(i=[i])[2]=o,n.cellFormula?(o=ks(e,t-e.l,n),i[1]=o):e.l=t,i}},427:{f:function(e,t,n){t=e.l+t;var i=[Ni(e,16)];return n.cellFormula&&(n=Ss(e,t-e.l,n),i[1]=n),e.l=t,i}},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:function(e){var t={};return Ys.forEach((function(n){t[n]=Di(e)})),t}},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:function(){}},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:function(e,t){t=e.l+t;var n=Ni(e,16),i=Li(e),o=Si(e),r=Si(e),s=Si(e);e.l=t,e={rfx:n,relId:i,loc:o,display:s};return r&&(e.Tooltip=r),e}},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:Ri},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:Vr},633:{T:1},634:{T:-1},635:{T:1,f:function(e){var t={},n=(t.iauthor=e.read_shift(4),Ni(e,16));return t.rfx=n.s,t.ref=vi(n.s),e.l+=16,t}},636:{T:-1},637:{f:K},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:function(e,t){return e.l+=10,{name:Si(e)}}},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:function(){}},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}},xa={6:{f:ys},10:{f:go},12:{f:vo},13:{f:vo},14:{f:mo},15:{f:mo},16:{f:Di},17:{f:mo},18:{f:mo},19:{f:vo},20:{f:qo},21:{f:qo},23:{f:zo},24:{f:Wo},25:{f:mo},26:{},27:{},28:{f:function(e,t,n){var i,o,r,s,a;if(!(n.biff<8))return i=e.read_shift(2),o=e.read_shift(2),r=e.read_shift(2),s=e.read_shift(2),a=ko(e,0,n),n.biff<8&&e.read_shift(1),[{r:i,c:o},a,s,r]}},29:{},34:{f:mo},35:{f:Bo},38:{f:Di},39:{f:Di},40:{f:Di},41:{f:Di},42:{f:mo},43:{f:mo},47:{f:function(e,t,n){var i={Type:8<=n.biff?e.read_shift(2):0};return i.Type?function(e,t,n){(n=n||{}).Info=e.read_shift(2),e.l-=2,1===n.Info?n.Data=function(e){var t={},n=t.EncryptionVersionInfo=fr(e,4);if(1!=n.Major||1!=n.Minor)throw"unrecognized version code "+n.Major+" : "+n.Minor;return t.Salt=e.read_shift(16),t.EncryptedVerifier=e.read_shift(16),t.EncryptedVerifierHash=e.read_shift(16),t}(e):n.Data=function(e,t){var n={},i=n.EncryptionVersionInfo=fr(e,4);if(t-=4,2!=i.Minor)throw new Error("unrecognized minor version code: "+i.Minor);if(4<i.Major||i.Major<2)throw new Error("unrecognized major version code: "+i.Major);return n.Flags=e.read_shift(4),t-=4,i=e.read_shift(4),t-=4,n.EncryptionHeader=pr(e,i),n.EncryptionVerifier=gr(e,t-=i),n}(e,t)}(e,t-2,i):(t=e,n.biff,e=n,n=i,t={key:vo(t),verificationBytes:vo(t)},e.password&&(t.verifier=function(e){var t,n=0,i=hr(e),o=i.length+1,r=_e(o);for(r[0]=i.length,t=1;t!=o;++t)r[t]=i[t-1];for(t=o-1;0<=t;--t)n=((0==(16384&n)?0:1)|n<<1&32767)^r[t];return 52811^n}(e.password)),n.valid=t.verificationBytes===t.verifier,n.valid&&(n.insitu=function(e){var t=0,n=mr(e);return function(e){return e=function(e,t,n,i,o){var r,s;for(o=o||t,i=i||mr(""),r=0;r!=t.length;++r)s=t[r],s^=i[n],o[r]=255&(s>>5|s<<3),++n;return[o,n,i]}(0,e,t,n),t=e[1],e[0]}}(e.password))),i}},49:{f:function(e,t,n){var i={dyHeight:e.read_shift(2),fl:e.read_shift(2)};switch(n&&n.biff||8){case 2:break;case 3:case 4:e.l+=2;break;default:e.l+=10}return i.name=wo(e,0,n),i}},51:{f:vo},60:{},61:{f:function(e){return{Pos:[e.read_shift(2),e.read_shift(2)],Dim:[e.read_shift(2),e.read_shift(2)],Flags:e.read_shift(2),CurTab:e.read_shift(2),FirstTab:e.read_shift(2),Selected:e.read_shift(2),TabRatio:e.read_shift(2)}}},64:{f:mo},65:{f:function(){}},66:{f:vo},77:{},80:{},81:{},82:{},85:{f:vo},89:{},90:{},91:{},92:{f:function(e,t,n){var i;return n.enc?(e.l+=t,""):(i=e.l,n=ko(e,0,n),e.read_shift(t+i-e.l),n)}},93:{f:function(e,t,n){var i,o,r,s,a,l;return n&&n.biff<8?(i=t,n=n,(l=e).l+=4,o=l.read_shift(2),r=l.read_shift(2),s=l.read_shift(2),l.l+=2,l.l+=2,l.l+=2,l.l+=2,l.l+=2,l.l+=2,l.l+=2,l.l+=2,l.l+=2,l.l+=6,(a=[]).push((Uo[o]||oi)(l,i-=36,n)),{cmo:[r,o,s],ft:a}):{cmo:l=$o(e),ft:function(e,t){for(var n=e.l+t,i=[];e.l<n;){var o=e.read_shift(2);e.l-=2;try{i.push(Mo[o](e,n-e.l))}catch(t){return e.l=n,i}}return e.l!=n&&(e.l=n),i}(e,t-22,l[1])}}},94:{},95:{f:mo},96:{},97:{},99:{f:mo},125:{f:Vo},128:{f:function(e){if(e.l+=4,0!==(e=[e.read_shift(2),e.read_shift(2)])[0]&&e[0]--,0!==e[1]&&e[1]--,7<e[0]||7<e[1])throw new Error("Bad Gutters: "+e.join("|"));return e}},129:{f:function(e,t,n){return{fDialog:16&(n=n&&8==n.biff||2==t?e.read_shift(2):(e.l+=t,0)),fBelow:64&n,fRight:128&n}}},130:{f:vo},131:{f:mo},132:{f:mo},133:{f:function(e,t,n){var i=e.read_shift(4),o=3&e.read_shift(1),r=e.read_shift(1);switch(r){case 0:r="Worksheet";break;case 1:r="Macrosheet";break;case 2:r="Chartsheet";break;case 6:r="VBAModule"}return{pos:i,hs:o,dt:r,name:e=0===(e=wo(e,0,n)).length?"Sheet1":e}}},134:{},140:{f:function(e){var t=[0,0],n=e.read_shift(2);return t[0]=ji[n]||n,n=e.read_shift(2),t[1]=ji[n]||n,t}},141:{f:vo},144:{},146:{f:function(e){for(var t=e.read_shift(2),n=[];0<t--;)n.push(So(e));return n}},151:{},152:{},153:{},154:{},155:{},156:{f:vo},157:{},158:{},160:{f:Ko},161:{f:function(e,t){var n={};return t<32||(e.l+=16,n.header=Di(e),n.footer=Di(e),e.l+=2),n}},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:function(e,t){for(var n=e.l+t-2,i=(t=e.read_shift(2),e.read_shift(2)),o=[];e.l<n;)o.push(To(e));if(e.l!==n)throw new Error("MulRK read error");var r=e.read_shift(2);if(o.length!=r-i+1)throw new Error("MulRK length mismatch");return{r:t,c:i,C:r,rkrec:o}}},190:{f:function(e,t){for(var n=e.l+t-2,i=(t=e.read_shift(2),e.read_shift(2)),o=[];e.l<n;)o.push(e.read_shift(2));if(e.l!==n)throw new Error("MulBlank read error");var r=e.read_shift(2);if(o.length!=r-i+1)throw new Error("MulBlank length mismatch");return{r:t,c:i,C:r,ixfe:o}}},193:{f:go},197:{},198:{},199:{},200:{},201:{},202:{f:mo},203:{},204:{},205:{},206:{},207:{},208:{},209:{},210:{},211:{},213:{},215:{},216:{},217:{},218:{f:vo},220:{},221:{f:mo},222:{},224:{f:function(e,t,n){var i,o,r,s,a={};return a.ifnt=e.read_shift(2),a.numFmtId=e.read_shift(2),a.flags=e.read_shift(2),a.fStyle=a.flags>>2&1,a.data=(n=n,i={},o=(e=e).read_shift(4),r=e.read_shift(4),s=e.read_shift(4),e=e.read_shift(2),i.patternType=Wi[s>>26],n.cellStyles&&(i.alc=7&o,i.fWrap=o>>3&1,i.alcV=o>>4&7,i.fJustLast=o>>7&1,i.trot=o>>8&255,i.cIndent=o>>16&15,i.fShrinkToFit=o>>20&1,i.iReadOrder=o>>22&2,i.fAtrNum=o>>26&1,i.fAtrFnt=o>>27&1,i.fAtrAlc=o>>28&1,i.fAtrBdr=o>>29&1,i.fAtrPat=o>>30&1,i.fAtrProt=o>>31&1,i.dgLeft=15&r,i.dgRight=r>>4&15,i.dgTop=r>>8&15,i.dgBottom=r>>12&15,i.icvLeft=r>>16&127,i.icvRight=r>>23&127,i.grbitDiag=r>>30&3,i.icvTop=127&s,i.icvBottom=s>>7&127,i.icvDiag=s>>14&127,i.dgDiag=s>>21&15,i.icvFore=127&e,i.icvBack=e>>7&127,i.fsxButton=e>>14&1),i),a}},225:{f:function(e,t){return 0!==t&&e.read_shift(2),1200}},226:{f:go},227:{},229:{f:function(e,t){for(var n=[],i=e.read_shift(2);i--;)n.push(Ao(e));return n}},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:function(e,t){for(var n,i,o,r,s,a,l,c,u,d=e.l+t,h=(t=e.read_shift(4),e.read_shift(4)),f=[],p=0;p!=h&&e.l<d;++p)f.push((r=l=u=c=l=r=i=void 0,o=re,re=1200,r=(n=e).read_shift(2),s=4&(l=n.read_shift(1)),a=8&l,l=1+(1&l),c=0,u={},a&&(c=n.read_shift(2)),s&&(i=n.read_shift(4)),l=2==l?"dbcs-cont":"sbcs-cont",r=0===r?"":n.read_shift(r,l),a&&(n.l+=4*c),s&&(n.l+=i),u.t=r,a||(u.raw="<t>"+u.t+"</t>",u.r=u.t),re=o,u));return f.Count=t,f.Unique=h,f}},253:{f:function(e){var t=Eo(e);return t.isst=e.read_shift(4),t}},255:{f:function(e,t){var n={};return n.dsst=e.read_shift(2),e.l+=t-2,n}},256:{},259:{},290:{},311:{},312:{},315:{},317:{f:bo},318:{},319:{},320:{},330:{},331:{},333:{},334:{},335:{},336:{},337:{},338:{},339:{},340:{},351:{},352:{f:mo},353:{f:go},401:{},402:{},403:{},404:{},405:{},406:{},407:{},408:{},425:{},426:{},427:{},428:{},429:{},430:{f:function(e,t,n){var i=e.l+t,o=(t=e.read_shift(2),e.read_shift(2));if(1025==(n.sbcch=o)||14849==o)return[o,t];if(o<1||255<o)throw new Error("Unexpected SupBook type: "+o);n=yo(e,o);for(var r=[];i>e.l;)r.push(xo(e));return[o,t,n,r]}},431:{f:mo},432:{},433:{},434:{},437:{},438:{f:function(e,t,n){var i,o=e.l,r="";try{e.l+=4;var s=(n.lastobj||{cmo:[0,0]}).cmo[1],a=(-1==[0,5,7,11,12,14].indexOf(s)?e.l+=6:((i=e).read_shift(1),i.l++,i.read_shift(2),i.l+=2),e.read_shift(2)),l=(e.read_shift(2),vo(e),e.read_shift(2));e.l+=l;for(var c=1;c<e.lens.length-1;++c){if(e.l-o!=e.lens[c])throw new Error("TxO: bad continue record");var u=e[e.l];if((r+=yo(e,e.lens[c+1]-e.lens[c]-1)).length>=(u?a:2*a))break}if(r.length!==a&&r.length!==2*a)throw new Error("cchText: "+a+" != "+r.length);return e.l=o+t,{t:r}}catch(n){return e.l=o+t,{t:r}}}},439:{f:mo},440:{f:function(e,t){var n=Ao(e);return e.l+=16,[n,function(e,t){t=e.l+t;var n=e.read_shift(4);if(2!==n)throw new Error("Unrecognized streamVersion: "+n);n=e.read_shift(2),e.l+=2;var i,o,r,s,a,l,c="";return 16&n&&(i=_o(e,e.l)),128&n&&(o=_o(e,e.l)),257==(257&n)&&(r=_o(e,e.l)),1==(257&n)&&(s=function(e){var t,n,i=e.read_shift(16);switch(i){case"e0c9ea79f9bace118c8200aa004ba90b":return o=(t=e).read_shift(4),n=t.l,a=!1,24<o&&(t.l+=o-24,"795881f43b1d7f48af2c825dc4852763"===t.read_shift(16)&&(a=!0),t.l=n),n=t.read_shift((a?o-24:o)>>1,"utf16le").replace(Oe,""),a&&(t.l+=24),n;case"0303000000000000c000000000000046":for(var o=e,r=o.read_shift(2),s="";0<r--;)s+="../";var a=o.read_shift(0,"lpstr-ansi");if(o.l+=2,57005!=o.read_shift(2))throw new Error("Bad FileMoniker");if(0===o.read_shift(4))return s+a.replace(/\\/g,"/");if(a=o.read_shift(4),3!=o.read_shift(2))throw new Error("Bad FileMoniker");return s+o.read_shift(a>>1,"utf16le").replace(Oe,"");default:throw new Error("Unsupported Moniker "+i)}}(e,e.l)),8&n&&(c=_o(e,e.l)),32&n&&(a=e.read_shift(16)),64&n&&(l=oo(e)),e.l=t,(e=o||r||s||"")&&c&&(e+="#"+c),e=e||"#"+c,t={Target:e=2&n&&"/"==e.charAt(0)&&"/"!=e.charAt(1)?"file://"+e:e},a&&(t.guid=a),l&&(t.time=l),i&&(t.Tooltip=i),t}(e,t-24)]}},441:{},442:{f:xo},443:{},444:{f:vo},445:{},446:{},448:{f:go},449:{f:function(e){return e.read_shift(2),e.read_shift(4)},r:2},450:{f:go},512:{f:Po},513:{f:Go},515:{f:function(e,t,n){return n.biffguess&&2==n.biff&&(n.biff=5),n=Eo(e),e=Di(e),n.val=e,n}},516:{f:function(e,t,n){n.biffguess&&2==n.biff&&(n.biff=5),e.l;var i=Eo(e);2==n.biff&&e.l++,e=xo(e,e.l,n);return i.val=e,i}},517:{f:Fo},519:{f:Yo},520:{f:function(e){var t={},n=(t.r=e.read_shift(2),t.c=e.read_shift(2),t.cnt=e.read_shift(2)-t.c,e.read_shift(2)),i=(e.l+=4,e.read_shift(1));return e.l+=3,7&i&&(t.level=7&i),32&i&&(t.hidden=!0),64&i&&(t.hpt=n/20),t}},523:{},545:{f:Ho},549:{f:No},566:{},574:{f:function(e,t,n){return n&&2<=n.biff&&n.biff<5?{}:{RTL:64&e.read_shift(2)}}},638:{f:function(e){return{r:e.read_shift(2),c:e.read_shift(2),ixfe:(e=To(e))[0],rknum:e[1]}}},659:{},1048:{},1054:{f:function(e,t,n){return[e.read_shift(2),ko(e,0,n)]}},1084:{},1212:{f:function(e,t,n){var i=Oo(e),o=(e.l++,e.read_shift(1));return[function(e,t,n){var i,o=e.l+t,r=e.read_shift(2),s=gs(e,r,n);return 65535==r?[[],oi(e,t-2)]:(t!==r+2&&(i=ps(e,o-r-2,s,n)),[s,i])}(e,t-=8,n),o,i]}},2048:{f:function(e,t){return e.read_shift(2),[Ao(e),e.read_shift((t-10)/2,"dbcs-cont").replace(Oe,"")]}},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:Io},2058:{},2059:{},2060:{},2061:{},2062:{},2063:{},2064:{},2066:{},2067:{},2128:{},2129:{},2130:{},2131:{},2132:{},2133:{},2134:{},2135:{},2136:{},2137:{},2138:{},2146:{},2147:{r:12},2148:{},2149:{},2150:{},2151:{f:go},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:function(e){e.l+=2;var t={cxfs:0,crc:0};return t.cxfs=e.read_shift(2),t.crc=e.read_shift(4),t},r:12},2173:{f:function(e,t){e.l,e.l+=2;for(var n=e.read_shift(2),i=(e.l+=2,e.read_shift(2)),o=[];0<i--;)o.push(Hr(e,e.l));return{ixfe:n,ext:o}},r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:mo,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:function(e,t,n){var i,o;if(!(n.biff<8))return i=e.read_shift(2),o=e.read_shift(2),[yo(e,i,n),yo(e,o,n)];e.l+=t},r:12},2197:{},2198:{f:function(e,t,n){t=e.l+t;if(124226!==(o=e.read_shift(4)))if(n.cellStyles){var i,o=e.slice(e.l);e.l=t;try{i=Ut(o,{type:"array"})}catch(e){return}if(o=zt(i,"theme/theme/theme1.xml",!0))return zr(o,n)}else e.l=t},r:12},2199:{},2200:{},2201:{},2202:{f:function(e){return[0!==e.read_shift(4),0!==e.read_shift(4),e.read_shift(4)]},r:12},2203:{f:go},2204:{},2205:{},2206:{},2207:{},2211:{f:function(e){t=(i=e).read_shift(2),n=i.read_shift(2),i.l+=8;var t,n,i={type:t,flags:n};if(2211!=i.type)throw new Error("Invalid Future Record "+i.type);return 0!==e.read_shift(4)}},2212:{},2213:{},2214:{},2215:{},4097:{},4098:{},4099:{},4102:{},4103:{},4105:{},4106:{},4107:{},4108:{},4109:{},4116:{},4117:{},4118:{},4119:{},4120:{},4121:{},4122:{},4123:{},4124:{},4125:{},4126:{},4127:{},4128:{},4129:{},4130:{},4132:{},4133:{},4134:{f:vo},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:function(e,t,n){var i={area:!1};return 5!=n.biff?e.l+=t:(n=e.read_shift(1),e.l+=3,16&n&&(i.area=!0)),i}},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:function(e){for(var t=e.read_shift(2),n=[];0<t--;)n.push(So(e));return n}},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{},0:{f:Po},1:{},2:{f:function(e){var t=Eo(e);++e.l,e=e.read_shift(2);return t.t="n",t.val=e,t}},3:{f:function(e){var t=Eo(e);++e.l,e=Di(e);return t.t="n",t.val=e,t}},4:{f:function(e,t,n){n.biffguess&&5==n.biff&&(n.biff=2);var i=Eo(e);++e.l,e=ko(e,0,n);return i.t="str",i.val=e,i}},5:{f:Fo},7:{f:function(e){var t=e.read_shift(1);return 0===t?(e.l++,""):e.read_shift(t,"sbcs-cont")}},8:{},9:{f:Io},11:{},22:{f:vo},30:{f:Do},31:{},32:{},33:{f:Ho},36:{},37:{f:No},50:{f:function(e,t){e.l+=6,e.l+=2,e.l+=1,e.l+=3,e.l+=1,e.l+=t-13}},62:{},52:{},67:{},68:{f:vo},69:{},86:{},126:{},127:{f:function(e){var t=e.read_shift(2),n=e.read_shift(2),i=e.read_shift(4);t={fmt:t,env:n,len:i,data:e.slice(e.l,e.l+i)};return e.l+=i,t}},135:{},136:{},137:{},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:function(e,t,n){t=e.l+t;var i=Eo(e),o=e.read_shift(2);o=yo(e,o,n);return e.l=t,i.t="str",i.val=o,i}},223:{},234:{},354:{},421:{},518:{f:ys},521:{f:Io},536:{f:Wo},547:{f:Bo},561:{},579:{},1030:{f:ys},1033:{f:Io},1091:{},2157:{},2163:{},2177:{},2240:{},2241:{},2242:{},2243:{},2244:{},2245:{},2246:{},2247:{},2248:{},2249:{},2250:{},2251:{},2262:{r:12},29282:{}};function ka(e,t,n,i){var o;isNaN(t)||(i=i||(n||[]).length||0,(o=e.next(4)).write_shift(2,t),o.write_shift(2,i),0<i&&Vn(n)&&e.push(n))}function _a(e,t){var n=t||{},i=n.dense?[]:{};if(!(t=(e=e.replace(/<!--.*?-->/g,"")).match(/<table/i)))throw new Error("Invalid HTML: could not find <table>");var o=e.match(/<\/table/i),r=t.index,s=o&&o.index||e.length,a=Pt(e.slice(r,s),/(:?<tr[^>]*>)/i,"<tr>"),l=-1,c=0,u={s:{r:1e7,c:1e7},e:{r:0,c:0}},d=[];for(r=0;r<a.length;++r){var h=a[r].trim(),f=h.slice(0,3).toLowerCase();if("<tr"==f){if(++l,n.sheetRows&&n.sheetRows<=l){--l;break}c=0}else if("<td"==f||"<th"==f){var p=h.split(/<\/t[dh]>/i);for(s=0;s<p.length;++s){if((w=p[s].trim()).match(/<t[dh]/i)){for(var g=w,m=0;"<"==g.charAt(0)&&-1<(m=g.indexOf(">"));)g=g.slice(m+1);for(var v=0;v<d.length;++v){var b=d[v];b.s.c==c&&b.s.r<l&&l<=b.e.r&&(c=b.e.c+1,v=-1)}var w,y=(w=Zt(w.slice(0,w.indexOf(">")))).colspan?+w.colspan:1,x=((1<(x=+w.rowspan)||1<y)&&d.push({s:{r:l,c:c},e:{r:l+(x||1)-1,c:c+y-1}}),w.t||w["data-t"]||"");g.length&&(g=gn(g),u.s.r>l&&(u.s.r=l),u.e.r<l&&(u.e.r=l),u.s.c>c&&(u.s.c=c),u.e.c<c&&(u.e.c=c),g.length)&&(w={t:"s",v:g},!n.raw&&g.trim().length&&"s"!=x&&("TRUE"===g?w={t:"b",v:!0}:"FALSE"===g?w={t:"b",v:!1}:isNaN(It(g))?isNaN(Dt(g).getDate())||(w={t:"d",v:Lt(g)},(w=n.cellDates?w:{t:"n",v:Ct(w.v)}).z=n.dateNF||Be[14]):w={t:"n",v:It(g)}),n.dense?(i[l]||(i[l]=[]),i[l][c]=w):i[vi({r:l,c:c})]=w),c+=y}}}}return i["!ref"]=wi(u),d.length&&(i["!merges"]=d),i}function Ca(e,t,n,i){for(var o=e["!merges"]||[],r=[],s=t.s.c;s<=t.e.c;++s){for(var a,l,c,u,d=0,h=0,f=0;f<o.length;++f)if(!(o[f].s.r>n||o[f].s.c>s||o[f].e.r<n||o[f].e.c<s)){if(o[f].s.r<n||o[f].s.c<s){d=-1;break}d=o[f].e.r-o[f].s.r+1,h=o[f].e.c-o[f].s.c+1;break}d<0||(a=vi({r:n,c:s}),c=(l=i.dense?(e[n]||[])[s]:e[a])&&null!=l.v&&(l.h||sn(l.w||(xi(l),l.w)||""))||"",u={},1<d&&(u.rowspan=d),1<h&&(u.colspan=h),i.editable?c='<span contenteditable="true">'+c+"</span>":l&&(u["data-t"]=l&&l.t||"z",null!=l.v&&(u["data-v"]=l.v),null!=l.z&&(u["data-z"]=l.z),l.l)&&"#"!=(l.l.Target||"#").charAt(0)&&(c='<a href="'+l.l.Target+'">'+c+"</a>"),u.id=(i.id||"sjs")+"-"+a,r.push(xn("td",c,u)))}return"<tr>"+r.join("")+"</tr>"}function Sa(e,t,n){var i,o=n||{},r=0,s=0,a=(null!=o.origin&&("number"==typeof o.origin?r=o.origin:(r=(n="string"==typeof o.origin?mi(o.origin):o.origin).r,s=n.c)),t.getElementsByTagName("tr")),l=Math.min(o.sheetRows||1e7,a.length),c={s:{r:0,c:0},e:{r:r,c:s}},u=(e["!ref"]&&(n=bi(e["!ref"]),c.s.r=Math.min(c.s.r,n.s.r),c.s.c=Math.min(c.s.c,n.s.c),c.e.r=Math.max(c.e.r,n.e.r),c.e.c=Math.max(c.e.c,n.e.c),-1==r)&&(c.e.r=r=n.e.r+1),[]),d=0,h=e["!rows"]||(e["!rows"]=[]),f=0,p=0,g=0,m=0;for(e["!cols"]||(e["!cols"]=[]);f<a.length&&p<l;++f){var v=a[f];if(Ta(v)){if(o.display)continue;h[p]={hidden:!0}}var b=v.children;for(g=m=0;g<b.length;++g){var w=b[g];if(!o.display||!Ta(w)){var y=w.hasAttribute("data-v")?w.getAttribute("data-v"):w.hasAttribute("v")?w.getAttribute("v"):gn(w.innerHTML),x=w.getAttribute("data-z")||w.getAttribute("z");for(d=0;d<u.length;++d){var k=u[d];k.s.c==m+s&&k.s.r<p+r&&p+r<=k.e.r&&(m=k.e.c+1-s,d=-1)}i=+w.getAttribute("colspan")||1,(1<(_=+w.getAttribute("rowspan")||1)||1<i)&&u.push({s:{r:p+r,c:m+s},e:{r:p+r+(_||1)-1,c:m+s+(i||1)-1}});var _={t:"s",v:y},C=w.getAttribute("data-t")||w.getAttribute("t")||"",S=(null!=y&&(0==y.length?_.t=C||"z":o.raw||0==y.trim().length||"s"==C||("TRUE"===y?_={t:"b",v:!0}:"FALSE"===y?_={t:"b",v:!1}:isNaN(It(y))?isNaN(Dt(y).getDate())||(_={t:"d",v:Lt(y)},(_=o.cellDates?_:{t:"n",v:Ct(_.v)}).z=o.dateNF||Be[14]):_={t:"n",v:It(y)})),void 0===_.z&&null!=x&&(_.z=x),""),E=w.getElementsByTagName("A");if(E&&E.length)for(var T=0;T<E.length&&(!E[T].hasAttribute("href")||"#"==(S=E[T].getAttribute("href")).charAt(0));++T);S&&"#"!=S.charAt(0)&&(_.l={Target:S}),o.dense?(e[p+r]||(e[p+r]=[]),e[p+r][m+s]=_):e[vi({c:m+s,r:p+r})]=_,c.e.c<m+s&&(c.e.c=m+s),m+=i}}++p}return u.length&&(e["!merges"]=(e["!merges"]||[]).concat(u)),c.e.r=Math.max(c.e.r,p-1+r),e["!ref"]=wi(c),l<=p&&(e["!fullref"]=wi((c.e.r=a.length-f+p-1+r,c))),e}function Ea(e,t){return Sa((t||{}).dense?[]:{},e,t)}function Ta(e){var t="",n=(n=e).ownerDocument.defaultView&&"function"==typeof n.ownerDocument.defaultView.getComputedStyle?n.ownerDocument.defaultView.getComputedStyle:"function"==typeof getComputedStyle?getComputedStyle:null;return"none"===((t=n?n(e).getPropertyValue("display"):t)||e.style&&e.style.display)}var Aa={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};function Oa(e,t){var n,i,o,r,s,a=t||{},l=kn(e),c=[],u={name:""},d=0,h={},f=[],p=a.dense?[]:{},g={value:""},m="",v=0,b=[],w=-1,y=-1,x={s:{r:1e6,c:1e7},e:{r:0,c:0}},k=0,_=[],C={},S=0,E=0,T=[],A=1,O=1,L=[],$={Names:[]},R={},M=["",""],I=[],N={},D="",P=0,F=!1,q=!1,B=0;for(_n.lastIndex=0,l=l.replace(/<!--([\s\S]*?)-->/gm,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");o=_n.exec(l);)switch(o[3]=o[3].replace(/_.*$/,"")){case"table":case"工作表":"/"===o[1]?(x.e.c>=x.s.c&&x.e.r>=x.s.r?p["!ref"]=wi(x):p["!ref"]="A1:A1",0<a.sheetRows&&a.sheetRows<=x.e.r&&(p["!fullref"]=p["!ref"],x.e.r=a.sheetRows-1,p["!ref"]=wi(x)),_.length&&(p["!merges"]=_),T.length&&(p["!rows"]=T),i.name=i["名称"]||i.name,"undefined"!=typeof JSON&&JSON.stringify(i),f.push(i.name),h[i.name]=p,q=!1):"/"!==o[0].charAt(o[0].length-2)&&(i=Zt(o[0],!1),w=y=-1,x.s.r=x.s.c=1e7,x.e.r=x.e.c=0,p=a.dense?[]:{},_=[],T=[],q=!0);break;case"table-row-group":"/"===o[1]?--k:++k;break;case"table-row":case"行":if("/"===o[1])w+=A,A=1;else{if((j=Zt(o[0],!1))["行号"]?w=j["行号"]-1:-1==w&&(w=0),(A=+j["number-rows-repeated"]||1)<10)for(B=0;B<A;++B)0<k&&(T[w+B]={level:k});y=-1}break;case"covered-table-cell":"/"!==o[1]&&++y,a.sheetStubs&&(a.dense?(p[w]||(p[w]=[]),p[w][y]={t:"z"}):p[vi({r:w,c:y})]={t:"z"}),m="",b=[];break;case"table-cell":case"数据":if("/"===o[0].charAt(o[0].length-2))++y,g=Zt(o[0],!1),O=parseInt(g["number-columns-repeated"]||"1",10),r={t:"z",v:null},g.formula&&0!=a.cellFormula&&(r.f=Os(nn(g.formula))),"string"==(g["数据类型"]||g["value-type"])&&(r.t="s",r.v=nn(g["string-value"]||""),a.dense?(p[w]||(p[w]=[]),p[w][y]=r):p[vi({r:w,c:y})]=r),y+=O-1;else if("/"!==o[1]){m="",v=0,b=[],O=1;var j=A?w+A-1:w;if(++y>x.e.c&&(x.e.c=y),y<x.s.c&&(x.s.c=y),w<x.s.r&&(x.s.r=w),j>x.e.r&&(x.e.r=j),I=[],r={t:(g=Zt(o[0],!(N={})))["数据类型"]||g["value-type"],v:null},a.cellFormula)if(g.formula&&(g.formula=nn(g.formula)),g["number-matrix-columns-spanned"]&&g["number-matrix-rows-spanned"]&&(S=parseInt(g["number-matrix-rows-spanned"],10)||0,E=parseInt(g["number-matrix-columns-spanned"],10)||0,r.F=wi(C={s:{r:w,c:y},e:{r:w+S-1,c:y+E-1}}),L.push([C,r.F])),g.formula)r.f=Os(g.formula);else for(B=0;B<L.length;++B)w>=L[B][0].s.r&&w<=L[B][0].e.r&&y>=L[B][0].s.c&&y<=L[B][0].e.c&&(r.F=L[B][1]);switch((g["number-columns-spanned"]||g["number-rows-spanned"])&&(S=parseInt(g["number-rows-spanned"],10)||0,E=parseInt(g["number-columns-spanned"],10)||0,_.push(C={s:{r:w,c:y},e:{r:w+S-1,c:y+E-1}})),g["number-columns-repeated"]&&(O=parseInt(g["number-columns-repeated"],10)),r.t){case"boolean":r.t="b",r.v=ln(g["boolean-value"]);break;case"float":case"percentage":case"currency":r.t="n",r.v=parseFloat(g.value);break;case"date":r.t="d",r.v=Lt(g["date-value"]),a.cellDates||(r.t="n",r.v=Ct(r.v)),r.z="m/d/yy";break;case"time":r.t="n",r.v=function(e){var t=0,n=0,i=!1,o=e.match(/P([0-9\.]+Y)?([0-9\.]+M)?([0-9\.]+D)?T([0-9\.]+H)?([0-9\.]+M)?([0-9\.]+S)?/);if(!o)throw new Error("|"+e+"| is not an ISO8601 Duration");for(var r=1;r!=o.length;++r)if(o[r]){switch(3<r&&(i=!0),o[r].slice(o[r].length-(n=1))){case"Y":throw new Error("Unsupported ISO Duration Field: "+o[r].slice(o[r].length-1));case"D":n*=24;case"H":n*=60;case"M":if(!i)throw new Error("Unsupported ISO Duration Field: M");n*=60}t+=n*parseInt(o[r],10)}return t}(g["time-value"])/86400,a.cellDates&&(r.t="d",r.v=Tt(r.v)),r.z="HH:MM:SS";break;case"number":r.t="n",r.v=parseFloat(g["数据数值"]);break;default:if("string"!==r.t&&"text"!==r.t&&r.t)throw new Error("Unsupported value type "+r.t);r.t="s",null!=g["string-value"]&&(m=nn(g["string-value"]),b=[])}}else{if(F=!1,"s"===r.t&&(r.v=m||"",b.length&&(r.R=b),F=0==v),R.Target&&(r.l=R),0<I.length&&(r.c=I,I=[]),m&&!1!==a.cellText&&(r.w=m),F&&(r.t="z",delete r.v),(!F||a.sheetStubs)&&!(a.sheetRows&&a.sheetRows<=w))for(var W=0;W<A;++W){if(O=parseInt(g["number-columns-repeated"]||"1",10),a.dense)for(p[w+W]||(p[w+W]=[]),p[w+W][y]=0==W?r:Rt(r);0<--O;)p[w+W][y+O]=Rt(r);else for(p[vi({r:w+W,c:y})]=r;0<--O;)p[vi({r:w+W,c:y+O})]=Rt(r);x.e.c<=y&&(x.e.c=y)}y+=(O=parseInt(g["number-columns-repeated"]||"1",10))-1,O=0,r={},m="",b=[]}R={};break;case"document":case"document-content":case"电子表格文档":case"spreadsheet":case"主体":case"scripts":case"styles":case"font-face-decls":case"master-styles":if("/"===o[1]){if((n=c.pop())[0]!==o[3])throw"Bad state: "+n}else"/"!==o[0].charAt(o[0].length-2)&&c.push([o[3],!0]);break;case"annotation":if("/"===o[1]){if((n=c.pop())[0]!==o[3])throw"Bad state: "+n;N.t=m,b.length&&(N.R=b),N.a=D,I.push(N)}else"/"!==o[0].charAt(o[0].length-2)&&c.push([o[3],!1]);m=D="",v=P=0,b=[];break;case"creator":"/"===o[1]?D=l.slice(P,o.index):P=o.index+o[0].length;break;case"meta":case"元数据":case"settings":case"config-item-set":case"config-item-map-indexed":case"config-item-map-entry":case"config-item-map-named":case"shapes":case"frame":case"text-box":case"image":case"data-pilot-tables":case"list-style":case"form":case"dde-links":case"event-listeners":case"chart":if("/"===o[1]){if((n=c.pop())[0]!==o[3])throw"Bad state: "+n}else"/"!==o[0].charAt(o[0].length-2)&&c.push([o[3],!1]);m="",v=0,b=[];break;case"scientific-number":case"currency-symbol":case"currency-style":break;case"number-style":case"percentage-style":case"date-style":case"time-style":if("/"===o[1]){if(u.name,(n=c.pop())[0]!==o[3])throw"Bad state: "+n}else"/"!==o[0].charAt(o[0].length-2)&&(u=Zt(o[0],!1),c.push([o[3],!0]));break;case"script":case"libraries":case"automatic-styles":break;case"default-style":case"page-layout":case"style":case"map":case"font-face":case"paragraph-properties":case"table-properties":case"table-column-properties":case"table-row-properties":case"table-cell-properties":break;case"number":switch(c[c.length-1][0]){case"time-style":case"date-style":z=Zt(o[0],!1),Aa[o[3]]["long"===z.style?1:0]}break;case"fraction":break;case"day":case"month":case"year":case"era":case"day-of-week":case"week-of-year":case"quarter":case"hours":case"minutes":case"seconds":case"am-pm":switch(c[c.length-1][0]){case"time-style":case"date-style":z=Zt(o[0],!1),Aa[o[3]]["long"===z.style?1:0]}break;case"boolean-style":case"boolean":case"text-style":break;case"text":if("/>"!==o[0].slice(-2))if("/"===o[1])switch(c[c.length-1][0]){case"number-style":case"date-style":case"time-style":l.slice(d,o.index)}else d=o.index+o[0].length;break;case"named-range":M=Ls((z=Zt(o[0],!1))["cell-range-address"]);var z,H={Name:z.name,Ref:M[0]+"!"+M[1]};q&&(H.Sheet=f.length),$.Names.push(H);break;case"text-content":case"text-properties":case"embedded-text":break;case"body":case"电子表格":case"forms":case"table-column":case"table-header-rows":case"table-rows":case"table-column-group":case"table-header-columns":case"table-columns":case"null-date":case"graphic-properties":case"calculation-settings":case"named-expressions":case"label-range":case"label-ranges":case"named-expression":case"sort":case"sort-by":case"sort-groups":case"tab":case"line-break":case"span":break;case"p":case"文本串":-1<["master-styles"].indexOf(c[c.length-1][0])||("/"!==o[1]||g&&g["string-value"]?(Zt(o[0],!1),v=o.index+o[0].length):(H=(H=l.slice(v,o.index)).replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(/<text:s\/>/g," ").replace(/<text:s text:c="(\d+)"\/>/g,(function(e,t){return Array(parseInt(t,10)+1).join(" ")})).replace(/<text:tab[^>]*\/>/g,"\t").replace(/<text:line-break\/>/g,"\n"),s=[nn(H.replace(/<[^>]*>/g,""))],m=(0<m.length?m+"\n":"")+s[0]));break;case"s":break;case"database-range":if("/"!==o[1])try{h[(M=Ls(Zt(o[0])["target-range-address"]))[0]]["!autofilter"]={ref:M[1]}}catch(t){}break;case"date":case"object":break;case"title":case"标题":case"desc":case"binary-data":case"table-source":case"scenario":case"iteration":case"content-validations":case"content-validation":case"help-message":case"error-message":case"database-ranges":case"filter":case"filter-and":case"filter-or":case"filter-condition":case"list-level-style-bullet":case"list-level-style-number":case"list-level-properties":break;case"sender-firstname":case"sender-lastname":case"sender-initials":case"sender-title":case"sender-position":case"sender-email":case"sender-phone-private":case"sender-fax":case"sender-company":case"sender-phone-work":case"sender-street":case"sender-city":case"sender-postal-code":case"sender-country":case"sender-state-or-province":case"author-name":case"author-initials":case"chapter":case"file-name":case"template-name":case"sheet-name":case"event-listener":break;case"initial-creator":case"creation-date":case"print-date":case"generator":case"document-statistic":case"user-defined":case"editing-duration":case"editing-cycles":case"config-item":case"page-number":case"page-count":case"time":case"cell-range-source":case"detective":case"operation":case"highlighted-range":break;case"data-pilot-table":case"source-cell-range":case"source-service":case"data-pilot-field":case"data-pilot-level":case"data-pilot-subtotals":case"data-pilot-subtotal":case"data-pilot-members":case"data-pilot-member":case"data-pilot-display-info":case"data-pilot-sort-info":case"data-pilot-layout-info":case"data-pilot-field-reference":case"data-pilot-groups":case"data-pilot-group":case"data-pilot-group-member":case"rect":break;case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":case"properties":case"property":break;case"a":if("/"!==o[1]){if(!(R=Zt(o[0],!1)).href)break;R.Target=nn(R.href),delete R.href,"#"==R.Target.charAt(0)&&-1<R.Target.indexOf(".")?(M=Ls(R.Target.slice(1)),R.Target="#"+M[0]+"!"+M[1]):R.Target.match(/^\.\.[\\\/]/)&&(R.Target=R.Target.slice(3))}break;case"table-protection":case"data-pilot-grand-total":case"office-document-common-attrs":break;default:switch(o[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"表:":case"字:":break;default:if(a.WTF)throw new Error(o)}}return t={Sheets:h,SheetNames:f,Workbook:$},a.bookSheets&&delete t.Sheets,t}function La(e,t){if(t=t||{},Bt(e,"META-INF/manifest.xml"))for(var n,i,o=Wt(e,"META-INF/manifest.xml"),r=t,s=kn(o);n=_n.exec(s);)switch(n[3]){case"manifest":break;case"file-entry":if("/"==(i=Zt(n[0],!1)).path&&"application/vnd.oasis.opendocument.spreadsheet"!==i.type)throw new Error("This OpenDocument is not a spreadsheet");break;case"encryption-data":case"algorithm":case"start-key-generation":case"key-derivation":throw new Error("Unsupported ODS Encryption");default:if(r&&r.WTF)throw n}if(o=zt(e,"content.xml"))return t=Oa(hn(o),t),Bt(e,"meta.xml")&&(t.Props=Zi(Wt(e,"meta.xml"))),t;throw new Error("Missing content.xml in ODS / UOF file")}function $a(e,t){return Oa(e,t)}
87
- /*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function Ra(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Ma(e){return"undefined"!=typeof TextDecoder?(new TextDecoder).decode(e):hn(Ee(e))}function Ia(e){var t=e.reduce((function(e,t){return e+t.length}),0),n=new Uint8Array(t),i=0;return e.forEach((function(e){n.set(e,i),i+=e.length})),n}function Na(e){return 16843009*((e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135)>>>24}function Da(e,t){var n=t?t[0]:0,i=127&e[n];return 128<=e[n++]&&(i|=(127&e[n])<<7,e[n++]<128||(i|=(127&e[n])<<14,e[n++]<128)||(i|=(127&e[n])<<21,e[n++]<128)||(i+=(127&e[n])*Math.pow(2,28),++n,e[n++]<128)||(i+=(127&e[n])*Math.pow(2,35),++n,e[n++]<128)||(i+=(127&e[n])*Math.pow(2,42),++n,e[n++])),t&&(t[0]=n),i}function Pa(e){var t=0,n=127&e[0];return 128<=e[t++]&&(n|=(127&e[1])<<7,e[t++]<128||(n|=(127&e[2])<<14,e[t++]<128)||(n|=(127&e[3])<<21,e[+t]<128)||(n|=(127&e[4])<<28)),n}function Fa(e){for(var t=[],n=[0];n[0]<e.length;){var i,o=n[0],r=Da(e,n),s=7&r,a=0;if(0==(r=Math.floor(r/8)))break;switch(s){case 0:for(var l=n[0];128<=e[n[0]++];);i=e.slice(l,n[0]);break;case 5:i=e.slice(n[0],n[0]+(a=4)),n[0]+=a;break;case 1:i=e.slice(n[0],n[0]+(a=8)),n[0]+=a;break;case 2:a=Da(e,n),i=e.slice(n[0],n[0]+a),n[0]+=a;break;default:throw new Error("PB Type ".concat(s," for Field ").concat(r," at offset ").concat(o))}var c={data:i,type:s};null==t[r]?t[r]=[c]:t[r].push(c)}return t}function qa(e,t){return(null==e?void 0:e.map((function(e){return t(e.data)})))||[]}function Ba(e,t,n){switch(e[0]){case 0:case 1:case 2:case 3:var i,o=e,r=t,s=n,a=e[0],l=Ra(o),c=l.getUint32(4,!0),u=(1<a?12:8)+4*Na(c&(1<a?3470:398)),d=-1,h=-1,f=NaN,p=new Date(2001,0,1);switch(512&c&&(d=l.getUint32(u,!0),u+=4),u+=4*Na(c&(1<a?12288:4096)),16&c&&(h=l.getUint32(u,!0),u+=4),32&c&&(f=l.getFloat64(u,!0),u+=8),64&c&&(p.setTime(p.getTime()+1e3*l.getFloat64(u,!0)),u+=8),o[2]){case 0:break;case 2:i={t:"n",v:f};break;case 3:i={t:"s",v:r[h]};break;case 5:i={t:"d",v:p};break;case 6:i={t:"b",v:0<f};break;case 7:i={t:"n",v:f/86400};break;case 8:i={t:"e",v:0};break;case 9:if(-1<d)i={t:"s",v:s[d]};else if(-1<h)i={t:"s",v:r[h]};else{if(isNaN(f))throw new Error("Unsupported cell type ".concat(o.slice(0,4)));i={t:"n",v:f}}break;default:throw new Error("Unsupported cell type ".concat(o.slice(0,4)))}return i;case 5:return function(e,t,n){var i,o=Ra(e),r=o.getUint32(8,!0),s=12,a=-1,l=-1,c=NaN,u=NaN,d=new Date(2001,0,1);switch(1&r&&(c=function(e,t){for(var n=(127&e[t+15])<<7|e[t+14]>>1,i=1&e[t+14],o=t+13;t<=o;--o)i=256*i+e[o];return(128&e[t+15]?-i:i)*Math.pow(10,n-6176)}(e,s),s+=16),2&r&&(u=o.getFloat64(s,!0),s+=8),4&r&&(d.setTime(d.getTime()+1e3*o.getFloat64(s,!0)),s+=8),8&r&&(l=o.getUint32(s,!0),s+=4),16&r&&(a=o.getUint32(s,!0),s+=4),e[1]){case 0:break;case 2:i={t:"n",v:c};break;case 3:i={t:"s",v:t[l]};break;case 5:i={t:"d",v:d};break;case 6:i={t:"b",v:0<u};break;case 7:i={t:"n",v:u/86400};break;case 8:i={t:"e",v:0};break;case 9:if(!(-1<a))throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(31&r," : ").concat(e.slice(0,4)));i={t:"s",v:n[a]};break;case 10:i={t:"n",v:c};break;default:throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(31&r," : ").concat(e.slice(0,4)))}return i}(e,t,n);default:throw new Error("Unsupported payload version ".concat(e[0]))}}function ja(e){return Da(Fa(e)[1][0].data)}function Wa(e,t){var n=Pa((t=Fa(t.data))[1][0].data),i=(t=t[3],[]);return(t||[]).forEach((function(t){var o=Fa(t.data),r=Pa(o[1][0].data)>>>0;switch(n){case 1:i[r]=Ma(o[3][0].data);break;case 8:var s=Fa(e[ja(o[9][0].data)][0].data),a=Pa((s=e[ja(s[1][0].data)][0]).meta[1][0].data);if(2001!=a)throw new Error("2000 unexpected reference to ".concat(a));a=Fa(s.data),i[r]=a[3].map((function(e){return Ma(e.data)})).join("")}})),i}function za(e,t){var n={"!ref":"A1"};if(6001!=(o=Pa((t=e[ja(Fa(t.data)[2][0].data)])[0].meta[1][0].data)))throw new Error("6000 unexpected reference to ".concat(o));var i=e,o=t[0],r=n;o=Fa(o.data);if((e={s:{r:0,c:0},e:{r:0,c:0}}).e.r=(Pa(o[6][0].data)>>>0)-1,e.e.r<0)throw new Error("Invalid row varint ".concat(o[6][0].data));if(e.e.c=(Pa(o[7][0].data)>>>0)-1,e.e.c<0)throw new Error("Invalid col varint ".concat(o[7][0].data));r["!ref"]=wi(e);e=Fa(o[4][0].data);var s=Wa(i,i[ja(e[4][0].data)][0]),a=null!=(o=e[17])&&o[0]?Wa(i,i[ja(e[17][0].data)][0]):[],l=(o=Fa(e[3][0].data),0);return o[1].forEach((function(e){e=Fa(e.data);var t=Pa((e=i[ja(e[2][0].data)][0]).meta[1][0].data);if(6002!=t)throw new Error("6001 unexpected reference to ".concat(t));(t=function(e,t){var n=null!=(i=null==(t=Fa(t.data))?void 0:t[7])&&i[0]?0<Pa(t[7][0].data)>>>0?1:0:-1,i=qa(t[5],(function(e){var t,i,o,r=n,s=Pa((e=Fa(e))[1][0].data)>>>0,a=Pa(e[2][0].data)>>>0,l=(null==(l=null==(l=e[8])?void 0:l[0])?void 0:l.data)&&0<Pa(e[8][0].data)||!1;if(null!=(t=null==(t=e[7])?void 0:t[0])&&t.data&&0!=r)i=null==(t=null==(t=e[7])?void 0:t[0])?void 0:t.data,o=null==(t=null==(t=e[6])?void 0:t[0])?void 0:t.data;else{if(null==(t=null==(t=e[4])?void 0:t[0])||!t.data||1==r)throw"NUMBERS Tile missing ".concat(r," cell storage");i=null==(r=null==(t=e[4])?void 0:t[0])?void 0:r.data,o=null==(r=null==(t=e[3])?void 0:t[0])?void 0:r.data}for(var c=l?4:1,u=Ra(i),d=[],h=0;h<i.length/2;++h){var f=u.getUint16(2*h,!0);f<65535&&d.push([h,f])}if(d.length!=a)throw"Expected ".concat(a," cells, found ").concat(d.length);var p=[];for(h=0;h<d.length-1;++h)p[d[h][0]]=o.subarray(d[h][1]*c,d[h+1][1]*c);return 1<=d.length&&(p[d[d.length-1][0]]=o.subarray(d[d.length-1][1]*c)),{R:s,cells:p}}));return{nrows:Pa(t[4][0].data)>>>0,data:i.reduce((function(e,t){return e[t.R]||(e[t.R]=[]),t.cells.forEach((function(n,i){if(e[t.R][i])throw new Error("Duplicate cell r=".concat(t.R," c=").concat(i));e[t.R][i]=n})),e}),[])}}(0,e)).data.forEach((function(e,t){e.forEach((function(e,n){n=vi({r:l+t,c:n}),(e=Ba(e,s,a))&&(r[n]=e)}))})),l+=t.nrows})),n}function Ha(e){var t={},n=[];if(e.FullPaths.forEach((function(e){if(e.match(/\.iwpv2/))throw new Error("Unsupported password protection")})),e.FileIndex.forEach((function(e){if(e.name.match(/\.iwa$/)){var i,o;try{i=function(e){for(var t=[],n=0;n<e.length;){var i=e[n++],o=e[n]|e[n+1]<<8|e[n+2]<<16;n+=3,t.push(function(e,t){if(0!=e)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var n=[0],i=(e=Da(t,n),[]);n[0]<t.length;){var o=3&t[n[0]];if(0==o){var r=t[n[0]++]>>2;r<60?++r:(s=r-59,r=t[n[0]],1<s&&(r|=t[n[0]+1]<<8),2<s&&(r|=t[n[0]+2]<<16),3<s&&(r|=t[n[0]+3]<<24),r>>>=0,r++,n[0]+=s),i.push(t.slice(n[0],n[0]+r)),n[0]+=r}else{var s=0,a=0;if(1==o?(a=4+(t[n[0]]>>2&7),s=(224&t[n[0]++])<<3,s|=t[n[0]++]):(a=1+(t[n[0]++]>>2),2==o?(s=t[n[0]]|t[n[0]+1]<<8,n[0]+=2):(s=(t[n[0]]|t[n[0]+1]<<8|t[n[0]+2]<<16|t[n[0]+3]<<24)>>>0,n[0]+=4)),i=[Ia(i)],0==s)throw new Error("Invalid offset 0");if(s>i[0].length)throw new Error("Invalid offset beyond length");if(s<=a)for(i.push(i[0].slice(-s)),a-=s;a>=i[i.length-1].length;)i.push(i[i.length-1]),a-=i[i.length-1].length;i.push(i[0].slice(-s,-s+a))}}var l=Ia(i);if(l.length!=e)throw new Error("Unexpected length: ".concat(l.length," != ").concat(e));return l}(i,e.slice(n,n+o))),n+=o}if(n!==e.length)throw new Error("data is not a valid framed stream!");return Ia(t)}(e.content)}catch(i){return console.log("?? "+e.content.length+" "+(i.message||i))}try{o=function(e){for(var t=[],n=[0];n[0]<e.length;){var i=Da(e,n),o=Fa(e.slice(n[0],n[0]+i)),r=(n[0]+=i,{id:Pa(o[1][0].data),messages:[]});o[2].forEach((function(t){var i=Pa((t=Fa(t.data))[3][0].data);r.messages.push({meta:t,data:e.slice(n[0],n[0]+i)}),n[0]+=i})),null!=(i=o[3])&&i[0]&&(r.merge=0<Pa(o[3][0].data)>>>0),t.push(r)}return t}(i)}catch(i){return console.log("## "+(i.message||i))}o.forEach((function(e){t[e.id]=e.messages,n.push(e.id)}))}})),!n.length)throw new Error("File has no messages");var i=(null==(e=null==(e=null==(e=null==(e=null==t?void 0:t[1])?void 0:e[0])?void 0:e.meta)?void 0:e[1])?void 0:e[0].data)&&1==Pa(t[1][0].meta[1][0].data)&&t[1][0];if(i||n.forEach((function(e){t[e].forEach((function(e){if(1==Pa(e.meta[1][0].data)>>>0){if(i)throw new Error("Document has multiple roots");i=e}}))})),i)return function(e,t){var n={SheetNames:[],Sheets:{}};if(qa(Fa(t.data)[1],ja).forEach((function(t){e[t].forEach((function(t){var i,o,r,s;2==Pa(t.meta[1][0].data)&&(o=e,t=Fa((t=t).data),s={name:null!=(r=t[1])&&r[0]?Ma(t[1][0].data):"",sheets:[]},qa(t[2],ja).forEach((function(e){o[e].forEach((function(e){6e3==Pa(e.meta[1][0].data)&&s.sheets.push(za(o,e))}))})),(i=s).sheets.forEach((function(e,t){ll(n,e,0==t?i.name:i.name+"_"+t,!0)})))}))})),0==n.SheetNames.length)throw new Error("Empty NUMBERS file");return n}(t,i);throw new Error("Cannot find Document root")}function Ua(e){!function(e){return function(t){for(var n=0;n!=e.length;++n){var i=e[n];void 0===t[i[0]]&&(t[i[0]]=i[1]),"n"===i[2]&&(t[i[0]]=Number(t[i[0]]))}}}([["cellNF",!1],["cellHTML",!0],["cellFormula",!0],["cellStyles",!1],["cellText",!0],["cellDates",!1],["sheetStubs",!1],["sheetRows",0,"n"],["bookDeps",!1],["bookSheets",!1],["bookProps",!1],["bookFiles",!1],["bookVBA",!1],["password",""],["WTF",!1]])(e)}function Va(e,t,n,i,o,r,s,a,l,c,u,d){try{r[i]=Yi(zt(e,n,!0),t);var h,f,p,g,m,v=Wt(e,t);switch(a){case"sheet":m=sa(v,t,o,l,r[i],c,u,d);break;case"chart":(m=function(e,t,n,i,o,r){if(".bin"===t.slice(-4)){var s=i,a=n,l=r;if(!(t=e))return t;i=(i=o)||{"!id":{}};var c={"!type":"chart","!drawel":null,"!rel":""},u=[],d=!1;return si(t,(function(e,t,n){switch(n){case 550:c["!rel"]=e;break;case 651:l.Sheets[a]||(l.Sheets[a]={}),e.name&&(l.Sheets[a].CodeName=e.name);break;case 562:case 652:case 669:case 679:case 551:case 552:case 476:case 3072:break;case 35:d=!0;break;case 36:d=!1;break;case 37:u.push(n);break;case 38:u.pop();break;default:if(0<t.T)u.push(n);else if(t.T<0)u.pop();else if(!d||s.WTF)throw new Error("Unexpected record 0x"+n.toString(16))}}),s),i["!id"][c["!rel"]]&&(c["!drawel"]=i["!id"][c["!rel"]]),c}return i=n,n=r,(t=e)?(e=(e=o)||{"!id":{}},o={"!type":"chart","!drawel":null,"!rel":""},(r=t.match(Ws))&&Us(r[0],0,n,i),(r=t.match(/drawing r:id="(.*?)"/))&&(o["!rel"]=r[1]),e["!id"][o["!rel"]]&&(o["!drawel"]=e["!id"][o["!rel"]]),o):t}(v,t,o,l,r[i],c))&&m["!drawel"]&&(f=Ki(h=Vt(m["!drawel"].Target,t)),w=zt(e,h,!0),y=Yi(zt(e,f,!0),h),g=Ki(p=Vt(w?(w=(w.match(/<c:chart [^>]*r:id="([^"]*)"/)||["",""])[1],y["!id"][w].Target):"??",h)),m=function(e,t,n,i,o,r){var s,a,l,c,u=r||{"!type":"chart"};return e?(l="A",c={s:{r:2e6,c:2e6},e:{r:a=s=0,c:0}},(e.match(/<c:numCache>[\s\S]*?<\/c:numCache>/gm)||[]).forEach((function(e){n=[],i=(e=e).match(/^<c:numCache>/),(e.match(/<c:pt idx="(\d*)">(.*?)<\/c:pt>/gm)||[]).forEach((function(e){(e=e.match(/<c:pt idx="(\d*?)"><c:v>(.*)<\/c:v><\/c:pt>/))&&(n[+e[1]]=i?+e[2]:e[2])})),o=nn((e.match(/<c:formatCode>([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]),(e.match(/<c:f>(.*?)<\/c:f>/gm)||[]).forEach((function(e){t=e.replace(/<.*?>/g,"")}));var t,n,i,o,r=[n,o,t];c.s.r=c.s.c=0,c.e.c=s,l=gi(s),r[0].forEach((function(e,t){u[l+fi(t)]={t:"n",v:e,z:r[1]},a=t})),c.e.r<a&&(c.e.r=a),++s})),0<s&&(u["!ref"]=wi(c)),u):r}(zt(e,p,!0),0,0,Yi(zt(e,g,!0),p),0,m));break;case"macro":r[i],t.slice(-4),m={"!type":"macro"};break;case"dialog":r[i],t.slice(-4),m={"!type":"dialog"};break;default:throw new Error("Unrecognized sheet type "+a)}s[i]=m;var b=[];r&&r[i]&&xt(r[i]).forEach((function(n){var o,s,a,c,u,d,h="";if(r[i][n].Type==Gi.CMNT){h=Vt(r[i][n].Target,t);var f=function(e,t,n){var i,o,r,s,a,l,c,u;return".bin"===t.slice(-4)?(i=n,o=[],r=[],a=!(s={}),si(e,(function(e,t,n){switch(n){case 632:r.push(e);break;case 635:s=e;break;case 637:s.t=e.t,s.h=e.h,s.r=e.r;break;case 636:s.author=r[s.iauthor],delete s.iauthor,i.sheetRows&&s.rfx&&i.sheetRows<=s.rfx.r||(s.t||(s.t=""),delete s.rfx,o.push(s));break;case 3072:break;case 35:a=!0;break;case 36:a=!1;break;case 37:case 38:break;default:if(!t.T&&(!a||i.WTF))throw new Error("Unexpected record 0x"+n.toString(16))}})),o):(l=n,(t=e).match(/<(?:\w+:)?comments *\/>/)?[]:(c=[],u=[],(n=t.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/))&&n[1]&&n[1].split(/<\/\w*:?author>/).forEach((function(e){""!==e&&""!==e.trim()&&(e=e.match(/<(?:\w+:)?author[^>]*>(.*)/))&&c.push(e[1])})),(n=t.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/))&&n[1]&&n[1].split(/<\/\w*:?comment>/).forEach((function(e){var t,n;""!==e&&""!==e.trim()&&(n=e.match(/<(?:\w+:)?comment[^>]*>/))&&(t={author:(n=Zt(n[0])).authorId&&c[n.authorId]||"sheetjsghost",ref:n.ref,guid:n.guid},n=mi(n.ref),l.sheetRows&&l.sheetRows<=n.r||(e=!!(n=e.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/))&&!!n[1]&&lr(n[1])||{r:"",t:"",h:""},t.r=e.r,"<t></t>"==e.r&&(e.t=e.h=""),t.t=(e.t||"").replace(/\r\n/g,"\n").replace(/\r/g,"\n"),l.cellHTML&&(t.h=e.h),u.push(t)))})),u))}(Wt(e,h,!0),h,l);if(!f||!f.length)return;Ur(m,f,!1)}r[i][n].Type==Gi.TCMNT&&(h=Vt(r[i][n].Target,t),b=b.concat((o=Wt(e,h,!0),s=l,c=!(a=[]),u={},d=0,o.replace(Yt,(function(e,t){var n=Zt(e);switch(Qt(n[0])){case"<?xml":case"<ThreadedComments":case"</ThreadedComments>":break;case"<threadedComment":u={author:n.personId,guid:n.id,ref:n.ref,T:1};break;case"</threadedComment>":null!=u.t&&a.push(u);break;case"<text>":case"<text":d=t+e.length;break;case"</text>":u.t=o.slice(d,t).replace(/\r\n/g,"\n").replace(/\r/g,"\n");break;case"<mentions":case"<mentions>":c=!0;break;case"</mentions>":c=!1;break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":c=!0;break;case"</ext>":c=!1;break;default:if(!c&&s.WTF)throw new Error("unrecognized "+n[0]+" in threaded comments")}return e})),a)))})),b&&b.length&&Ur(m,b,!0,l.people||[])}catch(n){if(l.WTF)throw n}var w,y}function Ga(e){return"/"==e.charAt(0)?e.slice(1):e}function Ka(e,t){if(mt(),Ua(t=t||{}),Bt(e,"META-INF/manifest.xml"))return La(e,t);if(Bt(e,"objectdata.xml"))return La(e,t);if(Bt(e,"Index/Document.iwa")){if("undefined"==typeof Uint8Array)throw new Error("NUMBERS file parsing requires Uint8Array support");var n;return e.FileIndex?Ha(e):(n=yt.utils.cfb_new(),Ht(e).forEach((function(t){!function(e,t,n){if(e.FullPaths){var i;if("string"==typeof n)return i=(xe?ke:function(e){for(var t=[],n=0,i=e.length+250,o=_e(e.length+255),r=0;r<e.length;++r){var s,a=e.charCodeAt(r);a<128?o[n++]=a:a<2048?(o[n++]=192|a>>6&31,o[n++]=128|63&a):55296<=a&&a<57344?(a=64+(1023&a),s=1023&e.charCodeAt(++r),o[n++]=240|a>>8&7,o[n++]=128|a>>2&63,o[n++]=128|s>>6&15|(3&a)<<4,o[n++]=128|63&s):(o[n++]=224|a>>12&15,o[n++]=128|a>>6&63,o[n++]=128|63&a),i<n&&(t.push(o.slice(0,n)),n=0,o=_e(65535),i=65530)}return t.push(o.slice(0,n)),Ae(t)})(n),yt.utils.cfb_add(e,t,i);yt.utils.cfb_add(e,t,n)}else e.file(t,n)}(n,t,function e(t,n,i){if(!i)return qt(jt(t,n));if(!n)return null;try{return e(t,n)}catch(e){return null}}(e,t))})),Ha(n))}if(!Bt(e,"[Content_Types].xml")){if(Bt(e,"index.xml.gz"))throw new Error("Unsupported NUMBERS 08 file");if(Bt(e,"index.xml"))throw new Error("Unsupported NUMBERS 09 file");throw new Error("Unsupported ZIP file")}var i=Ht(e),o=function(e){var t={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};if(e&&e.match){var n={};if((e.match(Yt)||[]).forEach((function(e){var i=Zt(e);switch(i[0].replace(Xt,"<")){case"<?xml":break;case"<Types":t.xmlns=i["xmlns"+(i[0].match(/<(\w+):/)||["",""])[1]];break;case"<Default":n[i.Extension]=i.ContentType;break;case"<Override":void 0!==t[Vi[i.ContentType]]&&t[Vi[i.ContentType]].push(i.PartName)}})),t.xmlns!==Cn)throw new Error("Unknown Namespace: "+t.xmlns);t.calcchain=0<t.calcchains.length?t.calcchains[0]:"",t.sst=0<t.strs.length?t.strs[0]:"",t.style=0<t.styles.length?t.styles[0]:"",t.defaults=n,delete t.calcchains}return t}(zt(e,"[Content_Types].xml")),r=!1;if(0===o.workbooks.length&&Wt(e,s="xl/workbook.xml",!0)&&o.workbooks.push(s),0===o.workbooks.length){if(!Wt(e,s="xl/workbook.bin",!0))throw new Error("Could not find workbook");o.workbooks.push(s),r=!0}"bin"==o.workbooks[0].slice(-3)&&(r=!0);var s,a={},l={};if(!t.bookSheets&&!t.bookProps){if($s=[],o.sst)try{$s=function(e,t,n){if(".bin"===t.slice(-4))return i=n,r=!(o=[]),si(e,(function(e,t,n){switch(n){case 159:o.Count=e[0],o.Unique=e[1];break;case 19:o.push(e);break;case 160:return 1;case 35:r=!0;break;case 36:r=!1;break;default:if(t.T,!r||i.WTF)throw new Error("Unexpected record 0x"+n.toString(16))}})),o;var i,o,r,s=n,a=[],l="";if((t=e)&&(t=t.match(cr))){l=t[2].replace(ur,"").split(dr);for(var c=0;c!=l.length;++c){var u=lr(l[c].trim(),s);null!=u&&(a[a.length]=u)}t=Zt(t[1]),a.Count=t.count,a.Unique=t.uniqueCount}return a}(Wt(e,Ga(o.sst)),o.sst,t)}catch(i){if(t.WTF)throw i}t.cellStyles&&o.themes.length&&(s=zt(e,o.themes[0].replace(/^\//,""),!0)||"",o.themes[0],a=zr(s,t)),o.style&&(l=function(e,t,n,i){if(".bin"!==t.slice(-4))return Rr(e,n,i);t=e;var o,r=n,s=i,a={NumberFmt:[]};for(o in Be)a.NumberFmt[o]=Be[o];a.CellXf=[];var l=[],c=!(a.Fonts=[]);return si(t,(function(e,t,n){switch(n){case 44:a.NumberFmt[e[0]]=e[1],gt(e[1],e[0]);break;case 43:a.Fonts.push(e),null!=e.color.theme&&r&&r.themeElements&&r.themeElements.clrScheme&&(e.color.rgb=wr(r.themeElements.clrScheme[e.color.theme].rgb,e.color.tint||0));break;case 1025:case 45:case 46:break;case 47:617==l[l.length-1]&&a.CellXf.push(e);break;case 48:case 507:case 572:case 475:break;case 1171:case 2102:case 1130:case 512:case 2095:case 3072:break;case 35:c=!0;break;case 36:c=!1;break;case 37:l.push(n),c=!0;break;case 38:l.pop(),c=!1;break;default:if(0<t.T)l.push(n);else if(t.T<0)l.pop();else if(!c||s.WTF&&37!=l[l.length-1])throw new Error("Unexpected record 0x"+n.toString(16))}})),a}(Wt(e,Ga(o.style)),o.style,a,t))}o.links.map((function(n){try{return Yi(zt(e,Ki(Ga(n))),n),function(e,t,n,i){if(".bin"===n.slice(-4)){if(!(n=e))return n;var o=(e=i)||{},r=!1;si(n,(function(e,t,n){switch(n){case 359:case 363:case 364:case 366:case 367:case 368:case 369:case 370:case 371:case 472:case 577:case 578:case 579:case 580:case 581:case 582:case 583:case 584:case 585:case 586:case 587:break;case 35:r=!0;break;case 36:r=!1;break;default:if(!t.T&&(!r||o.WTF))throw new Error("Unexpected record 0x"+n.toString(16))}}),o)}}(Wt(e,Ga(n)),0,n,t)}catch(n){}}));var c,u,d,h=function(e,t,n){if(".bin"===t.slice(-4))return t=e,o={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},s=!(r=[]),(i=(i=n)||{}).biff=12,a=[],(l=[[]]).SheetNames=[],l.XTI=[],ya[16]={n:"BrtFRTArchID$",f:ra},si(t,(function(e,t,n){switch(n){case 156:l.SheetNames.push(e.name),o.Sheets.push(e);break;case 153:o.WBProps=e;break;case 39:null!=e.Sheet&&(i.SID=e.Sheet),e.Ref=ws(e.Ptg,0,null,l,i),delete i.SID,delete e.Ptg,a.push(e);break;case 1036:break;case 357:case 358:case 355:case 667:l[0].length?l.push([n,e]):l[0]=[n,e],l[l.length-1].XTI=[];break;case 362:0===l.length&&(l[0]=[],l[0].XTI=[]),l[l.length-1].XTI=l[l.length-1].XTI.concat(e),l.XTI=l.XTI.concat(e);break;case 361:break;case 2071:case 158:case 143:case 664:case 353:break;case 3072:case 3073:case 534:case 677:case 157:case 610:case 2050:case 155:case 548:case 676:case 128:case 665:case 2128:case 2125:case 549:case 2053:case 596:case 2076:case 2075:case 2082:case 397:case 154:case 1117:case 553:case 2091:break;case 35:r.push(n),s=!0;break;case 36:r.pop(),s=!1;break;case 37:r.push(n),s=!0;break;case 38:r.pop(),s=!1;break;case 16:break;default:if(!t.T&&(!s||i.WTF&&37!=r[r.length-1]&&35!=r[r.length-1]))throw new Error("Unexpected record 0x"+n.toString(16))}}),i),na(o),o.Names=a,o.supbooks=l,o;var i,o,r,s,a,l,c=e,u=n;if(!c)throw new Error("Could not find file");var d={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},Names:[],xmlns:""},h=!1,f="xmlns",p={},g=0;if(c.replace(Yt,(function(e,t){var n=Zt(e);switch(Qt(n[0])){case"<?xml":break;case"<workbook":e.match(oa)&&(f="xmlns"+e.match(/<(\w+):/)[1]),d.xmlns=n[f];break;case"</workbook>":break;case"<fileVersion":delete n[0],d.AppVersion=n;break;case"<fileVersion/>":case"</fileVersion>":case"<fileSharing":case"<fileSharing/>":break;case"<workbookPr":case"<workbookPr/>":Xs.forEach((function(e){if(null!=n[e[0]])switch(e[2]){case"bool":d.WBProps[e[0]]=ln(n[e[0]]);break;case"int":d.WBProps[e[0]]=parseInt(n[e[0]],10);break;default:d.WBProps[e[0]]=n[e[0]]}})),n.codeName&&(d.WBProps.CodeName=hn(n.codeName));break;case"</workbookPr>":case"<workbookProtection":case"<workbookProtection/>":break;case"<bookViews":case"<bookViews>":case"</bookViews>":break;case"<workbookView":case"<workbookView/>":delete n[0],d.WBView.push(n);break;case"</workbookView>":break;case"<sheets":case"<sheets>":case"</sheets>":break;case"<sheet":switch(n.state){case"hidden":n.Hidden=1;break;case"veryHidden":n.Hidden=2;break;default:n.Hidden=0}delete n.state,n.name=nn(hn(n.name)),delete n[0],d.Sheets.push(n);break;case"</sheet>":break;case"<functionGroups":case"<functionGroups/>":case"<functionGroup":break;case"<externalReferences":case"</externalReferences>":case"<externalReferences>":case"<externalReference":case"<definedNames/>":break;case"<definedNames>":case"<definedNames":h=!0;break;case"</definedNames>":h=!1;break;case"<definedName":(p={}).Name=hn(n.name),n.comment&&(p.Comment=n.comment),n.localSheetId&&(p.Sheet=+n.localSheetId),ln(n.hidden||"0")&&(p.Hidden=!0),g=t+e.length;break;case"</definedName>":p.Ref=nn(hn(c.slice(g,t))),d.Names.push(p);break;case"<definedName/>":break;case"<calcPr":case"<calcPr/>":delete n[0],d.CalcPr=n;break;case"</calcPr>":case"<oleSize":break;case"<customWorkbookViews>":case"</customWorkbookViews>":case"<customWorkbookViews":break;case"<customWorkbookView":case"</customWorkbookView>":break;case"<pivotCaches>":case"</pivotCaches>":case"<pivotCaches":case"<pivotCache":break;case"<smartTagPr":case"<smartTagPr/>":break;case"<smartTagTypes":case"<smartTagTypes>":case"</smartTagTypes>":case"<smartTagType":break;case"<webPublishing":case"<webPublishing/>":break;case"<fileRecoveryPr":case"<fileRecoveryPr/>":break;case"<webPublishObjects>":case"<webPublishObjects":case"</webPublishObjects>":case"<webPublishObject":break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":h=!0;break;case"</ext>":h=!1;break;case"<ArchID":break;case"<AlternateContent":case"<AlternateContent>":h=!0;break;case"</AlternateContent>":h=!1;break;case"<revisionPtr":break;default:if(!h&&u.WTF)throw new Error("unrecognized "+n[0]+" in workbook")}return e})),-1===Sn.indexOf(d.xmlns))throw new Error("Unknown Namespace: "+d.xmlns);return na(d),d}(Wt(e,Ga(o.workbooks[0])),o.workbooks[0],t),f={},p="",g=(o.coreprops.length&&((p=Wt(e,Ga(o.coreprops[0]),!0))&&(f=Zi(p)),0!==o.extprops.length)&&(p=Wt(e,Ga(o.extprops[0]),!0))&&(g=t,d={},u=(u=f)||{},c=hn(c=p),Qi.forEach((function(e){var t=(c.match(pn(e[0]))||[])[1];switch(e[2]){case"string":t&&(u[e[1]]=nn(t));break;case"bool":u[e[1]]="true"===t;break;case"raw":var n=c.match(new RegExp("<"+e[0]+"[^>]*>([\\s\\S]*?)</"+e[0]+">"));n&&0<n.length&&(d[e[1]]=n[1])}})),d.HeadingPairs)&&d.TitlesOfParts&&eo(d.HeadingPairs,d.TitlesOfParts,u,g),{}),m=(t.bookSheets&&!t.bookProps||0!==o.custprops.length&&(p=zt(e,Ga(o.custprops[0]),!0))&&(g=function(e,t){var n={},i="",o=e.match(no);if(o)for(var r=0;r!=o.length;++r){var s=o[r],a=Zt(s);switch(a[0]){case"<?xml":case"<Properties":break;case"<property":i=nn(a.name);break;case"</property>":i=null;break;default:if(0===s.indexOf("<vt:")){var l=s.split(">"),c=l[0].slice(4),u=l[1];switch(c){case"lpstr":case"bstr":case"lpwstr":n[i]=nn(u);break;case"bool":n[i]=ln(u);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":n[i]=parseInt(u,10);break;case"r4":case"r8":case"decimal":n[i]=parseFloat(u);break;case"filetime":case"date":n[i]=Lt(u);break;case"cy":case"error":n[i]=nn(u);break;default:"/"!=c.slice(-1)&&t.WTF&&"undefined"!=typeof console&&console.warn("Unexpected",s,c,l)}}else if("</"!==s.slice(0,2)&&t.WTF)throw new Error(s)}}return n}(p,t)),{});if(!t.bookSheets&&!t.bookProps||(h.Sheets?w=h.Sheets.map((function(e){return e.name})):f.Worksheets&&0<f.SheetNames.length&&(w=f.SheetNames),t.bookProps&&(m.Props=f,m.Custprops=g),t.bookSheets&&void 0!==w&&(m.SheetNames=w),t.bookSheets?!m.SheetNames:!t.bookProps)){var v,b,w={},y=(p={},t.bookDeps&&o.calcchain&&(p=function(e,t){var n,i,o;return".bin"===t.slice(-4)?(n=[],si(e,(function(e,t,i){if(63===i)n.push(e);else if(!t.T)throw new Error("Unexpected record 0x"+i.toString(16))})),n):(o=[],(t=e)&&(i=1,(t.match(Yt)||[]).forEach((function(e){var t=Zt(e);switch(t[0]){case"<?xml":break;case"<calcChain":case"<calcChain>":case"</calcChain>":break;case"<c":delete t[0],t.i?i=t.i:t.i=i,o.push(t)}}))),o)}(Wt(e,Ga(o.calcchain)),o.calcchain)),0),x={},k=h.Sheets;f.Worksheets=k.length,f.SheetNames=[];for(var _=0;_!=k.length;++_)f.SheetNames[_]=k[_].name;var C,S,E,T=r?"bin":"xml",A=(r=o.workbooks[0].lastIndexOf("/"),(o.workbooks[0].slice(0,r+1)+"_rels/"+o.workbooks[0].slice(r+1)+".rels").replace(/^\//,"")),O=(Bt(e,A)||(A="xl/_rels/workbook."+T+".rels"),Yi(zt(e,A,!0),A.replace(/_rels.*/,"s5s"))),L=(1<=(o.metadata||[]).length&&(t.xlmeta=function(e,t,n){var i,o,r,s,a,l,c,u,d,h;return".bin"===t.slice(-4)?(i={Types:[],Cell:[],Value:[]},o=n||{},s=!(r=[]),a=2,si(e,(function(e,t,n){switch(n){case 335:i.Types.push({name:e.name});break;case 51:e.forEach((function(e){1==a?i.Cell.push({type:i.Types[e[0]-1].name,index:e[1]}):0==a&&i.Value.push({type:i.Types[e[0]-1].name,index:e[1]})}));break;case 337:a=e?1:0;break;case 338:a=2;break;case 35:r.push(n),s=!0;break;case 36:r.pop(),s=!1;break;default:if(!t.T&&(!s||o.WTF&&35!=r[r.length-1]))throw new Error("Unexpected record 0x"+n.toString(16))}})),i):(l=n,h={Types:[],Cell:[],Value:[]},(t=e)&&(c=!1,u=2,t.replace(Yt,(function(e){var t=Zt(e);switch(Qt(t[0])){case"<?xml":break;case"<metadata":case"</metadata>":break;case"<metadataTypes":case"</metadataTypes>":break;case"<metadataType":h.Types.push({name:t.name});break;case"</metadataType>":break;case"<futureMetadata":for(var n=0;n<h.Types.length;++n)h.Types[n].name==t.name&&(d=h.Types[n]);break;case"</futureMetadata>":case"<bk>":case"</bk>":break;case"<rc":1==u?h.Cell.push({type:h.Types[t.t-1].name,index:+t.v}):0==u&&h.Value.push({type:h.Types[t.t-1].name,index:+t.v});break;case"</rc>":break;case"<cellMetadata":u=1;break;case"</cellMetadata>":u=2;break;case"<valueMetadata":u=0;break;case"</valueMetadata>":u=2;break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":c=!0;break;case"</ext>":c=!1;break;case"<rvb":d&&(d.offsets||(d.offsets=[]),d.offsets.push(+t.i));break;default:if(!c&&l.WTF)throw new Error("unrecognized "+t[0]+" in metadata")}return e}))),h)}(Wt(e,Ga(o.metadata[0])),o.metadata[0],t)),1<=(o.people||[]).length&&(t.people=(r=Wt(e,Ga(o.people[0])),C=t,E=!(S=[]),r.replace(Yt,(function(e){var t=Zt(e);switch(Qt(t[0])){case"<?xml":case"<personList":case"</personList>":break;case"<person":S.push({name:t.displayname,id:t.id});break;case"</person>":break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":E=!0;break;case"</ext>":E=!1;break;default:if(!E&&C.WTF)throw new Error("unrecognized "+t[0]+" in threaded comments")}return e})),S)),O=O&&function(e,t){if(!e)return 0;try{e=t.map((function(t){return t.id||(t.id=t.strRelID),[t.name,e["!id"][t.id].Target,(t=e["!id"][t.id].Type,-1<Gi.WS.indexOf(t)?"sheet":Gi.CS&&t==Gi.CS?"chart":Gi.DS&&t==Gi.DS?"dialog":Gi.MS&&t==Gi.MS?"macro":t&&t.length?t:"sheet")]}))}catch(t){return null}return e&&0!==e.length?e:null}(O,h.Sheets),Wt(e,"xl/worksheets/sheet.xml",!0)?1:0);for(y=0;y!=f.Worksheets;++y){var $="sheet";if(O&&O[y]?(v="xl/"+O[y][1].replace(/[\/]?xl\//,""),Bt(e,v)||(v=O[y][1]),Bt(e,v)||(v=A.replace(/_rels\/.*$/,"")+O[y][1]),$=O[y][2]):v=(v="xl/worksheets/sheet"+(y+1-L)+"."+T).replace(/sheet0\./,"sheet."),b=v.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),t&&null!=t.sheets)switch(typeof t.sheets){case"number":if(y!=t.sheets)continue;break;case"string":if(f.SheetNames[y].toLowerCase()!=t.sheets.toLowerCase())continue;break;default:if(Array.isArray&&Array.isArray(t.sheets)){for(var R=!1,M=0;M!=t.sheets.length;++M)"number"==typeof t.sheets[M]&&t.sheets[M]==y&&(R=1),"string"==typeof t.sheets[M]&&t.sheets[M].toLowerCase()==f.SheetNames[y].toLowerCase()&&(R=1);if(!R)continue}}Va(e,v,b,f.SheetNames[y],y,x,w,$,t,h,a,l)}m={Directory:o,Workbook:h,Props:f,Custprops:g,Deps:p,Sheets:w,SheetNames:f.SheetNames,Strings:$s,Styles:l,Themes:a,SSF:Rt(Be)},t&&t.bookFiles&&(e.files?(m.keys=i,m.files=e.files):(m.keys=[],m.files={},e.FullPaths.forEach((function(t,n){t=t.replace(/^Root Entry[\/]/,""),m.keys.push(t),m.files[t]=e.FileIndex[n]})))),t&&t.bookVBA&&(0<o.vba.length?m.vbaraw=Wt(e,Ga(o.vba[0]),!0):o.defaults&&"application/vnd.ms-office.vbaProject"===o.defaults.bin&&(m.vbaraw=Wt(e,"xl/vbaProject.bin",!0)))}return m}function Ya(e,t){t=t||{};var n="Workbook",i=yt.find(e,n);try{if(n="/!DataSpaces/Version",!(i=yt.find(e,n))||!i.content)throw new Error("ECMA-376 Encrypted file missing "+n);if((s=i.content).read_shift(0,"lpp4"),fr(s,4),fr(s,4),fr(s,4),n="/!DataSpaces/DataSpaceMap",!(i=yt.find(e,n))||!i.content)throw new Error("ECMA-376 Encrypted file missing "+n);var o=function(e){for(var t=[],n=(e.l+=4,e.read_shift(4));0<n--;)t.push(function(e){for(var t=e.read_shift(4),n=(t=e.l+t-4,{}),i=e.read_shift(4),o=[];0<i--;)o.push({t:e.read_shift(4),v:e.read_shift(0,"lpp4")});if(n.name=e.read_shift(0,"lpp4"),n.comps=o,e.l!=t)throw new Error("Bad DataSpaceMapEntry: "+e.l+" != "+t);return n}(e));return t}(i.content);if(1!==o.length||1!==o[0].comps.length||0!==o[0].comps[0].t||"StrongEncryptionDataSpace"!==o[0].name||"EncryptedPackage"!==o[0].comps[0].v)throw new Error("ECMA-376 Encrypted file bad "+n);if(n="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",!(i=yt.find(e,n))||!i.content)throw new Error("ECMA-376 Encrypted file missing "+n);var r=function(e){for(var t=[],n=(e.l+=4,e.read_shift(4));0<n--;)t.push(e.read_shift(0,"lpp4"));return t}(i.content);if(1!=r.length||"StrongEncryptionTransform"!=r[0])throw new Error("ECMA-376 Encrypted file bad "+n);if(n="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",!(i=yt.find(e,n))||!i.content)throw new Error("ECMA-376 Encrypted file missing "+n);!function(e){t={},(n=e).read_shift(4),n.l+=4,t.id=n.read_shift(0,"lpp4"),t.name=n.read_shift(0,"lpp4"),t.R=fr(n,4),t.U=fr(n,4),t.W=fr(n,4);var t,n=t;if(n.ename=e.read_shift(0,"8lpp4"),n.blksz=e.read_shift(4),n.cmode=e.read_shift(4),4!=e.read_shift(4))throw new Error("Bad !Primary record")}(i.content)}catch(e){}if(!(i=yt.find(e,n="/EncryptionInfo"))||!i.content)throw new Error("ECMA-376 Encrypted file missing "+n);var s=function(e){var t,n,i,o=fr(e);switch(o.Minor){case 2:return[o.Minor,function(e){if(36!=(63&e.read_shift(4)))throw new Error("EncryptionInfo mismatch");var t=e.read_shift(4);return{t:"Std",h:t=pr(e,t),v:e=gr(e,e.length-e.l)}}(e)];case 3:return[o.Minor,function(){throw new Error("File is password-protected: ECMA-376 Extensible")}()];case 4:return[o.Minor,(n=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"],(t=e).l+=4,t=t.read_shift(t.length-t.l,"utf8"),i={},t.replace(Yt,(function(e){var t=Zt(e);switch(Qt(t[0])){case"<?xml":break;case"<encryption":case"</encryption>":break;case"<keyData":n.forEach((function(e){i[e]=t[e]}));break;case"<dataIntegrity":i.encryptedHmacKey=t.encryptedHmacKey,i.encryptedHmacValue=t.encryptedHmacValue;break;case"<keyEncryptors>":case"<keyEncryptors":i.encs=[];break;case"</keyEncryptors>":break;case"<keyEncryptor":i.uri=t.uri;break;case"</keyEncryptor>":break;case"<encryptedKey":i.encs.push(t);break;default:throw t[0]}})),i)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+o.Minor)}(i.content);n="/EncryptedPackage";if(!(i=yt.find(e,n))||!i.content)throw new Error("ECMA-376 Encrypted file missing "+n);if(4==s[0]&&"undefined"!=typeof decrypt_agile)return decrypt_agile(s[1],i.content,t.password||"",t);if(2==s[0]&&"undefined"!=typeof decrypt_std76)return decrypt_std76(s[1],i.content,t.password||"",t);throw new Error("File is password-protected")}function Xa(e,t){var n="";switch((t||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":n=ye(e.slice(0,12));break;case"binary":n=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[n.charCodeAt(0),n.charCodeAt(1),n.charCodeAt(2),n.charCodeAt(3),n.charCodeAt(4),n.charCodeAt(5),n.charCodeAt(6),n.charCodeAt(7)]}function Ja(e,t){var n=0;e:for(;n<e.length;)switch(e.charCodeAt(n)){case 10:case 13:case 32:++n;break;case 60:return fa(e.slice(n),t);default:break e}return tr.to_workbook(e,t)}function Za(e,t,n,i){return i?(n.type="string",tr.to_workbook(e,n)):tr.to_workbook(t,n)}function Qa(e,t){de();var n=t||{};if("undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer)return Qa(new Uint8Array(e),((n=Rt(n)).type="array",n));"undefined"!=typeof Uint8Array&&e instanceof Uint8Array&&!n.type&&(n.type="undefined"!=typeof Deno?"buffer":"array");var i,o,r=e,s=!1;if(n.cellStyles&&(n.cellNF=!0,n.sheetStubs=!0),Rs={},n.dateNF&&(Rs.dateNF=n.dateNF),n.type||(n.type=xe&&Buffer.isBuffer(e)?"buffer":"base64"),"file"==n.type&&(n.type=xe?"buffer":"binary",r=function(e){if("undefined"!=typeof Deno)return Deno.readFileSync(e);if("undefined"!=typeof $&&"undefined"!=typeof File&&"undefined"!=typeof Folder)try{var t=File(e),n=(t.open("r"),t.encoding="binary",t.read());return t.close(),n}catch(e){if(!e.message||!e.message.match(/onstruct/))throw e}throw new Error("Cannot access file "+e)}(e),"undefined"==typeof Uint8Array||xe||(n.type="array")),"string"==n.type&&(s=!0,n.type="binary",n.codepage=65001,r=(t=e).match(/[^\x00-\x7F]/)?fn(t):t),"array"==n.type&&"undefined"!=typeof Uint8Array&&e instanceof Uint8Array&&"undefined"!=typeof ArrayBuffer&&(t=new ArrayBuffer(3),(t=new Uint8Array(t)).foo="bar",!t.foo))return(n=Rt(n)).type="array",Qa(Te(r),n);switch((i=Xa(r,n))[0]){case 208:if(207===i[1]&&17===i[2]&&224===i[3]&&161===i[4]&&177===i[5]&&26===i[6]&&225===i[7])return a=yt.read(r,n),l=n,(yt.find(a,"EncryptedPackage")?Ya:wa)(a,l);break;case 9:if(i[1]<=8)return wa(r,n);break;case 60:return fa(r,n);case 73:if(73===i[1]&&42===i[2]&&0===i[3])throw new Error("TIFF Image File is not a spreadsheet");if(68!==i[1])break;var a=r,l=n,c=l||{},u=!!c.WTF;c.WTF=!0;try{var d=Zo.to_workbook(a,c);return c.WTF=u,d}catch(e){if(c.WTF=u,!e.message.match(/SYLK bad record ID/)&&u)throw e;return tr.to_workbook(a,l)}return;case 84:if(65===i[1]&&66===i[2]&&76===i[3])return Qo.to_workbook(r,n);break;case 80:return 75===i[1]&&i[2]<9&&i[3]<9?(c=d=r,(u=(u=n)||{}).type||(u.type=xe&&Buffer.isBuffer(d)?"buffer":"base64"),Ka(Ut(c,u),u)):Za(e,r,n,s);case 239:return 60===i[3]?fa(r,n):Za(e,r,n,s);case 255:if(254===i[1])return g=r,"base64"==(o=n).type&&(g=ye(g)),g=pe.utils.decode(1200,g.slice(2),"str"),o.type="binary",Ja(g,o);if(0===i[1]&&2===i[2]&&0===i[3])return nr.to_workbook(r,n);break;case 0:if(0===i[1]){if(2<=i[2]&&0===i[3])return nr.to_workbook(r,n);if(0===i[2]&&(8===i[3]||9===i[3]))return nr.to_workbook(r,n)}break;case 3:case 131:case 139:case 140:return Jo.to_workbook(r,n);case 123:if(92===i[1]&&114===i[2]&&116===i[3])return vr.to_workbook(r,n);break;case 10:case 13:case 32:var h=r,f=n,p="",g=Xa(h,f);switch(f.type){case"base64":p=ye(h);break;case"binary":p=h;break;case"buffer":p=h.toString("binary");break;case"array":p=$t(h);break;default:throw new Error("Unrecognized type "+f.type)}return 239==g[0]&&187==g[1]&&191==g[2]&&(p=hn(p)),f.type="binary",Ja(p,f);case 137:if(80===i[1]&&78===i[2]&&71===i[3])throw new Error("PNG Image File is not a spreadsheet")}return-1<Xo.indexOf(i[0])&&i[2]<=12&&i[3]<=31?Jo.to_workbook(r,n):Za(e,r,n,s)}function el(e,t,n,i,o,r,s,a){var l=fi(n),c=a.defval,u=a.raw||!Object.prototype.hasOwnProperty.call(a,"raw"),d=!0,h=1===o?[]:{};if(1!==o)if(Object.defineProperty)try{Object.defineProperty(h,"__rowNum__",{value:n,enumerable:!1})}catch(e){h.__rowNum__=n}else h.__rowNum__=n;if(!s||e[n])for(var f=t.s.c;f<=t.e.c;++f){var p=s?e[n][f]:e[i[f]+l];if(void 0===p||void 0===p.t)void 0!==c&&null!=r[f]&&(h[r[f]]=c);else{var g=p.v;switch(p.t){case"z":if(null==g)break;continue;case"e":g=0==g?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+p.t)}if(null!=r[f]){if(null==g)if("e"==p.t&&null===g)h[r[f]]=null;else if(void 0!==c)h[r[f]]=c;else{if(!u||null!==g)continue;h[r[f]]=null}else h[r[f]]=u&&("n"!==p.t||"n"===p.t&&!1!==a.rawNumbers)?g:xi(p,g,a);null!=g&&(d=!1)}}}return{row:h,isempty:d}}function tl(e,t){if(null==e||null==e["!ref"])return[];var n,i={t:"n",v:0},o=0,r=1,s=[],a="",l={s:{r:0,c:0},e:{r:0,c:0}},c=t||{},u=null!=c.range?c.range:e["!ref"];switch(1===c.header?o=1:"A"===c.header?o=2:Array.isArray(c.header)?o=3:null==c.header&&(o=0),typeof u){case"string":l=yi(u);break;case"number":(l=yi(e["!ref"])).s.r=u;break;default:l=u}0<o&&(r=0);var d,h=fi(l.s.r),f=[],p=[],g=0,m=0,v=Array.isArray(e),b=l.s.r,w=0,y={},x=(v&&!e[b]&&(e[b]=[]),c.skipHidden&&e["!cols"]||[]),k=c.skipHidden&&e["!rows"]||[];for(w=l.s.c;w<=l.e.c;++w)if(!(x[w]||{}).hidden)switch(f[w]=gi(w),i=v?e[b][w]:e[f[w]+h],o){case 1:s[w]=w-l.s.c;break;case 2:s[w]=f[w];break;case 3:s[w]=c.header[w-l.s.c];break;default:if(a=n=xi(i=null==i?{w:"__EMPTY",t:"s"}:i,null,c),m=y[n]||0){for(;y[a=n+"_"+m++];);y[n]=m,y[a]=1}else y[n]=1;s[w]=a}for(b=l.s.r+r;b<=l.e.r;++b)!(k[b]||{}).hidden&&(!1===(d=el(e,l,b,f,o,s,v,c)).isempty||(1===o?!1!==c.blankrows:c.blankrows))&&(p[g++]=d.row);return p.length=g,p}var nl=/"/g;function il(e,t,n,i,o,r,s,a){for(var l=!0,c=[],u="",d=fi(n),h=t.s.c;h<=t.e.c;++h)if(i[h]){var f=a.dense?(e[n]||[])[h]:e[i[h]+d];if(null==f)u="";else if(null!=f.v){l=!1,u=""+(a.rawNumbers&&"n"==f.t?f.v:xi(f,null,a));for(var p,g=0;g!==u.length;++g)if((p=u.charCodeAt(g))===o||p===r||34===p||a.forceQuotes){u='"'+u.replace(nl,'""')+'"';break}"ID"==u&&(u='"ID"')}else null==f.f||f.F?u="":(l=!1,0<=(u="="+f.f).indexOf(",")&&(u='"'+u.replace(nl,'""')+'"'));c.push(u)}return!1===a.blankrows&&l?null:c.join(s)}function ol(e,t){var n=[],i=null==t?{}:t;if(null==e||null==e["!ref"])return"";for(var o=yi(e["!ref"]),r=void 0!==i.FS?i.FS:",",s=r.charCodeAt(0),a=void 0!==i.RS?i.RS:"\n",l=a.charCodeAt(0),c=new RegExp(("|"==r?"\\|":r)+"+$"),u="",d=[],h=(i.dense=Array.isArray(e),i.skipHidden&&e["!cols"]||[]),f=i.skipHidden&&e["!rows"]||[],p=o.s.c;p<=o.e.c;++p)(h[p]||{}).hidden||(d[p]=gi(p));for(var g=0,m=o.s.r;m<=o.e.r;++m)(f[m]||{}).hidden||null==(u=il(e,o,m,d,s,l,r,i))||!(u=i.strip?u.replace(c,""):u)&&!1===i.blankrows||n.push((g++?a:"")+u);return delete i.dense,n.join("")}function rl(e,t,n){var i,o=n||{},r=+!o.skipHeader,s=e||{},a=0,l=0,c=(e=(s&&null!=o.origin&&("number"==typeof o.origin?a=o.origin:(n="string"==typeof o.origin?mi(o.origin):o.origin,a=n.r,l=n.c)),{s:{c:0,r:0},e:{c:l,r:a+t.length-1+r}}),s["!ref"]?(n=yi(s["!ref"]),e.e.c=Math.max(e.e.c,n.e.c),e.e.r=Math.max(e.e.r,n.e.r),-1==a&&(a=n.e.r+1,e.e.r=a+t.length-1+r)):-1==a&&(a=0,e.e.r=t.length-1+r),o.header||[]),u=0,d=(t.forEach((function(e,t){xt(e).forEach((function(n){-1==(u=c.indexOf(n))&&(c[u=c.length]=n);n=e[n];var d="z",h="",f=vi({c:l+u,r:a+t+r});i=sl(s,f),!n||"object"!=typeof n||n instanceof Date?("number"==typeof n?d="n":"boolean"==typeof n?d="b":"string"==typeof n?d="s":n instanceof Date?(d="d",o.cellDates||(d="n",n=Ct(n)),h=o.dateNF||Be[14]):null===n&&o.nullError&&(d="e",n=0),i?(i.t=d,i.v=n,delete i.w,delete i.R,h&&(i.z=h)):s[f]=i={t:d,v:n},h&&(i.z=h)):s[f]=n}))})),e.e.c=Math.max(e.e.c,l+c.length-1),fi(a));if(r)for(u=0;u<c.length;++u)s[gi(u+l)+d]={t:"s",v:c[u]};return s["!ref"]=wi(e),s}function sl(e,t,n){var i;return"string"==typeof t?Array.isArray(e)?(e[(i=mi(t)).r]||(e[i.r]=[]),e[i.r][i.c]||(e[i.r][i.c]={t:"z"})):e[t]||(e[t]={t:"z"}):sl(e,vi("number"!=typeof t?t:{r:t,c:n||0}))}function al(){return{SheetNames:[],Sheets:{}}}function ll(e,t,n,i){var o=1;if(!n)for(;o<=65535&&-1!=e.SheetNames.indexOf(n="Sheet"+o);++o,n=void 0);if(!n||65535<=e.SheetNames.length)throw new Error("Too many worksheets");if(i&&0<=e.SheetNames.indexOf(n)){o=(i=n.match(/(^.*?)(\d+)$/))&&+i[2]||0;var r=i&&i[1]||n;for(++o;o<=65535&&-1!=e.SheetNames.indexOf(n=r+o);++o);}if(function(e,t){if(31<e.length){if(t)return;throw new Error("Sheet names cannot exceed 31 chars")}ia.forEach((function(n){if(-1!=e.indexOf(n)&&!t)throw new Error("Sheet name cannot contain : \\ / ? * [ ]")}))}(n),0<=e.SheetNames.indexOf(n))throw new Error("Worksheet with name |"+n+"| already exists!");return e.SheetNames.push(n),e.Sheets[n]=t,n}function cl(e,t,n){return t?(e.l={Target:t},n&&(e.l.Tooltip=n)):delete e.l,e}var ul={encode_col:gi,encode_row:fi,encode_cell:vi,encode_range:wi,decode_col:pi,decode_row:hi,split_cell:function(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")},decode_cell:mi,decode_range:bi,format_cell:xi,sheet_add_aoa:_i,sheet_add_json:rl,sheet_add_dom:Sa,aoa_to_sheet:Ci,json_to_sheet:function(e,t){return rl(null,e,t)},table_to_sheet:Ea,table_to_book:function(e,t){return ki(Ea(e,t),t)},sheet_to_csv:ol,sheet_to_txt:function(e,t){return(t=t||{}).FS="\t",t.RS="\n",e=ol(e,t)},sheet_to_json:tl,sheet_to_html:function(e,t){var n=t||{},i=(t=null!=n.header?n.header:'<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',null!=n.footer?n.footer:"</body></html>"),o=[t],r=bi(e["!ref"]);n.dense=Array.isArray(e),o.push(function(e,t,n){return[].join("")+"<table"+(n&&n.id?' id="'+n.id+'"':"")+">"}(0,0,n));for(var s=r.s.r;s<=r.e.r;++s)o.push(Ca(e,r,s,n));return o.push("</table>"+i),o.join("")},sheet_to_formulae:function(e){var t,n="",i="";if(null==e||null==e["!ref"])return[];for(var o,r=yi(e["!ref"]),s=[],a=[],l=Array.isArray(e),c=r.s.c;c<=r.e.c;++c)s[c]=gi(c);for(var u=r.s.r;u<=r.e.r;++u)for(o=fi(u),c=r.s.c;c<=r.e.c;++c)if(n=s[c]+o,i="",void 0!==(t=l?(e[u]||[])[c]:e[n])){if(null!=t.F){if(n=t.F,!t.f)continue;i=t.f,-1==n.indexOf(":")&&(n=n+":"+n)}if(null!=t.f)i=t.f;else{if("z"==t.t)continue;if("n"==t.t&&null!=t.v)i=""+t.v;else if("b"==t.t)i=t.v?"TRUE":"FALSE";else if(void 0!==t.w)i="'"+t.w;else{if(void 0===t.v)continue;i="s"==t.t?"'"+t.v:""+t.v}}a[a.length]=n+"="+i}return a},sheet_to_row_object_array:tl,sheet_get_cell:sl,book_new:al,book_append_sheet:ll,book_set_sheet_visibility:function(e,t,n){switch(e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]),t=function(e,t){if("number"==typeof t){if(0<=t&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}if("string"!=typeof t)throw new Error("Cannot find sheet |"+t+"|");if(-1<(e=e.SheetNames.indexOf(t)))return e;throw new Error("Cannot find sheet name |"+t+"|")}(e,t),e.Workbook.Sheets[t]||(e.Workbook.Sheets[t]={}),n){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+n)}e.Workbook.Sheets[t].Hidden=n},cell_set_number_format:function(e,t){return e.z=t,e},cell_set_hyperlink:cl,cell_set_internal_link:function(e,t,n){return cl(e,"#"+t,n)},cell_add_comment:function(e,t,n){e.c||(e.c=[]),e.c.push({t:t,a:n||"SheetJS"})},sheet_set_array_formula:function(e,t,n,i){for(var o="string"!=typeof t?t:yi(t),r="string"==typeof t?t:wi(t),s=o.s.r;s<=o.e.r;++s)for(var a=o.s.c;a<=o.e.c;++a){var l=sl(e,s,a);l.t="n",l.F=r,delete l.v,s==o.s.r&&a==o.s.c&&(l.f=n,i)&&(l.D=!0)}return e},consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};function dl(e){return(dl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function hl(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */hl=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,i=(f="function"==typeof Symbol?Symbol:{}).iterator||"@@iterator",o=f.asyncIterator||"@@asyncIterator",r=f.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(t){s=function(e,t,n){return e[t]=n}}function a(e,t,n,i){var o,r,s,a;t=t&&t.prototype instanceof u?t:u,t=Object.create(t.prototype),i=new y(i||[]);return t._invoke=(o=e,r=n,s=i,a="suspendedStart",function(e,t){if("executing"===a)throw new Error("Generator is already running");if("completed"===a){if("throw"===e)throw t;return{value:void 0,done:!0}}for(s.method=e,s.arg=t;;){var n=s.delegate;if(n&&(n=function e(t,n){var i=t.iterator[n.method];if(void 0===i){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=void 0,e(t,n),"throw"===n.method))return c;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}return"throw"===(i=l(i,t.iterator,n.arg)).type?(n.method="throw",n.arg=i.arg,n.delegate=null,c):(i=i.arg)?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,c):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,c)}(n,s))){if(n===c)continue;return n}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if("suspendedStart"===a)throw a="completed",s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);if(a="executing","normal"===(n=l(o,r,s)).type){if(a=s.done?"completed":"suspendedYield",n.arg===c)continue;return{value:n.arg,done:s.done}}"throw"===n.type&&(a="completed",s.method="throw",s.arg=n.arg)}}),t}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=a;var c={};function u(){}function d(){}function h(){}var f,p,g=((p=(p=(s(f={},i,(function(){return this})),Object.getPrototypeOf))&&p(p(x([]))))&&p!==t&&n.call(p,i)&&(f=p),h.prototype=u.prototype=Object.create(f));function m(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function v(e,t){var i;this._invoke=function(o,r){function s(){return new t((function(i,s){!function i(o,r,s,a){var c;if("throw"!==(o=l(e[o],e,r)).type)return(r=(c=o.arg).value)&&"object"==dl(r)&&n.call(r,"__await")?t.resolve(r.__await).then((function(e){i("next",e,s,a)}),(function(e){i("throw",e,s,a)})):t.resolve(r).then((function(e){c.value=e,s(c)}),(function(e){return i("throw",e,s,a)}));a(o.arg)}(o,r,i,s)}))}return i=i?i.then(s,s):s()}}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function y(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function x(e){if(e){var t,o=e[i];if(o)return o.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return t=-1,(o=function i(){for(;++t<e.length;)if(n.call(e,t))return i.value=e[t],i.done=!1,i;return i.value=void 0,i.done=!0,i}).next=o}return{next:k}}function k(){return{value:void 0,done:!0}}return s(g,"constructor",d.prototype=h),s(h,"constructor",d),d.displayName=s(h,r,"GeneratorFunction"),e.isGeneratorFunction=function(e){return!!(e="function"==typeof e&&e.constructor)&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,r,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},m(v.prototype),s(v.prototype,o,(function(){return this})),e.AsyncIterator=v,e.async=function(t,n,i,o,r){void 0===r&&(r=Promise);var s=new v(a(t,n,i,o),r);return e.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},m(g),s(g,r,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t,n=[];for(t in e)n.push(t);return n.reverse(),function t(){for(;n.length;){var i=n.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},e.values=x,y.prototype={constructor:y,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function i(n,i){return s.type="throw",s.arg=e,t.next=n,i&&(t.method="next",t.arg=void 0),!!i}for(var o=this.tryEntries.length-1;0<=o;--o){var r=this.tryEntries[o],s=r.completion;if("root"===r.tryLoc)return i("end");if(r.tryLoc<=this.prev){var a=n.call(r,"catchLoc"),l=n.call(r,"finallyLoc");if(a&&l){if(this.prev<r.catchLoc)return i(r.catchLoc,!0);if(this.prev<r.finallyLoc)return i(r.finallyLoc)}else if(a){if(this.prev<r.catchLoc)return i(r.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return i(r.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;0<=i;--i){var o=this.tryEntries[i];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var r=o;break}}var s=(r=r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc?null:r)?r.completion:{};return s.type=e,s.arg=t,r?(this.method="next",this.next=r.finallyLoc,c):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),c},finish:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),w(n),c}},catch:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var n,i,o=this.tryEntries[t];if(o.tryLoc===e)return"throw"===(n=o.completion).type&&(i=n.arg,w(o)),i}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},e}function fl(e,t){var n,i,o,r,s="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(s)return i=!(n=!0),{s:function(){s=s.call(e)},n:function(){var e=s.next();return n=e.done,e},e:function(e){i=!0,o=e},f:function(){try{n||null==s.return||s.return()}finally{if(i)throw o}}};if(Array.isArray(e)||(s=function(e,t){var n;if(e)return"string"==typeof e?pl(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pl(e,t):void 0}(e))||t&&e&&"number"==typeof e.length)return s&&(e=s),r=0,{s:t=function(){},n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function pl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function gl(e,t,n,i,o,r,s){try{var a=e[r](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(i,o)}Mr={name:"th-making-form",components:{Draggable:H.a,WidgetConfig:z,FormConfig:D,WidgetForm:G,GenerateForm:J,ThDialog:y,ThCodeEditor:_.a},props:{preview:{type:Boolean,default:!1},generateCode:{type:Boolean,default:!1},generateJson:{type:Boolean,default:!1},upload:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},basicFields:{type:Array,default:function(){return["input","textarea","cell","radio","checkbox","time","date","rate","number","color","select","switch","slider","text","button","filler","image","upload","editor","cascader"]}},advanceFields:{type:Array,default:function(){return["table","table_h5","tabs","blank"]}},layoutFields:{type:Array,default:function(){return["grid","alliance","divider"]}},remoteApis:{type:Array,default:function(){return[]}}},data:function(){return{basicComponents:Q,layoutComponents:te,advanceComponents:ee,widgetFormSelect:null,widgetFormData:{list:[],config:ne},widgetValue:{},configTab:"widget",client:"monitor",dialog:{import:{visible:!1,value:""},preview:{visible:!1,value:""},data:{visible:!1,value:"",valueCopy:""},config:{visible:!1,value:"",valueCopy:""},code:{visible:!1,valueHtml:"",valueVue:"",type:"vue"}},remoteFuncs:{func_test:function(e){setTimeout((function(){e([{id:"1",name:"1111"},{id:"2",name:"2222"},{id:"3",name:"3333"}])}),2e3)},funcGetToken:function(e){ie.get("http://tools-server.making.link/api/uptoken").then((function(t){e(t.uptoken)}))},upload_callback:function(e,t,n){console.log("callback",e,t,n)}},jsonClipboard:null,slotKeys:[]}},computed:{getBasicComponents:function(){var e=this;return this.basicComponents.filter((function(t){return e.basicFields.includes(t.type)}))},getAdvanceComponents:function(){var e=this;return this.advanceComponents.filter((function(t){return e.advanceFields.includes(t.type)}))},getLayoutComponents:function(){var e=this;return this.layoutComponents.filter((function(t){return e.layoutFields.includes(t.type)}))}},mounted:function(){},methods:{readExcelFile:function(e){return new Promise((function(t){var n=new FileReader;n.readAsBinaryString(e),n.onload=function(e){t(e.target.result)}}))},onExcelFileChange:function(e){var t,n=this;return t=hl().mark((function t(){var i,o,r,s,a,l,c,u,d,h,f,p,g,m,v,b,w,y;return hl().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=e.raw){t.next=6;break}return console.log("文件打开失败"),t.abrupt("return");case 6:return t.next=8,n.readExcelFile(i);case 8:for(l=(l=Qa(l=t.sent,{type:"binary"})).Sheets[l.SheetNames[0]],l=n.parseDom(ul.sheet_to_html(l)),o=l.getElementsByTagName("tr"),console.log("rowsDom =>",o),s=r=0;s<o[0].childNodes.length;s++)a=o[0].childNodes[s],r+=a.colSpan||1;console.log("rowSpan =>",r),l=24/r,c={list:[],config:{ui:"element",title:"",width:"",labelWidth:100,labelPosition:"right",labelSuffix:":",size:"small",disabled:!1,hideLabel:!1,eventScript:[{key:"mounted",name:"mounted",func:""},{key:"refresh",name:"refresh",func:""}]}},u=fl(o),t.prev=20,u.s();case 22:if((f=u.n()).done){t.next=51;break}f=f.value,d=Date.parse(new Date)+"_"+Math.ceil(99999*Math.random()),(h=n.getComponentsConfig("grid")).columns=[],h.key=d,h.model="grid_"+d,f=f.childNodes,console.log("colsDom =>",f),g=p=0;case 33:g<f.length?g%2!=0?t.next=38:(p=0,t.next=39):t.next=48;break;case 38:return t.abrupt("continue",45);case 39:if(m=Date.parse(new Date)+"_"+Math.ceil(99999*Math.random()),v=f[g],b=f[g+1],v.innerText||b.innerText){t.next=44;break}return t.abrupt("continue",45);case 44:f[g+1]?(p=((v.colSpan||1)+(b.colSpan||1))*l,(w=n.getComponentsConfig("input")).name=v.innerText,w.options.defaultValue=b.innerText,w.key=m,w.model="input_"+m,h.columns.push({span:p,list:[w]})):(p=v.colSpan*l,(w=n.getComponentsConfig("text")).name=v.innerText,w.options.defaultValue=v.innerText,w.options.hideLabel=!0,w.key=m,w.model="text_"+m,h.columns.push({span:p,list:[w]}));case 45:g++,t.next=33;break;case 48:h.columns.length?c.list.push(h):((y=n.getComponentsConfig("filler")).name="",y.key=d,y.model="filler_"+d,c.list.push(y));case 49:t.next=22;break;case 51:t.next=56;break;case 53:t.prev=53,t.t0=t.catch(20),u.e(t.t0);case 56:return t.prev=56,u.f(),t.finish(56);case 59:n.setJSON(c);case 60:case"end":return t.stop()}}),t,null,[[20,53,56,59]])})),function(){var e=this,n=arguments;return new Promise((function(i,o){var r=t.apply(e,n);function s(e){gl(r,i,o,s,a,"next",e)}function a(e){gl(r,i,o,s,a,"throw",e)}s(void 0)}))}()},getComponentsConfig:function(e){var t,n=null,i=fl(this.basicComponents);try{for(i.s();!(t=i.n()).done;){var o=t.value;if(e===o.type)return n=JSON.parse(JSON.stringify(o))}}catch(e){i.e(e)}finally{i.f()}var r,s=fl(this.layoutComponents);try{for(s.s();!(r=s.n()).done;){var a=r.value;if(e===a.type)return n=JSON.parse(JSON.stringify(a))}}catch(e){s.e(e)}finally{s.f()}return n},parseDom:function(e){var t=document.createElement("div");return t.innerHTML=e,t.childNodes[2]},initClipboard:function(){var e=this;this.jsonClipboard||(this.jsonClipboard=new U.a(".json-btn"),this.jsonClipboard.on("success",(function(t){e.$message.success("复制成功")})))},handleConfigSelect:function(e){this.configTab=e},handlePreview:function(){this.slotKeys=Object.keys(this.$slots),this.dialog.preview.visible=!0},handleGetData:function(){var e=this;this.$refs.generateForm.getData().then((function(t){e.dialog.data={visible:!0,value:JSON.stringify(t,null,2),valueCopy:JSON.stringify(t,null,2)},e.$nextTick((function(){e.initClipboard()}))}))},handleReset:function(){this.$refs.generateForm.reset()},handleGenerateJson:function(){var e=this;this.dialog.config={visible:!0,value:JSON.stringify(this.widgetFormData,null,2),valueCopy:JSON.stringify(this.widgetFormData,null,2)},this.$nextTick((function(){e.initClipboard()}))},handleGenerateCode:function(){this.dialog.code={visible:!0,valueHtml:oe(JSON.stringify(this.widgetFormData),"html"),valueVue:oe(JSON.stringify(this.widgetFormData),"vue"),type:"vue"}},handleUploadJson:function(){try{this.setJSON(JSON.parse(this.dialog.import.value)),this.dialog.import.visible=!1}catch(e){this.$message.error(e.message)}},handleDialogFullscreen:function(){this.$refs.vueCodeEditor.resize(),this.$refs.htmlCodeEditor.resize()},handleClear:function(){this.widgetFormData={list:[],config:ne},this.widgetFormSelect={}},clear:function(){this.handleClear()},getJSON:function(){return this.widgetFormData},getHtml:function(){return oe(JSON.stringify(this.widgetFormData))},setJSON:function(e){0<(this.widgetFormData=e).list.length&&(this.widgetFormSelect=e.list[0])},handleDataChange:function(e,t,n){}},watch:{widgetFormData:{deep:!0,handler:function(e){}}}};var ml=Object(l.a)(Mr,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"fm-container"},[n("el-container",{staticClass:"container-box"},[n("el-main",[n("el-container",[n("el-aside",{attrs:{width:"250px"}},[n("div",{staticClass:"components-list"},[e.basicFields.length?n("div",[n("div",{staticClass:"widget-cate"},[e._v("基础字段")]),e._v(" "),n("draggable",e._b({attrs:{tag:"ul",list:e.getBasicComponents}},"draggable",{group:{name:"people",pull:"clone",put:!1},sort:!1,ghostClass:"ghost"},!1),e._l(e.getBasicComponents,(function(t,i){return n("li",{key:i,staticClass:"form-edit-widget-label",class:((i={"no-put":"divider"==t.type})[t.type]=!0,i)},[n("a",[n("i",{staticClass:"icon iconfont",class:t.icon}),e._v(" "),n("span",[e._v(e._s(t.name))])])])})),0)],1):e._e(),e._v(" "),e.advanceFields.length?n("div",[n("div",{staticClass:"widget-cate"},[e._v("高级字段")]),e._v(" "),n("draggable",e._b({attrs:{tag:"ul",list:e.getAdvanceComponents}},"draggable",{group:{name:"people",pull:"clone",put:!1},sort:!1,ghostClass:"ghost"},!1),e._l(e.getAdvanceComponents,(function(t,i){return n("li",{key:i,staticClass:"form-edit-widget-label",class:((i={"no-put":["table","table_h5","tabs"].includes(t.type)})[t.type]=!0,i)},[n("a",[n("i",{staticClass:"icon iconfont",class:t.icon}),e._v(" "),n("span",[e._v(e._s(t.name))])])])})),0)],1):e._e(),e._v(" "),e.layoutFields.length?n("div",[n("div",{staticClass:"widget-cate"},[e._v("布局字段")]),e._v(" "),n("draggable",e._b({attrs:{tag:"ul",list:e.getLayoutComponents}},"draggable",{group:{name:"people",pull:"clone",put:!1},sort:!1,ghostClass:"ghost"},!1),e._l(e.getLayoutComponents,(function(t,i){return n("li",{key:i,staticClass:"form-edit-widget-label",class:((i={"no-put":["alliance"].includes(t.type)})[t.type]=!0,i)},[n("a",[n("i",{staticClass:"icon iconfont",class:t.icon}),e._v(" "),n("span",[e._v(e._s(t.name))])])])})),0)],1):e._e()])]),e._v(" "),n("el-container",{staticClass:"center-container",attrs:{direction:"vertical"}},[n("el-header",[n("div",{staticClass:"client"},[n("i",{staticClass:"el-icon-monitor",class:{active:"monitor"===e.client},on:{click:function(t){e.client="monitor"}}}),e._v(" "),n("i",{staticClass:"el-icon-mobile",class:{active:"mobile"===e.client},on:{click:function(t){e.client="mobile"}}})]),e._v(" "),e._t("action"),e._v(" "),n("el-popover",{staticStyle:{margin:"0 10px"},attrs:{placement:"top",trigger:"hover"}},[n("el-button",{attrs:{slot:"reference",type:"text",size:"medium",icon:"el-icon-upload2"},slot:"reference"},[e._v("导入")]),e._v(" "),n("div",[n("el-upload",{attrs:{action:"",accept:".xlsx, .xls","auto-upload":!1,"show-file-list":!1,"on-change":e.onExcelFileChange}},[e.upload?n("el-button",{attrs:{type:"text",size:"medium"}},[e._v("导入EXCEL\n ")]):e._e()],1),e._v(" "),e.upload?n("el-button",{attrs:{type:"text",size:"medium"},on:{click:function(t){e.dialog.import.visible=!0}}},[e._v("导入JSON\n ")]):e._e()],1)],1),e._v(" "),e.clearable?n("el-button",{attrs:{type:"text",size:"medium",icon:"el-icon-delete"},on:{click:e.handleClear}},[e._v("清空\n ")]):e._e(),e._v(" "),e.preview?n("el-button",{attrs:{type:"text",size:"medium",icon:"el-icon-view"},on:{click:e.handlePreview}},[e._v("预览\n ")]):e._e(),e._v(" "),e.generateJson?n("el-button",{attrs:{type:"text",size:"medium",icon:"el-icon-tickets"},on:{click:e.handleGenerateJson}},[e._v("生成JSON")]):e._e(),e._v(" "),e.generateCode?n("el-button",{attrs:{type:"text",size:"medium",icon:"el-icon-document"},on:{click:e.handleGenerateCode}},[e._v("生成代码")]):e._e()],2),e._v(" "),n("el-main",[n("widget-form",{ref:"widgetForm",attrs:{data:e.widgetFormData,select:e.widgetFormSelect,client:e.client},on:{"update:select":function(t){e.widgetFormSelect=t}}})],1)],1),e._v(" "),n("el-aside",{staticClass:"config-container"},[n("el-container",[n("el-header",{attrs:{height:"45px"}},[n("div",{staticClass:"config-tab",class:{active:"widget"==e.configTab},on:{click:function(t){return e.handleConfigSelect("widget")}}},[e._v("\n 字段属性\n ")]),e._v(" "),n("div",{staticClass:"config-tab",class:{active:"form"==e.configTab},on:{click:function(t){return e.handleConfigSelect("form")}}},[e._v("\n 表单属性\n ")])]),e._v(" "),n("el-main",{staticClass:"config-container-content"},[n("widget-config",{directives:[{name:"show",rawName:"v-show",value:"widget"==e.configTab,expression:"configTab == 'widget'"}],attrs:{data:e.widgetFormSelect,remoteApis:e.remoteApis,config:e.widgetFormData.config}}),e._v(" "),n("form-config",{directives:[{name:"show",rawName:"v-show",value:"form"==e.configTab,expression:"configTab == 'form'"}],attrs:{data:e.widgetFormData.config}})],1)],1)],1),e._v(" "),n("th-dialog",{attrs:{title:"导入JSON",visible:e.dialog.import.visible},on:{"on-close":function(t){e.dialog.import.visible=!1},"on-affirm":e.handleUploadJson,"on-fullscreen":function(t){return e.$refs.valueCodeEditor.resize()}}},[n("el-alert",{attrs:{type:"info",title:"JSON格式如下,直接复制生成的json覆盖此处代码点击确定即可"}}),e._v(" "),n("th-code-editor",{ref:"valueCodeEditor",model:{value:e.dialog.import.value,callback:function(t){e.$set(e.dialog.import,"value",t)},expression:"dialog.import.value"}})],1),e._v(" "),n("th-dialog",{attrs:{title:"预览",visible:e.dialog.preview.visible},on:{"on-close":function(t){e.dialog.preview.visible=!1}}},[e.dialog.preview.visible?n("generate-form",{ref:"generateForm",attrs:{data:e.widgetFormData,value:e.widgetValue,remote:e.remoteFuncs,slotKeys:e.slotKeys,client:e.client,insite:"true"},on:{"on-change":e.handleDataChange}},[e._l(e.slotKeys,(function(t){return n("template",{slot:t},[e._t(t)],2)}))],2):e._e(),e._v(" "),n("template",{slot:"footer"},[n("el-button",{attrs:{type:"primary"},on:{click:e.handleGetData}},[e._v("获取数据")]),e._v(" "),n("el-button",{on:{click:e.handleReset}},[e._v("重置")])],1)],2),e._v(" "),n("th-dialog",{attrs:{title:"获取数据",visible:e.dialog.data.visible},on:{"on-close":function(t){e.dialog.data.visible=!1},"on-fullscreen":function(t){return e.$refs.dataCodeEditor.resize()}}},[n("th-code-editor",{ref:"dataCodeEditor",model:{value:e.dialog.data.value,callback:function(t){e.$set(e.dialog.data,"value",t)},expression:"dialog.data.value"}}),e._v(" "),n("template",{slot:"footer"},[n("el-button",{staticClass:"json-btn",attrs:{type:"primary","data-clipboard-text":e.dialog.data.valueCopy}},[e._v("复制数据")])],1)],2),e._v(" "),n("th-dialog",{attrs:{title:"生成JSON",visible:e.dialog.config.visible},on:{"on-close":function(t){e.dialog.config.visible=!1},"on-fullscreen":function(t){return e.$refs.jsonCodeEditor.resize()}}},[n("th-code-editor",{ref:"jsonCodeEditor",model:{value:e.dialog.config.value,callback:function(t){e.$set(e.dialog.config,"value",t)},expression:"dialog.config.value"}}),e._v(" "),n("template",{slot:"footer"},[n("el-button",{staticClass:"json-btn",attrs:{type:"primary","data-clipboard-text":e.dialog.config.valueCopy}},[e._v("复制数据")])],1)],2),e._v(" "),n("th-dialog",{staticClass:"codeDialog",attrs:{title:"生成代码",visible:e.dialog.code.visible,showFooter:!1},on:{"on-close":function(t){e.dialog.code.visible=!1},"on-fullscreen":e.handleDialogFullscreen}},[n("el-tabs",{staticStyle:{"box-shadow":"none"},attrs:{type:"border-card"},model:{value:e.dialog.code.type,callback:function(t){e.$set(e.dialog.code,"type",t)},expression:"dialog.code.type"}},[n("el-tab-pane",{attrs:{label:"Vue Component",name:"vue"}},[n("th-code-editor",{ref:"vueCodeEditor",attrs:{language:"html",readonly:""},model:{value:e.dialog.code.valueVue,callback:function(t){e.$set(e.dialog.code,"valueVue",t)},expression:"dialog.code.valueVue"}})],1),e._v(" "),n("el-tab-pane",{attrs:{label:"HTML",name:"html"}},[n("th-code-editor",{ref:"htmlCodeEditor",attrs:{language:"html",readonly:""},model:{value:e.dialog.code.valueHtml,callback:function(t){e.$set(e.dialog.code,"valueHtml",t)},expression:"dialog.code.valueHtml"}})],1)],1)],1)],1)],1)],1)],1)}),[],!1,null,null,null).exports,vl=(ml.install=function(e){e.component(ml.name,ml)},J.install=function(e){e.component(J.name,J)},[ml,J]);function bl(e,t){var n,i=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)),i}function wl(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};yl.forEach((function(t){e.component(t.name,t)})),e.prototype.$TIANHENG={size:t.size||"",zIndex:t.zIndex||2e3}}"undefined"!=typeof window&&window.Vue&&function(e){vl.forEach((function(t){e.component(t.name,t)}))}(window.Vue);var yl=[o,s,a,d,f,g,v,w,x,C,S,A,L,M,N,q,ml,J];"undefined"!=typeof window&&window.Vue&&wl(window.Vue),t.default=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bl(Object(n),!0).forEach((function(t){var i,o;i=e,o=n[t=t],t in i?Object.defineProperty(i,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[t]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({version:"0.0.64",install:wl},yl)}])}));
87
+ /*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function Ra(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Ma(e){return"undefined"!=typeof TextDecoder?(new TextDecoder).decode(e):hn(Ee(e))}function Ia(e){var t=e.reduce((function(e,t){return e+t.length}),0),n=new Uint8Array(t),i=0;return e.forEach((function(e){n.set(e,i),i+=e.length})),n}function Na(e){return 16843009*((e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135)>>>24}function Da(e,t){var n=t?t[0]:0,i=127&e[n];return 128<=e[n++]&&(i|=(127&e[n])<<7,e[n++]<128||(i|=(127&e[n])<<14,e[n++]<128)||(i|=(127&e[n])<<21,e[n++]<128)||(i+=(127&e[n])*Math.pow(2,28),++n,e[n++]<128)||(i+=(127&e[n])*Math.pow(2,35),++n,e[n++]<128)||(i+=(127&e[n])*Math.pow(2,42),++n,e[n++])),t&&(t[0]=n),i}function Pa(e){var t=0,n=127&e[0];return 128<=e[t++]&&(n|=(127&e[1])<<7,e[t++]<128||(n|=(127&e[2])<<14,e[t++]<128)||(n|=(127&e[3])<<21,e[+t]<128)||(n|=(127&e[4])<<28)),n}function Fa(e){for(var t=[],n=[0];n[0]<e.length;){var i,o=n[0],r=Da(e,n),s=7&r,a=0;if(0==(r=Math.floor(r/8)))break;switch(s){case 0:for(var l=n[0];128<=e[n[0]++];);i=e.slice(l,n[0]);break;case 5:i=e.slice(n[0],n[0]+(a=4)),n[0]+=a;break;case 1:i=e.slice(n[0],n[0]+(a=8)),n[0]+=a;break;case 2:a=Da(e,n),i=e.slice(n[0],n[0]+a),n[0]+=a;break;default:throw new Error("PB Type ".concat(s," for Field ").concat(r," at offset ").concat(o))}var c={data:i,type:s};null==t[r]?t[r]=[c]:t[r].push(c)}return t}function qa(e,t){return(null==e?void 0:e.map((function(e){return t(e.data)})))||[]}function Ba(e,t,n){switch(e[0]){case 0:case 1:case 2:case 3:var i,o=e,r=t,s=n,a=e[0],l=Ra(o),c=l.getUint32(4,!0),u=(1<a?12:8)+4*Na(c&(1<a?3470:398)),d=-1,h=-1,f=NaN,p=new Date(2001,0,1);switch(512&c&&(d=l.getUint32(u,!0),u+=4),u+=4*Na(c&(1<a?12288:4096)),16&c&&(h=l.getUint32(u,!0),u+=4),32&c&&(f=l.getFloat64(u,!0),u+=8),64&c&&(p.setTime(p.getTime()+1e3*l.getFloat64(u,!0)),u+=8),o[2]){case 0:break;case 2:i={t:"n",v:f};break;case 3:i={t:"s",v:r[h]};break;case 5:i={t:"d",v:p};break;case 6:i={t:"b",v:0<f};break;case 7:i={t:"n",v:f/86400};break;case 8:i={t:"e",v:0};break;case 9:if(-1<d)i={t:"s",v:s[d]};else if(-1<h)i={t:"s",v:r[h]};else{if(isNaN(f))throw new Error("Unsupported cell type ".concat(o.slice(0,4)));i={t:"n",v:f}}break;default:throw new Error("Unsupported cell type ".concat(o.slice(0,4)))}return i;case 5:return function(e,t,n){var i,o=Ra(e),r=o.getUint32(8,!0),s=12,a=-1,l=-1,c=NaN,u=NaN,d=new Date(2001,0,1);switch(1&r&&(c=function(e,t){for(var n=(127&e[t+15])<<7|e[t+14]>>1,i=1&e[t+14],o=t+13;t<=o;--o)i=256*i+e[o];return(128&e[t+15]?-i:i)*Math.pow(10,n-6176)}(e,s),s+=16),2&r&&(u=o.getFloat64(s,!0),s+=8),4&r&&(d.setTime(d.getTime()+1e3*o.getFloat64(s,!0)),s+=8),8&r&&(l=o.getUint32(s,!0),s+=4),16&r&&(a=o.getUint32(s,!0),s+=4),e[1]){case 0:break;case 2:i={t:"n",v:c};break;case 3:i={t:"s",v:t[l]};break;case 5:i={t:"d",v:d};break;case 6:i={t:"b",v:0<u};break;case 7:i={t:"n",v:u/86400};break;case 8:i={t:"e",v:0};break;case 9:if(!(-1<a))throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(31&r," : ").concat(e.slice(0,4)));i={t:"s",v:n[a]};break;case 10:i={t:"n",v:c};break;default:throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(31&r," : ").concat(e.slice(0,4)))}return i}(e,t,n);default:throw new Error("Unsupported payload version ".concat(e[0]))}}function ja(e){return Da(Fa(e)[1][0].data)}function Wa(e,t){var n=Pa((t=Fa(t.data))[1][0].data),i=(t=t[3],[]);return(t||[]).forEach((function(t){var o=Fa(t.data),r=Pa(o[1][0].data)>>>0;switch(n){case 1:i[r]=Ma(o[3][0].data);break;case 8:var s=Fa(e[ja(o[9][0].data)][0].data),a=Pa((s=e[ja(s[1][0].data)][0]).meta[1][0].data);if(2001!=a)throw new Error("2000 unexpected reference to ".concat(a));a=Fa(s.data),i[r]=a[3].map((function(e){return Ma(e.data)})).join("")}})),i}function za(e,t){var n={"!ref":"A1"};if(6001!=(o=Pa((t=e[ja(Fa(t.data)[2][0].data)])[0].meta[1][0].data)))throw new Error("6000 unexpected reference to ".concat(o));var i=e,o=t[0],r=n;o=Fa(o.data);if((e={s:{r:0,c:0},e:{r:0,c:0}}).e.r=(Pa(o[6][0].data)>>>0)-1,e.e.r<0)throw new Error("Invalid row varint ".concat(o[6][0].data));if(e.e.c=(Pa(o[7][0].data)>>>0)-1,e.e.c<0)throw new Error("Invalid col varint ".concat(o[7][0].data));r["!ref"]=wi(e);e=Fa(o[4][0].data);var s=Wa(i,i[ja(e[4][0].data)][0]),a=null!=(o=e[17])&&o[0]?Wa(i,i[ja(e[17][0].data)][0]):[],l=(o=Fa(e[3][0].data),0);return o[1].forEach((function(e){e=Fa(e.data);var t=Pa((e=i[ja(e[2][0].data)][0]).meta[1][0].data);if(6002!=t)throw new Error("6001 unexpected reference to ".concat(t));(t=function(e,t){var n=null!=(i=null==(t=Fa(t.data))?void 0:t[7])&&i[0]?0<Pa(t[7][0].data)>>>0?1:0:-1,i=qa(t[5],(function(e){var t,i,o,r=n,s=Pa((e=Fa(e))[1][0].data)>>>0,a=Pa(e[2][0].data)>>>0,l=(null==(l=null==(l=e[8])?void 0:l[0])?void 0:l.data)&&0<Pa(e[8][0].data)||!1;if(null!=(t=null==(t=e[7])?void 0:t[0])&&t.data&&0!=r)i=null==(t=null==(t=e[7])?void 0:t[0])?void 0:t.data,o=null==(t=null==(t=e[6])?void 0:t[0])?void 0:t.data;else{if(null==(t=null==(t=e[4])?void 0:t[0])||!t.data||1==r)throw"NUMBERS Tile missing ".concat(r," cell storage");i=null==(r=null==(t=e[4])?void 0:t[0])?void 0:r.data,o=null==(r=null==(t=e[3])?void 0:t[0])?void 0:r.data}for(var c=l?4:1,u=Ra(i),d=[],h=0;h<i.length/2;++h){var f=u.getUint16(2*h,!0);f<65535&&d.push([h,f])}if(d.length!=a)throw"Expected ".concat(a," cells, found ").concat(d.length);var p=[];for(h=0;h<d.length-1;++h)p[d[h][0]]=o.subarray(d[h][1]*c,d[h+1][1]*c);return 1<=d.length&&(p[d[d.length-1][0]]=o.subarray(d[d.length-1][1]*c)),{R:s,cells:p}}));return{nrows:Pa(t[4][0].data)>>>0,data:i.reduce((function(e,t){return e[t.R]||(e[t.R]=[]),t.cells.forEach((function(n,i){if(e[t.R][i])throw new Error("Duplicate cell r=".concat(t.R," c=").concat(i));e[t.R][i]=n})),e}),[])}}(0,e)).data.forEach((function(e,t){e.forEach((function(e,n){n=vi({r:l+t,c:n}),(e=Ba(e,s,a))&&(r[n]=e)}))})),l+=t.nrows})),n}function Ha(e){var t={},n=[];if(e.FullPaths.forEach((function(e){if(e.match(/\.iwpv2/))throw new Error("Unsupported password protection")})),e.FileIndex.forEach((function(e){if(e.name.match(/\.iwa$/)){var i,o;try{i=function(e){for(var t=[],n=0;n<e.length;){var i=e[n++],o=e[n]|e[n+1]<<8|e[n+2]<<16;n+=3,t.push(function(e,t){if(0!=e)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var n=[0],i=(e=Da(t,n),[]);n[0]<t.length;){var o=3&t[n[0]];if(0==o){var r=t[n[0]++]>>2;r<60?++r:(s=r-59,r=t[n[0]],1<s&&(r|=t[n[0]+1]<<8),2<s&&(r|=t[n[0]+2]<<16),3<s&&(r|=t[n[0]+3]<<24),r>>>=0,r++,n[0]+=s),i.push(t.slice(n[0],n[0]+r)),n[0]+=r}else{var s=0,a=0;if(1==o?(a=4+(t[n[0]]>>2&7),s=(224&t[n[0]++])<<3,s|=t[n[0]++]):(a=1+(t[n[0]++]>>2),2==o?(s=t[n[0]]|t[n[0]+1]<<8,n[0]+=2):(s=(t[n[0]]|t[n[0]+1]<<8|t[n[0]+2]<<16|t[n[0]+3]<<24)>>>0,n[0]+=4)),i=[Ia(i)],0==s)throw new Error("Invalid offset 0");if(s>i[0].length)throw new Error("Invalid offset beyond length");if(s<=a)for(i.push(i[0].slice(-s)),a-=s;a>=i[i.length-1].length;)i.push(i[i.length-1]),a-=i[i.length-1].length;i.push(i[0].slice(-s,-s+a))}}var l=Ia(i);if(l.length!=e)throw new Error("Unexpected length: ".concat(l.length," != ").concat(e));return l}(i,e.slice(n,n+o))),n+=o}if(n!==e.length)throw new Error("data is not a valid framed stream!");return Ia(t)}(e.content)}catch(i){return console.log("?? "+e.content.length+" "+(i.message||i))}try{o=function(e){for(var t=[],n=[0];n[0]<e.length;){var i=Da(e,n),o=Fa(e.slice(n[0],n[0]+i)),r=(n[0]+=i,{id:Pa(o[1][0].data),messages:[]});o[2].forEach((function(t){var i=Pa((t=Fa(t.data))[3][0].data);r.messages.push({meta:t,data:e.slice(n[0],n[0]+i)}),n[0]+=i})),null!=(i=o[3])&&i[0]&&(r.merge=0<Pa(o[3][0].data)>>>0),t.push(r)}return t}(i)}catch(i){return console.log("## "+(i.message||i))}o.forEach((function(e){t[e.id]=e.messages,n.push(e.id)}))}})),!n.length)throw new Error("File has no messages");var i=(null==(e=null==(e=null==(e=null==(e=null==t?void 0:t[1])?void 0:e[0])?void 0:e.meta)?void 0:e[1])?void 0:e[0].data)&&1==Pa(t[1][0].meta[1][0].data)&&t[1][0];if(i||n.forEach((function(e){t[e].forEach((function(e){if(1==Pa(e.meta[1][0].data)>>>0){if(i)throw new Error("Document has multiple roots");i=e}}))})),i)return function(e,t){var n={SheetNames:[],Sheets:{}};if(qa(Fa(t.data)[1],ja).forEach((function(t){e[t].forEach((function(t){var i,o,r,s;2==Pa(t.meta[1][0].data)&&(o=e,t=Fa((t=t).data),s={name:null!=(r=t[1])&&r[0]?Ma(t[1][0].data):"",sheets:[]},qa(t[2],ja).forEach((function(e){o[e].forEach((function(e){6e3==Pa(e.meta[1][0].data)&&s.sheets.push(za(o,e))}))})),(i=s).sheets.forEach((function(e,t){ll(n,e,0==t?i.name:i.name+"_"+t,!0)})))}))})),0==n.SheetNames.length)throw new Error("Empty NUMBERS file");return n}(t,i);throw new Error("Cannot find Document root")}function Ua(e){!function(e){return function(t){for(var n=0;n!=e.length;++n){var i=e[n];void 0===t[i[0]]&&(t[i[0]]=i[1]),"n"===i[2]&&(t[i[0]]=Number(t[i[0]]))}}}([["cellNF",!1],["cellHTML",!0],["cellFormula",!0],["cellStyles",!1],["cellText",!0],["cellDates",!1],["sheetStubs",!1],["sheetRows",0,"n"],["bookDeps",!1],["bookSheets",!1],["bookProps",!1],["bookFiles",!1],["bookVBA",!1],["password",""],["WTF",!1]])(e)}function Va(e,t,n,i,o,r,s,a,l,c,u,d){try{r[i]=Yi(zt(e,n,!0),t);var h,f,p,g,m,v=Wt(e,t);switch(a){case"sheet":m=sa(v,t,o,l,r[i],c,u,d);break;case"chart":(m=function(e,t,n,i,o,r){if(".bin"===t.slice(-4)){var s=i,a=n,l=r;if(!(t=e))return t;i=(i=o)||{"!id":{}};var c={"!type":"chart","!drawel":null,"!rel":""},u=[],d=!1;return si(t,(function(e,t,n){switch(n){case 550:c["!rel"]=e;break;case 651:l.Sheets[a]||(l.Sheets[a]={}),e.name&&(l.Sheets[a].CodeName=e.name);break;case 562:case 652:case 669:case 679:case 551:case 552:case 476:case 3072:break;case 35:d=!0;break;case 36:d=!1;break;case 37:u.push(n);break;case 38:u.pop();break;default:if(0<t.T)u.push(n);else if(t.T<0)u.pop();else if(!d||s.WTF)throw new Error("Unexpected record 0x"+n.toString(16))}}),s),i["!id"][c["!rel"]]&&(c["!drawel"]=i["!id"][c["!rel"]]),c}return i=n,n=r,(t=e)?(e=(e=o)||{"!id":{}},o={"!type":"chart","!drawel":null,"!rel":""},(r=t.match(Ws))&&Us(r[0],0,n,i),(r=t.match(/drawing r:id="(.*?)"/))&&(o["!rel"]=r[1]),e["!id"][o["!rel"]]&&(o["!drawel"]=e["!id"][o["!rel"]]),o):t}(v,t,o,l,r[i],c))&&m["!drawel"]&&(f=Ki(h=Vt(m["!drawel"].Target,t)),w=zt(e,h,!0),y=Yi(zt(e,f,!0),h),g=Ki(p=Vt(w?(w=(w.match(/<c:chart [^>]*r:id="([^"]*)"/)||["",""])[1],y["!id"][w].Target):"??",h)),m=function(e,t,n,i,o,r){var s,a,l,c,u=r||{"!type":"chart"};return e?(l="A",c={s:{r:2e6,c:2e6},e:{r:a=s=0,c:0}},(e.match(/<c:numCache>[\s\S]*?<\/c:numCache>/gm)||[]).forEach((function(e){n=[],i=(e=e).match(/^<c:numCache>/),(e.match(/<c:pt idx="(\d*)">(.*?)<\/c:pt>/gm)||[]).forEach((function(e){(e=e.match(/<c:pt idx="(\d*?)"><c:v>(.*)<\/c:v><\/c:pt>/))&&(n[+e[1]]=i?+e[2]:e[2])})),o=nn((e.match(/<c:formatCode>([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]),(e.match(/<c:f>(.*?)<\/c:f>/gm)||[]).forEach((function(e){t=e.replace(/<.*?>/g,"")}));var t,n,i,o,r=[n,o,t];c.s.r=c.s.c=0,c.e.c=s,l=gi(s),r[0].forEach((function(e,t){u[l+fi(t)]={t:"n",v:e,z:r[1]},a=t})),c.e.r<a&&(c.e.r=a),++s})),0<s&&(u["!ref"]=wi(c)),u):r}(zt(e,p,!0),0,0,Yi(zt(e,g,!0),p),0,m));break;case"macro":r[i],t.slice(-4),m={"!type":"macro"};break;case"dialog":r[i],t.slice(-4),m={"!type":"dialog"};break;default:throw new Error("Unrecognized sheet type "+a)}s[i]=m;var b=[];r&&r[i]&&xt(r[i]).forEach((function(n){var o,s,a,c,u,d,h="";if(r[i][n].Type==Gi.CMNT){h=Vt(r[i][n].Target,t);var f=function(e,t,n){var i,o,r,s,a,l,c,u;return".bin"===t.slice(-4)?(i=n,o=[],r=[],a=!(s={}),si(e,(function(e,t,n){switch(n){case 632:r.push(e);break;case 635:s=e;break;case 637:s.t=e.t,s.h=e.h,s.r=e.r;break;case 636:s.author=r[s.iauthor],delete s.iauthor,i.sheetRows&&s.rfx&&i.sheetRows<=s.rfx.r||(s.t||(s.t=""),delete s.rfx,o.push(s));break;case 3072:break;case 35:a=!0;break;case 36:a=!1;break;case 37:case 38:break;default:if(!t.T&&(!a||i.WTF))throw new Error("Unexpected record 0x"+n.toString(16))}})),o):(l=n,(t=e).match(/<(?:\w+:)?comments *\/>/)?[]:(c=[],u=[],(n=t.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/))&&n[1]&&n[1].split(/<\/\w*:?author>/).forEach((function(e){""!==e&&""!==e.trim()&&(e=e.match(/<(?:\w+:)?author[^>]*>(.*)/))&&c.push(e[1])})),(n=t.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/))&&n[1]&&n[1].split(/<\/\w*:?comment>/).forEach((function(e){var t,n;""!==e&&""!==e.trim()&&(n=e.match(/<(?:\w+:)?comment[^>]*>/))&&(t={author:(n=Zt(n[0])).authorId&&c[n.authorId]||"sheetjsghost",ref:n.ref,guid:n.guid},n=mi(n.ref),l.sheetRows&&l.sheetRows<=n.r||(e=!!(n=e.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/))&&!!n[1]&&lr(n[1])||{r:"",t:"",h:""},t.r=e.r,"<t></t>"==e.r&&(e.t=e.h=""),t.t=(e.t||"").replace(/\r\n/g,"\n").replace(/\r/g,"\n"),l.cellHTML&&(t.h=e.h),u.push(t)))})),u))}(Wt(e,h,!0),h,l);if(!f||!f.length)return;Ur(m,f,!1)}r[i][n].Type==Gi.TCMNT&&(h=Vt(r[i][n].Target,t),b=b.concat((o=Wt(e,h,!0),s=l,c=!(a=[]),u={},d=0,o.replace(Yt,(function(e,t){var n=Zt(e);switch(Qt(n[0])){case"<?xml":case"<ThreadedComments":case"</ThreadedComments>":break;case"<threadedComment":u={author:n.personId,guid:n.id,ref:n.ref,T:1};break;case"</threadedComment>":null!=u.t&&a.push(u);break;case"<text>":case"<text":d=t+e.length;break;case"</text>":u.t=o.slice(d,t).replace(/\r\n/g,"\n").replace(/\r/g,"\n");break;case"<mentions":case"<mentions>":c=!0;break;case"</mentions>":c=!1;break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":c=!0;break;case"</ext>":c=!1;break;default:if(!c&&s.WTF)throw new Error("unrecognized "+n[0]+" in threaded comments")}return e})),a)))})),b&&b.length&&Ur(m,b,!0,l.people||[])}catch(n){if(l.WTF)throw n}var w,y}function Ga(e){return"/"==e.charAt(0)?e.slice(1):e}function Ka(e,t){if(mt(),Ua(t=t||{}),Bt(e,"META-INF/manifest.xml"))return La(e,t);if(Bt(e,"objectdata.xml"))return La(e,t);if(Bt(e,"Index/Document.iwa")){if("undefined"==typeof Uint8Array)throw new Error("NUMBERS file parsing requires Uint8Array support");var n;return e.FileIndex?Ha(e):(n=yt.utils.cfb_new(),Ht(e).forEach((function(t){!function(e,t,n){if(e.FullPaths){var i;if("string"==typeof n)return i=(xe?ke:function(e){for(var t=[],n=0,i=e.length+250,o=_e(e.length+255),r=0;r<e.length;++r){var s,a=e.charCodeAt(r);a<128?o[n++]=a:a<2048?(o[n++]=192|a>>6&31,o[n++]=128|63&a):55296<=a&&a<57344?(a=64+(1023&a),s=1023&e.charCodeAt(++r),o[n++]=240|a>>8&7,o[n++]=128|a>>2&63,o[n++]=128|s>>6&15|(3&a)<<4,o[n++]=128|63&s):(o[n++]=224|a>>12&15,o[n++]=128|a>>6&63,o[n++]=128|63&a),i<n&&(t.push(o.slice(0,n)),n=0,o=_e(65535),i=65530)}return t.push(o.slice(0,n)),Ae(t)})(n),yt.utils.cfb_add(e,t,i);yt.utils.cfb_add(e,t,n)}else e.file(t,n)}(n,t,function e(t,n,i){if(!i)return qt(jt(t,n));if(!n)return null;try{return e(t,n)}catch(e){return null}}(e,t))})),Ha(n))}if(!Bt(e,"[Content_Types].xml")){if(Bt(e,"index.xml.gz"))throw new Error("Unsupported NUMBERS 08 file");if(Bt(e,"index.xml"))throw new Error("Unsupported NUMBERS 09 file");throw new Error("Unsupported ZIP file")}var i=Ht(e),o=function(e){var t={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};if(e&&e.match){var n={};if((e.match(Yt)||[]).forEach((function(e){var i=Zt(e);switch(i[0].replace(Xt,"<")){case"<?xml":break;case"<Types":t.xmlns=i["xmlns"+(i[0].match(/<(\w+):/)||["",""])[1]];break;case"<Default":n[i.Extension]=i.ContentType;break;case"<Override":void 0!==t[Vi[i.ContentType]]&&t[Vi[i.ContentType]].push(i.PartName)}})),t.xmlns!==Cn)throw new Error("Unknown Namespace: "+t.xmlns);t.calcchain=0<t.calcchains.length?t.calcchains[0]:"",t.sst=0<t.strs.length?t.strs[0]:"",t.style=0<t.styles.length?t.styles[0]:"",t.defaults=n,delete t.calcchains}return t}(zt(e,"[Content_Types].xml")),r=!1;if(0===o.workbooks.length&&Wt(e,s="xl/workbook.xml",!0)&&o.workbooks.push(s),0===o.workbooks.length){if(!Wt(e,s="xl/workbook.bin",!0))throw new Error("Could not find workbook");o.workbooks.push(s),r=!0}"bin"==o.workbooks[0].slice(-3)&&(r=!0);var s,a={},l={};if(!t.bookSheets&&!t.bookProps){if($s=[],o.sst)try{$s=function(e,t,n){if(".bin"===t.slice(-4))return i=n,r=!(o=[]),si(e,(function(e,t,n){switch(n){case 159:o.Count=e[0],o.Unique=e[1];break;case 19:o.push(e);break;case 160:return 1;case 35:r=!0;break;case 36:r=!1;break;default:if(t.T,!r||i.WTF)throw new Error("Unexpected record 0x"+n.toString(16))}})),o;var i,o,r,s=n,a=[],l="";if((t=e)&&(t=t.match(cr))){l=t[2].replace(ur,"").split(dr);for(var c=0;c!=l.length;++c){var u=lr(l[c].trim(),s);null!=u&&(a[a.length]=u)}t=Zt(t[1]),a.Count=t.count,a.Unique=t.uniqueCount}return a}(Wt(e,Ga(o.sst)),o.sst,t)}catch(i){if(t.WTF)throw i}t.cellStyles&&o.themes.length&&(s=zt(e,o.themes[0].replace(/^\//,""),!0)||"",o.themes[0],a=zr(s,t)),o.style&&(l=function(e,t,n,i){if(".bin"!==t.slice(-4))return Rr(e,n,i);t=e;var o,r=n,s=i,a={NumberFmt:[]};for(o in Be)a.NumberFmt[o]=Be[o];a.CellXf=[];var l=[],c=!(a.Fonts=[]);return si(t,(function(e,t,n){switch(n){case 44:a.NumberFmt[e[0]]=e[1],gt(e[1],e[0]);break;case 43:a.Fonts.push(e),null!=e.color.theme&&r&&r.themeElements&&r.themeElements.clrScheme&&(e.color.rgb=wr(r.themeElements.clrScheme[e.color.theme].rgb,e.color.tint||0));break;case 1025:case 45:case 46:break;case 47:617==l[l.length-1]&&a.CellXf.push(e);break;case 48:case 507:case 572:case 475:break;case 1171:case 2102:case 1130:case 512:case 2095:case 3072:break;case 35:c=!0;break;case 36:c=!1;break;case 37:l.push(n),c=!0;break;case 38:l.pop(),c=!1;break;default:if(0<t.T)l.push(n);else if(t.T<0)l.pop();else if(!c||s.WTF&&37!=l[l.length-1])throw new Error("Unexpected record 0x"+n.toString(16))}})),a}(Wt(e,Ga(o.style)),o.style,a,t))}o.links.map((function(n){try{return Yi(zt(e,Ki(Ga(n))),n),function(e,t,n,i){if(".bin"===n.slice(-4)){if(!(n=e))return n;var o=(e=i)||{},r=!1;si(n,(function(e,t,n){switch(n){case 359:case 363:case 364:case 366:case 367:case 368:case 369:case 370:case 371:case 472:case 577:case 578:case 579:case 580:case 581:case 582:case 583:case 584:case 585:case 586:case 587:break;case 35:r=!0;break;case 36:r=!1;break;default:if(!t.T&&(!r||o.WTF))throw new Error("Unexpected record 0x"+n.toString(16))}}),o)}}(Wt(e,Ga(n)),0,n,t)}catch(n){}}));var c,u,d,h=function(e,t,n){if(".bin"===t.slice(-4))return t=e,o={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},s=!(r=[]),(i=(i=n)||{}).biff=12,a=[],(l=[[]]).SheetNames=[],l.XTI=[],ya[16]={n:"BrtFRTArchID$",f:ra},si(t,(function(e,t,n){switch(n){case 156:l.SheetNames.push(e.name),o.Sheets.push(e);break;case 153:o.WBProps=e;break;case 39:null!=e.Sheet&&(i.SID=e.Sheet),e.Ref=ws(e.Ptg,0,null,l,i),delete i.SID,delete e.Ptg,a.push(e);break;case 1036:break;case 357:case 358:case 355:case 667:l[0].length?l.push([n,e]):l[0]=[n,e],l[l.length-1].XTI=[];break;case 362:0===l.length&&(l[0]=[],l[0].XTI=[]),l[l.length-1].XTI=l[l.length-1].XTI.concat(e),l.XTI=l.XTI.concat(e);break;case 361:break;case 2071:case 158:case 143:case 664:case 353:break;case 3072:case 3073:case 534:case 677:case 157:case 610:case 2050:case 155:case 548:case 676:case 128:case 665:case 2128:case 2125:case 549:case 2053:case 596:case 2076:case 2075:case 2082:case 397:case 154:case 1117:case 553:case 2091:break;case 35:r.push(n),s=!0;break;case 36:r.pop(),s=!1;break;case 37:r.push(n),s=!0;break;case 38:r.pop(),s=!1;break;case 16:break;default:if(!t.T&&(!s||i.WTF&&37!=r[r.length-1]&&35!=r[r.length-1]))throw new Error("Unexpected record 0x"+n.toString(16))}}),i),na(o),o.Names=a,o.supbooks=l,o;var i,o,r,s,a,l,c=e,u=n;if(!c)throw new Error("Could not find file");var d={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},Names:[],xmlns:""},h=!1,f="xmlns",p={},g=0;if(c.replace(Yt,(function(e,t){var n=Zt(e);switch(Qt(n[0])){case"<?xml":break;case"<workbook":e.match(oa)&&(f="xmlns"+e.match(/<(\w+):/)[1]),d.xmlns=n[f];break;case"</workbook>":break;case"<fileVersion":delete n[0],d.AppVersion=n;break;case"<fileVersion/>":case"</fileVersion>":case"<fileSharing":case"<fileSharing/>":break;case"<workbookPr":case"<workbookPr/>":Xs.forEach((function(e){if(null!=n[e[0]])switch(e[2]){case"bool":d.WBProps[e[0]]=ln(n[e[0]]);break;case"int":d.WBProps[e[0]]=parseInt(n[e[0]],10);break;default:d.WBProps[e[0]]=n[e[0]]}})),n.codeName&&(d.WBProps.CodeName=hn(n.codeName));break;case"</workbookPr>":case"<workbookProtection":case"<workbookProtection/>":break;case"<bookViews":case"<bookViews>":case"</bookViews>":break;case"<workbookView":case"<workbookView/>":delete n[0],d.WBView.push(n);break;case"</workbookView>":break;case"<sheets":case"<sheets>":case"</sheets>":break;case"<sheet":switch(n.state){case"hidden":n.Hidden=1;break;case"veryHidden":n.Hidden=2;break;default:n.Hidden=0}delete n.state,n.name=nn(hn(n.name)),delete n[0],d.Sheets.push(n);break;case"</sheet>":break;case"<functionGroups":case"<functionGroups/>":case"<functionGroup":break;case"<externalReferences":case"</externalReferences>":case"<externalReferences>":case"<externalReference":case"<definedNames/>":break;case"<definedNames>":case"<definedNames":h=!0;break;case"</definedNames>":h=!1;break;case"<definedName":(p={}).Name=hn(n.name),n.comment&&(p.Comment=n.comment),n.localSheetId&&(p.Sheet=+n.localSheetId),ln(n.hidden||"0")&&(p.Hidden=!0),g=t+e.length;break;case"</definedName>":p.Ref=nn(hn(c.slice(g,t))),d.Names.push(p);break;case"<definedName/>":break;case"<calcPr":case"<calcPr/>":delete n[0],d.CalcPr=n;break;case"</calcPr>":case"<oleSize":break;case"<customWorkbookViews>":case"</customWorkbookViews>":case"<customWorkbookViews":break;case"<customWorkbookView":case"</customWorkbookView>":break;case"<pivotCaches>":case"</pivotCaches>":case"<pivotCaches":case"<pivotCache":break;case"<smartTagPr":case"<smartTagPr/>":break;case"<smartTagTypes":case"<smartTagTypes>":case"</smartTagTypes>":case"<smartTagType":break;case"<webPublishing":case"<webPublishing/>":break;case"<fileRecoveryPr":case"<fileRecoveryPr/>":break;case"<webPublishObjects>":case"<webPublishObjects":case"</webPublishObjects>":case"<webPublishObject":break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":h=!0;break;case"</ext>":h=!1;break;case"<ArchID":break;case"<AlternateContent":case"<AlternateContent>":h=!0;break;case"</AlternateContent>":h=!1;break;case"<revisionPtr":break;default:if(!h&&u.WTF)throw new Error("unrecognized "+n[0]+" in workbook")}return e})),-1===Sn.indexOf(d.xmlns))throw new Error("Unknown Namespace: "+d.xmlns);return na(d),d}(Wt(e,Ga(o.workbooks[0])),o.workbooks[0],t),f={},p="",g=(o.coreprops.length&&((p=Wt(e,Ga(o.coreprops[0]),!0))&&(f=Zi(p)),0!==o.extprops.length)&&(p=Wt(e,Ga(o.extprops[0]),!0))&&(g=t,d={},u=(u=f)||{},c=hn(c=p),Qi.forEach((function(e){var t=(c.match(pn(e[0]))||[])[1];switch(e[2]){case"string":t&&(u[e[1]]=nn(t));break;case"bool":u[e[1]]="true"===t;break;case"raw":var n=c.match(new RegExp("<"+e[0]+"[^>]*>([\\s\\S]*?)</"+e[0]+">"));n&&0<n.length&&(d[e[1]]=n[1])}})),d.HeadingPairs)&&d.TitlesOfParts&&eo(d.HeadingPairs,d.TitlesOfParts,u,g),{}),m=(t.bookSheets&&!t.bookProps||0!==o.custprops.length&&(p=zt(e,Ga(o.custprops[0]),!0))&&(g=function(e,t){var n={},i="",o=e.match(no);if(o)for(var r=0;r!=o.length;++r){var s=o[r],a=Zt(s);switch(a[0]){case"<?xml":case"<Properties":break;case"<property":i=nn(a.name);break;case"</property>":i=null;break;default:if(0===s.indexOf("<vt:")){var l=s.split(">"),c=l[0].slice(4),u=l[1];switch(c){case"lpstr":case"bstr":case"lpwstr":n[i]=nn(u);break;case"bool":n[i]=ln(u);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":n[i]=parseInt(u,10);break;case"r4":case"r8":case"decimal":n[i]=parseFloat(u);break;case"filetime":case"date":n[i]=Lt(u);break;case"cy":case"error":n[i]=nn(u);break;default:"/"!=c.slice(-1)&&t.WTF&&"undefined"!=typeof console&&console.warn("Unexpected",s,c,l)}}else if("</"!==s.slice(0,2)&&t.WTF)throw new Error(s)}}return n}(p,t)),{});if(!t.bookSheets&&!t.bookProps||(h.Sheets?w=h.Sheets.map((function(e){return e.name})):f.Worksheets&&0<f.SheetNames.length&&(w=f.SheetNames),t.bookProps&&(m.Props=f,m.Custprops=g),t.bookSheets&&void 0!==w&&(m.SheetNames=w),t.bookSheets?!m.SheetNames:!t.bookProps)){var v,b,w={},y=(p={},t.bookDeps&&o.calcchain&&(p=function(e,t){var n,i,o;return".bin"===t.slice(-4)?(n=[],si(e,(function(e,t,i){if(63===i)n.push(e);else if(!t.T)throw new Error("Unexpected record 0x"+i.toString(16))})),n):(o=[],(t=e)&&(i=1,(t.match(Yt)||[]).forEach((function(e){var t=Zt(e);switch(t[0]){case"<?xml":break;case"<calcChain":case"<calcChain>":case"</calcChain>":break;case"<c":delete t[0],t.i?i=t.i:t.i=i,o.push(t)}}))),o)}(Wt(e,Ga(o.calcchain)),o.calcchain)),0),x={},k=h.Sheets;f.Worksheets=k.length,f.SheetNames=[];for(var _=0;_!=k.length;++_)f.SheetNames[_]=k[_].name;var C,S,E,T=r?"bin":"xml",A=(r=o.workbooks[0].lastIndexOf("/"),(o.workbooks[0].slice(0,r+1)+"_rels/"+o.workbooks[0].slice(r+1)+".rels").replace(/^\//,"")),O=(Bt(e,A)||(A="xl/_rels/workbook."+T+".rels"),Yi(zt(e,A,!0),A.replace(/_rels.*/,"s5s"))),L=(1<=(o.metadata||[]).length&&(t.xlmeta=function(e,t,n){var i,o,r,s,a,l,c,u,d,h;return".bin"===t.slice(-4)?(i={Types:[],Cell:[],Value:[]},o=n||{},s=!(r=[]),a=2,si(e,(function(e,t,n){switch(n){case 335:i.Types.push({name:e.name});break;case 51:e.forEach((function(e){1==a?i.Cell.push({type:i.Types[e[0]-1].name,index:e[1]}):0==a&&i.Value.push({type:i.Types[e[0]-1].name,index:e[1]})}));break;case 337:a=e?1:0;break;case 338:a=2;break;case 35:r.push(n),s=!0;break;case 36:r.pop(),s=!1;break;default:if(!t.T&&(!s||o.WTF&&35!=r[r.length-1]))throw new Error("Unexpected record 0x"+n.toString(16))}})),i):(l=n,h={Types:[],Cell:[],Value:[]},(t=e)&&(c=!1,u=2,t.replace(Yt,(function(e){var t=Zt(e);switch(Qt(t[0])){case"<?xml":break;case"<metadata":case"</metadata>":break;case"<metadataTypes":case"</metadataTypes>":break;case"<metadataType":h.Types.push({name:t.name});break;case"</metadataType>":break;case"<futureMetadata":for(var n=0;n<h.Types.length;++n)h.Types[n].name==t.name&&(d=h.Types[n]);break;case"</futureMetadata>":case"<bk>":case"</bk>":break;case"<rc":1==u?h.Cell.push({type:h.Types[t.t-1].name,index:+t.v}):0==u&&h.Value.push({type:h.Types[t.t-1].name,index:+t.v});break;case"</rc>":break;case"<cellMetadata":u=1;break;case"</cellMetadata>":u=2;break;case"<valueMetadata":u=0;break;case"</valueMetadata>":u=2;break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":c=!0;break;case"</ext>":c=!1;break;case"<rvb":d&&(d.offsets||(d.offsets=[]),d.offsets.push(+t.i));break;default:if(!c&&l.WTF)throw new Error("unrecognized "+t[0]+" in metadata")}return e}))),h)}(Wt(e,Ga(o.metadata[0])),o.metadata[0],t)),1<=(o.people||[]).length&&(t.people=(r=Wt(e,Ga(o.people[0])),C=t,E=!(S=[]),r.replace(Yt,(function(e){var t=Zt(e);switch(Qt(t[0])){case"<?xml":case"<personList":case"</personList>":break;case"<person":S.push({name:t.displayname,id:t.id});break;case"</person>":break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":E=!0;break;case"</ext>":E=!1;break;default:if(!E&&C.WTF)throw new Error("unrecognized "+t[0]+" in threaded comments")}return e})),S)),O=O&&function(e,t){if(!e)return 0;try{e=t.map((function(t){return t.id||(t.id=t.strRelID),[t.name,e["!id"][t.id].Target,(t=e["!id"][t.id].Type,-1<Gi.WS.indexOf(t)?"sheet":Gi.CS&&t==Gi.CS?"chart":Gi.DS&&t==Gi.DS?"dialog":Gi.MS&&t==Gi.MS?"macro":t&&t.length?t:"sheet")]}))}catch(t){return null}return e&&0!==e.length?e:null}(O,h.Sheets),Wt(e,"xl/worksheets/sheet.xml",!0)?1:0);for(y=0;y!=f.Worksheets;++y){var $="sheet";if(O&&O[y]?(v="xl/"+O[y][1].replace(/[\/]?xl\//,""),Bt(e,v)||(v=O[y][1]),Bt(e,v)||(v=A.replace(/_rels\/.*$/,"")+O[y][1]),$=O[y][2]):v=(v="xl/worksheets/sheet"+(y+1-L)+"."+T).replace(/sheet0\./,"sheet."),b=v.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),t&&null!=t.sheets)switch(typeof t.sheets){case"number":if(y!=t.sheets)continue;break;case"string":if(f.SheetNames[y].toLowerCase()!=t.sheets.toLowerCase())continue;break;default:if(Array.isArray&&Array.isArray(t.sheets)){for(var R=!1,M=0;M!=t.sheets.length;++M)"number"==typeof t.sheets[M]&&t.sheets[M]==y&&(R=1),"string"==typeof t.sheets[M]&&t.sheets[M].toLowerCase()==f.SheetNames[y].toLowerCase()&&(R=1);if(!R)continue}}Va(e,v,b,f.SheetNames[y],y,x,w,$,t,h,a,l)}m={Directory:o,Workbook:h,Props:f,Custprops:g,Deps:p,Sheets:w,SheetNames:f.SheetNames,Strings:$s,Styles:l,Themes:a,SSF:Rt(Be)},t&&t.bookFiles&&(e.files?(m.keys=i,m.files=e.files):(m.keys=[],m.files={},e.FullPaths.forEach((function(t,n){t=t.replace(/^Root Entry[\/]/,""),m.keys.push(t),m.files[t]=e.FileIndex[n]})))),t&&t.bookVBA&&(0<o.vba.length?m.vbaraw=Wt(e,Ga(o.vba[0]),!0):o.defaults&&"application/vnd.ms-office.vbaProject"===o.defaults.bin&&(m.vbaraw=Wt(e,"xl/vbaProject.bin",!0)))}return m}function Ya(e,t){t=t||{};var n="Workbook",i=yt.find(e,n);try{if(n="/!DataSpaces/Version",!(i=yt.find(e,n))||!i.content)throw new Error("ECMA-376 Encrypted file missing "+n);if((s=i.content).read_shift(0,"lpp4"),fr(s,4),fr(s,4),fr(s,4),n="/!DataSpaces/DataSpaceMap",!(i=yt.find(e,n))||!i.content)throw new Error("ECMA-376 Encrypted file missing "+n);var o=function(e){for(var t=[],n=(e.l+=4,e.read_shift(4));0<n--;)t.push(function(e){for(var t=e.read_shift(4),n=(t=e.l+t-4,{}),i=e.read_shift(4),o=[];0<i--;)o.push({t:e.read_shift(4),v:e.read_shift(0,"lpp4")});if(n.name=e.read_shift(0,"lpp4"),n.comps=o,e.l!=t)throw new Error("Bad DataSpaceMapEntry: "+e.l+" != "+t);return n}(e));return t}(i.content);if(1!==o.length||1!==o[0].comps.length||0!==o[0].comps[0].t||"StrongEncryptionDataSpace"!==o[0].name||"EncryptedPackage"!==o[0].comps[0].v)throw new Error("ECMA-376 Encrypted file bad "+n);if(n="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",!(i=yt.find(e,n))||!i.content)throw new Error("ECMA-376 Encrypted file missing "+n);var r=function(e){for(var t=[],n=(e.l+=4,e.read_shift(4));0<n--;)t.push(e.read_shift(0,"lpp4"));return t}(i.content);if(1!=r.length||"StrongEncryptionTransform"!=r[0])throw new Error("ECMA-376 Encrypted file bad "+n);if(n="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",!(i=yt.find(e,n))||!i.content)throw new Error("ECMA-376 Encrypted file missing "+n);!function(e){t={},(n=e).read_shift(4),n.l+=4,t.id=n.read_shift(0,"lpp4"),t.name=n.read_shift(0,"lpp4"),t.R=fr(n,4),t.U=fr(n,4),t.W=fr(n,4);var t,n=t;if(n.ename=e.read_shift(0,"8lpp4"),n.blksz=e.read_shift(4),n.cmode=e.read_shift(4),4!=e.read_shift(4))throw new Error("Bad !Primary record")}(i.content)}catch(e){}if(!(i=yt.find(e,n="/EncryptionInfo"))||!i.content)throw new Error("ECMA-376 Encrypted file missing "+n);var s=function(e){var t,n,i,o=fr(e);switch(o.Minor){case 2:return[o.Minor,function(e){if(36!=(63&e.read_shift(4)))throw new Error("EncryptionInfo mismatch");var t=e.read_shift(4);return{t:"Std",h:t=pr(e,t),v:e=gr(e,e.length-e.l)}}(e)];case 3:return[o.Minor,function(){throw new Error("File is password-protected: ECMA-376 Extensible")}()];case 4:return[o.Minor,(n=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"],(t=e).l+=4,t=t.read_shift(t.length-t.l,"utf8"),i={},t.replace(Yt,(function(e){var t=Zt(e);switch(Qt(t[0])){case"<?xml":break;case"<encryption":case"</encryption>":break;case"<keyData":n.forEach((function(e){i[e]=t[e]}));break;case"<dataIntegrity":i.encryptedHmacKey=t.encryptedHmacKey,i.encryptedHmacValue=t.encryptedHmacValue;break;case"<keyEncryptors>":case"<keyEncryptors":i.encs=[];break;case"</keyEncryptors>":break;case"<keyEncryptor":i.uri=t.uri;break;case"</keyEncryptor>":break;case"<encryptedKey":i.encs.push(t);break;default:throw t[0]}})),i)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+o.Minor)}(i.content);n="/EncryptedPackage";if(!(i=yt.find(e,n))||!i.content)throw new Error("ECMA-376 Encrypted file missing "+n);if(4==s[0]&&"undefined"!=typeof decrypt_agile)return decrypt_agile(s[1],i.content,t.password||"",t);if(2==s[0]&&"undefined"!=typeof decrypt_std76)return decrypt_std76(s[1],i.content,t.password||"",t);throw new Error("File is password-protected")}function Xa(e,t){var n="";switch((t||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":n=ye(e.slice(0,12));break;case"binary":n=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[n.charCodeAt(0),n.charCodeAt(1),n.charCodeAt(2),n.charCodeAt(3),n.charCodeAt(4),n.charCodeAt(5),n.charCodeAt(6),n.charCodeAt(7)]}function Ja(e,t){var n=0;e:for(;n<e.length;)switch(e.charCodeAt(n)){case 10:case 13:case 32:++n;break;case 60:return fa(e.slice(n),t);default:break e}return tr.to_workbook(e,t)}function Za(e,t,n,i){return i?(n.type="string",tr.to_workbook(e,n)):tr.to_workbook(t,n)}function Qa(e,t){de();var n=t||{};if("undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer)return Qa(new Uint8Array(e),((n=Rt(n)).type="array",n));"undefined"!=typeof Uint8Array&&e instanceof Uint8Array&&!n.type&&(n.type="undefined"!=typeof Deno?"buffer":"array");var i,o,r=e,s=!1;if(n.cellStyles&&(n.cellNF=!0,n.sheetStubs=!0),Rs={},n.dateNF&&(Rs.dateNF=n.dateNF),n.type||(n.type=xe&&Buffer.isBuffer(e)?"buffer":"base64"),"file"==n.type&&(n.type=xe?"buffer":"binary",r=function(e){if("undefined"!=typeof Deno)return Deno.readFileSync(e);if("undefined"!=typeof $&&"undefined"!=typeof File&&"undefined"!=typeof Folder)try{var t=File(e),n=(t.open("r"),t.encoding="binary",t.read());return t.close(),n}catch(e){if(!e.message||!e.message.match(/onstruct/))throw e}throw new Error("Cannot access file "+e)}(e),"undefined"==typeof Uint8Array||xe||(n.type="array")),"string"==n.type&&(s=!0,n.type="binary",n.codepage=65001,r=(t=e).match(/[^\x00-\x7F]/)?fn(t):t),"array"==n.type&&"undefined"!=typeof Uint8Array&&e instanceof Uint8Array&&"undefined"!=typeof ArrayBuffer&&(t=new ArrayBuffer(3),(t=new Uint8Array(t)).foo="bar",!t.foo))return(n=Rt(n)).type="array",Qa(Te(r),n);switch((i=Xa(r,n))[0]){case 208:if(207===i[1]&&17===i[2]&&224===i[3]&&161===i[4]&&177===i[5]&&26===i[6]&&225===i[7])return a=yt.read(r,n),l=n,(yt.find(a,"EncryptedPackage")?Ya:wa)(a,l);break;case 9:if(i[1]<=8)return wa(r,n);break;case 60:return fa(r,n);case 73:if(73===i[1]&&42===i[2]&&0===i[3])throw new Error("TIFF Image File is not a spreadsheet");if(68!==i[1])break;var a=r,l=n,c=l||{},u=!!c.WTF;c.WTF=!0;try{var d=Zo.to_workbook(a,c);return c.WTF=u,d}catch(e){if(c.WTF=u,!e.message.match(/SYLK bad record ID/)&&u)throw e;return tr.to_workbook(a,l)}return;case 84:if(65===i[1]&&66===i[2]&&76===i[3])return Qo.to_workbook(r,n);break;case 80:return 75===i[1]&&i[2]<9&&i[3]<9?(c=d=r,(u=(u=n)||{}).type||(u.type=xe&&Buffer.isBuffer(d)?"buffer":"base64"),Ka(Ut(c,u),u)):Za(e,r,n,s);case 239:return 60===i[3]?fa(r,n):Za(e,r,n,s);case 255:if(254===i[1])return g=r,"base64"==(o=n).type&&(g=ye(g)),g=pe.utils.decode(1200,g.slice(2),"str"),o.type="binary",Ja(g,o);if(0===i[1]&&2===i[2]&&0===i[3])return nr.to_workbook(r,n);break;case 0:if(0===i[1]){if(2<=i[2]&&0===i[3])return nr.to_workbook(r,n);if(0===i[2]&&(8===i[3]||9===i[3]))return nr.to_workbook(r,n)}break;case 3:case 131:case 139:case 140:return Jo.to_workbook(r,n);case 123:if(92===i[1]&&114===i[2]&&116===i[3])return vr.to_workbook(r,n);break;case 10:case 13:case 32:var h=r,f=n,p="",g=Xa(h,f);switch(f.type){case"base64":p=ye(h);break;case"binary":p=h;break;case"buffer":p=h.toString("binary");break;case"array":p=$t(h);break;default:throw new Error("Unrecognized type "+f.type)}return 239==g[0]&&187==g[1]&&191==g[2]&&(p=hn(p)),f.type="binary",Ja(p,f);case 137:if(80===i[1]&&78===i[2]&&71===i[3])throw new Error("PNG Image File is not a spreadsheet")}return-1<Xo.indexOf(i[0])&&i[2]<=12&&i[3]<=31?Jo.to_workbook(r,n):Za(e,r,n,s)}function el(e,t,n,i,o,r,s,a){var l=fi(n),c=a.defval,u=a.raw||!Object.prototype.hasOwnProperty.call(a,"raw"),d=!0,h=1===o?[]:{};if(1!==o)if(Object.defineProperty)try{Object.defineProperty(h,"__rowNum__",{value:n,enumerable:!1})}catch(e){h.__rowNum__=n}else h.__rowNum__=n;if(!s||e[n])for(var f=t.s.c;f<=t.e.c;++f){var p=s?e[n][f]:e[i[f]+l];if(void 0===p||void 0===p.t)void 0!==c&&null!=r[f]&&(h[r[f]]=c);else{var g=p.v;switch(p.t){case"z":if(null==g)break;continue;case"e":g=0==g?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+p.t)}if(null!=r[f]){if(null==g)if("e"==p.t&&null===g)h[r[f]]=null;else if(void 0!==c)h[r[f]]=c;else{if(!u||null!==g)continue;h[r[f]]=null}else h[r[f]]=u&&("n"!==p.t||"n"===p.t&&!1!==a.rawNumbers)?g:xi(p,g,a);null!=g&&(d=!1)}}}return{row:h,isempty:d}}function tl(e,t){if(null==e||null==e["!ref"])return[];var n,i={t:"n",v:0},o=0,r=1,s=[],a="",l={s:{r:0,c:0},e:{r:0,c:0}},c=t||{},u=null!=c.range?c.range:e["!ref"];switch(1===c.header?o=1:"A"===c.header?o=2:Array.isArray(c.header)?o=3:null==c.header&&(o=0),typeof u){case"string":l=yi(u);break;case"number":(l=yi(e["!ref"])).s.r=u;break;default:l=u}0<o&&(r=0);var d,h=fi(l.s.r),f=[],p=[],g=0,m=0,v=Array.isArray(e),b=l.s.r,w=0,y={},x=(v&&!e[b]&&(e[b]=[]),c.skipHidden&&e["!cols"]||[]),k=c.skipHidden&&e["!rows"]||[];for(w=l.s.c;w<=l.e.c;++w)if(!(x[w]||{}).hidden)switch(f[w]=gi(w),i=v?e[b][w]:e[f[w]+h],o){case 1:s[w]=w-l.s.c;break;case 2:s[w]=f[w];break;case 3:s[w]=c.header[w-l.s.c];break;default:if(a=n=xi(i=null==i?{w:"__EMPTY",t:"s"}:i,null,c),m=y[n]||0){for(;y[a=n+"_"+m++];);y[n]=m,y[a]=1}else y[n]=1;s[w]=a}for(b=l.s.r+r;b<=l.e.r;++b)!(k[b]||{}).hidden&&(!1===(d=el(e,l,b,f,o,s,v,c)).isempty||(1===o?!1!==c.blankrows:c.blankrows))&&(p[g++]=d.row);return p.length=g,p}var nl=/"/g;function il(e,t,n,i,o,r,s,a){for(var l=!0,c=[],u="",d=fi(n),h=t.s.c;h<=t.e.c;++h)if(i[h]){var f=a.dense?(e[n]||[])[h]:e[i[h]+d];if(null==f)u="";else if(null!=f.v){l=!1,u=""+(a.rawNumbers&&"n"==f.t?f.v:xi(f,null,a));for(var p,g=0;g!==u.length;++g)if((p=u.charCodeAt(g))===o||p===r||34===p||a.forceQuotes){u='"'+u.replace(nl,'""')+'"';break}"ID"==u&&(u='"ID"')}else null==f.f||f.F?u="":(l=!1,0<=(u="="+f.f).indexOf(",")&&(u='"'+u.replace(nl,'""')+'"'));c.push(u)}return!1===a.blankrows&&l?null:c.join(s)}function ol(e,t){var n=[],i=null==t?{}:t;if(null==e||null==e["!ref"])return"";for(var o=yi(e["!ref"]),r=void 0!==i.FS?i.FS:",",s=r.charCodeAt(0),a=void 0!==i.RS?i.RS:"\n",l=a.charCodeAt(0),c=new RegExp(("|"==r?"\\|":r)+"+$"),u="",d=[],h=(i.dense=Array.isArray(e),i.skipHidden&&e["!cols"]||[]),f=i.skipHidden&&e["!rows"]||[],p=o.s.c;p<=o.e.c;++p)(h[p]||{}).hidden||(d[p]=gi(p));for(var g=0,m=o.s.r;m<=o.e.r;++m)(f[m]||{}).hidden||null==(u=il(e,o,m,d,s,l,r,i))||!(u=i.strip?u.replace(c,""):u)&&!1===i.blankrows||n.push((g++?a:"")+u);return delete i.dense,n.join("")}function rl(e,t,n){var i,o=n||{},r=+!o.skipHeader,s=e||{},a=0,l=0,c=(e=(s&&null!=o.origin&&("number"==typeof o.origin?a=o.origin:(n="string"==typeof o.origin?mi(o.origin):o.origin,a=n.r,l=n.c)),{s:{c:0,r:0},e:{c:l,r:a+t.length-1+r}}),s["!ref"]?(n=yi(s["!ref"]),e.e.c=Math.max(e.e.c,n.e.c),e.e.r=Math.max(e.e.r,n.e.r),-1==a&&(a=n.e.r+1,e.e.r=a+t.length-1+r)):-1==a&&(a=0,e.e.r=t.length-1+r),o.header||[]),u=0,d=(t.forEach((function(e,t){xt(e).forEach((function(n){-1==(u=c.indexOf(n))&&(c[u=c.length]=n);n=e[n];var d="z",h="",f=vi({c:l+u,r:a+t+r});i=sl(s,f),!n||"object"!=typeof n||n instanceof Date?("number"==typeof n?d="n":"boolean"==typeof n?d="b":"string"==typeof n?d="s":n instanceof Date?(d="d",o.cellDates||(d="n",n=Ct(n)),h=o.dateNF||Be[14]):null===n&&o.nullError&&(d="e",n=0),i?(i.t=d,i.v=n,delete i.w,delete i.R,h&&(i.z=h)):s[f]=i={t:d,v:n},h&&(i.z=h)):s[f]=n}))})),e.e.c=Math.max(e.e.c,l+c.length-1),fi(a));if(r)for(u=0;u<c.length;++u)s[gi(u+l)+d]={t:"s",v:c[u]};return s["!ref"]=wi(e),s}function sl(e,t,n){var i;return"string"==typeof t?Array.isArray(e)?(e[(i=mi(t)).r]||(e[i.r]=[]),e[i.r][i.c]||(e[i.r][i.c]={t:"z"})):e[t]||(e[t]={t:"z"}):sl(e,vi("number"!=typeof t?t:{r:t,c:n||0}))}function al(){return{SheetNames:[],Sheets:{}}}function ll(e,t,n,i){var o=1;if(!n)for(;o<=65535&&-1!=e.SheetNames.indexOf(n="Sheet"+o);++o,n=void 0);if(!n||65535<=e.SheetNames.length)throw new Error("Too many worksheets");if(i&&0<=e.SheetNames.indexOf(n)){o=(i=n.match(/(^.*?)(\d+)$/))&&+i[2]||0;var r=i&&i[1]||n;for(++o;o<=65535&&-1!=e.SheetNames.indexOf(n=r+o);++o);}if(function(e,t){if(31<e.length){if(t)return;throw new Error("Sheet names cannot exceed 31 chars")}ia.forEach((function(n){if(-1!=e.indexOf(n)&&!t)throw new Error("Sheet name cannot contain : \\ / ? * [ ]")}))}(n),0<=e.SheetNames.indexOf(n))throw new Error("Worksheet with name |"+n+"| already exists!");return e.SheetNames.push(n),e.Sheets[n]=t,n}function cl(e,t,n){return t?(e.l={Target:t},n&&(e.l.Tooltip=n)):delete e.l,e}var ul={encode_col:gi,encode_row:fi,encode_cell:vi,encode_range:wi,decode_col:pi,decode_row:hi,split_cell:function(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")},decode_cell:mi,decode_range:bi,format_cell:xi,sheet_add_aoa:_i,sheet_add_json:rl,sheet_add_dom:Sa,aoa_to_sheet:Ci,json_to_sheet:function(e,t){return rl(null,e,t)},table_to_sheet:Ea,table_to_book:function(e,t){return ki(Ea(e,t),t)},sheet_to_csv:ol,sheet_to_txt:function(e,t){return(t=t||{}).FS="\t",t.RS="\n",e=ol(e,t)},sheet_to_json:tl,sheet_to_html:function(e,t){var n=t||{},i=(t=null!=n.header?n.header:'<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',null!=n.footer?n.footer:"</body></html>"),o=[t],r=bi(e["!ref"]);n.dense=Array.isArray(e),o.push(function(e,t,n){return[].join("")+"<table"+(n&&n.id?' id="'+n.id+'"':"")+">"}(0,0,n));for(var s=r.s.r;s<=r.e.r;++s)o.push(Ca(e,r,s,n));return o.push("</table>"+i),o.join("")},sheet_to_formulae:function(e){var t,n="",i="";if(null==e||null==e["!ref"])return[];for(var o,r=yi(e["!ref"]),s=[],a=[],l=Array.isArray(e),c=r.s.c;c<=r.e.c;++c)s[c]=gi(c);for(var u=r.s.r;u<=r.e.r;++u)for(o=fi(u),c=r.s.c;c<=r.e.c;++c)if(n=s[c]+o,i="",void 0!==(t=l?(e[u]||[])[c]:e[n])){if(null!=t.F){if(n=t.F,!t.f)continue;i=t.f,-1==n.indexOf(":")&&(n=n+":"+n)}if(null!=t.f)i=t.f;else{if("z"==t.t)continue;if("n"==t.t&&null!=t.v)i=""+t.v;else if("b"==t.t)i=t.v?"TRUE":"FALSE";else if(void 0!==t.w)i="'"+t.w;else{if(void 0===t.v)continue;i="s"==t.t?"'"+t.v:""+t.v}}a[a.length]=n+"="+i}return a},sheet_to_row_object_array:tl,sheet_get_cell:sl,book_new:al,book_append_sheet:ll,book_set_sheet_visibility:function(e,t,n){switch(e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]),t=function(e,t){if("number"==typeof t){if(0<=t&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}if("string"!=typeof t)throw new Error("Cannot find sheet |"+t+"|");if(-1<(e=e.SheetNames.indexOf(t)))return e;throw new Error("Cannot find sheet name |"+t+"|")}(e,t),e.Workbook.Sheets[t]||(e.Workbook.Sheets[t]={}),n){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+n)}e.Workbook.Sheets[t].Hidden=n},cell_set_number_format:function(e,t){return e.z=t,e},cell_set_hyperlink:cl,cell_set_internal_link:function(e,t,n){return cl(e,"#"+t,n)},cell_add_comment:function(e,t,n){e.c||(e.c=[]),e.c.push({t:t,a:n||"SheetJS"})},sheet_set_array_formula:function(e,t,n,i){for(var o="string"!=typeof t?t:yi(t),r="string"==typeof t?t:wi(t),s=o.s.r;s<=o.e.r;++s)for(var a=o.s.c;a<=o.e.c;++a){var l=sl(e,s,a);l.t="n",l.F=r,delete l.v,s==o.s.r&&a==o.s.c&&(l.f=n,i)&&(l.D=!0)}return e},consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};function dl(e){return(dl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function hl(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */hl=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,i=(f="function"==typeof Symbol?Symbol:{}).iterator||"@@iterator",o=f.asyncIterator||"@@asyncIterator",r=f.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(t){s=function(e,t,n){return e[t]=n}}function a(e,t,n,i){var o,r,s,a;t=t&&t.prototype instanceof u?t:u,t=Object.create(t.prototype),i=new y(i||[]);return t._invoke=(o=e,r=n,s=i,a="suspendedStart",function(e,t){if("executing"===a)throw new Error("Generator is already running");if("completed"===a){if("throw"===e)throw t;return{value:void 0,done:!0}}for(s.method=e,s.arg=t;;){var n=s.delegate;if(n&&(n=function e(t,n){var i=t.iterator[n.method];if(void 0===i){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=void 0,e(t,n),"throw"===n.method))return c;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}return"throw"===(i=l(i,t.iterator,n.arg)).type?(n.method="throw",n.arg=i.arg,n.delegate=null,c):(i=i.arg)?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,c):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,c)}(n,s))){if(n===c)continue;return n}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if("suspendedStart"===a)throw a="completed",s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);if(a="executing","normal"===(n=l(o,r,s)).type){if(a=s.done?"completed":"suspendedYield",n.arg===c)continue;return{value:n.arg,done:s.done}}"throw"===n.type&&(a="completed",s.method="throw",s.arg=n.arg)}}),t}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=a;var c={};function u(){}function d(){}function h(){}var f,p,g=((p=(p=(s(f={},i,(function(){return this})),Object.getPrototypeOf))&&p(p(x([]))))&&p!==t&&n.call(p,i)&&(f=p),h.prototype=u.prototype=Object.create(f));function m(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function v(e,t){var i;this._invoke=function(o,r){function s(){return new t((function(i,s){!function i(o,r,s,a){var c;if("throw"!==(o=l(e[o],e,r)).type)return(r=(c=o.arg).value)&&"object"==dl(r)&&n.call(r,"__await")?t.resolve(r.__await).then((function(e){i("next",e,s,a)}),(function(e){i("throw",e,s,a)})):t.resolve(r).then((function(e){c.value=e,s(c)}),(function(e){return i("throw",e,s,a)}));a(o.arg)}(o,r,i,s)}))}return i=i?i.then(s,s):s()}}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function y(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function x(e){if(e){var t,o=e[i];if(o)return o.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return t=-1,(o=function i(){for(;++t<e.length;)if(n.call(e,t))return i.value=e[t],i.done=!1,i;return i.value=void 0,i.done=!0,i}).next=o}return{next:k}}function k(){return{value:void 0,done:!0}}return s(g,"constructor",d.prototype=h),s(h,"constructor",d),d.displayName=s(h,r,"GeneratorFunction"),e.isGeneratorFunction=function(e){return!!(e="function"==typeof e&&e.constructor)&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,r,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},m(v.prototype),s(v.prototype,o,(function(){return this})),e.AsyncIterator=v,e.async=function(t,n,i,o,r){void 0===r&&(r=Promise);var s=new v(a(t,n,i,o),r);return e.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},m(g),s(g,r,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t,n=[];for(t in e)n.push(t);return n.reverse(),function t(){for(;n.length;){var i=n.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},e.values=x,y.prototype={constructor:y,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function i(n,i){return s.type="throw",s.arg=e,t.next=n,i&&(t.method="next",t.arg=void 0),!!i}for(var o=this.tryEntries.length-1;0<=o;--o){var r=this.tryEntries[o],s=r.completion;if("root"===r.tryLoc)return i("end");if(r.tryLoc<=this.prev){var a=n.call(r,"catchLoc"),l=n.call(r,"finallyLoc");if(a&&l){if(this.prev<r.catchLoc)return i(r.catchLoc,!0);if(this.prev<r.finallyLoc)return i(r.finallyLoc)}else if(a){if(this.prev<r.catchLoc)return i(r.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return i(r.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;0<=i;--i){var o=this.tryEntries[i];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var r=o;break}}var s=(r=r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc?null:r)?r.completion:{};return s.type=e,s.arg=t,r?(this.method="next",this.next=r.finallyLoc,c):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),c},finish:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),w(n),c}},catch:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var n,i,o=this.tryEntries[t];if(o.tryLoc===e)return"throw"===(n=o.completion).type&&(i=n.arg,w(o)),i}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},e}function fl(e,t){var n,i,o,r,s="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(s)return i=!(n=!0),{s:function(){s=s.call(e)},n:function(){var e=s.next();return n=e.done,e},e:function(e){i=!0,o=e},f:function(){try{n||null==s.return||s.return()}finally{if(i)throw o}}};if(Array.isArray(e)||(s=function(e,t){var n;if(e)return"string"==typeof e?pl(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pl(e,t):void 0}(e))||t&&e&&"number"==typeof e.length)return s&&(e=s),r=0,{s:t=function(){},n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function pl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function gl(e,t,n,i,o,r,s){try{var a=e[r](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(i,o)}function ml(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};wl.forEach((function(t){e.component(t.name,t)})),e.prototype.$TIANHENG={size:t.size||"",zIndex:t.zIndex||2e3}}Mr={name:"th-making-form",components:{Draggable:H.a,WidgetConfig:q,FormConfig:a,WidgetForm:G,GenerateForm:J,ThDialog:y,ThCodeEditor:C.a},props:{preview:{type:Boolean,default:!1},generateCode:{type:Boolean,default:!1},generateJson:{type:Boolean,default:!1},upload:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},basicFields:{type:Array,default:function(){return["input","textarea","cell","radio","checkbox","time","date","rate","number","color","select","switch","slider","text","button","filler","image","upload","editor","cascader"]}},advanceFields:{type:Array,default:function(){return["table","table_h5","tabs","blank"]}},layoutFields:{type:Array,default:function(){return["grid","alliance","divider"]}},remoteApis:{type:Array,default:function(){return[]}}},data:function(){return{basicComponents:Q,layoutComponents:te,advanceComponents:ee,widgetFormSelect:null,widgetFormData:{list:[],config:ne},widgetValue:{},configTab:"widget",client:"monitor",dialog:{import:{visible:!1,value:""},preview:{visible:!1,value:""},data:{visible:!1,value:"",valueCopy:""},config:{visible:!1,value:"",valueCopy:""},code:{visible:!1,valueHtml:"",valueVue:"",type:"vue"}},remoteFuncs:{func_test:function(e){setTimeout((function(){e([{id:"1",name:"1111"},{id:"2",name:"2222"},{id:"3",name:"3333"}])}),2e3)},funcGetToken:function(e){ie.get("http://tools-server.making.link/api/uptoken").then((function(t){e(t.uptoken)}))},upload_callback:function(e,t,n){console.log("callback",e,t,n)}},jsonClipboard:null,slotKeys:[]}},computed:{getBasicComponents:function(){var e=this;return this.basicComponents.filter((function(t){return e.basicFields.includes(t.type)}))},getAdvanceComponents:function(){var e=this;return this.advanceComponents.filter((function(t){return e.advanceFields.includes(t.type)}))},getLayoutComponents:function(){var e=this;return this.layoutComponents.filter((function(t){return e.layoutFields.includes(t.type)}))}},mounted:function(){},methods:{readExcelFile:function(e){return new Promise((function(t){var n=new FileReader;n.readAsBinaryString(e),n.onload=function(e){t(e.target.result)}}))},onExcelFileChange:function(e){var t,n=this;return t=hl().mark((function t(){var i,o,r,s,a,l,c,u,d,h,f,p,g,m,v,b,w,y;return hl().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=e.raw){t.next=6;break}return console.log("文件打开失败"),t.abrupt("return");case 6:return t.next=8,n.readExcelFile(i);case 8:for(l=(l=Qa(l=t.sent,{type:"binary"})).Sheets[l.SheetNames[0]],l=n.parseDom(ul.sheet_to_html(l)),o=l.getElementsByTagName("tr"),console.log("rowsDom =>",o),s=r=0;s<o[0].childNodes.length;s++)a=o[0].childNodes[s],r+=a.colSpan||1;console.log("rowSpan =>",r),l=24/r,c={list:[],config:{ui:"element",title:"",width:"",labelWidth:100,labelPosition:"right",labelSuffix:":",size:"small",disabled:!1,hideLabel:!1,eventScript:[{key:"mounted",name:"mounted",func:""},{key:"refresh",name:"refresh",func:""}]}},u=fl(o),t.prev=20,u.s();case 22:if((f=u.n()).done){t.next=51;break}f=f.value,d=Date.parse(new Date)+"_"+Math.ceil(99999*Math.random()),(h=n.getComponentsConfig("grid")).columns=[],h.key=d,h.model="grid_"+d,f=f.childNodes,console.log("colsDom =>",f),g=p=0;case 33:g<f.length?g%2!=0?t.next=38:(p=0,t.next=39):t.next=48;break;case 38:return t.abrupt("continue",45);case 39:if(m=Date.parse(new Date)+"_"+Math.ceil(99999*Math.random()),v=f[g],b=f[g+1],v.innerText||b.innerText){t.next=44;break}return t.abrupt("continue",45);case 44:f[g+1]?(p=((v.colSpan||1)+(b.colSpan||1))*l,(w=n.getComponentsConfig("input")).name=v.innerText,w.options.defaultValue=b.innerText,w.key=m,w.model="input_"+m,h.columns.push({span:p,list:[w]})):(p=v.colSpan*l,(w=n.getComponentsConfig("text")).name=v.innerText,w.options.defaultValue=v.innerText,w.options.hideLabel=!0,w.key=m,w.model="text_"+m,h.columns.push({span:p,list:[w]}));case 45:g++,t.next=33;break;case 48:h.columns.length?c.list.push(h):((y=n.getComponentsConfig("filler")).name="",y.key=d,y.model="filler_"+d,c.list.push(y));case 49:t.next=22;break;case 51:t.next=56;break;case 53:t.prev=53,t.t0=t.catch(20),u.e(t.t0);case 56:return t.prev=56,u.f(),t.finish(56);case 59:n.setJSON(c);case 60:case"end":return t.stop()}}),t,null,[[20,53,56,59]])})),function(){var e=this,n=arguments;return new Promise((function(i,o){var r=t.apply(e,n);function s(e){gl(r,i,o,s,a,"next",e)}function a(e){gl(r,i,o,s,a,"throw",e)}s(void 0)}))}()},getComponentsConfig:function(e){var t,n=null,i=fl(this.basicComponents);try{for(i.s();!(t=i.n()).done;){var o=t.value;if(e===o.type)return n=JSON.parse(JSON.stringify(o))}}catch(e){i.e(e)}finally{i.f()}var r,s=fl(this.layoutComponents);try{for(s.s();!(r=s.n()).done;){var a=r.value;if(e===a.type)return n=JSON.parse(JSON.stringify(a))}}catch(e){s.e(e)}finally{s.f()}return n},parseDom:function(e){var t=document.createElement("div");return t.innerHTML=e,t.childNodes[2]},initClipboard:function(){var e=this;this.jsonClipboard||(this.jsonClipboard=new U.a(".json-btn"),this.jsonClipboard.on("success",(function(t){e.$message.success("复制成功")})))},handleConfigSelect:function(e){this.configTab=e},handlePreview:function(){this.slotKeys=Object.keys(this.$slots),this.dialog.preview.visible=!0},handleGetData:function(){var e=this;this.$refs.generateForm.getData().then((function(t){e.dialog.data={visible:!0,value:JSON.stringify(t,null,2),valueCopy:JSON.stringify(t,null,2)},e.$nextTick((function(){e.initClipboard()}))}))},handleReset:function(){this.$refs.generateForm.reset()},handleGenerateJson:function(){var e=this;this.dialog.config={visible:!0,value:JSON.stringify(this.widgetFormData,null,2),valueCopy:JSON.stringify(this.widgetFormData,null,2)},this.$nextTick((function(){e.initClipboard()}))},handleGenerateCode:function(){this.dialog.code={visible:!0,valueHtml:oe(JSON.stringify(this.widgetFormData),"html"),valueVue:oe(JSON.stringify(this.widgetFormData),"vue"),type:"vue"}},handleUploadJson:function(){try{this.setJSON(JSON.parse(this.dialog.import.value)),this.dialog.import.visible=!1}catch(e){this.$message.error(e.message)}},handleDialogFullscreen:function(){this.$refs.vueCodeEditor.resize(),this.$refs.htmlCodeEditor.resize()},handleClear:function(){this.widgetFormData={list:[],config:ne},this.widgetFormSelect={}},clear:function(){this.handleClear()},getJSON:function(){return this.widgetFormData},getHtml:function(){return oe(JSON.stringify(this.widgetFormData))},setJSON:function(e){0<(this.widgetFormData=e).list.length&&(this.widgetFormSelect=e.list[0])},handleDataChange:function(e,t,n){}},watch:{widgetFormData:{deep:!0,handler:function(e){}}}};var vl=Object(l.a)(Mr,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"fm-container"},[n("el-container",{staticClass:"container-box"},[n("el-main",[n("el-container",[n("el-aside",{attrs:{width:"250px"}},[n("div",{staticClass:"components-list"},[e.basicFields.length?n("div",[n("div",{staticClass:"widget-cate"},[e._v("基础字段")]),e._v(" "),n("draggable",e._b({attrs:{tag:"ul",list:e.getBasicComponents}},"draggable",{group:{name:"people",pull:"clone",put:!1},sort:!1,ghostClass:"ghost"},!1),e._l(e.getBasicComponents,(function(t,i){return n("li",{key:i,staticClass:"form-edit-widget-label",class:((i={"no-put":"divider"==t.type})[t.type]=!0,i)},[n("a",[n("i",{staticClass:"icon iconfont",class:t.icon}),e._v(" "),n("span",[e._v(e._s(t.name))])])])})),0)],1):e._e(),e._v(" "),e.advanceFields.length?n("div",[n("div",{staticClass:"widget-cate"},[e._v("高级字段")]),e._v(" "),n("draggable",e._b({attrs:{tag:"ul",list:e.getAdvanceComponents}},"draggable",{group:{name:"people",pull:"clone",put:!1},sort:!1,ghostClass:"ghost"},!1),e._l(e.getAdvanceComponents,(function(t,i){return n("li",{key:i,staticClass:"form-edit-widget-label",class:((i={"no-put":["table","table_h5","tabs"].includes(t.type)})[t.type]=!0,i)},[n("a",[n("i",{staticClass:"icon iconfont",class:t.icon}),e._v(" "),n("span",[e._v(e._s(t.name))])])])})),0)],1):e._e(),e._v(" "),e.layoutFields.length?n("div",[n("div",{staticClass:"widget-cate"},[e._v("布局字段")]),e._v(" "),n("draggable",e._b({attrs:{tag:"ul",list:e.getLayoutComponents}},"draggable",{group:{name:"people",pull:"clone",put:!1},sort:!1,ghostClass:"ghost"},!1),e._l(e.getLayoutComponents,(function(t,i){return n("li",{key:i,staticClass:"form-edit-widget-label",class:((i={"no-put":["alliance"].includes(t.type)})[t.type]=!0,i)},[n("a",[n("i",{staticClass:"icon iconfont",class:t.icon}),e._v(" "),n("span",[e._v(e._s(t.name))])])])})),0)],1):e._e()])]),e._v(" "),n("el-container",{staticClass:"center-container",attrs:{direction:"vertical"}},[n("el-header",[n("div",{staticClass:"client"},[n("i",{staticClass:"el-icon-monitor",class:{active:"monitor"===e.client},on:{click:function(t){e.client="monitor"}}}),e._v(" "),n("i",{staticClass:"el-icon-mobile",class:{active:"mobile"===e.client},on:{click:function(t){e.client="mobile"}}})]),e._v(" "),e._t("action"),e._v(" "),n("el-popover",{staticStyle:{margin:"0 10px"},attrs:{placement:"top",trigger:"hover"}},[n("el-button",{attrs:{slot:"reference",type:"text",size:"medium",icon:"el-icon-upload2"},slot:"reference"},[e._v("导入")]),e._v(" "),n("div",[n("el-upload",{attrs:{action:"",accept:".xlsx, .xls","auto-upload":!1,"show-file-list":!1,"on-change":e.onExcelFileChange}},[e.upload?n("el-button",{attrs:{type:"text",size:"medium"}},[e._v("导入EXCEL\n ")]):e._e()],1),e._v(" "),e.upload?n("el-button",{attrs:{type:"text",size:"medium"},on:{click:function(t){e.dialog.import.visible=!0}}},[e._v("导入JSON\n ")]):e._e()],1)],1),e._v(" "),e.clearable?n("el-button",{attrs:{type:"text",size:"medium",icon:"el-icon-delete"},on:{click:e.handleClear}},[e._v("清空\n ")]):e._e(),e._v(" "),e.preview?n("el-button",{attrs:{type:"text",size:"medium",icon:"el-icon-view"},on:{click:e.handlePreview}},[e._v("预览\n ")]):e._e(),e._v(" "),e.generateJson?n("el-button",{attrs:{type:"text",size:"medium",icon:"el-icon-tickets"},on:{click:e.handleGenerateJson}},[e._v("生成JSON")]):e._e(),e._v(" "),e.generateCode?n("el-button",{attrs:{type:"text",size:"medium",icon:"el-icon-document"},on:{click:e.handleGenerateCode}},[e._v("生成代码")]):e._e()],2),e._v(" "),n("el-main",[n("widget-form",{ref:"widgetForm",attrs:{data:e.widgetFormData,select:e.widgetFormSelect,client:e.client},on:{"update:select":function(t){e.widgetFormSelect=t}}})],1)],1),e._v(" "),n("el-aside",{staticClass:"config-container"},[n("el-container",[n("el-header",{attrs:{height:"45px"}},[n("div",{staticClass:"config-tab",class:{active:"widget"==e.configTab},on:{click:function(t){return e.handleConfigSelect("widget")}}},[e._v("\n 字段属性\n ")]),e._v(" "),n("div",{staticClass:"config-tab",class:{active:"form"==e.configTab},on:{click:function(t){return e.handleConfigSelect("form")}}},[e._v("\n 表单属性\n ")])]),e._v(" "),n("el-main",{staticClass:"config-container-content"},[n("widget-config",{directives:[{name:"show",rawName:"v-show",value:"widget"==e.configTab,expression:"configTab == 'widget'"}],attrs:{data:e.widgetFormSelect,remoteApis:e.remoteApis,config:e.widgetFormData.config}}),e._v(" "),n("form-config",{directives:[{name:"show",rawName:"v-show",value:"form"==e.configTab,expression:"configTab == 'form'"}],attrs:{data:e.widgetFormData.config}})],1)],1)],1),e._v(" "),n("th-dialog",{attrs:{title:"导入JSON",visible:e.dialog.import.visible},on:{"on-close":function(t){e.dialog.import.visible=!1},"on-affirm":e.handleUploadJson,"on-fullscreen":function(t){return e.$refs.valueCodeEditor.resize()}}},[n("el-alert",{attrs:{type:"info",title:"JSON格式如下,直接复制生成的json覆盖此处代码点击确定即可"}}),e._v(" "),n("th-code-editor",{ref:"valueCodeEditor",model:{value:e.dialog.import.value,callback:function(t){e.$set(e.dialog.import,"value",t)},expression:"dialog.import.value"}})],1),e._v(" "),n("th-dialog",{attrs:{title:"预览",visible:e.dialog.preview.visible},on:{"on-close":function(t){e.dialog.preview.visible=!1}}},[e.dialog.preview.visible?n("generate-form",{ref:"generateForm",attrs:{data:e.widgetFormData,value:e.widgetValue,remote:e.remoteFuncs,slotKeys:e.slotKeys,client:e.client,insite:"true"},on:{"on-change":e.handleDataChange}},[e._l(e.slotKeys,(function(t){return n("template",{slot:t},[e._t(t)],2)}))],2):e._e(),e._v(" "),n("template",{slot:"footer"},[n("el-button",{attrs:{type:"primary"},on:{click:e.handleGetData}},[e._v("获取数据")]),e._v(" "),n("el-button",{on:{click:e.handleReset}},[e._v("重置")])],1)],2),e._v(" "),n("th-dialog",{attrs:{title:"获取数据",visible:e.dialog.data.visible},on:{"on-close":function(t){e.dialog.data.visible=!1},"on-fullscreen":function(t){return e.$refs.dataCodeEditor.resize()}}},[n("th-code-editor",{ref:"dataCodeEditor",model:{value:e.dialog.data.value,callback:function(t){e.$set(e.dialog.data,"value",t)},expression:"dialog.data.value"}}),e._v(" "),n("template",{slot:"footer"},[n("el-button",{staticClass:"json-btn",attrs:{type:"primary","data-clipboard-text":e.dialog.data.valueCopy}},[e._v("复制数据")])],1)],2),e._v(" "),n("th-dialog",{attrs:{title:"生成JSON",visible:e.dialog.config.visible},on:{"on-close":function(t){e.dialog.config.visible=!1},"on-fullscreen":function(t){return e.$refs.jsonCodeEditor.resize()}}},[n("th-code-editor",{ref:"jsonCodeEditor",model:{value:e.dialog.config.value,callback:function(t){e.$set(e.dialog.config,"value",t)},expression:"dialog.config.value"}}),e._v(" "),n("template",{slot:"footer"},[n("el-button",{staticClass:"json-btn",attrs:{type:"primary","data-clipboard-text":e.dialog.config.valueCopy}},[e._v("复制数据")])],1)],2),e._v(" "),n("th-dialog",{staticClass:"codeDialog",attrs:{title:"生成代码",visible:e.dialog.code.visible,showFooter:!1},on:{"on-close":function(t){e.dialog.code.visible=!1},"on-fullscreen":e.handleDialogFullscreen}},[n("el-tabs",{staticStyle:{"box-shadow":"none"},attrs:{type:"border-card"},model:{value:e.dialog.code.type,callback:function(t){e.$set(e.dialog.code,"type",t)},expression:"dialog.code.type"}},[n("el-tab-pane",{attrs:{label:"Vue Component",name:"vue"}},[n("th-code-editor",{ref:"vueCodeEditor",attrs:{language:"html",readonly:""},model:{value:e.dialog.code.valueVue,callback:function(t){e.$set(e.dialog.code,"valueVue",t)},expression:"dialog.code.valueVue"}})],1),e._v(" "),n("el-tab-pane",{attrs:{label:"HTML",name:"html"}},[n("th-code-editor",{ref:"htmlCodeEditor",attrs:{language:"html",readonly:""},model:{value:e.dialog.code.valueHtml,callback:function(t){e.$set(e.dialog.code,"valueHtml",t)},expression:"dialog.code.valueHtml"}})],1)],1)],1)],1)],1)],1)],1)}),[],!1,null,null,null).exports,bl=(vl.install=function(e){e.component(vl.name,vl)},J.install=function(e){e.component(J.name,J)},[vl,J]),wl=("undefined"!=typeof window&&window.Vue&&function(e){bl.forEach((function(t){e.component(t.name,t)}))}(window.Vue),[o,s,d,f,g,v,w,x,_,S,T,O,R,I,D,z,vl,J]);"undefined"!=typeof window&&window.Vue&&ml(window.Vue),Ir=n(287).version;t.default={version:Ir,install:ml}}])}));