imatrix-ui 2.9.45-dw → 2.9.47-dw
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/super-ui.umd.min.js
CHANGED
|
@@ -25,14 +25,14 @@ function o(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;va
|
|
|
25
25
|
* open source under the MIT license
|
|
26
26
|
* https://github.com/tangbc/vue-virtual-scroll-list#readme
|
|
27
27
|
*/
|
|
28
|
-
(function(t,r){e.exports=r(n("8bbf"))})(0,(function(e){"use strict";function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e){return l(e)||u(e)||c(e)||d()}function l(e){if(Array.isArray(e))return f(e)}function u(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function c(e,t){if(e){if("string"===typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e;var h={FRONT:"FRONT",BEHIND:"BEHIND"},p={INIT:"INIT",FIXED:"FIXED",DYNAMIC:"DYNAMIC"},m=0,g=function(){function e(n,r){t(this,e),this.init(n,r)}return r(e,[{key:"init",value:function(e,t){this.param=e,this.callUpdate=t,this.sizes=new Map,this.firstRangeTotalSize=0,this.firstRangeAverageSize=0,this.lastCalcIndex=0,this.fixedSizeValue=0,this.calcType=p.INIT,this.offset=0,this.direction="",this.range=Object.create(null),e&&this.checkRange(0,e.keeps-1)}},{key:"destroy",value:function(){this.init(null,null)}},{key:"getRange",value:function(){var e=Object.create(null);return e.start=this.range.start,e.end=this.range.end,e.padFront=this.range.padFront,e.padBehind=this.range.padBehind,e}},{key:"isBehind",value:function(){return this.direction===h.BEHIND}},{key:"isFront",value:function(){return this.direction===h.FRONT}},{key:"getOffset",value:function(e){return(e<1?0:this.getIndexOffset(e))+this.param.slotHeaderSize}},{key:"updateParam",value:function(e,t){var n=this;this.param&&e in this.param&&("uniqueIds"===e&&this.sizes.forEach((function(e,r){t.includes(r)||n.sizes["delete"](r)})),this.param[e]=t)}},{key:"saveSize",value:function(e,t){this.sizes.set(e,t),this.calcType===p.INIT?(this.fixedSizeValue=t,this.calcType=p.FIXED):this.calcType===p.FIXED&&this.fixedSizeValue!==t&&(this.calcType=p.DYNAMIC,delete this.fixedSizeValue),this.calcType!==p.FIXED&&"undefined"!==typeof this.firstRangeTotalSize&&(this.sizes.size<Math.min(this.param.keeps,this.param.uniqueIds.length)?(this.firstRangeTotalSize=s(this.sizes.values()).reduce((function(e,t){return e+t}),0),this.firstRangeAverageSize=Math.round(this.firstRangeTotalSize/this.sizes.size)):delete this.firstRangeTotalSize)}},{key:"handleDataSourcesChange",value:function(){var e=this.range.start;this.isFront()?e-=m:this.isBehind()&&(e+=m),e=Math.max(e,0),this.updateRange(this.range.start,this.getEndByStart(e))}},{key:"handleSlotSizeChange",value:function(){this.handleDataSourcesChange()}},{key:"handleScroll",value:function(e){this.direction=e<this.offset?h.FRONT:h.BEHIND,this.offset=e,this.param&&(this.direction===h.FRONT?this.handleFront():this.direction===h.BEHIND&&this.handleBehind())}},{key:"handleFront",value:function(){var e=this.getScrollOvers();if(!(e>this.range.start)){var t=Math.max(e-this.param.buffer,0);this.checkRange(t,this.getEndByStart(t))}}},{key:"handleBehind",value:function(){var e=this.getScrollOvers();e<this.range.start+this.param.buffer||this.checkRange(e,this.getEndByStart(e))}},{key:"getScrollOvers",value:function(){var e=this.offset-this.param.slotHeaderSize;if(e<=0)return 0;if(this.isFixedType())return Math.floor(e/this.fixedSizeValue);var t=0,n=0,r=0,i=this.param.uniqueIds.length;while(t<=i){if(n=t+Math.floor((i-t)/2),r=this.getIndexOffset(n),r===e)return n;r<e?t=n+1:r>e&&(i=n-1)}return t>0?--t:0}},{key:"getIndexOffset",value:function(e){if(!e)return 0;for(var t=0,n=0,r=0;r<e;r++)n=this.sizes.get(this.param.uniqueIds[r]),t+="number"===typeof n?n:this.getEstimateSize();return this.lastCalcIndex=Math.max(this.lastCalcIndex,e-1),this.lastCalcIndex=Math.min(this.lastCalcIndex,this.getLastIndex()),t}},{key:"isFixedType",value:function(){return this.calcType===p.FIXED}},{key:"getLastIndex",value:function(){return this.param.uniqueIds.length-1}},{key:"checkRange",value:function(e,t){var n=this.param.keeps,r=this.param.uniqueIds.length;r<=n?(e=0,t=this.getLastIndex()):t-e<n-1&&(e=t-n+1),this.range.start!==e&&this.updateRange(e,t)}},{key:"updateRange",value:function(e,t){this.range.start=e,this.range.end=t,this.range.padFront=this.getPadFront(),this.range.padBehind=this.getPadBehind(),this.callUpdate(this.getRange())}},{key:"getEndByStart",value:function(e){var t=e+this.param.keeps-1,n=Math.min(t,this.getLastIndex());return n}},{key:"getPadFront",value:function(){return this.isFixedType()?this.fixedSizeValue*this.range.start:this.getIndexOffset(this.range.start)}},{key:"getPadBehind",value:function(){var e=this.range.end,t=this.getLastIndex();return this.isFixedType()?(t-e)*this.fixedSizeValue:this.lastCalcIndex===t?this.getIndexOffset(t)-this.getIndexOffset(e):(t-e)*this.getEstimateSize()}},{key:"getEstimateSize",value:function(){return this.isFixedType()?this.fixedSizeValue:this.firstRangeAverageSize||this.param.estimateSize}}]),e}(),v={dataKey:{type:[String,Function],required:!0},dataSources:{type:Array,required:!0},dataComponent:{type:[Object,Function],required:!0},keeps:{type:Number,default:30},extraProps:{type:Object},estimateSize:{type:Number,default:50},direction:{type:String,default:"vertical"},start:{type:Number,default:0},offset:{type:Number,default:0},topThreshold:{type:Number,default:0},bottomThreshold:{type:Number,default:0},pageMode:{type:Boolean,default:!1},rootTag:{type:String,default:"div"},wrapTag:{type:String,default:"div"},wrapClass:{type:String,default:""},wrapStyle:{type:Object},itemTag:{type:String,default:"div"},itemClass:{type:String,default:""},itemClassAdd:{type:Function},itemStyle:{type:Object},headerTag:{type:String,default:"div"},headerClass:{type:String,default:""},headerStyle:{type:Object},footerTag:{type:String,default:"div"},footerClass:{type:String,default:""},footerStyle:{type:Object},itemScopedSlots:{type:Object}},b={index:{type:Number},event:{type:String},tag:{type:String},horizontal:{type:Boolean},source:{type:Object},component:{type:[Object,Function]},slotComponent:{type:Function},uniqueKey:{type:[String,Number]},extraProps:{type:Object},scopedSlots:{type:Object}},y={event:{type:String},uniqueKey:{type:String},tag:{type:String},horizontal:{type:Boolean}},w={created:function(){this.shapeKey=this.horizontal?"offsetWidth":"offsetHeight"},mounted:function(){var e=this;"undefined"!==typeof ResizeObserver&&(this.resizeObserver=new ResizeObserver((function(){e.dispatchSizeChange()})),this.resizeObserver.observe(this.$el))},updated:function(){this.dispatchSizeChange()},beforeDestroy:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)},methods:{getCurrentSize:function(){return this.$el?this.$el[this.shapeKey]:0},dispatchSizeChange:function(){this.$parent.$emit(this.event,this.uniqueKey,this.getCurrentSize(),this.hasInitial)}}},_=e.component("virtual-list-item",{mixins:[w],props:b,render:function(e){var t=this.tag,n=this.component,r=this.extraProps,i=void 0===r?{}:r,o=this.index,s=this.source,l=this.scopedSlots,u=void 0===l?{}:l,c=this.uniqueKey,f=this.slotComponent,d=a({},i,{source:s,index:o});return e(t,{key:c,attrs:{role:"listitem"}},[f?e("div",f({item:s,index:o,scope:d})):e(n,{props:d,scopedSlots:u})])}}),C=e.component("virtual-list-slot",{mixins:[w],props:y,render:function(e){var t=this.tag,n=this.uniqueKey;return e(t,{key:n,attrs:{role:n}},this.$slots["default"])}}),x={ITEM:"item_resize",SLOT:"slot_resize"},S={HEADER:"thead",FOOTER:"tfoot"},k=e.component("virtual-list",{props:v,data:function(){return{range:null}},watch:{"dataSources.length":function(){this.virtual.updateParam("uniqueIds",this.getUniqueIdFromDataSources()),this.virtual.handleDataSourcesChange()},keeps:function(e){this.virtual.updateParam("keeps",e),this.virtual.handleSlotSizeChange()},start:function(e){this.scrollToIndex(e)},offset:function(e){this.scrollToOffset(e)}},created:function(){this.isHorizontal="horizontal"===this.direction,this.directionKey=this.isHorizontal?"scrollLeft":"scrollTop",this.installVirtual(),this.$on(x.ITEM,this.onItemResized),(this.$slots.header||this.$slots.footer)&&this.$on(x.SLOT,this.onSlotResized)},activated:function(){this.scrollToOffset(this.virtual.offset)},mounted:function(){this.start?this.scrollToIndex(this.start):this.offset&&this.scrollToOffset(this.offset),this.pageMode&&(this.updatePageModeFront(),document.addEventListener("scroll",this.onScroll,{passive:!1}))},beforeDestroy:function(){this.virtual.destroy(),this.pageMode&&document.removeEventListener("scroll",this.onScroll)},methods:{getSize:function(e){return this.virtual.sizes.get(e)},getSizes:function(){return this.virtual.sizes.size},getOffset:function(){if(this.pageMode)return document.documentElement[this.directionKey]||document.body[this.directionKey];var e=this.$refs.root;return e?Math.ceil(e[this.directionKey]):0},getClientSize:function(){var e=this.isHorizontal?"clientWidth":"clientHeight";if(this.pageMode)return document.documentElement[e]||document.body[e];var t=this.$refs.root;return t?Math.ceil(t[e]):0},getScrollSize:function(){var e=this.isHorizontal?"scrollWidth":"scrollHeight";if(this.pageMode)return document.documentElement[e]||document.body[e];var t=this.$refs.root;return t?Math.ceil(t[e]):0},scrollToOffset:function(e){if(this.pageMode)document.body[this.directionKey]=e,document.documentElement[this.directionKey]=e;else{var t=this.$refs.root;t&&(t[this.directionKey]=e)}},scrollToIndex:function(e){if(e>=this.dataSources.length-1)this.scrollToBottom();else{var t=this.virtual.getOffset(e);this.scrollToOffset(t)}},scrollToBottom:function(){var e=this,t=this.$refs.shepherd;if(t){var n=t[this.isHorizontal?"offsetLeft":"offsetTop"];this.scrollToOffset(n),setTimeout((function(){e.getOffset()+e.getClientSize()<e.getScrollSize()&&e.scrollToBottom()}),3)}},updatePageModeFront:function(){var e=this.$refs.root;if(e){var t=e.getBoundingClientRect(),n=e.ownerDocument.defaultView,r=this.isHorizontal?t.left+n.pageXOffset:t.top+n.pageYOffset;this.virtual.updateParam("slotHeaderSize",r)}},reset:function(){this.virtual.destroy(),this.scrollToOffset(0),this.installVirtual()},installVirtual:function(){this.virtual=new g({slotHeaderSize:0,slotFooterSize:0,keeps:this.keeps,estimateSize:this.estimateSize,buffer:Math.round(this.keeps/3),uniqueIds:this.getUniqueIdFromDataSources()},this.onRangeChanged),this.range=this.virtual.getRange()},getUniqueIdFromDataSources:function(){var e=this.dataKey;return this.dataSources.map((function(t){return"function"===typeof e?e(t):t[e]}))},onItemResized:function(e,t){this.virtual.saveSize(e,t),this.$emit("resized",e,t)},onSlotResized:function(e,t,n){e===S.HEADER?this.virtual.updateParam("slotHeaderSize",t):e===S.FOOTER&&this.virtual.updateParam("slotFooterSize",t),n&&this.virtual.handleSlotSizeChange()},onRangeChanged:function(e){this.range=e},onScroll:function(e){var t=this.getOffset(),n=this.getClientSize(),r=this.getScrollSize();t<0||t+n>r+1||!r||(this.virtual.handleScroll(t),this.emitEvent(t,n,r,e))},emitEvent:function(e,t,n,r){this.$emit("scroll",r,this.virtual.getRange()),this.virtual.isFront()&&this.dataSources.length&&e-this.topThreshold<=0?this.$emit("totop"):this.virtual.isBehind()&&e+t+this.bottomThreshold>=n&&this.$emit("tobottom")},getRenderSlots:function(e){for(var t=[],n=this.range,r=n.start,i=n.end,o=this.dataSources,a=this.dataKey,s=this.itemClass,l=this.itemTag,u=this.itemStyle,c=this.isHorizontal,f=this.extraProps,d=this.dataComponent,h=this.itemScopedSlots,p=this.$scopedSlots&&this.$scopedSlots.item,m=r;m<=i;m++){var g=o[m];if(g){var v="function"===typeof a?a(g):g[a];"string"===typeof v||"number"===typeof v?t.push(e(_,{props:{index:m,tag:l,event:x.ITEM,horizontal:c,uniqueKey:v,source:g,extraProps:f,component:d,slotComponent:p,scopedSlots:h},style:u,class:"".concat(s).concat(this.itemClassAdd?" "+this.itemClassAdd(m):"")})):console.warn("Cannot get the data-key '".concat(a,"' from data-sources."))}else console.warn("Cannot get the index '".concat(m,"' from data-sources."))}return t}},render:function(e){var t=this.$slots,n=t.header,r=t.footer,i=this.range,o=i.padFront,a=i.padBehind,s=this.isHorizontal,l=this.pageMode,u=this.rootTag,c=this.wrapTag,f=this.wrapClass,d=this.wrapStyle,h=this.headerTag,p=this.headerClass,m=this.headerStyle,g=this.footerTag,v=this.footerClass,b=this.footerStyle,y={padding:s?"0px ".concat(a,"px 0px ").concat(o,"px"):"".concat(o,"px 0px ").concat(a,"px")},w=d?Object.assign({},d,y):y;return e(u,{ref:"root",on:{"&scroll":!l&&this.onScroll}},[n?e(C,{class:p,style:m,props:{tag:h,event:x.SLOT,uniqueKey:S.HEADER}},n):null,e(c,{class:f,attrs:{role:"group"},style:w},this.getRenderSlots(e)),r?e(C,{class:v,style:b,props:{tag:g,event:x.SLOT,uniqueKey:S.FOOTER}},r):null,e("div",{ref:"shepherd",style:{width:s?"0px":"100%",height:s?"100%":"0px"}})])}});return k}))},"8a81":function(e,t,n){"use strict";var r=n("7726"),i=n("69a8"),o=n("9e1e"),a=n("5ca1"),s=n("2aba"),l=n("67ab").KEY,u=n("79e5"),c=n("5537"),f=n("7f20"),d=n("ca5a"),h=n("2b4c"),p=n("37c8"),m=n("3a72"),g=n("d4c0"),v=n("1169"),b=n("cb7c"),y=n("d3f4"),w=n("4bf8"),_=n("6821"),C=n("6a99"),x=n("4630"),S=n("2aeb"),k=n("7bbc"),D=n("11e9"),O=n("2621"),T=n("86cc"),E=n("0d58"),I=D.f,N=T.f,A=k.f,P=r.Symbol,M=r.JSON,R=M&&M.stringify,F="prototype",B=h("_hidden"),L=h("toPrimitive"),$={}.propertyIsEnumerable,V=c("symbol-registry"),j=c("symbols"),z=c("op-symbols"),H=Object[F],U="function"==typeof P&&!!O.f,W=r.QObject,q=!W||!W[F]||!W[F].findChild,G=o&&u((function(){return 7!=S(N({},"a",{get:function(){return N(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=I(H,t);r&&delete H[t],N(e,t,n),r&&e!==H&&N(H,t,r)}:N,Y=function(e){var t=j[e]=S(P[F]);return t._k=e,t},K=U&&"symbol"==typeof P.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof P},X=function(e,t,n){return e===H&&X(z,t,n),b(e),t=C(t,!0),b(n),i(j,t)?(n.enumerable?(i(e,B)&&e[B][t]&&(e[B][t]=!1),n=S(n,{enumerable:x(0,!1)})):(i(e,B)||N(e,B,x(1,{})),e[B][t]=!0),G(e,t,n)):N(e,t,n)},J=function(e,t){b(e);var n,r=g(t=_(t)),i=0,o=r.length;while(o>i)X(e,n=r[i++],t[n]);return e},Z=function(e,t){return void 0===t?S(e):J(S(e),t)},Q=function(e){var t=$.call(this,e=C(e,!0));return!(this===H&&i(j,e)&&!i(z,e))&&(!(t||!i(this,e)||!i(j,e)||i(this,B)&&this[B][e])||t)},ee=function(e,t){if(e=_(e),t=C(t,!0),e!==H||!i(j,t)||i(z,t)){var n=I(e,t);return!n||!i(j,t)||i(e,B)&&e[B][t]||(n.enumerable=!0),n}},te=function(e){var t,n=A(_(e)),r=[],o=0;while(n.length>o)i(j,t=n[o++])||t==B||t==l||r.push(t);return r},ne=function(e){var t,n=e===H,r=A(n?z:_(e)),o=[],a=0;while(r.length>a)!i(j,t=r[a++])||n&&!i(H,t)||o.push(j[t]);return o};U||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(n){this===H&&t.call(z,n),i(this,B)&&i(this[B],e)&&(this[B][e]=!1),G(this,e,x(1,n))};return o&&q&&G(H,e,{configurable:!0,set:t}),Y(e)},s(P[F],"toString",(function(){return this._k})),D.f=ee,T.f=X,n("9093").f=k.f=te,n("52a7").f=Q,O.f=ne,o&&!n("2d00")&&s(H,"propertyIsEnumerable",Q,!0),p.f=function(e){return Y(h(e))}),a(a.G+a.W+a.F*!U,{Symbol:P});for(var re="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ie=0;re.length>ie;)h(re[ie++]);for(var oe=E(h.store),ae=0;oe.length>ae;)m(oe[ae++]);a(a.S+a.F*!U,"Symbol",{for:function(e){return i(V,e+="")?V[e]:V[e]=P(e)},keyFor:function(e){if(!K(e))throw TypeError(e+" is not a symbol!");for(var t in V)if(V[t]===e)return t},useSetter:function(){q=!0},useSimple:function(){q=!1}}),a(a.S+a.F*!U,"Object",{create:Z,defineProperty:X,defineProperties:J,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:ne});var se=u((function(){O.f(1)}));a(a.S+a.F*se,"Object",{getOwnPropertySymbols:function(e){return O.f(w(e))}}),M&&a(a.S+a.F*(!U||u((function(){var e=P();return"[null]"!=R([e])||"{}"!=R({a:e})||"{}"!=R(Object(e))}))),"JSON",{stringify:function(e){var t,n,r=[e],i=1;while(arguments.length>i)r.push(arguments[i++]);if(n=t=r[1],(y(t)||void 0!==e)&&!K(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!K(t))return t}),r[1]=t,R.apply(M,r)}}),P[F][L]||n("32e9")(P[F],L,P[F].valueOf),f(P,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},"8aae":function(e,t,n){n("32a6"),e.exports=n("584a").Object.keys},"8b97":function(e,t,n){var r=n("d3f4"),i=n("cb7c"),o=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=n("9b43")(Function.call,n("11e9").f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(i){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},"8bbf":function(e,t){e.exports=__WEBPACK_EXTERNAL_MODULE__8bbf__},"8c95":function(e,t,n){"use strict";var r=n("fb63"),i=n("2e1c"),o=function(){function e(e,t){this.x=e,this.y=t}return e.prototype.getX=function(){return this.x},e.prototype.getY=function(){return this.y},e.prototype.equals=function(t){if(t instanceof e){var n=t;return this.x===n.x&&this.y===n.y}return!1},e.prototype.hashCode=function(){return 31*i["a"].floatToIntBits(this.x)+i["a"].floatToIntBits(this.y)},e.prototype.toString=function(){return"("+this.x+","+this.y+")"},e.orderBestPatterns=function(e){var t,n,r,i=this.distance(e[0],e[1]),o=this.distance(e[1],e[2]),a=this.distance(e[0],e[2]);if(o>=i&&o>=a?(n=e[0],t=e[1],r=e[2]):a>=o&&a>=i?(n=e[1],t=e[0],r=e[2]):(n=e[2],t=e[0],r=e[1]),this.crossProductZ(t,n,r)<0){var s=t;t=r,r=s}e[0]=t,e[1]=n,e[2]=r},e.distance=function(e,t){return r["a"].distance(e.x,e.y,t.x,t.y)},e.crossProductZ=function(e,t,n){var r=t.x,i=t.y;return(n.x-r)*(e.y-i)-(n.y-i)*(e.x-r)},e}();t["a"]=o},"8e60":function(e,t,n){e.exports=!n("294c")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"8e6e":function(e,t,n){var r=n("5ca1"),i=n("990b"),o=n("6821"),a=n("11e9"),s=n("f1ae");r(r.S,"Object",{getOwnPropertyDescriptors:function(e){var t,n,r=o(e),l=a.f,u=i(r),c={},f=0;while(u.length>f)n=l(r,t=u[f++]),void 0!==n&&s(c,t,n);return c}})},"8eb7":function(e,t){var n,r,i,o,a,s,l,u,c,f,d,h,p,m,g,v=!1;function b(){if(!v){v=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),b=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(h=/\b(iPhone|iP[ao]d)/.exec(e),p=/\b(iP[ao]d)/.exec(e),f=/Android/i.exec(e),m=/FBAN\/\w+;/i.exec(e),g=/Mobile/i.exec(e),d=!!/Win64/.exec(e),t){n=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,n&&document&&document.documentMode&&(n=document.documentMode);var y=/(?:Trident\/(\d+.\d+))/.exec(e);s=y?parseFloat(y[1])+4:n,r=t[2]?parseFloat(t[2]):NaN,i=t[3]?parseFloat(t[3]):NaN,o=t[4]?parseFloat(t[4]):NaN,o?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),a=t&&t[1]?parseFloat(t[1]):NaN):a=NaN}else n=r=i=a=o=NaN;if(b){if(b[1]){var w=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);l=!w||parseFloat(w[1].replace("_","."))}else l=!1;u=!!b[2],c=!!b[3]}else l=u=c=!1}}var y={ie:function(){return b()||n},ieCompatibilityMode:function(){return b()||s>n},ie64:function(){return y.ie()&&d},firefox:function(){return b()||r},opera:function(){return b()||i},webkit:function(){return b()||o},safari:function(){return y.webkit()},chrome:function(){return b()||a},windows:function(){return b()||u},osx:function(){return b()||l},linux:function(){return b()||c},iphone:function(){return b()||h},mobile:function(){return b()||h||p||f||g},nativeApp:function(){return b()||m},android:function(){return b()||f},ipad:function(){return b()||p}};e.exports=y},"8f21":function(e,t){},"8f60":function(e,t,n){"use strict";var r=n("a159"),i=n("aebd"),o=n("45f2"),a={};n("35e8")(a,n("5168")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},9003:function(e,t,n){var r=n("6b4c");e.exports=Array.isArray||function(e){return"Array"==r(e)}},9068:function(e,t,n){"use strict";var r=n("f0a7"),i=n("cb12"),o=n("ea29"),a=n("63af"),s=function(){function e(t,n){void 0===t?(this.size=0,this.bits=new Int32Array(1)):(this.size=t,this.bits=void 0===n||null===n?e.makeArray(t):n)}return e.prototype.getSize=function(){return this.size},e.prototype.getSizeInBytes=function(){return Math.floor((this.size+7)/8)},e.prototype.ensureCapacity=function(t){if(t>32*this.bits.length){var n=e.makeArray(t);a["a"].arraycopy(this.bits,0,n,0,this.bits.length),this.bits=n}},e.prototype.get=function(e){return 0!==(this.bits[Math.floor(e/32)]&1<<(31&e))},e.prototype.set=function(e){this.bits[Math.floor(e/32)]|=1<<(31&e)},e.prototype.flip=function(e){this.bits[Math.floor(e/32)]^=1<<(31&e)},e.prototype.getNextSet=function(e){var t=this.size;if(e>=t)return t;var n=this.bits,r=Math.floor(e/32),i=n[r];i&=~((1<<(31&e))-1);var a=n.length;while(0===i){if(++r===a)return t;i=n[r]}var s=32*r+o["a"].numberOfTrailingZeros(i);return s>t?t:s},e.prototype.getNextUnset=function(e){var t=this.size;if(e>=t)return t;var n=this.bits,r=Math.floor(e/32),i=~n[r];i&=~((1<<(31&e))-1);var a=n.length;while(0===i){if(++r===a)return t;i=~n[r]}var s=32*r+o["a"].numberOfTrailingZeros(i);return s>t?t:s},e.prototype.setBulk=function(e,t){this.bits[Math.floor(e/32)]=t},e.prototype.setRange=function(e,t){if(t<e||e<0||t>this.size)throw new r["a"];if(t!==e){t--;for(var n=Math.floor(e/32),i=Math.floor(t/32),o=this.bits,a=n;a<=i;a++){var s=a>n?0:31&e,l=a<i?31:31&t,u=(2<<l)-(1<<s);o[a]|=u}}},e.prototype.clear=function(){for(var e=this.bits.length,t=this.bits,n=0;n<e;n++)t[n]=0},e.prototype.isRange=function(e,t,n){if(t<e||e<0||t>this.size)throw new r["a"];if(t===e)return!0;t--;for(var i=Math.floor(e/32),o=Math.floor(t/32),a=this.bits,s=i;s<=o;s++){var l=s>i?0:31&e,u=s<o?31:31&t,c=(2<<u)-(1<<l)&4294967295;if((a[s]&c)!==(n?c:0))return!1}return!0},e.prototype.appendBit=function(e){this.ensureCapacity(this.size+1),e&&(this.bits[Math.floor(this.size/32)]|=1<<(31&this.size)),this.size++},e.prototype.appendBits=function(e,t){if(t<0||t>32)throw new r["a"]("Num bits must be between 0 and 32");this.ensureCapacity(this.size+t);for(var n=t;n>0;n--)this.appendBit(1===(e>>n-1&1))},e.prototype.appendBitArray=function(e){var t=e.size;this.ensureCapacity(this.size+t);for(var n=0;n<t;n++)this.appendBit(e.get(n))},e.prototype.xor=function(e){if(this.size!==e.size)throw new r["a"]("Sizes don't match");for(var t=this.bits,n=0,i=t.length;n<i;n++)t[n]^=e.bits[n]},e.prototype.toBytes=function(e,t,n,r){for(var i=0;i<r;i++){for(var o=0,a=0;a<8;a++)this.get(e)&&(o|=1<<7-a),e++;t[n+i]=o}},e.prototype.getBitArray=function(){return this.bits},e.prototype.reverse=function(){for(var e=new Int32Array(this.bits.length),t=Math.floor((this.size-1)/32),n=t+1,r=this.bits,i=0;i<n;i++){var o=r[i];o=o>>1&1431655765|(1431655765&o)<<1,o=o>>2&858993459|(858993459&o)<<2,o=o>>4&252645135|(252645135&o)<<4,o=o>>8&16711935|(16711935&o)<<8,o=o>>16&65535|(65535&o)<<16,e[t-i]=o}if(this.size!==32*n){var a=32*n-this.size,s=e[0]>>>a;for(i=1;i<n;i++){var l=e[i];s|=l<<32-a,e[i-1]=s,s=l>>>a}e[n-1]=s}this.bits=e},e.makeArray=function(e){return new Int32Array(Math.floor((e+31)/32))},e.prototype.equals=function(t){if(!(t instanceof e))return!1;var n=t;return this.size===n.size&&i["a"].equals(this.bits,n.bits)},e.prototype.hashCode=function(){return 31*this.size+i["a"].hashCode(this.bits)},e.prototype.toString=function(){for(var e="",t=0,n=this.size;t<n;t++)0===(7&t)&&(e+=" "),e+=this.get(t)?"X":".";return e},e.prototype.clone=function(){return new e(this.size,this.bits.slice())},e}();t["a"]=s},9093:function(e,t,n){var r=n("ce10"),i=n("e11e").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},"90e7":function(e,t,n){n("3c41")},9138:function(e,t,n){e.exports=n("35e8")},9219:function(e,t,n){"use strict";n("760b")},9243:function(e,t,n){"use strict";t.__esModule=!0,t.i18n=t.use=t.t=void 0;var r=n("633f"),i=h(r),o=n("11a6"),a=h(o),s=n("8bbf"),l=h(s),u=n("3c4e"),c=h(u),f=n("949b"),d=h(f);function h(e){return e&&e.__esModule?e:{default:e}}var p=(0,d.default)(l.default),m=a.default,g=!1,v=function(){var e=(0,i.default)(this||l.default).$t;if("function"===typeof e&&l.default.locale)return g||(g=!0,l.default.locale(l.default.config.lang,(0,c.default)(m,l.default.locale(l.default.config.lang)||{},{clone:!0}))),e.apply(this,arguments)},b=t.t=function(e,t){var n=v.apply(this,arguments);if(null!==n&&void 0!==n)return n;for(var r=e.split("."),i=m,o=0,a=r.length;o<a;o++){var s=r[o];if(n=i[s],o===a-1)return p(n,t);if(!n)return"";i=n}return""},y=t.use=function(e){m=e||m},w=t.i18n=function(e){v=e||v};t.default={use:y,t:b,i18n:w}},"929b":function(e,t,n){"use strict";var r=n("8c95"),i=function(){function e(e,t,n,i,o){this.value=e,this.startEnd=t,this.value=e,this.startEnd=t,this.resultPoints=new Array,this.resultPoints.push(new r["a"](n,o)),this.resultPoints.push(new r["a"](i,o))}return e.prototype.getValue=function(){return this.value},e.prototype.getStartEnd=function(){return this.startEnd},e.prototype.getResultPoints=function(){return this.resultPoints},e.prototype.equals=function(t){if(!(t instanceof e))return!1;var n=t;return this.value===n.value},e.prototype.hashCode=function(){return this.value},e}();t["a"]=i},"92fa":function(e,t){var n=/^(attrs|props|on|nativeOn|class|style|hook)$/;function r(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}}e.exports=function(e){return e.reduce((function(e,t){var i,o,a,s,l;for(a in t)if(i=e[a],o=t[a],i&&n.test(a))if("class"===a&&("string"===typeof i&&(l=i,e[a]=i={},i[l]=!0),"string"===typeof o&&(l=o,t[a]=o={},o[l]=!0)),"on"===a||"nativeOn"===a||"hook"===a)for(s in o)i[s]=r(i[s],o[s]);else if(Array.isArray(i))e[a]=i.concat(o);else if(Array.isArray(o))e[a]=[i].concat(o);else for(s in o)i[s]=o[s];else e[a]=t[a];return e}),{})}},9306:function(e,t,n){"use strict";var r=n("8e60"),i=n("c3a1"),o=n("9aa9"),a=n("355d"),s=n("241e"),l=n("335c"),u=Object.assign;e.exports=!u||n("294c")((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=r}))?function(e,t){var n=s(e),u=arguments.length,c=1,f=o.f,d=a.f;while(u>c){var h,p=l(arguments[c++]),m=f?i(p).concat(f(p)):i(p),g=m.length,v=0;while(g>v)h=m[v++],r&&!d.call(p,h)||(n[h]=p[h])}return n}:u},9427:function(e,t,n){var r=n("63b6");r(r.S,"Object",{create:n("a159")})},9434:function(e,t,n){n("e8b0")},"949b":function(e,t,n){"use strict";t.__esModule=!0;var r=n("1098"),i=a(r);t.default=function(){function e(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return 1===n.length&&"object"===(0,i.default)(n[0])&&(n=n[0]),n&&n.hasOwnProperty||(n={}),e.replace(s,(function(t,r,i,a){var s=void 0;return"{"===e[a-1]&&"}"===e[a+t.length]?i:(s=(0,o.hasOwn)(n,i)?n[i]:null,null===s||void 0===s?"":s)}))}return e};var o=n("bf32");function a(e){return e&&e.__esModule?e:{default:e}}var s=/(%|)\{([0-9a-zA-Z_]+)\}/g},"94ce":function(e,t){(function(){"use strict";var e=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},t=function(t){return function(n){return e(n)===t}},n=function(e){return function(t){return typeof t===e}},r=function(e){return function(t){return e===t}},i=t("string"),o=t("object"),a=t("array"),s=r(null),l=n("boolean"),u=r(void 0),c=function(e){return null===e||void 0===e},f=function(e){return!c(e)},d=n("function"),h=n("number"),p=function(){},m=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e(t.apply(null,n))}},g=function(e,t){return function(n){return e(t(n))}},v=function(e){return function(){return e}},b=function(e){return e},y=function(e,t){return e===t};function w(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=t.concat(n);return e.apply(null,i)}}var _=function(e){return function(t){return!e(t)}},C=function(e){return function(){throw new Error(e)}},x=v(!1),S=v(!0),k=function(){return D},D=function(){var e=function(e){return e()},t=b,n={fold:function(e,t){return e()},isSome:x,isNone:S,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:v(null),getOrUndefined:v(void 0),or:t,orThunk:e,map:k,each:p,bind:k,exists:x,forall:S,filter:function(){return k()},toArray:function(){return[]},toString:v("none()")};return n}(),O=function(e){var t=v(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},isSome:S,isNone:x,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return O(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:D},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return i},T=function(e){return null===e||void 0===e?D:O(e)},E={some:O,none:k,from:T},I=Array.prototype.slice,N=Array.prototype.indexOf,A=Array.prototype.push,P=function(e,t){return N.call(e,t)},M=function(e,t){return P(e,t)>-1},R=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(t(i,n))return!0}return!1},F=function(e,t){for(var n=[],r=0;r<e;r++)n.push(t(r));return n},B=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r},L=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];t(i,n)}},$=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];t(r,n)}},V=function(e,t){for(var n=[],r=[],i=0,o=e.length;i<o;i++){var a=e[i],s=t(a,i)?n:r;s.push(a)}return{pass:n,fail:r}},j=function(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];t(o,r)&&n.push(o)}return n},z=function(e,t,n){return $(e,(function(e,r){n=t(n,e,r)})),n},H=function(e,t,n){return L(e,(function(e,r){n=t(n,e,r)})),n},U=function(e,t,n){for(var r=0,i=e.length;r<i;r++){var o=e[r];if(t(o,r))return E.some(o);if(n(o,r))break}return E.none()},W=function(e,t){return U(e,t,x)},q=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(t(i,n))return E.some(n)}return E.none()},G=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!a(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);A.apply(t,e[n])}return t},Y=function(e,t){return G(B(e,t))},K=function(e,t){for(var n=0,r=e.length;n<r;++n){var i=e[n];if(!0!==t(i,n))return!1}return!0},X=function(e){var t=I.call(e,0);return t.reverse(),t},J=function(e,t){for(var n={},r=0,i=e.length;r<i;r++){var o=e[r];n[String(o)]=t(o,r)}return n},Z=function(e){return[e]},Q=function(e,t){var n=I.call(e,0);return n.sort(t),n},ee=function(e,t){return t>=0&&t<e.length?E.some(e[t]):E.none()},te=function(e){return ee(e,0)},ne=function(e){return ee(e,e.length-1)},re=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return E.none()},ie=function(){return ie=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ie.apply(this,arguments)};function oe(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}var ae=function(e){var t,n=!1;return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return n||(n=!0,t=e.apply(null,r)),t}},se=function(e,t,n,r){var i=e.isiOS()&&!0===/ipad/i.test(n),o=e.isiOS()&&!i,a=e.isiOS()||e.isAndroid(),s=a||r("(pointer:coarse)"),l=i||!o&&a&&r("(min-device-width:768px)"),u=o||a&&!l,c=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n),f=!u&&!l&&!c;return{isiPad:v(i),isiPhone:v(o),isTablet:v(l),isPhone:v(u),isTouch:v(s),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:v(c),isDesktop:v(f)}},le=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}},ue=function(e,t){var n=le(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return de(r(1),r(2))},ce=function(e,t){var n=String(t).toLowerCase();return 0===e.length?fe():ue(e,n)},fe=function(){return de(0,0)},de=function(e,t){return{major:e,minor:t}},he={nu:de,detect:ce,unknown:fe},pe=function(e,t){return re(t.brands,(function(t){var n=t.brand.toLowerCase();return W(e,(function(e){var t;return n===(null===(t=e.brand)||void 0===t?void 0:t.toLowerCase())})).map((function(e){return{current:e.name,version:he.nu(parseInt(t.version,10),0)}}))}))},me=function(e,t){var n=String(t).toLowerCase();return W(e,(function(e){return e.search(n)}))},ge=function(e,t){return me(e,t).map((function(e){var n=he.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},ve=function(e,t){return me(e,t).map((function(e){var n=he.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},be=function(e,t){return e.substring(t)},ye=function(e,t,n){return""===t||e.length>=t.length&&e.substr(n,n+t.length)===t},we=function(e,t){return Ce(e,t)?be(e,t.length):e},_e=function(e,t){return-1!==e.indexOf(t)},Ce=function(e,t){return ye(e,t,0)},xe=function(e,t){return ye(e,t,e.length-t.length)},Se=function(e){return function(t){return t.replace(e,"")}},ke=Se(/^\s+|\s+$/g),De=function(e){return e.length>0},Oe=function(e){return!De(e)},Te=function(e){var t=parseFloat(e);return isNaN(t)?E.none():E.some(t)},Ee=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Ie=function(e){return function(t){return _e(t,e)}},Ne=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return _e(e,"edge/")&&_e(e,"chrome")&&_e(e,"safari")&&_e(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Ee],search:function(e){return _e(e,"chrome")&&!_e(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return _e(e,"msie")||_e(e,"trident")}},{name:"Opera",versionRegexes:[Ee,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Ie("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Ie("firefox")},{name:"Safari",versionRegexes:[Ee,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(_e(e,"safari")||_e(e,"mobile/"))&&_e(e,"applewebkit")}}],Ae=[{name:"Windows",search:Ie("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return _e(e,"iphone")||_e(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Ie("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:Ie("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Ie("linux"),versionRegexes:[]},{name:"Solaris",search:Ie("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Ie("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Ie("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Pe={browsers:v(Ne),oses:v(Ae)},Me="Edge",Re="Chrome",Fe="IE",Be="Opera",Le="Firefox",$e="Safari",Ve=function(){return je({current:void 0,version:he.unknown()})},je=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isEdge:r(Me),isChrome:r(Re),isIE:r(Fe),isOpera:r(Be),isFirefox:r(Le),isSafari:r($e)}},ze={unknown:Ve,nu:je,edge:v(Me),chrome:v(Re),ie:v(Fe),opera:v(Be),firefox:v(Le),safari:v($e)},He="Windows",Ue="iOS",We="Android",qe="Linux",Ge="OSX",Ye="Solaris",Ke="FreeBSD",Xe="ChromeOS",Je=function(){return Ze({current:void 0,version:he.unknown()})},Ze=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isWindows:r(He),isiOS:r(Ue),isAndroid:r(We),isOSX:r(Ge),isLinux:r(qe),isSolaris:r(Ye),isFreeBSD:r(Ke),isChromeOS:r(Xe)}},Qe={unknown:Je,nu:Ze,windows:v(He),ios:v(Ue),android:v(We),linux:v(qe),osx:v(Ge),solaris:v(Ye),freebsd:v(Ke),chromeos:v(Xe)},et=function(e,t,n){var r=Pe.browsers(),i=Pe.oses(),o=t.bind((function(e){return pe(r,e)})).orThunk((function(){return ge(r,e)})).fold(ze.unknown,ze.nu),a=ve(i,e).fold(Qe.unknown,Qe.nu),s=se(a,o,e,n);return{browser:o,os:a,deviceType:s}},tt={detect:et},nt=function(e){return window.matchMedia(e).matches},rt=ae((function(){return tt.detect(navigator.userAgent,E.from(navigator.userAgentData),nt)})),it=function(){return rt()},ot=function(e,t,n){return 0!==(e.compareDocumentPosition(t)&n)},at=function(e,t){return ot(e,t,Node.DOCUMENT_POSITION_CONTAINED_BY)},st=8,lt=9,ut=11,ct=1,ft=3,dt=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return mt(r.childNodes[0])},ht=function(e,t){var n=t||document,r=n.createElement(e);return mt(r)},pt=function(e,t){var n=t||document,r=n.createTextNode(e);return mt(r)},mt=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},gt=function(e,t,n){return E.from(e.dom.elementFromPoint(t,n)).map(mt)},vt={fromHtml:dt,fromTag:ht,fromText:pt,fromDom:mt,fromPoint:gt},bt=function(e,t){var n=e.dom;if(n.nodeType!==ct)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},yt=function(e){return e.nodeType!==ct&&e.nodeType!==lt&&e.nodeType!==ut||0===e.childElementCount},wt=function(e,t){var n=void 0===t?document:t.dom;return yt(n)?[]:B(n.querySelectorAll(e),vt.fromDom)},_t=function(e,t){var n=void 0===t?document:t.dom;return yt(n)?E.none():E.from(n.querySelector(e)).map(vt.fromDom)},Ct=function(e,t){return e.dom===t.dom},xt=function(e,t){var n=e.dom,r=t.dom;return n!==r&&n.contains(r)},St=function(e,t){return at(e.dom,t.dom)},kt=function(e,t){return it().browser.isIE()?St(e,t):xt(e,t)},Dt=bt,Ot=Object.keys,Tt=Object.hasOwnProperty,Et=function(e,t){for(var n=Ot(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];t(a,o)}},It=function(e,t){return Nt(e,(function(e,n){return{k:n,v:t(e,n)}}))},Nt=function(e,t){var n={};return Et(e,(function(e,r){var i=t(e,r);n[i.k]=i.v})),n},At=function(e){return function(t,n){e[n]=t}},Pt=function(e,t,n,r){var i={};return Et(e,(function(e,i){(t(e,i)?n:r)(e,i)})),i},Mt=function(e,t){var n={};return Pt(e,t,At(n),p),n},Rt=function(e,t){var n=[];return Et(e,(function(e,r){n.push(t(e,r))})),n},Ft=function(e){return Rt(e,b)},Bt=function(e){return Ot(e).length},Lt=function(e,t){return $t(e,t)?E.from(e[t]):E.none()},$t=function(e,t){return Tt.call(e,t)},Vt=function(e,t){return $t(e,t)&&void 0!==e[t]&&null!==e[t]},jt=function(e){for(var t in e)if(Tt.call(e,t))return!1;return!0},zt=["tfoot","thead","tbody","colgroup"],Ht=function(e){return M(zt,e)},Ut=function(e,t){return{rows:e,columns:t}},Wt=function(e,t){return{row:e,column:t}},qt=function(e,t,n){return{element:e,rowspan:t,colspan:n}},Gt=function(e,t,n,r){return{element:e,rowspan:t,colspan:n,isNew:r}},Yt=function(e,t,n,r,i,o){return{element:e,rowspan:t,colspan:n,row:r,column:i,isLocked:o}},Kt=function(e,t,n){return{element:e,cells:t,section:n}},Xt=function(e,t,n,r){return{element:e,cells:t,section:n,isNew:r}},Jt=function(e,t,n){return{element:e,isNew:t,isLocked:n}},Zt=function(e,t,n,r){return{element:e,cells:t,section:n,isNew:r}},Qt=function(e,t,n,r){return{startRow:e,startCol:t,finishRow:n,finishCol:r}},en=function(e,t,n){return{element:e,colspan:t,column:n}},tn=function(e,t){return{element:e,columns:t}};"undefined"!==typeof window?window:Function("return this;")();var nn=function(e){var t=e.dom.nodeName;return t.toLowerCase()},rn=function(e){return e.dom.nodeType},on=function(e){return function(t){return rn(t)===e}},an=function(e){return rn(e)===st||"#comment"===nn(e)},sn=on(ct),ln=on(ft),un=on(lt),cn=on(ut),fn=function(e){return function(t){return sn(t)&&nn(t)===e}},dn=function(e){return vt.fromDom(e.dom.ownerDocument)},hn=function(e){return un(e)?e:dn(e)},pn=function(e){return vt.fromDom(hn(e).dom.defaultView)},mn=function(e){return E.from(e.dom.parentNode).map(vt.fromDom)},gn=function(e){return E.from(e.dom.parentElement).map(vt.fromDom)},vn=function(e,t){var n=d(t)?t:x,r=e.dom,i=[];while(null!==r.parentNode&&void 0!==r.parentNode){var o=r.parentNode,a=vt.fromDom(o);if(i.push(a),!0===n(a))break;r=o}return i},bn=function(e){return E.from(e.dom.previousSibling).map(vt.fromDom)},yn=function(e){return E.from(e.dom.nextSibling).map(vt.fromDom)},wn=function(e){return B(e.dom.childNodes,vt.fromDom)},_n=function(e,t){var n=e.dom.childNodes;return E.from(n[t]).map(vt.fromDom)},Cn=function(e){return _n(e,0)},xn=function(e){return cn(e)&&f(e.dom.host)},Sn=d(Element.prototype.attachShadow)&&d(Node.prototype.getRootNode),kn=v(Sn),Dn=Sn?function(e){return vt.fromDom(e.dom.getRootNode())}:hn,On=function(e){var t=Dn(e);return xn(t)?E.some(t):E.none()},Tn=function(e){return vt.fromDom(e.dom.host)},En=function(e){if(kn()&&f(e.target)){var t=vt.fromDom(e.target);if(sn(t)&&In(t)&&e.composed&&e.composedPath){var n=e.composedPath();if(n)return te(n)}}return E.from(e.target)},In=function(e){return f(e.dom.shadowRoot)},Nn=function(e){var t=ln(e)?e.dom.parentNode:e.dom;if(void 0===t||null===t||null===t.ownerDocument)return!1;var n=t.ownerDocument;return On(vt.fromDom(t)).fold((function(){return n.body.contains(t)}),g(Nn,Tn))},An=function(){return Pn(vt.fromDom(document))},Pn=function(e){var t=e.dom.body;if(null===t||void 0===t)throw new Error("Body is not available yet");return vt.fromDom(t)},Mn=function(e,t,n){return j(vn(e,n),t)},Rn=function(e,t){return j(wn(e),t)},Fn=function(e,t){var n=[];return L(wn(e),(function(e){t(e)&&(n=n.concat([e])),n=n.concat(Fn(e,t))})),n},Bn=function(e,t,n){return Mn(e,(function(e){return bt(e,t)}),n)},Ln=function(e,t){return Rn(e,(function(e){return bt(e,t)}))},$n=function(e,t){return wt(t,e)};function Vn(e,t,n,r,i){return e(n,r)?E.some(n):d(i)&&i(n)?E.none():t(n,r,i)}var jn=function(e,t,n){var r=e.dom,i=d(n)?n:x;while(r.parentNode){r=r.parentNode;var o=vt.fromDom(r);if(t(o))return E.some(o);if(i(o))break}return E.none()},zn=function(e,t,n){var r=function(e,t){return t(e)};return Vn(r,jn,e,t,n)},Hn=function(e,t){var n=function(e){return t(vt.fromDom(e))},r=W(e.dom.childNodes,n);return r.map(vt.fromDom)},Un=function(e,t){var n=function(e){for(var r=0;r<e.childNodes.length;r++){var i=vt.fromDom(e.childNodes[r]);if(t(i))return E.some(i);var o=n(e.childNodes[r]);if(o.isSome())return o}return E.none()};return n(e.dom)},Wn=function(e,t,n){return jn(e,(function(e){return bt(e,t)}),n)},qn=function(e,t){return Hn(e,(function(e){return bt(e,t)}))},Gn=function(e,t){return _t(t,e)},Yn=function(e,t,n){var r=function(e,t){return bt(e,t)};return Vn(r,Wn,e,t,n)},Kn=function(e,t,n){if(!(i(n)||l(n)||h(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},Xn=function(e,t,n){Kn(e.dom,t,n)},Jn=function(e,t){var n=e.dom;Et(t,(function(e,t){Kn(n,t,e)}))},Zn=function(e,t){Et(t,(function(t,n){t.fold((function(){tr(e,n)}),(function(t){Kn(e.dom,n,t)}))}))},Qn=function(e,t){var n=e.dom.getAttribute(t);return null===n?void 0:n},er=function(e,t){return E.from(Qn(e,t))},tr=function(e,t){e.dom.removeAttribute(t)},nr=function(e){return H(e.dom.attributes,(function(e,t){return e[t.name]=t.value,e}),{})},rr=function(e,t,n){return void 0===n&&(n=y),e.exists((function(e){return n(e,t)}))},ir=function(e){for(var t=[],n=function(e){t.push(e)},r=0;r<e.length;r++)e[r].each(n);return t},or=function(e,t,n){return e.isSome()&&t.isSome()?E.some(n(e.getOrDie(),t.getOrDie())):E.none()},ar=function(e,t){return void 0!==e&&null!==e?t(e):E.none()},sr=function(e){return e.bind(b)},lr=function(e,t){return e?E.some(t):E.none()},ur=function(e){return void 0!==e.style&&d(e.style.getPropertyValue)},cr=function(e,t,n){if(!i(n))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",n,":: Element ",e),new Error("CSS value must be a string: "+n);ur(e)&&e.style.setProperty(t,n)},fr=function(e,t){ur(e)&&e.style.removeProperty(t)},dr=function(e,t,n){var r=e.dom;cr(r,t,n)},hr=function(e,t){var n=e.dom;Et(t,(function(e,t){cr(n,t,e)}))},pr=function(e,t){var n=e.dom,r=window.getComputedStyle(n),i=r.getPropertyValue(t);return""!==i||Nn(e)?i:mr(n,t)},mr=function(e,t){return ur(e)?e.style.getPropertyValue(t):""},gr=function(e,t){var n=e.dom,r=mr(n,t);return E.from(r).filter((function(e){return e.length>0}))},vr=function(e,t){var n=e.dom;fr(n,t),rr(er(e,"style").map(ke),"")&&tr(e,"style")},br=function(e,t){var n=e.dom,r=t.dom;ur(n)&&ur(r)&&(r.style.cssText=n.style.cssText)},yr=function(e,t,n){return void 0===n&&(n=0),er(e,t).map((function(e){return parseInt(e,10)})).getOr(n)},wr=function(e,t){return yr(e,t,1)},_r=function(e){return fn("col")(e)?yr(e,"span",1)>1:wr(e,"colspan")>1},Cr=function(e){return wr(e,"rowspan")>1},xr=function(e,t){return parseInt(pr(e,t),10)},Sr=v(10),kr=v(10),Dr=function(e,t){return Or(e,t,S)},Or=function(e,t,n){return Y(wn(e),(function(e){return bt(e,t)?n(e)?[e]:[]:Or(e,t,n)}))},Tr=function(e,t,n){if(void 0===n&&(n=x),n(t))return E.none();if(M(e,nn(t)))return E.some(t);var r=function(e){return bt(e,"table")||n(e)};return Wn(t,e.join(","),r)},Er=function(e,t){return Tr(["td","th"],e,t)},Ir=function(e){return Dr(e,"th,td")},Nr=function(e){return bt(e,"colgroup")?Ln(e,"col"):Y(Mr(e),(function(e){return Ln(e,"col")}))},Ar=function(e,t){return Yn(e,"table",t)},Pr=function(e){return Dr(e,"tr")},Mr=function(e){return Ar(e).fold(v([]),(function(e){return Ln(e,"colgroup")}))},Rr=function(e,t){return B(e,(function(e){if("colgroup"===nn(e)){var n=B(Nr(e),(function(e){var t=yr(e,"span",1);return qt(e,1,t)}));return Kt(e,n,"colgroup")}n=B(Ir(e),(function(e){var t=yr(e,"rowspan",1),n=yr(e,"colspan",1);return qt(e,t,n)}));return Kt(e,n,t(e))}))},Fr=function(e){return mn(e).map((function(e){var t=nn(e);return Ht(t)?t:"tbody"})).getOr("tbody")},Br=function(e){var t=Pr(e),n=Mr(e),r=oe(oe([],n,!0),t,!0);return Rr(r,Fr)},Lr=function(e,t){return Rr(e,(function(){return t}))},$r=function(e,t,n){var r=e.cells,i=r.slice(0,t),o=r.slice(t),a=i.concat(n).concat(o);return zr(e,a)},Vr=function(e,t,n){return $r(e,t,[n])},jr=function(e,t,n){var r=e.cells;r[t]=n},zr=function(e,t){return Zt(e.element,t,e.section,e.isNew)},Hr=function(e,t){var n=e.cells,r=B(n,t);return Zt(e.element,r,e.section,e.isNew)},Ur=function(e,t){return e.cells[t]},Wr=function(e,t){return Ur(e,t).element},qr=function(e){return e.cells.length},Gr=function(e){var t=V(e,(function(e){return"colgroup"===e.section}));return{rows:t.fail,cols:t.pass}},Yr=function(e,t,n){var r=B(e.cells,n);return Zt(t(e.element),r,e.section,!0)},Kr="data-snooker-locked-cols",Xr=function(e){return er(e,Kr).bind((function(e){return E.from(e.match(/\d+/g))})).map((function(e){return J(e,S)}))},Jr=function(e){var t=H(Gr(e).rows,(function(e,t){return L(t.cells,(function(t,n){t.isLocked&&(e[n]=!0)})),e}),{}),n=Rt(t,(function(e,t){return parseInt(t,10)}));return Q(n)},Zr=function(e,t){return e+","+t},Qr=function(e,t,n){return E.from(e.access[Zr(t,n)])},ei=function(e,t,n){var r=ti(e,(function(e){return n(t,e.element)}));return r.length>0?E.some(r[0]):E.none()},ti=function(e,t){var n=Y(e.all,(function(e){return e.cells}));return j(n,t)},ni=function(e){var t={},n=0;return L(e.cells,(function(e){var r=e.colspan;F(r,(function(i){var o=n+i;t[o]=en(e.element,r,o)})),n+=r})),t},ri=function(e){var t={},n=[],r=te(e).map((function(e){return e.element})).bind(Ar),i=r.bind(Xr).getOr({}),o=0,a=0,s=0,l=V(e,(function(e){return"colgroup"===e.section})),u=l.pass,c=l.fail;L(c,(function(e){var r=[];L(e.cells,(function(e){var n=0;while(void 0!==t[Zr(s,n)])n++;for(var o=Vt(i,n.toString()),l=Yt(e.element,e.rowspan,e.colspan,s,n,o),u=0;u<e.colspan;u++)for(var c=0;c<e.rowspan;c++){var f=s+c,d=n+u,h=Zr(f,d);t[h]=l,a=Math.max(a,d+1)}r.push(l)})),o++,n.push(Kt(e.element,r,e.section)),s++}));var f=ne(u).map((function(e){var t=ni(e),n=tn(e.element,Ft(t));return{colgroups:[n],columns:t}})).getOrThunk((function(){return{colgroups:[],columns:{}}})),d=f.columns,h=f.colgroups,p=Ut(o,a);return{grid:p,access:t,all:n,columns:d,colgroups:h}},ii=function(e){var t=Br(e);return ri(t)},oi=function(e){return Y(e.all,(function(e){return e.cells}))},ai=function(e){return Ft(e.columns)},si=function(e){return Ot(e.columns).length>0},li=function(e,t){return E.from(e.columns[t])},ui={fromTable:ii,generate:ri,getAt:Qr,findItem:ei,filterItems:ti,justCells:oi,justColumns:ai,hasColumns:si,getColumnAt:li},ci=function(e,t){var n=t.column,r=t.column+t.colspan-1,i=t.row,o=t.row+t.rowspan-1;return n<=e.finishCol&&r>=e.startCol&&i<=e.finishRow&&o>=e.startRow},fi=function(e,t){return t.column>=e.startCol&&t.column+t.colspan-1<=e.finishCol&&t.row>=e.startRow&&t.row+t.rowspan-1<=e.finishRow},di=function(e,t){for(var n=!0,r=w(fi,t),i=t.startRow;i<=t.finishRow;i++)for(var o=t.startCol;o<=t.finishCol;o++)n=n&&ui.getAt(e,i,o).exists(r);return n?E.some(t):E.none()},hi=function(e,t){return Qt(Math.min(e.row,t.row),Math.min(e.column,t.column),Math.max(e.row+e.rowspan-1,t.row+t.rowspan-1),Math.max(e.column+e.colspan-1,t.column+t.colspan-1))},pi=function(e,t,n){var r=ui.findItem(e,t,Ct),i=ui.findItem(e,n,Ct);return r.bind((function(e){return i.map((function(t){return hi(e,t)}))}))},mi=function(e,t,n){return pi(e,t,n).bind((function(t){return di(e,t)}))},gi=function(e,t,n,r){return ui.findItem(e,t,Ct).bind((function(t){var i=n>0?t.row+t.rowspan-1:t.row,o=r>0?t.column+t.colspan-1:t.column,a=ui.getAt(e,i+n,o+r);return a.map((function(e){return e.element}))}))},vi=function(e,t,n){return pi(e,t,n).map((function(t){var n=ui.filterItems(e,w(ci,t));return B(n,(function(e){return e.element}))}))},bi=function(e,t){var n=function(e,t){return kt(t,e)};return ui.findItem(e,t,n).map((function(e){return e.element}))},yi=function(e,t,n){return Ar(e).bind((function(r){var i=xi(r);return gi(i,e,t,n)}))},wi=function(e,t,n){var r=xi(e);return vi(r,t,n)},_i=function(e,t,n,r,i){var o=xi(e),a=Ct(e,n)?E.some(t):bi(o,t),s=Ct(e,i)?E.some(r):bi(o,r);return a.bind((function(e){return s.bind((function(t){return vi(o,e,t)}))}))},Ci=function(e,t,n){var r=xi(e);return mi(r,t,n)},xi=ui.fromTable,Si=function(e,t){var n=mn(e);n.each((function(n){n.dom.insertBefore(t.dom,e.dom)}))},ki=function(e,t){var n=yn(e);n.fold((function(){var n=mn(e);n.each((function(e){Oi(e,t)}))}),(function(e){Si(e,t)}))},Di=function(e,t){var n=Cn(e);n.fold((function(){Oi(e,t)}),(function(n){e.dom.insertBefore(t.dom,n.dom)}))},Oi=function(e,t){e.dom.appendChild(t.dom)},Ti=function(e,t,n){_n(e,n).fold((function(){Oi(e,t)}),(function(e){Si(e,t)}))},Ei=function(e,t){Si(e,t),Oi(t,e)},Ii=function(e,t){L(t,(function(t){Si(e,t)}))},Ni=function(e,t){L(t,(function(n,r){var i=0===r?e:t[r-1];ki(i,n)}))},Ai=function(e,t){L(t,(function(t){Oi(e,t)}))},Pi=function(e){e.dom.textContent="",L(wn(e),(function(e){Mi(e)}))},Mi=function(e){var t=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)},Ri=function(e){var t=wn(e);t.length>0&&Ii(e,t),Mi(e)},Fi=function(e,t){var n=function(n){if(!e(n))throw new Error("Can only get "+t+" value of a "+t+" node");return r(n).getOr("")},r=function(t){return e(t)?E.from(t.dom.nodeValue):E.none()},i=function(n,r){if(!e(n))throw new Error("Can only set raw "+t+" value of a "+t+" node");n.dom.nodeValue=r};return{get:n,getOption:r,set:i}},Bi=Fi(ln,"text"),Li=function(e){return Bi.get(e)},$i=function(e){return Bi.getOption(e)},Vi=function(e,t){return Bi.set(e,t)},ji=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","li","table","thead","tbody","tfoot","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"];function zi(){var e=function(e){return vt.fromDom(e.dom.cloneNode(!1))},t=function(e){return hn(e).dom},n=function(e){return!!sn(e)&&("body"===nn(e)||M(ji,nn(e)))},r=function(e){return!!sn(e)&&M(["br","img","hr","input"],nn(e))},i=function(e){return sn(e)&&"false"===Qn(e,"contenteditable")},o=function(e,t){return e.dom.compareDocumentPosition(t.dom)},a=function(e,t){var n=nr(e);Jn(t,n)},s=function(e){var t=nn(e);return M(["script","noscript","iframe","noframes","noembed","title","style","textarea","xmp"],t)},l=function(e){return sn(e)?er(e,"lang"):E.none()};return{up:v({selector:Wn,closest:Yn,predicate:jn,all:vn}),down:v({selector:$n,predicate:Fn}),styles:v({get:pr,getRaw:gr,set:dr,remove:vr}),attrs:v({get:Qn,set:Xn,remove:tr,copyTo:a}),insert:v({before:Si,after:ki,afterAll:Ni,append:Oi,appendAll:Ai,prepend:Di,wrap:Ei}),remove:v({unwrap:Ri,remove:Mi}),create:v({nu:vt.fromTag,clone:e,text:vt.fromText}),query:v({comparePosition:o,prevSibling:bn,nextSibling:yn}),property:v({children:wn,name:nn,parent:mn,document:t,isText:ln,isComment:an,isElement:sn,isSpecial:s,getLanguage:l,getText:Li,setText:Vi,isBoundary:n,isEmptyTag:r,isNonEditable:i}),eq:Ct,is:Dt}}var Hi=function(e,t,n,r){var i=n[0],o=n.slice(1);return r(e,t,i,o)},Ui=function(e,t,n){return n.length>0?Hi(e,t,n,Wi):E.none()},Wi=function(e,t,n,r){var i=t(e,n);return z(r,(function(n,r){var i=t(e,r);return qi(e,n,i)}),i)},qi=function(e,t,n){return t.bind((function(t){return n.filter(w(e.eq,t))}))},Gi=function(e,t){return w(e.eq,t)},Yi=function(e,t,n,r){void 0===r&&(r=x);var i=[t].concat(e.up().all(t)),o=[n].concat(e.up().all(n)),a=function(e){var t=q(e,r);return t.fold((function(){return e}),(function(t){return e.slice(0,t+1)}))},s=a(i),l=a(o),u=W(s,(function(t){return R(l,Gi(e,t))}));return{firstpath:s,secondpath:l,shared:u}},Ki=Ui,Xi=Yi,Ji=zi(),Zi=function(e,t){return Ki(Ji,(function(t,n){return e(n)}),t)},Qi=function(e,t,n){return Xi(Ji,e,t,n)},eo=function(e){return Wn(e,"table")},to=function(e,t,n){var r=function(e){return function(t){return void 0!==n&&n(t)||Ct(t,e)}};return Ct(e,t)?E.some({boxes:E.some([e]),start:e,finish:t}):eo(e).bind((function(i){return eo(t).bind((function(o){if(Ct(i,o))return E.some({boxes:wi(i,e,t),start:e,finish:t});if(kt(i,o)){var a=Bn(t,"td,th",r(i)),s=a.length>0?a[a.length-1]:t;return E.some({boxes:_i(i,e,i,t,o),start:e,finish:s})}if(kt(o,i)){a=Bn(e,"td,th",r(o));var l=a.length>0?a[a.length-1]:e;return E.some({boxes:_i(o,e,i,t,o),start:e,finish:l})}return Qi(e,t).shared.bind((function(a){return Yn(a,"table",n).bind((function(n){var a=Bn(t,"td,th",r(n)),s=a.length>0?a[a.length-1]:t,l=Bn(e,"td,th",r(n)),u=l.length>0?l[l.length-1]:e;return E.some({boxes:_i(n,e,i,t,o),start:u,finish:s})}))}))}))}))},no=function(e,t){var n=$n(e,t);return n.length>0?E.some(n):E.none()},ro=function(e,t){return W(e,(function(e){return bt(e,t)}))},io=function(e,t,n){return Gn(e,t).bind((function(t){return Gn(e,n).bind((function(e){return Zi(eo,[t,e]).map((function(n){return{first:t,last:e,table:n}}))}))}))},oo=function(e,t){return Wn(e,"table").bind((function(n){return Gn(n,t).bind((function(t){return to(t,e).bind((function(e){return e.boxes.map((function(t){return{boxes:t,start:e.start,finish:e.finish}}))}))}))}))},ao=function(e,t,n,r,i){return ro(e,i).bind((function(e){return yi(e,t,n).bind((function(e){return oo(e,r)}))}))},so=function(e,t){return no(e,t)},lo=function(e,t,n){return io(e,t,n).bind((function(t){var n=function(t){return Ct(e,t)},r="thead,tfoot,tbody,table",i=Wn(t.first,r,n),o=Wn(t.last,r,n);return i.bind((function(e){return o.bind((function(n){return Ct(e,n)?Ci(t.table,t.first,t.last):E.none()}))}))}))},uo=function(e){if(!a(e))throw new Error("cases must be an array");if(0===e.length)throw new Error("there must be at least one case");var t=[],n={};return L(e,(function(r,i){var o=Ot(r);if(1!==o.length)throw new Error("one and only one name per case");var s=o[0],l=r[s];if(void 0!==n[s])throw new Error("duplicate key detected:"+s);if("cata"===s)throw new Error("cannot have a case named cata (sorry)");if(!a(l))throw new Error("case arguments must be an array");t.push(s),n[s]=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=n.length;if(o!==l.length)throw new Error("Wrong number of arguments to case "+s+". Expected "+l.length+" ("+l+"), got "+o);var a=function(e){var r=Ot(e);if(t.length!==r.length)throw new Error("Wrong number of arguments to match. Expected: "+t.join(",")+"\nActual: "+r.join(","));var i=K(t,(function(e){return M(r,e)}));if(!i)throw new Error("Not all branches were specified when using match. Specified: "+r.join(", ")+"\nRequired: "+t.join(", "));return e[s].apply(null,n)};return{fold:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(t.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+t.length);var o=t[i];return o.apply(null,n)},match:a,log:function(e){console.log(e,{constructors:t,constructor:s,params:n})}}}})),n},co={generate:uo},fo=co.generate([{none:[]},{multiple:["elements"]},{single:["element"]}]),ho=function(e,t,n,r){return e.fold(t,n,r)},po=fo.none,mo=fo.multiple,go=fo.single,vo=function(e,t,n){var r=function(){return so(e(),n).fold((function(){return t().fold(po,go)}),(function(e){return mo(e)}))};return{get:r}},bo=tinymce.util.Tools.resolve("tinymce.PluginManager"),yo=function(e,t){return vt.fromDom(e.dom.cloneNode(t))},wo=function(e){return yo(e,!1)},_o=function(e){return yo(e,!0)},Co=function(e,t){var n=vt.fromTag(t),r=nr(e);return Jn(n,r),n},xo=function(e,t){var n=Co(e,t),r=wn(_o(e));return Ai(n,r),n},So=function(e,t){var n=Co(e,t);Si(e,n);var r=wn(e);return Ai(n,r),Mi(e),n},ko=function(e,t){var n=function(t,n){if(!h(n)&&!n.match(/^[0-9]+$/))throw new Error(e+".set accepts only positive integer values. Value was "+n);var r=t.dom;ur(r)&&(r.style[e]=n+"px")},r=function(n){var r=t(n);if(r<=0||null===r){var i=pr(n,e);return parseFloat(i)||0}return r},i=r,o=function(e,t){return H(t,(function(t,n){var r=pr(e,n),i=void 0===r?0:parseInt(r,10);return isNaN(i)?t:t+i}),0)},a=function(e,t,n){var r=o(e,n),i=t>r?t-r:0;return i};return{set:n,get:r,getOuter:i,aggregate:o,max:a}},Do=function(){var e=it().browser;return e.isIE()||e.isEdge()},Oo=function(e,t){return Te(e).getOr(t)},To=function(e,t,n){return Oo(pr(e,t),n)},Eo=function(e){return pr(e,"box-sizing")},Io=function(e,t,n,r){var i=To(e,"padding-"+n,0),o=To(e,"padding-"+r,0),a=To(e,"border-"+n+"-width",0),s=To(e,"border-"+r+"-width",0);return t-i-o-a-s},No=function(e,t){var n=e.dom,r=n.getBoundingClientRect().height||n.offsetHeight;return"border-box"===t?r:Io(e,r,"top","bottom")},Ao=function(e,t){var n=e.dom,r=n.getBoundingClientRect().width||n.offsetWidth;return"border-box"===t?r:Io(e,r,"left","right")},Po=function(e){return Do()?No(e,Eo(e)):To(e,"height",e.dom.offsetHeight)},Mo=function(e){return Do()?Ao(e,Eo(e)):To(e,"width",e.dom.offsetWidth)},Ro=function(e){return Ao(e,"content-box")},Fo=ko("width",(function(e){return e.dom.offsetWidth})),Bo=function(e){return Fo.get(e)},Lo=function(e){return Fo.getOuter(e)},$o=Ro,Vo=Mo,jo=function(e,t){void 0===t&&(t=S);var n=e.grid,r=F(n.columns,b),i=F(n.rows,b);return B(r,(function(n){var r=function(){return Y(i,(function(t){return ui.getAt(e,t,n).filter((function(e){return e.column===n})).toArray()}))},o=function(e){return 1===e.colspan&&t(e.element)},a=function(){return ui.getAt(e,0,n)};return zo(r,o,a)}))},zo=function(e,t,n){var r=e(),i=W(r,t),o=i.orThunk((function(){return E.from(r[0]).orThunk(n)}));return o.map((function(e){return e.element}))},Ho=function(e){var t=e.grid,n=F(t.rows,b),r=F(t.columns,b);return B(n,(function(t){var n=function(){return Y(r,(function(n){return ui.getAt(e,t,n).filter((function(e){return e.row===t})).fold(v([]),(function(e){return[e]}))}))},i=function(e){return 1===e.rowspan},o=function(){return ui.getAt(e,t,0)};return zo(n,i,o)}))},Uo=function(e,t){if(t<0||t>=e.length-1)return E.none();var n=e[t].fold((function(){var n=X(e.slice(0,t));return re(n,(function(e,t){return e.map((function(e){return{value:e,delta:t+1}}))}))}),(function(e){return E.some({value:e,delta:0})})),r=e[t+1].fold((function(){var n=e.slice(t+1);return re(n,(function(e,t){return e.map((function(e){return{value:e,delta:t+1}}))}))}),(function(e){return E.some({value:e,delta:1})}));return n.bind((function(e){return r.map((function(t){var n=t.delta+e.delta;return Math.abs(t.value-e.value)/n}))}))},Wo=function(e,t){return function(n){return"rtl"===qo(n)?t:e}},qo=function(e){return"rtl"===pr(e,"direction")?"rtl":"ltr"},Go=ko("height",(function(e){var t=e.dom;return Nn(e)?t.getBoundingClientRect().height:t.offsetHeight})),Yo=function(e){return Go.get(e)},Ko=function(e){return Go.getOuter(e)},Xo=Po,Jo=function(e,t){var n=function(n,r){return Jo(e+n,t+r)};return{left:e,top:t,translate:n}},Zo=Jo,Qo=function(e){var t=e.getBoundingClientRect();return Zo(t.left,t.top)},ea=function(e,t){return void 0!==e?e:void 0!==t?t:0},ta=function(e){var t=e.dom.ownerDocument,n=t.body,r=t.defaultView,i=t.documentElement;if(n===e.dom)return Zo(n.offsetLeft,n.offsetTop);var o=ea(null===r||void 0===r?void 0:r.pageYOffset,i.scrollTop),a=ea(null===r||void 0===r?void 0:r.pageXOffset,i.scrollLeft),s=ea(i.clientTop,n.clientTop),l=ea(i.clientLeft,n.clientLeft);return na(e).translate(a-l,o-s)},na=function(e){var t=e.dom,n=t.ownerDocument,r=n.body;return r===t?Zo(r.offsetLeft,r.offsetTop):Nn(e)?Qo(t):Zo(0,0)},ra=function(e,t){return{row:e,y:t}},ia=function(e,t){return{col:e,x:t}},oa=function(e){var t=ta(e);return t.left+Lo(e)},aa=function(e){return ta(e).left},sa=function(e,t){return ia(e,aa(t))},la=function(e,t){return ia(e,oa(t))},ua=function(e){return ta(e).top},ca=function(e,t){return ra(e,ua(t))},fa=function(e,t){return ra(e,ua(t)+Ko(t))},da=function(e,t,n){if(0===n.length)return[];var r=B(n.slice(1),(function(t,n){return t.map((function(t){return e(n,t)}))})),i=n[n.length-1].map((function(e){return t(n.length-1,e)}));return r.concat([i])},ha=function(e){return-e},pa={delta:b,positions:function(e){return da(ca,fa,e)},edge:ua},ma={delta:b,edge:aa,positions:function(e){return da(sa,la,e)}},ga={delta:ha,edge:oa,positions:function(e){return da(la,sa,e)}},va=Wo(ma,ga),ba={delta:function(e,t){return va(t).delta(e,t)},positions:function(e,t){return va(t).positions(e,t)},edge:function(e){return va(e).edge(e)}},ya={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},wa=function(){var e="[0-9]+",t="[+-]?"+e,n="[eE]"+t,r="\\.",i=function(e){return"(?:"+e+")?"},o=["Infinity",e+r+i(e)+i(n),r+e+i(n),e+i(n)].join("|"),a="[+-]?(?:"+o+")";return new RegExp("^("+a+")(.*)$")}(),_a=function(e,t){return R(t,(function(t){return R(ya[t],(function(t){return e===t}))}))},Ca=function(e,t){var n=E.from(wa.exec(e));return n.bind((function(e){var n=Number(e[1]),r=e[2];return _a(r,t)?E.some({value:n,unit:r}):E.none()}))},xa=/(\d+(\.\d+)?)%/,Sa=/(\d+(\.\d+)?)px|em/,ka=fn("col"),Da=function(e,t,n){var r=gn(e).getOrThunk((function(){return Pn(dn(e))}));return t(e)/n(r)*100},Oa=function(e,t){dr(e,"width",t+"px")},Ta=function(e,t){dr(e,"width",t+"%")},Ea=function(e,t){dr(e,"height",t+"px")},Ia=function(e){return Xo(e)+"px"},Na=function(e,t,n,r){var i=Ar(e).map((function(e){var r=n(e);return Math.floor(t/100*r)})).getOr(t);return r(e,i),i},Aa=function(e,t,n,r){var i=parseFloat(e);return xe(e,"%")&&"table"!==nn(t)?Na(t,i,n,r):i},Pa=function(e){var t=Ia(e);return t?Aa(t,e,Yo,Ea):Yo(e)},Ma=function(e,t,n){var r=n(e),i=wr(e,t);return r/i},Ra=function(e,t){return gr(e,t).orThunk((function(){return er(e,t).map((function(e){return e+"px"}))}))},Fa=function(e){return Ra(e,"width")},Ba=function(e){return Ra(e,"height")},La=function(e){return Da(e,Bo,$o)},$a=function(e){return ka(e)?Bo(e):Vo(e)},Va=function(e){return Ma(e,"rowspan",Pa)},ja=function(e){var t=Fa(e);return t.bind((function(e){return Ca(e,["fixed","relative","empty"])}))},za=function(e,t,n){dr(e,"width",t+n)},Ha=function(e){return Bo(e)+"px"},Ua=function(e){return Da(e,Bo,$o)+"%"},Wa=function(e){return Fa(e).exists((function(e){return xa.test(e)}))},qa=function(e){return Fa(e).exists((function(e){return Sa.test(e)}))},Ga=function(e){return Fa(e).isNone()},Ya=v(xa),Ka=fn("col"),Xa=function(e){return Fa(e).getOrThunk((function(){return $a(e)+"px"}))},Ja=function(e){return Ba(e).getOrThunk((function(){return Va(e)+"px"}))},Za=function(e){return B(ui.justColumns(e),(function(e){return E.from(e.element)}))},Qa=function(e){var t=it().browser,n=t.isChrome()||t.isFirefox();return!Ka(e)||n},es=function(e,t,n,r,i,o){return e.filter(r).fold((function(){return o(Uo(n,t))}),(function(e){return i(e)}))},ts=function(e,t,n,r){var i=jo(e),o=ui.hasColumns(e)?Za(e):i,a=[E.some(ba.edge(t))].concat(B(ba.positions(i,t),(function(e){return e.map((function(e){return e.x}))}))),s=_(_r);return B(o,(function(e,t){return es(e,t,a,s,(function(e){if(Qa(e))return n(e);var o=ar(i[t],b);return es(o,t,a,s,(function(e){return r(E.some(Bo(e)))}),r)}),r)}))},ns=function(e){return e.map((function(e){return e+"px"})).getOr("")},rs=function(e,t){return ts(e,t,Xa,ns)},is=function(e,t,n){return ts(e,t,La,(function(e){return e.fold((function(){return n.minCellWidth()}),(function(e){return e/n.pixelWidth()*100}))}))},os=function(e,t,n){return ts(e,t,$a,(function(e){return e.getOrThunk(n.minCellWidth)}))},as=function(e,t,n,r,i){var o=Ho(e),a=[E.some(n.edge(t))].concat(B(n.positions(o,t),(function(e){return e.map((function(e){return e.y}))})));return B(o,(function(e,t){return es(e,t,a,_(Cr),r,i)}))},ss=function(e,t,n){return as(e,t,n,Va,(function(e){return e.getOrThunk(kr)}))},ls=function(e,t,n){return as(e,t,n,Ja,ns)},us=function(e,t){return function(){return Nn(e)?t(e):parseFloat(gr(e,"width").getOr("0"))}},cs=function(e){var t=us(e,Bo),n=v(0),r=function(t,n){return os(t,e,n)};return{width:t,pixelWidth:t,getWidths:r,getCellDelta:n,singleColumnWidth:v([0]),minCellWidth:n,setElementWidth:p,adjustTableWidth:p,isRelative:!0,label:"none"}},fs=function(e){var t=us(e,(function(e){return parseFloat(Ua(e))})),n=us(e,Bo),r=function(e){return e/n()*100},i=function(e,t){return[100-e]},o=function(){return Sr()/n()*100},a=function(n){var r=t(),i=n/100*r,o=r+i;Ta(e,o)},s=function(t,n){return is(t,e,n)};return{width:t,pixelWidth:n,getWidths:s,getCellDelta:r,singleColumnWidth:i,minCellWidth:o,setElementWidth:Ta,adjustTableWidth:a,isRelative:!0,label:"percent"}},ds=function(e){var t=us(e,Bo),n=b,r=function(e,t){var n=Math.max(Sr(),e+t);return[n-e]},i=function(n){var r=t()+n;Oa(e,r)},o=function(t,n){return os(t,e,n)};return{width:t,pixelWidth:t,getWidths:o,getCellDelta:n,singleColumnWidth:r,minCellWidth:Sr,setElementWidth:Oa,adjustTableWidth:i,isRelative:!1,label:"pixel"}},hs=function(e,t){var n=Ya().exec(t);return null!==n?fs(e):ds(e)},ps=function(e){var t=Fa(e);return t.fold((function(){return cs(e)}),(function(t){return hs(e,t)}))},ms={getTableSize:ps,pixelSize:ds,percentageSize:fs,noneSize:cs},gs=function(e,t,n,r,i,o){return{minRow:e,minCol:t,maxRow:n,maxCol:r,allCells:i,selectedCells:o}},vs=function(e,t){var n=e.grid.columns,r=e.grid.rows,i=r,o=n,a=0,s=0,l=[],u=[];return Et(e.access,(function(e){if(l.push(e),t(e)){u.push(e);var n=e.row,r=n+e.rowspan-1,c=e.column,f=c+e.colspan-1;n<i?i=n:r>a&&(a=r),c<o?o=c:f>s&&(s=f)}})),gs(i,o,a,s,l,u)},bs=function(e,t,n){var r=e[n].element,i=vt.fromTag("td");Oi(i,vt.fromTag("br"));var o=t?Oi:Di;o(r,i)},ys=function(e,t,n,r){for(var i=t.grid.columns,o=t.grid.rows,a=0;a<o;a++)for(var s=!1,l=0;l<i;l++)if(!(a<n.minRow||a>n.maxRow||l<n.minCol||l>n.maxCol)){var u=ui.getAt(t,a,l).filter(r).isNone();u?bs(e,s,a):s=!0}},ws=function(e,t,n,r){Et(n.columns,(function(e){(e.column<t.minCol||e.column>t.maxCol)&&Mi(e.element)}));var i=j(Dr(e,"tr"),(function(e){return 0===e.dom.childElementCount}));L(i,Mi),t.minCol!==t.maxCol&&t.minRow!==t.maxRow||L(Dr(e,"th,td"),(function(e){tr(e,"rowspan"),tr(e,"colspan")})),tr(e,Kr),tr(e,"data-snooker-col-series");var o=ms.getTableSize(e);o.adjustTableWidth(r)},_s=function(e,t,n,r){if(0===r.minCol&&t.grid.columns===r.maxCol+1)return 0;var i=os(t,e,n),o=H(i,(function(e,t){return e+t}),0),a=H(i.slice(r.minCol,r.maxCol+1),(function(e,t){return e+t}),0),s=a/o*n.pixelWidth(),l=s-n.pixelWidth();return n.getCellDelta(l)},Cs=function(e,t){var n=function(e){return bt(e.element,t)},r=_o(e),i=Br(r),o=ms.getTableSize(e),a=ui.generate(i),s=vs(a,n),l="th:not("+t+"),td:not("+t+")",u=Or(r,"th,td",(function(e){return bt(e,l)}));L(u,Mi),ys(i,a,s,n);var c=ui.fromTable(e),f=_s(e,c,o,s);return ws(r,s,a,f),r},xs=" ",Ss=function(e){return"img"===nn(e)?1:$i(e).fold((function(){return wn(e).length}),(function(e){return e.length}))},ks=function(e){return $i(e).filter((function(e){return 0!==e.trim().length||e.indexOf(xs)>-1})).isSome()},Ds=["img","br"],Os=function(e){var t=ks(e);return t||M(Ds,nn(e))},Ts=function(e){return Un(e,Os)},Es=function(e){return Is(e,Os)},Is=function(e,t){var n=function(e){for(var r=wn(e),i=r.length-1;i>=0;i--){var o=r[i];if(t(o))return E.some(o);var a=n(o);if(a.isSome())return a}return E.none()};return n(e)},Ns={scope:["row","col"]},As=function(e){return function(){var t=vt.fromTag("td",e.dom);return Oi(t,vt.fromTag("br",e.dom)),t}},Ps=function(e){return function(){return vt.fromTag("col",e.dom)}},Ms=function(e){return function(){return vt.fromTag("colgroup",e.dom)}},Rs=function(e){return function(){return vt.fromTag("tr",e.dom)}},Fs=function(e,t,n){var r=xo(e,t);return Et(n,(function(e,t){null===e?tr(r,t):Xn(r,t,e)})),r},Bs=function(e){return e},Ls=function(e,t,n){var r=Ts(e);return r.map((function(r){var i=n.join(","),o=Bn(r,i,(function(t){return Ct(t,e)}));return z(o,(function(e,t){var n=wo(t);return tr(n,"contenteditable"),Oi(e,n),n}),t)})).getOr(t)},$s=function(e,t){Et(Ns,(function(n,r){return er(e,r).filter((function(e){return M(n,e)})).each((function(e){return Xn(t,r,e)}))}))},Vs=function(e,t,n){var r=function(e,t){br(e.element,t),vr(t,"height"),1!==e.colspan&&vr(t,"width")},i=function(i){var o=vt.fromTag(nn(i.element),t.dom),a=n.getOr(["strong","em","b","i","span","font","h1","h2","h3","h4","h5","h6","p","div"]),s=a.length>0?Ls(i.element,o,a):o;return Oi(s,vt.fromTag("br")),r(i,o),$s(i.element,o),e(i.element,o),o},o=function(n){var i=vt.fromTag(nn(n.element),t.dom);return r(n,i),e(n.element,i),i};return{col:o,colgroup:Ms(t),row:Rs(t),cell:i,replace:Fs,colGap:Ps(t),gap:As(t)}},js=function(e){return{col:Ps(e),colgroup:Ms(e),row:Rs(e),cell:As(e),replace:Bs,colGap:Ps(e),gap:As(e)}},zs=function(e,t){var n=t||document,r=n.createElement("div");return r.innerHTML=e,wn(vt.fromDom(r))},Hs=function(e){return B(e,vt.fromDom)},Us=function(e){return e.nodeName.toLowerCase()},Ws=function(e){return vt.fromDom(e.getBody())},qs=function(e){return e.getBoundingClientRect().width},Gs=function(e){return e.getBoundingClientRect().height},Ys=function(e){return function(t){return Ct(t,Ws(e))}},Ks=function(e){return e?e.replace(/px$/,""):""},Xs=function(e){return/^\d+(\.\d+)?$/.test(e)?e+"px":e},Js=function(e){tr(e,"data-mce-style");var t=function(e){return tr(e,"data-mce-style")};L(Ir(e),t),L(Nr(e),t),L(Pr(e),t)},Zs=function(e,t){var n=e.dom.getStyle(t,"width")||e.dom.getAttrib(t,"width");return E.from(n).filter(De)},Qs=function(e){return/^(\d+(\.\d+)?)%$/.test(e)},el=function(e){return/^(\d+(\.\d+)?)px$/.test(e)},tl=function(e){return vt.fromDom(e.selection.getStart())},nl=function(e){return vt.fromDom(e.selection.getEnd())},rl=function(e){return ho(e.get(),v([]),b,Z)},il=function(e){var t=function(e,t){return er(e,t).exists((function(e){return parseInt(e,10)>1}))},n=function(e){return t(e,"rowspan")||t(e,"colspan")},r=rl(e);return r.length>0&&K(r,n)?E.some(r):E.none()},ol=function(e,t,n){return ho(t.get(),E.none,(function(t){return t.length<=1?E.none():lo(e,n.firstSelectedSelector,n.lastSelectedSelector).map((function(e){return{bounds:e,cells:t}}))}),E.none)},al="data-mce-selected",sl="td["+al+"],th["+al+"]",ll="["+al+"]",ul="data-mce-first-selected",cl="td["+ul+"],th["+ul+"]",fl="data-mce-last-selected",dl="td["+fl+"],th["+fl+"]",hl=ll,pl={selected:al,selectedSelector:sl,firstSelected:ul,firstSelectedSelector:cl,lastSelected:fl,lastSelectedSelector:dl},ml=function(e){return{element:e,mergable:E.none(),unmergable:E.none(),selection:[e]}},gl=function(e,t,n){return{element:n,mergable:ol(t,e,pl),unmergable:il(e),selection:rl(e)}},vl=function(e,t,n){return{element:e,clipboard:t,generators:n}},bl=function(e,t,n,r){return{selection:rl(e),clipboard:n,generators:r}},yl=function(e){return Ar(e).bind((function(e){return so(e,pl.firstSelectedSelector)})).fold(v(e),(function(e){return e[0]}))},wl=function(e){return function(t,n){var r=nn(t),i="col"===r||"colgroup"===r?yl(t):t;return Yn(i,e,n)}},_l=wl("th,td,caption"),Cl=wl("th,td"),xl=function(e){return rl(e)},Sl=function(e,t){var n=Cl(e),r=n.bind((function(e){return Ar(e)})).map((function(e){return Pr(e)}));return or(n,r,(function(e,n){return j(n,(function(n){return R(Hs(n.dom.cells),(function(n){return"1"===Qn(n,t)||Ct(n,e)}))}))})).getOr([])},kl=function(e){return Ar(e[0]).map((function(e){var t=Cs(e,hl);return Js(t),[t]}))},Dl=function(e,t){return B(t,(function(t){return e.selection.serializer.serialize(t.dom,{})})).join("")},Ol=function(e){return B(e,(function(e){return e.dom.innerText})).join("")},Tl=function(e,t,n){e.on("BeforeGetContent",(function(n){var r=function(t){n.preventDefault(),kl(t).each((function(t){n.content="text"===n.format?Ol(t):Dl(e,t)}))};!0===n.selection&&ho(t.get(),p,r,p)})),e.on("BeforeSetContent",(function(r){if(!0===r.selection&&!0===r.paste){var i=xl(t);te(i).each((function(t){Ar(t).each((function(i){var o=j(zs(r.content),(function(e){return"meta"!==nn(e)})),a=fn("table");if(1===o.length&&a(o[0])){r.preventDefault();var s=vt.fromDom(e.getDoc()),l=js(s),u=vl(t,o[0],l);n.pasteCells(i,u).each((function(){e.focus()}))}}))}))}}))},El=co.generate([{none:[]},{only:["index"]},{left:["index","next"]},{middle:["prev","index","next"]},{right:["prev","index"]}]),Il=ie({},El),Nl=function(e,t){return 0===e.length?Il.none():1===e.length?Il.only(0):0===t?Il.left(0,1):t===e.length-1?Il.right(t-1,t):t>0&&t<e.length-1?Il.middle(t-1,t,t+1):Il.none()},Al=function(e,t,n,r,i){var o=e.slice(0),a=Nl(e,t),s=v(B(o,v(0))),l=function(e){return r.singleColumnWidth(o[e],n)},u=function(e,t){return i.calcLeftEdgeDeltas(o,e,t,n,r.minCellWidth(),r.isRelative)},c=function(e,t,a){return i.calcMiddleDeltas(o,e,t,a,n,r.minCellWidth(),r.isRelative)},f=function(e,t){return i.calcRightEdgeDeltas(o,e,t,n,r.minCellWidth(),r.isRelative)};return a.fold(s,l,u,c,f)},Pl=function(e,t,n){for(var r=0,i=e;i<t;i++)r+=void 0!==n[i]?n[i]:0;return r},Ml=function(e,t){var n=ui.justCells(e);return B(n,(function(e){var n=Pl(e.column,e.column+e.colspan,t);return{element:e.element,width:n,colspan:e.colspan}}))},Rl=function(e,t){var n=ui.justColumns(e);return B(n,(function(e,n){return{element:e.element,width:t[n],colspan:e.colspan}}))},Fl=function(e,t){var n=ui.justCells(e);return B(n,(function(e){var n=Pl(e.row,e.row+e.rowspan,t);return{element:e.element,height:n,rowspan:e.rowspan}}))},Bl=function(e,t){return B(e.all,(function(e,n){return{element:e.element,height:t[n]}}))},Ll=function(e){return z(e,(function(e,t){return e+t}),0)},$l=function(e,t){return ui.hasColumns(e)?Rl(e,t):Ml(e,t)},Vl=function(e,t,n){var r=$l(e,t);L(r,(function(e){n.setElementWidth(e.element,e.width)}))},jl=function(e,t,n,r,i){var o=ui.fromTable(e),a=i.getCellDelta(t),s=i.getWidths(o,i),l=n===o.grid.columns-1,u=r.clampTableDelta(s,n,a,i.minCellWidth(),l),c=Al(s,n,u,i,r),f=B(c,(function(e,t){return e+s[t]}));Vl(o,f,i),r.resizeTable(i.adjustTableWidth,u,l)},zl=function(e,t,n,r){var i=ui.fromTable(e),o=ss(i,e,r),a=B(o,(function(e,r){return n===r?Math.max(t+e,kr()):e})),s=Fl(i,a),l=Bl(i,a);L(l,(function(e){Ea(e.element,e.height)})),L(s,(function(e){Ea(e.element,e.height)}));var u=Ll(a);Ea(e,u)},Hl=function(e,t,n,r,i){var o=ui.generate(t),a=r.getWidths(o,r),s=r.pixelWidth(),l=i.calcRedestributedWidths(a,s,n.pixelDelta,r.isRelative),u=l.newSizes,c=l.delta;Vl(o,u,r),r.adjustTableWidth(c)},Ul=function(e,t,n,r){var i=ui.generate(t),o=r.getWidths(i,r);Vl(i,o,r)},Wl=function(e){return B(e,v(0))},ql=function(e,t,n,r,i){return i(e.slice(0,t)).concat(r).concat(i(e.slice(n)))},Gl=function(e){return function(t,n,r,i){if(e(r)){var o=Math.max(i,t[n]-Math.abs(r)),a=Math.abs(o-t[n]);return r>=0?a:-a}return r}},Yl=Gl((function(e){return e<0})),Kl=Gl(S),Xl=function(){var e=function(e,t,n,r,i){var o=Yl(e,t,r,i);return ql(e,t,n+1,[o,0],Wl)},t=function(e,t,n,r){var i=(100+n)/100,o=Math.max(r,(e[t]+n)/i);return B(e,(function(e,n){var r=n===t?o:e/i;return r-e}))},n=function(n,r,i,o,a,s){return s?t(n,r,o,a):e(n,r,i,o,a)},r=function(e,t,r,i,o,a,s){return n(e,r,i,o,a,s)},i=function(e,t){return e(t)},o=function(e,n,r,i,o,a){if(a)return t(e,r,i,o);var s=Yl(e,r,i,o);return Wl(e.slice(0,r)).concat([s])},a=function(e,t,n,r){if(r){var i=t+n,o=i/t,a=B(e,(function(e){return e/o}));return{delta:100*o-100,newSizes:a}}return{delta:n,newSizes:e}};return{resizeTable:i,clampTableDelta:Yl,calcLeftEdgeDeltas:n,calcMiddleDeltas:r,calcRightEdgeDeltas:o,calcRedestributedWidths:a}},Jl=function(){var e=function(e,t,n,r,i){var o=r>=0?n:t,a=Kl(e,o,r,i);return ql(e,t,n+1,[a,-a],Wl)},t=function(t,n,r,i,o,a){return e(t,r,i,o,a)},n=function(e,t,n){n&&e(t)},r=function(e,t,n,r,i,o){if(o)return Wl(e);var a=r/e.length;return B(e,v(a))},i=function(e,t,n,r,i){if(i){if(n>=0)return n;var o=H(e,(function(e,t){return e+t-r}),0);return Math.max(-o,n)}return Yl(e,t,n,r)},o=function(e,t,n,r){return{delta:0,newSizes:e}};return{resizeTable:n,clampTableDelta:i,calcLeftEdgeDeltas:e,calcMiddleDeltas:t,calcRightEdgeDeltas:r,calcRedestributedWidths:o}},Zl=function(e,t){var n=E.from(e.dom.documentElement).map(vt.fromDom).getOr(e);return{parent:v(n),view:v(e),origin:v(Zo(0,0)),isResizable:t}},Ql=function(e,t,n){var r=function(){return ta(t)};return{parent:v(t),view:v(e),origin:r,isResizable:n}},eu=function(e,t,n){return{parent:v(t),view:v(e),origin:v(Zo(0,0)),isResizable:n}},tu={only:Zl,detached:Ql,body:eu},nu=co.generate([{invalid:["raw"]},{pixels:["value"]},{percent:["value"]}]),ru=function(e,t,n){var r=n.substring(0,n.length-e.length),i=parseFloat(r);return r===i.toString()?t(i):nu.invalid(n)},iu=function(e){return xe(e,"%")?ru("%",nu.percent,e):xe(e,"px")?ru("px",nu.pixels,e):nu.invalid(e)},ou=ie(ie({},nu),{from:iu}),au=function(e,t){return B(e,(function(e){var n=ou.from(e);return n.fold((function(){return e}),(function(e){var n=e/t*100;return n+"%"}),(function(e){return e+"%"}))}))},su=function(e,t,n){var r=n/t;return B(e,(function(e){var t=ou.from(e);return t.fold((function(){return e}),(function(e){return e*r+"px"}),(function(e){return e/100*n+"px"}))}))},lu=function(e,t){var n=e.fold((function(){return v("")}),(function(e){var n=e/t;return v(n+"px")}),(function(){var e=100/t;return v(e+"%")}));return F(t,n)},uu=function(e,t,n){return e.fold((function(){return t}),(function(e){return su(t,n,e)}),(function(e){return au(t,n)}))},cu=function(e,t,n){var r=ou.from(n),i=K(e,(function(e){return"0px"===e}))?lu(r,e.length):uu(r,e,t);return pu(i)},fu=function(e,t){return 0===e.length?t:z(e,(function(e,t){return ou.from(t).fold(v(0),b,b)+e}),0)},du=function(e,t){var n=Math.floor(e);return{value:n+t,remainder:e-n}},hu=function(e,t){return ou.from(e).fold(v(e),(function(e){return e+t+"px"}),(function(e){return e+t+"%"}))},pu=function(e){if(0===e.length)return e;var t=z(e,(function(e,t){var n=ou.from(t).fold((function(){return{value:t,remainder:0}}),(function(e){return du(e,"px")}),(function(e){return{value:e+"%",remainder:0}}));return{output:[n.value].concat(e.output),remainder:e.remainder+n.remainder}}),{output:[],remainder:0}),n=t.output;return n.slice(0,n.length-1).concat([hu(n[n.length-1],Math.round(t.remainder))])},mu=ou.from,gu=function(e,t,n){L(t,(function(t){var r=e.slice(t.column,t.colspan+t.column),i=fu(r,Sr());dr(t.element,"width",i+n)}))},vu=function(e,t,n){L(t,(function(t,r){var i=fu([e[r]],Sr());dr(t.element,"width",i+n)}))},bu=function(e,t,n,r){L(n,(function(t){var n=e.slice(t.row,t.rowspan+t.row),i=fu(n,kr());dr(t.element,"height",i+r)})),L(t,(function(t,n){dr(t.element,"height",e[n])}))},yu=function(e){return mu(e).fold(v("px"),v("px"),v("%"))},wu=function(e,t,n){var r=ui.fromTable(e),i=r.all,o=ui.justCells(r),a=ui.justColumns(r);t.each((function(t){var n=yu(t),i=Bo(e),s=rs(r,e),l=cu(s,i,t);ui.hasColumns(r)?vu(l,a,n):gu(l,o,n),dr(e,"width",t)})),n.each((function(t){var n=yu(t),a=Yo(e),s=ls(r,e,pa),l=cu(s,a,t);bu(l,i,o,n),dr(e,"height",t)}))},_u=Wa,Cu=qa,xu=Ga,Su=function(e){var t=ui.fromTable(e);return t.grid},ku=function(e){var t=[],n=function(e){if(void 0===e)throw new Error("Event bind error: undefined handler");t.push(e)},r=function(e){t=j(t,(function(t){return t!==e}))},i=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i={};L(e,(function(e,t){i[e]=n[t]})),L(t,(function(e){e(i)}))};return{bind:n,unbind:r,trigger:i}},Du=function(e){var t=It(e,(function(e){return{bind:e.bind,unbind:e.unbind}})),n=It(e,(function(e){return e.trigger}));return{registry:t,trigger:n}},Ou=function(e,t){var n=null,r=function(){s(n)||(clearTimeout(n),n=null)},i=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];r(),n=setTimeout((function(){n=null,e.apply(null,i)}),t)};return{cancel:r,throttle:i}},Tu=function(e){return e.slice(0).sort()},Eu=function(e,t){throw new Error("All required keys ("+Tu(e).join(", ")+") were not specified. Specified keys were: "+Tu(t).join(", ")+".")},Iu=function(e){throw new Error("Unsupported keys for object: "+Tu(e).join(", "))},Nu=function(e,t){if(!a(t))throw new Error("The "+e+" fields must be an array. Was: "+t+".");L(t,(function(t){if(!i(t))throw new Error("The value "+t+" in the "+e+" fields was not a string.")}))},Au=function(e,t){throw new Error("All values need to be of type: "+t+". Keys ("+Tu(e).join(", ")+") were not.")},Pu=function(e){var t=Tu(e),n=W(t,(function(e,n){return n<t.length-1&&e===t[n+1]}));n.each((function(e){throw new Error("The field: "+e+" occurs more than once in the combined fields: ["+t.join(", ")+"].")}))},Mu=function(e,t){return Ru(e,t,{validate:d,label:"function"})},Ru=function(e,t,n){if(0===t.length)throw new Error("You must specify at least one required field.");return Nu("required",t),Pu(t),function(r){var i=Ot(r),o=K(t,(function(e){return M(i,e)}));o||Eu(t,i),e(t,i);var a=j(t,(function(e){return!n.validate(r[e],e)}));return a.length>0&&Au(a,n.label),r}},Fu=function(e,t){var n=j(t,(function(t){return!M(e,t)}));n.length>0&&Iu(n)},Bu=function(e){return Mu(Fu,e)},Lu=Bu(["compare","extract","mutate","sink"]),$u=Bu(["element","start","stop","destroy"]),Vu=Bu(["forceDrop","drop","move","delayDrop"]),ju=function(){var e=E.none(),t=function(){e=E.none()},n=function(t,n){var r=e.map((function(e){return t.compare(e,n)}));return e=E.some(n),r},r=function(e,t){var r=t.extract(e);r.each((function(e){var r=n(t,e);r.each((function(e){i.trigger.move(e)}))}))},i=Du({move:ku(["info"])});return{onEvent:r,reset:t,events:i.registry}},zu=function(){var e=Du({move:ku(["info"])});return{onEvent:p,reset:p,events:e.registry}},Hu=function(){var e=zu(),t=ju(),n=e,r=function(){n.reset(),n=t},i=function(){n.reset(),n=e},o=function(e,t){n.onEvent(e,t)},a=function(){return n===t};return{on:r,off:i,isOn:a,onEvent:o,events:t.events}},Uu=function(e,t,n){var r=!1,i=Du({start:ku([]),stop:ku([])}),o=Hu(),a=function(){h.stop(),o.isOn()&&(o.off(),i.trigger.stop())},s=Ou(a,200),l=function(e){h.start(e),o.on(),i.trigger.start()},u=function(e){s.cancel(),o.onEvent(e,t)};o.events.move.bind((function(n){t.mutate(e,n.info)}));var c=function(){r=!0},f=function(){r=!1},d=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];r&&e.apply(null,t)}},h=t.sink(Vu({forceDrop:a,drop:d(a),move:d(u),delayDrop:d(s.throttle)}),n),p=function(){h.destroy()};return{element:h.element,go:l,on:c,off:f,destroy:p,events:i.registry}},Wu=function(e,t,n,r,i,o,a){return{target:e,x:t,y:n,stop:r,prevent:i,kill:o,raw:a}},qu=function(e){var t=vt.fromDom(En(e).getOr(e.target)),n=function(){return e.stopPropagation()},r=function(){return e.preventDefault()},i=m(r,n);return Wu(t,e.clientX,e.clientY,n,r,i,e)},Gu=function(e,t){return function(n){e(n)&&t(qu(n))}},Yu=function(e,t,n,r,i){var o=Gu(n,r);return e.dom.addEventListener(t,o,i),{unbind:w(Xu,e,t,o,i)}},Ku=function(e,t,n,r){return Yu(e,t,n,r,!1)},Xu=function(e,t,n,r){e.dom.removeEventListener(t,n,r)},Ju=S,Zu=function(e,t,n){return Ku(e,t,Ju,n)},Qu=qu,ec=function(e,t){var n=Qn(e,t);return void 0===n||""===n?[]:n.split(" ")},tc=function(e,t,n){var r=ec(e,t),i=r.concat([n]);return Xn(e,t,i.join(" ")),!0},nc=function(e,t,n){var r=j(ec(e,t),(function(e){return e!==n}));return r.length>0?Xn(e,t,r.join(" ")):tr(e,t),!1},rc=function(e){return void 0!==e.dom.classList},ic=function(e){return ec(e,"class")},oc=function(e,t){return tc(e,"class",t)},ac=function(e,t){return nc(e,"class",t)},sc=function(e,t){rc(e)?e.dom.classList.add(t):oc(e,t)},lc=function(e){var t=rc(e)?e.dom.classList:ic(e);0===t.length&&tr(e,"class")},uc=function(e,t){if(rc(e)){var n=e.dom.classList;n.remove(t)}else ac(e,t);lc(e)},cc=function(e,t){return rc(e)&&e.dom.classList.contains(t)},fc=function(e){var t=e.replace(/\./g,"-"),n=function(e){return t+"-"+e};return{resolve:n}},dc=fc("ephox-dragster"),hc=dc.resolve,pc=function(e){var t=ie({layerClass:hc("blocker")},e),n=vt.fromTag("div");Xn(n,"role","presentation"),hr(n,{position:"fixed",left:"0px",top:"0px",width:"100%",height:"100%"}),sc(n,hc("blocker")),sc(n,t.layerClass);var r=v(n),i=function(){Mi(n)};return{element:r,destroy:i}},mc=function(e,t){return Zo(t.left-e.left,t.top-e.top)},gc=function(e){return E.some(Zo(e.x,e.y))},vc=function(e,t){e.mutate(t.left,t.top)},bc=function(e,t){var n=pc(t),r=Zu(n.element(),"mousedown",e.forceDrop),i=Zu(n.element(),"mouseup",e.drop),o=Zu(n.element(),"mousemove",e.move),a=Zu(n.element(),"mouseout",e.delayDrop),s=function(){n.destroy(),i.unbind(),o.unbind(),a.unbind(),r.unbind()},l=function(e){Oi(e,n.element())},u=function(){Mi(n.element())};return $u({element:n.element,start:l,stop:u,destroy:s})},yc=Lu({compare:mc,extract:gc,sink:bc,mutate:vc}),wc=function(e,t){void 0===t&&(t={});var n=void 0!==t.mode?t.mode:yc;return Uu(e,n,t)},_c=function(e){return Yn(e,"[contenteditable]")},Cc=function(e,t){return void 0===t&&(t=!1),!it().browser.isIE()&&Nn(e)?e.dom.isContentEditable:_c(e).fold(v(t),(function(e){return"true"===xc(e)}))},xc=function(e){return e.dom.contentEditable},Sc=fc("ephox-snooker"),kc=Sc.resolve,Dc=function(){var e=Du({drag:ku(["xDelta","yDelta"])}),t=function(t,n){e.trigger.drag(t,n)};return{mutate:t,events:e.registry}},Oc=function(){var e=Du({drag:ku(["xDelta","yDelta","target"])}),t=E.none(),n=Dc();n.events.drag.bind((function(n){t.each((function(t){e.trigger.drag(n.xDelta,n.yDelta,t)}))}));var r=function(e){t=E.some(e)},i=function(){return t};return{assign:r,get:i,mutate:n.mutate,events:e.registry}},Tc=function(e,t,n,r,i){var o=vt.fromTag("div");return hr(o,{position:"absolute",left:t-r/2+"px",top:n+"px",height:i+"px",width:r+"px"}),Jn(o,{"data-column":e,role:"presentation"}),o},Ec=function(e,t,n,r,i){var o=vt.fromTag("div");return hr(o,{position:"absolute",left:t+"px",top:n-i/2+"px",height:i+"px",width:r+"px"}),Jn(o,{"data-row":e,role:"presentation"}),o},Ic=kc("resizer-bar"),Nc=kc("resizer-rows"),Ac=kc("resizer-cols"),Pc=7,Mc=function(e,t){return Y(e.all,(function(e,n){return t(e.element)?[n]:[]}))},Rc=function(e,t){var n=[];return F(e.grid.columns,(function(r){var i=ui.getColumnAt(e,r).map((function(e){return e.element}));i.forall(t)&&n.push(r)})),j(n,(function(n){var r=ui.filterItems(e,(function(e){return e.column===n}));return K(r,(function(e){return t(e.element)}))}))},Fc=function(e){var t=$n(e.parent(),"."+Ic);L(t,Mi)},Bc=function(e,t,n){var r=e.origin();L(t,(function(t){t.each((function(t){var i=n(r,t);sc(i,Ic),Oi(e.parent(),i)}))}))},Lc=function(e,t,n,r){Bc(e,t,(function(e,t){var i=Tc(t.col,t.x-e.left,n.top-e.top,Pc,r);return sc(i,Ac),i}))},$c=function(e,t,n,r){Bc(e,t,(function(e,t){var i=Ec(t.row,n.left-e.left,t.y-e.top,r,Pc);return sc(i,Nc),i}))},Vc=function(e,t,n,r,i){var o=ta(n),a=t.isResizable,s=r.length>0?pa.positions(r,n):[],l=s.length>0?Mc(e,a):[],u=j(s,(function(e,t){return R(l,(function(e){return t===e}))}));$c(t,u,o,Lo(n));var c=i.length>0?ba.positions(i,n):[],f=c.length>0?Rc(e,a):[],d=j(c,(function(e,t){return R(f,(function(e){return t===e}))}));Lc(t,d,o,Ko(n))},jc=function(e,t){if(Fc(e),e.isResizable(t)){var n=ui.fromTable(t),r=Ho(n),i=jo(n);Vc(n,e,t,r,i)}},zc=function(e,t){var n=$n(e.parent(),"."+Ic);L(n,t)},Hc=function(e){zc(e,(function(e){dr(e,"display","none")}))},Uc=function(e){zc(e,(function(e){dr(e,"display","block")}))},Wc=function(e){return cc(e,Nc)},qc=function(e){return cc(e,Ac)},Gc=kc("resizer-bar-dragging"),Yc=function(e){var t=Oc(),n=wc(t,{}),r=E.none(),i=function(e,t){return E.from(Qn(e,t))};t.events.drag.bind((function(e){i(e.target,"data-row").each((function(t){var n=xr(e.target,"top");dr(e.target,"top",n+e.yDelta+"px")})),i(e.target,"data-column").each((function(t){var n=xr(e.target,"left");dr(e.target,"left",n+e.xDelta+"px")}))}));var o=function(e,t){var n=xr(e,t),r=yr(e,"data-initial-"+t,0);return n-r};n.events.stop.bind((function(){t.get().each((function(t){r.each((function(n){i(t,"data-row").each((function(e){var r=o(t,"top");tr(t,"data-initial-top"),h.trigger.adjustHeight(n,r,parseInt(e,10))})),i(t,"data-column").each((function(e){var r=o(t,"left");tr(t,"data-initial-left"),h.trigger.adjustWidth(n,r,parseInt(e,10))})),jc(e,n)}))}))}));var a=function(r,i){h.trigger.startAdjust(),t.assign(r),Xn(r,"data-initial-"+i,xr(r,i)),sc(r,Gc),dr(r,"opacity","0.2"),n.go(e.parent())},s=Zu(e.parent(),"mousedown",(function(e){Wc(e.target)&&a(e.target,"top"),qc(e.target)&&a(e.target,"left")})),l=function(t){return Ct(t,e.view())},u=function(e){return Yn(e,"table",l).filter(Cc)},c=Zu(e.view(),"mouseover",(function(t){u(t.target).fold((function(){Nn(t.target)&&Fc(e)}),(function(t){r=E.some(t),jc(e,t)}))})),f=function(){s.unbind(),c.unbind(),n.destroy(),Fc(e)},d=function(t){jc(e,t)},h=Du({adjustHeight:ku(["table","delta","row"]),adjustWidth:ku(["table","delta","column"]),startAdjust:ku([])});return{destroy:f,refresh:d,on:n.on,off:n.off,hideBars:w(Hc,e),showBars:w(Uc,e),events:h.registry}},Kc=function(e,t,n){var r=pa,i=ba,o=Yc(e),a=Du({beforeResize:ku(["table","type"]),afterResize:ku(["table","type"]),startDrag:ku([])});return o.events.adjustHeight.bind((function(e){var t=e.table;a.trigger.beforeResize(t,"row");var n=r.delta(e.delta,t);zl(t,n,e.row,r),a.trigger.afterResize(t,"row")})),o.events.startAdjust.bind((function(e){a.trigger.startDrag()})),o.events.adjustWidth.bind((function(e){var r=e.table;a.trigger.beforeResize(r,"col");var o=i.delta(e.delta,r),s=n(r);jl(r,o,e.column,t,s),a.trigger.afterResize(r,"col")})),{on:o.on,off:o.off,hideBars:o.hideBars,showBars:o.showBars,destroy:o.destroy,events:a.registry}},Xc={create:Kc},Jc=function(e,t){return e.fire("newrow",{node:t})},Zc=function(e,t){return e.fire("newcell",{node:t})},Qc=function(e,t,n,r,i){e.fire("ObjectResizeStart",{target:t,width:n,height:r,origin:i})},ef=function(e,t,n,r,i){e.fire("ObjectResized",{target:t,width:n,height:r,origin:i})},tf=function(e,t,n,r,i){e.fire("TableSelectionChange",{cells:t,start:n,finish:r,otherCells:i})},nf=function(e){e.fire("TableSelectionClear")},rf=function(e,t,n){e.fire("TableModified",ie(ie({},n),{table:t}))},of={structure:!1,style:!0},af={structure:!0,style:!1},sf={structure:!0,style:!0},lf="tableprops tabledelete | tableinsertrowbefore tableinsertrowafter tabledeleterow | tableinsertcolbefore tableinsertcolafter tabledeletecol",uf={"border-collapse":"collapse",width:"100%"},cf=F(5,(function(e){var t=e+1+"px";return{title:t,value:t}})),ff=B(["Solid","Dotted","Dashed","Double","Groove","Ridge","Inset","Outset","None","Hidden"],(function(e){return{title:e,value:e.toLowerCase()}})),df=function(e){var t;if(Pf(e)){var n=e.dom,r=null!==(t=n.getParent(e.selection.getStart(),n.isBlock))&&void 0!==t?t:e.getBody(),i=$o(vt.fromDom(r));return ie(ie({},uf),{width:i+"px"})}return Mf(e)?Mt(uf,(function(e,t){return"width"!==t})):uf},hf={border:"1"},pf="preservetable",mf=function(e){return e.getParam("table_sizing_mode","auto")},gf=function(e){return e.getParam("table_responsive_width")},vf=function(e){return e.getParam("table_border_widths",cf,"array")},bf=function(e){return e.getParam("table_border_styles",ff,"array")},yf=function(e){return e.getParam("table_default_attributes",hf,"object")},wf=function(e){return e.getParam("table_default_styles",df(e),"object")},_f=function(e){return e.getParam("table_resize_bars",!0,"boolean")},Cf=function(e){return e.getParam("table_tab_navigation",!0,"boolean")},xf=function(e){return e.getParam("table_cell_advtab",!0,"boolean")},Sf=function(e){return e.getParam("table_row_advtab",!0,"boolean")},kf=function(e){return e.getParam("table_advtab",!0,"boolean")},Df=function(e){return e.getParam("table_appearance_options",!0,"boolean")},Of=function(e){return e.getParam("table_grid",!0,"boolean")},Tf=function(e){return e.getParam("table_style_by_css",!1,"boolean")},Ef=function(e){return e.getParam("table_cell_class_list",[],"array")},If=function(e){return e.getParam("table_row_class_list",[],"array")},Nf=function(e){return e.getParam("table_class_list",[],"array")},Af=function(e){return"relative"===mf(e)||!0===gf(e)},Pf=function(e){return"fixed"===mf(e)||!1===gf(e)},Mf=function(e){return"responsive"===mf(e)},Rf=function(e){return e.getParam("table_toolbar",lf)},Ff=function(e){return e.getParam("table_use_colgroups",!1,"boolean")},Bf=function(e){var t="section",n=e.getParam("table_header_type",t,"string"),r=["section","cells","sectionCells","auto"];return M(r,n)?n:t},Lf=function(e){var t=["preservetable","resizetable"],n=e.getParam("table_column_resizing",pf,"string");return W(t,(function(e){return e===n})).getOr(pf)},$f=function(e){return"preservetable"===Lf(e)},Vf=function(e){return"resizetable"===Lf(e)},jf=function(e){var t=e.getParam("table_clone_elements");return i(t)?E.some(t.split(/[ ,]/)):Array.isArray(t)?E.some(t):E.none()},zf=function(e){var t=e.getParam("object_resizing",!0);return i(t)?"table"===t:t},Hf=function(e){return e.getParam("table_background_color_map",[],"array")},Uf=function(e){return e.getParam("table_border_color_map",[],"array")},Wf=function(e,t){return Af(e)?ms.percentageSize(t):Pf(e)?ms.pixelSize(t):ms.getTableSize(t)},qf=function(e){tr(e,"width")},Gf=function(e){var t=Ua(e);wu(e,E.some(t),E.none()),qf(e)},Yf=function(e){var t=Ha(e);wu(e,E.some(t),E.none()),qf(e)},Kf=function(e){vr(e,"width");var t=Nr(e),n=t.length>0?t:Ir(e);L(n,(function(e){vr(e,"width"),qf(e)})),qf(e)},Xf=Gf,Jf=Yf,Zf=Kf,Qf=function(e){var t=ui.fromTable(e);ui.hasColumns(t)||L(Ir(e),(function(e){var t=pr(e,"width");dr(e,"width",t),tr(e,"width")}))},ed=function(){var e=vt.fromTag("div");return hr(e,{position:"static",height:"0",width:"0",padding:"0",margin:"0",border:"0"}),Oi(An(),e),e},td=function(e,t){return e.inline?tu.body(Ws(e),ed(),t):tu.only(vt.fromDom(e.getDoc()),t)},nd=function(e,t){e.inline&&Mi(t.parent())},rd="bar-",id=function(e){return"false"!==Qn(e,"data-mce-resize")},od=function(e){var t,n,r=E.none(),i=E.none(),o=E.none(),a=function(e){return"TABLE"===e.nodeName},s=function(){return i},l=function(){return o.getOr(tu.only(vt.fromDom(e.getBody()),id))},u=function(t){return Wf(e,t)},c=function(){return $f(e)?Jl():Xl()},f=function(e){return Su(e).columns},d=function(r,i,o){var a=xe(i,"e");if(""===n&&Xf(r),o!==t&&""!==n){dr(r,"width",n);var s=c(),l=u(r),d=$f(e)||a?f(r)-1:0;jl(r,o-t,d,s,l)}else if(Qs(n)){var h=parseFloat(n.replace("%","")),p=o*h/t;dr(r,"width",p+"%")}el(n)&&Qf(r)},h=function(){i.each((function(e){e.destroy()})),o.each((function(t){nd(e,t)}))};return e.on("init",(function(){var t=td(e,id);if(o=E.some(t),zf(e)&&_f(e)){var n=c(),a=Xc.create(t,n,u);a.on(),a.events.startDrag.bind((function(t){r=E.some(e.selection.getRng())})),a.events.beforeResize.bind((function(t){var n=t.table.dom;Qc(e,n,qs(n),Gs(n),rd+t.type)})),a.events.afterResize.bind((function(t){var n=t.table,i=n.dom;Js(n),r.each((function(t){e.selection.setRng(t),e.focus()})),ef(e,i,qs(i),Gs(i),rd+t.type),e.undoManager.add()})),i=E.some(a)}})),e.on("ObjectResizeStart",(function(r){var i=r.target;if(a(i)){var o=vt.fromDom(i);L(e.dom.select(".mce-clonedresizable"),(function(t){e.dom.addClass(t,"mce-"+Lf(e)+"-columns")})),!Cu(o)&&Pf(e)?Jf(o):!_u(o)&&Af(e)&&Xf(o),xu(o)&&Ce(r.origin,rd)&&Xf(o),t=r.width,n=Mf(e)?"":Zs(e,i).getOr("")}})),e.on("ObjectResized",(function(t){var n=t.target;if(a(n)){var r=vt.fromDom(n),i=t.origin;Ce(i,"corner-")&&d(r,i,t.width),Js(r),rf(e,r.dom,of)}})),e.on("SwitchMode",(function(){s().each((function(t){e.mode.isReadOnly()?t.hideBars():t.showBars()}))})),{lazyResize:s,lazyWire:l,destroy:h}},ad=function(e,t){return{element:e,offset:t}},sd=function(e,t,n){return e.property().isText(t)&&0===e.property().getText(t).trim().length||e.property().isComment(t)?n(t).bind((function(t){return sd(e,t,n).orThunk((function(){return E.some(t)}))})):E.none()},ld=function(e,t){if(e.property().isText(t))return e.property().getText(t).length;var n=e.property().children(t);return n.length},ud=function(e,t){var n=sd(e,t,e.query().prevSibling).getOr(t);if(e.property().isText(n))return ad(n,ld(e,n));var r=e.property().children(n);return r.length>0?ud(e,r[r.length-1]):ad(n,ld(e,n))},cd=ud,fd=zi(),dd=function(e){return cd(fd,e)},hd=function(e,t){var n=wr(e,"colspan");if(1===n){var r=ja(e);r.each((function(n){var r=n.value/2;za(e,r,n.unit),za(t,r,n.unit)}))}},pd=fn("th"),md=function(e){return K(e,(function(e){return pd(e.element)}))},gd=function(e,t){return e&&t?"sectionCells":e?"section":"cells"},vd=function(e){var t="thead"===e.section,n=rr(bd(e.cells),"th");return t||n?{type:"header",subType:gd(t,n)}:"tfoot"===e.section?{type:"footer"}:{type:"body"}},bd=function(e){var t=j(e,(function(e){return pd(e.element)}));return 0===t.length?E.some("td"):t.length===e.length?E.some("th"):E.none()},yd=function(e){var t=B(e,(function(e){return vd(e).type})),n=M(t,"header"),r=M(t,"footer");if(n||r){var i=M(t,"body");return!n||i||r?n||i||!r?E.none():E.some("footer"):E.some("header")}return E.some("body")},wd=function(e){return re(e.all,(function(e){var t=vd(e);return"header"===t.type?E.from(t.subType):E.none()}))},_d=function(e,t,n){return Jt(n(e.element,t),!0,e.isLocked)},Cd=function(e,t){return e.section!==t?Zt(e.element,e.cells,t,e.isNew):e},xd=function(){return{transformRow:Cd,transformCell:function(e,t,n){var r=n(e.element,t),i="td"!==nn(r)?So(r,"td"):r;return Jt(i,e.isNew,e.isLocked)}}},Sd=function(){return{transformRow:Cd,transformCell:_d}},kd=function(){return{transformRow:function(e,t){var n="thead"===t?"tbody":t;return Cd(e,n)},transformCell:_d}},Dd=function(){return{transformRow:b,transformCell:_d}},Od=function(e,t){var n=ui.fromTable(e),r=wd(n).getOr(t);switch(r){case"section":return xd();case"sectionCells":return Sd();case"cells":return kd()}},Td={getTableSectionType:Od,section:xd,sectionCells:Sd,cells:kd,fallback:Dd},Ed=function(e,t,n,r){n===r?tr(e,t):Xn(e,t,n)},Id=function(e,t,n){ne(Ln(e,t)).fold((function(){return Di(e,n)}),(function(e){return ki(e,n)}))},Nd=function(e,t){var n=qn(e,t).getOrThunk((function(){var n=vt.fromTag(t,dn(e).dom);return"thead"===t?Id(e,"caption,colgroup",n):"colgroup"===t?Id(e,"caption",n):Oi(e,n),n}));return Pi(n),n},Ad=function(e,t){var n=[],r=[],i=function(e){return B(e,(function(e){e.isNew&&n.push(e.element);var t=e.element;return Pi(t),L(e.cells,(function(e){e.isNew&&r.push(e.element),Ed(e.element,"colspan",e.colspan,1),Ed(e.element,"rowspan",e.rowspan,1),Oi(t,e.element)})),t}))},o=function(e){return Y(e,(function(e){return B(e.cells,(function(e){return Ed(e.element,"span",e.colspan,1),e.element}))}))},a=function(t,n){var r=Nd(e,n),a="colgroup"===n?o:i,s=a(t);Ai(r,s)},s=function(t){qn(e,t).each(Mi)},l=function(e,t){e.length>0?a(e,t):s(t)},u=[],c=[],f=[],d=[];return L(t,(function(e){switch(e.section){case"thead":u.push(e);break;case"tbody":c.push(e);break;case"tfoot":f.push(e);break;case"colgroup":d.push(e);break}})),l(d,"colgroup"),l(u,"thead"),l(c,"tbody"),l(f,"tfoot"),{newRows:n,newCells:r}},Pd=function(e){return B(e,(function(e){var t=wo(e.element);return L(e.cells,(function(e){var n=_o(e.element);Ed(n,"colspan",e.colspan,1),Ed(n,"rowspan",e.rowspan,1),Oi(t,n)})),t}))},Md=function(e,t){return B(e,(function(e){return Ur(e,t)}))},Rd=function(e,t){return e[t]},Fd=function(e,t){if(0===e.length)return 0;var n=e[0],r=q(e,(function(e){return!t(n.element,e.element)}));return r.getOr(e.length)},Bd=function(e,t,n,r){var i=Rd(e,t),o="colgroup"===i.section,a=Fd(i.cells.slice(n),r),s=o?1:Fd(Md(e.slice(t),n),r);return{colspan:a,rowspan:s}},Ld=function(e,t){var n=B(e,(function(e){return B(e.cells,x)})),r=function(e,t,r,i){for(var o=e;o<e+r;o++)for(var a=t;a<t+i;a++)n[o][a]=!0};return B(e,(function(i,o){var a=Y(i.cells,(function(i,a){if(!1===n[o][a]){var s=Bd(e,o,a,t);return r(o,a,s.rowspan,s.colspan),[Gt(i.element,s.rowspan,s.colspan,i.isNew)]}return[]}));return Xt(i.element,a,i.section,i.isNew)}))},$d=function(e,t,n){var r=[];L(e.colgroups,(function(i){for(var o=[],a=0;a<e.grid.columns;a++){var s=ui.getColumnAt(e,a).map((function(e){return Jt(e.element,n,!1)})).getOrThunk((function(){return Jt(t.colGap(),!0,!1)}));o.push(s)}r.push(Zt(i.element,o,"colgroup",n))}));for(var i=0;i<e.grid.rows;i++){for(var o=[],a=0;a<e.grid.columns;a++){var s=ui.getAt(e,i,a).map((function(e){return Jt(e.element,n,e.isLocked)})).getOrThunk((function(){return Jt(t.gap(),!0,!1)}));o.push(s)}var l=e.all[i],u=Zt(l.element,o,l.section,n);r.push(u)}return r},Vd=function(e,t){return $d(e,t,!1)},jd=function(e){return Ld(e,Ct)},zd=function(e,t){return re(e.all,(function(e){return W(e.cells,(function(e){return Ct(t,e.element)}))}))},Hd=function(e,t,n){var r=B(t.selection,(function(t){return Er(t).bind((function(t){return zd(e,t)})).filter(n)})),i=ir(r);return lr(i.length>0,i)},Ud=function(e,t,n,r,i){return function(o,a,s,l,u){var c=ui.fromTable(a),f=E.from(null===u||void 0===u?void 0:u.section).getOrThunk(Td.fallback),d=t(c,s).map((function(t){var n=Vd(c,l),r=e(n,t,Ct,i(l),f),o=Jr(r.grid),a=jd(r.grid);return{info:t,grid:a,cursor:r.cursor,lockedColumns:o}}));return d.bind((function(e){var t=Ad(a,e.grid),i=E.from(null===u||void 0===u?void 0:u.sizing).getOrThunk((function(){return ms.getTableSize(a)})),s=E.from(null===u||void 0===u?void 0:u.resize).getOrThunk(Jl);return n(a,e.grid,e.info,{sizing:i,resize:s,section:f}),r(a),jc(o,a),tr(a,Kr),e.lockedColumns.length>0&&Xn(a,Kr,e.lockedColumns.join(",")),E.some({cursor:e.cursor,newRows:t.newRows,newCells:t.newCells})}))}},Wd=function(e,t){return Er(t.element).bind((function(n){return zd(e,n).map((function(e){var n=ie(ie({},e),{generators:t.generators,clipboard:t.clipboard});return n}))}))},qd=function(e,t){return Hd(e,t,S).map((function(e){return{cells:e,generators:t.generators,clipboard:t.clipboard}}))},Gd=function(e,t){return t.mergable},Yd=function(e,t){return t.unmergable},Kd=function(e,t){return Hd(e,t,S)},Xd=function(e,t){return Hd(e,t,(function(e){return!e.isLocked}))},Jd=function(e,t){return zd(e,t).exists((function(e){return!e.isLocked}))},Zd=function(e,t){return K(t,(function(t){return Jd(e,t)}))},Qd=function(e,t){return Gd(e,t).filter((function(t){return Zd(e,t.cells)}))},eh=function(e,t){return Yd(e,t).filter((function(t){return Zd(e,t)}))},th=function(e,t,n,r){var i=Gr(e).rows;if(0===i.length)return e;for(var o=t.startRow;o<=t.finishRow;o++)for(var a=t.startCol;a<=t.finishCol;a++){var s=i[o],l=Ur(s,a).isLocked;jr(s,a,Jt(r(),!1,l))}return e},nh=function(e,t,n,r){for(var i=Gr(e).rows,o=!0,a=0;a<i.length;a++)for(var s=0;s<qr(i[0]);s++){var l=i[a],u=Ur(l,s),c=u.element,f=n(c,t);!0===f&&!1===o?jr(l,s,Jt(r(),!0,u.isLocked)):!0===f&&(o=!1)}return e},rh=function(e,t){return H(e,(function(e,n){return R(e,(function(e){return t(e.element,n.element)}))?e:e.concat([n])}),[])},ih=function(e,t,n,r){return t>0&&t<e[0].cells.length&&L(e,(function(e){var i=e.cells[t-1],o=e.cells[t],a=n(o.element,i.element);a&&jr(e,t,Jt(r(),!0,o.isLocked))})),e},oh=function(e,t,n,r){var i=Gr(e).rows;if(t>0&&t<i.length){var o=i[t-1].cells,a=rh(o,n);L(a,(function(e){for(var o=E.none(),a=t;a<i.length;a++)for(var s=function(t){var s=i[a],l=Ur(s,t),u=n(l.element,e.element);u&&(o.isNone()&&(o=E.some(r())),o.each((function(e){jr(s,t,Jt(e,!0,l.isLocked))})))},l=0;l<qr(i[0]);l++)s(l)}))}return e},ah=function(e){var t=function(t){return ah(e)},n=function(t){return ah(e)},r=function(t){return ah(t(e))},i=function(t){return ah(e)},o=function(t){t(e)},a=function(t){return t(e)},s=function(t,n){return n(e)},l=function(t){return t(e)},u=function(t){return t(e)},c=function(){return E.some(e)};return{isValue:S,isError:x,getOr:v(e),getOrThunk:v(e),getOrDie:v(e),or:t,orThunk:n,fold:s,map:r,mapError:i,each:o,bind:a,exists:l,forall:u,toOptional:c}},sh=function(e){var t=function(e){return e()},n=function(){return C(String(e))()},r=b,i=function(e){return e()},o=function(t){return sh(e)},a=function(t){return sh(t(e))},s=function(t){return sh(e)},l=function(t,n){return t(e)};return{isValue:x,isError:S,getOr:b,getOrThunk:t,getOrDie:n,or:r,orThunk:i,fold:l,map:o,mapError:a,each:p,bind:s,exists:x,forall:S,toOptional:E.none}},lh=function(e,t){return e.fold((function(){return sh(t)}),ah)},uh={value:ah,error:sh,fromOption:lh},ch=function(e,t,n){if(e.row>=t.length||e.column>qr(t[0]))return uh.error("invalid start address out of table bounds, row: "+e.row+", column: "+e.column);var r=t.slice(e.row),i=r[0].cells.slice(e.column),o=qr(n[0]),a=n.length;return uh.value({rowDelta:r.length-a,colDelta:i.length-o})},fh=function(e,t){var n=qr(e[0]),r=qr(t[0]);return{rowDelta:0,colDelta:n-r}},dh=function(e,t){var n=e.length,r=t.length;return{rowDelta:n-r,colDelta:0}},hh=function(e,t,n,r){var i="colgroup"===t.section?n.col:n.cell;return F(e,(function(e){return Jt(i(),!0,r(e))}))},ph=function(e,t,n,r){var i=e[e.length-1];return e.concat(F(t,(function(){var e="colgroup"===i.section?n.colgroup:n.row,t=Yr(i,e,b),o=hh(t.cells.length,t,n,(function(e){return $t(r,e.toString())}));return zr(t,o)})))},mh=function(e,t,n,r){return B(e,(function(e){var i=hh(t,e,n,x);return $r(e,r,i)}))},gh=function(e,t,n){return B(e,(function(e){return H(n,(function(n,r){var i=hh(1,e,t,S)[0];return Vr(n,r,i)}),e)}))},vh=function(e,t,n){var r=t.colDelta<0?mh:b,i=t.rowDelta<0?ph:b,o=Jr(e),a=qr(e[0]),s=R(o,(function(e){return e===a-1})),l=r(e,Math.abs(t.colDelta),n,s?a-1:a),u=Jr(l);return i(l,Math.abs(t.rowDelta),n,J(u,S))},bh=function(e,t,n,r){var i=Ur(e[t],n),o=w(r,i.element),a=e[t];return e.length>1&&qr(a)>1&&(n>0&&o(Wr(a,n-1))||n<a.cells.length-1&&o(Wr(a,n+1))||t>0&&o(Wr(e[t-1],n))||t<e.length-1&&o(Wr(e[t+1],n)))},yh=function(e,t,n,r,i,o){for(var a=e.row,s=e.column,l=n.length,u=qr(n[0]),c=a+l,f=s+u+o.length,d=J(o,S),h=a;h<c;h++)for(var p=0,m=s;m<f;m++)if(d[m])p++;else{bh(t,h,m,i)&&nh(t,Wr(t[h],m),i,r.cell);var g=m-s-p,v=Ur(n[h-a],g),b=v.element,y=r.replace(b);jr(t[h],m,Jt(y,!0,v.isLocked))}return t},wh=function(e,t,n){var r=qr(t[0]),i=Gr(t).cols.length+e.row,o=F(r-e.column,(function(t){return t+e.column})),a=W(o,(function(e){return K(n,(function(t){return t!==e}))})).getOr(r-1);return{row:i,column:a}},_h=function(e,t,n){return j(n,(function(n){return n>=e.column&&n<=qr(t[0])+e.column}))},Ch=function(e,t,n,r,i){var o=Jr(t),a=wh(e,t,o),s=Gr(n).rows,l=_h(a,s,o),u=ch(a,t,s);return u.map((function(e){var n=ie(ie({},e),{colDelta:e.colDelta-l.length}),o=vh(t,n,r),u=Jr(o),c=_h(a,s,u);return yh(a,o,s,r,i,c)}))},xh=function(e,t,n,r,i){ih(t,e,i,r.cell);var o=dh(n,t),a=vh(n,o,r),s=dh(t,a),l=vh(t,s,r);return B(l,(function(t,n){return $r(t,e,a[n].cells)}))},Sh=function(e,t,n,r,i){oh(t,e,i,r.cell);var o=Jr(t),a=fh(t,n),s=ie(ie({},a),{colDelta:a.colDelta-o.length}),l=vh(t,s,r),u=Gr(l),c=u.cols,f=u.rows,d=Jr(l),h=fh(n,t),p=ie(ie({},h),{colDelta:h.colDelta+d.length}),m=gh(n,r,d),g=vh(m,p,r);return c.concat(f.slice(0,e)).concat(g).concat(f.slice(e,f.length))},kh=function(e,t,n,r){return Yr(e,(function(e){return r(e,n)}),t)},Dh=function(e,t,n,r,i){var o=Gr(e),a=o.rows,s=o.cols,l=a.slice(0,t),u=a.slice(t),c=kh(a[n],(function(e,n){var o=t>0&&t<a.length&&r(Wr(a[t-1],n),Wr(a[t],n)),s=o?Ur(a[t],n):Jt(i(e.element,r),!0,e.isLocked);return s}),r,i);return s.concat(l).concat([c]).concat(u)},Oh=function(e,t,n,r,i,o,a){if("colgroup"!==n&&r)return Ur(e,t);var s=Ur(e,i);return Jt(a(s.element,o),!0,!1)},Th=function(e,t,n,r,i){return B(e,(function(e){var o=t>0&&t<qr(e)&&r(Wr(e,t-1),Wr(e,t)),a=Oh(e,t,e.section,o,n,r,i);return Vr(e,t,a)}))},Eh=function(e,t){return Y(e,(function(e){var n=e.cells,r=z(t,(function(e,t){return t>=0&&t<e.length?e.slice(0,t).concat(e.slice(t+1)):e}),n);return r.length>0?[Zt(e.element,r,e.section,e.isNew)]:[]}))},Ih=function(e,t,n){var r=Gr(e),i=r.rows,o=r.cols;return o.concat(i.slice(0,t)).concat(i.slice(n+1))},Nh=function(e,t,n,r){return void 0!==Wr(e[t],n)&&t>0&&r(Wr(e[t-1],n),Wr(e[t],n))},Ah=function(e,t,n){return t>0&&n(Wr(e,t-1),Wr(e,t))},Ph=function(e,t,n,r){return Nh(e,t,n,r)||Ah(e[t],n,r)},Mh=function(e,t){var n=K(t,b)&&md(e.cells);return n?S:function(e,n,r){var i=nn(e.element);return!("th"===i&&t[r])}},Rh=function(e,t){var n=K(t,b)&&md(e);return n?S:function(e,n,r){var i=nn(e.element);return!("th"===i&&t[n])}},Fh=function(e,t,n,r){var i=function(e){return"row"===e?Cr(t):_r(t)},o=function(e){return i(e)?e+"group":e};if(e)return pd(t)?o(n):null;if(r&&pd(t)){var a="row"===n?"col":"row";return o(a)}return null},Bh=function(e,t){return function(n,r,i){return E.some(Fh(e,n.element,"col",t[i]))}},Lh=function(e,t){return function(n,r){return E.some(Fh(e,n.element,"row",t[r]))}},$h=function(e,t,n){return Jt(n(e.element,t),!0,e.isLocked)},Vh=function(e,t,n,r,i,o,a){var s=function(e){return R(t,(function(t){return n(e.element,t.element)}))};return B(e,(function(e,t){return Hr(e,(function(e,l){if(s(e)){var u=a(e,t,l)?i(e,n,r):e;return o(u,t,l).each((function(e){Zn(u.element,{scope:E.from(e)})})),u}return e}))}))},jh=function(e,t,n){return Y(e,(function(r,i){return Ph(e,i,t,n)?[]:[Ur(r,t)]}))},zh=function(e,t,n){var r=e[t];return Y(r.cells,(function(r,i){return Ph(e,t,i,n)?[]:[r]}))},Hh=function(e,t,n,r,i){var o=Gr(e).rows,a=Y(t,(function(e){return jh(o,e,r)})),s=B(e,(function(e){return md(e.cells)})),l=Rh(a,s),u=Lh(n,s);return Vh(e,a,r,i,$h,u,l)},Uh=function(e,t,n,r,i,o,a){var s=Gr(e),l=s.cols,u=s.rows,c=u[t[0]],f=Y(t,(function(e){return zh(u,e,i)})),d=B(c.cells,(function(e,t){return md(jh(u,t,i))})),h=oe([],u,!0);L(t,(function(e){h[e]=a.transformRow(u[e],n)}));var p=l.concat(h),m=Mh(c,d),g=Bh(r,d);return Vh(p,f,i,o,a.transformCell,g,m)},Wh=function(e,t,n,r){var i=Gr(e).rows,o=B(t,(function(e){return Ur(i[e.row],e.column)}));return Vh(e,o,n,r,$h,E.none,S)},qh=function(e){var t=function(e,t){var n=R(e,(function(e){return e.column===t.column}));return n?e:e.concat([t])};return H(e,t,[]).sort((function(e,t){return e.column-t.column}))},Gh=fn("col"),Yh=fn("colgroup"),Kh=function(e){return"tr"===nn(e)||Yh(e)},Xh=function(e){var t=yr(e,"colspan",1),n=yr(e,"rowspan",1);return{element:e,colspan:t,rowspan:n}},Jh=function(e,t){void 0===t&&(t=Xh);var n=function(t){return Gh(t.element)?e.col(t):e.cell(t)},r=function(t){return Yh(t.element)?e.colgroup(t):e.row(t)},i=function(e){if(Kh(e))return r({element:e});var i=n(t(e));return o=E.some({item:e,replacement:i}),i},o=E.none(),a=function(e,t){return o.fold((function(){return i(e)}),(function(n){return t(e,n.item)?n.replacement:i(e)}))};return{getOrInit:a}},Zh=function(e){return function(t){var n=[],r=function(e,t){return W(n,(function(n){return t(n.item,e)}))},i=function(r){var i="td"===e?{scope:null}:{},o=t.replace(r,e,i);return n.push({item:r,sub:o}),o},o=function(e,t){return Kh(e)||Gh(e)?e:r(e,t).fold((function(){return i(e)}),(function(n){return t(e,n.item)?n.sub:i(e)}))};return{replaceOrInit:o}}},Qh=function(e){return er(e,"scope").map((function(e){return e.substr(0,3)}))},ep=function(e){var t=function(t){var n=Qh(t);return n.each((function(e){return Xn(t,"scope",e)})),function(){var r=e.cell({element:t,colspan:1,rowspan:1});return vr(r,"width"),vr(t,"width"),n.each((function(e){return Xn(r,"scope",e)})),r}},n=function(e){var t=function(){var t=ir(B(e,Qh));if(0===t.length)return E.none();var n=t[0],r=["row","col"],i=R(t,(function(e){return e!==n&&M(r,e)}));return i?E.none():E.from(n)};return vr(e[0],"width"),t().fold((function(){return tr(e[0],"scope")}),(function(t){return Xn(e[0],"scope",t+"group")})),v(e[0])};return{unmerge:t,merge:n}},tp={modification:Jh,transform:Zh,merging:ep},np=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","table","thead","tfoot","tbody","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],rp=function(e,t){var n=e.property().name(t);return M(["ol","ul"],n)},ip=function(e,t){var n=e.property().name(t);return M(np,n)},op=function(e,t){return M(["br","img","hr","input"],e.property().name(t))},ap=zi(),sp=function(e){return ip(ap,e)},lp=function(e){return rp(ap,e)},up=function(e){return op(ap,e)},cp=function(e){var t=function(e){return"br"===nn(e)},n=function(e){return K(e,(function(e){return t(e)||ln(e)&&0===Li(e).trim().length}))},r=function(e){return"li"===nn(e)||jn(e,lp).isSome()},i=function(e){return yn(e).map((function(e){return!!sp(e)||!!up(e)&&"img"!==nn(e)})).getOr(!1)},o=function(e){return Es(e).bind((function(n){var o=i(n);return mn(n).map((function(i){return!0===o||r(i)||t(n)||sp(i)&&!Ct(e,i)?[]:[vt.fromTag("br")]}))})).getOr([])},a=function(){var t=Y(e,(function(e){var t=wn(e);return n(t)?[]:t.concat(o(e))}));return 0===t.length?[vt.fromTag("br")]:t},s=a();Pi(e[0]),Ai(e[0],s)},fp=function(e){return Cc(e,!0)},dp=function(e){var t=Ir(e);0===t.length&&Mi(e)},hp=function(e,t){return{grid:e,cursor:t}},pp=function(e){return re(e,(function(e){return re(e.cells,(function(e){var t=e.element;return lr(fp(t),t)}))}))},mp=function(e,t,n){var r,i,o=Gr(e).rows;return E.from(null===(i=null===(r=o[t])||void 0===r?void 0:r.cells[n])||void 0===i?void 0:i.element).filter(fp).orThunk((function(){return pp(o)}))},gp=function(e,t,n){var r=mp(e,t,n);return hp(e,r)},vp=function(e){var t=function(e,t){var n=R(e,(function(e){return e.row===t.row}));return n?e:e.concat([t])};return H(e,t,[]).sort((function(e,t){return e.row-t.row}))},bp=function(e,t,n,r){var i=t[0].row,o=vp(t),a=z(o,(function(e,t){var o=Dh(e.grid,i,t.row+e.delta,n,r.getOrInit);return{grid:o,delta:e.delta+1}}),{grid:e,delta:0}).grid;return gp(a,i,t[0].column)},yp=function(e,t,n,r){var i=vp(t),o=i[i.length-1],a=o.row+o.rowspan,s=z(i,(function(e,t){return Dh(e,a,t.row,n,r.getOrInit)}),e);return gp(s,a,t[0].column)},wp=function(e,t,n,r){var i=t.details,o=qh(i),a=o[0].column,s=z(o,(function(e,t){var i=Th(e.grid,a,t.column+e.delta,n,r.getOrInit);return{grid:i,delta:e.delta+1}}),{grid:e,delta:0}).grid;return gp(s,i[0].row,a)},_p=function(e,t,n,r){var i=t.details,o=i[i.length-1],a=o.column+o.colspan,s=qh(i),l=z(s,(function(e,t){return Th(e,a,t.column,n,r.getOrInit)}),e);return gp(l,i[0].row,a)},Cp=function(e,t,n,r){var i=qh(t),o=B(i,(function(e){return e.column})),a=Hh(e,o,!0,n,r.replaceOrInit);return gp(a,t[0].row,t[0].column)},xp=function(e,t,n,r){var i=Wh(e,t,n,r.replaceOrInit);return gp(i,t[0].row,t[0].column)},Sp=function(e,t,n,r){var i=qh(t),o=B(i,(function(e){return e.column})),a=Hh(e,o,!1,n,r.replaceOrInit);return gp(a,t[0].row,t[0].column)},kp=function(e,t,n,r){var i=Wh(e,t,n,r.replaceOrInit);return gp(i,t[0].row,t[0].column)},Dp=function(e,t){return function(n,r,i,o,a){var s=vp(r),l=B(s,(function(e){return e.row})),u=Uh(n,l,e,t,i,o.replaceOrInit,a);return gp(u,r[0].row,r[0].column)}},Op=Dp("thead",!0),Tp=Dp("tbody",!1),Ep=Dp("tfoot",!1),Ip=function(e,t,n,r){var i=qh(t.details),o=Eh(e,B(i,(function(e){return e.column}))),a=o.length>0?o[0].cells.length-1:0;return gp(o,i[0].row,Math.min(i[0].column,a))},Np=function(e,t,n,r){var i=vp(t),o=Ih(e,i[0].row,i[i.length-1].row),a=o.length>0?o.length-1:0;return gp(o,Math.min(t[0].row,a),t[0].column)},Ap=function(e,t,n,r){var i=t.cells;cp(i);var o=th(e,t.bounds,n,r.merge(i));return hp(o,E.from(i[0]))},Pp=function(e,t,n,r){var i=function(e,t){return nh(e,t,n,r.unmerge(t))},o=z(t,i,e);return hp(o,E.from(t[0]))},Mp=function(e,t,n,r){var i=function(e,t){var n=ui.fromTable(e);return $d(n,t,!0)},o=i(t.clipboard,t.generators),a=Wt(t.row,t.column),s=Ch(a,e,o,t.generators,n);return s.fold((function(){return hp(e,E.some(t.element))}),(function(e){return gp(e,t.row,t.column)}))},Rp=function(e,t,n){var r=Lr(e,n.section),i=ui.generate(r);return $d(i,t,!0)},Fp=function(e,t,n,r){var i=Gr(e).rows,o=t.cells[0].column,a=i[t.cells[0].row],s=Rp(t.clipboard,t.generators,a),l=xh(o,e,s,t.generators,n);return gp(l,t.cells[0].row,t.cells[0].column)},Bp=function(e,t,n,r){var i=Gr(e).rows,o=t.cells[t.cells.length-1].column+t.cells[t.cells.length-1].colspan,a=i[t.cells[0].row],s=Rp(t.clipboard,t.generators,a),l=xh(o,e,s,t.generators,n);return gp(l,t.cells[0].row,t.cells[0].column)},Lp=function(e,t,n,r){var i=Gr(e).rows,o=t.cells[0].row,a=i[o],s=Rp(t.clipboard,t.generators,a),l=Sh(o,e,s,t.generators,n);return gp(l,t.cells[0].row,t.cells[0].column)},$p=function(e,t,n,r){var i=Gr(e).rows,o=t.cells[t.cells.length-1].row+t.cells[t.cells.length-1].rowspan,a=i[t.cells[0].row],s=Rp(t.clipboard,t.generators,a),l=Sh(o,e,s,t.generators,n);return gp(l,t.cells[0].row,t.cells[0].column)},Vp=function(e,t){var n=ui.fromTable(e),r=Kd(n,t);return r.bind((function(e){var t=e[e.length-1],r=e[0].column,i=t.column+t.colspan,o=G(B(n.all,(function(e){return j(e.cells,(function(e){return e.column>=r&&e.column<i}))})));return bd(o)})).getOr("")},jp=function(e,t){var n=ui.fromTable(e),r=Kd(n,t);return r.bind(bd).getOr("")},zp=function(e,t){var n=ui.fromTable(e),r=Kd(n,t);return r.bind((function(e){var t=e[e.length-1],r=e[0].row,i=t.row+t.rowspan,o=n.all.slice(r,i);return yd(o)})).getOr("")},Hp=function(e,t,n,r){return Ul(e,t,n,r.sizing)},Up=function(e,t,n,r){return Hl(e,t,n,r.sizing,r.resize)},Wp=function(e,t){return R(t,(function(e){return 0===e.column&&e.isLocked}))},qp=function(e,t){return R(t,(function(t){return t.column+t.colspan>=e.grid.columns&&t.isLocked}))},Gp=function(e,t){var n=jo(e),r=qh(t);return H(r,(function(e,t){var r=n[t.column],i=r.map(Lo).getOr(0);return e+i}),0)},Yp=function(e){return function(t,n){return Kd(t,n).filter((function(n){var r=e?Wp:qp;return!r(t,n)})).map((function(e){return{details:e,pixelDelta:Gp(t,e)}}))}},Kp=function(e,t){return Xd(e,t).map((function(t){return{details:t,pixelDelta:-Gp(e,t)}}))},Xp=function(e){return function(t,n){return qd(t,n).filter((function(n){var r=e?Wp:qp;return!r(t,n.cells)}))}},Jp=tp.transform("th"),Zp=tp.transform("td"),Qp=Ud(bp,Kd,p,p,tp.modification),em=Ud(yp,Kd,p,p,tp.modification),tm=Ud(wp,Yp(!0),Up,p,tp.modification),nm=Ud(_p,Yp(!1),Up,p,tp.modification),rm=Ud(Ip,Kp,Up,dp,tp.modification),im=Ud(Np,Kd,p,dp,tp.modification),om=Ud(Cp,Xd,p,p,Jp),am=Ud(Sp,Xd,p,p,Zp),sm=Ud(Op,Xd,p,p,Jp),lm=Ud(Tp,Xd,p,p,Zp),um=Ud(Ep,Xd,p,p,Zp),cm=Ud(xp,Xd,p,p,Jp),fm=Ud(kp,Xd,p,p,Zp),dm=Ud(Ap,Qd,Hp,p,tp.merging),hm=Ud(Pp,eh,Hp,p,tp.merging),pm=Ud(Mp,Wd,Hp,p,tp.modification),mm=Ud(Fp,Xp(!0),p,p,tp.modification),gm=Ud(Bp,Xp(!1),p,p,tp.modification),vm=Ud(Lp,qd,p,p,tp.modification),bm=Ud($p,qd,p,p,tp.modification),ym=Vp,wm=jp,_m=zp,Cm=function(e,t,n){var r=function(e){return"table"===nn(Ws(e))},i=function(t){return!1===r(e)||Su(t).rows>1},o=function(t){return!1===r(e)||Su(t).columns>1},a=jf(e),s=Vf(e)?p:hd,l=function(t){switch(Bf(e)){case"section":return Td.section();case"sectionCells":return Td.sectionCells();case"cells":return Td.cells();default:return Td.getTableSectionType(t,"section")}},u=function(n,r){return r.cursor.fold((function(){var r=Ir(n);return te(r).filter(Nn).map((function(r){t.clear(n);var i=e.dom.createRng();return i.selectNode(r.dom),e.selection.setRng(i),Xn(r,"data-mce-selected","1"),i}))}),(function(r){var i=dd(r),o=e.dom.createRng();return o.setStart(i.element.dom,i.offset),o.setEnd(i.element.dom,i.offset),e.selection.setRng(o),t.clear(n),E.some(o)}))},c=function(t,n,r,i,o){return function(s,c,f){void 0===f&&(f=!1),Js(s);var d=i(),h=vt.fromDom(e.getDoc()),p=Vs(r,h,a),m={sizing:Wf(e,s),resize:Vf(e)?Xl():Jl(),section:l(s)};return n(s)?t(d,s,c,p,m).bind((function(t){L(t.newRows,(function(t){Jc(e,t.dom)})),L(t.newCells,(function(t){Zc(e,t.dom)}));var n=u(s,t);return Nn(s)&&(Js(s),f||rf(e,s.dom,o)),n.map((function(e){return{rng:e,effect:o}}))})):E.none()}},f=c(im,i,p,n,af),d=c(rm,o,p,n,af),h=c(Qp,S,p,n,af),m=c(em,S,p,n,af),g=c(tm,S,s,n,af),v=c(nm,S,s,n,af),b=c(dm,S,p,n,af),y=c(hm,S,p,n,af),w=c(mm,S,p,n,af),_=c(gm,S,p,n,af),C=c(vm,S,p,n,af),x=c(bm,S,p,n,af),k=c(pm,S,p,n,sf),D=c(cm,S,p,n,af),O=c(fm,S,p,n,af),T=c(om,S,p,n,af),I=c(am,S,p,n,af),N=c(sm,S,p,n,af),A=c(lm,S,p,n,af),P=c(um,S,p,n,af),M=wm,R=ym,F=_m;return{deleteRow:f,deleteColumn:d,insertRowsBefore:h,insertRowsAfter:m,insertColumnsBefore:g,insertColumnsAfter:v,mergeCells:b,unmergeCells:y,pasteColsBefore:w,pasteColsAfter:_,pasteRowsBefore:C,pasteRowsAfter:x,pasteCells:k,makeCellsHeader:D,unmakeCellsHeader:O,makeColumnsHeader:T,unmakeColumnsHeader:I,makeRowsHeader:N,makeRowsBody:A,makeRowsFooter:P,getTableRowType:F,getTableCellType:M,getTableColType:R}},xm={styles:{"border-collapse":"collapse",width:"100%"},attributes:{border:"1"},colGroups:!1},Sm=function(){return vt.fromTag("th")},km=function(){return vt.fromTag("td")},Dm=function(){return vt.fromTag("col")},Om=function(e,t,n,r){for(var i=vt.fromTag("tr"),o=0;o<e;o++){var a=r<t||o<n?Sm():km();o<n&&Xn(a,"scope","row"),r<t&&Xn(a,"scope","col"),Oi(a,vt.fromTag("br")),Oi(i,a)}return i},Tm=function(e){var t=vt.fromTag("colgroup");return F(e,(function(){return Oi(t,Dm())})),t},Em=function(e,t,n,r){return F(e,(function(e){return Om(t,n,r,e)}))},Im=function(e,t,n,r,i,o){void 0===o&&(o=xm);var a=vt.fromTag("table"),s="cells"!==i;hr(a,o.styles),Jn(a,o.attributes),o.colGroups&&Oi(a,Tm(t));var l=Math.min(e,n);if(s&&n>0){var u=vt.fromTag("thead");Oi(a,u);var c="sectionCells"===i?l:0,f=Em(n,t,c,r);Ai(u,f)}var d=vt.fromTag("tbody");Oi(a,d);var h=s?e-l:e,p=s?0:n,m=Em(h,t,p,r);return Ai(d,m),a},Nm=function(e){return e.dom.innerHTML},Am=function(e){var t=vt.fromTag("div"),n=vt.fromDom(e.dom.cloneNode(!0));return Oi(t,n),Nm(t)},Pm=function(e,t){e.selection.select(t.dom,!0),e.selection.collapse(!0)},Mm=function(e,t){Gn(t,"td,th").each(w(Pm,e))},Rm=function(e,t){L($n(t,"tr"),(function(t){Jc(e,t.dom),L($n(t,"th,td"),(function(t){Zc(e,t.dom)}))}))},Fm=function(e){return i(e)&&-1!==e.indexOf("%")},Bm=function(e,t,n,r,i){var o=wf(e),a={styles:o,attributes:yf(e),colGroups:Ff(e)};return e.undoManager.ignore((function(){var o=Im(n,t,i,r,Bf(e),a);Xn(o,"data-mce-id","__mce");var s=Am(o);e.insertContent(s),e.addVisual()})),Gn(Ws(e),'table[data-mce-id="__mce"]').map((function(t){return Pf(e)?Jf(t):Mf(e)?Zf(t):(Af(e)||Fm(o.width))&&Xf(t),Js(t),tr(t,"data-mce-id"),Rm(e,t),Mm(e,t),t.dom})).getOr(null)},Lm=function(e,t,n,r,i){void 0===r&&(r={});var o=function(e){return h(e)&&e>0};if(o(t)&&o(n)){var a=r.headerRows||0,s=r.headerColumns||0;return Bm(e,n,t,s,a)}return console.error(i),null},$m=function(e){return function(){return e().fold((function(){return[]}),(function(e){return B(e,(function(e){return e.dom}))}))}},Vm=function(e){return function(t){var n=t.length>0?E.some(Hs(t)):E.none();e(n)}},jm=function(e){return function(t,n,r){void 0===r&&(r={});var i=Lm(e,n,t,r,"Invalid values for insertTable - rows and columns values are required to insert a table.");return e.undoManager.add(),i}},zm=function(e,t,n,r){return{insertTable:jm(e),setClipboardRows:Vm(t.setRows),getClipboardRows:$m(t.getRows),setClipboardCols:Vm(t.setColumns),getClipboardCols:$m(t.getColumns),resizeHandler:n,selectionTargets:r}},Hm=function(e,t,n){var r=yr(e,t,1);1===n||r<=1?tr(e,t):Xn(e,t,Math.min(n,r))},Um=function(e,t,n){if(ui.hasColumns(e)){var r=j(ui.justColumns(e),(function(e){return e.column>=t&&e.column<n})),i=B(r,(function(e){var r=_o(e.element);return Hm(r,"span",n-t),r})),o=vt.fromTag("colgroup");return Ai(o,i),[o]}return[]},Wm=function(e,t,n){return B(e.all,(function(e){var r=j(e.cells,(function(e){return e.column>=t&&e.column<n})),i=B(r,(function(e){var r=_o(e.element);return Hm(r,"colspan",n-t),r})),o=vt.fromTag("tr");return Ai(o,i),o}))},qm=function(e,t){var n=ui.fromTable(e),r=Xd(n,t);return r.map((function(e){var t=e[e.length-1],r=e[0].column,i=t.column+t.colspan,o=Um(n,r,i),a=Wm(n,r,i);return oe(oe([],o,!0),a,!0)}))},Gm=function(e,t,n){var r=ui.fromTable(e),i=Kd(r,t);return i.bind((function(e){var t=$d(r,n,!1),i=Gr(t).rows,o=i.slice(e[0].row,e[e.length-1].row+e[e.length-1].rowspan),a=Y(o,(function(e){var t=j(e.cells,(function(e){return!e.isLocked}));return t.length>0?[ie(ie({},e),{cells:t})]:[]})),s=jd(a);return lr(s.length>0,s)})).map((function(e){return Pd(e)}))},Ym=tinymce.util.Tools.resolve("tinymce.util.Tools"),Km=function(e,t,n){var r,i=e.select("td,th",t),o=function(t,r){for(var i=0;i<r.length;i++){var o=e.getStyle(r[i],n);if("undefined"===typeof t&&(t=o),t!==o)return""}return t};return o(r,i)},Xm=function(e,t,n){n&&e.formatter.apply("align"+n,{},t)},Jm=function(e,t,n){n&&e.formatter.apply("valign"+n,{},t)},Zm=function(e,t){Ym.each("left center right".split(" "),(function(n){e.formatter.remove("align"+n,{},t)}))},Qm=function(e,t){Ym.each("top middle bottom".split(" "),(function(n){e.formatter.remove("valign"+n,{},t)}))},eg=[{text:"None",value:""},{text:"Top",value:"top"},{text:"Middle",value:"middle"},{text:"Bottom",value:"bottom"}],tg=function(e){return{value:e}},ng=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,rg=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,ig=function(e){return ng.test(e)||rg.test(e)},og=function(e){return we(e,"#").toUpperCase()},ag=function(e){return ig(e)?E.some({value:og(e)}):E.none()},sg=function(e){var t=e.toString(16);return(1===t.length?"0"+t:t).toUpperCase()},lg=function(e){var t=sg(e.red)+sg(e.green)+sg(e.blue);return tg(t)},ug=/^rgb\((\d+),\s*(\d+),\s*(\d+)\)/,cg=/^rgba\((\d+),\s*(\d+),\s*(\d+),\s*(\d?(?:\.\d+)?)\)/,fg=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},dg=function(e,t,n,r){var i=parseInt(e,10),o=parseInt(t,10),a=parseInt(n,10),s=parseFloat(r);return fg(i,o,a,s)},hg=function(e){if("transparent"===e)return E.some(fg(0,0,0,0));var t=ug.exec(e);if(null!==t)return E.some(dg(t[1],t[2],t[3],"1"));var n=cg.exec(e);return null!==n?E.some(dg(n[1],n[2],n[3],n[4])):E.none()},pg=function(e){return ag(e).orThunk((function(){return hg(e).map(lg)})).getOrThunk((function(){var t=document.createElement("canvas");t.height=1,t.width=1;var n=t.getContext("2d");n.clearRect(0,0,t.width,t.height),n.fillStyle="#FFFFFF",n.fillStyle=e,n.fillRect(0,0,1,1);var r=n.getImageData(0,0,1,1).data,i=r[0],o=r[1],a=r[2],s=r[3];return lg(fg(i,o,a,s))}))},mg=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},gg=function(e){var t=mg(E.none()),n=function(){return t.get().each(e)},r=function(){n(),t.set(E.none())},i=function(){return t.get().isSome()},o=function(){return t.get()},a=function(e){n(),t.set(E.some(e))};return{clear:r,isSet:i,get:o,set:a}},vg=function(){return gg((function(e){return e.unbind()}))},bg=function(){var e=gg(p),t=function(t){return e.get().each(t)};return ie(ie({},e),{on:t})},yg=function(e,t,n,r){return function(i){var o=vg(),a=Oe(r),s=function(){var s=xl(t),l=function(t){return e.formatter.match(n,{value:r},t.dom,a)};a?(i.setActive(!R(s,l)),o.set(e.formatter.formatChanged(n,(function(e){return i.setActive(!e)}),!0))):(i.setActive(K(s,l)),o.set(e.formatter.formatChanged(n,i.setActive,!1,{value:r})))};return e.initialized?s():e.on("init",s),o.clear}},wg=function(e){return Vt(e,"menu")},_g=function(e){return B(e,(function(e){var t=e.text||e.title;return wg(e)?{text:t,items:_g(e.menu)}:{text:t,value:e.value}}))},Cg=function(e,t,n,r,i){return B(n,(function(n){var o=n.text||n.title;return wg(n)?{type:"nestedmenuitem",text:o,getSubmenuItems:function(){return Cg(e,t,n.menu,r,i)}}:{text:o,type:"togglemenuitem",onAction:function(){return i(n.value)},onSetup:yg(e,t,r,n.value)}}))},xg=function(e,t){return function(n){var r;e.execCommand("mceTableApplyCellStyle",!1,(r={},r[t]=n,r))}},Sg=function(e){return Y(e,(function(e){return wg(e)?[ie(ie({},e),{menu:Sg(e.menu)})]:De(e.value)?[e]:[]}))},kg=function(e,t,n,r,i){return function(o){return o(Cg(e,t,n,r,i))}},Dg=function(e,t,n){var r=B(t,(function(e){return{text:e.title,value:"#"+pg(e.value).value,type:"choiceitem"}}));return[{type:"fancymenuitem",fancytype:"colorswatch",initData:{colors:r.length>0?r:void 0,allowCustomColors:!1},onAction:function(t){var r,i="remove"===t.value?"":t.value;e.execCommand("mceTableApplyCellStyle",!1,(r={},r[n]=i,r))}}]},Og=function(e){return function(){var t=e.queryCommandValue("mceTableRowType"),n="header"===t?"body":"header";e.execCommand("mceTableRowType",!1,{type:n})}},Tg=function(e){return function(){var t=e.queryCommandValue("mceTableColType"),n="th"===t?"td":"th";e.execCommand("mceTableColType",!1,{type:n})}},Eg=function(e){var t=_g(Ef(e));return t.length>0?E.some({name:"class",type:"listbox",label:"Class",items:t}):E.none()},Ig=[{name:"width",type:"input",label:"Width"},{name:"height",type:"input",label:"Height"},{name:"celltype",type:"listbox",label:"Cell type",items:[{text:"Cell",value:"td"},{text:"Header cell",value:"th"}]},{name:"scope",type:"listbox",label:"Scope",items:[{text:"None",value:""},{text:"Row",value:"row"},{text:"Column",value:"col"},{text:"Row group",value:"rowgroup"},{text:"Column group",value:"colgroup"}]},{name:"halign",type:"listbox",label:"Horizontal align",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{name:"valign",type:"listbox",label:"Vertical align",items:eg}],Ng=function(e){return Ig.concat(Eg(e).toArray())},Ag=function(e,t){var n=[{text:"Select...",value:""}],r=[{name:"borderstyle",type:"listbox",label:"Border style",items:n.concat(_g(bf(e)))},{name:"bordercolor",type:"colorinput",label:"Border color"},{name:"backgroundcolor",type:"colorinput",label:"Background color"}],i={name:"borderwidth",type:"input",label:"Border width"},o="cell"===t?[i].concat(r):r;return{title:"Advanced",name:"advanced",items:o}},Pg=function(e){return function(t,n){var r=t.dom,i=function(t,i){e&&!i||r.setAttrib(n,t,i)},o=function(t,i){e&&!i||r.setStyle(n,t,i)},a=function(r,i){e&&!i||(""===i?t.formatter.remove(r,{value:null},n,!0):t.formatter.apply(r,{value:i},n))};return{setAttrib:i,setStyle:o,setFormat:a}}},Mg={normal:Pg(!1),ifTruthy:Pg(!0)},Rg=function(e){return function(t){return Ce(t,"rgb")?e.toHex(t):t}},Fg=function(e,t){var n=vt.fromDom(t);return{borderwidth:gr(n,"border-width").getOr(""),borderstyle:gr(n,"border-style").getOr(""),bordercolor:gr(n,"border-color").map(Rg(e)).getOr(""),backgroundcolor:gr(n,"background-color").map(Rg(e)).getOr("")}},Bg=function(e){var t=e[0],n=e.slice(1);return L(n,(function(e){L(Ot(t),(function(n){Et(e,(function(e,r){var i=t[n];""!==i&&n===r&&i!==e&&(t[n]="")}))}))})),t},Lg=function(e,t,n,r){return W(e,(function(e){return!u(n.formatter.matchNode(r,t+e))})).getOr("")},$g=w(Lg,["left","center","right"],"align"),Vg=w(Lg,["top","middle","bottom"],"valign"),jg=function(e,t){var n=wf(e),r=yf(e),i=function(e){return{borderstyle:Lt(n,"border-style").getOr(""),bordercolor:Rg(e)(Lt(n,"border-color").getOr("")),backgroundcolor:Rg(e)(Lt(n,"background-color").getOr(""))}},o={height:"",width:"100%",cellspacing:"",cellpadding:"",caption:!1,class:"",align:"",border:""},a=function(){var t=n["border-width"];return Tf(e)&&t?{border:t}:Lt(r,"border").fold((function(){return{}}),(function(e){return{border:e}}))},s=t?i(e.dom):{},l=function(){var e=Lt(n,"border-spacing").or(Lt(r,"cellspacing")).fold((function(){return{}}),(function(e){return{cellspacing:e}})),t=Lt(n,"border-padding").or(Lt(r,"cellpadding")).fold((function(){return{}}),(function(e){return{cellpadding:e}}));return ie(ie({},e),t)},u=ie(ie(ie(ie(ie(ie({},o),n),r),s),a()),l());return u},zg=function(e){return Ar(vt.fromDom(e)).map((function(t){var n={selection:Hs(e.cells)};return _m(t,n)})).getOr("")},Hg=function(e,t,n){var r=function(t,n){var r=gr(vt.fromDom(n),"border-width");return Tf(e)&&r.isSome()?r.getOr(""):t.getAttrib(n,"border")||Km(e.dom,n,"border-width")||Km(e.dom,n,"border")},i=e.dom,o=Tf(e)?i.getStyle(t,"border-spacing")||i.getAttrib(t,"cellspacing"):i.getAttrib(t,"cellspacing")||i.getStyle(t,"border-spacing"),a=Tf(e)?Km(i,t,"padding")||i.getAttrib(t,"cellpadding"):i.getAttrib(t,"cellpadding")||Km(i,t,"padding");return ie({width:i.getStyle(t,"width")||i.getAttrib(t,"width"),height:i.getStyle(t,"height")||i.getAttrib(t,"height"),cellspacing:o,cellpadding:a,border:r(i,t),caption:!!i.select("caption",t)[0],class:i.getAttrib(t,"class",""),align:$g(e,t)},n?Fg(i,t):{})},Ug=function(e,t,n){var r=e.dom;return ie({height:r.getStyle(t,"height")||r.getAttrib(t,"height"),class:r.getAttrib(t,"class",""),type:zg(t),align:$g(e,t)},n?Fg(r,t):{})},Wg=function(e,t,n,r){var i=e.dom,o=r.getOr(t),a=function(e,t){return i.getStyle(e,t)||i.getAttrib(e,t)};return ie({width:a(o,"width"),height:a(t,"height"),scope:i.getAttrib(t,"scope"),celltype:Us(t),class:i.getAttrib(t,"class",""),halign:$g(e,t),valign:Vg(e,t)},n?Fg(i,t):{})},qg=function(e,t){var n=ui.fromTable(e),r=ui.justCells(n),i=j(r,(function(e){return R(t,(function(t){return Ct(e.element,t)}))}));return B(i,(function(e){return{element:e.element.dom,column:ui.getColumnAt(n,e.column).map((function(e){return e.element.dom}))}}))},Gg=function(e,t,n){e.setAttrib("scope",n.scope),e.setAttrib("class",n.class),e.setStyle("height",Xs(n.height)),t.setStyle("width",Xs(n.width))},Yg=function(e,t){e.setFormat("tablecellbackgroundcolor",t.backgroundcolor),e.setFormat("tablecellbordercolor",t.bordercolor),e.setFormat("tablecellborderstyle",t.borderstyle),e.setFormat("tablecellborderwidth",Xs(t.borderwidth))},Kg=function(e,t,n){var r=1===t.length;L(t,(function(t){var i=t.element,o=r?Mg.normal(e,i):Mg.ifTruthy(e,i),a=t.column.map((function(t){return r?Mg.normal(e,t):Mg.ifTruthy(e,t)})).getOr(o);Gg(o,a,n),xf(e)&&Yg(o,n),r&&(Zm(e,i),Qm(e,i)),n.halign&&Xm(e,i,n.halign),n.valign&&Jm(e,i,n.valign)}))},Xg=function(e,t){e.execCommand("mceTableCellType",!1,{type:t.celltype,no_events:!0})},Jg=function(e,t,n,r){var i=Mt(r,(function(e,t){return n[t]!==e}));Bt(i)>0&&t.length>=1&&Ar(t[0]).each((function(n){var o=qg(n,t),a=Bt(Mt(i,(function(e,t){return"scope"!==t&&"celltype"!==t})))>0,s=$t(i,"celltype");(a||$t(i,"scope"))&&Kg(e,o,r),s&&Xg(e,r),rf(e,n.dom,{structure:s,style:a})}))},Zg=function(e,t,n,r){var i=r.getData();r.close(),e.undoManager.transact((function(){Jg(e,t,n,i),e.focus()}))},Qg=function(e,t){var n=Ar(t[0]).map((function(n){return B(qg(n,t),(function(t){return Wg(e,t.element,xf(e),t.column)}))}));return Bg(n.getOrDie())},ev=function(e,t){var n=xl(t);if(0!==n.length){var r=Qg(e,n),i={type:"tabpanel",tabs:[{title:"General",name:"general",items:Ng(e)},Ag(e,"cell")]},o={type:"panel",items:[{type:"grid",columns:2,items:Ng(e)}]};e.windowManager.open({title:"Cell Properties",size:"normal",body:xf(e)?i:o,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:r,onSubmit:w(Zg,e,n,r)})}},tv=function(e){var t=_g(If(e));return t.length>0?E.some({name:"class",type:"listbox",label:"Class",items:t}):E.none()},nv=[{type:"listbox",name:"type",label:"Row type",items:[{text:"Header",value:"header"},{text:"Body",value:"body"},{text:"Footer",value:"footer"}]},{type:"listbox",name:"align",label:"Alignment",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{label:"Height",name:"height",type:"input"}],rv=function(e){return nv.concat(tv(e).toArray())},iv=function(e,t){e.setAttrib("class",t.class),e.setStyle("height",Xs(t.height))},ov=function(e,t){e.setStyle("background-color",t.backgroundcolor),e.setStyle("border-color",t.bordercolor),e.setStyle("border-style",t.borderstyle)},av=function(e,t,n,r){var i=1===t.length;L(t,(function(t){var o=i?Mg.normal(e,t):Mg.ifTruthy(e,t);iv(o,n),Sf(e)&&ov(o,n),n.align!==r.align&&(Zm(e,t),Xm(e,t,n.align))}))},sv=function(e,t){e.execCommand("mceTableRowType",!1,{type:t.type,no_events:!0})},lv=function(e,t,n,r){var i=Mt(r,(function(e,t){return n[t]!==e}));if(Bt(i)>0){var o=$t(i,"type"),a=!o||Bt(i)>1;a&&av(e,t,r,n),o&&sv(e,r),Ar(vt.fromDom(t[0])).each((function(t){return rf(e,t.dom,{structure:o,style:a})}))}},uv=function(e,t,n,r){var i=r.getData();r.close(),e.undoManager.transact((function(){lv(e,t,n,i),e.focus()}))},cv=function(e){var t=Sl(tl(e),pl.selected);if(0!==t.length){var n=B(t,(function(t){return Ug(e,t.dom,Sf(e))})),r=Bg(n),i={type:"tabpanel",tabs:[{title:"General",name:"general",items:rv(e)},Ag(e,"row")]},o={type:"panel",items:[{type:"grid",columns:2,items:rv(e)}]};e.windowManager.open({title:"Row Properties",size:"normal",body:Sf(e)?i:o,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:r,onSubmit:w(uv,e,B(t,(function(e){return e.dom})),r)})}},fv=function(e,t,n){var r=n?[{type:"input",name:"cols",label:"Cols",inputMode:"numeric"},{type:"input",name:"rows",label:"Rows",inputMode:"numeric"}]:[],i=[{type:"input",name:"width",label:"Width"},{type:"input",name:"height",label:"Height"}],o=Df(e)?[{type:"input",name:"cellspacing",label:"Cell spacing",inputMode:"numeric"},{type:"input",name:"cellpadding",label:"Cell padding",inputMode:"numeric"},{type:"input",name:"border",label:"Border width"},{type:"label",label:"Caption",items:[{type:"checkbox",name:"caption",label:"Show caption"}]}]:[],a=[{type:"listbox",name:"align",label:"Alignment",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]}],s=t.length>0?[{type:"listbox",name:"class",label:"Class",items:t}]:[];return r.concat(i).concat(o).concat(a).concat(s)},dv=function(e,t,n,r){if("TD"===t.tagName||"TH"===t.tagName)i(n)?e.setStyle(t,n,r):e.setStyle(t,n);else if(t.children)for(var o=0;o<t.children.length;o++)dv(e,t.children[o],n,r)},hv=function(e,t,n){var r=e.dom,i={},o={};if(i.class=n.class,o.height=Xs(n.height),r.getAttrib(t,"width")&&!Tf(e)?i.width=Ks(n.width):o.width=Xs(n.width),Tf(e)?(o["border-width"]=Xs(n.border),o["border-spacing"]=Xs(n.cellspacing)):(i.border=n.border,i.cellpadding=n.cellpadding,i.cellspacing=n.cellspacing),Tf(e)&&t.children)for(var a=0;a<t.children.length;a++)dv(r,t.children[a],{"border-width":Xs(n.border),padding:Xs(n.cellpadding)}),kf(e)&&dv(r,t.children[a],{"border-color":n.bordercolor});kf(e)&&(o["background-color"]=n.backgroundcolor,o["border-color"]=n.bordercolor,o["border-style"]=n.borderstyle),i.style=r.serializeStyle(ie(ie({},wf(e)),o)),r.setAttribs(t,ie(ie({},yf(e)),i))},pv=function(e,t,n,r){var i=e.dom,o=r.getData(),a=Mt(o,(function(e,t){return n[t]!==e}));r.close(),""===o.class&&delete o.class,e.undoManager.transact((function(){if(!t){var n=parseInt(o.cols,10)||1,r=parseInt(o.rows,10)||1;t=Bm(e,n,r,0,0)}if(Bt(a)>0){hv(e,t,o);var s=i.select("caption",t)[0];(s&&!o.caption||!s&&o.caption)&&e.execCommand("mceTableToggleCaption"),""===o.align?Zm(e,t):Xm(e,t,o.align)}if(e.focus(),e.addVisual(),Bt(a)>0){var l=$t(a,"caption"),u=!l||Bt(a)>1;rf(e,t,{structure:l,style:u})}}))},mv=function(e,t){var n,r=e.dom,i=jg(e,kf(e));!1===t?(n=r.getParent(e.selection.getStart(),"table",e.getBody()),n?i=Hg(e,n,kf(e)):kf(e)&&(i.borderstyle="",i.bordercolor="",i.backgroundcolor="")):(i.cols="1",i.rows="1",kf(e)&&(i.borderstyle="",i.bordercolor="",i.backgroundcolor=""));var o=_g(Nf(e));o.length>0&&i.class&&(i.class=i.class.replace(/\s*mce\-item\-table\s*/g,""));var a={type:"grid",columns:2,items:fv(e,o,t)},s=function(){return{type:"panel",items:[a]}},l=function(){return{type:"tabpanel",tabs:[{title:"General",name:"general",items:[a]},Ag(e,"table")]}},u=kf(e)?l():s();e.windowManager.open({title:"Table Properties",size:"normal",body:u,onSubmit:w(pv,e,n,i),buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:i})},gv=function(e){return _l(tl(e),Ys(e))},vv=function(e){return Cl(tl(e),Ys(e))},bv=function(e,t,n,r,a){var s=Ys(e),l=function(){return gv(e).each((function(t){Ar(t,s).filter(_(s)).each((function(t){var n=vt.fromText("");if(ki(t,n),Mi(t),e.dom.isEmpty(e.getBody()))e.setContent(""),e.selection.setCursorLocation();else{var r=e.dom.createRng();r.setStart(n.dom,0),r.setEnd(n.dom,0),e.selection.setRng(r),e.nodeChanged()}}))}))},u=function(t){return gv(e).each((function(n){var r=Mf(e)||Pf(e)||Af(e);r||Ar(n,s).each((function(n){"relative"!==t||_u(n)?"fixed"!==t||Cu(n)?"responsive"!==t||xu(n)||Zf(n):Jf(n):Xf(n),Js(n),rf(e,n.dom,af)}))}))},c=function(e){return Ar(e,s)},f=function(t){return vv(e).bind((function(e){return c(e).map((function(n){return t(n,e)}))}))},d=function(t,n){f((function(t){e.formatter.toggle("tableclass",{value:n},t.dom),rf(e,t.dom,of)}))},h=function(t,n){f((function(t){var i=xl(r),o=K(i,(function(t){return e.formatter.match("tablecellclass",{value:n},t.dom)})),a=o?e.formatter.remove:e.formatter.apply;L(i,(function(e){return a("tablecellclass",{value:n},e.dom)})),rf(e,t.dom,of)}))},m=function(){gv(e).each((function(t){Ar(t,s).each((function(n){qn(n,"caption").fold((function(){var t=vt.fromTag("caption");Oi(t,vt.fromText("Caption")),Ti(n,t,0),e.selection.setCursorLocation(t.dom,0)}),(function(r){fn("caption")(t)&&_t("td",n).each((function(t){return e.selection.setCursorLocation(t.dom,0)})),Mi(r)})),rf(e,n.dom,af)}))}))},g=function(t){e.focus()},v=function(e,t){return void 0===t&&(t=!1),f((function(n,i){var o=gl(r,n,i);e(n,o,t).each(g)}))},b=function(){return f((function(t,n){var i=gl(r,t,n),o=Vs(p,vt.fromDom(e.getDoc()),E.none());return Gm(t,i,o)}))},y=function(){return f((function(e,t){var n=gl(r,e,t);return qm(e,n)}))},C=function(t,n){return n().each((function(n){var i=B(n,(function(e){return _o(e)}));f((function(n,o){var a=js(vt.fromDom(e.getDoc())),s=bl(r,o,i,a);t(n,s).each(g)}))}))},x=function(e){return function(t,n){return Lt(n,"type").each((function(t){v(e(t),n.no_events)}))}};Et({mceTableSplitCells:function(){return v(t.unmergeCells)},mceTableMergeCells:function(){return v(t.mergeCells)},mceTableInsertRowBefore:function(){return v(t.insertRowsBefore)},mceTableInsertRowAfter:function(){return v(t.insertRowsAfter)},mceTableInsertColBefore:function(){return v(t.insertColumnsBefore)},mceTableInsertColAfter:function(){return v(t.insertColumnsAfter)},mceTableDeleteCol:function(){return v(t.deleteColumn)},mceTableDeleteRow:function(){return v(t.deleteRow)},mceTableCutCol:function(){return y().each((function(e){a.setColumns(e),v(t.deleteColumn)}))},mceTableCutRow:function(){return b().each((function(e){a.setRows(e),v(t.deleteRow)}))},mceTableCopyCol:function(){return y().each((function(e){return a.setColumns(e)}))},mceTableCopyRow:function(){return b().each((function(e){return a.setRows(e)}))},mceTablePasteColBefore:function(){return C(t.pasteColsBefore,a.getColumns)},mceTablePasteColAfter:function(){return C(t.pasteColsAfter,a.getColumns)},mceTablePasteRowBefore:function(){return C(t.pasteRowsBefore,a.getRows)},mceTablePasteRowAfter:function(){return C(t.pasteRowsAfter,a.getRows)},mceTableDelete:l,mceTableCellToggleClass:h,mceTableToggleClass:d,mceTableToggleCaption:m,mceTableSizingMode:function(e,t){return u(t)},mceTableCellType:x((function(e){return"th"===e?t.makeCellsHeader:t.unmakeCellsHeader})),mceTableColType:x((function(e){return"th"===e?t.makeColumnsHeader:t.unmakeColumnsHeader})),mceTableRowType:x((function(e){switch(e){case"header":return t.makeRowsHeader;case"footer":return t.makeRowsFooter;default:return t.makeRowsBody}}))},(function(t,n){return e.addCommand(n,t)})),Et({mceTableProps:w(mv,e,!1),mceTableRowProps:w(cv,e),mceTableCellProps:w(ev,e,r)},(function(t,n){return e.addCommand(n,(function(){return t()}))})),e.addCommand("mceInsertTable",(function(t,n){o(n)&&Ot(n).length>0?Lm(e,n.rows,n.columns,n.options,"Invalid values for mceInsertTable - rows and columns values are required to insert a table."):mv(e,!0)})),e.addCommand("mceTableApplyCellStyle",(function(t,n){var a=function(e){return"tablecell"+e.toLowerCase().replace("-","")};if(o(n)){var s=xl(r);if(0!==s.length){var l=Mt(n,(function(t,n){return e.formatter.has(a(n))&&i(t)}));jt(l)||(Et(l,(function(t,n){L(s,(function(r){Mg.normal(e,r.dom).setFormat(a(n),t)}))})),c(s[0]).each((function(t){return rf(e,t.dom,of)})))}}}))},yv=function(e,t,n){var r=Ys(e),i=function(t){return Cl(tl(e)).bind((function(e){return Ar(e,r).map((function(r){var i=gl(n,r,e);return t(r,i)}))})).getOr("")};Et({mceTableRowType:function(){return i(t.getTableRowType)},mceTableCellType:function(){return i(t.getTableCellType)},mceTableColType:function(){return i(t.getTableColType)}},(function(t,n){return e.addQueryValueHandler(n,t)}))},wv=function(){var e=bg(),t=bg();return{getRows:e.get,setRows:function(n){n.fold(e.clear,e.set),t.clear()},clearRows:e.clear,getColumns:t.get,setColumns:function(n){n.fold(t.clear,t.set),e.clear()},clearColumns:t.clear}},_v={remove_similar:!0,inherit:!1},Cv=ie({selector:"td,th"},_v),xv={tablecellbackgroundcolor:ie({styles:{backgroundColor:"%value"}},Cv),tablecellverticalalign:ie({styles:{"vertical-align":"%value"}},Cv),tablecellbordercolor:ie({styles:{borderColor:"%value"}},Cv),tablecellclass:ie({classes:["%value"]},Cv),tableclass:ie({selector:"table",classes:["%value"]},_v),tablecellborderstyle:ie({styles:{borderStyle:"%value"}},Cv),tablecellborderwidth:ie({styles:{borderWidth:"%value"}},Cv)},Sv=function(e){e.formatter.register(xv)},kv=co.generate([{none:["current"]},{first:["current"]},{middle:["current","target"]},{last:["current"]}]),Dv=function(e){return void 0===e&&(e=void 0),kv.none(e)},Ov=ie(ie({},kv),{none:Dv}),Tv=function(e,t,n,r,i){void 0===i&&(i=S);var o=1===r;if(!o&&n<=0)return Ov.first(e[0]);if(o&&n>=e.length-1)return Ov.last(e[e.length-1]);var a=n+r,s=e[a];return i(s)?Ov.middle(t,s):Tv(e,t,a,r,i)},Ev=function(e,t){return Ar(e,t).bind((function(t){var n=Ir(t),r=q(n,(function(t){return Ct(e,t)}));return r.map((function(e){return{index:e,all:n}}))}))},Iv=function(e,t,n){var r=Ev(e,n);return r.fold((function(){return Ov.none(e)}),(function(n){return Tv(n.all,e,n.index,1,t)}))},Nv=function(e,t,n){var r=Ev(e,n);return r.fold((function(){return Ov.none()}),(function(n){return Tv(n.all,e,n.index,-1,t)}))},Av=function(e,t,n,r){return{start:e,soffset:t,finish:n,foffset:r}},Pv={create:Av},Mv=co.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),Rv=function(e,t,n,r){return e.fold(t,n,r)},Fv=function(e){return e.fold(b,b,b)},Bv=Mv.before,Lv=Mv.on,$v=Mv.after,Vv={before:Bv,on:Lv,after:$v,cata:Rv,getStart:Fv},jv=co.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),zv=function(e){return jv.exact(e.start,e.soffset,e.finish,e.foffset)},Hv=function(e){return e.match({domRange:function(e){return vt.fromDom(e.startContainer)},relative:function(e,t){return Vv.getStart(e)},exact:function(e,t,n,r){return e}})},Uv=jv.domRange,Wv=jv.relative,qv=jv.exact,Gv=function(e){var t=Hv(e);return pn(t)},Yv=Pv.create,Kv={domRange:Uv,relative:Wv,exact:qv,exactFromRange:zv,getWin:Gv,range:Yv},Xv=function(e,t){var n=e.document.createRange();return n.selectNode(t.dom),n},Jv=function(e,t){var n=e.document.createRange();return Zv(n,t),n},Zv=function(e,t){return e.selectNodeContents(t.dom)},Qv=function(e,t){t.fold((function(t){e.setStartBefore(t.dom)}),(function(t,n){e.setStart(t.dom,n)}),(function(t){e.setStartAfter(t.dom)}))},eb=function(e,t){t.fold((function(t){e.setEndBefore(t.dom)}),(function(t,n){e.setEnd(t.dom,n)}),(function(t){e.setEndAfter(t.dom)}))},tb=function(e,t,n){var r=e.document.createRange();return Qv(r,t),eb(r,n),r},nb=function(e,t,n,r,i){var o=e.document.createRange();return o.setStart(t.dom,n),o.setEnd(r.dom,i),o},rb=function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}},ib=function(e){var t=e.getClientRects(),n=t.length>0?t[0]:e.getBoundingClientRect();return n.width>0||n.height>0?E.some(n).map(rb):E.none()},ob=co.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),ab=function(e,t,n){return t(vt.fromDom(n.startContainer),n.startOffset,vt.fromDom(n.endContainer),n.endOffset)},sb=function(e,t){return t.match({domRange:function(e){return{ltr:v(e),rtl:E.none}},relative:function(t,n){return{ltr:ae((function(){return tb(e,t,n)})),rtl:ae((function(){return E.some(tb(e,n,t))}))}},exact:function(t,n,r,i){return{ltr:ae((function(){return nb(e,t,n,r,i)})),rtl:ae((function(){return E.some(nb(e,r,i,t,n))}))}}})},lb=function(e,t){var n=t.ltr();if(n.collapsed){var r=t.rtl().filter((function(e){return!1===e.collapsed}));return r.map((function(e){return ob.rtl(vt.fromDom(e.endContainer),e.endOffset,vt.fromDom(e.startContainer),e.startOffset)})).getOrThunk((function(){return ab(e,ob.ltr,n)}))}return ab(e,ob.ltr,n)},ub=function(e,t){var n=sb(e,t);return lb(e,n)},cb=function(e,t){var n=ub(e,t);return n.match({ltr:function(t,n,r,i){var o=e.document.createRange();return o.setStart(t.dom,n),o.setEnd(r.dom,i),o},rtl:function(t,n,r,i){var o=e.document.createRange();return o.setStart(r.dom,i),o.setEnd(t.dom,n),o}})};ob.ltr,ob.rtl;var fb=function(e,t,n,r,i){if(0===i)return 0;if(t===r)return i-1;for(var o=r,a=1;a<i;a++){var s=e(a),l=Math.abs(t-s.left);if(n<=s.bottom){if(n<s.top||l>o)return a-1;o=l}}return 0},db=function(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom},hb=function(e,t,n,r,i){var o=function(n){var r=e.dom.createRange();return r.setStart(t.dom,n),r.collapse(!0),r},a=function(e){var t=o(e);return t.getBoundingClientRect()},s=Li(t).length,l=fb(a,n,r,i.right,s);return o(l)},pb=function(e,t,n,r){var i=e.dom.createRange();i.selectNode(t.dom);var o=i.getClientRects(),a=re(o,(function(e){return db(e,n,r)?E.some(e):E.none()}));return a.map((function(i){return hb(e,t,n,r,i)}))},mb=function(e,t,n,r){var i=e.dom.createRange(),o=wn(t);return re(o,(function(t){return i.selectNode(t.dom),db(i.getBoundingClientRect(),n,r)?gb(e,t,n,r):E.none()}))},gb=function(e,t,n,r){return ln(t)?pb(e,t,n,r):mb(e,t,n,r)},vb=function(e,t,n,r){var i=e.dom.createRange();i.selectNode(t.dom);var o=i.getBoundingClientRect(),a=Math.max(o.left,Math.min(o.right,n)),s=Math.max(o.top,Math.min(o.bottom,r));return gb(e,t,a,s)},bb=!0,yb=!1,wb=function(e,t){return t-e.left<e.right-t?bb:yb},_b=function(e,t,n){var r=e.dom.createRange();return r.selectNode(t.dom),r.collapse(n),r},Cb=function(e,t,n){var r=e.dom.createRange();r.selectNode(t.dom);var i=r.getBoundingClientRect(),o=wb(i,n),a=o===bb?Ts:Es;return a(t).map((function(t){return _b(e,t,o)}))},xb=function(e,t,n){var r=t.dom.getBoundingClientRect(),i=wb(r,n);return E.some(_b(e,t,i))},Sb=function(e,t,n){var r=0===wn(t).length?xb:Cb;return r(e,t,n)},kb=function(e,t,n){var r,i;return E.from(null===(i=(r=e.dom).caretPositionFromPoint)||void 0===i?void 0:i.call(r,t,n)).bind((function(t){if(null===t.offsetNode)return E.none();var n=e.dom.createRange();return n.setStart(t.offsetNode,t.offset),n.collapse(),E.some(n)}))},Db=function(e,t,n){var r,i;return E.from(null===(i=(r=e.dom).caretRangeFromPoint)||void 0===i?void 0:i.call(r,t,n))},Ob=function(e,t,n,r){var i=e.dom.createRange();i.selectNode(t.dom);var o=i.getBoundingClientRect(),a=Math.max(o.left,Math.min(o.right,n)),s=Math.max(o.top,Math.min(o.bottom,r));return vb(e,t,a,s)},Tb=function(e,t,n){return vt.fromPoint(e,t,n).bind((function(r){var i=function(){return Sb(e,r,t)};return 0===wn(r).length?i():Ob(e,r,t,n).orThunk(i)}))},Eb=function(){return document.caretPositionFromPoint?kb:document.caretRangeFromPoint?Db:Tb}(),Ib=function(e,t,n){var r=vt.fromDom(e.document);return Eb(r,t,n).map((function(e){return Pv.create(vt.fromDom(e.startContainer),e.startOffset,vt.fromDom(e.endContainer),e.endOffset)}))},Nb=function(e,t){var n=nn(e);return"input"===n?Vv.after(e):M(["br","img"],n)?0===t?Vv.before(e):Vv.after(e):Vv.on(e,t)},Ab=function(e,t){var n=e.fold(Vv.before,Nb,Vv.after),r=t.fold(Vv.before,Nb,Vv.after);return Kv.relative(n,r)},Pb=function(e,t,n,r){var i=Nb(e,t),o=Nb(n,r);return Kv.relative(i,o)},Mb=function(e){return e.match({domRange:function(e){var t=vt.fromDom(e.startContainer),n=vt.fromDom(e.endContainer);return Pb(t,e.startOffset,n,e.endOffset)},relative:Ab,exact:Pb})},Rb=function(e,t,n,r){var i=dn(e),o=i.dom.createRange();return o.setStart(e.dom,t),o.setEnd(n.dom,r),o},Fb=function(e,t,n,r){var i=Rb(e,t,n,r),o=Ct(e,n)&&t===r;return i.collapsed&&!o},Bb=function(e){return E.from(e.getSelection())},Lb=function(e,t){Bb(e).each((function(e){e.removeAllRanges(),e.addRange(t)}))},$b=function(e,t,n,r,i){var o=nb(e,t,n,r,i);Lb(e,o)},Vb=function(e,t,n,r,i,o){t.collapse(n.dom,r),t.extend(i.dom,o)},jb=function(e,t){return ub(e,t).match({ltr:function(t,n,r,i){$b(e,t,n,r,i)},rtl:function(t,n,r,i){Bb(e).each((function(o){if(o.setBaseAndExtent)o.setBaseAndExtent(t.dom,n,r.dom,i);else if(o.extend)try{Vb(e,o,t,n,r,i)}catch(a){$b(e,r,i,t,n)}else $b(e,r,i,t,n)}))}})},zb=function(e,t,n,r,i){var o=Pb(t,n,r,i);jb(e,o)},Hb=function(e,t,n){var r=Ab(t,n);jb(e,r)},Ub=function(e){var t=Kv.getWin(e).dom,n=function(e,n,r,i){return nb(t,e,n,r,i)},r=Mb(e);return ub(t,r).match({ltr:n,rtl:n})},Wb=function(e){if(e.rangeCount>0){var t=e.getRangeAt(0),n=e.getRangeAt(e.rangeCount-1);return E.some(Pv.create(vt.fromDom(t.startContainer),t.startOffset,vt.fromDom(n.endContainer),n.endOffset))}return E.none()},qb=function(e){if(null===e.anchorNode||null===e.focusNode)return Wb(e);var t=vt.fromDom(e.anchorNode),n=vt.fromDom(e.focusNode);return Fb(t,e.anchorOffset,n,e.focusOffset)?E.some(Pv.create(t,e.anchorOffset,n,e.focusOffset)):Wb(e)},Gb=function(e,t,n){void 0===n&&(n=!0);var r=n?Jv:Xv,i=r(e,t);Lb(e,i)},Yb=function(e){return Bb(e).filter((function(e){return e.rangeCount>0})).bind(qb)},Kb=function(e){return Yb(e).map((function(e){return Kv.exact(e.start,e.soffset,e.finish,e.foffset)}))},Xb=function(e,t){var n=cb(e,t);return ib(n)},Jb=function(e,t,n){return Ib(e,t,n)},Zb=function(e){Bb(e).each((function(e){return e.removeAllRanges()}))},Qb=tinymce.util.Tools.resolve("tinymce.util.VK"),ey=function(e,t,n){return ry(e,t,Iv(n,Cc))},ty=function(e,t,n){return ry(e,t,Nv(n,Cc))},ny=function(e,t){var n=Kv.exact(t,0,t,0);return Ub(n)},ry=function(e,t,n){return n.fold(E.none,E.none,(function(t,n){return Ts(n).map((function(t){return ny(e,t)}))}),(function(n){return e.execCommand("mceTableInsertRowAfter"),ey(e,t,n)}))},iy=["table","li","dl"],oy=function(e,t,n){if(e.keyCode===Qb.TAB){var r=Ws(t),i=function(e){var t=nn(e);return Ct(e,r)||M(iy,t)},o=t.selection.getRng(),a=vt.fromDom(e.shiftKey?o.startContainer:o.endContainer);Er(a,i).each((function(r){e.preventDefault(),Ar(r,i).each(n.clear),t.selection.collapse(e.shiftKey);var o=e.shiftKey?ty:ey,a=o(t,i,r);a.each((function(e){t.selection.setRng(e)}))}))}},ay=function(e,t){return{selection:e,kill:t}},sy={create:ay},ly=function(e,t,n,r){return{start:Vv.on(e,t),finish:Vv.on(n,r)}},uy={create:ly},cy=function(e,t){var n=cb(e,t);return Pv.create(vt.fromDom(n.startContainer),n.startOffset,vt.fromDom(n.endContainer),n.endOffset)},fy=uy.create,dy=function(e,t,n,r,i,o,a){return Ct(n,i)&&r===o?E.none():Yn(n,"td,th",t).bind((function(n){return Yn(i,"td,th",t).bind((function(r){return hy(e,t,n,r,a)}))}))},hy=function(e,t,n,r,i){return Ct(n,r)?E.none():to(n,r,t).bind((function(t){var r=t.boxes.getOr([]);return r.length>1?(i(e,r,t.start,t.finish),E.some(sy.create(E.some(fy(n,0,n,Ss(n))),!0))):E.none()}))},py=function(e,t,n,r,i){var o=function(e){return i.clearBeforeUpdate(n),i.selectRange(n,e.boxes,e.start,e.finish),e.boxes};return ao(r,e,t,i.firstSelectedSelector,i.lastSelectedSelector).map(o)},my=function(e,t){return{item:e,mode:t}},gy=function(e,t,n,r){return void 0===r&&(r=vy),e.property().parent(t).map((function(e){return my(e,r)}))},vy=function(e,t,n,r){return void 0===r&&(r=by),n.sibling(e,t).map((function(e){return my(e,r)}))},by=function(e,t,n,r){void 0===r&&(r=by);var i=e.property().children(t),o=n.first(i);return o.map((function(e){return my(e,r)}))},yy=[{current:gy,next:vy,fallback:E.none()},{current:vy,next:by,fallback:E.some(gy)},{current:by,next:by,fallback:E.some(vy)}],wy=function(e,t,n,r,i){void 0===i&&(i=yy);var o=W(i,(function(e){return e.current===n}));return o.bind((function(n){return n.current(e,t,r,n.next).orThunk((function(){return n.fallback.bind((function(n){return wy(e,t,n,r)}))}))}))},_y=function(){var e=function(e,t){return e.query().prevSibling(t)},t=function(e){return e.length>0?E.some(e[e.length-1]):E.none()};return{sibling:e,first:t}},Cy=function(){var e=function(e,t){return e.query().nextSibling(t)},t=function(e){return e.length>0?E.some(e[0]):E.none()};return{sibling:e,first:t}},xy={left:_y,right:Cy},Sy=function(e,t,n,r,i,o){var a=wy(e,t,r,i);return a.bind((function(t){return o(t.item)?E.none():n(t.item)?E.some(t.item):Sy(e,t.item,n,t.mode,i,o)}))},ky=function(e,t,n,r){return Sy(e,t,n,vy,xy.left(),r)},Dy=function(e,t,n,r){return Sy(e,t,n,vy,xy.right(),r)},Oy=function(e){return function(t){return 0===e.property().children(t).length}},Ty=function(e,t,n){return Iy(e,t,Oy(e),n)},Ey=function(e,t,n){return Ny(e,t,Oy(e),n)},Iy=ky,Ny=Dy,Ay=zi(),Py=function(e,t){return Ty(Ay,e,t)},My=function(e,t){return Ey(Ay,e,t)},Ry=function(e,t,n){return Iy(Ay,e,t,n)},Fy=function(e,t,n){return Ny(Ay,e,t,n)},By=function(e,t,n){return jn(e,t,n).isSome()},Ly=co.generate([{none:["message"]},{success:[]},{failedUp:["cell"]},{failedDown:["cell"]}]),$y=function(e,t,n){var r=e.getRect(t),i=e.getRect(n);return i.right>r.left&&i.left<r.right},Vy=function(e){return Yn(e,"tr")},jy=function(e,t,n,r,i,o,a){return Yn(r,"td,th",a).bind((function(n){return Yn(t,"td,th",a).map((function(t){return Ct(n,t)?Ct(r,n)&&Ss(n)===i?o(t):Ly.none("in same cell"):Zi(Vy,[n,t]).fold((function(){return $y(e,t,n)?Ly.success():o(t)}),(function(e){return o(t)}))}))})).getOr(Ly.none("default"))},zy=function(e,t,n,r,i){return e.fold(t,n,r,i)},Hy=ie(ie({},Ly),{verify:jy,cata:zy}),Uy=function(e,t,n,r){return{parent:e,children:t,element:n,index:r}},Wy=function(e){return mn(e).bind((function(t){var n=wn(t);return qy(n,e).map((function(r){return Uy(t,n,e,r)}))}))},qy=function(e,t){return q(e,w(Ct,t))},Gy=function(e){return"br"===nn(e)},Yy=function(e,t,n){return t(e,n).bind((function(e){return ln(e)&&0===Li(e).trim().length?Yy(e,t,n):E.some(e)}))},Ky=function(e,t,n){return n.traverse(t).orThunk((function(){return Yy(t,n.gather,e)})).map(n.relative)},Xy=function(e,t){return _n(e,t).filter(Gy).orThunk((function(){return _n(e,t-1).filter(Gy)}))},Jy=function(e,t,n,r){return Xy(t,n).bind((function(t){return r.traverse(t).fold((function(){return Yy(t,r.gather,e).map(r.relative)}),(function(e){return Wy(e).map((function(e){return Vv.on(e.parent,e.index)}))}))}))},Zy=function(e,t,n,r){var i=Gy(t)?Ky(e,t,r):Jy(e,t,n,r);return i.map((function(e){return{start:e,finish:e}}))},Qy=function(e){return Hy.cata(e,(function(e){return E.none()}),(function(){return E.none()}),(function(e){return E.some(ad(e,0))}),(function(e){return E.some(ad(e,Ss(e)))}))},ew=function(e,t){return{left:e.left,top:e.top+t,right:e.right,bottom:e.bottom+t}},tw=function(e,t){return{left:e.left,top:e.top-t,right:e.right,bottom:e.bottom-t}},nw=function(e,t,n){return{left:e.left+t,top:e.top+n,right:e.right+t,bottom:e.bottom+n}},rw=function(e){return e.top},iw=function(e){return e.bottom},ow=function(e,t,n){return n>=0&&n<Ss(t)?e.getRangedRect(t,n,t,n+1):n>0?e.getRangedRect(t,n-1,t,n):E.none()},aw=function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}},sw=function(e,t){return E.some(e.getRect(t))},lw=function(e,t,n){return sn(t)?sw(e,t).map(aw):ln(t)?ow(e,t,n).map(aw):E.none()},uw=function(e,t){return sn(t)?sw(e,t).map(aw):ln(t)?e.getRangedRect(t,0,t,Ss(t)).map(aw):E.none()},cw=5,fw=100,dw=co.generate([{none:[]},{retry:["caret"]}]),hw=function(e,t){return e.left<t.left||Math.abs(t.right-e.left)<1||e.left>t.right},pw=function(e,t,n){return zn(t,sp).fold(x,(function(t){return uw(e,t).exists((function(e){return hw(n,e)}))}))},mw=function(e,t,n,r,i){var o=ew(i,cw);return Math.abs(n.bottom-r.bottom)<1||n.top>i.bottom?dw.retry(o):n.top===i.bottom?dw.retry(ew(i,1)):pw(e,t,i)?dw.retry(nw(o,cw,0)):dw.none()},gw=function(e,t,n,r,i){var o=tw(i,cw);return Math.abs(n.top-r.top)<1||n.bottom<i.top?dw.retry(o):n.bottom===i.top?dw.retry(tw(i,1)):pw(e,t,i)?dw.retry(nw(o,cw,0)):dw.none()},vw={point:rw,adjuster:gw,move:tw,gather:Py},bw={point:iw,adjuster:mw,move:ew,gather:My},yw=function(e,t,n){return e.elementFromPoint(t,n).filter((function(e){return"table"===nn(e)})).isSome()},ww=function(e,t,n,r,i){return _w(e,t,n,t.move(r,cw),i)},_w=function(e,t,n,r,i){return 0===i?E.some(r):yw(e,r.left,t.point(r))?ww(e,t,n,r,i-1):e.situsFromPoint(r.left,t.point(r)).bind((function(o){return o.start.fold(E.none,(function(o){return uw(e,o).bind((function(a){return t.adjuster(e,o,a,n,r).fold(E.none,(function(r){return _w(e,t,n,r,i-1)}))})).orThunk((function(){return E.some(r)}))}),E.none)}))},Cw=function(e,t){return e.situsFromPoint(t.left,t.bottom+cw)},xw=function(e,t){return e.situsFromPoint(t.left,t.top-cw)},Sw=function(e,t,n){return e.point(t)>n.getInnerHeight()?E.some(e.point(t)-n.getInnerHeight()):e.point(t)<0?E.some(-e.point(t)):E.none()},kw=function(e,t,n){var r=e.move(n,cw),i=_w(t,e,n,r,fw).getOr(r);return Sw(e,i,t).fold((function(){return t.situsFromPoint(i.left,e.point(i))}),(function(n){return t.scrollBy(0,n),t.situsFromPoint(i.left,e.point(i)-n)}))},Dw={tryUp:w(kw,vw),tryDown:w(kw,bw),ieTryUp:xw,ieTryDown:Cw,getJumpSize:v(cw)},Ow=20,Tw=function(e,t,n){return e.getSelection().bind((function(r){return Zy(t,r.finish,r.foffset,n).fold((function(){return E.some(ad(r.finish,r.foffset))}),(function(i){var o=e.fromSitus(i),a=Hy.verify(e,r.finish,r.foffset,o.finish,o.foffset,n.failure,t);return Qy(a)}))}))},Ew=function(e,t,n,r,i,o){return 0===o?E.none():Aw(e,t,n,r,i).bind((function(a){var s=e.fromSitus(a),l=Hy.verify(e,n,r,s.finish,s.foffset,i.failure,t);return Hy.cata(l,(function(){return E.none()}),(function(){return E.some(a)}),(function(a){return Ct(n,a)&&0===r?Iw(e,n,r,tw,i):Ew(e,t,a,0,i,o-1)}),(function(a){return Ct(n,a)&&r===Ss(a)?Iw(e,n,r,ew,i):Ew(e,t,a,Ss(a),i,o-1)}))}))},Iw=function(e,t,n,r,i){return lw(e,t,n).bind((function(t){return Nw(e,i,r(t,Dw.getJumpSize()))}))},Nw=function(e,t,n){var r=it().browser;return r.isChrome()||r.isSafari()||r.isFirefox()||r.isEdge()?t.otherRetry(e,n):r.isIE()?t.ieRetry(e,n):E.none()},Aw=function(e,t,n,r,i){return lw(e,n,r).bind((function(t){return Nw(e,i,t)}))},Pw=function(e,t,n){return Tw(e,t,n).bind((function(r){return Ew(e,t,r.element,r.offset,n,Ow).map(e.fromSitus)}))},Mw=function(e,t){return By(e,(function(e){return mn(e).exists((function(e){return Ct(e,t)}))}))},Rw=function(e,t,n,r,i){return Yn(r,"td,th",t).bind((function(r){return Yn(r,"table",t).bind((function(o){return Mw(i,o)?Pw(e,t,n).bind((function(e){return Yn(e.finish,"td,th",t).map((function(t){return{start:r,finish:t,range:e}}))})):E.none()}))}))},Fw=function(e,t,n,r,i,o){return it().browser.isIE()?E.none():o(r,t).orThunk((function(){return Rw(e,t,n,r,i).map((function(e){var t=e.range;return sy.create(E.some(fy(t.start,t.soffset,t.finish,t.foffset)),!0)}))}))},Bw=function(e,t){return Yn(e,"tr",t).bind((function(e){return Yn(e,"table",t).bind((function(n){var r=$n(n,"tr");return Ct(e,r[0])?Ry(n,(function(e){return Es(e).isSome()}),t).map((function(e){var t=Ss(e);return sy.create(E.some(fy(e,t,e,t)),!0)})):E.none()}))}))},Lw=function(e,t){return Yn(e,"tr",t).bind((function(e){return Yn(e,"table",t).bind((function(n){var r=$n(n,"tr");return Ct(e,r[r.length-1])?Fy(n,(function(e){return Ts(e).isSome()}),t).map((function(e){return sy.create(E.some(fy(e,0,e,0)),!0)})):E.none()}))}))},$w=function(e,t,n,r,i,o,a){return Rw(e,n,r,i,o).bind((function(e){return hy(t,n,e.start,e.finish,a)}))},Vw=function(e,t){return Yn(e,"td,th",t)},jw=function(e,t,n,r){var i=bg(),o=i.clear,a=function(o){i.on((function(i){r.clearBeforeUpdate(t),Vw(o.target,n).each((function(a){to(i,a,n).each((function(n){var i=n.boxes.getOr([]);if(1===i.length){var s=i[0],l="false"===xc(s),u=rr(_c(o.target),s,Ct);l&&u&&(r.selectRange(t,i,s,s),e.selectContents(s))}else i.length>1&&(r.selectRange(t,i,n.start,n.finish),e.selectContents(a))}))}))}))},s=function(e){r.clear(t),Vw(e.target,n).each(i.set)},l=function(e){a(e)},u=function(e){a(e),o()};return{clearstate:o,mousedown:s,mouseover:l,mouseup:u}},zw={traverse:yn,gather:My,relative:Vv.before,otherRetry:Dw.tryDown,ieRetry:Dw.ieTryDown,failure:Hy.failedDown},Hw={traverse:bn,gather:Py,relative:Vv.before,otherRetry:Dw.tryUp,ieRetry:Dw.ieTryUp,failure:Hy.failedUp},Uw=function(e){return function(t){return t===e}},Ww=Uw(38),qw=Uw(40),Gw=function(e){return e>=37&&e<=40},Yw={isBackward:Uw(37),isForward:Uw(39)},Kw={isBackward:Uw(39),isForward:Uw(37)},Xw=function(e){var t=void 0!==e?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,r=t.body.scrollTop||t.documentElement.scrollTop;return Zo(n,r)},Jw=function(e,t,n){var r=void 0!==n?n.dom:document,i=r.defaultView;i&&i.scrollBy(e,t)},Zw=function(e){var t=function(t,n){return vt.fromPoint(vt.fromDom(e.document),t,n)},n=function(e){return e.dom.getBoundingClientRect()},r=function(t,n,r,i){var o=Kv.exact(t,n,r,i);return Xb(e,o)},i=function(){return Kb(e).map((function(t){return cy(e,t)}))},o=function(t){var n=Kv.relative(t.start,t.finish);return cy(e,n)},a=function(t,n){return Jb(e,t,n).map((function(e){return uy.create(e.start,e.soffset,e.finish,e.foffset)}))},s=function(){Zb(e)},l=function(t){void 0===t&&(t=!1),Kb(e).each((function(n){return n.fold((function(e){return e.collapse(t)}),(function(n,r){var i=t?n:r;Hb(e,i,i)}),(function(n,r,i,o){var a=t?n:i,s=t?r:o;zb(e,a,s,a,s)}))}))},u=function(t){Gb(e,t,!1)},c=function(t){Gb(e,t)},f=function(t){zb(e,t.start,t.soffset,t.finish,t.foffset)},d=function(t,n){Hb(e,t,n)},h=function(){return e.innerHeight},p=function(){var t=Xw(vt.fromDom(e.document));return t.top},m=function(t,n){Jw(t,n,vt.fromDom(e.document))};return{elementFromPoint:t,getRect:n,getRangedRect:r,getSelection:i,fromSitus:o,situsFromPoint:a,clearSelection:s,collapseSelection:l,setSelection:f,setRelativeSelection:d,selectNode:u,selectContents:c,getInnerHeight:h,getScrollY:p,scrollBy:m}},Qw=function(e,t){return{rows:e,cols:t}},e_=function(e,t,n,r){var i=Zw(e),o=jw(i,t,n,r);return{clearstate:o.clearstate,mousedown:o.mousedown,mouseover:o.mouseover,mouseup:o.mouseup}},t_=function(e,t,n,r){var i=Zw(e),o=function(){return r.clear(t),E.none()},a=function(e,a,s,l,u,c){var f=e.raw,d=f.which,h=!0===f.shiftKey,p=no(t,r.selectedSelector).fold((function(){return Gw(d)&&!h&&r.clearBeforeUpdate(t),qw(d)&&h?w($w,i,t,n,zw,l,a,r.selectRange):Ww(d)&&h?w($w,i,t,n,Hw,l,a,r.selectRange):qw(d)?w(Fw,i,n,zw,l,a,Lw):Ww(d)?w(Fw,i,n,Hw,l,a,Bw):E.none}),(function(e){var n=function(n){return function(){var o=re(n,(function(n){return py(n.rows,n.cols,t,e,r)}));return o.fold((function(){return io(t,r.firstSelectedSelector,r.lastSelectedSelector).map((function(e){var n=qw(d)||c.isForward(d)?Vv.after:Vv.before;return i.setRelativeSelection(Vv.on(e.first,0),n(e.table)),r.clear(t),sy.create(E.none(),!0)}))}),(function(e){return E.some(sy.create(E.none(),!0))}))}};return qw(d)&&h?n([Qw(1,0)]):Ww(d)&&h?n([Qw(-1,0)]):c.isBackward(d)&&h?n([Qw(0,-1),Qw(-1,0)]):c.isForward(d)&&h?n([Qw(0,1),Qw(1,0)]):Gw(d)&&!h?o:E.none}));return p()},s=function(e,i,o,a,s){return no(t,r.selectedSelector).fold((function(){var l=e.raw,u=l.which,c=!0===l.shiftKey;return c&&Gw(u)?dy(t,n,i,o,a,s,r.selectRange):E.none()}),E.none)};return{keydown:a,keyup:s}},n_=function(e,t,n,r){var i=Zw(e);return function(e,o){r.clearBeforeUpdate(t),to(e,o,n).each((function(e){var n=e.boxes.getOr([]);r.selectRange(t,n,e.start,e.finish),i.selectContents(o),i.collapseSelection()}))}},r_=function(e,t){L(t,(function(t){uc(e,t)}))},i_=function(e){return function(t){sc(t,e)}},o_=function(e){return function(t){r_(t,e)}},a_=function(e){var t=i_(e.selected),n=o_([e.selected,e.lastSelected,e.firstSelected]),r=function(t){var r=$n(t,e.selectedSelector);L(r,n)},i=function(n,i,o,a){r(n),L(i,t),sc(o,e.firstSelected),sc(a,e.lastSelected)};return{clearBeforeUpdate:r,clear:r,selectRange:i,selectedSelector:e.selectedSelector,firstSelectedSelector:e.firstSelectedSelector,lastSelectedSelector:e.lastSelectedSelector}},s_=function(e,t,n){var r=function(t){tr(t,e.selected),tr(t,e.firstSelected),tr(t,e.lastSelected)},i=function(t){Xn(t,e.selected,"1")},o=function(e){a(e),n()},a=function(t){var n=$n(t,e.selectedSelector+","+e.firstSelectedSelector+","+e.lastSelectedSelector);L(n,r)},s=function(n,r,a,s){o(n),L(r,i),Xn(a,e.firstSelected,"1"),Xn(s,e.lastSelected,"1"),t(r,a,s)};return{clearBeforeUpdate:a,clear:o,selectRange:s,selectedSelector:e.selectedSelector,firstSelectedSelector:e.firstSelectedSelector,lastSelectedSelector:e.lastSelectedSelector}},l_={byClass:a_,byAttr:s_},u_=function(e,t){var n=e.slice(0,t[t.length-1].row+1),r=jd(n);return Y(r,(function(e){var n=e.cells.slice(0,t[t.length-1].column+1);return B(n,(function(e){return e.element}))}))},c_=function(e,t){var n=e.slice(t[0].row+t[0].rowspan-1,e.length),r=jd(n);return Y(r,(function(e){var n=e.cells.slice(t[0].column+t[0].colspan-1,e.cells.length);return B(n,(function(e){return e.element}))}))},f_=function(e,t,n){var r=ui.fromTable(e),i=Kd(r,t);return i.map((function(e){var t=$d(r,n,!1),i=u_(t,e),o=c_(t,e);return{upOrLeftCells:i,downOrRightCells:o}}))},d_=tinymce.util.Tools.resolve("tinymce.Env"),h_=function(e){return!1===cc(vt.fromDom(e.target),"ephox-snooker-resizer-bar")};function p_(e,t,n){var r=function(t,r,i){n.targets().each((function(n){var o=Ar(r);o.each((function(o){var a=jf(e),s=Vs(p,vt.fromDom(e.getDoc()),a),l=f_(o,n,s);tf(e,t,r,i,l)}))}))},i=function(){return nf(e)},o=l_.byAttr(pl,r,i);return e.on("init",(function(n){var r=e.getWin(),i=Ws(e),a=Ys(e),s=function(){var t=e.selection,n=vt.fromDom(t.getStart()),r=vt.fromDom(t.getEnd()),a=Zi(Ar,[n,r]);a.fold((function(){return o.clear(i)}),p)},l=e_(r,i,a,o),u=t_(r,i,a,o),c=n_(r,i,a,o),f=function(e){return!0===e.raw.shiftKey};e.on("TableSelectorChange",(function(e){return c(e.start,e.finish)}));var d=function(t,n){f(t)&&(n.kill&&t.kill(),n.selection.each((function(t){var n=Kv.relative(t.start,t.finish),i=cb(r,n);e.selection.setRng(i)})))},h=function(t){var n=Qu(t);if(n.raw.shiftKey&&Gw(n.raw.which)){var r=e.selection.getRng(),i=vt.fromDom(r.startContainer),o=vt.fromDom(r.endContainer);u.keyup(n,i,r.startOffset,o,r.endOffset).each((function(e){d(n,e)}))}},m=function(n){var r=Qu(n);t().each((function(e){return e.hideBars()}));var i=e.selection.getRng(),o=vt.fromDom(i.startContainer),a=vt.fromDom(i.endContainer),s=Wo(Yw,Kw)(vt.fromDom(e.selection.getStart()));u.keydown(r,o,i.startOffset,a,i.endOffset,s).each((function(e){d(r,e)})),t().each((function(e){return e.showBars()}))},g=function(e){return 0===e.button},v=function(e){return void 0===e.buttons||(!(!d_.browser.isEdge()||0!==e.buttons)||0!==(1&e.buttons))},b=function(e){l.clearstate()},y=function(e){g(e)&&h_(e)&&l.mousedown(Qu(e))},w=function(e){v(e)&&h_(e)&&l.mouseover(Qu(e))},_=function(e){g(e)&&h_(e)&&l.mouseup(Qu(e))},C=function(){var e=mg(vt.fromDom(i)),t=mg(0),n=function(n){var r=vt.fromDom(n.target);if("td"===nn(r)||"th"===nn(r)){var i=e.get(),o=t.get();Ct(i,r)&&n.timeStamp-o<300&&(n.preventDefault(),c(r,r))}e.set(r),t.set(n.timeStamp)};return{touchEnd:n}},x=C();e.on("dragstart",b),e.on("mousedown",y),e.on("mouseover",w),e.on("mouseup",_),e.on("touchend",x.touchEnd),e.on("keyup",h),e.on("keydown",m),e.on("NodeChange",s)})),{clear:o.clear}}var m_=function(e,t){return qn(e,t).isSome()},g_=function(e,t){var n=mg(E.none()),r=mg([]),i=E.none(),o=fn("caption"),a=function(e){return i.forall((function(t){return!t[e]}))},s=function(){return _l(tl(e),Ys(e))},l=function(){return _l(nl(e),Ys(e))},u=function(){return s().bind((function(e){return sr(or(Ar(e),l().bind(Ar),(function(n,r){return Ct(n,r)?o(e)?E.some(ml(e)):E.some(gl(t,n,e)):E.none()})))}))},c=function(e){var t=Ar(e.element);return t.map((function(t){var n=ui.fromTable(t),r=Kd(n,e).getOr([]),i=H(r,(function(e,t){return t.isLocked&&(e.onAny=!0,0===t.column?e.onFirst=!0:t.column+t.colspan>=n.grid.columns&&(e.onLast=!0)),e}),{onAny:!1,onFirst:!1,onLast:!1});return{mergeable:Qd(n,e).isSome(),unmergeable:eh(n,e).isSome(),locked:i}}))},f=function(){n.set(ae(u)()),i=n.get().bind(c),L(r.get(),(function(e){return e()}))},d=function(e){return e(),r.set(r.get().concat([e])),function(){r.set(j(r.get(),(function(t){return t!==e})))}},h=function(e,t){return d((function(){return n.get().fold((function(){e.setDisabled(!0)}),(function(n){e.setDisabled(t(n))}))}))},p=function(e,t,r){return d((function(){return n.get().fold((function(){e.setDisabled(!0),e.setActive(!1)}),(function(n){e.setDisabled(t(n)),e.setActive(r(n))}))}))},m=function(e){return i.exists((function(t){return t.locked[e]}))},g=function(e){return h(e,(function(e){return!1}))},v=function(e){return h(e,(function(e){return o(e.element)}))},b=function(e){return function(t){return h(t,(function(t){return o(t.element)||m(e)}))}},y=function(e){return function(t){return h(t,(function(t){return o(t.element)||e().isNone()}))}},w=function(e,t){return function(n){return h(n,(function(n){return o(n.element)||e().isNone()||m(t)}))}},_=function(e){return h(e,(function(e){return a("mergeable")}))},C=function(e){return h(e,(function(e){return a("unmergeable")}))},S=function(t){return p(t,x,(function(t){var n=Ar(t.element,Ys(e));return n.exists((function(e){return m_(e,"caption")}))}))},k=function(t,n){return function(r){return p(r,(function(e){return o(e.element)}),(function(){return e.queryCommandValue(t)===n}))}},D=k("mceTableRowType","header"),O=k("mceTableColType","th");return e.on("NodeChange ExecCommand TableSelectorChange",f),{onSetupTable:g,onSetupCellOrRow:v,onSetupColumn:b,onSetupPasteable:y,onSetupPasteableColumn:w,onSetupMergeable:_,onSetupUnmergeable:C,resetTargets:f,onSetupTableWithCaption:S,onSetupTableRowHeaders:D,onSetupTableColumnHeaders:O,targets:n.get}},v_=function(e,t,n,r){e.ui.registry.addMenuButton("table",{tooltip:"Table",icon:"table",fetch:function(e){return e("inserttable | cell row column | advtablesort | tableprops deletetable")}});var i=function(t){return function(){return e.execCommand(t)}};e.ui.registry.addButton("tableprops",{tooltip:"Table properties",onAction:i("mceTableProps"),icon:"table",onSetup:n.onSetupTable}),e.ui.registry.addButton("tabledelete",{tooltip:"Delete table",onAction:i("mceTableDelete"),icon:"table-delete-table",onSetup:n.onSetupTable}),e.ui.registry.addButton("tablecellprops",{tooltip:"Cell properties",onAction:i("mceTableCellProps"),icon:"table-cell-properties",onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tablemergecells",{tooltip:"Merge cells",onAction:i("mceTableMergeCells"),icon:"table-merge-cells",onSetup:n.onSetupMergeable}),e.ui.registry.addButton("tablesplitcells",{tooltip:"Split cell",onAction:i("mceTableSplitCells"),icon:"table-split-cells",onSetup:n.onSetupUnmergeable}),e.ui.registry.addButton("tableinsertrowbefore",{tooltip:"Insert row before",onAction:i("mceTableInsertRowBefore"),icon:"table-insert-row-above",onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tableinsertrowafter",{tooltip:"Insert row after",onAction:i("mceTableInsertRowAfter"),icon:"table-insert-row-after",onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tabledeleterow",{tooltip:"Delete row",onAction:i("mceTableDeleteRow"),icon:"table-delete-row",onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tablerowprops",{tooltip:"Row properties",onAction:i("mceTableRowProps"),icon:"table-row-properties",onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tableinsertcolbefore",{tooltip:"Insert column before",onAction:i("mceTableInsertColBefore"),icon:"table-insert-column-before",onSetup:n.onSetupColumn("onFirst")}),e.ui.registry.addButton("tableinsertcolafter",{tooltip:"Insert column after",onAction:i("mceTableInsertColAfter"),icon:"table-insert-column-after",onSetup:n.onSetupColumn("onLast")}),e.ui.registry.addButton("tabledeletecol",{tooltip:"Delete column",onAction:i("mceTableDeleteCol"),icon:"table-delete-column",onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addButton("tablecutrow",{tooltip:"Cut row",icon:"cut-row",onAction:i("mceTableCutRow"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tablecopyrow",{tooltip:"Copy row",icon:"duplicate-row",onAction:i("mceTableCopyRow"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tablepasterowbefore",{tooltip:"Paste row before",icon:"paste-row-before",onAction:i("mceTablePasteRowBefore"),onSetup:n.onSetupPasteable(r.getRows)}),e.ui.registry.addButton("tablepasterowafter",{tooltip:"Paste row after",icon:"paste-row-after",onAction:i("mceTablePasteRowAfter"),onSetup:n.onSetupPasteable(r.getRows)}),e.ui.registry.addButton("tablecutcol",{tooltip:"Cut column",icon:"cut-column",onAction:i("mceTableCutCol"),onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addButton("tablecopycol",{tooltip:"Copy column",icon:"duplicate-column",onAction:i("mceTableCopyCol"),onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addButton("tablepastecolbefore",{tooltip:"Paste column before",icon:"paste-column-before",onAction:i("mceTablePasteColBefore"),onSetup:n.onSetupPasteableColumn(r.getColumns,"onFirst")}),e.ui.registry.addButton("tablepastecolafter",{tooltip:"Paste column after",icon:"paste-column-after",onAction:i("mceTablePasteColAfter"),onSetup:n.onSetupPasteableColumn(r.getColumns,"onLast")}),e.ui.registry.addButton("tableinsertdialog",{tooltip:"Insert table",onAction:i("mceInsertTable"),icon:"table"});var o=Sg(Nf(e));0!==o.length&&e.ui.registry.addMenuButton("tableclass",{icon:"table-classes",tooltip:"Table styles",fetch:kg(e,t,o,"tableclass",(function(t){return e.execCommand("mceTableToggleClass",!1,t)})),onSetup:n.onSetupTable});var a=Sg(Ef(e));0!==a.length&&e.ui.registry.addMenuButton("tablecellclass",{icon:"table-cell-classes",tooltip:"Cell styles",fetch:kg(e,t,a,"tablecellclass",(function(t){return e.execCommand("mceTableCellToggleClass",!1,t)})),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuButton("tablecellvalign",{icon:"vertical-align",tooltip:"Vertical align",fetch:kg(e,t,eg,"tablecellverticalalign",xg(e,"vertical-align")),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuButton("tablecellborderwidth",{icon:"border-width",tooltip:"Border width",fetch:kg(e,t,vf(e),"tablecellborderwidth",xg(e,"border-width")),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuButton("tablecellborderstyle",{icon:"border-style",tooltip:"Border style",fetch:kg(e,t,bf(e),"tablecellborderstyle",xg(e,"border-style")),onSetup:n.onSetupCellOrRow}),e.ui.registry.addToggleButton("tablecaption",{tooltip:"Table caption",onAction:i("mceTableToggleCaption"),icon:"table-caption",onSetup:n.onSetupTableWithCaption}),e.ui.registry.addMenuButton("tablecellbackgroundcolor",{icon:"cell-background-color",tooltip:"Background color",fetch:function(t){return t(Dg(e,Hf(e),"background-color"))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuButton("tablecellbordercolor",{icon:"cell-border-color",tooltip:"Border color",fetch:function(t){return t(Dg(e,Uf(e),"border-color"))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addToggleButton("tablerowheader",{tooltip:"Row header",icon:"table-top-header",onAction:Og(e),onSetup:n.onSetupTableRowHeaders}),e.ui.registry.addToggleButton("tablecolheader",{tooltip:"Column header",icon:"table-left-header",onAction:Tg(e),onSetup:n.onSetupTableColumnHeaders})},b_=function(e){var t=function(t){return e.dom.is(t,"table")&&e.getBody().contains(t)},n=Rf(e);n.length>0&&e.ui.registry.addContextToolbar("table",{predicate:t,items:n,scope:"node",position:"node"})},y_=function(e,t,n,r){var i=function(t){return function(){return e.execCommand(t)}},o=function(t){e.execCommand("mceInsertTable",!1,{rows:t.numRows,columns:t.numColumns})},a={text:"Table properties",onSetup:n.onSetupTable,onAction:i("mceTableProps")},s={text:"Delete table",icon:"table-delete-table",onSetup:n.onSetupTable,onAction:i("mceTableDelete")};e.ui.registry.addMenuItem("tableinsertrowbefore",{text:"Insert row before",icon:"table-insert-row-above",onAction:i("mceTableInsertRowBefore"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tableinsertrowafter",{text:"Insert row after",icon:"table-insert-row-after",onAction:i("mceTableInsertRowAfter"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tabledeleterow",{text:"Delete row",icon:"table-delete-row",onAction:i("mceTableDeleteRow"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tablerowprops",{text:"Row properties",icon:"table-row-properties",onAction:i("mceTableRowProps"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tablecutrow",{text:"Cut row",icon:"cut-row",onAction:i("mceTableCutRow"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tablecopyrow",{text:"Copy row",icon:"duplicate-row",onAction:i("mceTableCopyRow"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tablepasterowbefore",{text:"Paste row before",icon:"paste-row-before",onAction:i("mceTablePasteRowBefore"),onSetup:n.onSetupPasteable(r.getRows)}),e.ui.registry.addMenuItem("tablepasterowafter",{text:"Paste row after",icon:"paste-row-after",onAction:i("mceTablePasteRowAfter"),onSetup:n.onSetupPasteable(r.getRows)});var l={type:"nestedmenuitem",text:"Row",getSubmenuItems:v("tableinsertrowbefore tableinsertrowafter tabledeleterow tablerowprops | tablecutrow tablecopyrow tablepasterowbefore tablepasterowafter")};e.ui.registry.addMenuItem("tableinsertcolumnbefore",{text:"Insert column before",icon:"table-insert-column-before",onAction:i("mceTableInsertColBefore"),onSetup:n.onSetupColumn("onFirst")}),e.ui.registry.addMenuItem("tableinsertcolumnafter",{text:"Insert column after",icon:"table-insert-column-after",onAction:i("mceTableInsertColAfter"),onSetup:n.onSetupColumn("onLast")}),e.ui.registry.addMenuItem("tabledeletecolumn",{text:"Delete column",icon:"table-delete-column",onAction:i("mceTableDeleteCol"),onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addMenuItem("tablecutcolumn",{text:"Cut column",icon:"cut-column",onAction:i("mceTableCutCol"),onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addMenuItem("tablecopycolumn",{text:"Copy column",icon:"duplicate-column",onAction:i("mceTableCopyCol"),onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addMenuItem("tablepastecolumnbefore",{text:"Paste column before",icon:"paste-column-before",onAction:i("mceTablePasteColBefore"),onSetup:n.onSetupPasteableColumn(r.getColumns,"onFirst")}),e.ui.registry.addMenuItem("tablepastecolumnafter",{text:"Paste column after",icon:"paste-column-after",onAction:i("mceTablePasteColAfter"),onSetup:n.onSetupPasteableColumn(r.getColumns,"onLast")});var u={type:"nestedmenuitem",text:"Column",getSubmenuItems:v("tableinsertcolumnbefore tableinsertcolumnafter tabledeletecolumn | tablecutcolumn tablecopycolumn tablepastecolumnbefore tablepastecolumnafter")};e.ui.registry.addMenuItem("tablecellprops",{text:"Cell properties",icon:"table-cell-properties",onAction:i("mceTableCellProps"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tablemergecells",{text:"Merge cells",icon:"table-merge-cells",onAction:i("mceTableMergeCells"),onSetup:n.onSetupMergeable}),e.ui.registry.addMenuItem("tablesplitcells",{text:"Split cell",icon:"table-split-cells",onAction:i("mceTableSplitCells"),onSetup:n.onSetupUnmergeable});var c={type:"nestedmenuitem",text:"Cell",getSubmenuItems:v("tablecellprops tablemergecells tablesplitcells")};!1===Of(e)?e.ui.registry.addMenuItem("inserttable",{text:"Table",icon:"table",onAction:i("mceInsertTable")}):e.ui.registry.addNestedMenuItem("inserttable",{text:"Table",icon:"table",getSubmenuItems:function(){return[{type:"fancymenuitem",fancytype:"inserttable",onAction:o}]}}),e.ui.registry.addMenuItem("inserttabledialog",{text:"Insert table",icon:"table",onAction:i("mceInsertTable")}),e.ui.registry.addMenuItem("tableprops",a),e.ui.registry.addMenuItem("deletetable",s),e.ui.registry.addNestedMenuItem("row",l),e.ui.registry.addNestedMenuItem("column",u),e.ui.registry.addNestedMenuItem("cell",c),e.ui.registry.addContextMenu("table",{update:function(){return n.resetTargets(),n.targets().fold(v(""),(function(e){return"caption"===nn(e.element)?"tableprops deletetable":"cell row column | advtablesort | tableprops deletetable"}))}});var f=Sg(Nf(e));0!==f.length&&e.ui.registry.addNestedMenuItem("tableclass",{icon:"table-classes",text:"Table styles",getSubmenuItems:function(){return Cg(e,t,f,"tableclass",(function(t){return e.execCommand("mceTableToggleClass",!1,t)}))},onSetup:n.onSetupTable});var d=Sg(Ef(e));0!==d.length&&e.ui.registry.addNestedMenuItem("tablecellclass",{icon:"table-cell-classes",text:"Cell styles",getSubmenuItems:function(){return Cg(e,t,d,"tablecellclass",(function(t){return e.execCommand("mceTableCellToggleClass",!1,t)}))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addNestedMenuItem("tablecellvalign",{icon:"vertical-align",text:"Vertical align",getSubmenuItems:function(){return Cg(e,t,eg,"tablecellverticalalign",xg(e,"vertical-align"))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addNestedMenuItem("tablecellborderwidth",{icon:"border-width",text:"Border width",getSubmenuItems:function(){return Cg(e,t,vf(e),"tablecellborderwidth",xg(e,"border-width"))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addNestedMenuItem("tablecellborderstyle",{icon:"border-style",text:"Border style",getSubmenuItems:function(){return Cg(e,t,bf(e),"tablecellborderstyle",xg(e,"border-style"))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addToggleMenuItem("tablecaption",{icon:"table-caption",text:"Table caption",onAction:i("mceTableToggleCaption"),onSetup:n.onSetupTableWithCaption}),e.ui.registry.addNestedMenuItem("tablecellbackgroundcolor",{icon:"cell-background-color",text:"Background color",getSubmenuItems:function(){return Dg(e,Hf(e),"background-color")},onSetup:n.onSetupCellOrRow}),e.ui.registry.addNestedMenuItem("tablecellbordercolor",{icon:"cell-border-color",text:"Border color",getSubmenuItems:function(){return Dg(e,Uf(e),"border-color")},onSetup:n.onSetupCellOrRow}),e.ui.registry.addToggleMenuItem("tablerowheader",{text:"Row header",icon:"table-top-header",onAction:Og(e),onSetup:n.onSetupTableRowHeaders}),e.ui.registry.addToggleMenuItem("tablecolheader",{text:"Column header",icon:"table-left-header",onAction:Tg(e),onSetup:n.onSetupTableColumnHeaders})},w_=function(e){var t=vo((function(){return Ws(e)}),(function(){return Cl(tl(e),Ys(e))}),pl.selectedSelector),n=g_(e,t),r=od(e),i=p_(e,r.lazyResize,n),o=Cm(e,i,r.lazyWire),a=wv();return bv(e,o,i,t,a),yv(e,o,t),Tl(e,t,o),y_(e,t,n,a),v_(e,t,n,a),b_(e),e.on("PreInit",(function(){e.serializer.addTempAttr(pl.firstSelected),e.serializer.addTempAttr(pl.lastSelected),Sv(e)})),Cf(e)&&e.on("keydown",(function(t){oy(t,e,i)})),e.on("remove",(function(){r.destroy()})),zm(e,a,r,n)};function __(){bo.add("table",w_)}__()})()},9619:function(e,t,n){var r=n("597f"),i=n("0e15");e.exports={throttle:r,debounce:i}},"96cf":function(e,t,n){var r=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"===typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(P){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),s=new I(r||[]);return i(a,"_invoke",{value:D(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(P){return{type:"throw",arg:P}}}e.wrap=c;var d="suspendedStart",h="suspendedYield",p="executing",m="completed",g={};function v(){}function b(){}function y(){}var w={};u(w,a,(function(){return this}));var _=Object.getPrototypeOf,C=_&&_(_(N([])));C&&C!==n&&r.call(C,a)&&(w=C);var x=y.prototype=v.prototype=Object.create(w);function S(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(i,o,a,s){var l=f(e[i],e,o);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"===typeof c&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(c).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;function a(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return o=o?o.then(i,i):i()}i(this,"_invoke",{value:a})}function D(e,t,n){var r=d;return function(i,o){if(r===p)throw new Error("Generator is already running");if(r===m){if("throw"===i)throw o;return A()}n.method=i,n.arg=o;while(1){var a=n.delegate;if(a){var s=O(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var l=f(e,t,n);if("normal"===l.type){if(r=n.done?m:h,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=m,n.method="throw",n.arg=l.arg)}}}function O(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator["return"]&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=f(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(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 E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function N(e){if(null!=e){var n=e[a];if(n)return n.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){while(++i<e.length)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(typeof e+" is not iterable")}function A(){return{value:t,done:!0}}return b.prototype=y,i(x,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:b,configurable:!0}),b.displayName=u(y,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,l,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},S(k.prototype),u(k.prototype,s,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new k(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(x),u(x,l,"Generator"),u(x,a,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){while(n.length){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=N,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(E),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},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),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:N(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=r}catch(i){"object"===typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},9878:function(e,t,n){"use strict";var r=n("7163"),i=n("6833"),o=n("5134"),a=n("f0a7"),s=n("9cca");(function(){function e(){}e.prototype.write=function(t,n,s,l){if(void 0===l&&(l=null),0===t.length)throw new a["a"]("Found empty contents");if(n<0||s<0)throw new a["a"]("Requested dimensions are too small: "+n+"x"+s);var u=o["a"].L,c=e.QUIET_ZONE_SIZE;null!==l&&(void 0!==l.get(r["a"].ERROR_CORRECTION)&&(u=o["a"].fromString(l.get(r["a"].ERROR_CORRECTION).toString())),void 0!==l.get(r["a"].MARGIN)&&(c=Number.parseInt(l.get(r["a"].MARGIN).toString(),10)));var f=i["a"].encode(t,u,l);return this.renderResult(f,n,s,c)},e.prototype.writeToDom=function(e,t,n,r,i){void 0===i&&(i=null),"string"===typeof e&&(e=document.querySelector(e));var o=this.write(t,n,r,i);e&&e.appendChild(o)},e.prototype.renderResult=function(e,t,n,r){var i=e.getMatrix();if(null===i)throw new s["a"];for(var o=i.getWidth(),a=i.getHeight(),l=o+2*r,u=a+2*r,c=Math.max(t,l),f=Math.max(n,u),d=Math.min(Math.floor(c/l),Math.floor(f/u)),h=Math.floor((c-o*d)/2),p=Math.floor((f-a*d)/2),m=this.createSVGElement(c,f),g=0,v=p;g<a;g++,v+=d)for(var b=0,y=h;b<o;b++,y+=d)if(1===i.get(b,g)){var w=this.createSvgRectElement(y,v,d,d);m.appendChild(w)}return m},e.prototype.createSVGElement=function(t,n){var r=document.createElementNS(e.SVG_NS,"svg");return r.setAttributeNS(null,"height",t.toString()),r.setAttributeNS(null,"width",n.toString()),r},e.prototype.createSvgRectElement=function(t,n,r,i){var o=document.createElementNS(e.SVG_NS,"rect");return o.setAttributeNS(null,"x",t.toString()),o.setAttributeNS(null,"y",n.toString()),o.setAttributeNS(null,"height",r.toString()),o.setAttributeNS(null,"width",i.toString()),o.setAttributeNS(null,"fill","#000000"),o},e.QUIET_ZONE_SIZE=4,e.SVG_NS="http://www.w3.org/2000/svg"})()},"990b":function(e,t,n){var r=n("9093"),i=n("2621"),o=n("cb7c"),a=n("7726").Reflect;e.exports=a&&a.ownKeys||function(e){var t=r.f(o(e)),n=i.f;return n?t.concat(n(e)):t}},"99de":function(e,t,n){"use strict";var r=n("53ca");function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e,t){if(t&&("object"===Object(r["a"])(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)}n.d(t,"a",(function(){return o}))},"9aa9":function(e,t){t.f=Object.getOwnPropertySymbols},"9b43":function(e,t,n){var r=n("d8e8");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"9b99":function(e,t,n){"use strict";n("6339")},"9c59":function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;function i(e){for(var t,n=/([^=?&]+)=?([^&]*)/g,r={};t=n.exec(e);r[decodeURIComponent(t[1])]=decodeURIComponent(t[2]));return r}function o(e,t){t=t||"";var n=[];for(var i in"string"!==typeof t&&(t="?"),e)r.call(e,i)&&n.push(encodeURIComponent(i)+"="+encodeURIComponent(e[i]));return n.length?t+n.join("&"):""}t.stringify=o,t.parse=i},"9c6c":function(e,t,n){var r=n("2b4c")("unscopables"),i=Array.prototype;void 0==i[r]&&n("32e9")(i,r,{}),e.exports=function(e){i[r][e]=!0}},"9c80":function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(t){return{e:!0,v:t}}}},"9cca":function(e,t,n){"use strict";var r=n("d0b6"),i=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.kind="IllegalStateException",t}(r["a"]);t["a"]=o},"9d99":function(e,t,n){},"9dcc":function(e,t,n){"use strict";var r=n("d0b6"),i=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.kind="IndexOutOfBoundsException",t}(r["a"]);t["a"]=o},"9def":function(e,t,n){var r=n("4588"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},"9e1c":function(e,t,n){n("7d6d"),e.exports=n("584a").Object.values},"9e1e":function(e,t,n){e.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"9fa8":function(e,t,n){"use strict";var r=n("f505"),i=n("ee54"),o=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(e){function t(t){return void 0===t&&(t=500),e.call(this,new i["a"],t)||this}o(t,e)})(r["a"])},a0cf:function(e,t,n){"use strict";var r=function(){function e(e,t,n,r,i,o,a,s,l){this.a11=e,this.a21=t,this.a31=n,this.a12=r,this.a22=i,this.a32=o,this.a13=a,this.a23=s,this.a33=l}return e.quadrilateralToQuadrilateral=function(t,n,r,i,o,a,s,l,u,c,f,d,h,p,m,g){var v=e.quadrilateralToSquare(t,n,r,i,o,a,s,l),b=e.squareToQuadrilateral(u,c,f,d,h,p,m,g);return b.times(v)},e.prototype.transformPoints=function(e){for(var t=e.length,n=this.a11,r=this.a12,i=this.a13,o=this.a21,a=this.a22,s=this.a23,l=this.a31,u=this.a32,c=this.a33,f=0;f<t;f+=2){var d=e[f],h=e[f+1],p=i*d+s*h+c;e[f]=(n*d+o*h+l)/p,e[f+1]=(r*d+a*h+u)/p}},e.prototype.transformPointsWithValues=function(e,t){for(var n=this.a11,r=this.a12,i=this.a13,o=this.a21,a=this.a22,s=this.a23,l=this.a31,u=this.a32,c=this.a33,f=e.length,d=0;d<f;d++){var h=e[d],p=t[d],m=i*h+s*p+c;e[d]=(n*h+o*p+l)/m,t[d]=(r*h+a*p+u)/m}},e.squareToQuadrilateral=function(t,n,r,i,o,a,s,l){var u=t-r+o-s,c=n-i+a-l;if(0===u&&0===c)return new e(r-t,o-r,t,i-n,a-i,n,0,0,1);var f=r-o,d=s-o,h=i-a,p=l-a,m=f*p-d*h,g=(u*p-d*c)/m,v=(f*c-u*h)/m;return new e(r-t+g*r,s-t+v*s,t,i-n+g*i,l-n+v*l,n,g,v,1)},e.quadrilateralToSquare=function(t,n,r,i,o,a,s,l){return e.squareToQuadrilateral(t,n,r,i,o,a,s,l).buildAdjoint()},e.prototype.buildAdjoint=function(){return new e(this.a22*this.a33-this.a23*this.a32,this.a23*this.a31-this.a21*this.a33,this.a21*this.a32-this.a22*this.a31,this.a13*this.a32-this.a12*this.a33,this.a11*this.a33-this.a13*this.a31,this.a12*this.a31-this.a11*this.a32,this.a12*this.a23-this.a13*this.a22,this.a13*this.a21-this.a11*this.a23,this.a11*this.a22-this.a12*this.a21)},e.prototype.times=function(t){return new e(this.a11*t.a11+this.a21*t.a12+this.a31*t.a13,this.a11*t.a21+this.a21*t.a22+this.a31*t.a23,this.a11*t.a31+this.a21*t.a32+this.a31*t.a33,this.a12*t.a11+this.a22*t.a12+this.a32*t.a13,this.a12*t.a21+this.a22*t.a22+this.a32*t.a23,this.a12*t.a31+this.a22*t.a32+this.a32*t.a33,this.a13*t.a11+this.a23*t.a12+this.a33*t.a13,this.a13*t.a21+this.a23*t.a22+this.a33*t.a23,this.a13*t.a31+this.a23*t.a32+this.a33*t.a33)},e}();t["a"]=r},a159:function(e,t,n){var r=n("e4ae"),i=n("7e90"),o=n("1691"),a=n("5559")("IE_PROTO"),s=function(){},l="prototype",u=function(){var e,t=n("1ec9")("iframe"),r=o.length,i="<",a=">";t.style.display="none",n("32fc").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+a+"document.F=Object"+i+"/script"+a),e.close(),u=e.F;while(r--)delete u[l][o[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[l]=r(e),n=new s,s[l]=null,n[a]=e):n=u(),void 0===t?n:i(n,t)}},a15e:function(e,t,n){"use strict";n.r(t);var r=n("41b2"),i=n.n(r),o=n("1098"),a=n.n(o),s=/%[sdj%]/g,l=function(){};function u(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=1,i=t[0],o=t.length;if("function"===typeof i)return i.apply(null,t.slice(1));if("string"===typeof i){for(var a=String(i).replace(s,(function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(n){return"[Circular]"}break;default:return e}})),l=t[r];r<o;l=t[++r])a+=" "+l;return a}return i}function c(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"pattern"===e}function f(e,t){return void 0===e||null===e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!c(t)||"string"!==typeof e||e))}function d(e,t,n){var r=[],i=0,o=e.length;function a(e){r.push.apply(r,e),i++,i===o&&n(r)}e.forEach((function(e){t(e,a)}))}function h(e,t,n){var r=0,i=e.length;function o(a){if(a&&a.length)n(a);else{var s=r;r+=1,s<i?t(e[s],o):n([])}}o([])}function p(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n])})),t}function m(e,t,n,r){if(t.first){var i=p(e);return h(i,n,r)}var o=t.firstFields||[];!0===o&&(o=Object.keys(e));var a=Object.keys(e),s=a.length,l=0,u=[],c=function(e){u.push.apply(u,e),l++,l===s&&r(u)};a.forEach((function(t){var r=e[t];-1!==o.indexOf(t)?h(r,n,c):d(r,n,c)}))}function g(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:t,field:t.field||e.fullField}}}function v(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===("undefined"===typeof r?"undefined":a()(r))&&"object"===a()(e[n])?e[n]=i()({},e[n],r):e[n]=r}return e}function b(e,t,n,r,i,o){!e.required||n.hasOwnProperty(e.field)&&!f(t,o||e.type)||r.push(u(i.messages.required,e.fullField))}var y=b;function w(e,t,n,r,i){(/^\s+$/.test(t)||""===t)&&r.push(u(i.messages.whitespace,e.fullField))}var _=w,C={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},x={integer:function(e){return x.number(e)&&parseInt(e,10)===e},float:function(e){return x.number(e)&&!x.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear},number:function(e){return!isNaN(e)&&"number"===typeof e},object:function(e){return"object"===("undefined"===typeof e?"undefined":a()(e))&&!x.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&!!e.match(C.email)&&e.length<255},url:function(e){return"string"===typeof e&&!!e.match(C.url)},hex:function(e){return"string"===typeof e&&!!e.match(C.hex)}};function S(e,t,n,r,i){if(e.required&&void 0===t)y(e,t,n,r,i);else{var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=e.type;o.indexOf(s)>-1?x[s](t)||r.push(u(i.messages.types[s],e.fullField,e.type)):s&&("undefined"===typeof t?"undefined":a()(t))!==e.type&&r.push(u(i.messages.types[s],e.fullField,e.type))}}var k=S;function D(e,t,n,r,i){var o="number"===typeof e.len,a="number"===typeof e.min,s="number"===typeof e.max,l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=t,f=null,d="number"===typeof t,h="string"===typeof t,p=Array.isArray(t);if(d?f="number":h?f="string":p&&(f="array"),!f)return!1;p&&(c=t.length),h&&(c=t.replace(l,"_").length),o?c!==e.len&&r.push(u(i.messages[f].len,e.fullField,e.len)):a&&!s&&c<e.min?r.push(u(i.messages[f].min,e.fullField,e.min)):s&&!a&&c>e.max?r.push(u(i.messages[f].max,e.fullField,e.max)):a&&s&&(c<e.min||c>e.max)&&r.push(u(i.messages[f].range,e.fullField,e.min,e.max))}var O=D,T="enum";function E(e,t,n,r,i){e[T]=Array.isArray(e[T])?e[T]:[],-1===e[T].indexOf(t)&&r.push(u(i.messages[T],e.fullField,e[T].join(", ")))}var I=E;function N(e,t,n,r,i){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(u(i.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){var o=new RegExp(e.pattern);o.test(t)||r.push(u(i.messages.pattern.mismatch,e.fullField,t,e.pattern))}}var A=N,P={required:y,whitespace:_,type:k,range:O,enum:I,pattern:A};function M(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t,"string")&&!e.required)return n();P.required(e,t,r,o,i,"string"),f(t,"string")||(P.type(e,t,r,o,i),P.range(e,t,r,o,i),P.pattern(e,t,r,o,i),!0===e.whitespace&&P.whitespace(e,t,r,o,i))}n(o)}var R=M;function F(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();P.required(e,t,r,o,i),void 0!==t&&P.type(e,t,r,o,i)}n(o)}var B=F;function L(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();P.required(e,t,r,o,i),void 0!==t&&(P.type(e,t,r,o,i),P.range(e,t,r,o,i))}n(o)}var $=L;function V(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();P.required(e,t,r,o,i),void 0!==t&&P.type(e,t,r,o,i)}n(o)}var j=V;function z(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();P.required(e,t,r,o,i),f(t)||P.type(e,t,r,o,i)}n(o)}var H=z;function U(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();P.required(e,t,r,o,i),void 0!==t&&(P.type(e,t,r,o,i),P.range(e,t,r,o,i))}n(o)}var W=U;function q(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();P.required(e,t,r,o,i),void 0!==t&&(P.type(e,t,r,o,i),P.range(e,t,r,o,i))}n(o)}var G=q;function Y(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t,"array")&&!e.required)return n();P.required(e,t,r,o,i,"array"),f(t,"array")||(P.type(e,t,r,o,i),P.range(e,t,r,o,i))}n(o)}var K=Y;function X(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();P.required(e,t,r,o,i),void 0!==t&&P.type(e,t,r,o,i)}n(o)}var J=X,Z="enum";function Q(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();P.required(e,t,r,o,i),t&&P[Z](e,t,r,o,i)}n(o)}var ee=Q;function te(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t,"string")&&!e.required)return n();P.required(e,t,r,o,i),f(t,"string")||P.pattern(e,t,r,o,i)}n(o)}var ne=te;function re(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();if(P.required(e,t,r,o,i),!f(t)){var s=void 0;s="number"===typeof t?new Date(t):t,P.type(e,s,r,o,i),s&&P.range(e,s.getTime(),r,o,i)}}n(o)}var ie=re;function oe(e,t,n,r,i){var o=[],s=Array.isArray(t)?"array":"undefined"===typeof t?"undefined":a()(t);P.required(e,t,r,o,i,s),n(o)}var ae=oe;function se(e,t,n,r,i){var o=e.type,a=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(f(t,o)&&!e.required)return n();P.required(e,t,r,a,i,o),f(t,o)||P.type(e,t,r,a,i)}n(a)}var le=se,ue={string:R,method:B,number:$,boolean:j,regexp:H,integer:W,float:G,array:K,object:J,enum:ee,pattern:ne,date:ie,url:le,hex:le,email:le,required:ae};function ce(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var fe=ce();function de(e){this.rules=null,this._messages=fe,this.define(e)}de.prototype={messages:function(e){return e&&(this._messages=v(ce(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==("undefined"===typeof e?"undefined":a()(e))||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var t=void 0,n=void 0;for(t in e)e.hasOwnProperty(t)&&(n=e[t],this.rules[t]=Array.isArray(n)?n:[n])},validate:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments[2],o=e,s=n,c=r;if("function"===typeof s&&(c=s,s={}),this.rules&&0!==Object.keys(this.rules).length){if(s.messages){var f=this.messages();f===fe&&(f=ce()),v(f,s.messages),s.messages=f}else s.messages=this.messages();var d=void 0,h=void 0,p={},b=s.keys||Object.keys(this.rules);b.forEach((function(n){d=t.rules[n],h=o[n],d.forEach((function(r){var a=r;"function"===typeof a.transform&&(o===e&&(o=i()({},o)),h=o[n]=a.transform(h)),a="function"===typeof a?{validator:a}:i()({},a),a.validator=t.getValidationMethod(a),a.field=n,a.fullField=a.fullField||n,a.type=t.getType(a),a.validator&&(p[n]=p[n]||[],p[n].push({rule:a,value:h,source:o,field:n}))}))}));var y={};m(p,s,(function(e,t){var n=e.rule,r=("object"===n.type||"array"===n.type)&&("object"===a()(n.fields)||"object"===a()(n.defaultField));function o(e,t){return i()({},t,{fullField:n.fullField+"."+e})}function c(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],c=a;if(Array.isArray(c)||(c=[c]),c.length&&l("async-validator:",c),c.length&&n.message&&(c=[].concat(n.message)),c=c.map(g(n)),s.first&&c.length)return y[n.field]=1,t(c);if(r){if(n.required&&!e.value)return c=n.message?[].concat(n.message).map(g(n)):s.error?[s.error(n,u(s.messages.required,n.field))]:[],t(c);var f={};if(n.defaultField)for(var d in e.value)e.value.hasOwnProperty(d)&&(f[d]=n.defaultField);for(var h in f=i()({},f,e.rule.fields),f)if(f.hasOwnProperty(h)){var p=Array.isArray(f[h])?f[h]:[f[h]];f[h]=p.map(o.bind(null,h))}var m=new de(f);m.messages(s.messages),e.rule.options&&(e.rule.options.messages=s.messages,e.rule.options.error=s.error),m.validate(e.value,e.rule.options||s,(function(e){t(e&&e.length?c.concat(e):e)}))}else t(c)}r=r&&(n.required||!n.required&&e.value),n.field=e.field;var f=n.validator(n,e.value,c,e.source,s);f&&f.then&&f.then((function(){return c()}),(function(e){return c(e)}))}),(function(e){w(e)}))}else c&&c();function w(e){var t=void 0,n=void 0,r=[],i={};function o(e){Array.isArray(e)?r=r.concat.apply(r,e):r.push(e)}for(t=0;t<e.length;t++)o(e[t]);if(r.length)for(t=0;t<r.length;t++)n=r[t].field,i[n]=i[n]||[],i[n].push(r[t]);else r=null,i=null;c(r,i)}},getType:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!==typeof e.validator&&e.type&&!ue.hasOwnProperty(e.type))throw new Error(u("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if("function"===typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?ue.required:ue[this.getType(e)]||!1}},de.register=function(e,t){if("function"!==typeof t)throw new Error("Cannot register a validator by type, validator is not a function");ue[e]=t},de.messages=fe;t["default"]=de},a1ce:function(e,t,n){var r=n("63b6"),i=n("25eb"),o=n("294c"),a=n("e692"),s="["+a+"]",l="
",u=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),f=function(e,t,n){var i={},s=o((function(){return!!a[e]()||l[e]()!=l})),u=i[e]=s?t(d):a[e];n&&(i[n]=u),r(r.P+r.F*s,"String",i)},d=f.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(u,"")),2&t&&(e=e.replace(c,"")),e};e.exports=f},a21f:function(e,t,n){var r=n("584a"),i=r.JSON||(r.JSON={stringify:JSON.stringify});e.exports=function(e){return i.stringify.apply(i,arguments)}},a22a:function(e,t,n){var r=n("d864"),i=n("b0dc"),o=n("3702"),a=n("e4ae"),s=n("b447"),l=n("7cd6"),u={},c={};t=e.exports=function(e,t,n,f,d){var h,p,m,g,v=d?function(){return e}:l(e),b=r(n,f,t?2:1),y=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(o(v)){for(h=s(e.length);h>y;y++)if(g=t?b(a(p=e[y])[0],p[1]):b(e[y]),g===u||g===c)return g}else for(m=v.call(e);!(p=m.next()).done;)if(g=i(m,b,p.value,t),g===u||g===c)return g};t.BREAK=u,t.RETURN=c},a25f:function(e,t,n){var r=n("7726"),i=r.navigator;e.exports=i&&i.userAgent||""},a363:function(e,t,n){"use strict";var r;(function(e){e[e["AZTEC"]=0]="AZTEC",e[e["CODABAR"]=1]="CODABAR",e[e["CODE_39"]=2]="CODE_39",e[e["CODE_93"]=3]="CODE_93",e[e["CODE_128"]=4]="CODE_128",e[e["DATA_MATRIX"]=5]="DATA_MATRIX",e[e["EAN_8"]=6]="EAN_8",e[e["EAN_13"]=7]="EAN_13",e[e["ITF"]=8]="ITF",e[e["MAXICODE"]=9]="MAXICODE",e[e["PDF_417"]=10]="PDF_417",e[e["QR_CODE"]=11]="QR_CODE",e[e["RSS_14"]=12]="RSS_14",e[e["RSS_EXPANDED"]=13]="RSS_EXPANDED",e[e["UPC_A"]=14]="UPC_A",e[e["UPC_E"]=15]="UPC_E",e[e["UPC_EAN_EXTENSION"]=16]="UPC_EAN_EXTENSION"})(r||(r={})),t["a"]=r},a38e:function(e,t,n){"use strict";var r=n("53ca");function i(e,t){if("object"!=Object(r["a"])(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Object(r["a"])(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function o(e){var t=i(e,"string");return"symbol"==Object(r["a"])(t)?t:t+""}n.d(t,"a",(function(){return o}))},a3c3:function(e,t,n){var r=n("63b6");r(r.S+r.F,"Object",{assign:n("9306")})},a3de:function(e,t,n){"use strict";var r=!("undefined"===typeof window||!window.document||!window.document.createElement),i={canUseDOM:r,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};e.exports=i},a481:function(e,t,n){"use strict";var r=n("cb7c"),i=n("4bf8"),o=n("9def"),a=n("4588"),s=n("0390"),l=n("5f1b"),u=Math.max,c=Math.min,f=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,h=/\$([$&`']|\d\d?)/g,p=function(e){return void 0===e?e:String(e)};n("214f")("replace",2,(function(e,t,n,m){return[function(r,i){var o=e(this),a=void 0==r?void 0:r[t];return void 0!==a?a.call(r,o,i):n.call(String(o),r,i)},function(e,t){var i=m(n,e,this,t);if(i.done)return i.value;var f=r(e),d=String(this),h="function"===typeof t;h||(t=String(t));var v=f.global;if(v){var b=f.unicode;f.lastIndex=0}var y=[];while(1){var w=l(f,d);if(null===w)break;if(y.push(w),!v)break;var _=String(w[0]);""===_&&(f.lastIndex=s(d,o(f.lastIndex),b))}for(var C="",x=0,S=0;S<y.length;S++){w=y[S];for(var k=String(w[0]),D=u(c(a(w.index),d.length),0),O=[],T=1;T<w.length;T++)O.push(p(w[T]));var E=w.groups;if(h){var I=[k].concat(O,D,d);void 0!==E&&I.push(E);var N=String(t.apply(void 0,I))}else N=g(k,d,D,O,E,t);D>=x&&(C+=d.slice(x,D)+N,x=D+k.length)}return C+d.slice(x)}];function g(e,t,r,o,a,s){var l=r+e.length,u=o.length,c=h;return void 0!==a&&(a=i(a),c=d),n.call(s,c,(function(n,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(l);case"<":s=a[i.slice(1,-1)];break;default:var c=+i;if(0===c)return n;if(c>u){var d=f(c/10);return 0===d?n:d<=u?void 0===o[d-1]?i.charAt(1):o[d-1]+i.charAt(1):n}s=o[c-1]}return void 0===s?"":s}))}}))},a593:function(e,t,n){"use strict";var r=function(){function e(){this.segmentCount=-1,this.fileSize=-1,this.timestamp=-1,this.checksum=-1}return e.prototype.getSegmentIndex=function(){return this.segmentIndex},e.prototype.setSegmentIndex=function(e){this.segmentIndex=e},e.prototype.getFileId=function(){return this.fileId},e.prototype.setFileId=function(e){this.fileId=e},e.prototype.getOptionalData=function(){return this.optionalData},e.prototype.setOptionalData=function(e){this.optionalData=e},e.prototype.isLastSegment=function(){return this.lastSegment},e.prototype.setLastSegment=function(e){this.lastSegment=e},e.prototype.getSegmentCount=function(){return this.segmentCount},e.prototype.setSegmentCount=function(e){this.segmentCount=e},e.prototype.getSender=function(){return this.sender||null},e.prototype.setSender=function(e){this.sender=e},e.prototype.getAddressee=function(){return this.addressee||null},e.prototype.setAddressee=function(e){this.addressee=e},e.prototype.getFileName=function(){return this.fileName},e.prototype.setFileName=function(e){this.fileName=e},e.prototype.getFileSize=function(){return this.fileSize},e.prototype.setFileSize=function(e){this.fileSize=e},e.prototype.getChecksum=function(){return this.checksum},e.prototype.setChecksum=function(e){this.checksum=e},e.prototype.getTimestamp=function(){return this.timestamp},e.prototype.setTimestamp=function(e){this.timestamp=e},e}();t["a"]=r},a5b8:function(e,t,n){"use strict";var r=n("d8e8");function i(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)}e.exports.f=function(e){return new i(e)}},a5cb:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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="/dist/",n(n.s=76)}({1:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var l,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},11:function(e,t){e.exports=n("5ea8")},14:function(e,t){e.exports=n("2ffe")},18:function(e,t){e.exports=n("41b2")},22:function(e,t){e.exports=n("cda1")},25:function(e,t){e.exports=n("8827")},26:function(e,t){e.exports=n("6864")},3:function(e,t){e.exports=n("bf32")},34:function(e,t){e.exports=n("92fa")},37:function(e,t){e.exports=n("e5da")},46:function(e,t){e.exports=n("57ba")},47:function(e,t){e.exports=n("d192")},5:function(e,t){e.exports=n("87ec")},66:function(e,t){e.exports=n("d03f")},67:function(e,t){e.exports=n("89c1")},76:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{class:["el-cascader-panel",this.border&&"is-bordered",this.size&&"el-cascader-panel--"+this.size],on:{keydown:this.handleKeyDown}},this._l(this.menus,(function(e,n){return t("cascader-menu",{key:n,ref:"menu",refInFor:!0,attrs:{index:n,nodes:e}})})),1)};r._withStripped=!0;var i=n(18),o=n.n(i),a=n(34),s=n.n(a),l=n(14),u=n.n(l),c=n(22),f=n.n(c),d=n(66),h=n.n(d),p=n(3),m=function(e){return e.stopPropagation()},g={inject:["panel"],components:{ElCheckbox:f.a,ElRadio:h.a},props:{node:{required:!0},nodeId:String},computed:{config:function(){return this.panel.config},isLeaf:function(){return this.node.isLeaf},isDisabled:function(){return this.node.isDisabled},checkedValue:function(){return this.panel.checkedValue},isChecked:function(){return this.node.isSameNode(this.checkedValue)},inActivePath:function(){return this.isInPath(this.panel.activePath)},inCheckedPath:function(){var e=this;return!!this.config.checkStrictly&&this.panel.checkedNodePaths.some((function(t){return e.isInPath(t)}))},value:function(){return this.node.getValueByOption()}},methods:{handleExpand:function(){var e=this,t=this.panel,n=this.node,r=this.isDisabled,i=this.config,o=i.multiple;!i.checkStrictly&&r||n.loading||(i.lazy&&!n.loaded?t.lazyLoad(n,(function(){var t=e.isLeaf;if(t||e.handleExpand(),o){var r=!!t&&n.checked;e.handleMultiCheckChange(r)}})):t.handleExpand(n))},handleCheckChange:function(){var e=this.panel,t=this.value,n=this.node;e.handleCheckChange(t),e.handleExpand(n)},handleMultiCheckChange:function(e){this.node.doCheck(e),this.panel.calculateMultiCheckedValue()},isInPath:function(e){var t=this.node;return(e[t.level-1]||{}).uid===t.uid},renderPrefix:function(e){var t=this.isLeaf,n=this.isChecked,r=this.config,i=r.checkStrictly;return r.multiple?this.renderCheckbox(e):i?this.renderRadio(e):t&&n?this.renderCheckIcon(e):null},renderPostfix:function(e){var t=this.node,n=this.isLeaf;return t.loading?this.renderLoadingIcon(e):n?null:this.renderExpandIcon(e)},renderCheckbox:function(){var e=this.$createElement,t=this.node,n=this.config,r=this.isDisabled,i={on:{change:this.handleMultiCheckChange},nativeOn:{}};return n.checkStrictly&&(i.nativeOn.click=m),e("el-checkbox",s()([{attrs:{value:t.checked,indeterminate:t.indeterminate,disabled:r}},i]))},renderRadio:function(){var e=this.$createElement,t=this.checkedValue,n=this.isDisabled,r=this.value;return Object(p.isEqual)(r,t)&&(r=t),e("el-radio",{attrs:{value:t,label:r,disabled:n},on:{change:this.handleCheckChange},nativeOn:{click:m}},[e("span")])},renderCheckIcon:function(){return(0,this.$createElement)("i",{class:"el-icon-check el-cascader-node__prefix"})},renderLoadingIcon:function(){return(0,this.$createElement)("i",{class:"el-icon-loading el-cascader-node__postfix"})},renderExpandIcon:function(){return(0,this.$createElement)("i",{class:"el-icon-arrow-right el-cascader-node__postfix"})},renderContent:function(){var e=this.$createElement,t=this.panel,n=this.node,r=t.renderLabelFn;return e("span",{class:"el-cascader-node__label"},[(r?r({node:n,data:n.data}):null)||n.label])}},render:function(e){var t=this,n=this.inActivePath,r=this.inCheckedPath,i=this.isChecked,o=this.isLeaf,a=this.isDisabled,l=this.config,u=this.nodeId,c=l.expandTrigger,f=l.checkStrictly,d=l.multiple,h=!f&&a,p={on:{}};return"click"===c?p.on.click=this.handleExpand:(p.on.mouseenter=function(e){t.handleExpand(),t.$emit("expand",e)},p.on.focus=function(e){t.handleExpand(),t.$emit("expand",e)}),!o||a||f||d||(p.on.click=this.handleCheckChange),e("li",s()([{attrs:{role:"menuitem",id:u,"aria-expanded":n,tabindex:h?null:-1},class:{"el-cascader-node":!0,"is-selectable":f,"in-active-path":n,"in-checked-path":r,"is-active":i,"is-disabled":h}},p]),[this.renderPrefix(e),this.renderContent(e),this.renderPostfix(e)])}},v=n(1),b=Object(v.a)(g,void 0,void 0,!1,null,null,null);b.options.__file="packages/cascader-panel/src/cascader-node.vue";var y=b.exports,w=n(5),_=n.n(w),C={name:"ElCascaderVirtualScrollItem",components:{CascaderNode:y},props:{index:{type:Number},source:{type:Object,default:function(){return{}}},menuId:{type:String,default:function(){return""}}},render:function(){var e=arguments[0],t=this.source,n=this.menuId,r=this.index;return e("cascader-node",{key:t.id,attrs:{node:t,"node-id":n+"-"+r,"aria-haspopup":t.hasChildren,"aria-owns":t.hasChildren?n:null}})}},x=Object(v.a)(C,void 0,void 0,!1,null,null,null);x.options.__file="packages/cascader-panel/src/cascader-virtual-scroll-item.vue";var S=x.exports,k=n(67),D=n.n(k),O={name:"ElCascaderMenu",mixins:[_.a],inject:["panel"],components:{ElScrollbar:u.a,CascaderNode:y,"virtual-list":D.a},props:{nodes:{type:Array,required:!0},index:Number},data:function(){return{activeNode:null,hoverTimer:null,id:Object(p.generateId)(),virtualListProps:{}}},computed:{isEmpty:function(){return!this.nodes.length},menuId:function(){return"cascader-menu-"+this.id+"-"+this.index}},methods:{handleExpand:function(e){this.activeNode=e.target},handleMouseMove:function(e){var t=this.activeNode,n=this.hoverTimer,r=this.$refs.hoverZone;if(t&&r)if(t.contains(e.target)){clearTimeout(n);var i=this.$el.getBoundingClientRect().left,o=e.clientX-i,a=this.$el,s=a.offsetWidth,l=a.offsetHeight,u=t.offsetTop,c=u+t.offsetHeight;r.innerHTML='\n <path style="pointer-events: auto;" fill="transparent" d="M'+o+" "+u+" L"+s+" 0 V"+u+' Z" />\n <path style="pointer-events: auto;" fill="transparent" d="M'+o+" "+c+" L"+s+" "+l+" V"+c+' Z" />\n '}else n||(this.hoverTimer=setTimeout(this.clearHoverZone,this.panel.config.hoverThreshold))},clearHoverZone:function(){var e=this.$refs.hoverZone;e&&(e.innerHTML="")},renderEmptyText:function(){return(0,this.$createElement)("div",{class:"el-cascader-menu__empty-text"},[this.t("el.cascader.noData")])},renderNodeList:function(){var e=this.$createElement,t=this.menuId,n=this.nodes,r=this.panel,i=r.isHoverMenu,o=r.config,a={on:{}};i&&(a.on.expand=this.handleExpand),this.virtualListProps.menuId=t;var l=this.nodes.map((function(n,r){var i=n.hasChildren;return e("cascader-node",s()([{key:n.uid,attrs:{node:n,"node-id":t+"-"+r,"aria-haspopup":i,"aria-owns":i?t:null}},a]))}));return[o.virtualScroll?e("virtual-list",{ref:"virtualList",class:"el-cascader-menu__virtual-list",attrs:{"data-key":"uid","data-sources":n,"extra-props":this.virtualListProps,"data-component":S}}):[].concat(l),i?e("svg",{ref:"hoverZone",class:"el-cascader-menu__hover-zone"}):null]}},render:function(e){var t=this.isEmpty,n=this.menuId,r=this.panel.config,i={nativeOn:{}};return this.panel.isHoverMenu&&(i.nativeOn.mousemove=this.handleMouseMove),r.virtualScroll?e("div",{class:"el-cascader-menu"},[t?this.renderEmptyText():this.renderNodeList(e)]):e("el-scrollbar",s()([{attrs:{tag:"ul",role:"menu",id:n,"wrap-class":"el-cascader-menu__wrap","view-class":{"el-cascader-menu__list":!0,"is-empty":t}},class:"el-cascader-menu"},i]),[t?this.renderEmptyText(e):this.renderNodeList(e)])}},T=Object(v.a)(O,void 0,void 0,!1,null,null,null);T.options.__file="packages/cascader-panel/src/cascader-menu.vue";var E=T.exports,I=n(25),N=n.n(I),A=n(46),P=n.n(A),M=n(26),R=0,F=function(){function e(t,n,r){N()(this,e),this.data=t,this.config=n,this.parent=r||null,this.level=this.parent?this.parent.level+1:1,this.uid=R++,this.initState(),this.initChildren()}return e.prototype.initState=function(){var e=this.config,t=e.value,n=e.label;this.value=this.data[t],this.label=this.data[n],this.pathNodes=this.calculatePathNodes(),this.path=this.pathNodes.map((function(e){return e.value})),this.pathLabels=this.pathNodes.map((function(e){return e.label})),this.loading=!1,this.loaded=!1},e.prototype.initChildren=function(){var t=this,n=this.config,r=n.children,i=this.data[r];this.hasChildren=Array.isArray(i),this.children=(i||[]).map((function(r){return new e(r,n,t)}))},e.prototype.calculatePathNodes=function(){for(var e=[this],t=this.parent;t;)e.unshift(t),t=t.parent;return e},e.prototype.getPath=function(){return this.path},e.prototype.getValue=function(){return this.value},e.prototype.getValueByOption=function(){return this.config.emitPath?this.getPath():this.getValue()},e.prototype.getText=function(e,t){return e?this.pathLabels.join(t):this.label},e.prototype.isSameNode=function(e){var t=this.getValueByOption();return this.config.multiple&&Array.isArray(e)?e.some((function(e){return Object(p.isEqual)(e,t)})):Object(p.isEqual)(e,t)},e.prototype.broadcast=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i="onParent"+Object(p.capitalize)(e);this.children.forEach((function(t){t&&(t.broadcast.apply(t,[e].concat(n)),t[i]&&t[i].apply(t,n))}))},e.prototype.emit=function(e){var t=this.parent,n="onChild"+Object(p.capitalize)(e);if(t){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];t[n]&&t[n].apply(t,i),t.emit.apply(t,[e].concat(i))}},e.prototype.onParentCheck=function(e){this.isDisabled||this.setCheckState(e)},e.prototype.onChildCheck=function(){var e=this.children.filter((function(e){return!e.isDisabled})),t=!!e.length&&e.every((function(e){return e.checked}));this.setCheckState(t)},e.prototype.setCheckState=function(e){var t=this.children.length,n=this.children.reduce((function(e,t){return e+(t.checked?1:t.indeterminate?.5:0)}),0);this.checked=e,this.indeterminate=n!==t&&n>0},e.prototype.syncCheckState=function(e){var t=this.getValueByOption(),n=this.isSameNode(e,t);this.doCheck(n)},e.prototype.doCheck=function(e){this.checked!==e&&(this.config.checkStrictly?this.checked=e:(this.broadcast("check",e),this.setCheckState(e),this.emit("check")))},P()(e,[{key:"isDisabled",get:function(){var e=this.data,t=this.parent,n=this.config,r=n.disabled,i=n.checkStrictly;return e[r]||!i&&t&&t.isDisabled}},{key:"isLeaf",get:function(){var e=this.data,t=this.loaded,n=this.hasChildren,r=this.children,i=this.config,o=i.lazy,a=i.leaf;if(o){var s=Object(M.isDef)(e[a])?e[a]:!!t&&!r.length;return this.hasChildren=!s,s}return!n}}]),e}(),B=function e(t,n){return t.reduce((function(t,r){return r.isLeaf?t.push(r):(!n&&t.push(r),t=t.concat(e(r.children,n))),t}),[])},L=function(){function e(t,n){N()(this,e),this.config=n,this.initNodes(t)}return e.prototype.initNodes=function(e){var t=this;e=Object(p.coerceTruthyValueToArray)(e),this.nodes=e.map((function(e){return new F(e,t.config)})),this.flattedNodes=this.getFlattedNodes(!1,!1),this.leafNodes=this.getFlattedNodes(!0,!1)},e.prototype.appendNode=function(e,t){var n=new F(e,this.config,t);(t?t.children:this.nodes).push(n)},e.prototype.appendNodes=function(e,t){var n=this;(e=Object(p.coerceTruthyValueToArray)(e)).forEach((function(e){return n.appendNode(e,t)}))},e.prototype.getNodes=function(){return this.nodes},e.prototype.getFlattedNodes=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e?this.leafNodes:this.flattedNodes;return t?n:B(this.nodes,e)},e.prototype.getNodeByValue=function(e){var t=this.getFlattedNodes(!1,!this.config.lazy).filter((function(t){return Object(p.valueEquals)(t.path,e)||t.value===e}));return t&&t.length?t[0]:null},e}(),$=n(11),V=n.n($),j=n(47),z=n.n(j),H=n(37),U=n.n(H),W=z.a.keys,q={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:p.noop,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},G=function(e){return!e.getAttribute("aria-owns")},Y=function(e,t){var n=e.parentNode;if(n){var r=n.querySelectorAll('.el-cascader-node[tabindex="-1"]');return r[Array.prototype.indexOf.call(r,e)+t]||null}return null},K=function(e){if(e){var t=e.id.split("-");return Number(t[t.length-2])}},X=function(e){e&&(e.focus(),!G(e)&&e.click())},J={name:"ElCascaderPanel",components:{CascaderMenu:E},props:{value:{},options:Array,props:Object,border:{type:Boolean,default:!0},renderLabel:Function,size:String},provide:function(){return{panel:this}},data:function(){return{checkedValue:null,checkedNodePaths:[],store:[],menus:[],activePath:[],loadCount:0}},computed:{config:function(){return V()(o()({},q),this.props||{})},multiple:function(){return this.config.multiple},checkStrictly:function(){return this.config.checkStrictly},leafOnly:function(){return!this.checkStrictly},isHoverMenu:function(){return"hover"===this.config.expandTrigger},renderLabelFn:function(){return this.renderLabel||this.$scopedSlots.default}},watch:{options:{handler:function(){this.initStore()},immediate:!0,deep:!0},value:function(){this.syncCheckedValue(),this.checkStrictly&&this.calculateCheckedNodePaths()},checkedValue:function(e){Object(p.isEqual)(e,this.value)||(this.checkStrictly&&this.calculateCheckedNodePaths(),this.$emit("input",e),this.$emit("change",e))}},mounted:function(){this.isEmptyValue(this.value)||this.syncCheckedValue()},methods:{initStore:function(){var e=this.config,t=this.options;e.lazy&&Object(p.isEmpty)(t)?this.lazyLoad():(this.store=new L(t,e),this.menus=[this.store.getNodes()],this.syncMenuState())},syncCheckedValue:function(){var e=this.value,t=this.checkedValue;Object(p.isEqual)(e,t)||(this.activePath=[],this.checkedValue=e,this.syncMenuState())},syncMenuState:function(){var e=this.multiple,t=this.checkStrictly;this.syncActivePath(),e&&this.syncMultiCheckState(),t&&this.calculateCheckedNodePaths(),this.$nextTick(this.scrollIntoView)},syncMultiCheckState:function(){var e=this;this.getFlattedNodes(this.leafOnly).forEach((function(t){t.syncCheckState(e.checkedValue)}))},isEmptyValue:function(e){var t=this.multiple,n=this.config.emitPath;return!(!t&&!n)&&Object(p.isEmpty)(e)},syncActivePath:function(){var e=this,t=this.store,n=this.multiple,r=this.activePath,i=this.checkedValue;if(Object(p.isEmpty)(r))if(this.isEmptyValue(i))this.activePath=[],this.menus=[t.getNodes()];else{var o=n?i[0]:i,a=((this.getNodeByValue(o)||{}).pathNodes||[]).slice(0,-1);this.expandNodes(a)}else{var s=r.map((function(t){return e.getNodeByValue(t.getValue())}));this.expandNodes(s)}},expandNodes:function(e){var t=this;e.forEach((function(e){return t.handleExpand(e,!0)}))},calculateCheckedNodePaths:function(){var e=this,t=this.checkedValue,n=this.multiple?Object(p.coerceTruthyValueToArray)(t):[t];this.checkedNodePaths=n.map((function(t){var n=e.getNodeByValue(t);return n?n.pathNodes:[]}))},handleKeyDown:function(e){var t=e.target;switch(e.keyCode){case W.up:var n=Y(t,-1);X(n);break;case W.down:var r=Y(t,1);X(r);break;case W.left:var i=this.$refs.menu[K(t)-1];if(i){var o=i.$el.querySelector('.el-cascader-node[aria-expanded="true"]');X(o)}break;case W.right:var a=this.$refs.menu[K(t)+1];if(a){var s=a.$el.querySelector('.el-cascader-node[tabindex="-1"]');X(s)}break;case W.enter:!function(e){if(e){var t=e.querySelector("input");t?t.click():G(e)&&e.click()}}(t);break;case W.esc:case W.tab:this.$emit("close");break;default:return}},handleExpand:function(e,t){var n=this.activePath,r=e.level,i=n.slice(0,r-1),o=this.menus.slice(0,r);if(e.isLeaf||(i.push(e),o.push(e.children)),this.activePath=i,this.menus=o,!t){var a=i.map((function(e){return e.getValue()})),s=n.map((function(e){return e.getValue()}));Object(p.valueEquals)(a,s)||(this.$emit("active-item-change",a),this.$emit("expand-change",a))}},handleCheckChange:function(e){this.checkedValue=e},lazyLoad:function(e,t){var n=this,r=this.config;e||(e=e||{root:!0,level:0},this.store=new L([],r),this.menus=[this.store.getNodes()]),e.loading=!0,r.lazyLoad(e,(function(r){var i=e.root?null:e;if(r&&r.length&&n.store.appendNodes(r,i),e.loading=!1,e.loaded=!0,Array.isArray(n.checkedValue)){var o=n.checkedValue[n.loadCount++],a=n.config.value,s=n.config.leaf;if(Array.isArray(r)&&r.filter((function(e){return e[a]===o})).length>0){var l=n.store.getNodeByValue(o);l.data[s]||n.lazyLoad(l,(function(){n.handleExpand(l)})),n.loadCount===n.checkedValue.length&&n.$parent.computePresentText()}}t&&t(r)}))},calculateMultiCheckedValue:function(){this.checkedValue=this.getCheckedNodes(this.leafOnly).map((function(e){return e.getValueByOption()}))},scrollIntoView:function(){var e=this;this.$isServer||(this.$refs.menu||[]).forEach((function(t){var n=t.$el;if(e.config.virtualScroll){var r=-1;t.nodes.find((function(e,t){var n=e.inActivePath;return n&&(r=t),n})),-1!==r?t.$refs.virtualList&&t.$refs.virtualList.scrollToIndex(r):(t.nodes.find((function(e,t){var n=e.checked||e.indeterminate;return n&&(r=t),n})),t.$refs.virtualList&&-1===r?t.$refs.virtualList.reset():t.$refs.virtualList.scrollToIndex(r))}else if(n){var i=n.querySelector(".el-scrollbar__wrap"),o=n.querySelector(".el-cascader-node.is-active")||n.querySelector(".el-cascader-node.in-active-path");U()(i,o)}}))},getNodeByValue:function(e){return this.store.getNodeByValue(e)},getFlattedNodes:function(e){var t=!this.config.lazy;return this.store.getFlattedNodes(e,t)},getCheckedNodes:function(e){var t=this.checkedValue;return this.multiple?this.getFlattedNodes(e).filter((function(e){return e.checked})):this.isEmptyValue(t)?[]:[this.getNodeByValue(t)]},clearCheckedNodes:function(){var e=this.config,t=this.leafOnly,n=e.multiple,r=e.emitPath;n?(this.getCheckedNodes(t).filter((function(e){return!e.isDisabled})).forEach((function(e){return e.doCheck(!1)})),this.calculateMultiCheckedValue()):this.checkedValue=r?[]:null}}},Z=Object(v.a)(J,r,[],!1,null,null,null);Z.options.__file="packages/cascader-panel/src/cascader-panel.vue";var Q=Z.exports;Q.install=function(e){e.component(Q.name,Q)},t.default=Q}})},a5d8:function(e,t,n){},a652:function(e,t,n){"use strict";var r=function(){function e(e,t,n,r,i,o){void 0===i&&(i=-1),void 0===o&&(o=-1),this.rawBytes=e,this.text=t,this.byteSegments=n,this.ecLevel=r,this.structuredAppendSequenceNumber=i,this.structuredAppendParity=o,this.numBits=void 0===e||null===e?0:8*e.length}return e.prototype.getRawBytes=function(){return this.rawBytes},e.prototype.getNumBits=function(){return this.numBits},e.prototype.setNumBits=function(e){this.numBits=e},e.prototype.getText=function(){return this.text},e.prototype.getByteSegments=function(){return this.byteSegments},e.prototype.getECLevel=function(){return this.ecLevel},e.prototype.getErrorsCorrected=function(){return this.errorsCorrected},e.prototype.setErrorsCorrected=function(e){this.errorsCorrected=e},e.prototype.getErasures=function(){return this.erasures},e.prototype.setErasures=function(e){this.erasures=e},e.prototype.getOther=function(){return this.other},e.prototype.setOther=function(e){this.other=e},e.prototype.hasStructuredAppend=function(){return this.structuredAppendParity>=0&&this.structuredAppendSequenceNumber>=0},e.prototype.getStructuredAppendParity=function(){return this.structuredAppendParity},e.prototype.getStructuredAppendSequenceNumber=function(){return this.structuredAppendSequenceNumber},e}();t["a"]=r},a70f:function(e,t,n){"use strict";var r=n("370f"),i=n("a363"),o=n("f0a7");(function(){function e(){}e.prototype.encode=function(e,t,n,a,s){var l;switch(t){case i["a"].QR_CODE:l=new r["a"];break;default:throw new o["a"]("No encoder available for format "+t)}return l.encode(e,t,n,a,s)}})()},a78e:function(e,t,n){var r,i;
|
|
28
|
+
(function(t,r){e.exports=r(n("8bbf"))})(0,(function(e){"use strict";function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e){return l(e)||u(e)||c(e)||d()}function l(e){if(Array.isArray(e))return f(e)}function u(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function c(e,t){if(e){if("string"===typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e;var h={FRONT:"FRONT",BEHIND:"BEHIND"},p={INIT:"INIT",FIXED:"FIXED",DYNAMIC:"DYNAMIC"},m=0,g=function(){function e(n,r){t(this,e),this.init(n,r)}return r(e,[{key:"init",value:function(e,t){this.param=e,this.callUpdate=t,this.sizes=new Map,this.firstRangeTotalSize=0,this.firstRangeAverageSize=0,this.lastCalcIndex=0,this.fixedSizeValue=0,this.calcType=p.INIT,this.offset=0,this.direction="",this.range=Object.create(null),e&&this.checkRange(0,e.keeps-1)}},{key:"destroy",value:function(){this.init(null,null)}},{key:"getRange",value:function(){var e=Object.create(null);return e.start=this.range.start,e.end=this.range.end,e.padFront=this.range.padFront,e.padBehind=this.range.padBehind,e}},{key:"isBehind",value:function(){return this.direction===h.BEHIND}},{key:"isFront",value:function(){return this.direction===h.FRONT}},{key:"getOffset",value:function(e){return(e<1?0:this.getIndexOffset(e))+this.param.slotHeaderSize}},{key:"updateParam",value:function(e,t){var n=this;this.param&&e in this.param&&("uniqueIds"===e&&this.sizes.forEach((function(e,r){t.includes(r)||n.sizes["delete"](r)})),this.param[e]=t)}},{key:"saveSize",value:function(e,t){this.sizes.set(e,t),this.calcType===p.INIT?(this.fixedSizeValue=t,this.calcType=p.FIXED):this.calcType===p.FIXED&&this.fixedSizeValue!==t&&(this.calcType=p.DYNAMIC,delete this.fixedSizeValue),this.calcType!==p.FIXED&&"undefined"!==typeof this.firstRangeTotalSize&&(this.sizes.size<Math.min(this.param.keeps,this.param.uniqueIds.length)?(this.firstRangeTotalSize=s(this.sizes.values()).reduce((function(e,t){return e+t}),0),this.firstRangeAverageSize=Math.round(this.firstRangeTotalSize/this.sizes.size)):delete this.firstRangeTotalSize)}},{key:"handleDataSourcesChange",value:function(){var e=this.range.start;this.isFront()?e-=m:this.isBehind()&&(e+=m),e=Math.max(e,0),this.updateRange(this.range.start,this.getEndByStart(e))}},{key:"handleSlotSizeChange",value:function(){this.handleDataSourcesChange()}},{key:"handleScroll",value:function(e){this.direction=e<this.offset?h.FRONT:h.BEHIND,this.offset=e,this.param&&(this.direction===h.FRONT?this.handleFront():this.direction===h.BEHIND&&this.handleBehind())}},{key:"handleFront",value:function(){var e=this.getScrollOvers();if(!(e>this.range.start)){var t=Math.max(e-this.param.buffer,0);this.checkRange(t,this.getEndByStart(t))}}},{key:"handleBehind",value:function(){var e=this.getScrollOvers();e<this.range.start+this.param.buffer||this.checkRange(e,this.getEndByStart(e))}},{key:"getScrollOvers",value:function(){var e=this.offset-this.param.slotHeaderSize;if(e<=0)return 0;if(this.isFixedType())return Math.floor(e/this.fixedSizeValue);var t=0,n=0,r=0,i=this.param.uniqueIds.length;while(t<=i){if(n=t+Math.floor((i-t)/2),r=this.getIndexOffset(n),r===e)return n;r<e?t=n+1:r>e&&(i=n-1)}return t>0?--t:0}},{key:"getIndexOffset",value:function(e){if(!e)return 0;for(var t=0,n=0,r=0;r<e;r++)n=this.sizes.get(this.param.uniqueIds[r]),t+="number"===typeof n?n:this.getEstimateSize();return this.lastCalcIndex=Math.max(this.lastCalcIndex,e-1),this.lastCalcIndex=Math.min(this.lastCalcIndex,this.getLastIndex()),t}},{key:"isFixedType",value:function(){return this.calcType===p.FIXED}},{key:"getLastIndex",value:function(){return this.param.uniqueIds.length-1}},{key:"checkRange",value:function(e,t){var n=this.param.keeps,r=this.param.uniqueIds.length;r<=n?(e=0,t=this.getLastIndex()):t-e<n-1&&(e=t-n+1),this.range.start!==e&&this.updateRange(e,t)}},{key:"updateRange",value:function(e,t){this.range.start=e,this.range.end=t,this.range.padFront=this.getPadFront(),this.range.padBehind=this.getPadBehind(),this.callUpdate(this.getRange())}},{key:"getEndByStart",value:function(e){var t=e+this.param.keeps-1,n=Math.min(t,this.getLastIndex());return n}},{key:"getPadFront",value:function(){return this.isFixedType()?this.fixedSizeValue*this.range.start:this.getIndexOffset(this.range.start)}},{key:"getPadBehind",value:function(){var e=this.range.end,t=this.getLastIndex();return this.isFixedType()?(t-e)*this.fixedSizeValue:this.lastCalcIndex===t?this.getIndexOffset(t)-this.getIndexOffset(e):(t-e)*this.getEstimateSize()}},{key:"getEstimateSize",value:function(){return this.isFixedType()?this.fixedSizeValue:this.firstRangeAverageSize||this.param.estimateSize}}]),e}(),v={dataKey:{type:[String,Function],required:!0},dataSources:{type:Array,required:!0},dataComponent:{type:[Object,Function],required:!0},keeps:{type:Number,default:30},extraProps:{type:Object},estimateSize:{type:Number,default:50},direction:{type:String,default:"vertical"},start:{type:Number,default:0},offset:{type:Number,default:0},topThreshold:{type:Number,default:0},bottomThreshold:{type:Number,default:0},pageMode:{type:Boolean,default:!1},rootTag:{type:String,default:"div"},wrapTag:{type:String,default:"div"},wrapClass:{type:String,default:""},wrapStyle:{type:Object},itemTag:{type:String,default:"div"},itemClass:{type:String,default:""},itemClassAdd:{type:Function},itemStyle:{type:Object},headerTag:{type:String,default:"div"},headerClass:{type:String,default:""},headerStyle:{type:Object},footerTag:{type:String,default:"div"},footerClass:{type:String,default:""},footerStyle:{type:Object},itemScopedSlots:{type:Object}},b={index:{type:Number},event:{type:String},tag:{type:String},horizontal:{type:Boolean},source:{type:Object},component:{type:[Object,Function]},slotComponent:{type:Function},uniqueKey:{type:[String,Number]},extraProps:{type:Object},scopedSlots:{type:Object}},y={event:{type:String},uniqueKey:{type:String},tag:{type:String},horizontal:{type:Boolean}},w={created:function(){this.shapeKey=this.horizontal?"offsetWidth":"offsetHeight"},mounted:function(){var e=this;"undefined"!==typeof ResizeObserver&&(this.resizeObserver=new ResizeObserver((function(){e.dispatchSizeChange()})),this.resizeObserver.observe(this.$el))},updated:function(){this.dispatchSizeChange()},beforeDestroy:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)},methods:{getCurrentSize:function(){return this.$el?this.$el[this.shapeKey]:0},dispatchSizeChange:function(){this.$parent.$emit(this.event,this.uniqueKey,this.getCurrentSize(),this.hasInitial)}}},_=e.component("virtual-list-item",{mixins:[w],props:b,render:function(e){var t=this.tag,n=this.component,r=this.extraProps,i=void 0===r?{}:r,o=this.index,s=this.source,l=this.scopedSlots,u=void 0===l?{}:l,c=this.uniqueKey,f=this.slotComponent,d=a({},i,{source:s,index:o});return e(t,{key:c,attrs:{role:"listitem"}},[f?e("div",f({item:s,index:o,scope:d})):e(n,{props:d,scopedSlots:u})])}}),C=e.component("virtual-list-slot",{mixins:[w],props:y,render:function(e){var t=this.tag,n=this.uniqueKey;return e(t,{key:n,attrs:{role:n}},this.$slots["default"])}}),x={ITEM:"item_resize",SLOT:"slot_resize"},S={HEADER:"thead",FOOTER:"tfoot"},k=e.component("virtual-list",{props:v,data:function(){return{range:null}},watch:{"dataSources.length":function(){this.virtual.updateParam("uniqueIds",this.getUniqueIdFromDataSources()),this.virtual.handleDataSourcesChange()},keeps:function(e){this.virtual.updateParam("keeps",e),this.virtual.handleSlotSizeChange()},start:function(e){this.scrollToIndex(e)},offset:function(e){this.scrollToOffset(e)}},created:function(){this.isHorizontal="horizontal"===this.direction,this.directionKey=this.isHorizontal?"scrollLeft":"scrollTop",this.installVirtual(),this.$on(x.ITEM,this.onItemResized),(this.$slots.header||this.$slots.footer)&&this.$on(x.SLOT,this.onSlotResized)},activated:function(){this.scrollToOffset(this.virtual.offset)},mounted:function(){this.start?this.scrollToIndex(this.start):this.offset&&this.scrollToOffset(this.offset),this.pageMode&&(this.updatePageModeFront(),document.addEventListener("scroll",this.onScroll,{passive:!1}))},beforeDestroy:function(){this.virtual.destroy(),this.pageMode&&document.removeEventListener("scroll",this.onScroll)},methods:{getSize:function(e){return this.virtual.sizes.get(e)},getSizes:function(){return this.virtual.sizes.size},getOffset:function(){if(this.pageMode)return document.documentElement[this.directionKey]||document.body[this.directionKey];var e=this.$refs.root;return e?Math.ceil(e[this.directionKey]):0},getClientSize:function(){var e=this.isHorizontal?"clientWidth":"clientHeight";if(this.pageMode)return document.documentElement[e]||document.body[e];var t=this.$refs.root;return t?Math.ceil(t[e]):0},getScrollSize:function(){var e=this.isHorizontal?"scrollWidth":"scrollHeight";if(this.pageMode)return document.documentElement[e]||document.body[e];var t=this.$refs.root;return t?Math.ceil(t[e]):0},scrollToOffset:function(e){if(this.pageMode)document.body[this.directionKey]=e,document.documentElement[this.directionKey]=e;else{var t=this.$refs.root;t&&(t[this.directionKey]=e)}},scrollToIndex:function(e){if(e>=this.dataSources.length-1)this.scrollToBottom();else{var t=this.virtual.getOffset(e);this.scrollToOffset(t)}},scrollToBottom:function(){var e=this,t=this.$refs.shepherd;if(t){var n=t[this.isHorizontal?"offsetLeft":"offsetTop"];this.scrollToOffset(n),setTimeout((function(){e.getOffset()+e.getClientSize()<e.getScrollSize()&&e.scrollToBottom()}),3)}},updatePageModeFront:function(){var e=this.$refs.root;if(e){var t=e.getBoundingClientRect(),n=e.ownerDocument.defaultView,r=this.isHorizontal?t.left+n.pageXOffset:t.top+n.pageYOffset;this.virtual.updateParam("slotHeaderSize",r)}},reset:function(){this.virtual.destroy(),this.scrollToOffset(0),this.installVirtual()},installVirtual:function(){this.virtual=new g({slotHeaderSize:0,slotFooterSize:0,keeps:this.keeps,estimateSize:this.estimateSize,buffer:Math.round(this.keeps/3),uniqueIds:this.getUniqueIdFromDataSources()},this.onRangeChanged),this.range=this.virtual.getRange()},getUniqueIdFromDataSources:function(){var e=this.dataKey;return this.dataSources.map((function(t){return"function"===typeof e?e(t):t[e]}))},onItemResized:function(e,t){this.virtual.saveSize(e,t),this.$emit("resized",e,t)},onSlotResized:function(e,t,n){e===S.HEADER?this.virtual.updateParam("slotHeaderSize",t):e===S.FOOTER&&this.virtual.updateParam("slotFooterSize",t),n&&this.virtual.handleSlotSizeChange()},onRangeChanged:function(e){this.range=e},onScroll:function(e){var t=this.getOffset(),n=this.getClientSize(),r=this.getScrollSize();t<0||t+n>r+1||!r||(this.virtual.handleScroll(t),this.emitEvent(t,n,r,e))},emitEvent:function(e,t,n,r){this.$emit("scroll",r,this.virtual.getRange()),this.virtual.isFront()&&this.dataSources.length&&e-this.topThreshold<=0?this.$emit("totop"):this.virtual.isBehind()&&e+t+this.bottomThreshold>=n&&this.$emit("tobottom")},getRenderSlots:function(e){for(var t=[],n=this.range,r=n.start,i=n.end,o=this.dataSources,a=this.dataKey,s=this.itemClass,l=this.itemTag,u=this.itemStyle,c=this.isHorizontal,f=this.extraProps,d=this.dataComponent,h=this.itemScopedSlots,p=this.$scopedSlots&&this.$scopedSlots.item,m=r;m<=i;m++){var g=o[m];if(g){var v="function"===typeof a?a(g):g[a];"string"===typeof v||"number"===typeof v?t.push(e(_,{props:{index:m,tag:l,event:x.ITEM,horizontal:c,uniqueKey:v,source:g,extraProps:f,component:d,slotComponent:p,scopedSlots:h},style:u,class:"".concat(s).concat(this.itemClassAdd?" "+this.itemClassAdd(m):"")})):console.warn("Cannot get the data-key '".concat(a,"' from data-sources."))}else console.warn("Cannot get the index '".concat(m,"' from data-sources."))}return t}},render:function(e){var t=this.$slots,n=t.header,r=t.footer,i=this.range,o=i.padFront,a=i.padBehind,s=this.isHorizontal,l=this.pageMode,u=this.rootTag,c=this.wrapTag,f=this.wrapClass,d=this.wrapStyle,h=this.headerTag,p=this.headerClass,m=this.headerStyle,g=this.footerTag,v=this.footerClass,b=this.footerStyle,y={padding:s?"0px ".concat(a,"px 0px ").concat(o,"px"):"".concat(o,"px 0px ").concat(a,"px")},w=d?Object.assign({},d,y):y;return e(u,{ref:"root",on:{"&scroll":!l&&this.onScroll}},[n?e(C,{class:p,style:m,props:{tag:h,event:x.SLOT,uniqueKey:S.HEADER}},n):null,e(c,{class:f,attrs:{role:"group"},style:w},this.getRenderSlots(e)),r?e(C,{class:v,style:b,props:{tag:g,event:x.SLOT,uniqueKey:S.FOOTER}},r):null,e("div",{ref:"shepherd",style:{width:s?"0px":"100%",height:s?"100%":"0px"}})])}});return k}))},"8a81":function(e,t,n){"use strict";var r=n("7726"),i=n("69a8"),o=n("9e1e"),a=n("5ca1"),s=n("2aba"),l=n("67ab").KEY,u=n("79e5"),c=n("5537"),f=n("7f20"),d=n("ca5a"),h=n("2b4c"),p=n("37c8"),m=n("3a72"),g=n("d4c0"),v=n("1169"),b=n("cb7c"),y=n("d3f4"),w=n("4bf8"),_=n("6821"),C=n("6a99"),x=n("4630"),S=n("2aeb"),k=n("7bbc"),D=n("11e9"),O=n("2621"),T=n("86cc"),E=n("0d58"),I=D.f,N=T.f,A=k.f,P=r.Symbol,M=r.JSON,R=M&&M.stringify,F="prototype",B=h("_hidden"),L=h("toPrimitive"),$={}.propertyIsEnumerable,V=c("symbol-registry"),j=c("symbols"),z=c("op-symbols"),H=Object[F],U="function"==typeof P&&!!O.f,W=r.QObject,q=!W||!W[F]||!W[F].findChild,G=o&&u((function(){return 7!=S(N({},"a",{get:function(){return N(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=I(H,t);r&&delete H[t],N(e,t,n),r&&e!==H&&N(H,t,r)}:N,Y=function(e){var t=j[e]=S(P[F]);return t._k=e,t},K=U&&"symbol"==typeof P.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof P},X=function(e,t,n){return e===H&&X(z,t,n),b(e),t=C(t,!0),b(n),i(j,t)?(n.enumerable?(i(e,B)&&e[B][t]&&(e[B][t]=!1),n=S(n,{enumerable:x(0,!1)})):(i(e,B)||N(e,B,x(1,{})),e[B][t]=!0),G(e,t,n)):N(e,t,n)},J=function(e,t){b(e);var n,r=g(t=_(t)),i=0,o=r.length;while(o>i)X(e,n=r[i++],t[n]);return e},Z=function(e,t){return void 0===t?S(e):J(S(e),t)},Q=function(e){var t=$.call(this,e=C(e,!0));return!(this===H&&i(j,e)&&!i(z,e))&&(!(t||!i(this,e)||!i(j,e)||i(this,B)&&this[B][e])||t)},ee=function(e,t){if(e=_(e),t=C(t,!0),e!==H||!i(j,t)||i(z,t)){var n=I(e,t);return!n||!i(j,t)||i(e,B)&&e[B][t]||(n.enumerable=!0),n}},te=function(e){var t,n=A(_(e)),r=[],o=0;while(n.length>o)i(j,t=n[o++])||t==B||t==l||r.push(t);return r},ne=function(e){var t,n=e===H,r=A(n?z:_(e)),o=[],a=0;while(r.length>a)!i(j,t=r[a++])||n&&!i(H,t)||o.push(j[t]);return o};U||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(n){this===H&&t.call(z,n),i(this,B)&&i(this[B],e)&&(this[B][e]=!1),G(this,e,x(1,n))};return o&&q&&G(H,e,{configurable:!0,set:t}),Y(e)},s(P[F],"toString",(function(){return this._k})),D.f=ee,T.f=X,n("9093").f=k.f=te,n("52a7").f=Q,O.f=ne,o&&!n("2d00")&&s(H,"propertyIsEnumerable",Q,!0),p.f=function(e){return Y(h(e))}),a(a.G+a.W+a.F*!U,{Symbol:P});for(var re="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ie=0;re.length>ie;)h(re[ie++]);for(var oe=E(h.store),ae=0;oe.length>ae;)m(oe[ae++]);a(a.S+a.F*!U,"Symbol",{for:function(e){return i(V,e+="")?V[e]:V[e]=P(e)},keyFor:function(e){if(!K(e))throw TypeError(e+" is not a symbol!");for(var t in V)if(V[t]===e)return t},useSetter:function(){q=!0},useSimple:function(){q=!1}}),a(a.S+a.F*!U,"Object",{create:Z,defineProperty:X,defineProperties:J,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:ne});var se=u((function(){O.f(1)}));a(a.S+a.F*se,"Object",{getOwnPropertySymbols:function(e){return O.f(w(e))}}),M&&a(a.S+a.F*(!U||u((function(){var e=P();return"[null]"!=R([e])||"{}"!=R({a:e})||"{}"!=R(Object(e))}))),"JSON",{stringify:function(e){var t,n,r=[e],i=1;while(arguments.length>i)r.push(arguments[i++]);if(n=t=r[1],(y(t)||void 0!==e)&&!K(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!K(t))return t}),r[1]=t,R.apply(M,r)}}),P[F][L]||n("32e9")(P[F],L,P[F].valueOf),f(P,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},"8aae":function(e,t,n){n("32a6"),e.exports=n("584a").Object.keys},"8b97":function(e,t,n){var r=n("d3f4"),i=n("cb7c"),o=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=n("9b43")(Function.call,n("11e9").f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(i){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},"8bbf":function(e,t){e.exports=__WEBPACK_EXTERNAL_MODULE__8bbf__},"8c95":function(e,t,n){"use strict";var r=n("fb63"),i=n("2e1c"),o=function(){function e(e,t){this.x=e,this.y=t}return e.prototype.getX=function(){return this.x},e.prototype.getY=function(){return this.y},e.prototype.equals=function(t){if(t instanceof e){var n=t;return this.x===n.x&&this.y===n.y}return!1},e.prototype.hashCode=function(){return 31*i["a"].floatToIntBits(this.x)+i["a"].floatToIntBits(this.y)},e.prototype.toString=function(){return"("+this.x+","+this.y+")"},e.orderBestPatterns=function(e){var t,n,r,i=this.distance(e[0],e[1]),o=this.distance(e[1],e[2]),a=this.distance(e[0],e[2]);if(o>=i&&o>=a?(n=e[0],t=e[1],r=e[2]):a>=o&&a>=i?(n=e[1],t=e[0],r=e[2]):(n=e[2],t=e[0],r=e[1]),this.crossProductZ(t,n,r)<0){var s=t;t=r,r=s}e[0]=t,e[1]=n,e[2]=r},e.distance=function(e,t){return r["a"].distance(e.x,e.y,t.x,t.y)},e.crossProductZ=function(e,t,n){var r=t.x,i=t.y;return(n.x-r)*(e.y-i)-(n.y-i)*(e.x-r)},e}();t["a"]=o},"8e60":function(e,t,n){e.exports=!n("294c")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"8e6e":function(e,t,n){var r=n("5ca1"),i=n("990b"),o=n("6821"),a=n("11e9"),s=n("f1ae");r(r.S,"Object",{getOwnPropertyDescriptors:function(e){var t,n,r=o(e),l=a.f,u=i(r),c={},f=0;while(u.length>f)n=l(r,t=u[f++]),void 0!==n&&s(c,t,n);return c}})},"8eb7":function(e,t){var n,r,i,o,a,s,l,u,c,f,d,h,p,m,g,v=!1;function b(){if(!v){v=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),b=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(h=/\b(iPhone|iP[ao]d)/.exec(e),p=/\b(iP[ao]d)/.exec(e),f=/Android/i.exec(e),m=/FBAN\/\w+;/i.exec(e),g=/Mobile/i.exec(e),d=!!/Win64/.exec(e),t){n=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,n&&document&&document.documentMode&&(n=document.documentMode);var y=/(?:Trident\/(\d+.\d+))/.exec(e);s=y?parseFloat(y[1])+4:n,r=t[2]?parseFloat(t[2]):NaN,i=t[3]?parseFloat(t[3]):NaN,o=t[4]?parseFloat(t[4]):NaN,o?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),a=t&&t[1]?parseFloat(t[1]):NaN):a=NaN}else n=r=i=a=o=NaN;if(b){if(b[1]){var w=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);l=!w||parseFloat(w[1].replace("_","."))}else l=!1;u=!!b[2],c=!!b[3]}else l=u=c=!1}}var y={ie:function(){return b()||n},ieCompatibilityMode:function(){return b()||s>n},ie64:function(){return y.ie()&&d},firefox:function(){return b()||r},opera:function(){return b()||i},webkit:function(){return b()||o},safari:function(){return y.webkit()},chrome:function(){return b()||a},windows:function(){return b()||u},osx:function(){return b()||l},linux:function(){return b()||c},iphone:function(){return b()||h},mobile:function(){return b()||h||p||f||g},nativeApp:function(){return b()||m},android:function(){return b()||f},ipad:function(){return b()||p}};e.exports=y},"8f21":function(e,t){},"8f60":function(e,t,n){"use strict";var r=n("a159"),i=n("aebd"),o=n("45f2"),a={};n("35e8")(a,n("5168")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},9003:function(e,t,n){var r=n("6b4c");e.exports=Array.isArray||function(e){return"Array"==r(e)}},9068:function(e,t,n){"use strict";var r=n("f0a7"),i=n("cb12"),o=n("ea29"),a=n("63af"),s=function(){function e(t,n){void 0===t?(this.size=0,this.bits=new Int32Array(1)):(this.size=t,this.bits=void 0===n||null===n?e.makeArray(t):n)}return e.prototype.getSize=function(){return this.size},e.prototype.getSizeInBytes=function(){return Math.floor((this.size+7)/8)},e.prototype.ensureCapacity=function(t){if(t>32*this.bits.length){var n=e.makeArray(t);a["a"].arraycopy(this.bits,0,n,0,this.bits.length),this.bits=n}},e.prototype.get=function(e){return 0!==(this.bits[Math.floor(e/32)]&1<<(31&e))},e.prototype.set=function(e){this.bits[Math.floor(e/32)]|=1<<(31&e)},e.prototype.flip=function(e){this.bits[Math.floor(e/32)]^=1<<(31&e)},e.prototype.getNextSet=function(e){var t=this.size;if(e>=t)return t;var n=this.bits,r=Math.floor(e/32),i=n[r];i&=~((1<<(31&e))-1);var a=n.length;while(0===i){if(++r===a)return t;i=n[r]}var s=32*r+o["a"].numberOfTrailingZeros(i);return s>t?t:s},e.prototype.getNextUnset=function(e){var t=this.size;if(e>=t)return t;var n=this.bits,r=Math.floor(e/32),i=~n[r];i&=~((1<<(31&e))-1);var a=n.length;while(0===i){if(++r===a)return t;i=~n[r]}var s=32*r+o["a"].numberOfTrailingZeros(i);return s>t?t:s},e.prototype.setBulk=function(e,t){this.bits[Math.floor(e/32)]=t},e.prototype.setRange=function(e,t){if(t<e||e<0||t>this.size)throw new r["a"];if(t!==e){t--;for(var n=Math.floor(e/32),i=Math.floor(t/32),o=this.bits,a=n;a<=i;a++){var s=a>n?0:31&e,l=a<i?31:31&t,u=(2<<l)-(1<<s);o[a]|=u}}},e.prototype.clear=function(){for(var e=this.bits.length,t=this.bits,n=0;n<e;n++)t[n]=0},e.prototype.isRange=function(e,t,n){if(t<e||e<0||t>this.size)throw new r["a"];if(t===e)return!0;t--;for(var i=Math.floor(e/32),o=Math.floor(t/32),a=this.bits,s=i;s<=o;s++){var l=s>i?0:31&e,u=s<o?31:31&t,c=(2<<u)-(1<<l)&4294967295;if((a[s]&c)!==(n?c:0))return!1}return!0},e.prototype.appendBit=function(e){this.ensureCapacity(this.size+1),e&&(this.bits[Math.floor(this.size/32)]|=1<<(31&this.size)),this.size++},e.prototype.appendBits=function(e,t){if(t<0||t>32)throw new r["a"]("Num bits must be between 0 and 32");this.ensureCapacity(this.size+t);for(var n=t;n>0;n--)this.appendBit(1===(e>>n-1&1))},e.prototype.appendBitArray=function(e){var t=e.size;this.ensureCapacity(this.size+t);for(var n=0;n<t;n++)this.appendBit(e.get(n))},e.prototype.xor=function(e){if(this.size!==e.size)throw new r["a"]("Sizes don't match");for(var t=this.bits,n=0,i=t.length;n<i;n++)t[n]^=e.bits[n]},e.prototype.toBytes=function(e,t,n,r){for(var i=0;i<r;i++){for(var o=0,a=0;a<8;a++)this.get(e)&&(o|=1<<7-a),e++;t[n+i]=o}},e.prototype.getBitArray=function(){return this.bits},e.prototype.reverse=function(){for(var e=new Int32Array(this.bits.length),t=Math.floor((this.size-1)/32),n=t+1,r=this.bits,i=0;i<n;i++){var o=r[i];o=o>>1&1431655765|(1431655765&o)<<1,o=o>>2&858993459|(858993459&o)<<2,o=o>>4&252645135|(252645135&o)<<4,o=o>>8&16711935|(16711935&o)<<8,o=o>>16&65535|(65535&o)<<16,e[t-i]=o}if(this.size!==32*n){var a=32*n-this.size,s=e[0]>>>a;for(i=1;i<n;i++){var l=e[i];s|=l<<32-a,e[i-1]=s,s=l>>>a}e[n-1]=s}this.bits=e},e.makeArray=function(e){return new Int32Array(Math.floor((e+31)/32))},e.prototype.equals=function(t){if(!(t instanceof e))return!1;var n=t;return this.size===n.size&&i["a"].equals(this.bits,n.bits)},e.prototype.hashCode=function(){return 31*this.size+i["a"].hashCode(this.bits)},e.prototype.toString=function(){for(var e="",t=0,n=this.size;t<n;t++)0===(7&t)&&(e+=" "),e+=this.get(t)?"X":".";return e},e.prototype.clone=function(){return new e(this.size,this.bits.slice())},e}();t["a"]=s},9093:function(e,t,n){var r=n("ce10"),i=n("e11e").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},"90e7":function(e,t,n){n("3c41")},9138:function(e,t,n){e.exports=n("35e8")},9219:function(e,t,n){"use strict";n("760b")},9243:function(e,t,n){"use strict";t.__esModule=!0,t.i18n=t.use=t.t=void 0;var r=n("633f"),i=h(r),o=n("11a6"),a=h(o),s=n("8bbf"),l=h(s),u=n("3c4e"),c=h(u),f=n("949b"),d=h(f);function h(e){return e&&e.__esModule?e:{default:e}}var p=(0,d.default)(l.default),m=a.default,g=!1,v=function(){var e=(0,i.default)(this||l.default).$t;if("function"===typeof e&&l.default.locale)return g||(g=!0,l.default.locale(l.default.config.lang,(0,c.default)(m,l.default.locale(l.default.config.lang)||{},{clone:!0}))),e.apply(this,arguments)},b=t.t=function(e,t){var n=v.apply(this,arguments);if(null!==n&&void 0!==n)return n;for(var r=e.split("."),i=m,o=0,a=r.length;o<a;o++){var s=r[o];if(n=i[s],o===a-1)return p(n,t);if(!n)return"";i=n}return""},y=t.use=function(e){m=e||m},w=t.i18n=function(e){v=e||v};t.default={use:y,t:b,i18n:w}},"929b":function(e,t,n){"use strict";var r=n("8c95"),i=function(){function e(e,t,n,i,o){this.value=e,this.startEnd=t,this.value=e,this.startEnd=t,this.resultPoints=new Array,this.resultPoints.push(new r["a"](n,o)),this.resultPoints.push(new r["a"](i,o))}return e.prototype.getValue=function(){return this.value},e.prototype.getStartEnd=function(){return this.startEnd},e.prototype.getResultPoints=function(){return this.resultPoints},e.prototype.equals=function(t){if(!(t instanceof e))return!1;var n=t;return this.value===n.value},e.prototype.hashCode=function(){return this.value},e}();t["a"]=i},"92fa":function(e,t){var n=/^(attrs|props|on|nativeOn|class|style|hook)$/;function r(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}}e.exports=function(e){return e.reduce((function(e,t){var i,o,a,s,l;for(a in t)if(i=e[a],o=t[a],i&&n.test(a))if("class"===a&&("string"===typeof i&&(l=i,e[a]=i={},i[l]=!0),"string"===typeof o&&(l=o,t[a]=o={},o[l]=!0)),"on"===a||"nativeOn"===a||"hook"===a)for(s in o)i[s]=r(i[s],o[s]);else if(Array.isArray(i))e[a]=i.concat(o);else if(Array.isArray(o))e[a]=[i].concat(o);else for(s in o)i[s]=o[s];else e[a]=t[a];return e}),{})}},9306:function(e,t,n){"use strict";var r=n("8e60"),i=n("c3a1"),o=n("9aa9"),a=n("355d"),s=n("241e"),l=n("335c"),u=Object.assign;e.exports=!u||n("294c")((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=r}))?function(e,t){var n=s(e),u=arguments.length,c=1,f=o.f,d=a.f;while(u>c){var h,p=l(arguments[c++]),m=f?i(p).concat(f(p)):i(p),g=m.length,v=0;while(g>v)h=m[v++],r&&!d.call(p,h)||(n[h]=p[h])}return n}:u},9427:function(e,t,n){var r=n("63b6");r(r.S,"Object",{create:n("a159")})},9434:function(e,t,n){n("e8b0")},"949b":function(e,t,n){"use strict";t.__esModule=!0;var r=n("1098"),i=a(r);t.default=function(){function e(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return 1===n.length&&"object"===(0,i.default)(n[0])&&(n=n[0]),n&&n.hasOwnProperty||(n={}),e.replace(s,(function(t,r,i,a){var s=void 0;return"{"===e[a-1]&&"}"===e[a+t.length]?i:(s=(0,o.hasOwn)(n,i)?n[i]:null,null===s||void 0===s?"":s)}))}return e};var o=n("bf32");function a(e){return e&&e.__esModule?e:{default:e}}var s=/(%|)\{([0-9a-zA-Z_]+)\}/g},"94ce":function(e,t){(function(){"use strict";var e=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},t=function(t){return function(n){return e(n)===t}},n=function(e){return function(t){return typeof t===e}},r=function(e){return function(t){return e===t}},i=t("string"),o=t("object"),a=t("array"),s=r(null),l=n("boolean"),u=r(void 0),c=function(e){return null===e||void 0===e},f=function(e){return!c(e)},d=n("function"),h=n("number"),p=function(){},m=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e(t.apply(null,n))}},g=function(e,t){return function(n){return e(t(n))}},v=function(e){return function(){return e}},b=function(e){return e},y=function(e,t){return e===t};function w(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=t.concat(n);return e.apply(null,i)}}var _=function(e){return function(t){return!e(t)}},C=function(e){return function(){throw new Error(e)}},x=v(!1),S=v(!0),k=function(){return D},D=function(){var e=function(e){return e()},t=b,n={fold:function(e,t){return e()},isSome:x,isNone:S,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:v(null),getOrUndefined:v(void 0),or:t,orThunk:e,map:k,each:p,bind:k,exists:x,forall:S,filter:function(){return k()},toArray:function(){return[]},toString:v("none()")};return n}(),O=function(e){var t=v(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},isSome:S,isNone:x,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return O(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:D},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return i},T=function(e){return null===e||void 0===e?D:O(e)},E={some:O,none:k,from:T},I=Array.prototype.slice,N=Array.prototype.indexOf,A=Array.prototype.push,P=function(e,t){return N.call(e,t)},M=function(e,t){return P(e,t)>-1},R=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(t(i,n))return!0}return!1},F=function(e,t){for(var n=[],r=0;r<e;r++)n.push(t(r));return n},B=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r},L=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];t(i,n)}},$=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];t(r,n)}},V=function(e,t){for(var n=[],r=[],i=0,o=e.length;i<o;i++){var a=e[i],s=t(a,i)?n:r;s.push(a)}return{pass:n,fail:r}},j=function(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];t(o,r)&&n.push(o)}return n},z=function(e,t,n){return $(e,(function(e,r){n=t(n,e,r)})),n},H=function(e,t,n){return L(e,(function(e,r){n=t(n,e,r)})),n},U=function(e,t,n){for(var r=0,i=e.length;r<i;r++){var o=e[r];if(t(o,r))return E.some(o);if(n(o,r))break}return E.none()},W=function(e,t){return U(e,t,x)},q=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(t(i,n))return E.some(n)}return E.none()},G=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!a(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);A.apply(t,e[n])}return t},Y=function(e,t){return G(B(e,t))},K=function(e,t){for(var n=0,r=e.length;n<r;++n){var i=e[n];if(!0!==t(i,n))return!1}return!0},X=function(e){var t=I.call(e,0);return t.reverse(),t},J=function(e,t){for(var n={},r=0,i=e.length;r<i;r++){var o=e[r];n[String(o)]=t(o,r)}return n},Z=function(e){return[e]},Q=function(e,t){var n=I.call(e,0);return n.sort(t),n},ee=function(e,t){return t>=0&&t<e.length?E.some(e[t]):E.none()},te=function(e){return ee(e,0)},ne=function(e){return ee(e,e.length-1)},re=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return E.none()},ie=function(){return ie=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ie.apply(this,arguments)};function oe(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}var ae=function(e){var t,n=!1;return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return n||(n=!0,t=e.apply(null,r)),t}},se=function(e,t,n,r){var i=e.isiOS()&&!0===/ipad/i.test(n),o=e.isiOS()&&!i,a=e.isiOS()||e.isAndroid(),s=a||r("(pointer:coarse)"),l=i||!o&&a&&r("(min-device-width:768px)"),u=o||a&&!l,c=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n),f=!u&&!l&&!c;return{isiPad:v(i),isiPhone:v(o),isTablet:v(l),isPhone:v(u),isTouch:v(s),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:v(c),isDesktop:v(f)}},le=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}},ue=function(e,t){var n=le(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return de(r(1),r(2))},ce=function(e,t){var n=String(t).toLowerCase();return 0===e.length?fe():ue(e,n)},fe=function(){return de(0,0)},de=function(e,t){return{major:e,minor:t}},he={nu:de,detect:ce,unknown:fe},pe=function(e,t){return re(t.brands,(function(t){var n=t.brand.toLowerCase();return W(e,(function(e){var t;return n===(null===(t=e.brand)||void 0===t?void 0:t.toLowerCase())})).map((function(e){return{current:e.name,version:he.nu(parseInt(t.version,10),0)}}))}))},me=function(e,t){var n=String(t).toLowerCase();return W(e,(function(e){return e.search(n)}))},ge=function(e,t){return me(e,t).map((function(e){var n=he.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},ve=function(e,t){return me(e,t).map((function(e){var n=he.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},be=function(e,t){return e.substring(t)},ye=function(e,t,n){return""===t||e.length>=t.length&&e.substr(n,n+t.length)===t},we=function(e,t){return Ce(e,t)?be(e,t.length):e},_e=function(e,t){return-1!==e.indexOf(t)},Ce=function(e,t){return ye(e,t,0)},xe=function(e,t){return ye(e,t,e.length-t.length)},Se=function(e){return function(t){return t.replace(e,"")}},ke=Se(/^\s+|\s+$/g),De=function(e){return e.length>0},Oe=function(e){return!De(e)},Te=function(e){var t=parseFloat(e);return isNaN(t)?E.none():E.some(t)},Ee=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Ie=function(e){return function(t){return _e(t,e)}},Ne=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return _e(e,"edge/")&&_e(e,"chrome")&&_e(e,"safari")&&_e(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Ee],search:function(e){return _e(e,"chrome")&&!_e(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return _e(e,"msie")||_e(e,"trident")}},{name:"Opera",versionRegexes:[Ee,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Ie("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Ie("firefox")},{name:"Safari",versionRegexes:[Ee,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(_e(e,"safari")||_e(e,"mobile/"))&&_e(e,"applewebkit")}}],Ae=[{name:"Windows",search:Ie("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return _e(e,"iphone")||_e(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Ie("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:Ie("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Ie("linux"),versionRegexes:[]},{name:"Solaris",search:Ie("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Ie("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Ie("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Pe={browsers:v(Ne),oses:v(Ae)},Me="Edge",Re="Chrome",Fe="IE",Be="Opera",Le="Firefox",$e="Safari",Ve=function(){return je({current:void 0,version:he.unknown()})},je=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isEdge:r(Me),isChrome:r(Re),isIE:r(Fe),isOpera:r(Be),isFirefox:r(Le),isSafari:r($e)}},ze={unknown:Ve,nu:je,edge:v(Me),chrome:v(Re),ie:v(Fe),opera:v(Be),firefox:v(Le),safari:v($e)},He="Windows",Ue="iOS",We="Android",qe="Linux",Ge="OSX",Ye="Solaris",Ke="FreeBSD",Xe="ChromeOS",Je=function(){return Ze({current:void 0,version:he.unknown()})},Ze=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isWindows:r(He),isiOS:r(Ue),isAndroid:r(We),isOSX:r(Ge),isLinux:r(qe),isSolaris:r(Ye),isFreeBSD:r(Ke),isChromeOS:r(Xe)}},Qe={unknown:Je,nu:Ze,windows:v(He),ios:v(Ue),android:v(We),linux:v(qe),osx:v(Ge),solaris:v(Ye),freebsd:v(Ke),chromeos:v(Xe)},et=function(e,t,n){var r=Pe.browsers(),i=Pe.oses(),o=t.bind((function(e){return pe(r,e)})).orThunk((function(){return ge(r,e)})).fold(ze.unknown,ze.nu),a=ve(i,e).fold(Qe.unknown,Qe.nu),s=se(a,o,e,n);return{browser:o,os:a,deviceType:s}},tt={detect:et},nt=function(e){return window.matchMedia(e).matches},rt=ae((function(){return tt.detect(navigator.userAgent,E.from(navigator.userAgentData),nt)})),it=function(){return rt()},ot=function(e,t,n){return 0!==(e.compareDocumentPosition(t)&n)},at=function(e,t){return ot(e,t,Node.DOCUMENT_POSITION_CONTAINED_BY)},st=8,lt=9,ut=11,ct=1,ft=3,dt=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return mt(r.childNodes[0])},ht=function(e,t){var n=t||document,r=n.createElement(e);return mt(r)},pt=function(e,t){var n=t||document,r=n.createTextNode(e);return mt(r)},mt=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},gt=function(e,t,n){return E.from(e.dom.elementFromPoint(t,n)).map(mt)},vt={fromHtml:dt,fromTag:ht,fromText:pt,fromDom:mt,fromPoint:gt},bt=function(e,t){var n=e.dom;if(n.nodeType!==ct)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},yt=function(e){return e.nodeType!==ct&&e.nodeType!==lt&&e.nodeType!==ut||0===e.childElementCount},wt=function(e,t){var n=void 0===t?document:t.dom;return yt(n)?[]:B(n.querySelectorAll(e),vt.fromDom)},_t=function(e,t){var n=void 0===t?document:t.dom;return yt(n)?E.none():E.from(n.querySelector(e)).map(vt.fromDom)},Ct=function(e,t){return e.dom===t.dom},xt=function(e,t){var n=e.dom,r=t.dom;return n!==r&&n.contains(r)},St=function(e,t){return at(e.dom,t.dom)},kt=function(e,t){return it().browser.isIE()?St(e,t):xt(e,t)},Dt=bt,Ot=Object.keys,Tt=Object.hasOwnProperty,Et=function(e,t){for(var n=Ot(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];t(a,o)}},It=function(e,t){return Nt(e,(function(e,n){return{k:n,v:t(e,n)}}))},Nt=function(e,t){var n={};return Et(e,(function(e,r){var i=t(e,r);n[i.k]=i.v})),n},At=function(e){return function(t,n){e[n]=t}},Pt=function(e,t,n,r){var i={};return Et(e,(function(e,i){(t(e,i)?n:r)(e,i)})),i},Mt=function(e,t){var n={};return Pt(e,t,At(n),p),n},Rt=function(e,t){var n=[];return Et(e,(function(e,r){n.push(t(e,r))})),n},Ft=function(e){return Rt(e,b)},Bt=function(e){return Ot(e).length},Lt=function(e,t){return $t(e,t)?E.from(e[t]):E.none()},$t=function(e,t){return Tt.call(e,t)},Vt=function(e,t){return $t(e,t)&&void 0!==e[t]&&null!==e[t]},jt=function(e){for(var t in e)if(Tt.call(e,t))return!1;return!0},zt=["tfoot","thead","tbody","colgroup"],Ht=function(e){return M(zt,e)},Ut=function(e,t){return{rows:e,columns:t}},Wt=function(e,t){return{row:e,column:t}},qt=function(e,t,n){return{element:e,rowspan:t,colspan:n}},Gt=function(e,t,n,r){return{element:e,rowspan:t,colspan:n,isNew:r}},Yt=function(e,t,n,r,i,o){return{element:e,rowspan:t,colspan:n,row:r,column:i,isLocked:o}},Kt=function(e,t,n){return{element:e,cells:t,section:n}},Xt=function(e,t,n,r){return{element:e,cells:t,section:n,isNew:r}},Jt=function(e,t,n){return{element:e,isNew:t,isLocked:n}},Zt=function(e,t,n,r){return{element:e,cells:t,section:n,isNew:r}},Qt=function(e,t,n,r){return{startRow:e,startCol:t,finishRow:n,finishCol:r}},en=function(e,t,n){return{element:e,colspan:t,column:n}},tn=function(e,t){return{element:e,columns:t}};"undefined"!==typeof window?window:Function("return this;")();var nn=function(e){var t=e.dom.nodeName;return t.toLowerCase()},rn=function(e){return e.dom.nodeType},on=function(e){return function(t){return rn(t)===e}},an=function(e){return rn(e)===st||"#comment"===nn(e)},sn=on(ct),ln=on(ft),un=on(lt),cn=on(ut),fn=function(e){return function(t){return sn(t)&&nn(t)===e}},dn=function(e){return vt.fromDom(e.dom.ownerDocument)},hn=function(e){return un(e)?e:dn(e)},pn=function(e){return vt.fromDom(hn(e).dom.defaultView)},mn=function(e){return E.from(e.dom.parentNode).map(vt.fromDom)},gn=function(e){return E.from(e.dom.parentElement).map(vt.fromDom)},vn=function(e,t){var n=d(t)?t:x,r=e.dom,i=[];while(null!==r.parentNode&&void 0!==r.parentNode){var o=r.parentNode,a=vt.fromDom(o);if(i.push(a),!0===n(a))break;r=o}return i},bn=function(e){return E.from(e.dom.previousSibling).map(vt.fromDom)},yn=function(e){return E.from(e.dom.nextSibling).map(vt.fromDom)},wn=function(e){return B(e.dom.childNodes,vt.fromDom)},_n=function(e,t){var n=e.dom.childNodes;return E.from(n[t]).map(vt.fromDom)},Cn=function(e){return _n(e,0)},xn=function(e){return cn(e)&&f(e.dom.host)},Sn=d(Element.prototype.attachShadow)&&d(Node.prototype.getRootNode),kn=v(Sn),Dn=Sn?function(e){return vt.fromDom(e.dom.getRootNode())}:hn,On=function(e){var t=Dn(e);return xn(t)?E.some(t):E.none()},Tn=function(e){return vt.fromDom(e.dom.host)},En=function(e){if(kn()&&f(e.target)){var t=vt.fromDom(e.target);if(sn(t)&&In(t)&&e.composed&&e.composedPath){var n=e.composedPath();if(n)return te(n)}}return E.from(e.target)},In=function(e){return f(e.dom.shadowRoot)},Nn=function(e){var t=ln(e)?e.dom.parentNode:e.dom;if(void 0===t||null===t||null===t.ownerDocument)return!1;var n=t.ownerDocument;return On(vt.fromDom(t)).fold((function(){return n.body.contains(t)}),g(Nn,Tn))},An=function(){return Pn(vt.fromDom(document))},Pn=function(e){var t=e.dom.body;if(null===t||void 0===t)throw new Error("Body is not available yet");return vt.fromDom(t)},Mn=function(e,t,n){return j(vn(e,n),t)},Rn=function(e,t){return j(wn(e),t)},Fn=function(e,t){var n=[];return L(wn(e),(function(e){t(e)&&(n=n.concat([e])),n=n.concat(Fn(e,t))})),n},Bn=function(e,t,n){return Mn(e,(function(e){return bt(e,t)}),n)},Ln=function(e,t){return Rn(e,(function(e){return bt(e,t)}))},$n=function(e,t){return wt(t,e)};function Vn(e,t,n,r,i){return e(n,r)?E.some(n):d(i)&&i(n)?E.none():t(n,r,i)}var jn=function(e,t,n){var r=e.dom,i=d(n)?n:x;while(r.parentNode){r=r.parentNode;var o=vt.fromDom(r);if(t(o))return E.some(o);if(i(o))break}return E.none()},zn=function(e,t,n){var r=function(e,t){return t(e)};return Vn(r,jn,e,t,n)},Hn=function(e,t){var n=function(e){return t(vt.fromDom(e))},r=W(e.dom.childNodes,n);return r.map(vt.fromDom)},Un=function(e,t){var n=function(e){for(var r=0;r<e.childNodes.length;r++){var i=vt.fromDom(e.childNodes[r]);if(t(i))return E.some(i);var o=n(e.childNodes[r]);if(o.isSome())return o}return E.none()};return n(e.dom)},Wn=function(e,t,n){return jn(e,(function(e){return bt(e,t)}),n)},qn=function(e,t){return Hn(e,(function(e){return bt(e,t)}))},Gn=function(e,t){return _t(t,e)},Yn=function(e,t,n){var r=function(e,t){return bt(e,t)};return Vn(r,Wn,e,t,n)},Kn=function(e,t,n){if(!(i(n)||l(n)||h(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},Xn=function(e,t,n){Kn(e.dom,t,n)},Jn=function(e,t){var n=e.dom;Et(t,(function(e,t){Kn(n,t,e)}))},Zn=function(e,t){Et(t,(function(t,n){t.fold((function(){tr(e,n)}),(function(t){Kn(e.dom,n,t)}))}))},Qn=function(e,t){var n=e.dom.getAttribute(t);return null===n?void 0:n},er=function(e,t){return E.from(Qn(e,t))},tr=function(e,t){e.dom.removeAttribute(t)},nr=function(e){return H(e.dom.attributes,(function(e,t){return e[t.name]=t.value,e}),{})},rr=function(e,t,n){return void 0===n&&(n=y),e.exists((function(e){return n(e,t)}))},ir=function(e){for(var t=[],n=function(e){t.push(e)},r=0;r<e.length;r++)e[r].each(n);return t},or=function(e,t,n){return e.isSome()&&t.isSome()?E.some(n(e.getOrDie(),t.getOrDie())):E.none()},ar=function(e,t){return void 0!==e&&null!==e?t(e):E.none()},sr=function(e){return e.bind(b)},lr=function(e,t){return e?E.some(t):E.none()},ur=function(e){return void 0!==e.style&&d(e.style.getPropertyValue)},cr=function(e,t,n){if(!i(n))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",n,":: Element ",e),new Error("CSS value must be a string: "+n);ur(e)&&e.style.setProperty(t,n)},fr=function(e,t){ur(e)&&e.style.removeProperty(t)},dr=function(e,t,n){var r=e.dom;cr(r,t,n)},hr=function(e,t){var n=e.dom;Et(t,(function(e,t){cr(n,t,e)}))},pr=function(e,t){var n=e.dom,r=window.getComputedStyle(n),i=r.getPropertyValue(t);return""!==i||Nn(e)?i:mr(n,t)},mr=function(e,t){return ur(e)?e.style.getPropertyValue(t):""},gr=function(e,t){var n=e.dom,r=mr(n,t);return E.from(r).filter((function(e){return e.length>0}))},vr=function(e,t){var n=e.dom;fr(n,t),rr(er(e,"style").map(ke),"")&&tr(e,"style")},br=function(e,t){var n=e.dom,r=t.dom;ur(n)&&ur(r)&&(r.style.cssText=n.style.cssText)},yr=function(e,t,n){return void 0===n&&(n=0),er(e,t).map((function(e){return parseInt(e,10)})).getOr(n)},wr=function(e,t){return yr(e,t,1)},_r=function(e){return fn("col")(e)?yr(e,"span",1)>1:wr(e,"colspan")>1},Cr=function(e){return wr(e,"rowspan")>1},xr=function(e,t){return parseInt(pr(e,t),10)},Sr=v(10),kr=v(10),Dr=function(e,t){return Or(e,t,S)},Or=function(e,t,n){return Y(wn(e),(function(e){return bt(e,t)?n(e)?[e]:[]:Or(e,t,n)}))},Tr=function(e,t,n){if(void 0===n&&(n=x),n(t))return E.none();if(M(e,nn(t)))return E.some(t);var r=function(e){return bt(e,"table")||n(e)};return Wn(t,e.join(","),r)},Er=function(e,t){return Tr(["td","th"],e,t)},Ir=function(e){return Dr(e,"th,td")},Nr=function(e){return bt(e,"colgroup")?Ln(e,"col"):Y(Mr(e),(function(e){return Ln(e,"col")}))},Ar=function(e,t){return Yn(e,"table",t)},Pr=function(e){return Dr(e,"tr")},Mr=function(e){return Ar(e).fold(v([]),(function(e){return Ln(e,"colgroup")}))},Rr=function(e,t){return B(e,(function(e){if("colgroup"===nn(e)){var n=B(Nr(e),(function(e){var t=yr(e,"span",1);return qt(e,1,t)}));return Kt(e,n,"colgroup")}n=B(Ir(e),(function(e){var t=yr(e,"rowspan",1),n=yr(e,"colspan",1);return qt(e,t,n)}));return Kt(e,n,t(e))}))},Fr=function(e){return mn(e).map((function(e){var t=nn(e);return Ht(t)?t:"tbody"})).getOr("tbody")},Br=function(e){var t=Pr(e),n=Mr(e),r=oe(oe([],n,!0),t,!0);return Rr(r,Fr)},Lr=function(e,t){return Rr(e,(function(){return t}))},$r=function(e,t,n){var r=e.cells,i=r.slice(0,t),o=r.slice(t),a=i.concat(n).concat(o);return zr(e,a)},Vr=function(e,t,n){return $r(e,t,[n])},jr=function(e,t,n){var r=e.cells;r[t]=n},zr=function(e,t){return Zt(e.element,t,e.section,e.isNew)},Hr=function(e,t){var n=e.cells,r=B(n,t);return Zt(e.element,r,e.section,e.isNew)},Ur=function(e,t){return e.cells[t]},Wr=function(e,t){return Ur(e,t).element},qr=function(e){return e.cells.length},Gr=function(e){var t=V(e,(function(e){return"colgroup"===e.section}));return{rows:t.fail,cols:t.pass}},Yr=function(e,t,n){var r=B(e.cells,n);return Zt(t(e.element),r,e.section,!0)},Kr="data-snooker-locked-cols",Xr=function(e){return er(e,Kr).bind((function(e){return E.from(e.match(/\d+/g))})).map((function(e){return J(e,S)}))},Jr=function(e){var t=H(Gr(e).rows,(function(e,t){return L(t.cells,(function(t,n){t.isLocked&&(e[n]=!0)})),e}),{}),n=Rt(t,(function(e,t){return parseInt(t,10)}));return Q(n)},Zr=function(e,t){return e+","+t},Qr=function(e,t,n){return E.from(e.access[Zr(t,n)])},ei=function(e,t,n){var r=ti(e,(function(e){return n(t,e.element)}));return r.length>0?E.some(r[0]):E.none()},ti=function(e,t){var n=Y(e.all,(function(e){return e.cells}));return j(n,t)},ni=function(e){var t={},n=0;return L(e.cells,(function(e){var r=e.colspan;F(r,(function(i){var o=n+i;t[o]=en(e.element,r,o)})),n+=r})),t},ri=function(e){var t={},n=[],r=te(e).map((function(e){return e.element})).bind(Ar),i=r.bind(Xr).getOr({}),o=0,a=0,s=0,l=V(e,(function(e){return"colgroup"===e.section})),u=l.pass,c=l.fail;L(c,(function(e){var r=[];L(e.cells,(function(e){var n=0;while(void 0!==t[Zr(s,n)])n++;for(var o=Vt(i,n.toString()),l=Yt(e.element,e.rowspan,e.colspan,s,n,o),u=0;u<e.colspan;u++)for(var c=0;c<e.rowspan;c++){var f=s+c,d=n+u,h=Zr(f,d);t[h]=l,a=Math.max(a,d+1)}r.push(l)})),o++,n.push(Kt(e.element,r,e.section)),s++}));var f=ne(u).map((function(e){var t=ni(e),n=tn(e.element,Ft(t));return{colgroups:[n],columns:t}})).getOrThunk((function(){return{colgroups:[],columns:{}}})),d=f.columns,h=f.colgroups,p=Ut(o,a);return{grid:p,access:t,all:n,columns:d,colgroups:h}},ii=function(e){var t=Br(e);return ri(t)},oi=function(e){return Y(e.all,(function(e){return e.cells}))},ai=function(e){return Ft(e.columns)},si=function(e){return Ot(e.columns).length>0},li=function(e,t){return E.from(e.columns[t])},ui={fromTable:ii,generate:ri,getAt:Qr,findItem:ei,filterItems:ti,justCells:oi,justColumns:ai,hasColumns:si,getColumnAt:li},ci=function(e,t){var n=t.column,r=t.column+t.colspan-1,i=t.row,o=t.row+t.rowspan-1;return n<=e.finishCol&&r>=e.startCol&&i<=e.finishRow&&o>=e.startRow},fi=function(e,t){return t.column>=e.startCol&&t.column+t.colspan-1<=e.finishCol&&t.row>=e.startRow&&t.row+t.rowspan-1<=e.finishRow},di=function(e,t){for(var n=!0,r=w(fi,t),i=t.startRow;i<=t.finishRow;i++)for(var o=t.startCol;o<=t.finishCol;o++)n=n&&ui.getAt(e,i,o).exists(r);return n?E.some(t):E.none()},hi=function(e,t){return Qt(Math.min(e.row,t.row),Math.min(e.column,t.column),Math.max(e.row+e.rowspan-1,t.row+t.rowspan-1),Math.max(e.column+e.colspan-1,t.column+t.colspan-1))},pi=function(e,t,n){var r=ui.findItem(e,t,Ct),i=ui.findItem(e,n,Ct);return r.bind((function(e){return i.map((function(t){return hi(e,t)}))}))},mi=function(e,t,n){return pi(e,t,n).bind((function(t){return di(e,t)}))},gi=function(e,t,n,r){return ui.findItem(e,t,Ct).bind((function(t){var i=n>0?t.row+t.rowspan-1:t.row,o=r>0?t.column+t.colspan-1:t.column,a=ui.getAt(e,i+n,o+r);return a.map((function(e){return e.element}))}))},vi=function(e,t,n){return pi(e,t,n).map((function(t){var n=ui.filterItems(e,w(ci,t));return B(n,(function(e){return e.element}))}))},bi=function(e,t){var n=function(e,t){return kt(t,e)};return ui.findItem(e,t,n).map((function(e){return e.element}))},yi=function(e,t,n){return Ar(e).bind((function(r){var i=xi(r);return gi(i,e,t,n)}))},wi=function(e,t,n){var r=xi(e);return vi(r,t,n)},_i=function(e,t,n,r,i){var o=xi(e),a=Ct(e,n)?E.some(t):bi(o,t),s=Ct(e,i)?E.some(r):bi(o,r);return a.bind((function(e){return s.bind((function(t){return vi(o,e,t)}))}))},Ci=function(e,t,n){var r=xi(e);return mi(r,t,n)},xi=ui.fromTable,Si=function(e,t){var n=mn(e);n.each((function(n){n.dom.insertBefore(t.dom,e.dom)}))},ki=function(e,t){var n=yn(e);n.fold((function(){var n=mn(e);n.each((function(e){Oi(e,t)}))}),(function(e){Si(e,t)}))},Di=function(e,t){var n=Cn(e);n.fold((function(){Oi(e,t)}),(function(n){e.dom.insertBefore(t.dom,n.dom)}))},Oi=function(e,t){e.dom.appendChild(t.dom)},Ti=function(e,t,n){_n(e,n).fold((function(){Oi(e,t)}),(function(e){Si(e,t)}))},Ei=function(e,t){Si(e,t),Oi(t,e)},Ii=function(e,t){L(t,(function(t){Si(e,t)}))},Ni=function(e,t){L(t,(function(n,r){var i=0===r?e:t[r-1];ki(i,n)}))},Ai=function(e,t){L(t,(function(t){Oi(e,t)}))},Pi=function(e){e.dom.textContent="",L(wn(e),(function(e){Mi(e)}))},Mi=function(e){var t=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)},Ri=function(e){var t=wn(e);t.length>0&&Ii(e,t),Mi(e)},Fi=function(e,t){var n=function(n){if(!e(n))throw new Error("Can only get "+t+" value of a "+t+" node");return r(n).getOr("")},r=function(t){return e(t)?E.from(t.dom.nodeValue):E.none()},i=function(n,r){if(!e(n))throw new Error("Can only set raw "+t+" value of a "+t+" node");n.dom.nodeValue=r};return{get:n,getOption:r,set:i}},Bi=Fi(ln,"text"),Li=function(e){return Bi.get(e)},$i=function(e){return Bi.getOption(e)},Vi=function(e,t){return Bi.set(e,t)},ji=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","li","table","thead","tbody","tfoot","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"];function zi(){var e=function(e){return vt.fromDom(e.dom.cloneNode(!1))},t=function(e){return hn(e).dom},n=function(e){return!!sn(e)&&("body"===nn(e)||M(ji,nn(e)))},r=function(e){return!!sn(e)&&M(["br","img","hr","input"],nn(e))},i=function(e){return sn(e)&&"false"===Qn(e,"contenteditable")},o=function(e,t){return e.dom.compareDocumentPosition(t.dom)},a=function(e,t){var n=nr(e);Jn(t,n)},s=function(e){var t=nn(e);return M(["script","noscript","iframe","noframes","noembed","title","style","textarea","xmp"],t)},l=function(e){return sn(e)?er(e,"lang"):E.none()};return{up:v({selector:Wn,closest:Yn,predicate:jn,all:vn}),down:v({selector:$n,predicate:Fn}),styles:v({get:pr,getRaw:gr,set:dr,remove:vr}),attrs:v({get:Qn,set:Xn,remove:tr,copyTo:a}),insert:v({before:Si,after:ki,afterAll:Ni,append:Oi,appendAll:Ai,prepend:Di,wrap:Ei}),remove:v({unwrap:Ri,remove:Mi}),create:v({nu:vt.fromTag,clone:e,text:vt.fromText}),query:v({comparePosition:o,prevSibling:bn,nextSibling:yn}),property:v({children:wn,name:nn,parent:mn,document:t,isText:ln,isComment:an,isElement:sn,isSpecial:s,getLanguage:l,getText:Li,setText:Vi,isBoundary:n,isEmptyTag:r,isNonEditable:i}),eq:Ct,is:Dt}}var Hi=function(e,t,n,r){var i=n[0],o=n.slice(1);return r(e,t,i,o)},Ui=function(e,t,n){return n.length>0?Hi(e,t,n,Wi):E.none()},Wi=function(e,t,n,r){var i=t(e,n);return z(r,(function(n,r){var i=t(e,r);return qi(e,n,i)}),i)},qi=function(e,t,n){return t.bind((function(t){return n.filter(w(e.eq,t))}))},Gi=function(e,t){return w(e.eq,t)},Yi=function(e,t,n,r){void 0===r&&(r=x);var i=[t].concat(e.up().all(t)),o=[n].concat(e.up().all(n)),a=function(e){var t=q(e,r);return t.fold((function(){return e}),(function(t){return e.slice(0,t+1)}))},s=a(i),l=a(o),u=W(s,(function(t){return R(l,Gi(e,t))}));return{firstpath:s,secondpath:l,shared:u}},Ki=Ui,Xi=Yi,Ji=zi(),Zi=function(e,t){return Ki(Ji,(function(t,n){return e(n)}),t)},Qi=function(e,t,n){return Xi(Ji,e,t,n)},eo=function(e){return Wn(e,"table")},to=function(e,t,n){var r=function(e){return function(t){return void 0!==n&&n(t)||Ct(t,e)}};return Ct(e,t)?E.some({boxes:E.some([e]),start:e,finish:t}):eo(e).bind((function(i){return eo(t).bind((function(o){if(Ct(i,o))return E.some({boxes:wi(i,e,t),start:e,finish:t});if(kt(i,o)){var a=Bn(t,"td,th",r(i)),s=a.length>0?a[a.length-1]:t;return E.some({boxes:_i(i,e,i,t,o),start:e,finish:s})}if(kt(o,i)){a=Bn(e,"td,th",r(o));var l=a.length>0?a[a.length-1]:e;return E.some({boxes:_i(o,e,i,t,o),start:e,finish:l})}return Qi(e,t).shared.bind((function(a){return Yn(a,"table",n).bind((function(n){var a=Bn(t,"td,th",r(n)),s=a.length>0?a[a.length-1]:t,l=Bn(e,"td,th",r(n)),u=l.length>0?l[l.length-1]:e;return E.some({boxes:_i(n,e,i,t,o),start:u,finish:s})}))}))}))}))},no=function(e,t){var n=$n(e,t);return n.length>0?E.some(n):E.none()},ro=function(e,t){return W(e,(function(e){return bt(e,t)}))},io=function(e,t,n){return Gn(e,t).bind((function(t){return Gn(e,n).bind((function(e){return Zi(eo,[t,e]).map((function(n){return{first:t,last:e,table:n}}))}))}))},oo=function(e,t){return Wn(e,"table").bind((function(n){return Gn(n,t).bind((function(t){return to(t,e).bind((function(e){return e.boxes.map((function(t){return{boxes:t,start:e.start,finish:e.finish}}))}))}))}))},ao=function(e,t,n,r,i){return ro(e,i).bind((function(e){return yi(e,t,n).bind((function(e){return oo(e,r)}))}))},so=function(e,t){return no(e,t)},lo=function(e,t,n){return io(e,t,n).bind((function(t){var n=function(t){return Ct(e,t)},r="thead,tfoot,tbody,table",i=Wn(t.first,r,n),o=Wn(t.last,r,n);return i.bind((function(e){return o.bind((function(n){return Ct(e,n)?Ci(t.table,t.first,t.last):E.none()}))}))}))},uo=function(e){if(!a(e))throw new Error("cases must be an array");if(0===e.length)throw new Error("there must be at least one case");var t=[],n={};return L(e,(function(r,i){var o=Ot(r);if(1!==o.length)throw new Error("one and only one name per case");var s=o[0],l=r[s];if(void 0!==n[s])throw new Error("duplicate key detected:"+s);if("cata"===s)throw new Error("cannot have a case named cata (sorry)");if(!a(l))throw new Error("case arguments must be an array");t.push(s),n[s]=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=n.length;if(o!==l.length)throw new Error("Wrong number of arguments to case "+s+". Expected "+l.length+" ("+l+"), got "+o);var a=function(e){var r=Ot(e);if(t.length!==r.length)throw new Error("Wrong number of arguments to match. Expected: "+t.join(",")+"\nActual: "+r.join(","));var i=K(t,(function(e){return M(r,e)}));if(!i)throw new Error("Not all branches were specified when using match. Specified: "+r.join(", ")+"\nRequired: "+t.join(", "));return e[s].apply(null,n)};return{fold:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(t.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+t.length);var o=t[i];return o.apply(null,n)},match:a,log:function(e){console.log(e,{constructors:t,constructor:s,params:n})}}}})),n},co={generate:uo},fo=co.generate([{none:[]},{multiple:["elements"]},{single:["element"]}]),ho=function(e,t,n,r){return e.fold(t,n,r)},po=fo.none,mo=fo.multiple,go=fo.single,vo=function(e,t,n){var r=function(){return so(e(),n).fold((function(){return t().fold(po,go)}),(function(e){return mo(e)}))};return{get:r}},bo=tinymce.util.Tools.resolve("tinymce.PluginManager"),yo=function(e,t){return vt.fromDom(e.dom.cloneNode(t))},wo=function(e){return yo(e,!1)},_o=function(e){return yo(e,!0)},Co=function(e,t){var n=vt.fromTag(t),r=nr(e);return Jn(n,r),n},xo=function(e,t){var n=Co(e,t),r=wn(_o(e));return Ai(n,r),n},So=function(e,t){var n=Co(e,t);Si(e,n);var r=wn(e);return Ai(n,r),Mi(e),n},ko=function(e,t){var n=function(t,n){if(!h(n)&&!n.match(/^[0-9]+$/))throw new Error(e+".set accepts only positive integer values. Value was "+n);var r=t.dom;ur(r)&&(r.style[e]=n+"px")},r=function(n){var r=t(n);if(r<=0||null===r){var i=pr(n,e);return parseFloat(i)||0}return r},i=r,o=function(e,t){return H(t,(function(t,n){var r=pr(e,n),i=void 0===r?0:parseInt(r,10);return isNaN(i)?t:t+i}),0)},a=function(e,t,n){var r=o(e,n),i=t>r?t-r:0;return i};return{set:n,get:r,getOuter:i,aggregate:o,max:a}},Do=function(){var e=it().browser;return e.isIE()||e.isEdge()},Oo=function(e,t){return Te(e).getOr(t)},To=function(e,t,n){return Oo(pr(e,t),n)},Eo=function(e){return pr(e,"box-sizing")},Io=function(e,t,n,r){var i=To(e,"padding-"+n,0),o=To(e,"padding-"+r,0),a=To(e,"border-"+n+"-width",0),s=To(e,"border-"+r+"-width",0);return t-i-o-a-s},No=function(e,t){var n=e.dom,r=n.getBoundingClientRect().height||n.offsetHeight;return"border-box"===t?r:Io(e,r,"top","bottom")},Ao=function(e,t){var n=e.dom,r=n.getBoundingClientRect().width||n.offsetWidth;return"border-box"===t?r:Io(e,r,"left","right")},Po=function(e){return Do()?No(e,Eo(e)):To(e,"height",e.dom.offsetHeight)},Mo=function(e){return Do()?Ao(e,Eo(e)):To(e,"width",e.dom.offsetWidth)},Ro=function(e){return Ao(e,"content-box")},Fo=ko("width",(function(e){return e.dom.offsetWidth})),Bo=function(e){return Fo.get(e)},Lo=function(e){return Fo.getOuter(e)},$o=Ro,Vo=Mo,jo=function(e,t){void 0===t&&(t=S);var n=e.grid,r=F(n.columns,b),i=F(n.rows,b);return B(r,(function(n){var r=function(){return Y(i,(function(t){return ui.getAt(e,t,n).filter((function(e){return e.column===n})).toArray()}))},o=function(e){return 1===e.colspan&&t(e.element)},a=function(){return ui.getAt(e,0,n)};return zo(r,o,a)}))},zo=function(e,t,n){var r=e(),i=W(r,t),o=i.orThunk((function(){return E.from(r[0]).orThunk(n)}));return o.map((function(e){return e.element}))},Ho=function(e){var t=e.grid,n=F(t.rows,b),r=F(t.columns,b);return B(n,(function(t){var n=function(){return Y(r,(function(n){return ui.getAt(e,t,n).filter((function(e){return e.row===t})).fold(v([]),(function(e){return[e]}))}))},i=function(e){return 1===e.rowspan},o=function(){return ui.getAt(e,t,0)};return zo(n,i,o)}))},Uo=function(e,t){if(t<0||t>=e.length-1)return E.none();var n=e[t].fold((function(){var n=X(e.slice(0,t));return re(n,(function(e,t){return e.map((function(e){return{value:e,delta:t+1}}))}))}),(function(e){return E.some({value:e,delta:0})})),r=e[t+1].fold((function(){var n=e.slice(t+1);return re(n,(function(e,t){return e.map((function(e){return{value:e,delta:t+1}}))}))}),(function(e){return E.some({value:e,delta:1})}));return n.bind((function(e){return r.map((function(t){var n=t.delta+e.delta;return Math.abs(t.value-e.value)/n}))}))},Wo=function(e,t){return function(n){return"rtl"===qo(n)?t:e}},qo=function(e){return"rtl"===pr(e,"direction")?"rtl":"ltr"},Go=ko("height",(function(e){var t=e.dom;return Nn(e)?t.getBoundingClientRect().height:t.offsetHeight})),Yo=function(e){return Go.get(e)},Ko=function(e){return Go.getOuter(e)},Xo=Po,Jo=function(e,t){var n=function(n,r){return Jo(e+n,t+r)};return{left:e,top:t,translate:n}},Zo=Jo,Qo=function(e){var t=e.getBoundingClientRect();return Zo(t.left,t.top)},ea=function(e,t){return void 0!==e?e:void 0!==t?t:0},ta=function(e){var t=e.dom.ownerDocument,n=t.body,r=t.defaultView,i=t.documentElement;if(n===e.dom)return Zo(n.offsetLeft,n.offsetTop);var o=ea(null===r||void 0===r?void 0:r.pageYOffset,i.scrollTop),a=ea(null===r||void 0===r?void 0:r.pageXOffset,i.scrollLeft),s=ea(i.clientTop,n.clientTop),l=ea(i.clientLeft,n.clientLeft);return na(e).translate(a-l,o-s)},na=function(e){var t=e.dom,n=t.ownerDocument,r=n.body;return r===t?Zo(r.offsetLeft,r.offsetTop):Nn(e)?Qo(t):Zo(0,0)},ra=function(e,t){return{row:e,y:t}},ia=function(e,t){return{col:e,x:t}},oa=function(e){var t=ta(e);return t.left+Lo(e)},aa=function(e){return ta(e).left},sa=function(e,t){return ia(e,aa(t))},la=function(e,t){return ia(e,oa(t))},ua=function(e){return ta(e).top},ca=function(e,t){return ra(e,ua(t))},fa=function(e,t){return ra(e,ua(t)+Ko(t))},da=function(e,t,n){if(0===n.length)return[];var r=B(n.slice(1),(function(t,n){return t.map((function(t){return e(n,t)}))})),i=n[n.length-1].map((function(e){return t(n.length-1,e)}));return r.concat([i])},ha=function(e){return-e},pa={delta:b,positions:function(e){return da(ca,fa,e)},edge:ua},ma={delta:b,edge:aa,positions:function(e){return da(sa,la,e)}},ga={delta:ha,edge:oa,positions:function(e){return da(la,sa,e)}},va=Wo(ma,ga),ba={delta:function(e,t){return va(t).delta(e,t)},positions:function(e,t){return va(t).positions(e,t)},edge:function(e){return va(e).edge(e)}},ya={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},wa=function(){var e="[0-9]+",t="[+-]?"+e,n="[eE]"+t,r="\\.",i=function(e){return"(?:"+e+")?"},o=["Infinity",e+r+i(e)+i(n),r+e+i(n),e+i(n)].join("|"),a="[+-]?(?:"+o+")";return new RegExp("^("+a+")(.*)$")}(),_a=function(e,t){return R(t,(function(t){return R(ya[t],(function(t){return e===t}))}))},Ca=function(e,t){var n=E.from(wa.exec(e));return n.bind((function(e){var n=Number(e[1]),r=e[2];return _a(r,t)?E.some({value:n,unit:r}):E.none()}))},xa=/(\d+(\.\d+)?)%/,Sa=/(\d+(\.\d+)?)px|em/,ka=fn("col"),Da=function(e,t,n){var r=gn(e).getOrThunk((function(){return Pn(dn(e))}));return t(e)/n(r)*100},Oa=function(e,t){dr(e,"width",t+"px")},Ta=function(e,t){dr(e,"width",t+"%")},Ea=function(e,t){dr(e,"height",t+"px")},Ia=function(e){return Xo(e)+"px"},Na=function(e,t,n,r){var i=Ar(e).map((function(e){var r=n(e);return Math.floor(t/100*r)})).getOr(t);return r(e,i),i},Aa=function(e,t,n,r){var i=parseFloat(e);return xe(e,"%")&&"table"!==nn(t)?Na(t,i,n,r):i},Pa=function(e){var t=Ia(e);return t?Aa(t,e,Yo,Ea):Yo(e)},Ma=function(e,t,n){var r=n(e),i=wr(e,t);return r/i},Ra=function(e,t){return gr(e,t).orThunk((function(){return er(e,t).map((function(e){return e+"px"}))}))},Fa=function(e){return Ra(e,"width")},Ba=function(e){return Ra(e,"height")},La=function(e){return Da(e,Bo,$o)},$a=function(e){return ka(e)?Bo(e):Vo(e)},Va=function(e){return Ma(e,"rowspan",Pa)},ja=function(e){var t=Fa(e);return t.bind((function(e){return Ca(e,["fixed","relative","empty"])}))},za=function(e,t,n){dr(e,"width",t+n)},Ha=function(e){return Bo(e)+"px"},Ua=function(e){return Da(e,Bo,$o)+"%"},Wa=function(e){return Fa(e).exists((function(e){return xa.test(e)}))},qa=function(e){return Fa(e).exists((function(e){return Sa.test(e)}))},Ga=function(e){return Fa(e).isNone()},Ya=v(xa),Ka=fn("col"),Xa=function(e){return Fa(e).getOrThunk((function(){return $a(e)+"px"}))},Ja=function(e){return Ba(e).getOrThunk((function(){return Va(e)+"px"}))},Za=function(e){return B(ui.justColumns(e),(function(e){return E.from(e.element)}))},Qa=function(e){var t=it().browser,n=t.isChrome()||t.isFirefox();return!Ka(e)||n},es=function(e,t,n,r,i,o){return e.filter(r).fold((function(){return o(Uo(n,t))}),(function(e){return i(e)}))},ts=function(e,t,n,r){var i=jo(e),o=ui.hasColumns(e)?Za(e):i,a=[E.some(ba.edge(t))].concat(B(ba.positions(i,t),(function(e){return e.map((function(e){return e.x}))}))),s=_(_r);return B(o,(function(e,t){return es(e,t,a,s,(function(e){if(Qa(e))return n(e);var o=ar(i[t],b);return es(o,t,a,s,(function(e){return r(E.some(Bo(e)))}),r)}),r)}))},ns=function(e){return e.map((function(e){return e+"px"})).getOr("")},rs=function(e,t){return ts(e,t,Xa,ns)},is=function(e,t,n){return ts(e,t,La,(function(e){return e.fold((function(){return n.minCellWidth()}),(function(e){return e/n.pixelWidth()*100}))}))},os=function(e,t,n){return ts(e,t,$a,(function(e){return e.getOrThunk(n.minCellWidth)}))},as=function(e,t,n,r,i){var o=Ho(e),a=[E.some(n.edge(t))].concat(B(n.positions(o,t),(function(e){return e.map((function(e){return e.y}))})));return B(o,(function(e,t){return es(e,t,a,_(Cr),r,i)}))},ss=function(e,t,n){return as(e,t,n,Va,(function(e){return e.getOrThunk(kr)}))},ls=function(e,t,n){return as(e,t,n,Ja,ns)},us=function(e,t){return function(){return Nn(e)?t(e):parseFloat(gr(e,"width").getOr("0"))}},cs=function(e){var t=us(e,Bo),n=v(0),r=function(t,n){return os(t,e,n)};return{width:t,pixelWidth:t,getWidths:r,getCellDelta:n,singleColumnWidth:v([0]),minCellWidth:n,setElementWidth:p,adjustTableWidth:p,isRelative:!0,label:"none"}},fs=function(e){var t=us(e,(function(e){return parseFloat(Ua(e))})),n=us(e,Bo),r=function(e){return e/n()*100},i=function(e,t){return[100-e]},o=function(){return Sr()/n()*100},a=function(n){var r=t(),i=n/100*r,o=r+i;Ta(e,o)},s=function(t,n){return is(t,e,n)};return{width:t,pixelWidth:n,getWidths:s,getCellDelta:r,singleColumnWidth:i,minCellWidth:o,setElementWidth:Ta,adjustTableWidth:a,isRelative:!0,label:"percent"}},ds=function(e){var t=us(e,Bo),n=b,r=function(e,t){var n=Math.max(Sr(),e+t);return[n-e]},i=function(n){var r=t()+n;Oa(e,r)},o=function(t,n){return os(t,e,n)};return{width:t,pixelWidth:t,getWidths:o,getCellDelta:n,singleColumnWidth:r,minCellWidth:Sr,setElementWidth:Oa,adjustTableWidth:i,isRelative:!1,label:"pixel"}},hs=function(e,t){var n=Ya().exec(t);return null!==n?fs(e):ds(e)},ps=function(e){var t=Fa(e);return t.fold((function(){return cs(e)}),(function(t){return hs(e,t)}))},ms={getTableSize:ps,pixelSize:ds,percentageSize:fs,noneSize:cs},gs=function(e,t,n,r,i,o){return{minRow:e,minCol:t,maxRow:n,maxCol:r,allCells:i,selectedCells:o}},vs=function(e,t){var n=e.grid.columns,r=e.grid.rows,i=r,o=n,a=0,s=0,l=[],u=[];return Et(e.access,(function(e){if(l.push(e),t(e)){u.push(e);var n=e.row,r=n+e.rowspan-1,c=e.column,f=c+e.colspan-1;n<i?i=n:r>a&&(a=r),c<o?o=c:f>s&&(s=f)}})),gs(i,o,a,s,l,u)},bs=function(e,t,n){var r=e[n].element,i=vt.fromTag("td");Oi(i,vt.fromTag("br"));var o=t?Oi:Di;o(r,i)},ys=function(e,t,n,r){for(var i=t.grid.columns,o=t.grid.rows,a=0;a<o;a++)for(var s=!1,l=0;l<i;l++)if(!(a<n.minRow||a>n.maxRow||l<n.minCol||l>n.maxCol)){var u=ui.getAt(t,a,l).filter(r).isNone();u?bs(e,s,a):s=!0}},ws=function(e,t,n,r){Et(n.columns,(function(e){(e.column<t.minCol||e.column>t.maxCol)&&Mi(e.element)}));var i=j(Dr(e,"tr"),(function(e){return 0===e.dom.childElementCount}));L(i,Mi),t.minCol!==t.maxCol&&t.minRow!==t.maxRow||L(Dr(e,"th,td"),(function(e){tr(e,"rowspan"),tr(e,"colspan")})),tr(e,Kr),tr(e,"data-snooker-col-series");var o=ms.getTableSize(e);o.adjustTableWidth(r)},_s=function(e,t,n,r){if(0===r.minCol&&t.grid.columns===r.maxCol+1)return 0;var i=os(t,e,n),o=H(i,(function(e,t){return e+t}),0),a=H(i.slice(r.minCol,r.maxCol+1),(function(e,t){return e+t}),0),s=a/o*n.pixelWidth(),l=s-n.pixelWidth();return n.getCellDelta(l)},Cs=function(e,t){var n=function(e){return bt(e.element,t)},r=_o(e),i=Br(r),o=ms.getTableSize(e),a=ui.generate(i),s=vs(a,n),l="th:not("+t+"),td:not("+t+")",u=Or(r,"th,td",(function(e){return bt(e,l)}));L(u,Mi),ys(i,a,s,n);var c=ui.fromTable(e),f=_s(e,c,o,s);return ws(r,s,a,f),r},xs=" ",Ss=function(e){return"img"===nn(e)?1:$i(e).fold((function(){return wn(e).length}),(function(e){return e.length}))},ks=function(e){return $i(e).filter((function(e){return 0!==e.trim().length||e.indexOf(xs)>-1})).isSome()},Ds=["img","br"],Os=function(e){var t=ks(e);return t||M(Ds,nn(e))},Ts=function(e){return Un(e,Os)},Es=function(e){return Is(e,Os)},Is=function(e,t){var n=function(e){for(var r=wn(e),i=r.length-1;i>=0;i--){var o=r[i];if(t(o))return E.some(o);var a=n(o);if(a.isSome())return a}return E.none()};return n(e)},Ns={scope:["row","col"]},As=function(e){return function(){var t=vt.fromTag("td",e.dom);return Oi(t,vt.fromTag("br",e.dom)),t}},Ps=function(e){return function(){return vt.fromTag("col",e.dom)}},Ms=function(e){return function(){return vt.fromTag("colgroup",e.dom)}},Rs=function(e){return function(){return vt.fromTag("tr",e.dom)}},Fs=function(e,t,n){var r=xo(e,t);return Et(n,(function(e,t){null===e?tr(r,t):Xn(r,t,e)})),r},Bs=function(e){return e},Ls=function(e,t,n){var r=Ts(e);return r.map((function(r){var i=n.join(","),o=Bn(r,i,(function(t){return Ct(t,e)}));return z(o,(function(e,t){var n=wo(t);return tr(n,"contenteditable"),Oi(e,n),n}),t)})).getOr(t)},$s=function(e,t){Et(Ns,(function(n,r){return er(e,r).filter((function(e){return M(n,e)})).each((function(e){return Xn(t,r,e)}))}))},Vs=function(e,t,n){var r=function(e,t){br(e.element,t),vr(t,"height"),1!==e.colspan&&vr(t,"width")},i=function(i){var o=vt.fromTag(nn(i.element),t.dom),a=n.getOr(["strong","em","b","i","span","font","h1","h2","h3","h4","h5","h6","p","div"]),s=a.length>0?Ls(i.element,o,a):o;return Oi(s,vt.fromTag("br")),r(i,o),$s(i.element,o),e(i.element,o),o},o=function(n){var i=vt.fromTag(nn(n.element),t.dom);return r(n,i),e(n.element,i),i};return{col:o,colgroup:Ms(t),row:Rs(t),cell:i,replace:Fs,colGap:Ps(t),gap:As(t)}},js=function(e){return{col:Ps(e),colgroup:Ms(e),row:Rs(e),cell:As(e),replace:Bs,colGap:Ps(e),gap:As(e)}},zs=function(e,t){var n=t||document,r=n.createElement("div");return r.innerHTML=e,wn(vt.fromDom(r))},Hs=function(e){return B(e,vt.fromDom)},Us=function(e){return e.nodeName.toLowerCase()},Ws=function(e){return vt.fromDom(e.getBody())},qs=function(e){return e.getBoundingClientRect().width},Gs=function(e){return e.getBoundingClientRect().height},Ys=function(e){return function(t){return Ct(t,Ws(e))}},Ks=function(e){return e?e.replace(/px$/,""):""},Xs=function(e){return/^\d+(\.\d+)?$/.test(e)?e+"px":e},Js=function(e){tr(e,"data-mce-style");var t=function(e){return tr(e,"data-mce-style")};L(Ir(e),t),L(Nr(e),t),L(Pr(e),t)},Zs=function(e,t){var n=e.dom.getStyle(t,"width")||e.dom.getAttrib(t,"width");return E.from(n).filter(De)},Qs=function(e){return/^(\d+(\.\d+)?)%$/.test(e)},el=function(e){return/^(\d+(\.\d+)?)px$/.test(e)},tl=function(e){return vt.fromDom(e.selection.getStart())},nl=function(e){return vt.fromDom(e.selection.getEnd())},rl=function(e){return ho(e.get(),v([]),b,Z)},il=function(e){var t=function(e,t){return er(e,t).exists((function(e){return parseInt(e,10)>1}))},n=function(e){return t(e,"rowspan")||t(e,"colspan")},r=rl(e);return r.length>0&&K(r,n)?E.some(r):E.none()},ol=function(e,t,n){return ho(t.get(),E.none,(function(t){return t.length<=1?E.none():lo(e,n.firstSelectedSelector,n.lastSelectedSelector).map((function(e){return{bounds:e,cells:t}}))}),E.none)},al="data-mce-selected",sl="td["+al+"],th["+al+"]",ll="["+al+"]",ul="data-mce-first-selected",cl="td["+ul+"],th["+ul+"]",fl="data-mce-last-selected",dl="td["+fl+"],th["+fl+"]",hl=ll,pl={selected:al,selectedSelector:sl,firstSelected:ul,firstSelectedSelector:cl,lastSelected:fl,lastSelectedSelector:dl},ml=function(e){return{element:e,mergable:E.none(),unmergable:E.none(),selection:[e]}},gl=function(e,t,n){return{element:n,mergable:ol(t,e,pl),unmergable:il(e),selection:rl(e)}},vl=function(e,t,n){return{element:e,clipboard:t,generators:n}},bl=function(e,t,n,r){return{selection:rl(e),clipboard:n,generators:r}},yl=function(e){return Ar(e).bind((function(e){return so(e,pl.firstSelectedSelector)})).fold(v(e),(function(e){return e[0]}))},wl=function(e){return function(t,n){var r=nn(t),i="col"===r||"colgroup"===r?yl(t):t;return Yn(i,e,n)}},_l=wl("th,td,caption"),Cl=wl("th,td"),xl=function(e){return rl(e)},Sl=function(e,t){var n=Cl(e),r=n.bind((function(e){return Ar(e)})).map((function(e){return Pr(e)}));return or(n,r,(function(e,n){return j(n,(function(n){return R(Hs(n.dom.cells),(function(n){return"1"===Qn(n,t)||Ct(n,e)}))}))})).getOr([])},kl=function(e){return Ar(e[0]).map((function(e){var t=Cs(e,hl);return Js(t),[t]}))},Dl=function(e,t){return B(t,(function(t){return e.selection.serializer.serialize(t.dom,{})})).join("")},Ol=function(e){return B(e,(function(e){return e.dom.innerText})).join("")},Tl=function(e,t,n){e.on("BeforeGetContent",(function(n){var r=function(t){n.preventDefault(),kl(t).each((function(t){n.content="text"===n.format?Ol(t):Dl(e,t)}))};!0===n.selection&&ho(t.get(),p,r,p)})),e.on("BeforeSetContent",(function(r){if(!0===r.selection&&!0===r.paste){var i=xl(t);te(i).each((function(t){Ar(t).each((function(i){var o=j(zs(r.content),(function(e){return"meta"!==nn(e)})),a=fn("table");if(1===o.length&&a(o[0])){r.preventDefault();var s=vt.fromDom(e.getDoc()),l=js(s),u=vl(t,o[0],l);n.pasteCells(i,u).each((function(){e.focus()}))}}))}))}}))},El=co.generate([{none:[]},{only:["index"]},{left:["index","next"]},{middle:["prev","index","next"]},{right:["prev","index"]}]),Il=ie({},El),Nl=function(e,t){return 0===e.length?Il.none():1===e.length?Il.only(0):0===t?Il.left(0,1):t===e.length-1?Il.right(t-1,t):t>0&&t<e.length-1?Il.middle(t-1,t,t+1):Il.none()},Al=function(e,t,n,r,i){var o=e.slice(0),a=Nl(e,t),s=v(B(o,v(0))),l=function(e){return r.singleColumnWidth(o[e],n)},u=function(e,t){return i.calcLeftEdgeDeltas(o,e,t,n,r.minCellWidth(),r.isRelative)},c=function(e,t,a){return i.calcMiddleDeltas(o,e,t,a,n,r.minCellWidth(),r.isRelative)},f=function(e,t){return i.calcRightEdgeDeltas(o,e,t,n,r.minCellWidth(),r.isRelative)};return a.fold(s,l,u,c,f)},Pl=function(e,t,n){for(var r=0,i=e;i<t;i++)r+=void 0!==n[i]?n[i]:0;return r},Ml=function(e,t){var n=ui.justCells(e);return B(n,(function(e){var n=Pl(e.column,e.column+e.colspan,t);return{element:e.element,width:n,colspan:e.colspan}}))},Rl=function(e,t){var n=ui.justColumns(e);return B(n,(function(e,n){return{element:e.element,width:t[n],colspan:e.colspan}}))},Fl=function(e,t){var n=ui.justCells(e);return B(n,(function(e){var n=Pl(e.row,e.row+e.rowspan,t);return{element:e.element,height:n,rowspan:e.rowspan}}))},Bl=function(e,t){return B(e.all,(function(e,n){return{element:e.element,height:t[n]}}))},Ll=function(e){return z(e,(function(e,t){return e+t}),0)},$l=function(e,t){return ui.hasColumns(e)?Rl(e,t):Ml(e,t)},Vl=function(e,t,n){var r=$l(e,t);L(r,(function(e){n.setElementWidth(e.element,e.width)}))},jl=function(e,t,n,r,i){var o=ui.fromTable(e),a=i.getCellDelta(t),s=i.getWidths(o,i),l=n===o.grid.columns-1,u=r.clampTableDelta(s,n,a,i.minCellWidth(),l),c=Al(s,n,u,i,r),f=B(c,(function(e,t){return e+s[t]}));Vl(o,f,i),r.resizeTable(i.adjustTableWidth,u,l)},zl=function(e,t,n,r){var i=ui.fromTable(e),o=ss(i,e,r),a=B(o,(function(e,r){return n===r?Math.max(t+e,kr()):e})),s=Fl(i,a),l=Bl(i,a);L(l,(function(e){Ea(e.element,e.height)})),L(s,(function(e){Ea(e.element,e.height)}));var u=Ll(a);Ea(e,u)},Hl=function(e,t,n,r,i){var o=ui.generate(t),a=r.getWidths(o,r),s=r.pixelWidth(),l=i.calcRedestributedWidths(a,s,n.pixelDelta,r.isRelative),u=l.newSizes,c=l.delta;Vl(o,u,r),r.adjustTableWidth(c)},Ul=function(e,t,n,r){var i=ui.generate(t),o=r.getWidths(i,r);Vl(i,o,r)},Wl=function(e){return B(e,v(0))},ql=function(e,t,n,r,i){return i(e.slice(0,t)).concat(r).concat(i(e.slice(n)))},Gl=function(e){return function(t,n,r,i){if(e(r)){var o=Math.max(i,t[n]-Math.abs(r)),a=Math.abs(o-t[n]);return r>=0?a:-a}return r}},Yl=Gl((function(e){return e<0})),Kl=Gl(S),Xl=function(){var e=function(e,t,n,r,i){var o=Yl(e,t,r,i);return ql(e,t,n+1,[o,0],Wl)},t=function(e,t,n,r){var i=(100+n)/100,o=Math.max(r,(e[t]+n)/i);return B(e,(function(e,n){var r=n===t?o:e/i;return r-e}))},n=function(n,r,i,o,a,s){return s?t(n,r,o,a):e(n,r,i,o,a)},r=function(e,t,r,i,o,a,s){return n(e,r,i,o,a,s)},i=function(e,t){return e(t)},o=function(e,n,r,i,o,a){if(a)return t(e,r,i,o);var s=Yl(e,r,i,o);return Wl(e.slice(0,r)).concat([s])},a=function(e,t,n,r){if(r){var i=t+n,o=i/t,a=B(e,(function(e){return e/o}));return{delta:100*o-100,newSizes:a}}return{delta:n,newSizes:e}};return{resizeTable:i,clampTableDelta:Yl,calcLeftEdgeDeltas:n,calcMiddleDeltas:r,calcRightEdgeDeltas:o,calcRedestributedWidths:a}},Jl=function(){var e=function(e,t,n,r,i){var o=r>=0?n:t,a=Kl(e,o,r,i);return ql(e,t,n+1,[a,-a],Wl)},t=function(t,n,r,i,o,a){return e(t,r,i,o,a)},n=function(e,t,n){n&&e(t)},r=function(e,t,n,r,i,o){if(o)return Wl(e);var a=r/e.length;return B(e,v(a))},i=function(e,t,n,r,i){if(i){if(n>=0)return n;var o=H(e,(function(e,t){return e+t-r}),0);return Math.max(-o,n)}return Yl(e,t,n,r)},o=function(e,t,n,r){return{delta:0,newSizes:e}};return{resizeTable:n,clampTableDelta:i,calcLeftEdgeDeltas:e,calcMiddleDeltas:t,calcRightEdgeDeltas:r,calcRedestributedWidths:o}},Zl=function(e,t){var n=E.from(e.dom.documentElement).map(vt.fromDom).getOr(e);return{parent:v(n),view:v(e),origin:v(Zo(0,0)),isResizable:t}},Ql=function(e,t,n){var r=function(){return ta(t)};return{parent:v(t),view:v(e),origin:r,isResizable:n}},eu=function(e,t,n){return{parent:v(t),view:v(e),origin:v(Zo(0,0)),isResizable:n}},tu={only:Zl,detached:Ql,body:eu},nu=co.generate([{invalid:["raw"]},{pixels:["value"]},{percent:["value"]}]),ru=function(e,t,n){var r=n.substring(0,n.length-e.length),i=parseFloat(r);return r===i.toString()?t(i):nu.invalid(n)},iu=function(e){return xe(e,"%")?ru("%",nu.percent,e):xe(e,"px")?ru("px",nu.pixels,e):nu.invalid(e)},ou=ie(ie({},nu),{from:iu}),au=function(e,t){return B(e,(function(e){var n=ou.from(e);return n.fold((function(){return e}),(function(e){var n=e/t*100;return n+"%"}),(function(e){return e+"%"}))}))},su=function(e,t,n){var r=n/t;return B(e,(function(e){var t=ou.from(e);return t.fold((function(){return e}),(function(e){return e*r+"px"}),(function(e){return e/100*n+"px"}))}))},lu=function(e,t){var n=e.fold((function(){return v("")}),(function(e){var n=e/t;return v(n+"px")}),(function(){var e=100/t;return v(e+"%")}));return F(t,n)},uu=function(e,t,n){return e.fold((function(){return t}),(function(e){return su(t,n,e)}),(function(e){return au(t,n)}))},cu=function(e,t,n){var r=ou.from(n),i=K(e,(function(e){return"0px"===e}))?lu(r,e.length):uu(r,e,t);return pu(i)},fu=function(e,t){return 0===e.length?t:z(e,(function(e,t){return ou.from(t).fold(v(0),b,b)+e}),0)},du=function(e,t){var n=Math.floor(e);return{value:n+t,remainder:e-n}},hu=function(e,t){return ou.from(e).fold(v(e),(function(e){return e+t+"px"}),(function(e){return e+t+"%"}))},pu=function(e){if(0===e.length)return e;var t=z(e,(function(e,t){var n=ou.from(t).fold((function(){return{value:t,remainder:0}}),(function(e){return du(e,"px")}),(function(e){return{value:e+"%",remainder:0}}));return{output:[n.value].concat(e.output),remainder:e.remainder+n.remainder}}),{output:[],remainder:0}),n=t.output;return n.slice(0,n.length-1).concat([hu(n[n.length-1],Math.round(t.remainder))])},mu=ou.from,gu=function(e,t,n){L(t,(function(t){var r=e.slice(t.column,t.colspan+t.column),i=fu(r,Sr());dr(t.element,"width",i+n)}))},vu=function(e,t,n){L(t,(function(t,r){var i=fu([e[r]],Sr());dr(t.element,"width",i+n)}))},bu=function(e,t,n,r){L(n,(function(t){var n=e.slice(t.row,t.rowspan+t.row),i=fu(n,kr());dr(t.element,"height",i+r)})),L(t,(function(t,n){dr(t.element,"height",e[n])}))},yu=function(e){return mu(e).fold(v("px"),v("px"),v("%"))},wu=function(e,t,n){var r=ui.fromTable(e),i=r.all,o=ui.justCells(r),a=ui.justColumns(r);t.each((function(t){var n=yu(t),i=Bo(e),s=rs(r,e),l=cu(s,i,t);ui.hasColumns(r)?vu(l,a,n):gu(l,o,n),dr(e,"width",t)})),n.each((function(t){var n=yu(t),a=Yo(e),s=ls(r,e,pa),l=cu(s,a,t);bu(l,i,o,n),dr(e,"height",t)}))},_u=Wa,Cu=qa,xu=Ga,Su=function(e){var t=ui.fromTable(e);return t.grid},ku=function(e){var t=[],n=function(e){if(void 0===e)throw new Error("Event bind error: undefined handler");t.push(e)},r=function(e){t=j(t,(function(t){return t!==e}))},i=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i={};L(e,(function(e,t){i[e]=n[t]})),L(t,(function(e){e(i)}))};return{bind:n,unbind:r,trigger:i}},Du=function(e){var t=It(e,(function(e){return{bind:e.bind,unbind:e.unbind}})),n=It(e,(function(e){return e.trigger}));return{registry:t,trigger:n}},Ou=function(e,t){var n=null,r=function(){s(n)||(clearTimeout(n),n=null)},i=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];r(),n=setTimeout((function(){n=null,e.apply(null,i)}),t)};return{cancel:r,throttle:i}},Tu=function(e){return e.slice(0).sort()},Eu=function(e,t){throw new Error("All required keys ("+Tu(e).join(", ")+") were not specified. Specified keys were: "+Tu(t).join(", ")+".")},Iu=function(e){throw new Error("Unsupported keys for object: "+Tu(e).join(", "))},Nu=function(e,t){if(!a(t))throw new Error("The "+e+" fields must be an array. Was: "+t+".");L(t,(function(t){if(!i(t))throw new Error("The value "+t+" in the "+e+" fields was not a string.")}))},Au=function(e,t){throw new Error("All values need to be of type: "+t+". Keys ("+Tu(e).join(", ")+") were not.")},Pu=function(e){var t=Tu(e),n=W(t,(function(e,n){return n<t.length-1&&e===t[n+1]}));n.each((function(e){throw new Error("The field: "+e+" occurs more than once in the combined fields: ["+t.join(", ")+"].")}))},Mu=function(e,t){return Ru(e,t,{validate:d,label:"function"})},Ru=function(e,t,n){if(0===t.length)throw new Error("You must specify at least one required field.");return Nu("required",t),Pu(t),function(r){var i=Ot(r),o=K(t,(function(e){return M(i,e)}));o||Eu(t,i),e(t,i);var a=j(t,(function(e){return!n.validate(r[e],e)}));return a.length>0&&Au(a,n.label),r}},Fu=function(e,t){var n=j(t,(function(t){return!M(e,t)}));n.length>0&&Iu(n)},Bu=function(e){return Mu(Fu,e)},Lu=Bu(["compare","extract","mutate","sink"]),$u=Bu(["element","start","stop","destroy"]),Vu=Bu(["forceDrop","drop","move","delayDrop"]),ju=function(){var e=E.none(),t=function(){e=E.none()},n=function(t,n){var r=e.map((function(e){return t.compare(e,n)}));return e=E.some(n),r},r=function(e,t){var r=t.extract(e);r.each((function(e){var r=n(t,e);r.each((function(e){i.trigger.move(e)}))}))},i=Du({move:ku(["info"])});return{onEvent:r,reset:t,events:i.registry}},zu=function(){var e=Du({move:ku(["info"])});return{onEvent:p,reset:p,events:e.registry}},Hu=function(){var e=zu(),t=ju(),n=e,r=function(){n.reset(),n=t},i=function(){n.reset(),n=e},o=function(e,t){n.onEvent(e,t)},a=function(){return n===t};return{on:r,off:i,isOn:a,onEvent:o,events:t.events}},Uu=function(e,t,n){var r=!1,i=Du({start:ku([]),stop:ku([])}),o=Hu(),a=function(){h.stop(),o.isOn()&&(o.off(),i.trigger.stop())},s=Ou(a,200),l=function(e){h.start(e),o.on(),i.trigger.start()},u=function(e){s.cancel(),o.onEvent(e,t)};o.events.move.bind((function(n){t.mutate(e,n.info)}));var c=function(){r=!0},f=function(){r=!1},d=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];r&&e.apply(null,t)}},h=t.sink(Vu({forceDrop:a,drop:d(a),move:d(u),delayDrop:d(s.throttle)}),n),p=function(){h.destroy()};return{element:h.element,go:l,on:c,off:f,destroy:p,events:i.registry}},Wu=function(e,t,n,r,i,o,a){return{target:e,x:t,y:n,stop:r,prevent:i,kill:o,raw:a}},qu=function(e){var t=vt.fromDom(En(e).getOr(e.target)),n=function(){return e.stopPropagation()},r=function(){return e.preventDefault()},i=m(r,n);return Wu(t,e.clientX,e.clientY,n,r,i,e)},Gu=function(e,t){return function(n){e(n)&&t(qu(n))}},Yu=function(e,t,n,r,i){var o=Gu(n,r);return e.dom.addEventListener(t,o,i),{unbind:w(Xu,e,t,o,i)}},Ku=function(e,t,n,r){return Yu(e,t,n,r,!1)},Xu=function(e,t,n,r){e.dom.removeEventListener(t,n,r)},Ju=S,Zu=function(e,t,n){return Ku(e,t,Ju,n)},Qu=qu,ec=function(e,t){var n=Qn(e,t);return void 0===n||""===n?[]:n.split(" ")},tc=function(e,t,n){var r=ec(e,t),i=r.concat([n]);return Xn(e,t,i.join(" ")),!0},nc=function(e,t,n){var r=j(ec(e,t),(function(e){return e!==n}));return r.length>0?Xn(e,t,r.join(" ")):tr(e,t),!1},rc=function(e){return void 0!==e.dom.classList},ic=function(e){return ec(e,"class")},oc=function(e,t){return tc(e,"class",t)},ac=function(e,t){return nc(e,"class",t)},sc=function(e,t){rc(e)?e.dom.classList.add(t):oc(e,t)},lc=function(e){var t=rc(e)?e.dom.classList:ic(e);0===t.length&&tr(e,"class")},uc=function(e,t){if(rc(e)){var n=e.dom.classList;n.remove(t)}else ac(e,t);lc(e)},cc=function(e,t){return rc(e)&&e.dom.classList.contains(t)},fc=function(e){var t=e.replace(/\./g,"-"),n=function(e){return t+"-"+e};return{resolve:n}},dc=fc("ephox-dragster"),hc=dc.resolve,pc=function(e){var t=ie({layerClass:hc("blocker")},e),n=vt.fromTag("div");Xn(n,"role","presentation"),hr(n,{position:"fixed",left:"0px",top:"0px",width:"100%",height:"100%"}),sc(n,hc("blocker")),sc(n,t.layerClass);var r=v(n),i=function(){Mi(n)};return{element:r,destroy:i}},mc=function(e,t){return Zo(t.left-e.left,t.top-e.top)},gc=function(e){return E.some(Zo(e.x,e.y))},vc=function(e,t){e.mutate(t.left,t.top)},bc=function(e,t){var n=pc(t),r=Zu(n.element(),"mousedown",e.forceDrop),i=Zu(n.element(),"mouseup",e.drop),o=Zu(n.element(),"mousemove",e.move),a=Zu(n.element(),"mouseout",e.delayDrop),s=function(){n.destroy(),i.unbind(),o.unbind(),a.unbind(),r.unbind()},l=function(e){Oi(e,n.element())},u=function(){Mi(n.element())};return $u({element:n.element,start:l,stop:u,destroy:s})},yc=Lu({compare:mc,extract:gc,sink:bc,mutate:vc}),wc=function(e,t){void 0===t&&(t={});var n=void 0!==t.mode?t.mode:yc;return Uu(e,n,t)},_c=function(e){return Yn(e,"[contenteditable]")},Cc=function(e,t){return void 0===t&&(t=!1),!it().browser.isIE()&&Nn(e)?e.dom.isContentEditable:_c(e).fold(v(t),(function(e){return"true"===xc(e)}))},xc=function(e){return e.dom.contentEditable},Sc=fc("ephox-snooker"),kc=Sc.resolve,Dc=function(){var e=Du({drag:ku(["xDelta","yDelta"])}),t=function(t,n){e.trigger.drag(t,n)};return{mutate:t,events:e.registry}},Oc=function(){var e=Du({drag:ku(["xDelta","yDelta","target"])}),t=E.none(),n=Dc();n.events.drag.bind((function(n){t.each((function(t){e.trigger.drag(n.xDelta,n.yDelta,t)}))}));var r=function(e){t=E.some(e)},i=function(){return t};return{assign:r,get:i,mutate:n.mutate,events:e.registry}},Tc=function(e,t,n,r,i){var o=vt.fromTag("div");return hr(o,{position:"absolute",left:t-r/2+"px",top:n+"px",height:i+"px",width:r+"px"}),Jn(o,{"data-column":e,role:"presentation"}),o},Ec=function(e,t,n,r,i){var o=vt.fromTag("div");return hr(o,{position:"absolute",left:t+"px",top:n-i/2+"px",height:i+"px",width:r+"px"}),Jn(o,{"data-row":e,role:"presentation"}),o},Ic=kc("resizer-bar"),Nc=kc("resizer-rows"),Ac=kc("resizer-cols"),Pc=7,Mc=function(e,t){return Y(e.all,(function(e,n){return t(e.element)?[n]:[]}))},Rc=function(e,t){var n=[];return F(e.grid.columns,(function(r){var i=ui.getColumnAt(e,r).map((function(e){return e.element}));i.forall(t)&&n.push(r)})),j(n,(function(n){var r=ui.filterItems(e,(function(e){return e.column===n}));return K(r,(function(e){return t(e.element)}))}))},Fc=function(e){var t=$n(e.parent(),"."+Ic);L(t,Mi)},Bc=function(e,t,n){var r=e.origin();L(t,(function(t){t.each((function(t){var i=n(r,t);sc(i,Ic),Oi(e.parent(),i)}))}))},Lc=function(e,t,n,r){Bc(e,t,(function(e,t){var i=Tc(t.col,t.x-e.left,n.top-e.top,Pc,r);return sc(i,Ac),i}))},$c=function(e,t,n,r){Bc(e,t,(function(e,t){var i=Ec(t.row,n.left-e.left,t.y-e.top,r,Pc);return sc(i,Nc),i}))},Vc=function(e,t,n,r,i){var o=ta(n),a=t.isResizable,s=r.length>0?pa.positions(r,n):[],l=s.length>0?Mc(e,a):[],u=j(s,(function(e,t){return R(l,(function(e){return t===e}))}));$c(t,u,o,Lo(n));var c=i.length>0?ba.positions(i,n):[],f=c.length>0?Rc(e,a):[],d=j(c,(function(e,t){return R(f,(function(e){return t===e}))}));Lc(t,d,o,Ko(n))},jc=function(e,t){if(Fc(e),e.isResizable(t)){var n=ui.fromTable(t),r=Ho(n),i=jo(n);Vc(n,e,t,r,i)}},zc=function(e,t){var n=$n(e.parent(),"."+Ic);L(n,t)},Hc=function(e){zc(e,(function(e){dr(e,"display","none")}))},Uc=function(e){zc(e,(function(e){dr(e,"display","block")}))},Wc=function(e){return cc(e,Nc)},qc=function(e){return cc(e,Ac)},Gc=kc("resizer-bar-dragging"),Yc=function(e){var t=Oc(),n=wc(t,{}),r=E.none(),i=function(e,t){return E.from(Qn(e,t))};t.events.drag.bind((function(e){i(e.target,"data-row").each((function(t){var n=xr(e.target,"top");dr(e.target,"top",n+e.yDelta+"px")})),i(e.target,"data-column").each((function(t){var n=xr(e.target,"left");dr(e.target,"left",n+e.xDelta+"px")}))}));var o=function(e,t){var n=xr(e,t),r=yr(e,"data-initial-"+t,0);return n-r};n.events.stop.bind((function(){t.get().each((function(t){r.each((function(n){i(t,"data-row").each((function(e){var r=o(t,"top");tr(t,"data-initial-top"),h.trigger.adjustHeight(n,r,parseInt(e,10))})),i(t,"data-column").each((function(e){var r=o(t,"left");tr(t,"data-initial-left"),h.trigger.adjustWidth(n,r,parseInt(e,10))})),jc(e,n)}))}))}));var a=function(r,i){h.trigger.startAdjust(),t.assign(r),Xn(r,"data-initial-"+i,xr(r,i)),sc(r,Gc),dr(r,"opacity","0.2"),n.go(e.parent())},s=Zu(e.parent(),"mousedown",(function(e){Wc(e.target)&&a(e.target,"top"),qc(e.target)&&a(e.target,"left")})),l=function(t){return Ct(t,e.view())},u=function(e){return Yn(e,"table",l).filter(Cc)},c=Zu(e.view(),"mouseover",(function(t){u(t.target).fold((function(){Nn(t.target)&&Fc(e)}),(function(t){r=E.some(t),jc(e,t)}))})),f=function(){s.unbind(),c.unbind(),n.destroy(),Fc(e)},d=function(t){jc(e,t)},h=Du({adjustHeight:ku(["table","delta","row"]),adjustWidth:ku(["table","delta","column"]),startAdjust:ku([])});return{destroy:f,refresh:d,on:n.on,off:n.off,hideBars:w(Hc,e),showBars:w(Uc,e),events:h.registry}},Kc=function(e,t,n){var r=pa,i=ba,o=Yc(e),a=Du({beforeResize:ku(["table","type"]),afterResize:ku(["table","type"]),startDrag:ku([])});return o.events.adjustHeight.bind((function(e){var t=e.table;a.trigger.beforeResize(t,"row");var n=r.delta(e.delta,t);zl(t,n,e.row,r),a.trigger.afterResize(t,"row")})),o.events.startAdjust.bind((function(e){a.trigger.startDrag()})),o.events.adjustWidth.bind((function(e){var r=e.table;a.trigger.beforeResize(r,"col");var o=i.delta(e.delta,r),s=n(r);jl(r,o,e.column,t,s),a.trigger.afterResize(r,"col")})),{on:o.on,off:o.off,hideBars:o.hideBars,showBars:o.showBars,destroy:o.destroy,events:a.registry}},Xc={create:Kc},Jc=function(e,t){return e.fire("newrow",{node:t})},Zc=function(e,t){return e.fire("newcell",{node:t})},Qc=function(e,t,n,r,i){e.fire("ObjectResizeStart",{target:t,width:n,height:r,origin:i})},ef=function(e,t,n,r,i){e.fire("ObjectResized",{target:t,width:n,height:r,origin:i})},tf=function(e,t,n,r,i){e.fire("TableSelectionChange",{cells:t,start:n,finish:r,otherCells:i})},nf=function(e){e.fire("TableSelectionClear")},rf=function(e,t,n){e.fire("TableModified",ie(ie({},n),{table:t}))},of={structure:!1,style:!0},af={structure:!0,style:!1},sf={structure:!0,style:!0},lf="tableprops tabledelete | tableinsertrowbefore tableinsertrowafter tabledeleterow | tableinsertcolbefore tableinsertcolafter tabledeletecol",uf={"border-collapse":"collapse",width:"100%"},cf=F(5,(function(e){var t=e+1+"px";return{title:t,value:t}})),ff=B(["Solid","Dotted","Dashed","Double","Groove","Ridge","Inset","Outset","None","Hidden"],(function(e){return{title:e,value:e.toLowerCase()}})),df=function(e){var t;if(Pf(e)){var n=e.dom,r=null!==(t=n.getParent(e.selection.getStart(),n.isBlock))&&void 0!==t?t:e.getBody(),i=$o(vt.fromDom(r));return ie(ie({},uf),{width:i+"px"})}return Mf(e)?Mt(uf,(function(e,t){return"width"!==t})):uf},hf={border:"1"},pf="preservetable",mf=function(e){return e.getParam("table_sizing_mode","auto")},gf=function(e){return e.getParam("table_responsive_width")},vf=function(e){return e.getParam("table_border_widths",cf,"array")},bf=function(e){return e.getParam("table_border_styles",ff,"array")},yf=function(e){return e.getParam("table_default_attributes",hf,"object")},wf=function(e){return e.getParam("table_default_styles",df(e),"object")},_f=function(e){return e.getParam("table_resize_bars",!0,"boolean")},Cf=function(e){return e.getParam("table_tab_navigation",!0,"boolean")},xf=function(e){return e.getParam("table_cell_advtab",!0,"boolean")},Sf=function(e){return e.getParam("table_row_advtab",!0,"boolean")},kf=function(e){return e.getParam("table_advtab",!0,"boolean")},Df=function(e){return e.getParam("table_appearance_options",!0,"boolean")},Of=function(e){return e.getParam("table_grid",!0,"boolean")},Tf=function(e){return e.getParam("table_style_by_css",!1,"boolean")},Ef=function(e){return e.getParam("table_cell_class_list",[],"array")},If=function(e){return e.getParam("table_row_class_list",[],"array")},Nf=function(e){return e.getParam("table_class_list",[],"array")},Af=function(e){return"relative"===mf(e)||!0===gf(e)},Pf=function(e){return"fixed"===mf(e)||!1===gf(e)},Mf=function(e){return"responsive"===mf(e)},Rf=function(e){return e.getParam("table_toolbar",lf)},Ff=function(e){return e.getParam("table_use_colgroups",!1,"boolean")},Bf=function(e){var t="section",n=e.getParam("table_header_type",t,"string"),r=["section","cells","sectionCells","auto"];return M(r,n)?n:t},Lf=function(e){var t=["preservetable","resizetable"],n=e.getParam("table_column_resizing",pf,"string");return W(t,(function(e){return e===n})).getOr(pf)},$f=function(e){return"preservetable"===Lf(e)},Vf=function(e){return"resizetable"===Lf(e)},jf=function(e){var t=e.getParam("table_clone_elements");return i(t)?E.some(t.split(/[ ,]/)):Array.isArray(t)?E.some(t):E.none()},zf=function(e){var t=e.getParam("object_resizing",!0);return i(t)?"table"===t:t},Hf=function(e){return e.getParam("table_background_color_map",[],"array")},Uf=function(e){return e.getParam("table_border_color_map",[],"array")},Wf=function(e,t){return Af(e)?ms.percentageSize(t):Pf(e)?ms.pixelSize(t):ms.getTableSize(t)},qf=function(e){tr(e,"width")},Gf=function(e){var t=Ua(e);wu(e,E.some(t),E.none()),qf(e)},Yf=function(e){var t=Ha(e);wu(e,E.some(t),E.none()),qf(e)},Kf=function(e){vr(e,"width");var t=Nr(e),n=t.length>0?t:Ir(e);L(n,(function(e){vr(e,"width"),qf(e)})),qf(e)},Xf=Gf,Jf=Yf,Zf=Kf,Qf=function(e){var t=ui.fromTable(e);ui.hasColumns(t)||L(Ir(e),(function(e){var t=pr(e,"width");dr(e,"width",t),tr(e,"width")}))},ed=function(){var e=vt.fromTag("div");return hr(e,{position:"static",height:"0",width:"0",padding:"0",margin:"0",border:"0"}),Oi(An(),e),e},td=function(e,t){return e.inline?tu.body(Ws(e),ed(),t):tu.only(vt.fromDom(e.getDoc()),t)},nd=function(e,t){e.inline&&Mi(t.parent())},rd="bar-",id=function(e){return"false"!==Qn(e,"data-mce-resize")},od=function(e){var t,n,r=E.none(),i=E.none(),o=E.none(),a=function(e){return"TABLE"===e.nodeName},s=function(){return i},l=function(){return o.getOr(tu.only(vt.fromDom(e.getBody()),id))},u=function(t){return Wf(e,t)},c=function(){return $f(e)?Jl():Xl()},f=function(e){return Su(e).columns},d=function(r,i,o){var a=xe(i,"e");if(""===n&&Xf(r),o!==t&&""!==n){dr(r,"width",n);var s=c(),l=u(r),d=$f(e)||a?f(r)-1:0;jl(r,o-t,d,s,l)}else if(Qs(n)){var h=parseFloat(n.replace("%","")),p=o*h/t;dr(r,"width",p+"%")}el(n)&&Qf(r)},h=function(){i.each((function(e){e.destroy()})),o.each((function(t){nd(e,t)}))};return e.on("init",(function(){var t=td(e,id);if(o=E.some(t),zf(e)&&_f(e)){var n=c(),a=Xc.create(t,n,u);a.on(),a.events.startDrag.bind((function(t){r=E.some(e.selection.getRng())})),a.events.beforeResize.bind((function(t){var n=t.table.dom;Qc(e,n,qs(n),Gs(n),rd+t.type)})),a.events.afterResize.bind((function(t){var n=t.table,i=n.dom;Js(n),r.each((function(t){e.selection.setRng(t),e.focus()})),ef(e,i,qs(i),Gs(i),rd+t.type),e.undoManager.add()})),i=E.some(a)}})),e.on("ObjectResizeStart",(function(r){var i=r.target;if(a(i)){var o=vt.fromDom(i);L(e.dom.select(".mce-clonedresizable"),(function(t){e.dom.addClass(t,"mce-"+Lf(e)+"-columns")})),!Cu(o)&&Pf(e)?Jf(o):!_u(o)&&Af(e)&&Xf(o),xu(o)&&Ce(r.origin,rd)&&Xf(o),t=r.width,n=Mf(e)?"":Zs(e,i).getOr("")}})),e.on("ObjectResized",(function(t){var n=t.target;if(a(n)){var r=vt.fromDom(n),i=t.origin;Ce(i,"corner-")&&d(r,i,t.width),Js(r),rf(e,r.dom,of)}})),e.on("SwitchMode",(function(){s().each((function(t){e.mode.isReadOnly()?t.hideBars():t.showBars()}))})),{lazyResize:s,lazyWire:l,destroy:h}},ad=function(e,t){return{element:e,offset:t}},sd=function(e,t,n){return e.property().isText(t)&&0===e.property().getText(t).trim().length||e.property().isComment(t)?n(t).bind((function(t){return sd(e,t,n).orThunk((function(){return E.some(t)}))})):E.none()},ld=function(e,t){if(e.property().isText(t))return e.property().getText(t).length;var n=e.property().children(t);return n.length},ud=function(e,t){var n=sd(e,t,e.query().prevSibling).getOr(t);if(e.property().isText(n))return ad(n,ld(e,n));var r=e.property().children(n);return r.length>0?ud(e,r[r.length-1]):ad(n,ld(e,n))},cd=ud,fd=zi(),dd=function(e){return cd(fd,e)},hd=function(e,t){var n=wr(e,"colspan");if(1===n){var r=ja(e);r.each((function(n){var r=n.value/2;za(e,r,n.unit),za(t,r,n.unit)}))}},pd=fn("th"),md=function(e){return K(e,(function(e){return pd(e.element)}))},gd=function(e,t){return e&&t?"sectionCells":e?"section":"cells"},vd=function(e){var t="thead"===e.section,n=rr(bd(e.cells),"th");return t||n?{type:"header",subType:gd(t,n)}:"tfoot"===e.section?{type:"footer"}:{type:"body"}},bd=function(e){var t=j(e,(function(e){return pd(e.element)}));return 0===t.length?E.some("td"):t.length===e.length?E.some("th"):E.none()},yd=function(e){var t=B(e,(function(e){return vd(e).type})),n=M(t,"header"),r=M(t,"footer");if(n||r){var i=M(t,"body");return!n||i||r?n||i||!r?E.none():E.some("footer"):E.some("header")}return E.some("body")},wd=function(e){return re(e.all,(function(e){var t=vd(e);return"header"===t.type?E.from(t.subType):E.none()}))},_d=function(e,t,n){return Jt(n(e.element,t),!0,e.isLocked)},Cd=function(e,t){return e.section!==t?Zt(e.element,e.cells,t,e.isNew):e},xd=function(){return{transformRow:Cd,transformCell:function(e,t,n){var r=n(e.element,t),i="td"!==nn(r)?So(r,"td"):r;return Jt(i,e.isNew,e.isLocked)}}},Sd=function(){return{transformRow:Cd,transformCell:_d}},kd=function(){return{transformRow:function(e,t){var n="thead"===t?"tbody":t;return Cd(e,n)},transformCell:_d}},Dd=function(){return{transformRow:b,transformCell:_d}},Od=function(e,t){var n=ui.fromTable(e),r=wd(n).getOr(t);switch(r){case"section":return xd();case"sectionCells":return Sd();case"cells":return kd()}},Td={getTableSectionType:Od,section:xd,sectionCells:Sd,cells:kd,fallback:Dd},Ed=function(e,t,n,r){n===r?tr(e,t):Xn(e,t,n)},Id=function(e,t,n){ne(Ln(e,t)).fold((function(){return Di(e,n)}),(function(e){return ki(e,n)}))},Nd=function(e,t){var n=qn(e,t).getOrThunk((function(){var n=vt.fromTag(t,dn(e).dom);return"thead"===t?Id(e,"caption,colgroup",n):"colgroup"===t?Id(e,"caption",n):Oi(e,n),n}));return Pi(n),n},Ad=function(e,t){var n=[],r=[],i=function(e){return B(e,(function(e){e.isNew&&n.push(e.element);var t=e.element;return Pi(t),L(e.cells,(function(e){e.isNew&&r.push(e.element),Ed(e.element,"colspan",e.colspan,1),Ed(e.element,"rowspan",e.rowspan,1),Oi(t,e.element)})),t}))},o=function(e){return Y(e,(function(e){return B(e.cells,(function(e){return Ed(e.element,"span",e.colspan,1),e.element}))}))},a=function(t,n){var r=Nd(e,n),a="colgroup"===n?o:i,s=a(t);Ai(r,s)},s=function(t){qn(e,t).each(Mi)},l=function(e,t){e.length>0?a(e,t):s(t)},u=[],c=[],f=[],d=[];return L(t,(function(e){switch(e.section){case"thead":u.push(e);break;case"tbody":c.push(e);break;case"tfoot":f.push(e);break;case"colgroup":d.push(e);break}})),l(d,"colgroup"),l(u,"thead"),l(c,"tbody"),l(f,"tfoot"),{newRows:n,newCells:r}},Pd=function(e){return B(e,(function(e){var t=wo(e.element);return L(e.cells,(function(e){var n=_o(e.element);Ed(n,"colspan",e.colspan,1),Ed(n,"rowspan",e.rowspan,1),Oi(t,n)})),t}))},Md=function(e,t){return B(e,(function(e){return Ur(e,t)}))},Rd=function(e,t){return e[t]},Fd=function(e,t){if(0===e.length)return 0;var n=e[0],r=q(e,(function(e){return!t(n.element,e.element)}));return r.getOr(e.length)},Bd=function(e,t,n,r){var i=Rd(e,t),o="colgroup"===i.section,a=Fd(i.cells.slice(n),r),s=o?1:Fd(Md(e.slice(t),n),r);return{colspan:a,rowspan:s}},Ld=function(e,t){var n=B(e,(function(e){return B(e.cells,x)})),r=function(e,t,r,i){for(var o=e;o<e+r;o++)for(var a=t;a<t+i;a++)n[o][a]=!0};return B(e,(function(i,o){var a=Y(i.cells,(function(i,a){if(!1===n[o][a]){var s=Bd(e,o,a,t);return r(o,a,s.rowspan,s.colspan),[Gt(i.element,s.rowspan,s.colspan,i.isNew)]}return[]}));return Xt(i.element,a,i.section,i.isNew)}))},$d=function(e,t,n){var r=[];L(e.colgroups,(function(i){for(var o=[],a=0;a<e.grid.columns;a++){var s=ui.getColumnAt(e,a).map((function(e){return Jt(e.element,n,!1)})).getOrThunk((function(){return Jt(t.colGap(),!0,!1)}));o.push(s)}r.push(Zt(i.element,o,"colgroup",n))}));for(var i=0;i<e.grid.rows;i++){for(var o=[],a=0;a<e.grid.columns;a++){var s=ui.getAt(e,i,a).map((function(e){return Jt(e.element,n,e.isLocked)})).getOrThunk((function(){return Jt(t.gap(),!0,!1)}));o.push(s)}var l=e.all[i],u=Zt(l.element,o,l.section,n);r.push(u)}return r},Vd=function(e,t){return $d(e,t,!1)},jd=function(e){return Ld(e,Ct)},zd=function(e,t){return re(e.all,(function(e){return W(e.cells,(function(e){return Ct(t,e.element)}))}))},Hd=function(e,t,n){var r=B(t.selection,(function(t){return Er(t).bind((function(t){return zd(e,t)})).filter(n)})),i=ir(r);return lr(i.length>0,i)},Ud=function(e,t,n,r,i){return function(o,a,s,l,u){var c=ui.fromTable(a),f=E.from(null===u||void 0===u?void 0:u.section).getOrThunk(Td.fallback),d=t(c,s).map((function(t){var n=Vd(c,l),r=e(n,t,Ct,i(l),f),o=Jr(r.grid),a=jd(r.grid);return{info:t,grid:a,cursor:r.cursor,lockedColumns:o}}));return d.bind((function(e){var t=Ad(a,e.grid),i=E.from(null===u||void 0===u?void 0:u.sizing).getOrThunk((function(){return ms.getTableSize(a)})),s=E.from(null===u||void 0===u?void 0:u.resize).getOrThunk(Jl);return n(a,e.grid,e.info,{sizing:i,resize:s,section:f}),r(a),jc(o,a),tr(a,Kr),e.lockedColumns.length>0&&Xn(a,Kr,e.lockedColumns.join(",")),E.some({cursor:e.cursor,newRows:t.newRows,newCells:t.newCells})}))}},Wd=function(e,t){return Er(t.element).bind((function(n){return zd(e,n).map((function(e){var n=ie(ie({},e),{generators:t.generators,clipboard:t.clipboard});return n}))}))},qd=function(e,t){return Hd(e,t,S).map((function(e){return{cells:e,generators:t.generators,clipboard:t.clipboard}}))},Gd=function(e,t){return t.mergable},Yd=function(e,t){return t.unmergable},Kd=function(e,t){return Hd(e,t,S)},Xd=function(e,t){return Hd(e,t,(function(e){return!e.isLocked}))},Jd=function(e,t){return zd(e,t).exists((function(e){return!e.isLocked}))},Zd=function(e,t){return K(t,(function(t){return Jd(e,t)}))},Qd=function(e,t){return Gd(e,t).filter((function(t){return Zd(e,t.cells)}))},eh=function(e,t){return Yd(e,t).filter((function(t){return Zd(e,t)}))},th=function(e,t,n,r){var i=Gr(e).rows;if(0===i.length)return e;for(var o=t.startRow;o<=t.finishRow;o++)for(var a=t.startCol;a<=t.finishCol;a++){var s=i[o],l=Ur(s,a).isLocked;jr(s,a,Jt(r(),!1,l))}return e},nh=function(e,t,n,r){for(var i=Gr(e).rows,o=!0,a=0;a<i.length;a++)for(var s=0;s<qr(i[0]);s++){var l=i[a],u=Ur(l,s),c=u.element,f=n(c,t);!0===f&&!1===o?jr(l,s,Jt(r(),!0,u.isLocked)):!0===f&&(o=!1)}return e},rh=function(e,t){return H(e,(function(e,n){return R(e,(function(e){return t(e.element,n.element)}))?e:e.concat([n])}),[])},ih=function(e,t,n,r){return t>0&&t<e[0].cells.length&&L(e,(function(e){var i=e.cells[t-1],o=e.cells[t],a=n(o.element,i.element);a&&jr(e,t,Jt(r(),!0,o.isLocked))})),e},oh=function(e,t,n,r){var i=Gr(e).rows;if(t>0&&t<i.length){var o=i[t-1].cells,a=rh(o,n);L(a,(function(e){for(var o=E.none(),a=t;a<i.length;a++)for(var s=function(t){var s=i[a],l=Ur(s,t),u=n(l.element,e.element);u&&(o.isNone()&&(o=E.some(r())),o.each((function(e){jr(s,t,Jt(e,!0,l.isLocked))})))},l=0;l<qr(i[0]);l++)s(l)}))}return e},ah=function(e){var t=function(t){return ah(e)},n=function(t){return ah(e)},r=function(t){return ah(t(e))},i=function(t){return ah(e)},o=function(t){t(e)},a=function(t){return t(e)},s=function(t,n){return n(e)},l=function(t){return t(e)},u=function(t){return t(e)},c=function(){return E.some(e)};return{isValue:S,isError:x,getOr:v(e),getOrThunk:v(e),getOrDie:v(e),or:t,orThunk:n,fold:s,map:r,mapError:i,each:o,bind:a,exists:l,forall:u,toOptional:c}},sh=function(e){var t=function(e){return e()},n=function(){return C(String(e))()},r=b,i=function(e){return e()},o=function(t){return sh(e)},a=function(t){return sh(t(e))},s=function(t){return sh(e)},l=function(t,n){return t(e)};return{isValue:x,isError:S,getOr:b,getOrThunk:t,getOrDie:n,or:r,orThunk:i,fold:l,map:o,mapError:a,each:p,bind:s,exists:x,forall:S,toOptional:E.none}},lh=function(e,t){return e.fold((function(){return sh(t)}),ah)},uh={value:ah,error:sh,fromOption:lh},ch=function(e,t,n){if(e.row>=t.length||e.column>qr(t[0]))return uh.error("invalid start address out of table bounds, row: "+e.row+", column: "+e.column);var r=t.slice(e.row),i=r[0].cells.slice(e.column),o=qr(n[0]),a=n.length;return uh.value({rowDelta:r.length-a,colDelta:i.length-o})},fh=function(e,t){var n=qr(e[0]),r=qr(t[0]);return{rowDelta:0,colDelta:n-r}},dh=function(e,t){var n=e.length,r=t.length;return{rowDelta:n-r,colDelta:0}},hh=function(e,t,n,r){var i="colgroup"===t.section?n.col:n.cell;return F(e,(function(e){return Jt(i(),!0,r(e))}))},ph=function(e,t,n,r){var i=e[e.length-1];return e.concat(F(t,(function(){var e="colgroup"===i.section?n.colgroup:n.row,t=Yr(i,e,b),o=hh(t.cells.length,t,n,(function(e){return $t(r,e.toString())}));return zr(t,o)})))},mh=function(e,t,n,r){return B(e,(function(e){var i=hh(t,e,n,x);return $r(e,r,i)}))},gh=function(e,t,n){return B(e,(function(e){return H(n,(function(n,r){var i=hh(1,e,t,S)[0];return Vr(n,r,i)}),e)}))},vh=function(e,t,n){var r=t.colDelta<0?mh:b,i=t.rowDelta<0?ph:b,o=Jr(e),a=qr(e[0]),s=R(o,(function(e){return e===a-1})),l=r(e,Math.abs(t.colDelta),n,s?a-1:a),u=Jr(l);return i(l,Math.abs(t.rowDelta),n,J(u,S))},bh=function(e,t,n,r){var i=Ur(e[t],n),o=w(r,i.element),a=e[t];return e.length>1&&qr(a)>1&&(n>0&&o(Wr(a,n-1))||n<a.cells.length-1&&o(Wr(a,n+1))||t>0&&o(Wr(e[t-1],n))||t<e.length-1&&o(Wr(e[t+1],n)))},yh=function(e,t,n,r,i,o){for(var a=e.row,s=e.column,l=n.length,u=qr(n[0]),c=a+l,f=s+u+o.length,d=J(o,S),h=a;h<c;h++)for(var p=0,m=s;m<f;m++)if(d[m])p++;else{bh(t,h,m,i)&&nh(t,Wr(t[h],m),i,r.cell);var g=m-s-p,v=Ur(n[h-a],g),b=v.element,y=r.replace(b);jr(t[h],m,Jt(y,!0,v.isLocked))}return t},wh=function(e,t,n){var r=qr(t[0]),i=Gr(t).cols.length+e.row,o=F(r-e.column,(function(t){return t+e.column})),a=W(o,(function(e){return K(n,(function(t){return t!==e}))})).getOr(r-1);return{row:i,column:a}},_h=function(e,t,n){return j(n,(function(n){return n>=e.column&&n<=qr(t[0])+e.column}))},Ch=function(e,t,n,r,i){var o=Jr(t),a=wh(e,t,o),s=Gr(n).rows,l=_h(a,s,o),u=ch(a,t,s);return u.map((function(e){var n=ie(ie({},e),{colDelta:e.colDelta-l.length}),o=vh(t,n,r),u=Jr(o),c=_h(a,s,u);return yh(a,o,s,r,i,c)}))},xh=function(e,t,n,r,i){ih(t,e,i,r.cell);var o=dh(n,t),a=vh(n,o,r),s=dh(t,a),l=vh(t,s,r);return B(l,(function(t,n){return $r(t,e,a[n].cells)}))},Sh=function(e,t,n,r,i){oh(t,e,i,r.cell);var o=Jr(t),a=fh(t,n),s=ie(ie({},a),{colDelta:a.colDelta-o.length}),l=vh(t,s,r),u=Gr(l),c=u.cols,f=u.rows,d=Jr(l),h=fh(n,t),p=ie(ie({},h),{colDelta:h.colDelta+d.length}),m=gh(n,r,d),g=vh(m,p,r);return c.concat(f.slice(0,e)).concat(g).concat(f.slice(e,f.length))},kh=function(e,t,n,r){return Yr(e,(function(e){return r(e,n)}),t)},Dh=function(e,t,n,r,i){var o=Gr(e),a=o.rows,s=o.cols,l=a.slice(0,t),u=a.slice(t),c=kh(a[n],(function(e,n){var o=t>0&&t<a.length&&r(Wr(a[t-1],n),Wr(a[t],n)),s=o?Ur(a[t],n):Jt(i(e.element,r),!0,e.isLocked);return s}),r,i);return s.concat(l).concat([c]).concat(u)},Oh=function(e,t,n,r,i,o,a){if("colgroup"!==n&&r)return Ur(e,t);var s=Ur(e,i);return Jt(a(s.element,o),!0,!1)},Th=function(e,t,n,r,i){return B(e,(function(e){var o=t>0&&t<qr(e)&&r(Wr(e,t-1),Wr(e,t)),a=Oh(e,t,e.section,o,n,r,i);return Vr(e,t,a)}))},Eh=function(e,t){return Y(e,(function(e){var n=e.cells,r=z(t,(function(e,t){return t>=0&&t<e.length?e.slice(0,t).concat(e.slice(t+1)):e}),n);return r.length>0?[Zt(e.element,r,e.section,e.isNew)]:[]}))},Ih=function(e,t,n){var r=Gr(e),i=r.rows,o=r.cols;return o.concat(i.slice(0,t)).concat(i.slice(n+1))},Nh=function(e,t,n,r){return void 0!==Wr(e[t],n)&&t>0&&r(Wr(e[t-1],n),Wr(e[t],n))},Ah=function(e,t,n){return t>0&&n(Wr(e,t-1),Wr(e,t))},Ph=function(e,t,n,r){return Nh(e,t,n,r)||Ah(e[t],n,r)},Mh=function(e,t){var n=K(t,b)&&md(e.cells);return n?S:function(e,n,r){var i=nn(e.element);return!("th"===i&&t[r])}},Rh=function(e,t){var n=K(t,b)&&md(e);return n?S:function(e,n,r){var i=nn(e.element);return!("th"===i&&t[n])}},Fh=function(e,t,n,r){var i=function(e){return"row"===e?Cr(t):_r(t)},o=function(e){return i(e)?e+"group":e};if(e)return pd(t)?o(n):null;if(r&&pd(t)){var a="row"===n?"col":"row";return o(a)}return null},Bh=function(e,t){return function(n,r,i){return E.some(Fh(e,n.element,"col",t[i]))}},Lh=function(e,t){return function(n,r){return E.some(Fh(e,n.element,"row",t[r]))}},$h=function(e,t,n){return Jt(n(e.element,t),!0,e.isLocked)},Vh=function(e,t,n,r,i,o,a){var s=function(e){return R(t,(function(t){return n(e.element,t.element)}))};return B(e,(function(e,t){return Hr(e,(function(e,l){if(s(e)){var u=a(e,t,l)?i(e,n,r):e;return o(u,t,l).each((function(e){Zn(u.element,{scope:E.from(e)})})),u}return e}))}))},jh=function(e,t,n){return Y(e,(function(r,i){return Ph(e,i,t,n)?[]:[Ur(r,t)]}))},zh=function(e,t,n){var r=e[t];return Y(r.cells,(function(r,i){return Ph(e,t,i,n)?[]:[r]}))},Hh=function(e,t,n,r,i){var o=Gr(e).rows,a=Y(t,(function(e){return jh(o,e,r)})),s=B(e,(function(e){return md(e.cells)})),l=Rh(a,s),u=Lh(n,s);return Vh(e,a,r,i,$h,u,l)},Uh=function(e,t,n,r,i,o,a){var s=Gr(e),l=s.cols,u=s.rows,c=u[t[0]],f=Y(t,(function(e){return zh(u,e,i)})),d=B(c.cells,(function(e,t){return md(jh(u,t,i))})),h=oe([],u,!0);L(t,(function(e){h[e]=a.transformRow(u[e],n)}));var p=l.concat(h),m=Mh(c,d),g=Bh(r,d);return Vh(p,f,i,o,a.transformCell,g,m)},Wh=function(e,t,n,r){var i=Gr(e).rows,o=B(t,(function(e){return Ur(i[e.row],e.column)}));return Vh(e,o,n,r,$h,E.none,S)},qh=function(e){var t=function(e,t){var n=R(e,(function(e){return e.column===t.column}));return n?e:e.concat([t])};return H(e,t,[]).sort((function(e,t){return e.column-t.column}))},Gh=fn("col"),Yh=fn("colgroup"),Kh=function(e){return"tr"===nn(e)||Yh(e)},Xh=function(e){var t=yr(e,"colspan",1),n=yr(e,"rowspan",1);return{element:e,colspan:t,rowspan:n}},Jh=function(e,t){void 0===t&&(t=Xh);var n=function(t){return Gh(t.element)?e.col(t):e.cell(t)},r=function(t){return Yh(t.element)?e.colgroup(t):e.row(t)},i=function(e){if(Kh(e))return r({element:e});var i=n(t(e));return o=E.some({item:e,replacement:i}),i},o=E.none(),a=function(e,t){return o.fold((function(){return i(e)}),(function(n){return t(e,n.item)?n.replacement:i(e)}))};return{getOrInit:a}},Zh=function(e){return function(t){var n=[],r=function(e,t){return W(n,(function(n){return t(n.item,e)}))},i=function(r){var i="td"===e?{scope:null}:{},o=t.replace(r,e,i);return n.push({item:r,sub:o}),o},o=function(e,t){return Kh(e)||Gh(e)?e:r(e,t).fold((function(){return i(e)}),(function(n){return t(e,n.item)?n.sub:i(e)}))};return{replaceOrInit:o}}},Qh=function(e){return er(e,"scope").map((function(e){return e.substr(0,3)}))},ep=function(e){var t=function(t){var n=Qh(t);return n.each((function(e){return Xn(t,"scope",e)})),function(){var r=e.cell({element:t,colspan:1,rowspan:1});return vr(r,"width"),vr(t,"width"),n.each((function(e){return Xn(r,"scope",e)})),r}},n=function(e){var t=function(){var t=ir(B(e,Qh));if(0===t.length)return E.none();var n=t[0],r=["row","col"],i=R(t,(function(e){return e!==n&&M(r,e)}));return i?E.none():E.from(n)};return vr(e[0],"width"),t().fold((function(){return tr(e[0],"scope")}),(function(t){return Xn(e[0],"scope",t+"group")})),v(e[0])};return{unmerge:t,merge:n}},tp={modification:Jh,transform:Zh,merging:ep},np=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","table","thead","tfoot","tbody","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],rp=function(e,t){var n=e.property().name(t);return M(["ol","ul"],n)},ip=function(e,t){var n=e.property().name(t);return M(np,n)},op=function(e,t){return M(["br","img","hr","input"],e.property().name(t))},ap=zi(),sp=function(e){return ip(ap,e)},lp=function(e){return rp(ap,e)},up=function(e){return op(ap,e)},cp=function(e){var t=function(e){return"br"===nn(e)},n=function(e){return K(e,(function(e){return t(e)||ln(e)&&0===Li(e).trim().length}))},r=function(e){return"li"===nn(e)||jn(e,lp).isSome()},i=function(e){return yn(e).map((function(e){return!!sp(e)||!!up(e)&&"img"!==nn(e)})).getOr(!1)},o=function(e){return Es(e).bind((function(n){var o=i(n);return mn(n).map((function(i){return!0===o||r(i)||t(n)||sp(i)&&!Ct(e,i)?[]:[vt.fromTag("br")]}))})).getOr([])},a=function(){var t=Y(e,(function(e){var t=wn(e);return n(t)?[]:t.concat(o(e))}));return 0===t.length?[vt.fromTag("br")]:t},s=a();Pi(e[0]),Ai(e[0],s)},fp=function(e){return Cc(e,!0)},dp=function(e){var t=Ir(e);0===t.length&&Mi(e)},hp=function(e,t){return{grid:e,cursor:t}},pp=function(e){return re(e,(function(e){return re(e.cells,(function(e){var t=e.element;return lr(fp(t),t)}))}))},mp=function(e,t,n){var r,i,o=Gr(e).rows;return E.from(null===(i=null===(r=o[t])||void 0===r?void 0:r.cells[n])||void 0===i?void 0:i.element).filter(fp).orThunk((function(){return pp(o)}))},gp=function(e,t,n){var r=mp(e,t,n);return hp(e,r)},vp=function(e){var t=function(e,t){var n=R(e,(function(e){return e.row===t.row}));return n?e:e.concat([t])};return H(e,t,[]).sort((function(e,t){return e.row-t.row}))},bp=function(e,t,n,r){var i=t[0].row,o=vp(t),a=z(o,(function(e,t){var o=Dh(e.grid,i,t.row+e.delta,n,r.getOrInit);return{grid:o,delta:e.delta+1}}),{grid:e,delta:0}).grid;return gp(a,i,t[0].column)},yp=function(e,t,n,r){var i=vp(t),o=i[i.length-1],a=o.row+o.rowspan,s=z(i,(function(e,t){return Dh(e,a,t.row,n,r.getOrInit)}),e);return gp(s,a,t[0].column)},wp=function(e,t,n,r){var i=t.details,o=qh(i),a=o[0].column,s=z(o,(function(e,t){var i=Th(e.grid,a,t.column+e.delta,n,r.getOrInit);return{grid:i,delta:e.delta+1}}),{grid:e,delta:0}).grid;return gp(s,i[0].row,a)},_p=function(e,t,n,r){var i=t.details,o=i[i.length-1],a=o.column+o.colspan,s=qh(i),l=z(s,(function(e,t){return Th(e,a,t.column,n,r.getOrInit)}),e);return gp(l,i[0].row,a)},Cp=function(e,t,n,r){var i=qh(t),o=B(i,(function(e){return e.column})),a=Hh(e,o,!0,n,r.replaceOrInit);return gp(a,t[0].row,t[0].column)},xp=function(e,t,n,r){var i=Wh(e,t,n,r.replaceOrInit);return gp(i,t[0].row,t[0].column)},Sp=function(e,t,n,r){var i=qh(t),o=B(i,(function(e){return e.column})),a=Hh(e,o,!1,n,r.replaceOrInit);return gp(a,t[0].row,t[0].column)},kp=function(e,t,n,r){var i=Wh(e,t,n,r.replaceOrInit);return gp(i,t[0].row,t[0].column)},Dp=function(e,t){return function(n,r,i,o,a){var s=vp(r),l=B(s,(function(e){return e.row})),u=Uh(n,l,e,t,i,o.replaceOrInit,a);return gp(u,r[0].row,r[0].column)}},Op=Dp("thead",!0),Tp=Dp("tbody",!1),Ep=Dp("tfoot",!1),Ip=function(e,t,n,r){var i=qh(t.details),o=Eh(e,B(i,(function(e){return e.column}))),a=o.length>0?o[0].cells.length-1:0;return gp(o,i[0].row,Math.min(i[0].column,a))},Np=function(e,t,n,r){var i=vp(t),o=Ih(e,i[0].row,i[i.length-1].row),a=o.length>0?o.length-1:0;return gp(o,Math.min(t[0].row,a),t[0].column)},Ap=function(e,t,n,r){var i=t.cells;cp(i);var o=th(e,t.bounds,n,r.merge(i));return hp(o,E.from(i[0]))},Pp=function(e,t,n,r){var i=function(e,t){return nh(e,t,n,r.unmerge(t))},o=z(t,i,e);return hp(o,E.from(t[0]))},Mp=function(e,t,n,r){var i=function(e,t){var n=ui.fromTable(e);return $d(n,t,!0)},o=i(t.clipboard,t.generators),a=Wt(t.row,t.column),s=Ch(a,e,o,t.generators,n);return s.fold((function(){return hp(e,E.some(t.element))}),(function(e){return gp(e,t.row,t.column)}))},Rp=function(e,t,n){var r=Lr(e,n.section),i=ui.generate(r);return $d(i,t,!0)},Fp=function(e,t,n,r){var i=Gr(e).rows,o=t.cells[0].column,a=i[t.cells[0].row],s=Rp(t.clipboard,t.generators,a),l=xh(o,e,s,t.generators,n);return gp(l,t.cells[0].row,t.cells[0].column)},Bp=function(e,t,n,r){var i=Gr(e).rows,o=t.cells[t.cells.length-1].column+t.cells[t.cells.length-1].colspan,a=i[t.cells[0].row],s=Rp(t.clipboard,t.generators,a),l=xh(o,e,s,t.generators,n);return gp(l,t.cells[0].row,t.cells[0].column)},Lp=function(e,t,n,r){var i=Gr(e).rows,o=t.cells[0].row,a=i[o],s=Rp(t.clipboard,t.generators,a),l=Sh(o,e,s,t.generators,n);return gp(l,t.cells[0].row,t.cells[0].column)},$p=function(e,t,n,r){var i=Gr(e).rows,o=t.cells[t.cells.length-1].row+t.cells[t.cells.length-1].rowspan,a=i[t.cells[0].row],s=Rp(t.clipboard,t.generators,a),l=Sh(o,e,s,t.generators,n);return gp(l,t.cells[0].row,t.cells[0].column)},Vp=function(e,t){var n=ui.fromTable(e),r=Kd(n,t);return r.bind((function(e){var t=e[e.length-1],r=e[0].column,i=t.column+t.colspan,o=G(B(n.all,(function(e){return j(e.cells,(function(e){return e.column>=r&&e.column<i}))})));return bd(o)})).getOr("")},jp=function(e,t){var n=ui.fromTable(e),r=Kd(n,t);return r.bind(bd).getOr("")},zp=function(e,t){var n=ui.fromTable(e),r=Kd(n,t);return r.bind((function(e){var t=e[e.length-1],r=e[0].row,i=t.row+t.rowspan,o=n.all.slice(r,i);return yd(o)})).getOr("")},Hp=function(e,t,n,r){return Ul(e,t,n,r.sizing)},Up=function(e,t,n,r){return Hl(e,t,n,r.sizing,r.resize)},Wp=function(e,t){return R(t,(function(e){return 0===e.column&&e.isLocked}))},qp=function(e,t){return R(t,(function(t){return t.column+t.colspan>=e.grid.columns&&t.isLocked}))},Gp=function(e,t){var n=jo(e),r=qh(t);return H(r,(function(e,t){var r=n[t.column],i=r.map(Lo).getOr(0);return e+i}),0)},Yp=function(e){return function(t,n){return Kd(t,n).filter((function(n){var r=e?Wp:qp;return!r(t,n)})).map((function(e){return{details:e,pixelDelta:Gp(t,e)}}))}},Kp=function(e,t){return Xd(e,t).map((function(t){return{details:t,pixelDelta:-Gp(e,t)}}))},Xp=function(e){return function(t,n){return qd(t,n).filter((function(n){var r=e?Wp:qp;return!r(t,n.cells)}))}},Jp=tp.transform("th"),Zp=tp.transform("td"),Qp=Ud(bp,Kd,p,p,tp.modification),em=Ud(yp,Kd,p,p,tp.modification),tm=Ud(wp,Yp(!0),Up,p,tp.modification),nm=Ud(_p,Yp(!1),Up,p,tp.modification),rm=Ud(Ip,Kp,Up,dp,tp.modification),im=Ud(Np,Kd,p,dp,tp.modification),om=Ud(Cp,Xd,p,p,Jp),am=Ud(Sp,Xd,p,p,Zp),sm=Ud(Op,Xd,p,p,Jp),lm=Ud(Tp,Xd,p,p,Zp),um=Ud(Ep,Xd,p,p,Zp),cm=Ud(xp,Xd,p,p,Jp),fm=Ud(kp,Xd,p,p,Zp),dm=Ud(Ap,Qd,Hp,p,tp.merging),hm=Ud(Pp,eh,Hp,p,tp.merging),pm=Ud(Mp,Wd,Hp,p,tp.modification),mm=Ud(Fp,Xp(!0),p,p,tp.modification),gm=Ud(Bp,Xp(!1),p,p,tp.modification),vm=Ud(Lp,qd,p,p,tp.modification),bm=Ud($p,qd,p,p,tp.modification),ym=Vp,wm=jp,_m=zp,Cm=function(e,t,n){var r=function(e){return"table"===nn(Ws(e))},i=function(t){return!1===r(e)||Su(t).rows>1},o=function(t){return!1===r(e)||Su(t).columns>1},a=jf(e),s=Vf(e)?p:hd,l=function(t){switch(Bf(e)){case"section":return Td.section();case"sectionCells":return Td.sectionCells();case"cells":return Td.cells();default:return Td.getTableSectionType(t,"section")}},u=function(n,r){return r.cursor.fold((function(){var r=Ir(n);return te(r).filter(Nn).map((function(r){t.clear(n);var i=e.dom.createRng();return i.selectNode(r.dom),e.selection.setRng(i),Xn(r,"data-mce-selected","1"),i}))}),(function(r){var i=dd(r),o=e.dom.createRng();return o.setStart(i.element.dom,i.offset),o.setEnd(i.element.dom,i.offset),e.selection.setRng(o),t.clear(n),E.some(o)}))},c=function(t,n,r,i,o){return function(s,c,f){void 0===f&&(f=!1),Js(s);var d=i(),h=vt.fromDom(e.getDoc()),p=Vs(r,h,a),m={sizing:Wf(e,s),resize:Vf(e)?Xl():Jl(),section:l(s)};return n(s)?t(d,s,c,p,m).bind((function(t){L(t.newRows,(function(t){Jc(e,t.dom)})),L(t.newCells,(function(t){Zc(e,t.dom)}));var n=u(s,t);return Nn(s)&&(Js(s),f||rf(e,s.dom,o)),n.map((function(e){return{rng:e,effect:o}}))})):E.none()}},f=c(im,i,p,n,af),d=c(rm,o,p,n,af),h=c(Qp,S,p,n,af),m=c(em,S,p,n,af),g=c(tm,S,s,n,af),v=c(nm,S,s,n,af),b=c(dm,S,p,n,af),y=c(hm,S,p,n,af),w=c(mm,S,p,n,af),_=c(gm,S,p,n,af),C=c(vm,S,p,n,af),x=c(bm,S,p,n,af),k=c(pm,S,p,n,sf),D=c(cm,S,p,n,af),O=c(fm,S,p,n,af),T=c(om,S,p,n,af),I=c(am,S,p,n,af),N=c(sm,S,p,n,af),A=c(lm,S,p,n,af),P=c(um,S,p,n,af),M=wm,R=ym,F=_m;return{deleteRow:f,deleteColumn:d,insertRowsBefore:h,insertRowsAfter:m,insertColumnsBefore:g,insertColumnsAfter:v,mergeCells:b,unmergeCells:y,pasteColsBefore:w,pasteColsAfter:_,pasteRowsBefore:C,pasteRowsAfter:x,pasteCells:k,makeCellsHeader:D,unmakeCellsHeader:O,makeColumnsHeader:T,unmakeColumnsHeader:I,makeRowsHeader:N,makeRowsBody:A,makeRowsFooter:P,getTableRowType:F,getTableCellType:M,getTableColType:R}},xm={styles:{"border-collapse":"collapse",width:"100%"},attributes:{border:"1"},colGroups:!1},Sm=function(){return vt.fromTag("th")},km=function(){return vt.fromTag("td")},Dm=function(){return vt.fromTag("col")},Om=function(e,t,n,r){for(var i=vt.fromTag("tr"),o=0;o<e;o++){var a=r<t||o<n?Sm():km();o<n&&Xn(a,"scope","row"),r<t&&Xn(a,"scope","col"),Oi(a,vt.fromTag("br")),Oi(i,a)}return i},Tm=function(e){var t=vt.fromTag("colgroup");return F(e,(function(){return Oi(t,Dm())})),t},Em=function(e,t,n,r){return F(e,(function(e){return Om(t,n,r,e)}))},Im=function(e,t,n,r,i,o){void 0===o&&(o=xm);var a=vt.fromTag("table"),s="cells"!==i;hr(a,o.styles),Jn(a,o.attributes),o.colGroups&&Oi(a,Tm(t));var l=Math.min(e,n);if(s&&n>0){var u=vt.fromTag("thead");Oi(a,u);var c="sectionCells"===i?l:0,f=Em(n,t,c,r);Ai(u,f)}var d=vt.fromTag("tbody");Oi(a,d);var h=s?e-l:e,p=s?0:n,m=Em(h,t,p,r);return Ai(d,m),a},Nm=function(e){return e.dom.innerHTML},Am=function(e){var t=vt.fromTag("div"),n=vt.fromDom(e.dom.cloneNode(!0));return Oi(t,n),Nm(t)},Pm=function(e,t){e.selection.select(t.dom,!0),e.selection.collapse(!0)},Mm=function(e,t){Gn(t,"td,th").each(w(Pm,e))},Rm=function(e,t){L($n(t,"tr"),(function(t){Jc(e,t.dom),L($n(t,"th,td"),(function(t){Zc(e,t.dom)}))}))},Fm=function(e){return i(e)&&-1!==e.indexOf("%")},Bm=function(e,t,n,r,i){var o=wf(e),a={styles:o,attributes:yf(e),colGroups:Ff(e)};return e.undoManager.ignore((function(){var o=Im(n,t,i,r,Bf(e),a);Xn(o,"data-mce-id","__mce");var s=Am(o);e.insertContent(s),e.addVisual()})),Gn(Ws(e),'table[data-mce-id="__mce"]').map((function(t){return Pf(e)?Jf(t):Mf(e)?Zf(t):(Af(e)||Fm(o.width))&&Xf(t),Js(t),tr(t,"data-mce-id"),Rm(e,t),Mm(e,t),t.dom})).getOr(null)},Lm=function(e,t,n,r,i){void 0===r&&(r={});var o=function(e){return h(e)&&e>0};if(o(t)&&o(n)){var a=r.headerRows||0,s=r.headerColumns||0;return Bm(e,n,t,s,a)}return console.error(i),null},$m=function(e){return function(){return e().fold((function(){return[]}),(function(e){return B(e,(function(e){return e.dom}))}))}},Vm=function(e){return function(t){var n=t.length>0?E.some(Hs(t)):E.none();e(n)}},jm=function(e){return function(t,n,r){void 0===r&&(r={});var i=Lm(e,n,t,r,"Invalid values for insertTable - rows and columns values are required to insert a table.");return e.undoManager.add(),i}},zm=function(e,t,n,r){return{insertTable:jm(e),setClipboardRows:Vm(t.setRows),getClipboardRows:$m(t.getRows),setClipboardCols:Vm(t.setColumns),getClipboardCols:$m(t.getColumns),resizeHandler:n,selectionTargets:r}},Hm=function(e,t,n){var r=yr(e,t,1);1===n||r<=1?tr(e,t):Xn(e,t,Math.min(n,r))},Um=function(e,t,n){if(ui.hasColumns(e)){var r=j(ui.justColumns(e),(function(e){return e.column>=t&&e.column<n})),i=B(r,(function(e){var r=_o(e.element);return Hm(r,"span",n-t),r})),o=vt.fromTag("colgroup");return Ai(o,i),[o]}return[]},Wm=function(e,t,n){return B(e.all,(function(e){var r=j(e.cells,(function(e){return e.column>=t&&e.column<n})),i=B(r,(function(e){var r=_o(e.element);return Hm(r,"colspan",n-t),r})),o=vt.fromTag("tr");return Ai(o,i),o}))},qm=function(e,t){var n=ui.fromTable(e),r=Xd(n,t);return r.map((function(e){var t=e[e.length-1],r=e[0].column,i=t.column+t.colspan,o=Um(n,r,i),a=Wm(n,r,i);return oe(oe([],o,!0),a,!0)}))},Gm=function(e,t,n){var r=ui.fromTable(e),i=Kd(r,t);return i.bind((function(e){var t=$d(r,n,!1),i=Gr(t).rows,o=i.slice(e[0].row,e[e.length-1].row+e[e.length-1].rowspan),a=Y(o,(function(e){var t=j(e.cells,(function(e){return!e.isLocked}));return t.length>0?[ie(ie({},e),{cells:t})]:[]})),s=jd(a);return lr(s.length>0,s)})).map((function(e){return Pd(e)}))},Ym=tinymce.util.Tools.resolve("tinymce.util.Tools"),Km=function(e,t,n){var r,i=e.select("td,th",t),o=function(t,r){for(var i=0;i<r.length;i++){var o=e.getStyle(r[i],n);if("undefined"===typeof t&&(t=o),t!==o)return""}return t};return o(r,i)},Xm=function(e,t,n){n&&e.formatter.apply("align"+n,{},t)},Jm=function(e,t,n){n&&e.formatter.apply("valign"+n,{},t)},Zm=function(e,t){Ym.each("left center right".split(" "),(function(n){e.formatter.remove("align"+n,{},t)}))},Qm=function(e,t){Ym.each("top middle bottom".split(" "),(function(n){e.formatter.remove("valign"+n,{},t)}))},eg=[{text:"None",value:""},{text:"Top",value:"top"},{text:"Middle",value:"middle"},{text:"Bottom",value:"bottom"}],tg=function(e){return{value:e}},ng=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,rg=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,ig=function(e){return ng.test(e)||rg.test(e)},og=function(e){return we(e,"#").toUpperCase()},ag=function(e){return ig(e)?E.some({value:og(e)}):E.none()},sg=function(e){var t=e.toString(16);return(1===t.length?"0"+t:t).toUpperCase()},lg=function(e){var t=sg(e.red)+sg(e.green)+sg(e.blue);return tg(t)},ug=/^rgb\((\d+),\s*(\d+),\s*(\d+)\)/,cg=/^rgba\((\d+),\s*(\d+),\s*(\d+),\s*(\d?(?:\.\d+)?)\)/,fg=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},dg=function(e,t,n,r){var i=parseInt(e,10),o=parseInt(t,10),a=parseInt(n,10),s=parseFloat(r);return fg(i,o,a,s)},hg=function(e){if("transparent"===e)return E.some(fg(0,0,0,0));var t=ug.exec(e);if(null!==t)return E.some(dg(t[1],t[2],t[3],"1"));var n=cg.exec(e);return null!==n?E.some(dg(n[1],n[2],n[3],n[4])):E.none()},pg=function(e){return ag(e).orThunk((function(){return hg(e).map(lg)})).getOrThunk((function(){var t=document.createElement("canvas");t.height=1,t.width=1;var n=t.getContext("2d");n.clearRect(0,0,t.width,t.height),n.fillStyle="#FFFFFF",n.fillStyle=e,n.fillRect(0,0,1,1);var r=n.getImageData(0,0,1,1).data,i=r[0],o=r[1],a=r[2],s=r[3];return lg(fg(i,o,a,s))}))},mg=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},gg=function(e){var t=mg(E.none()),n=function(){return t.get().each(e)},r=function(){n(),t.set(E.none())},i=function(){return t.get().isSome()},o=function(){return t.get()},a=function(e){n(),t.set(E.some(e))};return{clear:r,isSet:i,get:o,set:a}},vg=function(){return gg((function(e){return e.unbind()}))},bg=function(){var e=gg(p),t=function(t){return e.get().each(t)};return ie(ie({},e),{on:t})},yg=function(e,t,n,r){return function(i){var o=vg(),a=Oe(r),s=function(){var s=xl(t),l=function(t){return e.formatter.match(n,{value:r},t.dom,a)};a?(i.setActive(!R(s,l)),o.set(e.formatter.formatChanged(n,(function(e){return i.setActive(!e)}),!0))):(i.setActive(K(s,l)),o.set(e.formatter.formatChanged(n,i.setActive,!1,{value:r})))};return e.initialized?s():e.on("init",s),o.clear}},wg=function(e){return Vt(e,"menu")},_g=function(e){return B(e,(function(e){var t=e.text||e.title;return wg(e)?{text:t,items:_g(e.menu)}:{text:t,value:e.value}}))},Cg=function(e,t,n,r,i){return B(n,(function(n){var o=n.text||n.title;return wg(n)?{type:"nestedmenuitem",text:o,getSubmenuItems:function(){return Cg(e,t,n.menu,r,i)}}:{text:o,type:"togglemenuitem",onAction:function(){return i(n.value)},onSetup:yg(e,t,r,n.value)}}))},xg=function(e,t){return function(n){var r;e.execCommand("mceTableApplyCellStyle",!1,(r={},r[t]=n,r))}},Sg=function(e){return Y(e,(function(e){return wg(e)?[ie(ie({},e),{menu:Sg(e.menu)})]:De(e.value)?[e]:[]}))},kg=function(e,t,n,r,i){return function(o){return o(Cg(e,t,n,r,i))}},Dg=function(e,t,n){var r=B(t,(function(e){return{text:e.title,value:"#"+pg(e.value).value,type:"choiceitem"}}));return[{type:"fancymenuitem",fancytype:"colorswatch",initData:{colors:r.length>0?r:void 0,allowCustomColors:!1},onAction:function(t){var r,i="remove"===t.value?"":t.value;e.execCommand("mceTableApplyCellStyle",!1,(r={},r[n]=i,r))}}]},Og=function(e){return function(){var t=e.queryCommandValue("mceTableRowType"),n="header"===t?"body":"header";e.execCommand("mceTableRowType",!1,{type:n})}},Tg=function(e){return function(){var t=e.queryCommandValue("mceTableColType"),n="th"===t?"td":"th";e.execCommand("mceTableColType",!1,{type:n})}},Eg=function(e){var t=_g(Ef(e));return t.length>0?E.some({name:"class",type:"listbox",label:"Class",items:t}):E.none()},Ig=[{name:"width",type:"input",label:"Width"},{name:"height",type:"input",label:"Height"},{name:"celltype",type:"listbox",label:"Cell type",items:[{text:"Cell",value:"td"},{text:"Header cell",value:"th"}]},{name:"scope",type:"listbox",label:"Scope",items:[{text:"None",value:""},{text:"Row",value:"row"},{text:"Column",value:"col"},{text:"Row group",value:"rowgroup"},{text:"Column group",value:"colgroup"}]},{name:"halign",type:"listbox",label:"Horizontal align",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{name:"valign",type:"listbox",label:"Vertical align",items:eg}],Ng=function(e){return Ig.concat(Eg(e).toArray())},Ag=function(e,t){var n=[{text:"Select...",value:""}],r=[{name:"borderstyle",type:"listbox",label:"Border style",items:n.concat(_g(bf(e)))},{name:"bordercolor",type:"colorinput",label:"Border color"},{name:"backgroundcolor",type:"colorinput",label:"Background color"}],i={name:"borderwidth",type:"input",label:"Border width"},o="cell"===t?[i].concat(r):r;return{title:"Advanced",name:"advanced",items:o}},Pg=function(e){return function(t,n){var r=t.dom,i=function(t,i){e&&!i||r.setAttrib(n,t,i)},o=function(t,i){e&&!i||r.setStyle(n,t,i)},a=function(r,i){e&&!i||(""===i?t.formatter.remove(r,{value:null},n,!0):t.formatter.apply(r,{value:i},n))};return{setAttrib:i,setStyle:o,setFormat:a}}},Mg={normal:Pg(!1),ifTruthy:Pg(!0)},Rg=function(e){return function(t){return Ce(t,"rgb")?e.toHex(t):t}},Fg=function(e,t){var n=vt.fromDom(t);return{borderwidth:gr(n,"border-width").getOr(""),borderstyle:gr(n,"border-style").getOr(""),bordercolor:gr(n,"border-color").map(Rg(e)).getOr(""),backgroundcolor:gr(n,"background-color").map(Rg(e)).getOr("")}},Bg=function(e){var t=e[0],n=e.slice(1);return L(n,(function(e){L(Ot(t),(function(n){Et(e,(function(e,r){var i=t[n];""!==i&&n===r&&i!==e&&(t[n]="")}))}))})),t},Lg=function(e,t,n,r){return W(e,(function(e){return!u(n.formatter.matchNode(r,t+e))})).getOr("")},$g=w(Lg,["left","center","right"],"align"),Vg=w(Lg,["top","middle","bottom"],"valign"),jg=function(e,t){var n=wf(e),r=yf(e),i=function(e){return{borderstyle:Lt(n,"border-style").getOr(""),bordercolor:Rg(e)(Lt(n,"border-color").getOr("")),backgroundcolor:Rg(e)(Lt(n,"background-color").getOr(""))}},o={height:"",width:"100%",cellspacing:"",cellpadding:"",caption:!1,class:"",align:"",border:""},a=function(){var t=n["border-width"];return Tf(e)&&t?{border:t}:Lt(r,"border").fold((function(){return{}}),(function(e){return{border:e}}))},s=t?i(e.dom):{},l=function(){var e=Lt(n,"border-spacing").or(Lt(r,"cellspacing")).fold((function(){return{}}),(function(e){return{cellspacing:e}})),t=Lt(n,"border-padding").or(Lt(r,"cellpadding")).fold((function(){return{}}),(function(e){return{cellpadding:e}}));return ie(ie({},e),t)},u=ie(ie(ie(ie(ie(ie({},o),n),r),s),a()),l());return u},zg=function(e){return Ar(vt.fromDom(e)).map((function(t){var n={selection:Hs(e.cells)};return _m(t,n)})).getOr("")},Hg=function(e,t,n){var r=function(t,n){var r=gr(vt.fromDom(n),"border-width");return Tf(e)&&r.isSome()?r.getOr(""):t.getAttrib(n,"border")||Km(e.dom,n,"border-width")||Km(e.dom,n,"border")},i=e.dom,o=Tf(e)?i.getStyle(t,"border-spacing")||i.getAttrib(t,"cellspacing"):i.getAttrib(t,"cellspacing")||i.getStyle(t,"border-spacing"),a=Tf(e)?Km(i,t,"padding")||i.getAttrib(t,"cellpadding"):i.getAttrib(t,"cellpadding")||Km(i,t,"padding");return ie({width:i.getStyle(t,"width")||i.getAttrib(t,"width"),height:i.getStyle(t,"height")||i.getAttrib(t,"height"),cellspacing:o,cellpadding:a,border:r(i,t),caption:!!i.select("caption",t)[0],class:i.getAttrib(t,"class",""),align:$g(e,t)},n?Fg(i,t):{})},Ug=function(e,t,n){var r=e.dom;return ie({height:r.getStyle(t,"height")||r.getAttrib(t,"height"),class:r.getAttrib(t,"class",""),type:zg(t),align:$g(e,t)},n?Fg(r,t):{})},Wg=function(e,t,n,r){var i=e.dom,o=r.getOr(t),a=function(e,t){return i.getStyle(e,t)||i.getAttrib(e,t)};return ie({width:a(o,"width"),height:a(t,"height"),scope:i.getAttrib(t,"scope"),celltype:Us(t),class:i.getAttrib(t,"class",""),halign:$g(e,t),valign:Vg(e,t)},n?Fg(i,t):{})},qg=function(e,t){var n=ui.fromTable(e),r=ui.justCells(n),i=j(r,(function(e){return R(t,(function(t){return Ct(e.element,t)}))}));return B(i,(function(e){return{element:e.element.dom,column:ui.getColumnAt(n,e.column).map((function(e){return e.element.dom}))}}))},Gg=function(e,t,n){e.setAttrib("scope",n.scope),e.setAttrib("class",n.class),e.setStyle("height",Xs(n.height)),t.setStyle("width",Xs(n.width))},Yg=function(e,t){e.setFormat("tablecellbackgroundcolor",t.backgroundcolor),e.setFormat("tablecellbordercolor",t.bordercolor),e.setFormat("tablecellborderstyle",t.borderstyle),e.setFormat("tablecellborderwidth",Xs(t.borderwidth))},Kg=function(e,t,n){var r=1===t.length;L(t,(function(t){var i=t.element,o=r?Mg.normal(e,i):Mg.ifTruthy(e,i),a=t.column.map((function(t){return r?Mg.normal(e,t):Mg.ifTruthy(e,t)})).getOr(o);Gg(o,a,n),xf(e)&&Yg(o,n),r&&(Zm(e,i),Qm(e,i)),n.halign&&Xm(e,i,n.halign),n.valign&&Jm(e,i,n.valign)}))},Xg=function(e,t){e.execCommand("mceTableCellType",!1,{type:t.celltype,no_events:!0})},Jg=function(e,t,n,r){var i=Mt(r,(function(e,t){return n[t]!==e}));Bt(i)>0&&t.length>=1&&Ar(t[0]).each((function(n){var o=qg(n,t),a=Bt(Mt(i,(function(e,t){return"scope"!==t&&"celltype"!==t})))>0,s=$t(i,"celltype");(a||$t(i,"scope"))&&Kg(e,o,r),s&&Xg(e,r),rf(e,n.dom,{structure:s,style:a})}))},Zg=function(e,t,n,r){var i=r.getData();r.close(),e.undoManager.transact((function(){Jg(e,t,n,i),e.focus()}))},Qg=function(e,t){var n=Ar(t[0]).map((function(n){return B(qg(n,t),(function(t){return Wg(e,t.element,xf(e),t.column)}))}));return Bg(n.getOrDie())},ev=function(e,t){var n=xl(t);if(0!==n.length){var r=Qg(e,n),i={type:"tabpanel",tabs:[{title:"General",name:"general",items:Ng(e)},Ag(e,"cell")]},o={type:"panel",items:[{type:"grid",columns:2,items:Ng(e)}]};e.windowManager.open({title:"Cell Properties",size:"normal",body:xf(e)?i:o,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:r,onSubmit:w(Zg,e,n,r)})}},tv=function(e){var t=_g(If(e));return t.length>0?E.some({name:"class",type:"listbox",label:"Class",items:t}):E.none()},nv=[{type:"listbox",name:"type",label:"Row type",items:[{text:"Header",value:"header"},{text:"Body",value:"body"},{text:"Footer",value:"footer"}]},{type:"listbox",name:"align",label:"Alignment",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{label:"Height",name:"height",type:"input"}],rv=function(e){return nv.concat(tv(e).toArray())},iv=function(e,t){e.setAttrib("class",t.class),e.setStyle("height",Xs(t.height))},ov=function(e,t){e.setStyle("background-color",t.backgroundcolor),e.setStyle("border-color",t.bordercolor),e.setStyle("border-style",t.borderstyle)},av=function(e,t,n,r){var i=1===t.length;L(t,(function(t){var o=i?Mg.normal(e,t):Mg.ifTruthy(e,t);iv(o,n),Sf(e)&&ov(o,n),n.align!==r.align&&(Zm(e,t),Xm(e,t,n.align))}))},sv=function(e,t){e.execCommand("mceTableRowType",!1,{type:t.type,no_events:!0})},lv=function(e,t,n,r){var i=Mt(r,(function(e,t){return n[t]!==e}));if(Bt(i)>0){var o=$t(i,"type"),a=!o||Bt(i)>1;a&&av(e,t,r,n),o&&sv(e,r),Ar(vt.fromDom(t[0])).each((function(t){return rf(e,t.dom,{structure:o,style:a})}))}},uv=function(e,t,n,r){var i=r.getData();r.close(),e.undoManager.transact((function(){lv(e,t,n,i),e.focus()}))},cv=function(e){var t=Sl(tl(e),pl.selected);if(0!==t.length){var n=B(t,(function(t){return Ug(e,t.dom,Sf(e))})),r=Bg(n),i={type:"tabpanel",tabs:[{title:"General",name:"general",items:rv(e)},Ag(e,"row")]},o={type:"panel",items:[{type:"grid",columns:2,items:rv(e)}]};e.windowManager.open({title:"Row Properties",size:"normal",body:Sf(e)?i:o,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:r,onSubmit:w(uv,e,B(t,(function(e){return e.dom})),r)})}},fv=function(e,t,n){var r=n?[{type:"input",name:"cols",label:"Cols",inputMode:"numeric"},{type:"input",name:"rows",label:"Rows",inputMode:"numeric"}]:[],i=[{type:"input",name:"width",label:"Width"},{type:"input",name:"height",label:"Height"}],o=Df(e)?[{type:"input",name:"cellspacing",label:"Cell spacing",inputMode:"numeric"},{type:"input",name:"cellpadding",label:"Cell padding",inputMode:"numeric"},{type:"input",name:"border",label:"Border width"},{type:"label",label:"Caption",items:[{type:"checkbox",name:"caption",label:"Show caption"}]}]:[],a=[{type:"listbox",name:"align",label:"Alignment",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]}],s=t.length>0?[{type:"listbox",name:"class",label:"Class",items:t}]:[];return r.concat(i).concat(o).concat(a).concat(s)},dv=function(e,t,n,r){if("TD"===t.tagName||"TH"===t.tagName)i(n)?e.setStyle(t,n,r):e.setStyle(t,n);else if(t.children)for(var o=0;o<t.children.length;o++)dv(e,t.children[o],n,r)},hv=function(e,t,n){var r=e.dom,i={},o={};if(i.class=n.class,o.height=Xs(n.height),r.getAttrib(t,"width")&&!Tf(e)?i.width=Ks(n.width):o.width=Xs(n.width),Tf(e)?(o["border-width"]=Xs(n.border),o["border-spacing"]=Xs(n.cellspacing)):(i.border=n.border,i.cellpadding=n.cellpadding,i.cellspacing=n.cellspacing),Tf(e)&&t.children)for(var a=0;a<t.children.length;a++)dv(r,t.children[a],{"border-width":Xs(n.border),padding:Xs(n.cellpadding)}),kf(e)&&dv(r,t.children[a],{"border-color":n.bordercolor});kf(e)&&(o["background-color"]=n.backgroundcolor,o["border-color"]=n.bordercolor,o["border-style"]=n.borderstyle),i.style=r.serializeStyle(ie(ie({},wf(e)),o)),r.setAttribs(t,ie(ie({},yf(e)),i))},pv=function(e,t,n,r){var i=e.dom,o=r.getData(),a=Mt(o,(function(e,t){return n[t]!==e}));r.close(),""===o.class&&delete o.class,e.undoManager.transact((function(){if(!t){var n=parseInt(o.cols,10)||1,r=parseInt(o.rows,10)||1;t=Bm(e,n,r,0,0)}if(Bt(a)>0){hv(e,t,o);var s=i.select("caption",t)[0];(s&&!o.caption||!s&&o.caption)&&e.execCommand("mceTableToggleCaption"),""===o.align?Zm(e,t):Xm(e,t,o.align)}if(e.focus(),e.addVisual(),Bt(a)>0){var l=$t(a,"caption"),u=!l||Bt(a)>1;rf(e,t,{structure:l,style:u})}}))},mv=function(e,t){var n,r=e.dom,i=jg(e,kf(e));!1===t?(n=r.getParent(e.selection.getStart(),"table",e.getBody()),n?i=Hg(e,n,kf(e)):kf(e)&&(i.borderstyle="",i.bordercolor="",i.backgroundcolor="")):(i.cols="1",i.rows="1",kf(e)&&(i.borderstyle="",i.bordercolor="",i.backgroundcolor=""));var o=_g(Nf(e));o.length>0&&i.class&&(i.class=i.class.replace(/\s*mce\-item\-table\s*/g,""));var a={type:"grid",columns:2,items:fv(e,o,t)},s=function(){return{type:"panel",items:[a]}},l=function(){return{type:"tabpanel",tabs:[{title:"General",name:"general",items:[a]},Ag(e,"table")]}},u=kf(e)?l():s();e.windowManager.open({title:"Table Properties",size:"normal",body:u,onSubmit:w(pv,e,n,i),buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:i})},gv=function(e){return _l(tl(e),Ys(e))},vv=function(e){return Cl(tl(e),Ys(e))},bv=function(e,t,n,r,a){var s=Ys(e),l=function(){return gv(e).each((function(t){Ar(t,s).filter(_(s)).each((function(t){var n=vt.fromText("");if(ki(t,n),Mi(t),e.dom.isEmpty(e.getBody()))e.setContent(""),e.selection.setCursorLocation();else{var r=e.dom.createRng();r.setStart(n.dom,0),r.setEnd(n.dom,0),e.selection.setRng(r),e.nodeChanged()}}))}))},u=function(t){return gv(e).each((function(n){var r=Mf(e)||Pf(e)||Af(e);r||Ar(n,s).each((function(n){"relative"!==t||_u(n)?"fixed"!==t||Cu(n)?"responsive"!==t||xu(n)||Zf(n):Jf(n):Xf(n),Js(n),rf(e,n.dom,af)}))}))},c=function(e){return Ar(e,s)},f=function(t){return vv(e).bind((function(e){return c(e).map((function(n){return t(n,e)}))}))},d=function(t,n){f((function(t){e.formatter.toggle("tableclass",{value:n},t.dom),rf(e,t.dom,of)}))},h=function(t,n){f((function(t){var i=xl(r),o=K(i,(function(t){return e.formatter.match("tablecellclass",{value:n},t.dom)})),a=o?e.formatter.remove:e.formatter.apply;L(i,(function(e){return a("tablecellclass",{value:n},e.dom)})),rf(e,t.dom,of)}))},m=function(){gv(e).each((function(t){Ar(t,s).each((function(n){qn(n,"caption").fold((function(){var t=vt.fromTag("caption");Oi(t,vt.fromText("Caption")),Ti(n,t,0),e.selection.setCursorLocation(t.dom,0)}),(function(r){fn("caption")(t)&&_t("td",n).each((function(t){return e.selection.setCursorLocation(t.dom,0)})),Mi(r)})),rf(e,n.dom,af)}))}))},g=function(t){e.focus()},v=function(e,t){return void 0===t&&(t=!1),f((function(n,i){var o=gl(r,n,i);e(n,o,t).each(g)}))},b=function(){return f((function(t,n){var i=gl(r,t,n),o=Vs(p,vt.fromDom(e.getDoc()),E.none());return Gm(t,i,o)}))},y=function(){return f((function(e,t){var n=gl(r,e,t);return qm(e,n)}))},C=function(t,n){return n().each((function(n){var i=B(n,(function(e){return _o(e)}));f((function(n,o){var a=js(vt.fromDom(e.getDoc())),s=bl(r,o,i,a);t(n,s).each(g)}))}))},x=function(e){return function(t,n){return Lt(n,"type").each((function(t){v(e(t),n.no_events)}))}};Et({mceTableSplitCells:function(){return v(t.unmergeCells)},mceTableMergeCells:function(){return v(t.mergeCells)},mceTableInsertRowBefore:function(){return v(t.insertRowsBefore)},mceTableInsertRowAfter:function(){return v(t.insertRowsAfter)},mceTableInsertColBefore:function(){return v(t.insertColumnsBefore)},mceTableInsertColAfter:function(){return v(t.insertColumnsAfter)},mceTableDeleteCol:function(){return v(t.deleteColumn)},mceTableDeleteRow:function(){return v(t.deleteRow)},mceTableCutCol:function(){return y().each((function(e){a.setColumns(e),v(t.deleteColumn)}))},mceTableCutRow:function(){return b().each((function(e){a.setRows(e),v(t.deleteRow)}))},mceTableCopyCol:function(){return y().each((function(e){return a.setColumns(e)}))},mceTableCopyRow:function(){return b().each((function(e){return a.setRows(e)}))},mceTablePasteColBefore:function(){return C(t.pasteColsBefore,a.getColumns)},mceTablePasteColAfter:function(){return C(t.pasteColsAfter,a.getColumns)},mceTablePasteRowBefore:function(){return C(t.pasteRowsBefore,a.getRows)},mceTablePasteRowAfter:function(){return C(t.pasteRowsAfter,a.getRows)},mceTableDelete:l,mceTableCellToggleClass:h,mceTableToggleClass:d,mceTableToggleCaption:m,mceTableSizingMode:function(e,t){return u(t)},mceTableCellType:x((function(e){return"th"===e?t.makeCellsHeader:t.unmakeCellsHeader})),mceTableColType:x((function(e){return"th"===e?t.makeColumnsHeader:t.unmakeColumnsHeader})),mceTableRowType:x((function(e){switch(e){case"header":return t.makeRowsHeader;case"footer":return t.makeRowsFooter;default:return t.makeRowsBody}}))},(function(t,n){return e.addCommand(n,t)})),Et({mceTableProps:w(mv,e,!1),mceTableRowProps:w(cv,e),mceTableCellProps:w(ev,e,r)},(function(t,n){return e.addCommand(n,(function(){return t()}))})),e.addCommand("mceInsertTable",(function(t,n){o(n)&&Ot(n).length>0?Lm(e,n.rows,n.columns,n.options,"Invalid values for mceInsertTable - rows and columns values are required to insert a table."):mv(e,!0)})),e.addCommand("mceTableApplyCellStyle",(function(t,n){var a=function(e){return"tablecell"+e.toLowerCase().replace("-","")};if(o(n)){var s=xl(r);if(0!==s.length){var l=Mt(n,(function(t,n){return e.formatter.has(a(n))&&i(t)}));jt(l)||(Et(l,(function(t,n){L(s,(function(r){Mg.normal(e,r.dom).setFormat(a(n),t)}))})),c(s[0]).each((function(t){return rf(e,t.dom,of)})))}}}))},yv=function(e,t,n){var r=Ys(e),i=function(t){return Cl(tl(e)).bind((function(e){return Ar(e,r).map((function(r){var i=gl(n,r,e);return t(r,i)}))})).getOr("")};Et({mceTableRowType:function(){return i(t.getTableRowType)},mceTableCellType:function(){return i(t.getTableCellType)},mceTableColType:function(){return i(t.getTableColType)}},(function(t,n){return e.addQueryValueHandler(n,t)}))},wv=function(){var e=bg(),t=bg();return{getRows:e.get,setRows:function(n){n.fold(e.clear,e.set),t.clear()},clearRows:e.clear,getColumns:t.get,setColumns:function(n){n.fold(t.clear,t.set),e.clear()},clearColumns:t.clear}},_v={remove_similar:!0,inherit:!1},Cv=ie({selector:"td,th"},_v),xv={tablecellbackgroundcolor:ie({styles:{backgroundColor:"%value"}},Cv),tablecellverticalalign:ie({styles:{"vertical-align":"%value"}},Cv),tablecellbordercolor:ie({styles:{borderColor:"%value"}},Cv),tablecellclass:ie({classes:["%value"]},Cv),tableclass:ie({selector:"table",classes:["%value"]},_v),tablecellborderstyle:ie({styles:{borderStyle:"%value"}},Cv),tablecellborderwidth:ie({styles:{borderWidth:"%value"}},Cv)},Sv=function(e){e.formatter.register(xv)},kv=co.generate([{none:["current"]},{first:["current"]},{middle:["current","target"]},{last:["current"]}]),Dv=function(e){return void 0===e&&(e=void 0),kv.none(e)},Ov=ie(ie({},kv),{none:Dv}),Tv=function(e,t,n,r,i){void 0===i&&(i=S);var o=1===r;if(!o&&n<=0)return Ov.first(e[0]);if(o&&n>=e.length-1)return Ov.last(e[e.length-1]);var a=n+r,s=e[a];return i(s)?Ov.middle(t,s):Tv(e,t,a,r,i)},Ev=function(e,t){return Ar(e,t).bind((function(t){var n=Ir(t),r=q(n,(function(t){return Ct(e,t)}));return r.map((function(e){return{index:e,all:n}}))}))},Iv=function(e,t,n){var r=Ev(e,n);return r.fold((function(){return Ov.none(e)}),(function(n){return Tv(n.all,e,n.index,1,t)}))},Nv=function(e,t,n){var r=Ev(e,n);return r.fold((function(){return Ov.none()}),(function(n){return Tv(n.all,e,n.index,-1,t)}))},Av=function(e,t,n,r){return{start:e,soffset:t,finish:n,foffset:r}},Pv={create:Av},Mv=co.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),Rv=function(e,t,n,r){return e.fold(t,n,r)},Fv=function(e){return e.fold(b,b,b)},Bv=Mv.before,Lv=Mv.on,$v=Mv.after,Vv={before:Bv,on:Lv,after:$v,cata:Rv,getStart:Fv},jv=co.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),zv=function(e){return jv.exact(e.start,e.soffset,e.finish,e.foffset)},Hv=function(e){return e.match({domRange:function(e){return vt.fromDom(e.startContainer)},relative:function(e,t){return Vv.getStart(e)},exact:function(e,t,n,r){return e}})},Uv=jv.domRange,Wv=jv.relative,qv=jv.exact,Gv=function(e){var t=Hv(e);return pn(t)},Yv=Pv.create,Kv={domRange:Uv,relative:Wv,exact:qv,exactFromRange:zv,getWin:Gv,range:Yv},Xv=function(e,t){var n=e.document.createRange();return n.selectNode(t.dom),n},Jv=function(e,t){var n=e.document.createRange();return Zv(n,t),n},Zv=function(e,t){return e.selectNodeContents(t.dom)},Qv=function(e,t){t.fold((function(t){e.setStartBefore(t.dom)}),(function(t,n){e.setStart(t.dom,n)}),(function(t){e.setStartAfter(t.dom)}))},eb=function(e,t){t.fold((function(t){e.setEndBefore(t.dom)}),(function(t,n){e.setEnd(t.dom,n)}),(function(t){e.setEndAfter(t.dom)}))},tb=function(e,t,n){var r=e.document.createRange();return Qv(r,t),eb(r,n),r},nb=function(e,t,n,r,i){var o=e.document.createRange();return o.setStart(t.dom,n),o.setEnd(r.dom,i),o},rb=function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}},ib=function(e){var t=e.getClientRects(),n=t.length>0?t[0]:e.getBoundingClientRect();return n.width>0||n.height>0?E.some(n).map(rb):E.none()},ob=co.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),ab=function(e,t,n){return t(vt.fromDom(n.startContainer),n.startOffset,vt.fromDom(n.endContainer),n.endOffset)},sb=function(e,t){return t.match({domRange:function(e){return{ltr:v(e),rtl:E.none}},relative:function(t,n){return{ltr:ae((function(){return tb(e,t,n)})),rtl:ae((function(){return E.some(tb(e,n,t))}))}},exact:function(t,n,r,i){return{ltr:ae((function(){return nb(e,t,n,r,i)})),rtl:ae((function(){return E.some(nb(e,r,i,t,n))}))}}})},lb=function(e,t){var n=t.ltr();if(n.collapsed){var r=t.rtl().filter((function(e){return!1===e.collapsed}));return r.map((function(e){return ob.rtl(vt.fromDom(e.endContainer),e.endOffset,vt.fromDom(e.startContainer),e.startOffset)})).getOrThunk((function(){return ab(e,ob.ltr,n)}))}return ab(e,ob.ltr,n)},ub=function(e,t){var n=sb(e,t);return lb(e,n)},cb=function(e,t){var n=ub(e,t);return n.match({ltr:function(t,n,r,i){var o=e.document.createRange();return o.setStart(t.dom,n),o.setEnd(r.dom,i),o},rtl:function(t,n,r,i){var o=e.document.createRange();return o.setStart(r.dom,i),o.setEnd(t.dom,n),o}})};ob.ltr,ob.rtl;var fb=function(e,t,n,r,i){if(0===i)return 0;if(t===r)return i-1;for(var o=r,a=1;a<i;a++){var s=e(a),l=Math.abs(t-s.left);if(n<=s.bottom){if(n<s.top||l>o)return a-1;o=l}}return 0},db=function(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom},hb=function(e,t,n,r,i){var o=function(n){var r=e.dom.createRange();return r.setStart(t.dom,n),r.collapse(!0),r},a=function(e){var t=o(e);return t.getBoundingClientRect()},s=Li(t).length,l=fb(a,n,r,i.right,s);return o(l)},pb=function(e,t,n,r){var i=e.dom.createRange();i.selectNode(t.dom);var o=i.getClientRects(),a=re(o,(function(e){return db(e,n,r)?E.some(e):E.none()}));return a.map((function(i){return hb(e,t,n,r,i)}))},mb=function(e,t,n,r){var i=e.dom.createRange(),o=wn(t);return re(o,(function(t){return i.selectNode(t.dom),db(i.getBoundingClientRect(),n,r)?gb(e,t,n,r):E.none()}))},gb=function(e,t,n,r){return ln(t)?pb(e,t,n,r):mb(e,t,n,r)},vb=function(e,t,n,r){var i=e.dom.createRange();i.selectNode(t.dom);var o=i.getBoundingClientRect(),a=Math.max(o.left,Math.min(o.right,n)),s=Math.max(o.top,Math.min(o.bottom,r));return gb(e,t,a,s)},bb=!0,yb=!1,wb=function(e,t){return t-e.left<e.right-t?bb:yb},_b=function(e,t,n){var r=e.dom.createRange();return r.selectNode(t.dom),r.collapse(n),r},Cb=function(e,t,n){var r=e.dom.createRange();r.selectNode(t.dom);var i=r.getBoundingClientRect(),o=wb(i,n),a=o===bb?Ts:Es;return a(t).map((function(t){return _b(e,t,o)}))},xb=function(e,t,n){var r=t.dom.getBoundingClientRect(),i=wb(r,n);return E.some(_b(e,t,i))},Sb=function(e,t,n){var r=0===wn(t).length?xb:Cb;return r(e,t,n)},kb=function(e,t,n){var r,i;return E.from(null===(i=(r=e.dom).caretPositionFromPoint)||void 0===i?void 0:i.call(r,t,n)).bind((function(t){if(null===t.offsetNode)return E.none();var n=e.dom.createRange();return n.setStart(t.offsetNode,t.offset),n.collapse(),E.some(n)}))},Db=function(e,t,n){var r,i;return E.from(null===(i=(r=e.dom).caretRangeFromPoint)||void 0===i?void 0:i.call(r,t,n))},Ob=function(e,t,n,r){var i=e.dom.createRange();i.selectNode(t.dom);var o=i.getBoundingClientRect(),a=Math.max(o.left,Math.min(o.right,n)),s=Math.max(o.top,Math.min(o.bottom,r));return vb(e,t,a,s)},Tb=function(e,t,n){return vt.fromPoint(e,t,n).bind((function(r){var i=function(){return Sb(e,r,t)};return 0===wn(r).length?i():Ob(e,r,t,n).orThunk(i)}))},Eb=function(){return document.caretPositionFromPoint?kb:document.caretRangeFromPoint?Db:Tb}(),Ib=function(e,t,n){var r=vt.fromDom(e.document);return Eb(r,t,n).map((function(e){return Pv.create(vt.fromDom(e.startContainer),e.startOffset,vt.fromDom(e.endContainer),e.endOffset)}))},Nb=function(e,t){var n=nn(e);return"input"===n?Vv.after(e):M(["br","img"],n)?0===t?Vv.before(e):Vv.after(e):Vv.on(e,t)},Ab=function(e,t){var n=e.fold(Vv.before,Nb,Vv.after),r=t.fold(Vv.before,Nb,Vv.after);return Kv.relative(n,r)},Pb=function(e,t,n,r){var i=Nb(e,t),o=Nb(n,r);return Kv.relative(i,o)},Mb=function(e){return e.match({domRange:function(e){var t=vt.fromDom(e.startContainer),n=vt.fromDom(e.endContainer);return Pb(t,e.startOffset,n,e.endOffset)},relative:Ab,exact:Pb})},Rb=function(e,t,n,r){var i=dn(e),o=i.dom.createRange();return o.setStart(e.dom,t),o.setEnd(n.dom,r),o},Fb=function(e,t,n,r){var i=Rb(e,t,n,r),o=Ct(e,n)&&t===r;return i.collapsed&&!o},Bb=function(e){return E.from(e.getSelection())},Lb=function(e,t){Bb(e).each((function(e){e.removeAllRanges(),e.addRange(t)}))},$b=function(e,t,n,r,i){var o=nb(e,t,n,r,i);Lb(e,o)},Vb=function(e,t,n,r,i,o){t.collapse(n.dom,r),t.extend(i.dom,o)},jb=function(e,t){return ub(e,t).match({ltr:function(t,n,r,i){$b(e,t,n,r,i)},rtl:function(t,n,r,i){Bb(e).each((function(o){if(o.setBaseAndExtent)o.setBaseAndExtent(t.dom,n,r.dom,i);else if(o.extend)try{Vb(e,o,t,n,r,i)}catch(a){$b(e,r,i,t,n)}else $b(e,r,i,t,n)}))}})},zb=function(e,t,n,r,i){var o=Pb(t,n,r,i);jb(e,o)},Hb=function(e,t,n){var r=Ab(t,n);jb(e,r)},Ub=function(e){var t=Kv.getWin(e).dom,n=function(e,n,r,i){return nb(t,e,n,r,i)},r=Mb(e);return ub(t,r).match({ltr:n,rtl:n})},Wb=function(e){if(e.rangeCount>0){var t=e.getRangeAt(0),n=e.getRangeAt(e.rangeCount-1);return E.some(Pv.create(vt.fromDom(t.startContainer),t.startOffset,vt.fromDom(n.endContainer),n.endOffset))}return E.none()},qb=function(e){if(null===e.anchorNode||null===e.focusNode)return Wb(e);var t=vt.fromDom(e.anchorNode),n=vt.fromDom(e.focusNode);return Fb(t,e.anchorOffset,n,e.focusOffset)?E.some(Pv.create(t,e.anchorOffset,n,e.focusOffset)):Wb(e)},Gb=function(e,t,n){void 0===n&&(n=!0);var r=n?Jv:Xv,i=r(e,t);Lb(e,i)},Yb=function(e){return Bb(e).filter((function(e){return e.rangeCount>0})).bind(qb)},Kb=function(e){return Yb(e).map((function(e){return Kv.exact(e.start,e.soffset,e.finish,e.foffset)}))},Xb=function(e,t){var n=cb(e,t);return ib(n)},Jb=function(e,t,n){return Ib(e,t,n)},Zb=function(e){Bb(e).each((function(e){return e.removeAllRanges()}))},Qb=tinymce.util.Tools.resolve("tinymce.util.VK"),ey=function(e,t,n){return ry(e,t,Iv(n,Cc))},ty=function(e,t,n){return ry(e,t,Nv(n,Cc))},ny=function(e,t){var n=Kv.exact(t,0,t,0);return Ub(n)},ry=function(e,t,n){return n.fold(E.none,E.none,(function(t,n){return Ts(n).map((function(t){return ny(e,t)}))}),(function(n){return e.execCommand("mceTableInsertRowAfter"),ey(e,t,n)}))},iy=["table","li","dl"],oy=function(e,t,n){if(e.keyCode===Qb.TAB){var r=Ws(t),i=function(e){var t=nn(e);return Ct(e,r)||M(iy,t)},o=t.selection.getRng(),a=vt.fromDom(e.shiftKey?o.startContainer:o.endContainer);Er(a,i).each((function(r){e.preventDefault(),Ar(r,i).each(n.clear),t.selection.collapse(e.shiftKey);var o=e.shiftKey?ty:ey,a=o(t,i,r);a.each((function(e){t.selection.setRng(e)}))}))}},ay=function(e,t){return{selection:e,kill:t}},sy={create:ay},ly=function(e,t,n,r){return{start:Vv.on(e,t),finish:Vv.on(n,r)}},uy={create:ly},cy=function(e,t){var n=cb(e,t);return Pv.create(vt.fromDom(n.startContainer),n.startOffset,vt.fromDom(n.endContainer),n.endOffset)},fy=uy.create,dy=function(e,t,n,r,i,o,a){return Ct(n,i)&&r===o?E.none():Yn(n,"td,th",t).bind((function(n){return Yn(i,"td,th",t).bind((function(r){return hy(e,t,n,r,a)}))}))},hy=function(e,t,n,r,i){return Ct(n,r)?E.none():to(n,r,t).bind((function(t){var r=t.boxes.getOr([]);return r.length>1?(i(e,r,t.start,t.finish),E.some(sy.create(E.some(fy(n,0,n,Ss(n))),!0))):E.none()}))},py=function(e,t,n,r,i){var o=function(e){return i.clearBeforeUpdate(n),i.selectRange(n,e.boxes,e.start,e.finish),e.boxes};return ao(r,e,t,i.firstSelectedSelector,i.lastSelectedSelector).map(o)},my=function(e,t){return{item:e,mode:t}},gy=function(e,t,n,r){return void 0===r&&(r=vy),e.property().parent(t).map((function(e){return my(e,r)}))},vy=function(e,t,n,r){return void 0===r&&(r=by),n.sibling(e,t).map((function(e){return my(e,r)}))},by=function(e,t,n,r){void 0===r&&(r=by);var i=e.property().children(t),o=n.first(i);return o.map((function(e){return my(e,r)}))},yy=[{current:gy,next:vy,fallback:E.none()},{current:vy,next:by,fallback:E.some(gy)},{current:by,next:by,fallback:E.some(vy)}],wy=function(e,t,n,r,i){void 0===i&&(i=yy);var o=W(i,(function(e){return e.current===n}));return o.bind((function(n){return n.current(e,t,r,n.next).orThunk((function(){return n.fallback.bind((function(n){return wy(e,t,n,r)}))}))}))},_y=function(){var e=function(e,t){return e.query().prevSibling(t)},t=function(e){return e.length>0?E.some(e[e.length-1]):E.none()};return{sibling:e,first:t}},Cy=function(){var e=function(e,t){return e.query().nextSibling(t)},t=function(e){return e.length>0?E.some(e[0]):E.none()};return{sibling:e,first:t}},xy={left:_y,right:Cy},Sy=function(e,t,n,r,i,o){var a=wy(e,t,r,i);return a.bind((function(t){return o(t.item)?E.none():n(t.item)?E.some(t.item):Sy(e,t.item,n,t.mode,i,o)}))},ky=function(e,t,n,r){return Sy(e,t,n,vy,xy.left(),r)},Dy=function(e,t,n,r){return Sy(e,t,n,vy,xy.right(),r)},Oy=function(e){return function(t){return 0===e.property().children(t).length}},Ty=function(e,t,n){return Iy(e,t,Oy(e),n)},Ey=function(e,t,n){return Ny(e,t,Oy(e),n)},Iy=ky,Ny=Dy,Ay=zi(),Py=function(e,t){return Ty(Ay,e,t)},My=function(e,t){return Ey(Ay,e,t)},Ry=function(e,t,n){return Iy(Ay,e,t,n)},Fy=function(e,t,n){return Ny(Ay,e,t,n)},By=function(e,t,n){return jn(e,t,n).isSome()},Ly=co.generate([{none:["message"]},{success:[]},{failedUp:["cell"]},{failedDown:["cell"]}]),$y=function(e,t,n){var r=e.getRect(t),i=e.getRect(n);return i.right>r.left&&i.left<r.right},Vy=function(e){return Yn(e,"tr")},jy=function(e,t,n,r,i,o,a){return Yn(r,"td,th",a).bind((function(n){return Yn(t,"td,th",a).map((function(t){return Ct(n,t)?Ct(r,n)&&Ss(n)===i?o(t):Ly.none("in same cell"):Zi(Vy,[n,t]).fold((function(){return $y(e,t,n)?Ly.success():o(t)}),(function(e){return o(t)}))}))})).getOr(Ly.none("default"))},zy=function(e,t,n,r,i){return e.fold(t,n,r,i)},Hy=ie(ie({},Ly),{verify:jy,cata:zy}),Uy=function(e,t,n,r){return{parent:e,children:t,element:n,index:r}},Wy=function(e){return mn(e).bind((function(t){var n=wn(t);return qy(n,e).map((function(r){return Uy(t,n,e,r)}))}))},qy=function(e,t){return q(e,w(Ct,t))},Gy=function(e){return"br"===nn(e)},Yy=function(e,t,n){return t(e,n).bind((function(e){return ln(e)&&0===Li(e).trim().length?Yy(e,t,n):E.some(e)}))},Ky=function(e,t,n){return n.traverse(t).orThunk((function(){return Yy(t,n.gather,e)})).map(n.relative)},Xy=function(e,t){return _n(e,t).filter(Gy).orThunk((function(){return _n(e,t-1).filter(Gy)}))},Jy=function(e,t,n,r){return Xy(t,n).bind((function(t){return r.traverse(t).fold((function(){return Yy(t,r.gather,e).map(r.relative)}),(function(e){return Wy(e).map((function(e){return Vv.on(e.parent,e.index)}))}))}))},Zy=function(e,t,n,r){var i=Gy(t)?Ky(e,t,r):Jy(e,t,n,r);return i.map((function(e){return{start:e,finish:e}}))},Qy=function(e){return Hy.cata(e,(function(e){return E.none()}),(function(){return E.none()}),(function(e){return E.some(ad(e,0))}),(function(e){return E.some(ad(e,Ss(e)))}))},ew=function(e,t){return{left:e.left,top:e.top+t,right:e.right,bottom:e.bottom+t}},tw=function(e,t){return{left:e.left,top:e.top-t,right:e.right,bottom:e.bottom-t}},nw=function(e,t,n){return{left:e.left+t,top:e.top+n,right:e.right+t,bottom:e.bottom+n}},rw=function(e){return e.top},iw=function(e){return e.bottom},ow=function(e,t,n){return n>=0&&n<Ss(t)?e.getRangedRect(t,n,t,n+1):n>0?e.getRangedRect(t,n-1,t,n):E.none()},aw=function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}},sw=function(e,t){return E.some(e.getRect(t))},lw=function(e,t,n){return sn(t)?sw(e,t).map(aw):ln(t)?ow(e,t,n).map(aw):E.none()},uw=function(e,t){return sn(t)?sw(e,t).map(aw):ln(t)?e.getRangedRect(t,0,t,Ss(t)).map(aw):E.none()},cw=5,fw=100,dw=co.generate([{none:[]},{retry:["caret"]}]),hw=function(e,t){return e.left<t.left||Math.abs(t.right-e.left)<1||e.left>t.right},pw=function(e,t,n){return zn(t,sp).fold(x,(function(t){return uw(e,t).exists((function(e){return hw(n,e)}))}))},mw=function(e,t,n,r,i){var o=ew(i,cw);return Math.abs(n.bottom-r.bottom)<1||n.top>i.bottom?dw.retry(o):n.top===i.bottom?dw.retry(ew(i,1)):pw(e,t,i)?dw.retry(nw(o,cw,0)):dw.none()},gw=function(e,t,n,r,i){var o=tw(i,cw);return Math.abs(n.top-r.top)<1||n.bottom<i.top?dw.retry(o):n.bottom===i.top?dw.retry(tw(i,1)):pw(e,t,i)?dw.retry(nw(o,cw,0)):dw.none()},vw={point:rw,adjuster:gw,move:tw,gather:Py},bw={point:iw,adjuster:mw,move:ew,gather:My},yw=function(e,t,n){return e.elementFromPoint(t,n).filter((function(e){return"table"===nn(e)})).isSome()},ww=function(e,t,n,r,i){return _w(e,t,n,t.move(r,cw),i)},_w=function(e,t,n,r,i){return 0===i?E.some(r):yw(e,r.left,t.point(r))?ww(e,t,n,r,i-1):e.situsFromPoint(r.left,t.point(r)).bind((function(o){return o.start.fold(E.none,(function(o){return uw(e,o).bind((function(a){return t.adjuster(e,o,a,n,r).fold(E.none,(function(r){return _w(e,t,n,r,i-1)}))})).orThunk((function(){return E.some(r)}))}),E.none)}))},Cw=function(e,t){return e.situsFromPoint(t.left,t.bottom+cw)},xw=function(e,t){return e.situsFromPoint(t.left,t.top-cw)},Sw=function(e,t,n){return e.point(t)>n.getInnerHeight()?E.some(e.point(t)-n.getInnerHeight()):e.point(t)<0?E.some(-e.point(t)):E.none()},kw=function(e,t,n){var r=e.move(n,cw),i=_w(t,e,n,r,fw).getOr(r);return Sw(e,i,t).fold((function(){return t.situsFromPoint(i.left,e.point(i))}),(function(n){return t.scrollBy(0,n),t.situsFromPoint(i.left,e.point(i)-n)}))},Dw={tryUp:w(kw,vw),tryDown:w(kw,bw),ieTryUp:xw,ieTryDown:Cw,getJumpSize:v(cw)},Ow=20,Tw=function(e,t,n){return e.getSelection().bind((function(r){return Zy(t,r.finish,r.foffset,n).fold((function(){return E.some(ad(r.finish,r.foffset))}),(function(i){var o=e.fromSitus(i),a=Hy.verify(e,r.finish,r.foffset,o.finish,o.foffset,n.failure,t);return Qy(a)}))}))},Ew=function(e,t,n,r,i,o){return 0===o?E.none():Aw(e,t,n,r,i).bind((function(a){var s=e.fromSitus(a),l=Hy.verify(e,n,r,s.finish,s.foffset,i.failure,t);return Hy.cata(l,(function(){return E.none()}),(function(){return E.some(a)}),(function(a){return Ct(n,a)&&0===r?Iw(e,n,r,tw,i):Ew(e,t,a,0,i,o-1)}),(function(a){return Ct(n,a)&&r===Ss(a)?Iw(e,n,r,ew,i):Ew(e,t,a,Ss(a),i,o-1)}))}))},Iw=function(e,t,n,r,i){return lw(e,t,n).bind((function(t){return Nw(e,i,r(t,Dw.getJumpSize()))}))},Nw=function(e,t,n){var r=it().browser;return r.isChrome()||r.isSafari()||r.isFirefox()||r.isEdge()?t.otherRetry(e,n):r.isIE()?t.ieRetry(e,n):E.none()},Aw=function(e,t,n,r,i){return lw(e,n,r).bind((function(t){return Nw(e,i,t)}))},Pw=function(e,t,n){return Tw(e,t,n).bind((function(r){return Ew(e,t,r.element,r.offset,n,Ow).map(e.fromSitus)}))},Mw=function(e,t){return By(e,(function(e){return mn(e).exists((function(e){return Ct(e,t)}))}))},Rw=function(e,t,n,r,i){return Yn(r,"td,th",t).bind((function(r){return Yn(r,"table",t).bind((function(o){return Mw(i,o)?Pw(e,t,n).bind((function(e){return Yn(e.finish,"td,th",t).map((function(t){return{start:r,finish:t,range:e}}))})):E.none()}))}))},Fw=function(e,t,n,r,i,o){return it().browser.isIE()?E.none():o(r,t).orThunk((function(){return Rw(e,t,n,r,i).map((function(e){var t=e.range;return sy.create(E.some(fy(t.start,t.soffset,t.finish,t.foffset)),!0)}))}))},Bw=function(e,t){return Yn(e,"tr",t).bind((function(e){return Yn(e,"table",t).bind((function(n){var r=$n(n,"tr");return Ct(e,r[0])?Ry(n,(function(e){return Es(e).isSome()}),t).map((function(e){var t=Ss(e);return sy.create(E.some(fy(e,t,e,t)),!0)})):E.none()}))}))},Lw=function(e,t){return Yn(e,"tr",t).bind((function(e){return Yn(e,"table",t).bind((function(n){var r=$n(n,"tr");return Ct(e,r[r.length-1])?Fy(n,(function(e){return Ts(e).isSome()}),t).map((function(e){return sy.create(E.some(fy(e,0,e,0)),!0)})):E.none()}))}))},$w=function(e,t,n,r,i,o,a){return Rw(e,n,r,i,o).bind((function(e){return hy(t,n,e.start,e.finish,a)}))},Vw=function(e,t){return Yn(e,"td,th",t)},jw=function(e,t,n,r){var i=bg(),o=i.clear,a=function(o){i.on((function(i){r.clearBeforeUpdate(t),Vw(o.target,n).each((function(a){to(i,a,n).each((function(n){var i=n.boxes.getOr([]);if(1===i.length){var s=i[0],l="false"===xc(s),u=rr(_c(o.target),s,Ct);l&&u&&(r.selectRange(t,i,s,s),e.selectContents(s))}else i.length>1&&(r.selectRange(t,i,n.start,n.finish),e.selectContents(a))}))}))}))},s=function(e){r.clear(t),Vw(e.target,n).each(i.set)},l=function(e){a(e)},u=function(e){a(e),o()};return{clearstate:o,mousedown:s,mouseover:l,mouseup:u}},zw={traverse:yn,gather:My,relative:Vv.before,otherRetry:Dw.tryDown,ieRetry:Dw.ieTryDown,failure:Hy.failedDown},Hw={traverse:bn,gather:Py,relative:Vv.before,otherRetry:Dw.tryUp,ieRetry:Dw.ieTryUp,failure:Hy.failedUp},Uw=function(e){return function(t){return t===e}},Ww=Uw(38),qw=Uw(40),Gw=function(e){return e>=37&&e<=40},Yw={isBackward:Uw(37),isForward:Uw(39)},Kw={isBackward:Uw(39),isForward:Uw(37)},Xw=function(e){var t=void 0!==e?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,r=t.body.scrollTop||t.documentElement.scrollTop;return Zo(n,r)},Jw=function(e,t,n){var r=void 0!==n?n.dom:document,i=r.defaultView;i&&i.scrollBy(e,t)},Zw=function(e){var t=function(t,n){return vt.fromPoint(vt.fromDom(e.document),t,n)},n=function(e){return e.dom.getBoundingClientRect()},r=function(t,n,r,i){var o=Kv.exact(t,n,r,i);return Xb(e,o)},i=function(){return Kb(e).map((function(t){return cy(e,t)}))},o=function(t){var n=Kv.relative(t.start,t.finish);return cy(e,n)},a=function(t,n){return Jb(e,t,n).map((function(e){return uy.create(e.start,e.soffset,e.finish,e.foffset)}))},s=function(){Zb(e)},l=function(t){void 0===t&&(t=!1),Kb(e).each((function(n){return n.fold((function(e){return e.collapse(t)}),(function(n,r){var i=t?n:r;Hb(e,i,i)}),(function(n,r,i,o){var a=t?n:i,s=t?r:o;zb(e,a,s,a,s)}))}))},u=function(t){Gb(e,t,!1)},c=function(t){Gb(e,t)},f=function(t){zb(e,t.start,t.soffset,t.finish,t.foffset)},d=function(t,n){Hb(e,t,n)},h=function(){return e.innerHeight},p=function(){var t=Xw(vt.fromDom(e.document));return t.top},m=function(t,n){Jw(t,n,vt.fromDom(e.document))};return{elementFromPoint:t,getRect:n,getRangedRect:r,getSelection:i,fromSitus:o,situsFromPoint:a,clearSelection:s,collapseSelection:l,setSelection:f,setRelativeSelection:d,selectNode:u,selectContents:c,getInnerHeight:h,getScrollY:p,scrollBy:m}},Qw=function(e,t){return{rows:e,cols:t}},e_=function(e,t,n,r){var i=Zw(e),o=jw(i,t,n,r);return{clearstate:o.clearstate,mousedown:o.mousedown,mouseover:o.mouseover,mouseup:o.mouseup}},t_=function(e,t,n,r){var i=Zw(e),o=function(){return r.clear(t),E.none()},a=function(e,a,s,l,u,c){var f=e.raw,d=f.which,h=!0===f.shiftKey,p=no(t,r.selectedSelector).fold((function(){return Gw(d)&&!h&&r.clearBeforeUpdate(t),qw(d)&&h?w($w,i,t,n,zw,l,a,r.selectRange):Ww(d)&&h?w($w,i,t,n,Hw,l,a,r.selectRange):qw(d)?w(Fw,i,n,zw,l,a,Lw):Ww(d)?w(Fw,i,n,Hw,l,a,Bw):E.none}),(function(e){var n=function(n){return function(){var o=re(n,(function(n){return py(n.rows,n.cols,t,e,r)}));return o.fold((function(){return io(t,r.firstSelectedSelector,r.lastSelectedSelector).map((function(e){var n=qw(d)||c.isForward(d)?Vv.after:Vv.before;return i.setRelativeSelection(Vv.on(e.first,0),n(e.table)),r.clear(t),sy.create(E.none(),!0)}))}),(function(e){return E.some(sy.create(E.none(),!0))}))}};return qw(d)&&h?n([Qw(1,0)]):Ww(d)&&h?n([Qw(-1,0)]):c.isBackward(d)&&h?n([Qw(0,-1),Qw(-1,0)]):c.isForward(d)&&h?n([Qw(0,1),Qw(1,0)]):Gw(d)&&!h?o:E.none}));return p()},s=function(e,i,o,a,s){return no(t,r.selectedSelector).fold((function(){var l=e.raw,u=l.which,c=!0===l.shiftKey;return c&&Gw(u)?dy(t,n,i,o,a,s,r.selectRange):E.none()}),E.none)};return{keydown:a,keyup:s}},n_=function(e,t,n,r){var i=Zw(e);return function(e,o){r.clearBeforeUpdate(t),to(e,o,n).each((function(e){var n=e.boxes.getOr([]);r.selectRange(t,n,e.start,e.finish),i.selectContents(o),i.collapseSelection()}))}},r_=function(e,t){L(t,(function(t){uc(e,t)}))},i_=function(e){return function(t){sc(t,e)}},o_=function(e){return function(t){r_(t,e)}},a_=function(e){var t=i_(e.selected),n=o_([e.selected,e.lastSelected,e.firstSelected]),r=function(t){var r=$n(t,e.selectedSelector);L(r,n)},i=function(n,i,o,a){r(n),L(i,t),sc(o,e.firstSelected),sc(a,e.lastSelected)};return{clearBeforeUpdate:r,clear:r,selectRange:i,selectedSelector:e.selectedSelector,firstSelectedSelector:e.firstSelectedSelector,lastSelectedSelector:e.lastSelectedSelector}},s_=function(e,t,n){var r=function(t){tr(t,e.selected),tr(t,e.firstSelected),tr(t,e.lastSelected)},i=function(t){Xn(t,e.selected,"1")},o=function(e){a(e),n()},a=function(t){var n=$n(t,e.selectedSelector+","+e.firstSelectedSelector+","+e.lastSelectedSelector);L(n,r)},s=function(n,r,a,s){o(n),L(r,i),Xn(a,e.firstSelected,"1"),Xn(s,e.lastSelected,"1"),t(r,a,s)};return{clearBeforeUpdate:a,clear:o,selectRange:s,selectedSelector:e.selectedSelector,firstSelectedSelector:e.firstSelectedSelector,lastSelectedSelector:e.lastSelectedSelector}},l_={byClass:a_,byAttr:s_},u_=function(e,t){var n=e.slice(0,t[t.length-1].row+1),r=jd(n);return Y(r,(function(e){var n=e.cells.slice(0,t[t.length-1].column+1);return B(n,(function(e){return e.element}))}))},c_=function(e,t){var n=e.slice(t[0].row+t[0].rowspan-1,e.length),r=jd(n);return Y(r,(function(e){var n=e.cells.slice(t[0].column+t[0].colspan-1,e.cells.length);return B(n,(function(e){return e.element}))}))},f_=function(e,t,n){var r=ui.fromTable(e),i=Kd(r,t);return i.map((function(e){var t=$d(r,n,!1),i=u_(t,e),o=c_(t,e);return{upOrLeftCells:i,downOrRightCells:o}}))},d_=tinymce.util.Tools.resolve("tinymce.Env"),h_=function(e){return!1===cc(vt.fromDom(e.target),"ephox-snooker-resizer-bar")};function p_(e,t,n){var r=function(t,r,i){n.targets().each((function(n){var o=Ar(r);o.each((function(o){var a=jf(e),s=Vs(p,vt.fromDom(e.getDoc()),a),l=f_(o,n,s);tf(e,t,r,i,l)}))}))},i=function(){return nf(e)},o=l_.byAttr(pl,r,i);return e.on("init",(function(n){var r=e.getWin(),i=Ws(e),a=Ys(e),s=function(){var t=e.selection,n=vt.fromDom(t.getStart()),r=vt.fromDom(t.getEnd()),a=Zi(Ar,[n,r]);a.fold((function(){return o.clear(i)}),p)},l=e_(r,i,a,o),u=t_(r,i,a,o),c=n_(r,i,a,o),f=function(e){return!0===e.raw.shiftKey};e.on("TableSelectorChange",(function(e){return c(e.start,e.finish)}));var d=function(t,n){f(t)&&(n.kill&&t.kill(),n.selection.each((function(t){var n=Kv.relative(t.start,t.finish),i=cb(r,n);e.selection.setRng(i)})))},h=function(t){var n=Qu(t);if(n.raw.shiftKey&&Gw(n.raw.which)){var r=e.selection.getRng(),i=vt.fromDom(r.startContainer),o=vt.fromDom(r.endContainer);u.keyup(n,i,r.startOffset,o,r.endOffset).each((function(e){d(n,e)}))}},m=function(n){var r=Qu(n);t().each((function(e){return e.hideBars()}));var i=e.selection.getRng(),o=vt.fromDom(i.startContainer),a=vt.fromDom(i.endContainer),s=Wo(Yw,Kw)(vt.fromDom(e.selection.getStart()));u.keydown(r,o,i.startOffset,a,i.endOffset,s).each((function(e){d(r,e)})),t().each((function(e){return e.showBars()}))},g=function(e){return 0===e.button},v=function(e){return void 0===e.buttons||(!(!d_.browser.isEdge()||0!==e.buttons)||0!==(1&e.buttons))},b=function(e){l.clearstate()},y=function(e){g(e)&&h_(e)&&l.mousedown(Qu(e))},w=function(e){v(e)&&h_(e)&&l.mouseover(Qu(e))},_=function(e){g(e)&&h_(e)&&l.mouseup(Qu(e))},C=function(){var e=mg(vt.fromDom(i)),t=mg(0),n=function(n){var r=vt.fromDom(n.target);if("td"===nn(r)||"th"===nn(r)){var i=e.get(),o=t.get();Ct(i,r)&&n.timeStamp-o<300&&(n.preventDefault(),c(r,r))}e.set(r),t.set(n.timeStamp)};return{touchEnd:n}},x=C();e.on("dragstart",b),e.on("mousedown",y),e.on("mouseover",w),e.on("mouseup",_),e.on("touchend",x.touchEnd),e.on("keyup",h),e.on("keydown",m),e.on("NodeChange",s)})),{clear:o.clear}}var m_=function(e,t){return qn(e,t).isSome()},g_=function(e,t){var n=mg(E.none()),r=mg([]),i=E.none(),o=fn("caption"),a=function(e){return i.forall((function(t){return!t[e]}))},s=function(){return _l(tl(e),Ys(e))},l=function(){return _l(nl(e),Ys(e))},u=function(){return s().bind((function(e){return sr(or(Ar(e),l().bind(Ar),(function(n,r){return Ct(n,r)?o(e)?E.some(ml(e)):E.some(gl(t,n,e)):E.none()})))}))},c=function(e){var t=Ar(e.element);return t.map((function(t){var n=ui.fromTable(t),r=Kd(n,e).getOr([]),i=H(r,(function(e,t){return t.isLocked&&(e.onAny=!0,0===t.column?e.onFirst=!0:t.column+t.colspan>=n.grid.columns&&(e.onLast=!0)),e}),{onAny:!1,onFirst:!1,onLast:!1});return{mergeable:Qd(n,e).isSome(),unmergeable:eh(n,e).isSome(),locked:i}}))},f=function(){n.set(ae(u)()),i=n.get().bind(c),L(r.get(),(function(e){return e()}))},d=function(e){return e(),r.set(r.get().concat([e])),function(){r.set(j(r.get(),(function(t){return t!==e})))}},h=function(e,t){return d((function(){return n.get().fold((function(){e.setDisabled(!0)}),(function(n){e.setDisabled(t(n))}))}))},p=function(e,t,r){return d((function(){return n.get().fold((function(){e.setDisabled(!0),e.setActive(!1)}),(function(n){e.setDisabled(t(n)),e.setActive(r(n))}))}))},m=function(e){return i.exists((function(t){return t.locked[e]}))},g=function(e){return h(e,(function(e){return!1}))},v=function(e){return h(e,(function(e){return o(e.element)}))},b=function(e){return function(t){return h(t,(function(t){return o(t.element)||m(e)}))}},y=function(e){return function(t){return h(t,(function(t){return o(t.element)||e().isNone()}))}},w=function(e,t){return function(n){return h(n,(function(n){return o(n.element)||e().isNone()||m(t)}))}},_=function(e){return h(e,(function(e){return a("mergeable")}))},C=function(e){return h(e,(function(e){return a("unmergeable")}))},S=function(t){return p(t,x,(function(t){var n=Ar(t.element,Ys(e));return n.exists((function(e){return m_(e,"caption")}))}))},k=function(t,n){return function(r){return p(r,(function(e){return o(e.element)}),(function(){return e.queryCommandValue(t)===n}))}},D=k("mceTableRowType","header"),O=k("mceTableColType","th");return e.on("NodeChange ExecCommand TableSelectorChange",f),{onSetupTable:g,onSetupCellOrRow:v,onSetupColumn:b,onSetupPasteable:y,onSetupPasteableColumn:w,onSetupMergeable:_,onSetupUnmergeable:C,resetTargets:f,onSetupTableWithCaption:S,onSetupTableRowHeaders:D,onSetupTableColumnHeaders:O,targets:n.get}},v_=function(e,t,n,r){e.ui.registry.addMenuButton("table",{tooltip:"Table",icon:"table",fetch:function(e){return e("inserttable | cell row column | advtablesort | tableprops deletetable")}});var i=function(t){return function(){return e.execCommand(t)}};e.ui.registry.addButton("tableprops",{tooltip:"Table properties",onAction:i("mceTableProps"),icon:"table",onSetup:n.onSetupTable}),e.ui.registry.addButton("tabledelete",{tooltip:"Delete table",onAction:i("mceTableDelete"),icon:"table-delete-table",onSetup:n.onSetupTable}),e.ui.registry.addButton("tablecellprops",{tooltip:"Cell properties",onAction:i("mceTableCellProps"),icon:"table-cell-properties",onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tablemergecells",{tooltip:"Merge cells",onAction:i("mceTableMergeCells"),icon:"table-merge-cells",onSetup:n.onSetupMergeable}),e.ui.registry.addButton("tablesplitcells",{tooltip:"Split cell",onAction:i("mceTableSplitCells"),icon:"table-split-cells",onSetup:n.onSetupUnmergeable}),e.ui.registry.addButton("tableinsertrowbefore",{tooltip:"Insert row before",onAction:i("mceTableInsertRowBefore"),icon:"table-insert-row-above",onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tableinsertrowafter",{tooltip:"Insert row after",onAction:i("mceTableInsertRowAfter"),icon:"table-insert-row-after",onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tabledeleterow",{tooltip:"Delete row",onAction:i("mceTableDeleteRow"),icon:"table-delete-row",onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tablerowprops",{tooltip:"Row properties",onAction:i("mceTableRowProps"),icon:"table-row-properties",onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tableinsertcolbefore",{tooltip:"Insert column before",onAction:i("mceTableInsertColBefore"),icon:"table-insert-column-before",onSetup:n.onSetupColumn("onFirst")}),e.ui.registry.addButton("tableinsertcolafter",{tooltip:"Insert column after",onAction:i("mceTableInsertColAfter"),icon:"table-insert-column-after",onSetup:n.onSetupColumn("onLast")}),e.ui.registry.addButton("tabledeletecol",{tooltip:"Delete column",onAction:i("mceTableDeleteCol"),icon:"table-delete-column",onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addButton("tablecutrow",{tooltip:"Cut row",icon:"cut-row",onAction:i("mceTableCutRow"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tablecopyrow",{tooltip:"Copy row",icon:"duplicate-row",onAction:i("mceTableCopyRow"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tablepasterowbefore",{tooltip:"Paste row before",icon:"paste-row-before",onAction:i("mceTablePasteRowBefore"),onSetup:n.onSetupPasteable(r.getRows)}),e.ui.registry.addButton("tablepasterowafter",{tooltip:"Paste row after",icon:"paste-row-after",onAction:i("mceTablePasteRowAfter"),onSetup:n.onSetupPasteable(r.getRows)}),e.ui.registry.addButton("tablecutcol",{tooltip:"Cut column",icon:"cut-column",onAction:i("mceTableCutCol"),onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addButton("tablecopycol",{tooltip:"Copy column",icon:"duplicate-column",onAction:i("mceTableCopyCol"),onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addButton("tablepastecolbefore",{tooltip:"Paste column before",icon:"paste-column-before",onAction:i("mceTablePasteColBefore"),onSetup:n.onSetupPasteableColumn(r.getColumns,"onFirst")}),e.ui.registry.addButton("tablepastecolafter",{tooltip:"Paste column after",icon:"paste-column-after",onAction:i("mceTablePasteColAfter"),onSetup:n.onSetupPasteableColumn(r.getColumns,"onLast")}),e.ui.registry.addButton("tableinsertdialog",{tooltip:"Insert table",onAction:i("mceInsertTable"),icon:"table"});var o=Sg(Nf(e));0!==o.length&&e.ui.registry.addMenuButton("tableclass",{icon:"table-classes",tooltip:"Table styles",fetch:kg(e,t,o,"tableclass",(function(t){return e.execCommand("mceTableToggleClass",!1,t)})),onSetup:n.onSetupTable});var a=Sg(Ef(e));0!==a.length&&e.ui.registry.addMenuButton("tablecellclass",{icon:"table-cell-classes",tooltip:"Cell styles",fetch:kg(e,t,a,"tablecellclass",(function(t){return e.execCommand("mceTableCellToggleClass",!1,t)})),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuButton("tablecellvalign",{icon:"vertical-align",tooltip:"Vertical align",fetch:kg(e,t,eg,"tablecellverticalalign",xg(e,"vertical-align")),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuButton("tablecellborderwidth",{icon:"border-width",tooltip:"Border width",fetch:kg(e,t,vf(e),"tablecellborderwidth",xg(e,"border-width")),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuButton("tablecellborderstyle",{icon:"border-style",tooltip:"Border style",fetch:kg(e,t,bf(e),"tablecellborderstyle",xg(e,"border-style")),onSetup:n.onSetupCellOrRow}),e.ui.registry.addToggleButton("tablecaption",{tooltip:"Table caption",onAction:i("mceTableToggleCaption"),icon:"table-caption",onSetup:n.onSetupTableWithCaption}),e.ui.registry.addMenuButton("tablecellbackgroundcolor",{icon:"cell-background-color",tooltip:"Background color",fetch:function(t){return t(Dg(e,Hf(e),"background-color"))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuButton("tablecellbordercolor",{icon:"cell-border-color",tooltip:"Border color",fetch:function(t){return t(Dg(e,Uf(e),"border-color"))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addToggleButton("tablerowheader",{tooltip:"Row header",icon:"table-top-header",onAction:Og(e),onSetup:n.onSetupTableRowHeaders}),e.ui.registry.addToggleButton("tablecolheader",{tooltip:"Column header",icon:"table-left-header",onAction:Tg(e),onSetup:n.onSetupTableColumnHeaders})},b_=function(e){var t=function(t){return e.dom.is(t,"table")&&e.getBody().contains(t)},n=Rf(e);n.length>0&&e.ui.registry.addContextToolbar("table",{predicate:t,items:n,scope:"node",position:"node"})},y_=function(e,t,n,r){var i=function(t){return function(){return e.execCommand(t)}},o=function(t){e.execCommand("mceInsertTable",!1,{rows:t.numRows,columns:t.numColumns})},a={text:"Table properties",onSetup:n.onSetupTable,onAction:i("mceTableProps")},s={text:"Delete table",icon:"table-delete-table",onSetup:n.onSetupTable,onAction:i("mceTableDelete")};e.ui.registry.addMenuItem("tableinsertrowbefore",{text:"Insert row before",icon:"table-insert-row-above",onAction:i("mceTableInsertRowBefore"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tableinsertrowafter",{text:"Insert row after",icon:"table-insert-row-after",onAction:i("mceTableInsertRowAfter"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tabledeleterow",{text:"Delete row",icon:"table-delete-row",onAction:i("mceTableDeleteRow"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tablerowprops",{text:"Row properties",icon:"table-row-properties",onAction:i("mceTableRowProps"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tablecutrow",{text:"Cut row",icon:"cut-row",onAction:i("mceTableCutRow"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tablecopyrow",{text:"Copy row",icon:"duplicate-row",onAction:i("mceTableCopyRow"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tablepasterowbefore",{text:"Paste row before",icon:"paste-row-before",onAction:i("mceTablePasteRowBefore"),onSetup:n.onSetupPasteable(r.getRows)}),e.ui.registry.addMenuItem("tablepasterowafter",{text:"Paste row after",icon:"paste-row-after",onAction:i("mceTablePasteRowAfter"),onSetup:n.onSetupPasteable(r.getRows)});var l={type:"nestedmenuitem",text:"Row",getSubmenuItems:v("tableinsertrowbefore tableinsertrowafter tabledeleterow tablerowprops | tablecutrow tablecopyrow tablepasterowbefore tablepasterowafter")};e.ui.registry.addMenuItem("tableinsertcolumnbefore",{text:"Insert column before",icon:"table-insert-column-before",onAction:i("mceTableInsertColBefore"),onSetup:n.onSetupColumn("onFirst")}),e.ui.registry.addMenuItem("tableinsertcolumnafter",{text:"Insert column after",icon:"table-insert-column-after",onAction:i("mceTableInsertColAfter"),onSetup:n.onSetupColumn("onLast")}),e.ui.registry.addMenuItem("tabledeletecolumn",{text:"Delete column",icon:"table-delete-column",onAction:i("mceTableDeleteCol"),onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addMenuItem("tablecutcolumn",{text:"Cut column",icon:"cut-column",onAction:i("mceTableCutCol"),onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addMenuItem("tablecopycolumn",{text:"Copy column",icon:"duplicate-column",onAction:i("mceTableCopyCol"),onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addMenuItem("tablepastecolumnbefore",{text:"Paste column before",icon:"paste-column-before",onAction:i("mceTablePasteColBefore"),onSetup:n.onSetupPasteableColumn(r.getColumns,"onFirst")}),e.ui.registry.addMenuItem("tablepastecolumnafter",{text:"Paste column after",icon:"paste-column-after",onAction:i("mceTablePasteColAfter"),onSetup:n.onSetupPasteableColumn(r.getColumns,"onLast")});var u={type:"nestedmenuitem",text:"Column",getSubmenuItems:v("tableinsertcolumnbefore tableinsertcolumnafter tabledeletecolumn | tablecutcolumn tablecopycolumn tablepastecolumnbefore tablepastecolumnafter")};e.ui.registry.addMenuItem("tablecellprops",{text:"Cell properties",icon:"table-cell-properties",onAction:i("mceTableCellProps"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tablemergecells",{text:"Merge cells",icon:"table-merge-cells",onAction:i("mceTableMergeCells"),onSetup:n.onSetupMergeable}),e.ui.registry.addMenuItem("tablesplitcells",{text:"Split cell",icon:"table-split-cells",onAction:i("mceTableSplitCells"),onSetup:n.onSetupUnmergeable});var c={type:"nestedmenuitem",text:"Cell",getSubmenuItems:v("tablecellprops tablemergecells tablesplitcells")};!1===Of(e)?e.ui.registry.addMenuItem("inserttable",{text:"Table",icon:"table",onAction:i("mceInsertTable")}):e.ui.registry.addNestedMenuItem("inserttable",{text:"Table",icon:"table",getSubmenuItems:function(){return[{type:"fancymenuitem",fancytype:"inserttable",onAction:o}]}}),e.ui.registry.addMenuItem("inserttabledialog",{text:"Insert table",icon:"table",onAction:i("mceInsertTable")}),e.ui.registry.addMenuItem("tableprops",a),e.ui.registry.addMenuItem("deletetable",s),e.ui.registry.addNestedMenuItem("row",l),e.ui.registry.addNestedMenuItem("column",u),e.ui.registry.addNestedMenuItem("cell",c),e.ui.registry.addContextMenu("table",{update:function(){return n.resetTargets(),n.targets().fold(v(""),(function(e){return"caption"===nn(e.element)?"tableprops deletetable":"cell row column | advtablesort | tableprops deletetable"}))}});var f=Sg(Nf(e));0!==f.length&&e.ui.registry.addNestedMenuItem("tableclass",{icon:"table-classes",text:"Table styles",getSubmenuItems:function(){return Cg(e,t,f,"tableclass",(function(t){return e.execCommand("mceTableToggleClass",!1,t)}))},onSetup:n.onSetupTable});var d=Sg(Ef(e));0!==d.length&&e.ui.registry.addNestedMenuItem("tablecellclass",{icon:"table-cell-classes",text:"Cell styles",getSubmenuItems:function(){return Cg(e,t,d,"tablecellclass",(function(t){return e.execCommand("mceTableCellToggleClass",!1,t)}))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addNestedMenuItem("tablecellvalign",{icon:"vertical-align",text:"Vertical align",getSubmenuItems:function(){return Cg(e,t,eg,"tablecellverticalalign",xg(e,"vertical-align"))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addNestedMenuItem("tablecellborderwidth",{icon:"border-width",text:"Border width",getSubmenuItems:function(){return Cg(e,t,vf(e),"tablecellborderwidth",xg(e,"border-width"))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addNestedMenuItem("tablecellborderstyle",{icon:"border-style",text:"Border style",getSubmenuItems:function(){return Cg(e,t,bf(e),"tablecellborderstyle",xg(e,"border-style"))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addToggleMenuItem("tablecaption",{icon:"table-caption",text:"Table caption",onAction:i("mceTableToggleCaption"),onSetup:n.onSetupTableWithCaption}),e.ui.registry.addNestedMenuItem("tablecellbackgroundcolor",{icon:"cell-background-color",text:"Background color",getSubmenuItems:function(){return Dg(e,Hf(e),"background-color")},onSetup:n.onSetupCellOrRow}),e.ui.registry.addNestedMenuItem("tablecellbordercolor",{icon:"cell-border-color",text:"Border color",getSubmenuItems:function(){return Dg(e,Uf(e),"border-color")},onSetup:n.onSetupCellOrRow}),e.ui.registry.addToggleMenuItem("tablerowheader",{text:"Row header",icon:"table-top-header",onAction:Og(e),onSetup:n.onSetupTableRowHeaders}),e.ui.registry.addToggleMenuItem("tablecolheader",{text:"Column header",icon:"table-left-header",onAction:Tg(e),onSetup:n.onSetupTableColumnHeaders})},w_=function(e){var t=vo((function(){return Ws(e)}),(function(){return Cl(tl(e),Ys(e))}),pl.selectedSelector),n=g_(e,t),r=od(e),i=p_(e,r.lazyResize,n),o=Cm(e,i,r.lazyWire),a=wv();return bv(e,o,i,t,a),yv(e,o,t),Tl(e,t,o),y_(e,t,n,a),v_(e,t,n,a),b_(e),e.on("PreInit",(function(){e.serializer.addTempAttr(pl.firstSelected),e.serializer.addTempAttr(pl.lastSelected),Sv(e)})),Cf(e)&&e.on("keydown",(function(t){oy(t,e,i)})),e.on("remove",(function(){r.destroy()})),zm(e,a,r,n)};function __(){bo.add("table",w_)}__()})()},9619:function(e,t,n){var r=n("597f"),i=n("0e15");e.exports={throttle:r,debounce:i}},"96cf":function(e,t,n){var r=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"===typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(P){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),s=new I(r||[]);return i(a,"_invoke",{value:D(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(P){return{type:"throw",arg:P}}}e.wrap=c;var d="suspendedStart",h="suspendedYield",p="executing",m="completed",g={};function v(){}function b(){}function y(){}var w={};u(w,a,(function(){return this}));var _=Object.getPrototypeOf,C=_&&_(_(N([])));C&&C!==n&&r.call(C,a)&&(w=C);var x=y.prototype=v.prototype=Object.create(w);function S(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(i,o,a,s){var l=f(e[i],e,o);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"===typeof c&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(c).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;function a(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return o=o?o.then(i,i):i()}i(this,"_invoke",{value:a})}function D(e,t,n){var r=d;return function(i,o){if(r===p)throw new Error("Generator is already running");if(r===m){if("throw"===i)throw o;return A()}n.method=i,n.arg=o;while(1){var a=n.delegate;if(a){var s=O(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var l=f(e,t,n);if("normal"===l.type){if(r=n.done?m:h,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=m,n.method="throw",n.arg=l.arg)}}}function O(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator["return"]&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=f(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(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 E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function N(e){if(null!=e){var n=e[a];if(n)return n.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){while(++i<e.length)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(typeof e+" is not iterable")}function A(){return{value:t,done:!0}}return b.prototype=y,i(x,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:b,configurable:!0}),b.displayName=u(y,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,l,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},S(k.prototype),u(k.prototype,s,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new k(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(x),u(x,l,"Generator"),u(x,a,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){while(n.length){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=N,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(E),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},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),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:N(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=r}catch(i){"object"===typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},9878:function(e,t,n){"use strict";var r=n("7163"),i=n("6833"),o=n("5134"),a=n("f0a7"),s=n("9cca");(function(){function e(){}e.prototype.write=function(t,n,s,l){if(void 0===l&&(l=null),0===t.length)throw new a["a"]("Found empty contents");if(n<0||s<0)throw new a["a"]("Requested dimensions are too small: "+n+"x"+s);var u=o["a"].L,c=e.QUIET_ZONE_SIZE;null!==l&&(void 0!==l.get(r["a"].ERROR_CORRECTION)&&(u=o["a"].fromString(l.get(r["a"].ERROR_CORRECTION).toString())),void 0!==l.get(r["a"].MARGIN)&&(c=Number.parseInt(l.get(r["a"].MARGIN).toString(),10)));var f=i["a"].encode(t,u,l);return this.renderResult(f,n,s,c)},e.prototype.writeToDom=function(e,t,n,r,i){void 0===i&&(i=null),"string"===typeof e&&(e=document.querySelector(e));var o=this.write(t,n,r,i);e&&e.appendChild(o)},e.prototype.renderResult=function(e,t,n,r){var i=e.getMatrix();if(null===i)throw new s["a"];for(var o=i.getWidth(),a=i.getHeight(),l=o+2*r,u=a+2*r,c=Math.max(t,l),f=Math.max(n,u),d=Math.min(Math.floor(c/l),Math.floor(f/u)),h=Math.floor((c-o*d)/2),p=Math.floor((f-a*d)/2),m=this.createSVGElement(c,f),g=0,v=p;g<a;g++,v+=d)for(var b=0,y=h;b<o;b++,y+=d)if(1===i.get(b,g)){var w=this.createSvgRectElement(y,v,d,d);m.appendChild(w)}return m},e.prototype.createSVGElement=function(t,n){var r=document.createElementNS(e.SVG_NS,"svg");return r.setAttributeNS(null,"height",t.toString()),r.setAttributeNS(null,"width",n.toString()),r},e.prototype.createSvgRectElement=function(t,n,r,i){var o=document.createElementNS(e.SVG_NS,"rect");return o.setAttributeNS(null,"x",t.toString()),o.setAttributeNS(null,"y",n.toString()),o.setAttributeNS(null,"height",r.toString()),o.setAttributeNS(null,"width",i.toString()),o.setAttributeNS(null,"fill","#000000"),o},e.QUIET_ZONE_SIZE=4,e.SVG_NS="http://www.w3.org/2000/svg"})()},"990b":function(e,t,n){var r=n("9093"),i=n("2621"),o=n("cb7c"),a=n("7726").Reflect;e.exports=a&&a.ownKeys||function(e){var t=r.f(o(e)),n=i.f;return n?t.concat(n(e)):t}},"99de":function(e,t,n){"use strict";var r=n("53ca");function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e,t){if(t&&("object"===Object(r["a"])(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)}n.d(t,"a",(function(){return o}))},"9aa9":function(e,t){t.f=Object.getOwnPropertySymbols},"9b43":function(e,t,n){var r=n("d8e8");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"9b99":function(e,t,n){"use strict";n("6339")},"9c59":function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;function i(e){for(var t,n=/([^=?&]+)=?([^&]*)/g,r={};t=n.exec(e);r[decodeURIComponent(t[1])]=decodeURIComponent(t[2]));return r}function o(e,t){t=t||"";var n=[];for(var i in"string"!==typeof t&&(t="?"),e)r.call(e,i)&&n.push(encodeURIComponent(i)+"="+encodeURIComponent(e[i]));return n.length?t+n.join("&"):""}t.stringify=o,t.parse=i},"9c6c":function(e,t,n){var r=n("2b4c")("unscopables"),i=Array.prototype;void 0==i[r]&&n("32e9")(i,r,{}),e.exports=function(e){i[r][e]=!0}},"9c80":function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(t){return{e:!0,v:t}}}},"9cca":function(e,t,n){"use strict";var r=n("d0b6"),i=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.kind="IllegalStateException",t}(r["a"]);t["a"]=o},"9d99":function(e,t,n){},"9dcc":function(e,t,n){"use strict";var r=n("d0b6"),i=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.kind="IndexOutOfBoundsException",t}(r["a"]);t["a"]=o},"9def":function(e,t,n){var r=n("4588"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},"9e1c":function(e,t,n){n("7d6d"),e.exports=n("584a").Object.values},"9e1e":function(e,t,n){e.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"9ed7":function(e,t,n){},"9fa8":function(e,t,n){"use strict";var r=n("f505"),i=n("ee54"),o=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(e){function t(t){return void 0===t&&(t=500),e.call(this,new i["a"],t)||this}o(t,e)})(r["a"])},a0cf:function(e,t,n){"use strict";var r=function(){function e(e,t,n,r,i,o,a,s,l){this.a11=e,this.a21=t,this.a31=n,this.a12=r,this.a22=i,this.a32=o,this.a13=a,this.a23=s,this.a33=l}return e.quadrilateralToQuadrilateral=function(t,n,r,i,o,a,s,l,u,c,f,d,h,p,m,g){var v=e.quadrilateralToSquare(t,n,r,i,o,a,s,l),b=e.squareToQuadrilateral(u,c,f,d,h,p,m,g);return b.times(v)},e.prototype.transformPoints=function(e){for(var t=e.length,n=this.a11,r=this.a12,i=this.a13,o=this.a21,a=this.a22,s=this.a23,l=this.a31,u=this.a32,c=this.a33,f=0;f<t;f+=2){var d=e[f],h=e[f+1],p=i*d+s*h+c;e[f]=(n*d+o*h+l)/p,e[f+1]=(r*d+a*h+u)/p}},e.prototype.transformPointsWithValues=function(e,t){for(var n=this.a11,r=this.a12,i=this.a13,o=this.a21,a=this.a22,s=this.a23,l=this.a31,u=this.a32,c=this.a33,f=e.length,d=0;d<f;d++){var h=e[d],p=t[d],m=i*h+s*p+c;e[d]=(n*h+o*p+l)/m,t[d]=(r*h+a*p+u)/m}},e.squareToQuadrilateral=function(t,n,r,i,o,a,s,l){var u=t-r+o-s,c=n-i+a-l;if(0===u&&0===c)return new e(r-t,o-r,t,i-n,a-i,n,0,0,1);var f=r-o,d=s-o,h=i-a,p=l-a,m=f*p-d*h,g=(u*p-d*c)/m,v=(f*c-u*h)/m;return new e(r-t+g*r,s-t+v*s,t,i-n+g*i,l-n+v*l,n,g,v,1)},e.quadrilateralToSquare=function(t,n,r,i,o,a,s,l){return e.squareToQuadrilateral(t,n,r,i,o,a,s,l).buildAdjoint()},e.prototype.buildAdjoint=function(){return new e(this.a22*this.a33-this.a23*this.a32,this.a23*this.a31-this.a21*this.a33,this.a21*this.a32-this.a22*this.a31,this.a13*this.a32-this.a12*this.a33,this.a11*this.a33-this.a13*this.a31,this.a12*this.a31-this.a11*this.a32,this.a12*this.a23-this.a13*this.a22,this.a13*this.a21-this.a11*this.a23,this.a11*this.a22-this.a12*this.a21)},e.prototype.times=function(t){return new e(this.a11*t.a11+this.a21*t.a12+this.a31*t.a13,this.a11*t.a21+this.a21*t.a22+this.a31*t.a23,this.a11*t.a31+this.a21*t.a32+this.a31*t.a33,this.a12*t.a11+this.a22*t.a12+this.a32*t.a13,this.a12*t.a21+this.a22*t.a22+this.a32*t.a23,this.a12*t.a31+this.a22*t.a32+this.a32*t.a33,this.a13*t.a11+this.a23*t.a12+this.a33*t.a13,this.a13*t.a21+this.a23*t.a22+this.a33*t.a23,this.a13*t.a31+this.a23*t.a32+this.a33*t.a33)},e}();t["a"]=r},a159:function(e,t,n){var r=n("e4ae"),i=n("7e90"),o=n("1691"),a=n("5559")("IE_PROTO"),s=function(){},l="prototype",u=function(){var e,t=n("1ec9")("iframe"),r=o.length,i="<",a=">";t.style.display="none",n("32fc").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+a+"document.F=Object"+i+"/script"+a),e.close(),u=e.F;while(r--)delete u[l][o[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[l]=r(e),n=new s,s[l]=null,n[a]=e):n=u(),void 0===t?n:i(n,t)}},a15e:function(e,t,n){"use strict";n.r(t);var r=n("41b2"),i=n.n(r),o=n("1098"),a=n.n(o),s=/%[sdj%]/g,l=function(){};function u(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=1,i=t[0],o=t.length;if("function"===typeof i)return i.apply(null,t.slice(1));if("string"===typeof i){for(var a=String(i).replace(s,(function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(n){return"[Circular]"}break;default:return e}})),l=t[r];r<o;l=t[++r])a+=" "+l;return a}return i}function c(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"pattern"===e}function f(e,t){return void 0===e||null===e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!c(t)||"string"!==typeof e||e))}function d(e,t,n){var r=[],i=0,o=e.length;function a(e){r.push.apply(r,e),i++,i===o&&n(r)}e.forEach((function(e){t(e,a)}))}function h(e,t,n){var r=0,i=e.length;function o(a){if(a&&a.length)n(a);else{var s=r;r+=1,s<i?t(e[s],o):n([])}}o([])}function p(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n])})),t}function m(e,t,n,r){if(t.first){var i=p(e);return h(i,n,r)}var o=t.firstFields||[];!0===o&&(o=Object.keys(e));var a=Object.keys(e),s=a.length,l=0,u=[],c=function(e){u.push.apply(u,e),l++,l===s&&r(u)};a.forEach((function(t){var r=e[t];-1!==o.indexOf(t)?h(r,n,c):d(r,n,c)}))}function g(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:t,field:t.field||e.fullField}}}function v(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===("undefined"===typeof r?"undefined":a()(r))&&"object"===a()(e[n])?e[n]=i()({},e[n],r):e[n]=r}return e}function b(e,t,n,r,i,o){!e.required||n.hasOwnProperty(e.field)&&!f(t,o||e.type)||r.push(u(i.messages.required,e.fullField))}var y=b;function w(e,t,n,r,i){(/^\s+$/.test(t)||""===t)&&r.push(u(i.messages.whitespace,e.fullField))}var _=w,C={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},x={integer:function(e){return x.number(e)&&parseInt(e,10)===e},float:function(e){return x.number(e)&&!x.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear},number:function(e){return!isNaN(e)&&"number"===typeof e},object:function(e){return"object"===("undefined"===typeof e?"undefined":a()(e))&&!x.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&!!e.match(C.email)&&e.length<255},url:function(e){return"string"===typeof e&&!!e.match(C.url)},hex:function(e){return"string"===typeof e&&!!e.match(C.hex)}};function S(e,t,n,r,i){if(e.required&&void 0===t)y(e,t,n,r,i);else{var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=e.type;o.indexOf(s)>-1?x[s](t)||r.push(u(i.messages.types[s],e.fullField,e.type)):s&&("undefined"===typeof t?"undefined":a()(t))!==e.type&&r.push(u(i.messages.types[s],e.fullField,e.type))}}var k=S;function D(e,t,n,r,i){var o="number"===typeof e.len,a="number"===typeof e.min,s="number"===typeof e.max,l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=t,f=null,d="number"===typeof t,h="string"===typeof t,p=Array.isArray(t);if(d?f="number":h?f="string":p&&(f="array"),!f)return!1;p&&(c=t.length),h&&(c=t.replace(l,"_").length),o?c!==e.len&&r.push(u(i.messages[f].len,e.fullField,e.len)):a&&!s&&c<e.min?r.push(u(i.messages[f].min,e.fullField,e.min)):s&&!a&&c>e.max?r.push(u(i.messages[f].max,e.fullField,e.max)):a&&s&&(c<e.min||c>e.max)&&r.push(u(i.messages[f].range,e.fullField,e.min,e.max))}var O=D,T="enum";function E(e,t,n,r,i){e[T]=Array.isArray(e[T])?e[T]:[],-1===e[T].indexOf(t)&&r.push(u(i.messages[T],e.fullField,e[T].join(", ")))}var I=E;function N(e,t,n,r,i){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(u(i.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){var o=new RegExp(e.pattern);o.test(t)||r.push(u(i.messages.pattern.mismatch,e.fullField,t,e.pattern))}}var A=N,P={required:y,whitespace:_,type:k,range:O,enum:I,pattern:A};function M(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t,"string")&&!e.required)return n();P.required(e,t,r,o,i,"string"),f(t,"string")||(P.type(e,t,r,o,i),P.range(e,t,r,o,i),P.pattern(e,t,r,o,i),!0===e.whitespace&&P.whitespace(e,t,r,o,i))}n(o)}var R=M;function F(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();P.required(e,t,r,o,i),void 0!==t&&P.type(e,t,r,o,i)}n(o)}var B=F;function L(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();P.required(e,t,r,o,i),void 0!==t&&(P.type(e,t,r,o,i),P.range(e,t,r,o,i))}n(o)}var $=L;function V(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();P.required(e,t,r,o,i),void 0!==t&&P.type(e,t,r,o,i)}n(o)}var j=V;function z(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();P.required(e,t,r,o,i),f(t)||P.type(e,t,r,o,i)}n(o)}var H=z;function U(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();P.required(e,t,r,o,i),void 0!==t&&(P.type(e,t,r,o,i),P.range(e,t,r,o,i))}n(o)}var W=U;function q(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();P.required(e,t,r,o,i),void 0!==t&&(P.type(e,t,r,o,i),P.range(e,t,r,o,i))}n(o)}var G=q;function Y(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t,"array")&&!e.required)return n();P.required(e,t,r,o,i,"array"),f(t,"array")||(P.type(e,t,r,o,i),P.range(e,t,r,o,i))}n(o)}var K=Y;function X(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();P.required(e,t,r,o,i),void 0!==t&&P.type(e,t,r,o,i)}n(o)}var J=X,Z="enum";function Q(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();P.required(e,t,r,o,i),t&&P[Z](e,t,r,o,i)}n(o)}var ee=Q;function te(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t,"string")&&!e.required)return n();P.required(e,t,r,o,i),f(t,"string")||P.pattern(e,t,r,o,i)}n(o)}var ne=te;function re(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();if(P.required(e,t,r,o,i),!f(t)){var s=void 0;s="number"===typeof t?new Date(t):t,P.type(e,s,r,o,i),s&&P.range(e,s.getTime(),r,o,i)}}n(o)}var ie=re;function oe(e,t,n,r,i){var o=[],s=Array.isArray(t)?"array":"undefined"===typeof t?"undefined":a()(t);P.required(e,t,r,o,i,s),n(o)}var ae=oe;function se(e,t,n,r,i){var o=e.type,a=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(f(t,o)&&!e.required)return n();P.required(e,t,r,a,i,o),f(t,o)||P.type(e,t,r,a,i)}n(a)}var le=se,ue={string:R,method:B,number:$,boolean:j,regexp:H,integer:W,float:G,array:K,object:J,enum:ee,pattern:ne,date:ie,url:le,hex:le,email:le,required:ae};function ce(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var fe=ce();function de(e){this.rules=null,this._messages=fe,this.define(e)}de.prototype={messages:function(e){return e&&(this._messages=v(ce(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==("undefined"===typeof e?"undefined":a()(e))||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var t=void 0,n=void 0;for(t in e)e.hasOwnProperty(t)&&(n=e[t],this.rules[t]=Array.isArray(n)?n:[n])},validate:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments[2],o=e,s=n,c=r;if("function"===typeof s&&(c=s,s={}),this.rules&&0!==Object.keys(this.rules).length){if(s.messages){var f=this.messages();f===fe&&(f=ce()),v(f,s.messages),s.messages=f}else s.messages=this.messages();var d=void 0,h=void 0,p={},b=s.keys||Object.keys(this.rules);b.forEach((function(n){d=t.rules[n],h=o[n],d.forEach((function(r){var a=r;"function"===typeof a.transform&&(o===e&&(o=i()({},o)),h=o[n]=a.transform(h)),a="function"===typeof a?{validator:a}:i()({},a),a.validator=t.getValidationMethod(a),a.field=n,a.fullField=a.fullField||n,a.type=t.getType(a),a.validator&&(p[n]=p[n]||[],p[n].push({rule:a,value:h,source:o,field:n}))}))}));var y={};m(p,s,(function(e,t){var n=e.rule,r=("object"===n.type||"array"===n.type)&&("object"===a()(n.fields)||"object"===a()(n.defaultField));function o(e,t){return i()({},t,{fullField:n.fullField+"."+e})}function c(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],c=a;if(Array.isArray(c)||(c=[c]),c.length&&l("async-validator:",c),c.length&&n.message&&(c=[].concat(n.message)),c=c.map(g(n)),s.first&&c.length)return y[n.field]=1,t(c);if(r){if(n.required&&!e.value)return c=n.message?[].concat(n.message).map(g(n)):s.error?[s.error(n,u(s.messages.required,n.field))]:[],t(c);var f={};if(n.defaultField)for(var d in e.value)e.value.hasOwnProperty(d)&&(f[d]=n.defaultField);for(var h in f=i()({},f,e.rule.fields),f)if(f.hasOwnProperty(h)){var p=Array.isArray(f[h])?f[h]:[f[h]];f[h]=p.map(o.bind(null,h))}var m=new de(f);m.messages(s.messages),e.rule.options&&(e.rule.options.messages=s.messages,e.rule.options.error=s.error),m.validate(e.value,e.rule.options||s,(function(e){t(e&&e.length?c.concat(e):e)}))}else t(c)}r=r&&(n.required||!n.required&&e.value),n.field=e.field;var f=n.validator(n,e.value,c,e.source,s);f&&f.then&&f.then((function(){return c()}),(function(e){return c(e)}))}),(function(e){w(e)}))}else c&&c();function w(e){var t=void 0,n=void 0,r=[],i={};function o(e){Array.isArray(e)?r=r.concat.apply(r,e):r.push(e)}for(t=0;t<e.length;t++)o(e[t]);if(r.length)for(t=0;t<r.length;t++)n=r[t].field,i[n]=i[n]||[],i[n].push(r[t]);else r=null,i=null;c(r,i)}},getType:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!==typeof e.validator&&e.type&&!ue.hasOwnProperty(e.type))throw new Error(u("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if("function"===typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?ue.required:ue[this.getType(e)]||!1}},de.register=function(e,t){if("function"!==typeof t)throw new Error("Cannot register a validator by type, validator is not a function");ue[e]=t},de.messages=fe;t["default"]=de},a1ce:function(e,t,n){var r=n("63b6"),i=n("25eb"),o=n("294c"),a=n("e692"),s="["+a+"]",l="
",u=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),f=function(e,t,n){var i={},s=o((function(){return!!a[e]()||l[e]()!=l})),u=i[e]=s?t(d):a[e];n&&(i[n]=u),r(r.P+r.F*s,"String",i)},d=f.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(u,"")),2&t&&(e=e.replace(c,"")),e};e.exports=f},a21f:function(e,t,n){var r=n("584a"),i=r.JSON||(r.JSON={stringify:JSON.stringify});e.exports=function(e){return i.stringify.apply(i,arguments)}},a22a:function(e,t,n){var r=n("d864"),i=n("b0dc"),o=n("3702"),a=n("e4ae"),s=n("b447"),l=n("7cd6"),u={},c={};t=e.exports=function(e,t,n,f,d){var h,p,m,g,v=d?function(){return e}:l(e),b=r(n,f,t?2:1),y=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(o(v)){for(h=s(e.length);h>y;y++)if(g=t?b(a(p=e[y])[0],p[1]):b(e[y]),g===u||g===c)return g}else for(m=v.call(e);!(p=m.next()).done;)if(g=i(m,b,p.value,t),g===u||g===c)return g};t.BREAK=u,t.RETURN=c},a25f:function(e,t,n){var r=n("7726"),i=r.navigator;e.exports=i&&i.userAgent||""},a363:function(e,t,n){"use strict";var r;(function(e){e[e["AZTEC"]=0]="AZTEC",e[e["CODABAR"]=1]="CODABAR",e[e["CODE_39"]=2]="CODE_39",e[e["CODE_93"]=3]="CODE_93",e[e["CODE_128"]=4]="CODE_128",e[e["DATA_MATRIX"]=5]="DATA_MATRIX",e[e["EAN_8"]=6]="EAN_8",e[e["EAN_13"]=7]="EAN_13",e[e["ITF"]=8]="ITF",e[e["MAXICODE"]=9]="MAXICODE",e[e["PDF_417"]=10]="PDF_417",e[e["QR_CODE"]=11]="QR_CODE",e[e["RSS_14"]=12]="RSS_14",e[e["RSS_EXPANDED"]=13]="RSS_EXPANDED",e[e["UPC_A"]=14]="UPC_A",e[e["UPC_E"]=15]="UPC_E",e[e["UPC_EAN_EXTENSION"]=16]="UPC_EAN_EXTENSION"})(r||(r={})),t["a"]=r},a38e:function(e,t,n){"use strict";var r=n("53ca");function i(e,t){if("object"!=Object(r["a"])(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Object(r["a"])(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function o(e){var t=i(e,"string");return"symbol"==Object(r["a"])(t)?t:t+""}n.d(t,"a",(function(){return o}))},a3c3:function(e,t,n){var r=n("63b6");r(r.S+r.F,"Object",{assign:n("9306")})},a3de:function(e,t,n){"use strict";var r=!("undefined"===typeof window||!window.document||!window.document.createElement),i={canUseDOM:r,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};e.exports=i},a481:function(e,t,n){"use strict";var r=n("cb7c"),i=n("4bf8"),o=n("9def"),a=n("4588"),s=n("0390"),l=n("5f1b"),u=Math.max,c=Math.min,f=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,h=/\$([$&`']|\d\d?)/g,p=function(e){return void 0===e?e:String(e)};n("214f")("replace",2,(function(e,t,n,m){return[function(r,i){var o=e(this),a=void 0==r?void 0:r[t];return void 0!==a?a.call(r,o,i):n.call(String(o),r,i)},function(e,t){var i=m(n,e,this,t);if(i.done)return i.value;var f=r(e),d=String(this),h="function"===typeof t;h||(t=String(t));var v=f.global;if(v){var b=f.unicode;f.lastIndex=0}var y=[];while(1){var w=l(f,d);if(null===w)break;if(y.push(w),!v)break;var _=String(w[0]);""===_&&(f.lastIndex=s(d,o(f.lastIndex),b))}for(var C="",x=0,S=0;S<y.length;S++){w=y[S];for(var k=String(w[0]),D=u(c(a(w.index),d.length),0),O=[],T=1;T<w.length;T++)O.push(p(w[T]));var E=w.groups;if(h){var I=[k].concat(O,D,d);void 0!==E&&I.push(E);var N=String(t.apply(void 0,I))}else N=g(k,d,D,O,E,t);D>=x&&(C+=d.slice(x,D)+N,x=D+k.length)}return C+d.slice(x)}];function g(e,t,r,o,a,s){var l=r+e.length,u=o.length,c=h;return void 0!==a&&(a=i(a),c=d),n.call(s,c,(function(n,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(l);case"<":s=a[i.slice(1,-1)];break;default:var c=+i;if(0===c)return n;if(c>u){var d=f(c/10);return 0===d?n:d<=u?void 0===o[d-1]?i.charAt(1):o[d-1]+i.charAt(1):n}s=o[c-1]}return void 0===s?"":s}))}}))},a593:function(e,t,n){"use strict";var r=function(){function e(){this.segmentCount=-1,this.fileSize=-1,this.timestamp=-1,this.checksum=-1}return e.prototype.getSegmentIndex=function(){return this.segmentIndex},e.prototype.setSegmentIndex=function(e){this.segmentIndex=e},e.prototype.getFileId=function(){return this.fileId},e.prototype.setFileId=function(e){this.fileId=e},e.prototype.getOptionalData=function(){return this.optionalData},e.prototype.setOptionalData=function(e){this.optionalData=e},e.prototype.isLastSegment=function(){return this.lastSegment},e.prototype.setLastSegment=function(e){this.lastSegment=e},e.prototype.getSegmentCount=function(){return this.segmentCount},e.prototype.setSegmentCount=function(e){this.segmentCount=e},e.prototype.getSender=function(){return this.sender||null},e.prototype.setSender=function(e){this.sender=e},e.prototype.getAddressee=function(){return this.addressee||null},e.prototype.setAddressee=function(e){this.addressee=e},e.prototype.getFileName=function(){return this.fileName},e.prototype.setFileName=function(e){this.fileName=e},e.prototype.getFileSize=function(){return this.fileSize},e.prototype.setFileSize=function(e){this.fileSize=e},e.prototype.getChecksum=function(){return this.checksum},e.prototype.setChecksum=function(e){this.checksum=e},e.prototype.getTimestamp=function(){return this.timestamp},e.prototype.setTimestamp=function(e){this.timestamp=e},e}();t["a"]=r},a5b8:function(e,t,n){"use strict";var r=n("d8e8");function i(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)}e.exports.f=function(e){return new i(e)}},a5cb:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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="/dist/",n(n.s=76)}({1:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var l,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},11:function(e,t){e.exports=n("5ea8")},14:function(e,t){e.exports=n("2ffe")},18:function(e,t){e.exports=n("41b2")},22:function(e,t){e.exports=n("cda1")},25:function(e,t){e.exports=n("8827")},26:function(e,t){e.exports=n("6864")},3:function(e,t){e.exports=n("bf32")},34:function(e,t){e.exports=n("92fa")},37:function(e,t){e.exports=n("e5da")},46:function(e,t){e.exports=n("57ba")},47:function(e,t){e.exports=n("d192")},5:function(e,t){e.exports=n("87ec")},66:function(e,t){e.exports=n("d03f")},67:function(e,t){e.exports=n("89c1")},76:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{class:["el-cascader-panel",this.border&&"is-bordered",this.size&&"el-cascader-panel--"+this.size],on:{keydown:this.handleKeyDown}},this._l(this.menus,(function(e,n){return t("cascader-menu",{key:n,ref:"menu",refInFor:!0,attrs:{index:n,nodes:e}})})),1)};r._withStripped=!0;var i=n(18),o=n.n(i),a=n(34),s=n.n(a),l=n(14),u=n.n(l),c=n(22),f=n.n(c),d=n(66),h=n.n(d),p=n(3),m=function(e){return e.stopPropagation()},g={inject:["panel"],components:{ElCheckbox:f.a,ElRadio:h.a},props:{node:{required:!0},nodeId:String},computed:{config:function(){return this.panel.config},isLeaf:function(){return this.node.isLeaf},isDisabled:function(){return this.node.isDisabled},checkedValue:function(){return this.panel.checkedValue},isChecked:function(){return this.node.isSameNode(this.checkedValue)},inActivePath:function(){return this.isInPath(this.panel.activePath)},inCheckedPath:function(){var e=this;return!!this.config.checkStrictly&&this.panel.checkedNodePaths.some((function(t){return e.isInPath(t)}))},value:function(){return this.node.getValueByOption()}},methods:{handleExpand:function(){var e=this,t=this.panel,n=this.node,r=this.isDisabled,i=this.config,o=i.multiple;!i.checkStrictly&&r||n.loading||(i.lazy&&!n.loaded?t.lazyLoad(n,(function(){var t=e.isLeaf;if(t||e.handleExpand(),o){var r=!!t&&n.checked;e.handleMultiCheckChange(r)}})):t.handleExpand(n))},handleCheckChange:function(){var e=this.panel,t=this.value,n=this.node;e.handleCheckChange(t),e.handleExpand(n)},handleMultiCheckChange:function(e){this.node.doCheck(e),this.panel.calculateMultiCheckedValue()},isInPath:function(e){var t=this.node;return(e[t.level-1]||{}).uid===t.uid},renderPrefix:function(e){var t=this.isLeaf,n=this.isChecked,r=this.config,i=r.checkStrictly;return r.multiple?this.renderCheckbox(e):i?this.renderRadio(e):t&&n?this.renderCheckIcon(e):null},renderPostfix:function(e){var t=this.node,n=this.isLeaf;return t.loading?this.renderLoadingIcon(e):n?null:this.renderExpandIcon(e)},renderCheckbox:function(){var e=this.$createElement,t=this.node,n=this.config,r=this.isDisabled,i={on:{change:this.handleMultiCheckChange},nativeOn:{}};return n.checkStrictly&&(i.nativeOn.click=m),e("el-checkbox",s()([{attrs:{value:t.checked,indeterminate:t.indeterminate,disabled:r}},i]))},renderRadio:function(){var e=this.$createElement,t=this.checkedValue,n=this.isDisabled,r=this.value;return Object(p.isEqual)(r,t)&&(r=t),e("el-radio",{attrs:{value:t,label:r,disabled:n},on:{change:this.handleCheckChange},nativeOn:{click:m}},[e("span")])},renderCheckIcon:function(){return(0,this.$createElement)("i",{class:"el-icon-check el-cascader-node__prefix"})},renderLoadingIcon:function(){return(0,this.$createElement)("i",{class:"el-icon-loading el-cascader-node__postfix"})},renderExpandIcon:function(){return(0,this.$createElement)("i",{class:"el-icon-arrow-right el-cascader-node__postfix"})},renderContent:function(){var e=this.$createElement,t=this.panel,n=this.node,r=t.renderLabelFn;return e("span",{class:"el-cascader-node__label"},[(r?r({node:n,data:n.data}):null)||n.label])}},render:function(e){var t=this,n=this.inActivePath,r=this.inCheckedPath,i=this.isChecked,o=this.isLeaf,a=this.isDisabled,l=this.config,u=this.nodeId,c=l.expandTrigger,f=l.checkStrictly,d=l.multiple,h=!f&&a,p={on:{}};return"click"===c?p.on.click=this.handleExpand:(p.on.mouseenter=function(e){t.handleExpand(),t.$emit("expand",e)},p.on.focus=function(e){t.handleExpand(),t.$emit("expand",e)}),!o||a||f||d||(p.on.click=this.handleCheckChange),e("li",s()([{attrs:{role:"menuitem",id:u,"aria-expanded":n,tabindex:h?null:-1},class:{"el-cascader-node":!0,"is-selectable":f,"in-active-path":n,"in-checked-path":r,"is-active":i,"is-disabled":h}},p]),[this.renderPrefix(e),this.renderContent(e),this.renderPostfix(e)])}},v=n(1),b=Object(v.a)(g,void 0,void 0,!1,null,null,null);b.options.__file="packages/cascader-panel/src/cascader-node.vue";var y=b.exports,w=n(5),_=n.n(w),C={name:"ElCascaderVirtualScrollItem",components:{CascaderNode:y},props:{index:{type:Number},source:{type:Object,default:function(){return{}}},menuId:{type:String,default:function(){return""}}},render:function(){var e=arguments[0],t=this.source,n=this.menuId,r=this.index;return e("cascader-node",{key:t.id,attrs:{node:t,"node-id":n+"-"+r,"aria-haspopup":t.hasChildren,"aria-owns":t.hasChildren?n:null}})}},x=Object(v.a)(C,void 0,void 0,!1,null,null,null);x.options.__file="packages/cascader-panel/src/cascader-virtual-scroll-item.vue";var S=x.exports,k=n(67),D=n.n(k),O={name:"ElCascaderMenu",mixins:[_.a],inject:["panel"],components:{ElScrollbar:u.a,CascaderNode:y,"virtual-list":D.a},props:{nodes:{type:Array,required:!0},index:Number},data:function(){return{activeNode:null,hoverTimer:null,id:Object(p.generateId)(),virtualListProps:{}}},computed:{isEmpty:function(){return!this.nodes.length},menuId:function(){return"cascader-menu-"+this.id+"-"+this.index}},methods:{handleExpand:function(e){this.activeNode=e.target},handleMouseMove:function(e){var t=this.activeNode,n=this.hoverTimer,r=this.$refs.hoverZone;if(t&&r)if(t.contains(e.target)){clearTimeout(n);var i=this.$el.getBoundingClientRect().left,o=e.clientX-i,a=this.$el,s=a.offsetWidth,l=a.offsetHeight,u=t.offsetTop,c=u+t.offsetHeight;r.innerHTML='\n <path style="pointer-events: auto;" fill="transparent" d="M'+o+" "+u+" L"+s+" 0 V"+u+' Z" />\n <path style="pointer-events: auto;" fill="transparent" d="M'+o+" "+c+" L"+s+" "+l+" V"+c+' Z" />\n '}else n||(this.hoverTimer=setTimeout(this.clearHoverZone,this.panel.config.hoverThreshold))},clearHoverZone:function(){var e=this.$refs.hoverZone;e&&(e.innerHTML="")},renderEmptyText:function(){return(0,this.$createElement)("div",{class:"el-cascader-menu__empty-text"},[this.t("el.cascader.noData")])},renderNodeList:function(){var e=this.$createElement,t=this.menuId,n=this.nodes,r=this.panel,i=r.isHoverMenu,o=r.config,a={on:{}};i&&(a.on.expand=this.handleExpand),this.virtualListProps.menuId=t;var l=this.nodes.map((function(n,r){var i=n.hasChildren;return e("cascader-node",s()([{key:n.uid,attrs:{node:n,"node-id":t+"-"+r,"aria-haspopup":i,"aria-owns":i?t:null}},a]))}));return[o.virtualScroll?e("virtual-list",{ref:"virtualList",class:"el-cascader-menu__virtual-list",attrs:{"data-key":"uid","data-sources":n,"extra-props":this.virtualListProps,"data-component":S}}):[].concat(l),i?e("svg",{ref:"hoverZone",class:"el-cascader-menu__hover-zone"}):null]}},render:function(e){var t=this.isEmpty,n=this.menuId,r=this.panel.config,i={nativeOn:{}};return this.panel.isHoverMenu&&(i.nativeOn.mousemove=this.handleMouseMove),r.virtualScroll?e("div",{class:"el-cascader-menu"},[t?this.renderEmptyText():this.renderNodeList(e)]):e("el-scrollbar",s()([{attrs:{tag:"ul",role:"menu",id:n,"wrap-class":"el-cascader-menu__wrap","view-class":{"el-cascader-menu__list":!0,"is-empty":t}},class:"el-cascader-menu"},i]),[t?this.renderEmptyText(e):this.renderNodeList(e)])}},T=Object(v.a)(O,void 0,void 0,!1,null,null,null);T.options.__file="packages/cascader-panel/src/cascader-menu.vue";var E=T.exports,I=n(25),N=n.n(I),A=n(46),P=n.n(A),M=n(26),R=0,F=function(){function e(t,n,r){N()(this,e),this.data=t,this.config=n,this.parent=r||null,this.level=this.parent?this.parent.level+1:1,this.uid=R++,this.initState(),this.initChildren()}return e.prototype.initState=function(){var e=this.config,t=e.value,n=e.label;this.value=this.data[t],this.label=this.data[n],this.pathNodes=this.calculatePathNodes(),this.path=this.pathNodes.map((function(e){return e.value})),this.pathLabels=this.pathNodes.map((function(e){return e.label})),this.loading=!1,this.loaded=!1},e.prototype.initChildren=function(){var t=this,n=this.config,r=n.children,i=this.data[r];this.hasChildren=Array.isArray(i),this.children=(i||[]).map((function(r){return new e(r,n,t)}))},e.prototype.calculatePathNodes=function(){for(var e=[this],t=this.parent;t;)e.unshift(t),t=t.parent;return e},e.prototype.getPath=function(){return this.path},e.prototype.getValue=function(){return this.value},e.prototype.getValueByOption=function(){return this.config.emitPath?this.getPath():this.getValue()},e.prototype.getText=function(e,t){return e?this.pathLabels.join(t):this.label},e.prototype.isSameNode=function(e){var t=this.getValueByOption();return this.config.multiple&&Array.isArray(e)?e.some((function(e){return Object(p.isEqual)(e,t)})):Object(p.isEqual)(e,t)},e.prototype.broadcast=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i="onParent"+Object(p.capitalize)(e);this.children.forEach((function(t){t&&(t.broadcast.apply(t,[e].concat(n)),t[i]&&t[i].apply(t,n))}))},e.prototype.emit=function(e){var t=this.parent,n="onChild"+Object(p.capitalize)(e);if(t){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];t[n]&&t[n].apply(t,i),t.emit.apply(t,[e].concat(i))}},e.prototype.onParentCheck=function(e){this.isDisabled||this.setCheckState(e)},e.prototype.onChildCheck=function(){var e=this.children.filter((function(e){return!e.isDisabled})),t=!!e.length&&e.every((function(e){return e.checked}));this.setCheckState(t)},e.prototype.setCheckState=function(e){var t=this.children.length,n=this.children.reduce((function(e,t){return e+(t.checked?1:t.indeterminate?.5:0)}),0);this.checked=e,this.indeterminate=n!==t&&n>0},e.prototype.syncCheckState=function(e){var t=this.getValueByOption(),n=this.isSameNode(e,t);this.doCheck(n)},e.prototype.doCheck=function(e){this.checked!==e&&(this.config.checkStrictly?this.checked=e:(this.broadcast("check",e),this.setCheckState(e),this.emit("check")))},P()(e,[{key:"isDisabled",get:function(){var e=this.data,t=this.parent,n=this.config,r=n.disabled,i=n.checkStrictly;return e[r]||!i&&t&&t.isDisabled}},{key:"isLeaf",get:function(){var e=this.data,t=this.loaded,n=this.hasChildren,r=this.children,i=this.config,o=i.lazy,a=i.leaf;if(o){var s=Object(M.isDef)(e[a])?e[a]:!!t&&!r.length;return this.hasChildren=!s,s}return!n}}]),e}(),B=function e(t,n){return t.reduce((function(t,r){return r.isLeaf?t.push(r):(!n&&t.push(r),t=t.concat(e(r.children,n))),t}),[])},L=function(){function e(t,n){N()(this,e),this.config=n,this.initNodes(t)}return e.prototype.initNodes=function(e){var t=this;e=Object(p.coerceTruthyValueToArray)(e),this.nodes=e.map((function(e){return new F(e,t.config)})),this.flattedNodes=this.getFlattedNodes(!1,!1),this.leafNodes=this.getFlattedNodes(!0,!1)},e.prototype.appendNode=function(e,t){var n=new F(e,this.config,t);(t?t.children:this.nodes).push(n)},e.prototype.appendNodes=function(e,t){var n=this;(e=Object(p.coerceTruthyValueToArray)(e)).forEach((function(e){return n.appendNode(e,t)}))},e.prototype.getNodes=function(){return this.nodes},e.prototype.getFlattedNodes=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e?this.leafNodes:this.flattedNodes;return t?n:B(this.nodes,e)},e.prototype.getNodeByValue=function(e){var t=this.getFlattedNodes(!1,!this.config.lazy).filter((function(t){return Object(p.valueEquals)(t.path,e)||t.value===e}));return t&&t.length?t[0]:null},e}(),$=n(11),V=n.n($),j=n(47),z=n.n(j),H=n(37),U=n.n(H),W=z.a.keys,q={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:p.noop,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},G=function(e){return!e.getAttribute("aria-owns")},Y=function(e,t){var n=e.parentNode;if(n){var r=n.querySelectorAll('.el-cascader-node[tabindex="-1"]');return r[Array.prototype.indexOf.call(r,e)+t]||null}return null},K=function(e){if(e){var t=e.id.split("-");return Number(t[t.length-2])}},X=function(e){e&&(e.focus(),!G(e)&&e.click())},J={name:"ElCascaderPanel",components:{CascaderMenu:E},props:{value:{},options:Array,props:Object,border:{type:Boolean,default:!0},renderLabel:Function,size:String},provide:function(){return{panel:this}},data:function(){return{checkedValue:null,checkedNodePaths:[],store:[],menus:[],activePath:[],loadCount:0}},computed:{config:function(){return V()(o()({},q),this.props||{})},multiple:function(){return this.config.multiple},checkStrictly:function(){return this.config.checkStrictly},leafOnly:function(){return!this.checkStrictly},isHoverMenu:function(){return"hover"===this.config.expandTrigger},renderLabelFn:function(){return this.renderLabel||this.$scopedSlots.default}},watch:{options:{handler:function(){this.initStore()},immediate:!0,deep:!0},value:function(){this.syncCheckedValue(),this.checkStrictly&&this.calculateCheckedNodePaths()},checkedValue:function(e){Object(p.isEqual)(e,this.value)||(this.checkStrictly&&this.calculateCheckedNodePaths(),this.$emit("input",e),this.$emit("change",e))}},mounted:function(){this.isEmptyValue(this.value)||this.syncCheckedValue()},methods:{initStore:function(){var e=this.config,t=this.options;e.lazy&&Object(p.isEmpty)(t)?this.lazyLoad():(this.store=new L(t,e),this.menus=[this.store.getNodes()],this.syncMenuState())},syncCheckedValue:function(){var e=this.value,t=this.checkedValue;Object(p.isEqual)(e,t)||(this.activePath=[],this.checkedValue=e,this.syncMenuState())},syncMenuState:function(){var e=this.multiple,t=this.checkStrictly;this.syncActivePath(),e&&this.syncMultiCheckState(),t&&this.calculateCheckedNodePaths(),this.$nextTick(this.scrollIntoView)},syncMultiCheckState:function(){var e=this;this.getFlattedNodes(this.leafOnly).forEach((function(t){t.syncCheckState(e.checkedValue)}))},isEmptyValue:function(e){var t=this.multiple,n=this.config.emitPath;return!(!t&&!n)&&Object(p.isEmpty)(e)},syncActivePath:function(){var e=this,t=this.store,n=this.multiple,r=this.activePath,i=this.checkedValue;if(Object(p.isEmpty)(r))if(this.isEmptyValue(i))this.activePath=[],this.menus=[t.getNodes()];else{var o=n?i[0]:i,a=((this.getNodeByValue(o)||{}).pathNodes||[]).slice(0,-1);this.expandNodes(a)}else{var s=r.map((function(t){return e.getNodeByValue(t.getValue())}));this.expandNodes(s)}},expandNodes:function(e){var t=this;e.forEach((function(e){return t.handleExpand(e,!0)}))},calculateCheckedNodePaths:function(){var e=this,t=this.checkedValue,n=this.multiple?Object(p.coerceTruthyValueToArray)(t):[t];this.checkedNodePaths=n.map((function(t){var n=e.getNodeByValue(t);return n?n.pathNodes:[]}))},handleKeyDown:function(e){var t=e.target;switch(e.keyCode){case W.up:var n=Y(t,-1);X(n);break;case W.down:var r=Y(t,1);X(r);break;case W.left:var i=this.$refs.menu[K(t)-1];if(i){var o=i.$el.querySelector('.el-cascader-node[aria-expanded="true"]');X(o)}break;case W.right:var a=this.$refs.menu[K(t)+1];if(a){var s=a.$el.querySelector('.el-cascader-node[tabindex="-1"]');X(s)}break;case W.enter:!function(e){if(e){var t=e.querySelector("input");t?t.click():G(e)&&e.click()}}(t);break;case W.esc:case W.tab:this.$emit("close");break;default:return}},handleExpand:function(e,t){var n=this.activePath,r=e.level,i=n.slice(0,r-1),o=this.menus.slice(0,r);if(e.isLeaf||(i.push(e),o.push(e.children)),this.activePath=i,this.menus=o,!t){var a=i.map((function(e){return e.getValue()})),s=n.map((function(e){return e.getValue()}));Object(p.valueEquals)(a,s)||(this.$emit("active-item-change",a),this.$emit("expand-change",a))}},handleCheckChange:function(e){this.checkedValue=e},lazyLoad:function(e,t){var n=this,r=this.config;e||(e=e||{root:!0,level:0},this.store=new L([],r),this.menus=[this.store.getNodes()]),e.loading=!0,r.lazyLoad(e,(function(r){var i=e.root?null:e;if(r&&r.length&&n.store.appendNodes(r,i),e.loading=!1,e.loaded=!0,Array.isArray(n.checkedValue)){var o=n.checkedValue[n.loadCount++],a=n.config.value,s=n.config.leaf;if(Array.isArray(r)&&r.filter((function(e){return e[a]===o})).length>0){var l=n.store.getNodeByValue(o);l.data[s]||n.lazyLoad(l,(function(){n.handleExpand(l)})),n.loadCount===n.checkedValue.length&&n.$parent.computePresentText()}}t&&t(r)}))},calculateMultiCheckedValue:function(){this.checkedValue=this.getCheckedNodes(this.leafOnly).map((function(e){return e.getValueByOption()}))},scrollIntoView:function(){var e=this;this.$isServer||(this.$refs.menu||[]).forEach((function(t){var n=t.$el;if(e.config.virtualScroll){var r=-1;t.nodes.find((function(e,t){var n=e.inActivePath;return n&&(r=t),n})),-1!==r?t.$refs.virtualList&&t.$refs.virtualList.scrollToIndex(r):(t.nodes.find((function(e,t){var n=e.checked||e.indeterminate;return n&&(r=t),n})),t.$refs.virtualList&&-1===r?t.$refs.virtualList.reset():t.$refs.virtualList.scrollToIndex(r))}else if(n){var i=n.querySelector(".el-scrollbar__wrap"),o=n.querySelector(".el-cascader-node.is-active")||n.querySelector(".el-cascader-node.in-active-path");U()(i,o)}}))},getNodeByValue:function(e){return this.store.getNodeByValue(e)},getFlattedNodes:function(e){var t=!this.config.lazy;return this.store.getFlattedNodes(e,t)},getCheckedNodes:function(e){var t=this.checkedValue;return this.multiple?this.getFlattedNodes(e).filter((function(e){return e.checked})):this.isEmptyValue(t)?[]:[this.getNodeByValue(t)]},clearCheckedNodes:function(){var e=this.config,t=this.leafOnly,n=e.multiple,r=e.emitPath;n?(this.getCheckedNodes(t).filter((function(e){return!e.isDisabled})).forEach((function(e){return e.doCheck(!1)})),this.calculateMultiCheckedValue()):this.checkedValue=r?[]:null}}},Z=Object(v.a)(J,r,[],!1,null,null,null);Z.options.__file="packages/cascader-panel/src/cascader-panel.vue";var Q=Z.exports;Q.install=function(e){e.component(Q.name,Q)},t.default=Q}})},a5d8:function(e,t,n){},a652:function(e,t,n){"use strict";var r=function(){function e(e,t,n,r,i,o){void 0===i&&(i=-1),void 0===o&&(o=-1),this.rawBytes=e,this.text=t,this.byteSegments=n,this.ecLevel=r,this.structuredAppendSequenceNumber=i,this.structuredAppendParity=o,this.numBits=void 0===e||null===e?0:8*e.length}return e.prototype.getRawBytes=function(){return this.rawBytes},e.prototype.getNumBits=function(){return this.numBits},e.prototype.setNumBits=function(e){this.numBits=e},e.prototype.getText=function(){return this.text},e.prototype.getByteSegments=function(){return this.byteSegments},e.prototype.getECLevel=function(){return this.ecLevel},e.prototype.getErrorsCorrected=function(){return this.errorsCorrected},e.prototype.setErrorsCorrected=function(e){this.errorsCorrected=e},e.prototype.getErasures=function(){return this.erasures},e.prototype.setErasures=function(e){this.erasures=e},e.prototype.getOther=function(){return this.other},e.prototype.setOther=function(e){this.other=e},e.prototype.hasStructuredAppend=function(){return this.structuredAppendParity>=0&&this.structuredAppendSequenceNumber>=0},e.prototype.getStructuredAppendParity=function(){return this.structuredAppendParity},e.prototype.getStructuredAppendSequenceNumber=function(){return this.structuredAppendSequenceNumber},e}();t["a"]=r},a70f:function(e,t,n){"use strict";var r=n("370f"),i=n("a363"),o=n("f0a7");(function(){function e(){}e.prototype.encode=function(e,t,n,a,s){var l;switch(t){case i["a"].QR_CODE:l=new r["a"];break;default:throw new o["a"]("No encoder available for format "+t)}return l.encode(e,t,n,a,s)}})()},a78e:function(e,t,n){var r,i;
|
|
29
29
|
/*!
|
|
30
30
|
* JavaScript Cookie v2.2.1
|
|
31
31
|
* https://github.com/js-cookie/js-cookie
|
|
32
32
|
*
|
|
33
33
|
* Copyright 2006, 2015 Klaus Hartl & Fagner Brack
|
|
34
34
|
* Released under the MIT license
|
|
35
|
-
*/(function(o){var a;if(r=o,i="function"===typeof r?r.call(t,n,t,e):r,void 0===i||(e.exports=i),a=!0,e.exports=o(),a=!0,!a){var s=window.Cookies,l=window.Cookies=o();l.noConflict=function(){return window.Cookies=s,l}}})((function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function n(r){function i(){}function o(t,n,o){if("undefined"!==typeof document){o=e({path:"/"},i.defaults,o),"number"===typeof o.expires&&(o.expires=new Date(1*new Date+864e5*o.expires)),o.expires=o.expires?o.expires.toUTCString():"";try{var a=JSON.stringify(n);/^[\{\[]/.test(a)&&(n=a)}catch(u){}n=r.write?r.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s="";for(var l in o)o[l]&&(s+="; "+l,!0!==o[l]&&(s+="="+o[l].split(";")[0]));return document.cookie=t+"="+n+s}}function a(e,n){if("undefined"!==typeof document){for(var i={},o=document.cookie?document.cookie.split("; "):[],a=0;a<o.length;a++){var s=o[a].split("="),l=s.slice(1).join("=");n||'"'!==l.charAt(0)||(l=l.slice(1,-1));try{var u=t(s[0]);if(l=(r.read||r)(l,u)||t(l),n)try{l=JSON.parse(l)}catch(c){}if(i[u]=l,e===u)break}catch(c){}}return e?i[e]:i}}return i.set=o,i.get=function(e){return a(e,!1)},i.getJSON=function(e){return a(e,!0)},i.remove=function(t,n){o(t,"",e(n,{expires:-1}))},i.defaults={},i.withConverter=n,i}return n((function(){}))}))},a793:function(e,t,n){"use strict";var r=n("a363"),i=n("fe96"),o=n("ca08"),a=n("3d59"),s=n("7bb2"),l=n("be139"),u=n("2f50"),c=n("0b81"),f=n("d0cb"),d=n("ab23"),h=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),p=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},m=function(e){function t(){var t=e.call(this)||this;return t.decodeMiddleCounters=Int32Array.from([0,0,0,0]),t}return h(t,e),t.prototype.decodeMiddle=function(e,t,n){var r,i,o,a,s=this.decodeMiddleCounters;s[0]=0,s[1]=0,s[2]=0,s[3]=0;for(var l=e.getSize(),u=t[1],c=0;c<4&&u<l;c++){var f=d["a"].decodeDigit(e,s,u,d["a"].L_PATTERNS);n+=String.fromCharCode("0".charCodeAt(0)+f);try{for(var h=(r=void 0,p(s)),m=h.next();!m.done;m=h.next()){var g=m.value;u+=g}}catch(w){r={error:w}}finally{try{m&&!m.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}}var v=d["a"].findGuardPattern(e,u,!0,d["a"].MIDDLE_PATTERN,new Int32Array(d["a"].MIDDLE_PATTERN.length).fill(0));u=v[1];for(c=0;c<4&&u<l;c++){f=d["a"].decodeDigit(e,s,u,d["a"].L_PATTERNS);n+=String.fromCharCode("0".charCodeAt(0)+f);try{for(var b=(o=void 0,p(s)),y=b.next();!y.done;y=b.next()){g=y.value;u+=g}}catch(_){o={error:_}}finally{try{y&&!y.done&&(a=b.return)&&a.call(b)}finally{if(o)throw o.error}}}return{rowOffset:u,resultString:n}},t.prototype.getBarcodeFormat=function(){return r["a"].EAN_8},t}(d["a"]),g=m,v=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),b=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ean13Reader=new f["a"],t}return v(t,e),t.prototype.getBarcodeFormat=function(){return r["a"].UPC_A},t.prototype.decode=function(e,t){return this.maybeReturnResult(this.ean13Reader.decode(e))},t.prototype.decodeRow=function(e,t,n){return this.maybeReturnResult(this.ean13Reader.decodeRow(e,t,n))},t.prototype.decodeMiddle=function(e,t,n){return this.ean13Reader.decodeMiddle(e,t,n)},t.prototype.maybeReturnResult=function(e){var t=e.getText();if("0"===t.charAt(0)){var n=new u["a"](t.substring(1),null,null,e.getResultPoints(),r["a"].UPC_A);return null!=e.getResultMetadata()&&n.putAllMetadata(e.getResultMetadata()),n}throw new o["a"]},t.prototype.reset=function(){this.ean13Reader.reset()},t}(d["a"]),y=b,w=n("6530"),_=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),C=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},x=function(e){function t(){var t=e.call(this)||this;return t.decodeMiddleCounters=new Int32Array(4),t}return _(t,e),t.prototype.decodeMiddle=function(e,n,r){var i,o,a=this.decodeMiddleCounters.map((function(e){return e}));a[0]=0,a[1]=0,a[2]=0,a[3]=0;for(var s=e.getSize(),l=n[1],u=0,c=0;c<6&&l<s;c++){var f=t.decodeDigit(e,a,l,t.L_AND_G_PATTERNS);r+=String.fromCharCode("0".charCodeAt(0)+f%10);try{for(var d=(i=void 0,C(a)),h=d.next();!h.done;h=d.next()){var p=h.value;l+=p}}catch(m){i={error:m}}finally{try{h&&!h.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}f>=10&&(u|=1<<5-c)}return t.determineNumSysAndCheckDigit(new w["a"](r),u),l},t.prototype.decodeEnd=function(e,n){return t.findGuardPatternWithoutCounters(e,n,!0,t.MIDDLE_END_PATTERN)},t.prototype.checkChecksum=function(e){return d["a"].checkChecksum(t.convertUPCEtoUPCA(e))},t.determineNumSysAndCheckDigit=function(e,t){for(var n=0;n<=1;n++)for(var r=0;r<10;r++)if(t===this.NUMSYS_AND_CHECK_DIGIT_PATTERNS[n][r])return e.insert(0,"0"+n),void e.append("0"+r);throw o["a"].getNotFoundInstance()},t.prototype.getBarcodeFormat=function(){return r["a"].UPC_E},t.convertUPCEtoUPCA=function(e){var t=e.slice(1,7).split("").map((function(e){return e.charCodeAt(0)})),n=new w["a"];n.append(e.charAt(0));var r=t[5];switch(r){case 0:case 1:case 2:n.appendChars(t,0,2),n.append(r),n.append("0000"),n.appendChars(t,2,3);break;case 3:n.appendChars(t,0,3),n.append("00000"),n.appendChars(t,3,2);break;case 4:n.appendChars(t,0,4),n.append("00000"),n.append(t[4]);break;default:n.appendChars(t,0,5),n.append("0000"),n.append(r);break}return e.length>=8&&n.append(e.charAt(7)),n.toString()},t.MIDDLE_END_PATTERN=Int32Array.from([1,1,1,1,1,1]),t.NUMSYS_AND_CHECK_DIGIT_PATTERNS=[Int32Array.from([56,52,50,49,44,38,35,42,41,37]),Int32Array.from([7,11,13,14,19,25,28,21,22,1])],t}(d["a"]),S=x,k=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),D=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},O=function(e){function t(t){var n=e.call(this)||this,o=null==t?null:t.get(i["a"].POSSIBLE_FORMATS),a=[];return null!=o&&(o.indexOf(r["a"].EAN_13)>-1&&a.push(new f["a"]),o.indexOf(r["a"].UPC_A)>-1&&a.push(new y),o.indexOf(r["a"].EAN_8)>-1&&a.push(new g),o.indexOf(r["a"].UPC_E)>-1&&a.push(new S)),0===a.length&&(a.push(new f["a"]),a.push(new y),a.push(new g),a.push(new S)),n.readers=a,n}return k(t,e),t.prototype.decodeRow=function(e,t,n){var a,s;try{for(var l=D(this.readers),c=l.next();!c.done;c=l.next()){var f=c.value;try{var d=f.decodeRow(e,t,n),h=d.getBarcodeFormat()===r["a"].EAN_13&&"0"===d.getText().charAt(0),p=null==n?null:n.get(i["a"].POSSIBLE_FORMATS),m=null==p||p.includes(r["a"].UPC_A);if(h&&m){var g=d.getRawBytes(),v=new u["a"](d.getText().substring(1),g,g?g.length:null,d.getResultPoints(),r["a"].UPC_A);return v.putAllMetadata(d.getResultMetadata()),v}return d}catch(b){}}}catch(y){a={error:y}}finally{try{c&&!c.done&&(s=l.return)&&s.call(l)}finally{if(a)throw a.error}}throw new o["a"]},t.prototype.reset=function(){var e,t;try{for(var n=D(this.readers),r=n.next();!r.done;r=n.next()){var i=r.value;i.reset()}}catch(o){e={error:o}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},t}(c["a"]),T=O,E=n("02dc"),I=n("e4f9"),N=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),A=function(e){function t(t){var n=e.call(this)||this;n.readers=[];var o=t?t.get(i["a"].POSSIBLE_FORMATS):null,u=t&&void 0!==t.get(i["a"].ASSUME_CODE_39_CHECK_DIGIT);return o&&((o.includes(r["a"].EAN_13)||o.includes(r["a"].UPC_A)||o.includes(r["a"].EAN_8)||o.includes(r["a"].UPC_E))&&n.readers.push(new T(t)),o.includes(r["a"].CODE_39)&&n.readers.push(new s["a"](u)),o.includes(r["a"].CODE_128)&&n.readers.push(new a["a"]),o.includes(r["a"].ITF)&&n.readers.push(new l["a"]),o.includes(r["a"].RSS_14)&&n.readers.push(new I["a"]),o.includes(r["a"].RSS_EXPANDED)&&(console.warn("RSS Expanded reader IS NOT ready for production yet! use at your own risk."),n.readers.push(new E["a"]))),0===n.readers.length&&(n.readers.push(new T(t)),n.readers.push(new s["a"]),n.readers.push(new T(t)),n.readers.push(new a["a"]),n.readers.push(new l["a"]),n.readers.push(new I["a"])),n}return N(t,e),t.prototype.decodeRow=function(e,t,n){for(var r=0;r<this.readers.length;r++)try{return this.readers[r].decodeRow(e,t,n)}catch(i){}throw new o["a"]},t.prototype.reset=function(){this.readers.forEach((function(e){return e.reset()}))},t}(c["a"]);t["a"]=A},a7f2:function(e,t,n){"use strict";var r=n("f6ed"),i=n("63af"),o=n("f0a7"),a=function(){function e(e,t){if(0===t.length)throw new o["a"];this.field=e;var n=t.length;if(n>1&&0===t[0]){var r=1;while(r<n&&0===t[r])r++;r===n?this.coefficients=Int32Array.from([0]):(this.coefficients=new Int32Array(n-r),i["a"].arraycopy(t,r,this.coefficients,0,this.coefficients.length))}else this.coefficients=t}return e.prototype.getCoefficients=function(){return this.coefficients},e.prototype.getDegree=function(){return this.coefficients.length-1},e.prototype.isZero=function(){return 0===this.coefficients[0]},e.prototype.getCoefficient=function(e){return this.coefficients[this.coefficients.length-1-e]},e.prototype.evaluateAt=function(e){if(0===e)return this.getCoefficient(0);var t,n=this.coefficients;if(1===e){t=0;for(var i=0,o=n.length;i!==o;i++){var a=n[i];t=r["a"].addOrSubtract(t,a)}return t}t=n[0];var s=n.length,l=this.field;for(i=1;i<s;i++)t=r["a"].addOrSubtract(l.multiply(e,t),n[i]);return t},e.prototype.addOrSubtract=function(t){if(!this.field.equals(t.field))throw new o["a"]("GenericGFPolys do not have same GenericGF field");if(this.isZero())return t;if(t.isZero())return this;var n=this.coefficients,a=t.coefficients;if(n.length>a.length){var s=n;n=a,a=s}var l=new Int32Array(a.length),u=a.length-n.length;i["a"].arraycopy(a,0,l,0,u);for(var c=u;c<a.length;c++)l[c]=r["a"].addOrSubtract(n[c-u],a[c]);return new e(this.field,l)},e.prototype.multiply=function(t){if(!this.field.equals(t.field))throw new o["a"]("GenericGFPolys do not have same GenericGF field");if(this.isZero()||t.isZero())return this.field.getZero();for(var n=this.coefficients,i=n.length,a=t.coefficients,s=a.length,l=new Int32Array(i+s-1),u=this.field,c=0;c<i;c++)for(var f=n[c],d=0;d<s;d++)l[c+d]=r["a"].addOrSubtract(l[c+d],u.multiply(f,a[d]));return new e(u,l)},e.prototype.multiplyScalar=function(t){if(0===t)return this.field.getZero();if(1===t)return this;for(var n=this.coefficients.length,r=this.field,i=new Int32Array(n),o=this.coefficients,a=0;a<n;a++)i[a]=r.multiply(o[a],t);return new e(r,i)},e.prototype.multiplyByMonomial=function(t,n){if(t<0)throw new o["a"];if(0===n)return this.field.getZero();for(var r=this.coefficients,i=r.length,a=new Int32Array(i+t),s=this.field,l=0;l<i;l++)a[l]=s.multiply(r[l],n);return new e(s,a)},e.prototype.divide=function(e){if(!this.field.equals(e.field))throw new o["a"]("GenericGFPolys do not have same GenericGF field");if(e.isZero())throw new o["a"]("Divide by 0");var t=this.field,n=t.getZero(),r=this,i=e.getCoefficient(e.getDegree()),a=t.inverse(i);while(r.getDegree()>=e.getDegree()&&!r.isZero()){var s=r.getDegree()-e.getDegree(),l=t.multiply(r.getCoefficient(r.getDegree()),a),u=e.multiplyByMonomial(s,l),c=t.buildMonomial(s,l);n=n.addOrSubtract(c),r=r.addOrSubtract(u)}return[n,r]},e.prototype.toString=function(){for(var e="",t=this.getDegree();t>=0;t--){var n=this.getCoefficient(t);if(0!==n){if(n<0?(e+=" - ",n=-n):e.length>0&&(e+=" + "),0===t||1!==n){var r=this.field.log(n);0===r?e+="1":1===r?e+="a":(e+="a^",e+=r)}0!==t&&(1===t?e+="x":(e+="x^",e+=t))}}return e},e}();t["a"]=a},a911:function(e,t){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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="/dist/",n(n.s=146)}({1:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var l,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},146:function(e,t,n){"use strict";n.r(t);var r={name:"ElTag",props:{text:String,closable:Boolean,type:String,hit:Boolean,disableTransitions:Boolean,color:String,size:String,effect:{type:String,default:"light",validator:function(e){return-1!==["dark","light","plain"].indexOf(e)}}},methods:{handleClose:function(e){e.stopPropagation(),this.$emit("close",e)},handleClick:function(e){this.$emit("click",e)}},computed:{tagSize:function(){return this.size||(this.$ELEMENT||{}).size}},render:function(){var e=arguments[0],t=this.type,n=this.tagSize,r=this.hit,i=this.effect,o=["el-tag",t?"el-tag--"+t:"",n?"el-tag--"+n:"",i?"el-tag--"+i:"",r&&"is-hit"],a=e("span",{class:o,style:{backgroundColor:this.color},on:{click:this.handleClick}},[this.$slots.default,this.closable&&e("i",{class:"el-tag__close el-icon-close",on:{click:this.handleClose}})]);return this.disableTransitions?a:e("transition",{attrs:{name:"el-zoom-in-center"}},[a])}},i=n(1),o=Object(i.a)(r,void 0,void 0,!1,null,null,null);o.options.__file="packages/tag/src/tag.vue";var a=o.exports;a.install=function(e){e.component(a.name,a)},t.default=a}})},a9a4:function(e,t,n){"use strict";var r=n("5134"),i=n("ea29"),o=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=function(){function e(e){this.errorCorrectionLevel=r["a"].forBits(e>>3&3),this.dataMask=7&e}return e.numBitsDiffering=function(e,t){return i["a"].bitCount(e^t)},e.decodeFormatInformation=function(t,n){var r=e.doDecodeFormatInformation(t,n);return null!==r?r:e.doDecodeFormatInformation(t^e.FORMAT_INFO_MASK_QR,n^e.FORMAT_INFO_MASK_QR)},e.doDecodeFormatInformation=function(t,n){var r,i,a=Number.MAX_SAFE_INTEGER,s=0;try{for(var l=o(e.FORMAT_INFO_DECODE_LOOKUP),u=l.next();!u.done;u=l.next()){var c=u.value,f=c[0];if(f===t||f===n)return new e(c[1]);var d=e.numBitsDiffering(t,f);d<a&&(s=c[1],a=d),t!==n&&(d=e.numBitsDiffering(n,f),d<a&&(s=c[1],a=d))}}catch(h){r={error:h}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}return a<=3?new e(s):null},e.prototype.getErrorCorrectionLevel=function(){return this.errorCorrectionLevel},e.prototype.getDataMask=function(){return this.dataMask},e.prototype.hashCode=function(){return this.errorCorrectionLevel.getBits()<<3|this.dataMask},e.prototype.equals=function(t){if(!(t instanceof e))return!1;var n=t;return this.errorCorrectionLevel===n.errorCorrectionLevel&&this.dataMask===n.dataMask},e.FORMAT_INFO_MASK_QR=21522,e.FORMAT_INFO_DECODE_LOOKUP=[Int32Array.from([21522,0]),Int32Array.from([20773,1]),Int32Array.from([24188,2]),Int32Array.from([23371,3]),Int32Array.from([17913,4]),Int32Array.from([16590,5]),Int32Array.from([20375,6]),Int32Array.from([19104,7]),Int32Array.from([30660,8]),Int32Array.from([29427,9]),Int32Array.from([32170,10]),Int32Array.from([30877,11]),Int32Array.from([26159,12]),Int32Array.from([25368,13]),Int32Array.from([27713,14]),Int32Array.from([26998,15]),Int32Array.from([5769,16]),Int32Array.from([5054,17]),Int32Array.from([7399,18]),Int32Array.from([6608,19]),Int32Array.from([1890,20]),Int32Array.from([597,21]),Int32Array.from([3340,22]),Int32Array.from([2107,23]),Int32Array.from([13663,24]),Int32Array.from([12392,25]),Int32Array.from([16177,26]),Int32Array.from([14854,27]),Int32Array.from([9396,28]),Int32Array.from([8579,29]),Int32Array.from([11994,30]),Int32Array.from([11245,31])],e}();t["a"]=a},a9e3:function(e,t,n){"use strict";n("d5b2"),n("e3f3"),n("f505"),n("9fa8");var r=n("6cd7");n.d(t,"BrowserMultiFormatReader",(function(){return r["a"]}));n("6246"),n("8283"),n("9878"),n("3cb6"),n("0c36"),n("8f21"),n("e027")},aa17:function(e,t,n){"use strict";var r=n("fb63"),i=n("ca08"),o=n("0b81"),a=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},l=function(e){function t(){var t=e.call(this)||this;return t.decodeFinderCounters=new Int32Array(4),t.dataCharacterCounters=new Int32Array(8),t.oddRoundingErrors=new Array(4),t.evenRoundingErrors=new Array(4),t.oddCounts=new Array(t.dataCharacterCounters.length/2),t.evenCounts=new Array(t.dataCharacterCounters.length/2),t}return a(t,e),t.prototype.getDecodeFinderCounters=function(){return this.decodeFinderCounters},t.prototype.getDataCharacterCounters=function(){return this.dataCharacterCounters},t.prototype.getOddRoundingErrors=function(){return this.oddRoundingErrors},t.prototype.getEvenRoundingErrors=function(){return this.evenRoundingErrors},t.prototype.getOddCounts=function(){return this.oddCounts},t.prototype.getEvenCounts=function(){return this.evenCounts},t.prototype.parseFinderValue=function(e,n){for(var r=0;r<n.length;r++)if(o["a"].patternMatchVariance(e,n[r],t.MAX_INDIVIDUAL_VARIANCE)<t.MAX_AVG_VARIANCE)return r;throw new i["a"]},t.count=function(e){return r["a"].sum(new Int32Array(e))},t.increment=function(e,t){for(var n=0,r=t[0],i=1;i<e.length;i++)t[i]>r&&(r=t[i],n=i);e[n]++},t.decrement=function(e,t){for(var n=0,r=t[0],i=1;i<e.length;i++)t[i]<r&&(r=t[i],n=i);e[n]--},t.isFinderPattern=function(e){var n,r,i=e[0]+e[1],o=i+e[2]+e[3],a=i/o;if(a>=t.MIN_FINDER_PATTERN_RATIO&&a<=t.MAX_FINDER_PATTERN_RATIO){var l=Number.MAX_SAFE_INTEGER,u=Number.MIN_SAFE_INTEGER;try{for(var c=s(e),f=c.next();!f.done;f=c.next()){var d=f.value;d>u&&(u=d),d<l&&(l=d)}}catch(h){n={error:h}}finally{try{f&&!f.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}return u<10*l}return!1},t.MAX_AVG_VARIANCE=.2,t.MAX_INDIVIDUAL_VARIANCE=.45,t.MIN_FINDER_PATTERN_RATIO=9.5/12,t.MAX_FINDER_PATTERN_RATIO=12.5/14,t}(o["a"]);t["a"]=l},aa21:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));n("2397"),n("6762"),n("2fdb"),n("c5f6");var r=n("99de"),i=n("7e84"),o=n("262e"),a=n("d4ec"),s=n("bee2");function l(e,t,n){return t=Object(i["a"])(t),Object(r["a"])(e,u()?Reflect.construct(t,n||[],Object(i["a"])(e).constructor):t.apply(e,n))}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}var c=function(){function e(){if(Object(a["a"])(this,e),(this instanceof e?this.constructor:void 0)===e)throw new Error("抽象类不能实例化!")}return Object(s["a"])(e,[{key:"isNullValue",value:function(e,t){return(void 0===e||null===e||e+""==="")&&"IS_NULL"===t}},{key:"isNotNullValue",value:function(e,t){return void 0!==e&&null!==e&&e+""!==""&&"IS_NOT_NULL"===t}},{key:"isEQEmptyValue",value:function(e,t,n){return(void 0===e||null===e||e+""==="")&&(void 0===n||null===n||n+""==="")&&("EQ"===t||"CONTAIN"===t)}}])}(),f=function(e){function t(e,n,r){var i;if(Object(a["a"])(this,t),i=l(this,t),i.isNotNullValue(e,n))i.result=!0;else if(i.isNullValue(e,n))i.result=!0;else if(i.isEQEmptyValue(e,n,r))i.result=!0;else if(void 0===e||null===e)i.result=!1;else{var o=Number(e+""),s=Number(r+"");if("GET"===n)i.result=o>=s;else if("LET"===n)i.result=o<=s;else if("GT"===n)i.result=o>s;else if("LT"===n)i.result=o<s;else if("NET"===n)i.result=o!==s;else if("EQ"===n)i.result=o===s;else if("IS_NULL"===n)i.result=void 0===e||null===e;else{if("IS_NOT_NULL"!==n)throw new Error("表达式不合法:"+e+" "+n+" "+r);i.result=void 0!==e&&null!==e}}return i}return Object(o["a"])(t,e),Object(s["a"])(t)}(c),d=function(e){function t(e,n,r){var i;if(Object(a["a"])(this,t),i=l(this,t),i.isNullValue(e,n))i.result=!0;else if(i.isEQEmptyValue(e,n,r))i.result=!0;else if(i.isNotNullValue(e,n))i.result=!0;else if(void 0===e||null===e)i.result=!1;else if("NET"===n)i.result=e!==r;else if("EQ"===n)i.result=e===r;else if("NOT_CONTAIN"===n)i.result=!e.includes(r);else if("CONTAIN"===n)i.result=e.includes(r);else if("IS_NULL"===n)i.result=void 0===e||null===e||""===e;else{if("IS_NOT_NULL"!==n)throw new Error("表达式不合法:"+e+" "+n+" "+r);i.result=void 0!==e&&null!==e&&""!==e}return i}return Object(o["a"])(t,e),Object(s["a"])(t)}(c);function h(e){switch(e){case"TEXT":return d;case"DOUBLE":return f;case"FLOAT":return f;case"INTEGER":return f;case"LONG":return f;case"DATE":return f;case"TIME":return f;default:return d}}},aa77:function(e,t,n){var r=n("5ca1"),i=n("be13"),o=n("79e5"),a=n("fdef"),s="["+a+"]",l="
",u=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),f=function(e,t,n){var i={},s=o((function(){return!!a[e]()||l[e]()!=l})),u=i[e]=s?t(d):a[e];n&&(i[n]=u),r(r.P+r.F*s,"String",i)},d=f.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(u,"")),2&t&&(e=e.replace(c,"")),e};e.exports=f},aae3:function(e,t,n){var r=n("d3f4"),i=n("2d95"),o=n("2b4c")("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},ab23:function(e,t,n){"use strict";var r=n("a363"),i=n("fe96"),o=n("2f50"),a=n("64a7"),s=n("8c95"),l=n("0b81"),u=n("ca08"),c=n("7978"),f=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.decodeRowStringBuffer="",t}return f(t,e),t.findStartGuardPattern=function(e){var n,r=!1,i=0,o=Int32Array.from([0,0,0]);while(!r){o=Int32Array.from([0,0,0]),n=t.findGuardPattern(e,i,!1,this.START_END_PATTERN,o);var a=n[0];i=n[1];var s=a-(i-a);s>=0&&(r=e.isRange(s,a,!1))}return n},t.checkChecksum=function(e){return t.checkStandardUPCEANChecksum(e)},t.checkStandardUPCEANChecksum=function(e){var n=e.length;if(0===n)return!1;var r=parseInt(e.charAt(n-1),10);return t.getStandardUPCEANChecksum(e.substring(0,n-1))===r},t.getStandardUPCEANChecksum=function(e){for(var t=e.length,n=0,r=t-1;r>=0;r-=2){var i=e.charAt(r).charCodeAt(0)-"0".charCodeAt(0);if(i<0||i>9)throw new c["a"];n+=i}n*=3;for(r=t-2;r>=0;r-=2){i=e.charAt(r).charCodeAt(0)-"0".charCodeAt(0);if(i<0||i>9)throw new c["a"];n+=i}return(1e3-n)%10},t.decodeEnd=function(e,n){return t.findGuardPattern(e,n,!1,t.START_END_PATTERN,new Int32Array(t.START_END_PATTERN.length).fill(0))},t.findGuardPatternWithoutCounters=function(e,t,n,r){return this.findGuardPattern(e,t,n,r,new Int32Array(r.length))},t.findGuardPattern=function(e,n,r,i,o){var a=e.getSize();n=r?e.getNextUnset(n):e.getNextSet(n);for(var s=0,c=n,f=i.length,d=r,h=n;h<a;h++)if(e.get(h)!==d)o[s]++;else{if(s===f-1){if(l["a"].patternMatchVariance(o,i,t.MAX_INDIVIDUAL_VARIANCE)<t.MAX_AVG_VARIANCE)return Int32Array.from([c,h]);c+=o[0]+o[1];for(var p=o.slice(2,o.length-1),m=0;m<s-1;m++)o[m]=p[m];o[s-1]=0,o[s]=0,s--}else s++;o[s]=1,d=!d}throw new u["a"]},t.decodeDigit=function(e,n,r,i){this.recordPattern(e,r,n);for(var o=this.MAX_AVG_VARIANCE,a=-1,s=i.length,c=0;c<s;c++){var f=i[c],d=l["a"].patternMatchVariance(n,f,t.MAX_INDIVIDUAL_VARIANCE);d<o&&(o=d,a=c)}if(a>=0)return a;throw new u["a"]},t.MAX_AVG_VARIANCE=.48,t.MAX_INDIVIDUAL_VARIANCE=.7,t.START_END_PATTERN=Int32Array.from([1,1,1]),t.MIDDLE_PATTERN=Int32Array.from([1,1,1,1,1]),t.END_PATTERN=Int32Array.from([1,1,1,1,1,1]),t.L_PATTERNS=[Int32Array.from([3,2,1,1]),Int32Array.from([2,2,2,1]),Int32Array.from([2,1,2,2]),Int32Array.from([1,4,1,1]),Int32Array.from([1,1,3,2]),Int32Array.from([1,2,3,1]),Int32Array.from([1,1,1,4]),Int32Array.from([1,3,1,2]),Int32Array.from([1,2,1,3]),Int32Array.from([3,1,1,2])],t}(l["a"]),h=d,p=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},m=function(){function e(){this.CHECK_DIGIT_ENCODINGS=[24,20,18,17,12,6,3,10,9,5],this.decodeMiddleCounters=Int32Array.from([0,0,0,0]),this.decodeRowStringBuffer=""}return e.prototype.decodeRow=function(t,n,i){var a=this.decodeRowStringBuffer,l=this.decodeMiddle(n,i,a),u=a.toString(),c=e.parseExtensionString(u),f=[new s["a"]((i[0]+i[1])/2,t),new s["a"](l,t)],d=new o["a"](u,null,0,f,r["a"].UPC_EAN_EXTENSION,(new Date).getTime());return null!=c&&d.putAllMetadata(c),d},e.prototype.decodeMiddle=function(t,n,r){var i,o,a=this.decodeMiddleCounters;a[0]=0,a[1]=0,a[2]=0,a[3]=0;for(var s=t.getSize(),l=n[1],c=0,f=0;f<5&&l<s;f++){var d=h.decodeDigit(t,a,l,h.L_AND_G_PATTERNS);r+=String.fromCharCode("0".charCodeAt(0)+d%10);try{for(var m=(i=void 0,p(a)),g=m.next();!g.done;g=m.next()){var v=g.value;l+=v}}catch(y){i={error:y}}finally{try{g&&!g.done&&(o=m.return)&&o.call(m)}finally{if(i)throw i.error}}d>=10&&(c|=1<<4-f),4!==f&&(l=t.getNextSet(l),l=t.getNextUnset(l))}if(5!==r.length)throw new u["a"];var b=this.determineCheckDigit(c);if(e.extensionChecksum(r.toString())!==b)throw new u["a"];return l},e.extensionChecksum=function(e){for(var t=e.length,n=0,r=t-2;r>=0;r-=2)n+=e.charAt(r).charCodeAt(0)-"0".charCodeAt(0);n*=3;for(r=t-1;r>=0;r-=2)n+=e.charAt(r).charCodeAt(0)-"0".charCodeAt(0);return n*=3,n%10},e.prototype.determineCheckDigit=function(e){for(var t=0;t<10;t++)if(e===this.CHECK_DIGIT_ENCODINGS[t])return t;throw new u["a"]},e.parseExtensionString=function(t){if(5!==t.length)return null;var n=e.parseExtension5String(t);return null==n?null:new Map([[a["a"].SUGGESTED_PRICE,n]])},e.parseExtension5String=function(e){var t;switch(e.charAt(0)){case"0":t="£";break;case"5":t="$";break;case"9":switch(e){case"90000":return null;case"99991":return"0.00";case"99990":return"Used"}t="";break;default:t="";break}var n=parseInt(e.substring(1)),r=(n/100).toString(),i=n%100,o=i<10?"0"+i:i.toString();return t+r+"."+o},e}(),g=m,v=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},b=function(){function e(){this.decodeMiddleCounters=Int32Array.from([0,0,0,0]),this.decodeRowStringBuffer=""}return e.prototype.decodeRow=function(t,n,i){var a=this.decodeRowStringBuffer,l=this.decodeMiddle(n,i,a),u=a.toString(),c=e.parseExtensionString(u),f=[new s["a"]((i[0]+i[1])/2,t),new s["a"](l,t)],d=new o["a"](u,null,0,f,r["a"].UPC_EAN_EXTENSION,(new Date).getTime());return null!=c&&d.putAllMetadata(c),d},e.prototype.decodeMiddle=function(e,t,n){var r,i,o=this.decodeMiddleCounters;o[0]=0,o[1]=0,o[2]=0,o[3]=0;for(var a=e.getSize(),s=t[1],l=0,c=0;c<2&&s<a;c++){var f=h.decodeDigit(e,o,s,h.L_AND_G_PATTERNS);n+=String.fromCharCode("0".charCodeAt(0)+f%10);try{for(var d=(r=void 0,v(o)),p=d.next();!p.done;p=d.next()){var m=p.value;s+=m}}catch(g){r={error:g}}finally{try{p&&!p.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}f>=10&&(l|=1<<1-c),1!==c&&(s=e.getNextSet(s),s=e.getNextUnset(s))}if(2!==n.length)throw new u["a"];if(parseInt(n.toString())%4!==l)throw new u["a"];return s},e.parseExtensionString=function(e){return 2!==e.length?null:new Map([[a["a"].ISSUE_NUMBER,parseInt(e)]])},e}(),y=b,w=function(){function e(){}return e.decodeRow=function(e,t,n){var r=h.findGuardPattern(t,n,!1,this.EXTENSION_START_PATTERN,new Int32Array(this.EXTENSION_START_PATTERN.length).fill(0));try{var i=new g;return i.decodeRow(e,t,r)}catch(a){var o=new y;return o.decodeRow(e,t,r)}},e.EXTENSION_START_PATTERN=Int32Array.from([1,1,2]),e}(),_=w,C=n("2d92"),x=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),S=function(e){function t(){var n=e.call(this)||this;n.decodeRowStringBuffer="",t.L_AND_G_PATTERNS=t.L_PATTERNS.map((function(e){return Int32Array.from(e)}));for(var r=10;r<20;r++){for(var i=t.L_PATTERNS[r-10],o=new Int32Array(i.length),a=0;a<i.length;a++)o[a]=i[i.length-a-1];t.L_AND_G_PATTERNS[r]=o}return n}return x(t,e),t.prototype.decodeRow=function(e,n,l){var f=t.findStartGuardPattern(n),d=null==l?null:l.get(i["a"].NEED_RESULT_POINT_CALLBACK);if(null!=d){var h=new s["a"]((f[0]+f[1])/2,e);d.foundPossibleResultPoint(h)}var p=this.decodeMiddle(n,f,this.decodeRowStringBuffer),m=p.rowOffset,g=p.resultString;if(null!=d){var v=new s["a"](m,e);d.foundPossibleResultPoint(v)}var b=t.decodeEnd(n,m);if(null!=d){var y=new s["a"]((b[0]+b[1])/2,e);d.foundPossibleResultPoint(y)}var w=b[1],x=w+(w-b[0]);if(x>=n.getSize()||!n.isRange(w,x,!1))throw new u["a"];var S=g.toString();if(S.length<8)throw new c["a"];if(!t.checkChecksum(S))throw new C["a"];var k=(f[1]+f[0])/2,D=(b[1]+b[0])/2,O=this.getBarcodeFormat(),T=[new s["a"](k,e),new s["a"](D,e)],E=new o["a"](S,null,0,T,O,(new Date).getTime()),I=0;try{var N=_.decodeRow(e,n,b[1]);E.putMetadata(a["a"].UPC_EAN_EXTENSION,N.getText()),E.putAllMetadata(N.getResultMetadata()),E.addResultPoints(N.getResultPoints()),I=N.getText().length}catch(R){}var A=null==l?null:l.get(i["a"].ALLOWED_EAN_EXTENSIONS);if(null!=A){var P=!1;for(var M in A)if(I.toString()===M){P=!0;break}if(!P)throw new u["a"]}return O===r["a"].EAN_13||r["a"].UPC_A,E},t.checkChecksum=function(e){return t.checkStandardUPCEANChecksum(e)},t.checkStandardUPCEANChecksum=function(e){var n=e.length;if(0===n)return!1;var r=parseInt(e.charAt(n-1),10);return t.getStandardUPCEANChecksum(e.substring(0,n-1))===r},t.getStandardUPCEANChecksum=function(e){for(var t=e.length,n=0,r=t-1;r>=0;r-=2){var i=e.charAt(r).charCodeAt(0)-"0".charCodeAt(0);if(i<0||i>9)throw new c["a"];n+=i}n*=3;for(r=t-2;r>=0;r-=2){i=e.charAt(r).charCodeAt(0)-"0".charCodeAt(0);if(i<0||i>9)throw new c["a"];n+=i}return(1e3-n)%10},t.decodeEnd=function(e,n){return t.findGuardPattern(e,n,!1,t.START_END_PATTERN,new Int32Array(t.START_END_PATTERN.length).fill(0))},t}(h);t["a"]=S},ab5b:function(e,t,n){"use strict";var r=n("cb12"),i=n("fb63"),o=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=function(){function e(){}return e.prototype.PDF417Common=function(){},e.getBitCountSum=function(e){return i["a"].sum(e)},e.toIntArray=function(t){var n,r;if(null==t||!t.length)return e.EMPTY_INT_ARRAY;var i=new Int32Array(t.length),a=0;try{for(var s=o(t),l=s.next();!l.done;l=s.next()){var u=l.value;i[a++]=u}}catch(c){n={error:c}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return i},e.getCodeword=function(t){var n=r["a"].binarySearch(e.SYMBOL_TABLE,262143&t);return n<0?-1:(e.CODEWORD_TABLE[n]-1)%e.NUMBER_OF_CODEWORDS},e.NUMBER_OF_CODEWORDS=929,e.MAX_CODEWORDS_IN_BARCODE=e.NUMBER_OF_CODEWORDS-1,e.MIN_ROWS_IN_BARCODE=3,e.MAX_ROWS_IN_BARCODE=90,e.MODULES_IN_CODEWORD=17,e.MODULES_IN_STOP_PATTERN=18,e.BARS_IN_MODULE=8,e.EMPTY_INT_ARRAY=new Int32Array([]),e.SYMBOL_TABLE=Int32Array.from([66142,66170,66206,66236,66290,66292,66350,66382,66396,66454,66470,66476,66594,66600,66614,66626,66628,66632,66640,66654,66662,66668,66682,66690,66718,66720,66748,66758,66776,66798,66802,66804,66820,66824,66832,66846,66848,66876,66880,66936,66950,66956,66968,66992,67006,67022,67036,67042,67044,67048,67062,67118,67150,67164,67214,67228,67256,67294,67322,67350,67366,67372,67398,67404,67416,67438,67474,67476,67490,67492,67496,67510,67618,67624,67650,67656,67664,67678,67686,67692,67706,67714,67716,67728,67742,67744,67772,67782,67788,67800,67822,67826,67828,67842,67848,67870,67872,67900,67904,67960,67974,67992,68016,68030,68046,68060,68066,68068,68072,68086,68104,68112,68126,68128,68156,68160,68216,68336,68358,68364,68376,68400,68414,68448,68476,68494,68508,68536,68546,68548,68552,68560,68574,68582,68588,68654,68686,68700,68706,68708,68712,68726,68750,68764,68792,68802,68804,68808,68816,68830,68838,68844,68858,68878,68892,68920,68976,68990,68994,68996,69e3,69008,69022,69024,69052,69062,69068,69080,69102,69106,69108,69142,69158,69164,69190,69208,69230,69254,69260,69272,69296,69310,69326,69340,69386,69394,69396,69410,69416,69430,69442,69444,69448,69456,69470,69478,69484,69554,69556,69666,69672,69698,69704,69712,69726,69754,69762,69764,69776,69790,69792,69820,69830,69836,69848,69870,69874,69876,69890,69918,69920,69948,69952,70008,70022,70040,70064,70078,70094,70108,70114,70116,70120,70134,70152,70174,70176,70264,70384,70412,70448,70462,70496,70524,70542,70556,70584,70594,70600,70608,70622,70630,70636,70664,70672,70686,70688,70716,70720,70776,70896,71136,71180,71192,71216,71230,71264,71292,71360,71416,71452,71480,71536,71550,71554,71556,71560,71568,71582,71584,71612,71622,71628,71640,71662,71726,71732,71758,71772,71778,71780,71784,71798,71822,71836,71864,71874,71880,71888,71902,71910,71916,71930,71950,71964,71992,72048,72062,72066,72068,72080,72094,72096,72124,72134,72140,72152,72174,72178,72180,72206,72220,72248,72304,72318,72416,72444,72456,72464,72478,72480,72508,72512,72568,72588,72600,72624,72638,72654,72668,72674,72676,72680,72694,72726,72742,72748,72774,72780,72792,72814,72838,72856,72880,72894,72910,72924,72930,72932,72936,72950,72966,72972,72984,73008,73022,73056,73084,73102,73116,73144,73156,73160,73168,73182,73190,73196,73210,73226,73234,73236,73250,73252,73256,73270,73282,73284,73296,73310,73318,73324,73346,73348,73352,73360,73374,73376,73404,73414,73420,73432,73454,73498,73518,73522,73524,73550,73564,73570,73572,73576,73590,73800,73822,73858,73860,73872,73886,73888,73916,73944,73970,73972,73992,74014,74016,74044,74048,74104,74118,74136,74160,74174,74210,74212,74216,74230,74244,74256,74270,74272,74360,74480,74502,74508,74544,74558,74592,74620,74638,74652,74680,74690,74696,74704,74726,74732,74782,74784,74812,74992,75232,75288,75326,75360,75388,75456,75512,75576,75632,75646,75650,75652,75664,75678,75680,75708,75718,75724,75736,75758,75808,75836,75840,75896,76016,76256,76736,76824,76848,76862,76896,76924,76992,77048,77296,77340,77368,77424,77438,77536,77564,77572,77576,77584,77600,77628,77632,77688,77702,77708,77720,77744,77758,77774,77788,77870,77902,77916,77922,77928,77966,77980,78008,78018,78024,78032,78046,78060,78074,78094,78136,78192,78206,78210,78212,78224,78238,78240,78268,78278,78284,78296,78322,78324,78350,78364,78448,78462,78560,78588,78600,78622,78624,78652,78656,78712,78726,78744,78768,78782,78798,78812,78818,78820,78824,78838,78862,78876,78904,78960,78974,79072,79100,79296,79352,79368,79376,79390,79392,79420,79424,79480,79600,79628,79640,79664,79678,79712,79740,79772,79800,79810,79812,79816,79824,79838,79846,79852,79894,79910,79916,79942,79948,79960,79982,79988,80006,80024,80048,80062,80078,80092,80098,80100,80104,80134,80140,80176,80190,80224,80252,80270,80284,80312,80328,80336,80350,80358,80364,80378,80390,80396,80408,80432,80446,80480,80508,80576,80632,80654,80668,80696,80752,80766,80776,80784,80798,80800,80828,80844,80856,80878,80882,80884,80914,80916,80930,80932,80936,80950,80962,80968,80976,80990,80998,81004,81026,81028,81040,81054,81056,81084,81094,81100,81112,81134,81154,81156,81160,81168,81182,81184,81212,81216,81272,81286,81292,81304,81328,81342,81358,81372,81380,81384,81398,81434,81454,81458,81460,81486,81500,81506,81508,81512,81526,81550,81564,81592,81602,81604,81608,81616,81630,81638,81644,81702,81708,81722,81734,81740,81752,81774,81778,81780,82050,82078,82080,82108,82180,82184,82192,82206,82208,82236,82240,82296,82316,82328,82352,82366,82402,82404,82408,82440,82448,82462,82464,82492,82496,82552,82672,82694,82700,82712,82736,82750,82784,82812,82830,82882,82884,82888,82896,82918,82924,82952,82960,82974,82976,83004,83008,83064,83184,83424,83468,83480,83504,83518,83552,83580,83648,83704,83740,83768,83824,83838,83842,83844,83848,83856,83872,83900,83910,83916,83928,83950,83984,84e3,84028,84032,84088,84208,84448,84928,85040,85054,85088,85116,85184,85240,85488,85560,85616,85630,85728,85756,85764,85768,85776,85790,85792,85820,85824,85880,85894,85900,85912,85936,85966,85980,86048,86080,86136,86256,86496,86976,88160,88188,88256,88312,88560,89056,89200,89214,89312,89340,89536,89592,89608,89616,89632,89664,89720,89840,89868,89880,89904,89952,89980,89998,90012,90040,90190,90204,90254,90268,90296,90306,90308,90312,90334,90382,90396,90424,90480,90494,90500,90504,90512,90526,90528,90556,90566,90572,90584,90610,90612,90638,90652,90680,90736,90750,90848,90876,90884,90888,90896,90910,90912,90940,90944,91e3,91014,91020,91032,91056,91070,91086,91100,91106,91108,91112,91126,91150,91164,91192,91248,91262,91360,91388,91584,91640,91664,91678,91680,91708,91712,91768,91888,91928,91952,91966,92e3,92028,92046,92060,92088,92098,92100,92104,92112,92126,92134,92140,92188,92216,92272,92384,92412,92608,92664,93168,93200,93214,93216,93244,93248,93304,93424,93664,93720,93744,93758,93792,93820,93888,93944,93980,94008,94064,94078,94084,94088,94096,94110,94112,94140,94150,94156,94168,94246,94252,94278,94284,94296,94318,94342,94348,94360,94384,94398,94414,94428,94440,94470,94476,94488,94512,94526,94560,94588,94606,94620,94648,94658,94660,94664,94672,94686,94694,94700,94714,94726,94732,94744,94768,94782,94816,94844,94912,94968,94990,95004,95032,95088,95102,95112,95120,95134,95136,95164,95180,95192,95214,95218,95220,95244,95256,95280,95294,95328,95356,95424,95480,95728,95758,95772,95800,95856,95870,95968,95996,96008,96016,96030,96032,96060,96064,96120,96152,96176,96190,96220,96226,96228,96232,96290,96292,96296,96310,96322,96324,96328,96336,96350,96358,96364,96386,96388,96392,96400,96414,96416,96444,96454,96460,96472,96494,96498,96500,96514,96516,96520,96528,96542,96544,96572,96576,96632,96646,96652,96664,96688,96702,96718,96732,96738,96740,96744,96758,96772,96776,96784,96798,96800,96828,96832,96888,97008,97030,97036,97048,97072,97086,97120,97148,97166,97180,97208,97220,97224,97232,97246,97254,97260,97326,97330,97332,97358,97372,97378,97380,97384,97398,97422,97436,97464,97474,97476,97480,97488,97502,97510,97516,97550,97564,97592,97648,97666,97668,97672,97680,97694,97696,97724,97734,97740,97752,97774,97830,97836,97850,97862,97868,97880,97902,97906,97908,97926,97932,97944,97968,97998,98012,98018,98020,98024,98038,98618,98674,98676,98838,98854,98874,98892,98904,98926,98930,98932,98968,99006,99042,99044,99048,99062,99166,99194,99246,99286,99350,99366,99372,99386,99398,99416,99438,99442,99444,99462,99504,99518,99534,99548,99554,99556,99560,99574,99590,99596,99608,99632,99646,99680,99708,99726,99740,99768,99778,99780,99784,99792,99806,99814,99820,99834,99858,99860,99874,99880,99894,99906,99920,99934,99962,99970,99972,99976,99984,99998,1e5,100028,100038,100044,100056,100078,100082,100084,100142,100174,100188,100246,100262,100268,100306,100308,100390,100396,100410,100422,100428,100440,100462,100466,100468,100486,100504,100528,100542,100558,100572,100578,100580,100584,100598,100620,100656,100670,100704,100732,100750,100792,100802,100808,100816,100830,100838,100844,100858,100888,100912,100926,100960,100988,101056,101112,101148,101176,101232,101246,101250,101252,101256,101264,101278,101280,101308,101318,101324,101336,101358,101362,101364,101410,101412,101416,101430,101442,101448,101456,101470,101478,101498,101506,101508,101520,101534,101536,101564,101580,101618,101620,101636,101640,101648,101662,101664,101692,101696,101752,101766,101784,101838,101858,101860,101864,101934,101938,101940,101966,101980,101986,101988,101992,102030,102044,102072,102082,102084,102088,102096,102138,102166,102182,102188,102214,102220,102232,102254,102282,102290,102292,102306,102308,102312,102326,102444,102458,102470,102476,102488,102514,102516,102534,102552,102576,102590,102606,102620,102626,102632,102646,102662,102668,102704,102718,102752,102780,102798,102812,102840,102850,102856,102864,102878,102886,102892,102906,102936,102974,103008,103036,103104,103160,103224,103280,103294,103298,103300,103312,103326,103328,103356,103366,103372,103384,103406,103410,103412,103472,103486,103520,103548,103616,103672,103920,103992,104048,104062,104160,104188,104194,104196,104200,104208,104224,104252,104256,104312,104326,104332,104344,104368,104382,104398,104412,104418,104420,104424,104482,104484,104514,104520,104528,104542,104550,104570,104578,104580,104592,104606,104608,104636,104652,104690,104692,104706,104712,104734,104736,104764,104768,104824,104838,104856,104910,104930,104932,104936,104968,104976,104990,104992,105020,105024,105080,105200,105240,105278,105312,105372,105410,105412,105416,105424,105446,105518,105524,105550,105564,105570,105572,105576,105614,105628,105656,105666,105672,105680,105702,105722,105742,105756,105784,105840,105854,105858,105860,105864,105872,105888,105932,105970,105972,106006,106022,106028,106054,106060,106072,106100,106118,106124,106136,106160,106174,106190,106210,106212,106216,106250,106258,106260,106274,106276,106280,106306,106308,106312,106320,106334,106348,106394,106414,106418,106420,106566,106572,106610,106612,106630,106636,106648,106672,106686,106722,106724,106728,106742,106758,106764,106776,106800,106814,106848,106876,106894,106908,106936,106946,106948,106952,106960,106974,106982,106988,107032,107056,107070,107104,107132,107200,107256,107292,107320,107376,107390,107394,107396,107400,107408,107422,107424,107452,107462,107468,107480,107502,107506,107508,107544,107568,107582,107616,107644,107712,107768,108016,108060,108088,108144,108158,108256,108284,108290,108292,108296,108304,108318,108320,108348,108352,108408,108422,108428,108440,108464,108478,108494,108508,108514,108516,108520,108592,108640,108668,108736,108792,109040,109536,109680,109694,109792,109820,110016,110072,110084,110088,110096,110112,110140,110144,110200,110320,110342,110348,110360,110384,110398,110432,110460,110478,110492,110520,110532,110536,110544,110558,110658,110686,110714,110722,110724,110728,110736,110750,110752,110780,110796,110834,110836,110850,110852,110856,110864,110878,110880,110908,110912,110968,110982,111e3,111054,111074,111076,111080,111108,111112,111120,111134,111136,111164,111168,111224,111344,111372,111422,111456,111516,111554,111556,111560,111568,111590,111632,111646,111648,111676,111680,111736,111856,112096,112152,112224,112252,112320,112440,112514,112516,112520,112528,112542,112544,112588,112686,112718,112732,112782,112796,112824,112834,112836,112840,112848,112870,112890,112910,112924,112952,113008,113022,113026,113028,113032,113040,113054,113056,113100,113138,113140,113166,113180,113208,113264,113278,113376,113404,113416,113424,113440,113468,113472,113560,113614,113634,113636,113640,113686,113702,113708,113734,113740,113752,113778,113780,113798,113804,113816,113840,113854,113870,113890,113892,113896,113926,113932,113944,113968,113982,114016,114044,114076,114114,114116,114120,114128,114150,114170,114194,114196,114210,114212,114216,114242,114244,114248,114256,114270,114278,114306,114308,114312,114320,114334,114336,114364,114380,114420,114458,114478,114482,114484,114510,114524,114530,114532,114536,114842,114866,114868,114970,114994,114996,115042,115044,115048,115062,115130,115226,115250,115252,115278,115292,115298,115300,115304,115318,115342,115394,115396,115400,115408,115422,115430,115436,115450,115478,115494,115514,115526,115532,115570,115572,115738,115758,115762,115764,115790,115804,115810,115812,115816,115830,115854,115868,115896,115906,115912,115920,115934,115942,115948,115962,115996,116024,116080,116094,116098,116100,116104,116112,116126,116128,116156,116166,116172,116184,116206,116210,116212,116246,116262,116268,116282,116294,116300,116312,116334,116338,116340,116358,116364,116376,116400,116414,116430,116444,116450,116452,116456,116498,116500,116514,116520,116534,116546,116548,116552,116560,116574,116582,116588,116602,116654,116694,116714,116762,116782,116786,116788,116814,116828,116834,116836,116840,116854,116878,116892,116920,116930,116936,116944,116958,116966,116972,116986,117006,117048,117104,117118,117122,117124,117136,117150,117152,117180,117190,117196,117208,117230,117234,117236,117304,117360,117374,117472,117500,117506,117508,117512,117520,117536,117564,117568,117624,117638,117644,117656,117680,117694,117710,117724,117730,117732,117736,117750,117782,117798,117804,117818,117830,117848,117874,117876,117894,117936,117950,117966,117986,117988,117992,118022,118028,118040,118064,118078,118112,118140,118172,118210,118212,118216,118224,118238,118246,118266,118306,118312,118338,118352,118366,118374,118394,118402,118404,118408,118416,118430,118432,118460,118476,118514,118516,118574,118578,118580,118606,118620,118626,118628,118632,118678,118694,118700,118730,118738,118740,118830,118834,118836,118862,118876,118882,118884,118888,118902,118926,118940,118968,118978,118980,118984,118992,119006,119014,119020,119034,119068,119096,119152,119166,119170,119172,119176,119184,119198,119200,119228,119238,119244,119256,119278,119282,119284,119324,119352,119408,119422,119520,119548,119554,119556,119560,119568,119582,119584,119612,119616,119672,119686,119692,119704,119728,119742,119758,119772,119778,119780,119784,119798,119920,119934,120032,120060,120256,120312,120324,120328,120336,120352,120384,120440,120560,120582,120588,120600,120624,120638,120672,120700,120718,120732,120760,120770,120772,120776,120784,120798,120806,120812,120870,120876,120890,120902,120908,120920,120946,120948,120966,120972,120984,121008,121022,121038,121058,121060,121064,121078,121100,121112,121136,121150,121184,121212,121244,121282,121284,121288,121296,121318,121338,121356,121368,121392,121406,121440,121468,121536,121592,121656,121730,121732,121736,121744,121758,121760,121804,121842,121844,121890,121922,121924,121928,121936,121950,121958,121978,121986,121988,121992,122e3,122014,122016,122044,122060,122098,122100,122116,122120,122128,122142,122144,122172,122176,122232,122246,122264,122318,122338,122340,122344,122414,122418,122420,122446,122460,122466,122468,122472,122510,122524,122552,122562,122564,122568,122576,122598,122618,122646,122662,122668,122694,122700,122712,122738,122740,122762,122770,122772,122786,122788,122792,123018,123026,123028,123042,123044,123048,123062,123098,123146,123154,123156,123170,123172,123176,123190,123202,123204,123208,123216,123238,123244,123258,123290,123314,123316,123402,123410,123412,123426,123428,123432,123446,123458,123464,123472,123486,123494,123500,123514,123522,123524,123528,123536,123552,123580,123590,123596,123608,123630,123634,123636,123674,123698,123700,123740,123746,123748,123752,123834,123914,123922,123924,123938,123944,123958,123970,123976,123984,123998,124006,124012,124026,124034,124036,124048,124062,124064,124092,124102,124108,124120,124142,124146,124148,124162,124164,124168,124176,124190,124192,124220,124224,124280,124294,124300,124312,124336,124350,124366,124380,124386,124388,124392,124406,124442,124462,124466,124468,124494,124508,124514,124520,124558,124572,124600,124610,124612,124616,124624,124646,124666,124694,124710,124716,124730,124742,124748,124760,124786,124788,124818,124820,124834,124836,124840,124854,124946,124948,124962,124964,124968,124982,124994,124996,125e3,125008,125022,125030,125036,125050,125058,125060,125064,125072,125086,125088,125116,125126,125132,125144,125166,125170,125172,125186,125188,125192,125200,125216,125244,125248,125304,125318,125324,125336,125360,125374,125390,125404,125410,125412,125416,125430,125444,125448,125456,125472,125504,125560,125680,125702,125708,125720,125744,125758,125792,125820,125838,125852,125880,125890,125892,125896,125904,125918,125926,125932,125978,125998,126002,126004,126030,126044,126050,126052,126056,126094,126108,126136,126146,126148,126152,126160,126182,126202,126222,126236,126264,126320,126334,126338,126340,126344,126352,126366,126368,126412,126450,126452,126486,126502,126508,126522,126534,126540,126552,126574,126578,126580,126598,126604,126616,126640,126654,126670,126684,126690,126692,126696,126738,126754,126756,126760,126774,126786,126788,126792,126800,126814,126822,126828,126842,126894,126898,126900,126934,127126,127142,127148,127162,127178,127186,127188,127254,127270,127276,127290,127302,127308,127320,127342,127346,127348,127370,127378,127380,127394,127396,127400,127450,127510,127526,127532,127546,127558,127576,127598,127602,127604,127622,127628,127640,127664,127678,127694,127708,127714,127716,127720,127734,127754,127762,127764,127778,127784,127810,127812,127816,127824,127838,127846,127866,127898,127918,127922,127924,128022,128038,128044,128058,128070,128076,128088,128110,128114,128116,128134,128140,128152,128176,128190,128206,128220,128226,128228,128232,128246,128262,128268,128280,128304,128318,128352,128380,128398,128412,128440,128450,128452,128456,128464,128478,128486,128492,128506,128522,128530,128532,128546,128548,128552,128566,128578,128580,128584,128592,128606,128614,128634,128642,128644,128648,128656,128670,128672,128700,128716,128754,128756,128794,128814,128818,128820,128846,128860,128866,128868,128872,128886,128918,128934,128940,128954,128978,128980,129178,129198,129202,129204,129238,129258,129306,129326,129330,129332,129358,129372,129378,129380,129384,129398,129430,129446,129452,129466,129482,129490,129492,129562,129582,129586,129588,129614,129628,129634,129636,129640,129654,129678,129692,129720,129730,129732,129736,129744,129758,129766,129772,129814,129830,129836,129850,129862,129868,129880,129902,129906,129908,129930,129938,129940,129954,129956,129960,129974,130010]),e.CODEWORD_TABLE=Int32Array.from([2627,1819,2622,2621,1813,1812,2729,2724,2723,2779,2774,2773,902,896,908,868,865,861,859,2511,873,871,1780,835,2493,825,2491,842,837,844,1764,1762,811,810,809,2483,807,2482,806,2480,815,814,813,812,2484,817,816,1745,1744,1742,1746,2655,2637,2635,2626,2625,2623,2628,1820,2752,2739,2737,2728,2727,2725,2730,2785,2783,2778,2777,2775,2780,787,781,747,739,736,2413,754,752,1719,692,689,681,2371,678,2369,700,697,694,703,1688,1686,642,638,2343,631,2341,627,2338,651,646,643,2345,654,652,1652,1650,1647,1654,601,599,2322,596,2321,594,2319,2317,611,610,608,606,2324,603,2323,615,614,612,1617,1616,1614,1612,616,1619,1618,2575,2538,2536,905,901,898,909,2509,2507,2504,870,867,864,860,2512,875,872,1781,2490,2489,2487,2485,1748,836,834,832,830,2494,827,2492,843,841,839,845,1765,1763,2701,2676,2674,2653,2648,2656,2634,2633,2631,2629,1821,2638,2636,2770,2763,2761,2750,2745,2753,2736,2735,2733,2731,1848,2740,2738,2786,2784,591,588,576,569,566,2296,1590,537,534,526,2276,522,2274,545,542,539,548,1572,1570,481,2245,466,2242,462,2239,492,485,482,2249,496,494,1534,1531,1528,1538,413,2196,406,2191,2188,425,419,2202,415,2199,432,430,427,1472,1467,1464,433,1476,1474,368,367,2160,365,2159,362,2157,2155,2152,378,377,375,2166,372,2165,369,2162,383,381,379,2168,1419,1418,1416,1414,385,1411,384,1423,1422,1420,1424,2461,802,2441,2439,790,786,783,794,2409,2406,2403,750,742,738,2414,756,753,1720,2367,2365,2362,2359,1663,693,691,684,2373,680,2370,702,699,696,704,1690,1687,2337,2336,2334,2332,1624,2329,1622,640,637,2344,634,2342,630,2340,650,648,645,2346,655,653,1653,1651,1649,1655,2612,2597,2595,2571,2568,2565,2576,2534,2529,2526,1787,2540,2537,907,904,900,910,2503,2502,2500,2498,1768,2495,1767,2510,2508,2506,869,866,863,2513,876,874,1782,2720,2713,2711,2697,2694,2691,2702,2672,2670,2664,1828,2678,2675,2647,2646,2644,2642,1823,2639,1822,2654,2652,2650,2657,2771,1855,2765,2762,1850,1849,2751,2749,2747,2754,353,2148,344,342,336,2142,332,2140,345,1375,1373,306,2130,299,2128,295,2125,319,314,311,2132,1354,1352,1349,1356,262,257,2101,253,2096,2093,274,273,267,2107,263,2104,280,278,275,1316,1311,1308,1320,1318,2052,202,2050,2044,2040,219,2063,212,2060,208,2055,224,221,2066,1260,1258,1252,231,1248,229,1266,1264,1261,1268,155,1998,153,1996,1994,1991,1988,165,164,2007,162,2006,159,2003,2e3,172,171,169,2012,166,2010,1186,1184,1182,1179,175,1176,173,1192,1191,1189,1187,176,1194,1193,2313,2307,2305,592,589,2294,2292,2289,578,572,568,2297,580,1591,2272,2267,2264,1547,538,536,529,2278,525,2275,547,544,541,1574,1571,2237,2235,2229,1493,2225,1489,478,2247,470,2244,465,2241,493,488,484,2250,498,495,1536,1533,1530,1539,2187,2186,2184,2182,1432,2179,1430,2176,1427,414,412,2197,409,2195,405,2193,2190,426,424,421,2203,418,2201,431,429,1473,1471,1469,1466,434,1477,1475,2478,2472,2470,2459,2457,2454,2462,803,2437,2432,2429,1726,2443,2440,792,789,785,2401,2399,2393,1702,2389,1699,2411,2408,2405,745,741,2415,758,755,1721,2358,2357,2355,2353,1661,2350,1660,2347,1657,2368,2366,2364,2361,1666,690,687,2374,683,2372,701,698,705,1691,1689,2619,2617,2610,2608,2605,2613,2593,2588,2585,1803,2599,2596,2563,2561,2555,1797,2551,1795,2573,2570,2567,2577,2525,2524,2522,2520,1786,2517,1785,2514,1783,2535,2533,2531,2528,1788,2541,2539,906,903,911,2721,1844,2715,2712,1838,1836,2699,2696,2693,2703,1827,1826,1824,2673,2671,2669,2666,1829,2679,2677,1858,1857,2772,1854,1853,1851,1856,2766,2764,143,1987,139,1986,135,133,131,1984,128,1983,125,1981,138,137,136,1985,1133,1132,1130,112,110,1974,107,1973,104,1971,1969,122,121,119,117,1977,114,1976,124,1115,1114,1112,1110,1117,1116,84,83,1953,81,1952,78,1950,1948,1945,94,93,91,1959,88,1958,85,1955,99,97,95,1961,1086,1085,1083,1081,1078,100,1090,1089,1087,1091,49,47,1917,44,1915,1913,1910,1907,59,1926,56,1925,53,1922,1919,66,64,1931,61,1929,1042,1040,1038,71,1035,70,1032,68,1048,1047,1045,1043,1050,1049,12,10,1869,1867,1864,1861,21,1880,19,1877,1874,1871,28,1888,25,1886,22,1883,982,980,977,974,32,30,991,989,987,984,34,995,994,992,2151,2150,2147,2146,2144,356,355,354,2149,2139,2138,2136,2134,1359,343,341,338,2143,335,2141,348,347,346,1376,1374,2124,2123,2121,2119,1326,2116,1324,310,308,305,2131,302,2129,298,2127,320,318,316,313,2133,322,321,1355,1353,1351,1357,2092,2091,2089,2087,1276,2084,1274,2081,1271,259,2102,256,2100,252,2098,2095,272,269,2108,266,2106,281,279,277,1317,1315,1313,1310,282,1321,1319,2039,2037,2035,2032,1203,2029,1200,1197,207,2053,205,2051,201,2049,2046,2043,220,218,2064,215,2062,211,2059,228,226,223,2069,1259,1257,1254,232,1251,230,1267,1265,1263,2316,2315,2312,2311,2309,2314,2304,2303,2301,2299,1593,2308,2306,590,2288,2287,2285,2283,1578,2280,1577,2295,2293,2291,579,577,574,571,2298,582,581,1592,2263,2262,2260,2258,1545,2255,1544,2252,1541,2273,2271,2269,2266,1550,535,532,2279,528,2277,546,543,549,1575,1573,2224,2222,2220,1486,2217,1485,2214,1482,1479,2238,2236,2234,2231,1496,2228,1492,480,477,2248,473,2246,469,2243,490,487,2251,497,1537,1535,1532,2477,2476,2474,2479,2469,2468,2466,2464,1730,2473,2471,2453,2452,2450,2448,1729,2445,1728,2460,2458,2456,2463,805,804,2428,2427,2425,2423,1725,2420,1724,2417,1722,2438,2436,2434,2431,1727,2444,2442,793,791,788,795,2388,2386,2384,1697,2381,1696,2378,1694,1692,2402,2400,2398,2395,1703,2392,1701,2412,2410,2407,751,748,744,2416,759,757,1807,2620,2618,1806,1805,2611,2609,2607,2614,1802,1801,1799,2594,2592,2590,2587,1804,2600,2598,1794,1793,1791,1789,2564,2562,2560,2557,1798,2554,1796,2574,2572,2569,2578,1847,1846,2722,1843,1842,1840,1845,2716,2714,1835,1834,1832,1830,1839,1837,2700,2698,2695,2704,1817,1811,1810,897,862,1777,829,826,838,1760,1758,808,2481,1741,1740,1738,1743,2624,1818,2726,2776,782,740,737,1715,686,679,695,1682,1680,639,628,2339,647,644,1645,1643,1640,1648,602,600,597,595,2320,593,2318,609,607,604,1611,1610,1608,1606,613,1615,1613,2328,926,924,892,886,899,857,850,2505,1778,824,823,821,819,2488,818,2486,833,831,828,840,1761,1759,2649,2632,2630,2746,2734,2732,2782,2781,570,567,1587,531,527,523,540,1566,1564,476,467,463,2240,486,483,1524,1521,1518,1529,411,403,2192,399,2189,423,416,1462,1457,1454,428,1468,1465,2210,366,363,2158,360,2156,357,2153,376,373,370,2163,1410,1409,1407,1405,382,1402,380,1417,1415,1412,1421,2175,2174,777,774,771,784,732,725,722,2404,743,1716,676,674,668,2363,665,2360,685,1684,1681,626,624,622,2335,620,2333,617,2330,641,635,649,1646,1644,1642,2566,928,925,2530,2527,894,891,888,2501,2499,2496,858,856,854,851,1779,2692,2668,2665,2645,2643,2640,2651,2768,2759,2757,2744,2743,2741,2748,352,1382,340,337,333,1371,1369,307,300,296,2126,315,312,1347,1342,1350,261,258,250,2097,246,2094,271,268,264,1306,1301,1298,276,1312,1309,2115,203,2048,195,2045,191,2041,213,209,2056,1246,1244,1238,225,1234,222,1256,1253,1249,1262,2080,2079,154,1997,150,1995,147,1992,1989,163,160,2004,156,2001,1175,1174,1172,1170,1167,170,1164,167,1185,1183,1180,1177,174,1190,1188,2025,2024,2022,587,586,564,559,556,2290,573,1588,520,518,512,2268,508,2265,530,1568,1565,461,457,2233,450,2230,446,2226,479,471,489,1526,1523,1520,397,395,2185,392,2183,389,2180,2177,410,2194,402,422,1463,1461,1459,1456,1470,2455,799,2433,2430,779,776,773,2397,2394,2390,734,728,724,746,1717,2356,2354,2351,2348,1658,677,675,673,670,667,688,1685,1683,2606,2589,2586,2559,2556,2552,927,2523,2521,2518,2515,1784,2532,895,893,890,2718,2709,2707,2689,2687,2684,2663,2662,2660,2658,1825,2667,2769,1852,2760,2758,142,141,1139,1138,134,132,129,126,1982,1129,1128,1126,1131,113,111,108,105,1972,101,1970,120,118,115,1109,1108,1106,1104,123,1113,1111,82,79,1951,75,1949,72,1946,92,89,86,1956,1077,1076,1074,1072,98,1069,96,1084,1082,1079,1088,1968,1967,48,45,1916,42,1914,39,1911,1908,60,57,54,1923,50,1920,1031,1030,1028,1026,67,1023,65,1020,62,1041,1039,1036,1033,69,1046,1044,1944,1943,1941,11,9,1868,7,1865,1862,1859,20,1878,16,1875,13,1872,970,968,966,963,29,960,26,23,983,981,978,975,33,971,31,990,988,985,1906,1904,1902,993,351,2145,1383,331,330,328,326,2137,323,2135,339,1372,1370,294,293,291,289,2122,286,2120,283,2117,309,303,317,1348,1346,1344,245,244,242,2090,239,2088,236,2085,2082,260,2099,249,270,1307,1305,1303,1300,1314,189,2038,186,2036,183,2033,2030,2026,206,198,2047,194,216,1247,1245,1243,1240,227,1237,1255,2310,2302,2300,2286,2284,2281,565,563,561,558,575,1589,2261,2259,2256,2253,1542,521,519,517,514,2270,511,533,1569,1567,2223,2221,2218,2215,1483,2211,1480,459,456,453,2232,449,474,491,1527,1525,1522,2475,2467,2465,2451,2449,2446,801,800,2426,2424,2421,2418,1723,2435,780,778,775,2387,2385,2382,2379,1695,2375,1693,2396,735,733,730,727,749,1718,2616,2615,2604,2603,2601,2584,2583,2581,2579,1800,2591,2550,2549,2547,2545,1792,2542,1790,2558,929,2719,1841,2710,2708,1833,1831,2690,2688,2686,1815,1809,1808,1774,1756,1754,1737,1736,1734,1739,1816,1711,1676,1674,633,629,1638,1636,1633,1641,598,1605,1604,1602,1600,605,1609,1607,2327,887,853,1775,822,820,1757,1755,1584,524,1560,1558,468,464,1514,1511,1508,1519,408,404,400,1452,1447,1444,417,1458,1455,2208,364,361,358,2154,1401,1400,1398,1396,374,1393,371,1408,1406,1403,1413,2173,2172,772,726,723,1712,672,669,666,682,1678,1675,625,623,621,618,2331,636,632,1639,1637,1635,920,918,884,880,889,849,848,847,846,2497,855,852,1776,2641,2742,2787,1380,334,1367,1365,301,297,1340,1338,1335,1343,255,251,247,1296,1291,1288,265,1302,1299,2113,204,196,192,2042,1232,1230,1224,214,1220,210,1242,1239,1235,1250,2077,2075,151,148,1993,144,1990,1163,1162,1160,1158,1155,161,1152,157,1173,1171,1168,1165,168,1181,1178,2021,2020,2018,2023,585,560,557,1585,516,509,1562,1559,458,447,2227,472,1516,1513,1510,398,396,393,390,2181,386,2178,407,1453,1451,1449,1446,420,1460,2209,769,764,720,712,2391,729,1713,664,663,661,659,2352,656,2349,671,1679,1677,2553,922,919,2519,2516,885,883,881,2685,2661,2659,2767,2756,2755,140,1137,1136,130,127,1125,1124,1122,1127,109,106,102,1103,1102,1100,1098,116,1107,1105,1980,80,76,73,1947,1068,1067,1065,1063,90,1060,87,1075,1073,1070,1080,1966,1965,46,43,40,1912,36,1909,1019,1018,1016,1014,58,1011,55,1008,51,1029,1027,1024,1021,63,1037,1034,1940,1939,1937,1942,8,1866,4,1863,1,1860,956,954,952,949,946,17,14,969,967,964,961,27,957,24,979,976,972,1901,1900,1898,1896,986,1905,1903,350,349,1381,329,327,324,1368,1366,292,290,287,284,2118,304,1341,1339,1337,1345,243,240,237,2086,233,2083,254,1297,1295,1293,1290,1304,2114,190,187,184,2034,180,2031,177,2027,199,1233,1231,1229,1226,217,1223,1241,2078,2076,584,555,554,552,550,2282,562,1586,507,506,504,502,2257,499,2254,515,1563,1561,445,443,441,2219,438,2216,435,2212,460,454,475,1517,1515,1512,2447,798,797,2422,2419,770,768,766,2383,2380,2376,721,719,717,714,731,1714,2602,2582,2580,2548,2546,2543,923,921,2717,2706,2705,2683,2682,2680,1771,1752,1750,1733,1732,1731,1735,1814,1707,1670,1668,1631,1629,1626,1634,1599,1598,1596,1594,1603,1601,2326,1772,1753,1751,1581,1554,1552,1504,1501,1498,1509,1442,1437,1434,401,1448,1445,2206,1392,1391,1389,1387,1384,359,1399,1397,1394,1404,2171,2170,1708,1672,1669,619,1632,1630,1628,1773,1378,1363,1361,1333,1328,1336,1286,1281,1278,248,1292,1289,2111,1218,1216,1210,197,1206,193,1228,1225,1221,1236,2073,2071,1151,1150,1148,1146,152,1143,149,1140,145,1161,1159,1156,1153,158,1169,1166,2017,2016,2014,2019,1582,510,1556,1553,452,448,1506,1500,394,391,387,1443,1441,1439,1436,1450,2207,765,716,713,1709,662,660,657,1673,1671,916,914,879,878,877,882,1135,1134,1121,1120,1118,1123,1097,1096,1094,1092,103,1101,1099,1979,1059,1058,1056,1054,77,1051,74,1066,1064,1061,1071,1964,1963,1007,1006,1004,1002,999,41,996,37,1017,1015,1012,1009,52,1025,1022,1936,1935,1933,1938,942,940,938,935,932,5,2,955,953,950,947,18,943,15,965,962,958,1895,1894,1892,1890,973,1899,1897,1379,325,1364,1362,288,285,1334,1332,1330,241,238,234,1287,1285,1283,1280,1294,2112,188,185,181,178,2028,1219,1217,1215,1212,200,1209,1227,2074,2072,583,553,551,1583,505,503,500,513,1557,1555,444,442,439,436,2213,455,451,1507,1505,1502,796,763,762,760,767,711,710,708,706,2377,718,715,1710,2544,917,915,2681,1627,1597,1595,2325,1769,1749,1747,1499,1438,1435,2204,1390,1388,1385,1395,2169,2167,1704,1665,1662,1625,1623,1620,1770,1329,1282,1279,2109,1214,1207,1222,2068,2065,1149,1147,1144,1141,146,1157,1154,2013,2011,2008,2015,1579,1549,1546,1495,1487,1433,1431,1428,1425,388,1440,2205,1705,658,1667,1664,1119,1095,1093,1978,1057,1055,1052,1062,1962,1960,1005,1003,1e3,997,38,1013,1010,1932,1930,1927,1934,941,939,936,933,6,930,3,951,948,944,1889,1887,1884,1881,959,1893,1891,35,1377,1360,1358,1327,1325,1322,1331,1277,1275,1272,1269,235,1284,2110,1205,1204,1201,1198,182,1195,179,1213,2070,2067,1580,501,1551,1548,440,437,1497,1494,1490,1503,761,709,707,1706,913,912,2198,1386,2164,2161,1621,1766,2103,1208,2058,2054,1145,1142,2005,2002,1999,2009,1488,1429,1426,2200,1698,1659,1656,1975,1053,1957,1954,1001,998,1924,1921,1918,1928,937,934,931,1879,1876,1873,1870,945,1885,1882,1323,1273,1270,2105,1202,1199,1196,1211,2061,2057,1576,1543,1540,1484,1481,1478,1491,1700]),e}();t["a"]=a},ab88:function(e,t,n){},aba2:function(e,t,n){var r=n("e53d"),i=n("4178").set,o=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,l="process"==n("6b4c")(a);e.exports=function(){var e,t,n,u=function(){var r,i;l&&(r=a.domain)&&r.exit();while(e){i=e.fn,e=e.next;try{i()}catch(o){throw e?n():t=void 0,o}}t=void 0,r&&r.enter()};if(l)n=function(){a.nextTick(u)};else if(!o||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var c=s.resolve(void 0);n=function(){c.then(u)}}else n=function(){i.call(r,u)};else{var f=!0,d=document.createTextNode("");new o(u).observe(d,{characterData:!0}),n=function(){d.data=f=!f}}return function(r){var i={fn:r,next:void 0};t&&(t.next=i),e||(e=i,n()),t=i}}},ac4d:function(e,t,n){n("3a72")("asyncIterator")},ac6a:function(e,t,n){for(var r=n("cadf"),i=n("0d58"),o=n("2aba"),a=n("7726"),s=n("32e9"),l=n("84f2"),u=n("2b4c"),c=u("iterator"),f=u("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},p=i(h),m=0;m<p.length;m++){var g,v=p[m],b=h[v],y=a[v],w=y&&y.prototype;if(w&&(w[c]||s(w,c,d),w[f]||s(w,f,v),l[v]=d,b))for(g in r)w[g]||o(w,g,r[g],!0)}},acf3:function(e,t,n){"use strict";var r,i=n("a652"),o=n("6099"),a=n("6530"),s=n("78c7"),l=n("f823"),u=n("7978"),c=n("9cca");(function(e){e[e["PAD_ENCODE"]=0]="PAD_ENCODE",e[e["ASCII_ENCODE"]=1]="ASCII_ENCODE",e[e["C40_ENCODE"]=2]="C40_ENCODE",e[e["TEXT_ENCODE"]=3]="TEXT_ENCODE",e[e["ANSIX12_ENCODE"]=4]="ANSIX12_ENCODE",e[e["EDIFACT_ENCODE"]=5]="EDIFACT_ENCODE",e[e["BASE256_ENCODE"]=6]="BASE256_ENCODE"})(r||(r={}));var f=function(){function e(){}return e.decode=function(e){var t=new o["a"](e),n=new a["a"],s=new a["a"],l=new Array,c=r.ASCII_ENCODE;do{if(c===r.ASCII_ENCODE)c=this.decodeAsciiSegment(t,n,s);else{switch(c){case r.C40_ENCODE:this.decodeC40Segment(t,n);break;case r.TEXT_ENCODE:this.decodeTextSegment(t,n);break;case r.ANSIX12_ENCODE:this.decodeAnsiX12Segment(t,n);break;case r.EDIFACT_ENCODE:this.decodeEdifactSegment(t,n);break;case r.BASE256_ENCODE:this.decodeBase256Segment(t,n,l);break;default:throw new u["a"]}c=r.ASCII_ENCODE}}while(c!==r.PAD_ENCODE&&t.available()>0);return s.length()>0&&n.append(s.toString()),new i["a"](e,n.toString(),0===l.length?null:l,null)},e.decodeAsciiSegment=function(e,t,n){var i=!1;do{var o=e.readBits(8);if(0===o)throw new u["a"];if(o<=128)return i&&(o+=128),t.append(String.fromCharCode(o-1)),r.ASCII_ENCODE;if(129===o)return r.PAD_ENCODE;if(o<=229){var a=o-130;a<10&&t.append("0"),t.append(""+a)}else switch(o){case 230:return r.C40_ENCODE;case 231:return r.BASE256_ENCODE;case 232:t.append(String.fromCharCode(29));break;case 233:case 234:break;case 235:i=!0;break;case 236:t.append("[)>05"),n.insert(0,"");break;case 237:t.append("[)>06"),n.insert(0,"");break;case 238:return r.ANSIX12_ENCODE;case 239:return r.TEXT_ENCODE;case 240:return r.EDIFACT_ENCODE;case 241:break;default:if(254!==o||0!==e.available())throw new u["a"];break}}while(e.available()>0);return r.ASCII_ENCODE},e.decodeC40Segment=function(e,t){var n=!1,r=[],i=0;do{if(8===e.available())return;var o=e.readBits(8);if(254===o)return;this.parseTwoBytes(o,e.readBits(8),r);for(var a=0;a<3;a++){var s=r[a];switch(i){case 0:if(s<3)i=s+1;else{if(!(s<this.C40_BASIC_SET_CHARS.length))throw new u["a"];var l=this.C40_BASIC_SET_CHARS[s];n?(t.append(String.fromCharCode(l.charCodeAt(0)+128)),n=!1):t.append(l)}break;case 1:n?(t.append(String.fromCharCode(s+128)),n=!1):t.append(String.fromCharCode(s)),i=0;break;case 2:if(s<this.C40_SHIFT2_SET_CHARS.length){l=this.C40_SHIFT2_SET_CHARS[s];n?(t.append(String.fromCharCode(l.charCodeAt(0)+128)),n=!1):t.append(l)}else switch(s){case 27:t.append(String.fromCharCode(29));break;case 30:n=!0;break;default:throw new u["a"]}i=0;break;case 3:n?(t.append(String.fromCharCode(s+224)),n=!1):t.append(String.fromCharCode(s+96)),i=0;break;default:throw new u["a"]}}}while(e.available()>0)},e.decodeTextSegment=function(e,t){var n=!1,r=[],i=0;do{if(8===e.available())return;var o=e.readBits(8);if(254===o)return;this.parseTwoBytes(o,e.readBits(8),r);for(var a=0;a<3;a++){var s=r[a];switch(i){case 0:if(s<3)i=s+1;else{if(!(s<this.TEXT_BASIC_SET_CHARS.length))throw new u["a"];var l=this.TEXT_BASIC_SET_CHARS[s];n?(t.append(String.fromCharCode(l.charCodeAt(0)+128)),n=!1):t.append(l)}break;case 1:n?(t.append(String.fromCharCode(s+128)),n=!1):t.append(String.fromCharCode(s)),i=0;break;case 2:if(s<this.TEXT_SHIFT2_SET_CHARS.length){l=this.TEXT_SHIFT2_SET_CHARS[s];n?(t.append(String.fromCharCode(l.charCodeAt(0)+128)),n=!1):t.append(l)}else switch(s){case 27:t.append(String.fromCharCode(29));break;case 30:n=!0;break;default:throw new u["a"]}i=0;break;case 3:if(!(s<this.TEXT_SHIFT3_SET_CHARS.length))throw new u["a"];l=this.TEXT_SHIFT3_SET_CHARS[s];n?(t.append(String.fromCharCode(l.charCodeAt(0)+128)),n=!1):t.append(l),i=0;break;default:throw new u["a"]}}}while(e.available()>0)},e.decodeAnsiX12Segment=function(e,t){var n=[];do{if(8===e.available())return;var r=e.readBits(8);if(254===r)return;this.parseTwoBytes(r,e.readBits(8),n);for(var i=0;i<3;i++){var o=n[i];switch(o){case 0:t.append("\r");break;case 1:t.append("*");break;case 2:t.append(">");break;case 3:t.append(" ");break;default:if(o<14)t.append(String.fromCharCode(o+44));else{if(!(o<40))throw new u["a"];t.append(String.fromCharCode(o+51))}break}}}while(e.available()>0)},e.parseTwoBytes=function(e,t,n){var r=(e<<8)+t-1,i=Math.floor(r/1600);n[0]=i,r-=1600*i,i=Math.floor(r/40),n[1]=i,n[2]=r-40*i},e.decodeEdifactSegment=function(e,t){do{if(e.available()<=16)return;for(var n=0;n<4;n++){var r=e.readBits(6);if(31===r){var i=8-e.getBitOffset();return void(8!==i&&e.readBits(i))}0===(32&r)&&(r|=64),t.append(String.fromCharCode(r))}}while(e.available()>0)},e.decodeBase256Segment=function(e,t,n){var r,i=1+e.getByteOffset(),o=this.unrandomize255State(e.readBits(8),i++);if(r=0===o?e.available()/8|0:o<250?o:250*(o-249)+this.unrandomize255State(e.readBits(8),i++),r<0)throw new u["a"];for(var a=new Uint8Array(r),f=0;f<r;f++){if(e.available()<8)throw new u["a"];a[f]=this.unrandomize255State(e.readBits(8),i++)}n.push(a);try{t.append(s["a"].decode(a,l["a"].ISO88591))}catch(d){throw new c["a"]("Platform does not support required encoding: "+d.message)}},e.unrandomize255State=function(e,t){var n=149*t%255+1,r=e-n;return r>=0?r:r+256},e.C40_BASIC_SET_CHARS=["*","*","*"," ","0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],e.C40_SHIFT2_SET_CHARS=["!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","@","[","\\","]","^","_"],e.TEXT_BASIC_SET_CHARS=["*","*","*"," ","0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],e.TEXT_SHIFT2_SET_CHARS=e.C40_SHIFT2_SET_CHARS,e.TEXT_SHIFT3_SET_CHARS=["`","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","{","|","}","~",String.fromCharCode(127)],e}();t["a"]=f},ade3:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("a38e");function i(e,t,n){return t=Object(r["a"])(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},ae4b:function(e,t,n){"use strict";var r=n("6530"),i=function(){function e(){this.maskPattern=-1}return e.prototype.getMode=function(){return this.mode},e.prototype.getECLevel=function(){return this.ecLevel},e.prototype.getVersion=function(){return this.version},e.prototype.getMaskPattern=function(){return this.maskPattern},e.prototype.getMatrix=function(){return this.matrix},e.prototype.toString=function(){var e=new r["a"];return e.append("<<\n"),e.append(" mode: "),e.append(this.mode?this.mode.toString():"null"),e.append("\n ecLevel: "),e.append(this.ecLevel?this.ecLevel.toString():"null"),e.append("\n version: "),e.append(this.version?this.version.toString():"null"),e.append("\n maskPattern: "),e.append(this.maskPattern.toString()),this.matrix?(e.append("\n matrix:\n"),e.append(this.matrix.toString())):e.append("\n matrix: null\n"),e.append(">>\n"),e.toString()},e.prototype.setMode=function(e){this.mode=e},e.prototype.setECLevel=function(e){this.ecLevel=e},e.prototype.setVersion=function(e){this.version=e},e.prototype.setMaskPattern=function(e){this.maskPattern=e},e.prototype.setMatrix=function(e){this.matrix=e},e.isValidMaskPattern=function(t){return t>=0&&t<e.NUM_MASK_PATTERNS},e.NUM_MASK_PATTERNS=8,e}();t["a"]=i},aebd:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},aef6:function(e,t,n){"use strict";var r=n("5ca1"),i=n("9def"),o=n("d2c8"),a="endsWith",s=""[a];r(r.P+r.F*n("5147")(a),"String",{endsWith:function(e){var t=o(this,e,a),n=arguments.length>1?arguments[1]:void 0,r=i(t.length),l=void 0===n?r:Math.min(i(n),r),u=String(e);return s?s.call(t,u,l):t.slice(l-u.length,l)===u}})},afc5:function(e,t,n){e.exports={default:n("69b9"),__esModule:!0}},b0c5:function(e,t,n){"use strict";var r=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},b0dc:function(e,t,n){var r=n("e4ae");e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(a){var o=e["return"];throw void 0!==o&&r(o.call(e)),a}}},b232:function(e,t,n){"use strict";n("8723")},b39a:function(e,t,n){var r=n("d3f4");e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},b3d8:function(e,t,n){"use strict";var r;(function(e){e[e["DATA_MASK_000"]=0]="DATA_MASK_000",e[e["DATA_MASK_001"]=1]="DATA_MASK_001",e[e["DATA_MASK_010"]=2]="DATA_MASK_010",e[e["DATA_MASK_011"]=3]="DATA_MASK_011",e[e["DATA_MASK_100"]=4]="DATA_MASK_100",e[e["DATA_MASK_101"]=5]="DATA_MASK_101",e[e["DATA_MASK_110"]=6]="DATA_MASK_110",e[e["DATA_MASK_111"]=7]="DATA_MASK_111"})(r||(r={}));var i=function(){function e(e,t){this.value=e,this.isMasked=t}return e.prototype.unmaskBitMatrix=function(e,t){for(var n=0;n<t;n++)for(var r=0;r<t;r++)this.isMasked(n,r)&&e.flip(r,n)},e.values=new Map([[r.DATA_MASK_000,new e(r.DATA_MASK_000,(function(e,t){return 0===(e+t&1)}))],[r.DATA_MASK_001,new e(r.DATA_MASK_001,(function(e,t){return 0===(1&e)}))],[r.DATA_MASK_010,new e(r.DATA_MASK_010,(function(e,t){return t%3===0}))],[r.DATA_MASK_011,new e(r.DATA_MASK_011,(function(e,t){return(e+t)%3===0}))],[r.DATA_MASK_100,new e(r.DATA_MASK_100,(function(e,t){return 0===(Math.floor(e/2)+Math.floor(t/3)&1)}))],[r.DATA_MASK_101,new e(r.DATA_MASK_101,(function(e,t){return e*t%6===0}))],[r.DATA_MASK_110,new e(r.DATA_MASK_110,(function(e,t){return e*t%6<3}))],[r.DATA_MASK_111,new e(r.DATA_MASK_111,(function(e,t){return 0===(e+t+e*t%3&1)}))]]),e}();t["a"]=i},b447:function(e,t,n){var r=n("3a38"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},b5b4:function(e,t,n){"use strict";var r=n("9068"),i=n("ea29"),o=n("ae4b"),a=n("d439"),s=n("4986"),l=n("f0a7"),u=function(){function e(){}return e.clearMatrix=function(e){e.clear(255)},e.buildMatrix=function(t,n,r,i,o){e.clearMatrix(o),e.embedBasicPatterns(r,o),e.embedTypeInfo(n,i,o),e.maybeEmbedVersionInfo(r,o),e.embedDataBits(t,i,o)},e.embedBasicPatterns=function(t,n){e.embedPositionDetectionPatternsAndSeparators(n),e.embedDarkDotAtLeftBottomCorner(n),e.maybeEmbedPositionAdjustmentPatterns(t,n),e.embedTimingPatterns(n)},e.embedTypeInfo=function(t,n,i){var o=new r["a"];e.makeTypeInfoBits(t,n,o);for(var a=0,s=o.getSize();a<s;++a){var l=o.get(o.getSize()-1-a),u=e.TYPE_INFO_COORDINATES[a],c=u[0],f=u[1];if(i.setBoolean(c,f,l),a<8){var d=i.getWidth()-a-1,h=8;i.setBoolean(d,h,l)}else{d=8,h=i.getHeight()-7+(a-8);i.setBoolean(d,h,l)}}},e.maybeEmbedVersionInfo=function(t,n){if(!(t.getVersionNumber()<7)){var i=new r["a"];e.makeVersionInfoBits(t,i);for(var o=17,a=0;a<6;++a)for(var s=0;s<3;++s){var l=i.get(o);o--,n.setBoolean(a,n.getHeight()-11+s,l),n.setBoolean(n.getHeight()-11+s,a,l)}}},e.embedDataBits=function(t,n,r){var i=0,o=-1,l=r.getWidth()-1,u=r.getHeight()-1;while(l>0){6===l&&(l-=1);while(u>=0&&u<r.getHeight()){for(var c=0;c<2;++c){var f=l-c;if(e.isEmpty(r.get(f,u))){var d=void 0;i<t.getSize()?(d=t.get(i),++i):d=!1,255!==n&&a["a"].getDataMaskBit(n,f,u)&&(d=!d),r.setBoolean(f,u,d)}}u+=o}o=-o,u+=o,l-=2}if(i!==t.getSize())throw new s["a"]("Not all bits consumed: "+i+"/"+t.getSize())},e.findMSBSet=function(e){return 32-i["a"].numberOfLeadingZeros(e)},e.calculateBCHCode=function(t,n){if(0===n)throw new l["a"]("0 polynomial");var r=e.findMSBSet(n);t<<=r-1;while(e.findMSBSet(t)>=r)t^=n<<e.findMSBSet(t)-r;return t},e.makeTypeInfoBits=function(t,n,i){if(!o["a"].isValidMaskPattern(n))throw new s["a"]("Invalid mask pattern");var a=t.getBits()<<3|n;i.appendBits(a,5);var l=e.calculateBCHCode(a,e.TYPE_INFO_POLY);i.appendBits(l,10);var u=new r["a"];if(u.appendBits(e.TYPE_INFO_MASK_PATTERN,15),i.xor(u),15!==i.getSize())throw new s["a"]("should not happen but we got: "+i.getSize())},e.makeVersionInfoBits=function(t,n){n.appendBits(t.getVersionNumber(),6);var r=e.calculateBCHCode(t.getVersionNumber(),e.VERSION_INFO_POLY);if(n.appendBits(r,12),18!==n.getSize())throw new s["a"]("should not happen but we got: "+n.getSize())},e.isEmpty=function(e){return 255===e},e.embedTimingPatterns=function(t){for(var n=8;n<t.getWidth()-8;++n){var r=(n+1)%2;e.isEmpty(t.get(n,6))&&t.setNumber(n,6,r),e.isEmpty(t.get(6,n))&&t.setNumber(6,n,r)}},e.embedDarkDotAtLeftBottomCorner=function(e){if(0===e.get(8,e.getHeight()-8))throw new s["a"];e.setNumber(8,e.getHeight()-8,1)},e.embedHorizontalSeparationPattern=function(t,n,r){for(var i=0;i<8;++i){if(!e.isEmpty(r.get(t+i,n)))throw new s["a"];r.setNumber(t+i,n,0)}},e.embedVerticalSeparationPattern=function(t,n,r){for(var i=0;i<7;++i){if(!e.isEmpty(r.get(t,n+i)))throw new s["a"];r.setNumber(t,n+i,0)}},e.embedPositionAdjustmentPattern=function(t,n,r){for(var i=0;i<5;++i)for(var o=e.POSITION_ADJUSTMENT_PATTERN[i],a=0;a<5;++a)r.setNumber(t+a,n+i,o[a])},e.embedPositionDetectionPattern=function(t,n,r){for(var i=0;i<7;++i)for(var o=e.POSITION_DETECTION_PATTERN[i],a=0;a<7;++a)r.setNumber(t+a,n+i,o[a])},e.embedPositionDetectionPatternsAndSeparators=function(t){var n=e.POSITION_DETECTION_PATTERN[0].length;e.embedPositionDetectionPattern(0,0,t),e.embedPositionDetectionPattern(t.getWidth()-n,0,t),e.embedPositionDetectionPattern(0,t.getWidth()-n,t);var r=8;e.embedHorizontalSeparationPattern(0,r-1,t),e.embedHorizontalSeparationPattern(t.getWidth()-r,r-1,t),e.embedHorizontalSeparationPattern(0,t.getWidth()-r,t);var i=7;e.embedVerticalSeparationPattern(i,0,t),e.embedVerticalSeparationPattern(t.getHeight()-i-1,0,t),e.embedVerticalSeparationPattern(i,t.getHeight()-i,t)},e.maybeEmbedPositionAdjustmentPatterns=function(t,n){if(!(t.getVersionNumber()<2))for(var r=t.getVersionNumber()-1,i=e.POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE[r],o=0,a=i.length;o!==a;o++){var s=i[o];if(s>=0)for(var l=0;l!==a;l++){var u=i[l];u>=0&&e.isEmpty(n.get(u,s))&&e.embedPositionAdjustmentPattern(u-2,s-2,n)}}},e.POSITION_DETECTION_PATTERN=Array.from([Int32Array.from([1,1,1,1,1,1,1]),Int32Array.from([1,0,0,0,0,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,0,0,0,0,1]),Int32Array.from([1,1,1,1,1,1,1])]),e.POSITION_ADJUSTMENT_PATTERN=Array.from([Int32Array.from([1,1,1,1,1]),Int32Array.from([1,0,0,0,1]),Int32Array.from([1,0,1,0,1]),Int32Array.from([1,0,0,0,1]),Int32Array.from([1,1,1,1,1])]),e.POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE=Array.from([Int32Array.from([-1,-1,-1,-1,-1,-1,-1]),Int32Array.from([6,18,-1,-1,-1,-1,-1]),Int32Array.from([6,22,-1,-1,-1,-1,-1]),Int32Array.from([6,26,-1,-1,-1,-1,-1]),Int32Array.from([6,30,-1,-1,-1,-1,-1]),Int32Array.from([6,34,-1,-1,-1,-1,-1]),Int32Array.from([6,22,38,-1,-1,-1,-1]),Int32Array.from([6,24,42,-1,-1,-1,-1]),Int32Array.from([6,26,46,-1,-1,-1,-1]),Int32Array.from([6,28,50,-1,-1,-1,-1]),Int32Array.from([6,30,54,-1,-1,-1,-1]),Int32Array.from([6,32,58,-1,-1,-1,-1]),Int32Array.from([6,34,62,-1,-1,-1,-1]),Int32Array.from([6,26,46,66,-1,-1,-1]),Int32Array.from([6,26,48,70,-1,-1,-1]),Int32Array.from([6,26,50,74,-1,-1,-1]),Int32Array.from([6,30,54,78,-1,-1,-1]),Int32Array.from([6,30,56,82,-1,-1,-1]),Int32Array.from([6,30,58,86,-1,-1,-1]),Int32Array.from([6,34,62,90,-1,-1,-1]),Int32Array.from([6,28,50,72,94,-1,-1]),Int32Array.from([6,26,50,74,98,-1,-1]),Int32Array.from([6,30,54,78,102,-1,-1]),Int32Array.from([6,28,54,80,106,-1,-1]),Int32Array.from([6,32,58,84,110,-1,-1]),Int32Array.from([6,30,58,86,114,-1,-1]),Int32Array.from([6,34,62,90,118,-1,-1]),Int32Array.from([6,26,50,74,98,122,-1]),Int32Array.from([6,30,54,78,102,126,-1]),Int32Array.from([6,26,52,78,104,130,-1]),Int32Array.from([6,30,56,82,108,134,-1]),Int32Array.from([6,34,60,86,112,138,-1]),Int32Array.from([6,30,58,86,114,142,-1]),Int32Array.from([6,34,62,90,118,146,-1]),Int32Array.from([6,30,54,78,102,126,150]),Int32Array.from([6,24,50,76,102,128,154]),Int32Array.from([6,28,54,80,106,132,158]),Int32Array.from([6,32,58,84,110,136,162]),Int32Array.from([6,26,54,82,110,138,166]),Int32Array.from([6,30,58,86,114,142,170])]),e.TYPE_INFO_COORDINATES=Array.from([Int32Array.from([8,0]),Int32Array.from([8,1]),Int32Array.from([8,2]),Int32Array.from([8,3]),Int32Array.from([8,4]),Int32Array.from([8,5]),Int32Array.from([8,7]),Int32Array.from([8,8]),Int32Array.from([7,8]),Int32Array.from([5,8]),Int32Array.from([4,8]),Int32Array.from([3,8]),Int32Array.from([2,8]),Int32Array.from([1,8]),Int32Array.from([0,8])]),e.VERSION_INFO_POLY=7973,e.TYPE_INFO_POLY=1335,e.TYPE_INFO_MASK_PATTERN=21522,e}();t["a"]=u},b86b:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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="/dist/",n(n.s=109)}({1:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var l,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},109:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this.$createElement;return(this._self._c||e)("div",{ref:"checkbox-group",staticClass:"el-checkbox-group",attrs:{role:"group","aria-label":"checkbox-group"}},[this._t("default")],2)};r._withStripped=!0;var i=n(4),o={name:"ElCheckboxGroup",componentName:"ElCheckboxGroup",mixins:[n.n(i).a],inject:{elFormItem:{default:""}},data:function(){return{isButton:!1}},props:{value:{},disabled:Boolean,min:Number,max:Number,size:String,fill:String,textColor:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxGroupSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size}},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",[e])}}},a=n(1),s=Object(a.a)(o,r,[],!1,null,null,null);s.options.__file="packages/checkbox/src/checkbox-group.vue";var l=s.exports;l.install=function(e){e.component(l.name,l)},t.default=l},4:function(e,t){e.exports=n("bbe4")}})},b875:function(e,t,n){"use strict";var r,i=Object.prototype.hasOwnProperty,o=n("f809"),a=n("bf6a"),s={},l="§";function u(){if(c.supported){var e,t=r.getItem("koekje"),n=0;for(e in s=t&&t.charAt(0)===l?a.parse(t.slice(1)):{},s)i.call(s,e)&&n++;c.length=n}}r=o("undefined"!==typeof document?document:{});var c=e.exports={length:0,getItem:function(e){return i.call(s,e)?s[e]:null},setItem:function(e,t){s[e]=t,r.setItem("koekje",a.stringify(s,l)),c.length++},removeItem:function(e){delete s[e],r.setItem("koekje",a.stringify(s,l)),c.length--},clear:function(){s={},r.setItem("koekje","",{expires:new Date(0)}),c.length=0},supported:function(){return"object"===typeof navigator&&navigator.cookieEnabled}(),update:u};u()},b8e3:function(e,t){e.exports=!0},ba92:function(e,t,n){"use strict";var r=n("4bf8"),i=n("77f1"),o=n("9def");e.exports=[].copyWithin||function(e,t){var n=r(this),a=o(n.length),s=i(e,a),l=i(t,a),u=arguments.length>2?arguments[2]:void 0,c=Math.min((void 0===u?a:i(u,a))-l,a-s),f=1;l<s&&s<l+c&&(f=-1,l+=c-1,s+=c-1);while(c-- >0)l in n?n[s]=n[l]:delete n[s],s+=f,l+=f;return n}},bb6f:function(e,t,n){"use strict";var r=function(){function e(e,t){this.value=e,this.checksumPortion=t}return e.prototype.getValue=function(){return this.value},e.prototype.getChecksumPortion=function(){return this.checksumPortion},e.prototype.toString=function(){return this.value+"("+this.checksumPortion+")"},e.prototype.equals=function(t){if(!(t instanceof e))return!1;var n=t;return this.value===n.value&&this.checksumPortion===n.checksumPortion},e.prototype.hashCode=function(){return this.value^this.checksumPortion},e}();t["a"]=r},bbe4:function(e,t,n){"use strict";function r(e,t,n){this.$children.forEach((function(i){var o=i.$options.componentName;o===e?i.$emit.apply(i,[t].concat(n)):r.apply(i,[e,t].concat([n]))}))}t.__esModule=!0,t.default={methods:{dispatch:function(e,t,n){var r=this.$parent||this.$root,i=r.$options.componentName;while(r&&(!i||i!==e))r=r.$parent,r&&(i=r.$options.componentName);r&&r.$emit.apply(r,[t].concat(n))},broadcast:function(e,t,n){r.call(this,e,t,n)}}}},bc13:function(e,t,n){var r=n("e53d"),i=r.navigator;e.exports=i&&i.userAgent||""},bc54:function(e,t,n){n("7c4f")},bc95:function(e,t,n){e.exports=function(){"use strict";try{if(sessionStorage.setItem("foo","bar"),"bar"!==sessionStorage.getItem("foo"))throw 1;sessionStorage.removeItem("foo")}catch(i){var e=n("5082"),t=n("746a"),r=n("b875");return t.supported?t:r.supported?r:e}return sessionStorage}()},bcaa:function(e,t,n){var r=n("cb7c"),i=n("d3f4"),o=n("a5b8");e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e),a=n.resolve;return a(t),n.promise}},bd11:function(e,t){e.exports=r;var n=/\((?!\?)/g;function r(e,t,i){i=i||{},t=t||[];var o,a=i.strict,s=!1!==i.end,l=i.sensitive?"":"i",u=0,c=t.length,f=0,d=0;if(e instanceof RegExp){while(o=n.exec(e.source))t.push({name:d++,optional:!1,offset:o.index});return e}if(Array.isArray(e))return e=e.map((function(e){return r(e,t,i).source})),new RegExp("(?:"+e.join("|")+")",l);e=("^"+e+(a?"":"/"===e[e.length-1]?"?":"/?")).replace(/\/\(/g,"/(?:").replace(/([\/\.])/g,"\\$1").replace(/(\\\/)?(\\\.)?:(\w+)(\(.*?\))?(\*)?(\?)?/g,(function(e,n,r,i,o,a,s,l){n=n||"",r=r||"",o=o||"([^\\/"+r+"]+?)",s=s||"",t.push({name:i,optional:!!s,offset:l+u});var c=(s?"":n)+"(?:"+r+(s?n:"")+o+(a?"((?:[\\/"+r+"].+?)?)":"")+")"+s;return u+=c.length-e.length,c})).replace(/\*/g,(function(e,n){var r=t.length;while(r-- >c&&t[r].offset>n)t[r].offset+=3;return"(.*)"}));while(o=n.exec(e)){var h=0,p=o.index;while("\\"===e.charAt(--p))h++;h%2!==1&&((c+f===t.length||t[c+f].offset>o.index)&&t.splice(c+f,0,{name:d++,optional:!1,offset:o.index}),f++)}return e+=s?"$":"/"===e[e.length-1]?"":"(?=\\/|$)",new RegExp(e,l)}},bd7a:function(e,t,n){"use strict";var r=n("5622"),i=n("9068"),o=n("2011"),a=n("ca08"),s=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),l=function(e){function t(n){var r=e.call(this,n)||this;return r.luminances=t.EMPTY,r.buckets=new Int32Array(t.LUMINANCE_BUCKETS),r}return s(t,e),t.prototype.getBlackRow=function(e,n){var r=this.getLuminanceSource(),o=r.getWidth();void 0===n||null===n||n.getSize()<o?n=new i["a"](o):n.clear(),this.initArrays(o);for(var a=r.getRow(e,this.luminances),s=this.buckets,l=0;l<o;l++)s[(255&a[l])>>t.LUMINANCE_SHIFT]++;var u=t.estimateBlackPoint(s);if(o<3)for(l=0;l<o;l++)(255&a[l])<u&&n.set(l);else{var c=255&a[0],f=255&a[1];for(l=1;l<o-1;l++){var d=255&a[l+1];(4*f-c-d)/2<u&&n.set(l),c=f,f=d}}return n},t.prototype.getBlackMatrix=function(){var e=this.getLuminanceSource(),n=e.getWidth(),r=e.getHeight(),i=new o["a"](n,r);this.initArrays(n);for(var a=this.buckets,s=1;s<5;s++)for(var l=Math.floor(r*s/5),u=e.getRow(l,this.luminances),c=Math.floor(4*n/5),f=Math.floor(n/5);f<c;f++){var d=255&u[f];a[d>>t.LUMINANCE_SHIFT]++}var h=t.estimateBlackPoint(a),p=e.getMatrix();for(s=0;s<r;s++){var m=s*n;for(f=0;f<n;f++){d=255&p[m+f];d<h&&i.set(f,s)}}return i},t.prototype.createBinarizer=function(e){return new t(e)},t.prototype.initArrays=function(e){this.luminances.length<e&&(this.luminances=new Uint8ClampedArray(e));for(var n=this.buckets,r=0;r<t.LUMINANCE_BUCKETS;r++)n[r]=0},t.estimateBlackPoint=function(e){for(var n=e.length,r=0,i=0,o=0,s=0;s<n;s++)e[s]>o&&(i=s,o=e[s]),e[s]>r&&(r=e[s]);var l=0,u=0;for(s=0;s<n;s++){var c=s-i,f=e[s]*c*c;f>u&&(l=s,u=f)}if(i>l){var d=i;i=l,l=d}if(l-i<=n/16)throw new a["a"];var h=l-1,p=-1;for(s=l-1;s>i;s--){var m=s-i;f=m*m*(l-s)*(r-e[s]);f>p&&(h=s,p=f)}return h<<t.LUMINANCE_SHIFT},t.LUMINANCE_BITS=5,t.LUMINANCE_SHIFT=8-t.LUMINANCE_BITS,t.LUMINANCE_BUCKETS=1<<t.LUMINANCE_BITS,t.EMPTY=Uint8ClampedArray.from([0]),t}(r["a"]);t["a"]=l},be13:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},be139:function(e,t,n){"use strict";var r=n("a363"),i=n("fe96"),o=n("7978"),a=n("ca08"),s=n("2f50"),l=n("8c95"),u=n("6530"),c=n("63af"),f=n("0b81"),d=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),h=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.narrowLineWidth=-1,t}return d(t,e),t.prototype.decodeRow=function(e,n,a){var c,f,d=this.decodeStart(n),p=this.decodeEnd(n),m=new u["a"];t.decodeMiddle(n,d[1],p[0],m);var g=m.toString(),v=null;null!=a&&(v=a.get(i["a"].ALLOWED_LENGTHS)),null==v&&(v=t.DEFAULT_ALLOWED_LENGTHS);var b=g.length,y=!1,w=0;try{for(var _=h(v),C=_.next();!C.done;C=_.next()){var x=C.value;if(b===x){y=!0;break}x>w&&(w=x)}}catch(D){c={error:D}}finally{try{C&&!C.done&&(f=_.return)&&f.call(_)}finally{if(c)throw c.error}}if(!y&&b>w&&(y=!0),!y)throw new o["a"];var S=[new l["a"](d[1],e),new l["a"](p[0],e)],k=new s["a"](g,null,0,S,r["a"].ITF,(new Date).getTime());return k},t.decodeMiddle=function(e,n,r,i){var o=new Int32Array(10),a=new Int32Array(5),s=new Int32Array(5);o.fill(0),a.fill(0),s.fill(0);while(n<r){f["a"].recordPattern(e,n,o);for(var l=0;l<5;l++){var u=2*l;a[l]=o[u],s[l]=o[u+1]}var c=t.decodeDigit(a);i.append(c.toString()),c=this.decodeDigit(s),i.append(c.toString()),o.forEach((function(e){n+=e}))}},t.prototype.decodeStart=function(e){var n=t.skipWhiteSpace(e),r=t.findGuardPattern(e,n,t.START_PATTERN);return this.narrowLineWidth=(r[1]-r[0])/4,this.validateQuietZone(e,r[0]),r},t.prototype.validateQuietZone=function(e,t){var n=10*this.narrowLineWidth;n=n<t?n:t;for(var r=t-1;n>0&&r>=0;r--){if(e.get(r))break;n--}if(0!==n)throw new a["a"]},t.skipWhiteSpace=function(e){var t=e.getSize(),n=e.getNextSet(0);if(n===t)throw new a["a"];return n},t.prototype.decodeEnd=function(e){e.reverse();try{var n=t.skipWhiteSpace(e),r=void 0;try{r=t.findGuardPattern(e,n,t.END_PATTERN_REVERSED[0])}catch(o){o instanceof a["a"]&&(r=t.findGuardPattern(e,n,t.END_PATTERN_REVERSED[1]))}this.validateQuietZone(e,r[0]);var i=r[0];return r[0]=e.getSize()-r[1],r[1]=e.getSize()-i,r}finally{e.reverse()}},t.findGuardPattern=function(e,n,r){var i=r.length,o=new Int32Array(i),s=e.getSize(),l=!1,u=0,d=n;o.fill(0);for(var h=n;h<s;h++)if(e.get(h)!==l)o[u]++;else{if(u===i-1){if(f["a"].patternMatchVariance(o,r,t.MAX_INDIVIDUAL_VARIANCE)<t.MAX_AVG_VARIANCE)return[d,h];d+=o[0]+o[1],c["a"].arraycopy(o,2,o,0,u-1),o[u-1]=0,o[u]=0,u--}else u++;o[u]=1,l=!l}throw new a["a"]},t.decodeDigit=function(e){for(var n=t.MAX_AVG_VARIANCE,r=-1,i=t.PATTERNS.length,o=0;o<i;o++){var s=t.PATTERNS[o],l=f["a"].patternMatchVariance(e,s,t.MAX_INDIVIDUAL_VARIANCE);l<n?(n=l,r=o):l===n&&(r=-1)}if(r>=0)return r%10;throw new a["a"]},t.PATTERNS=[Int32Array.from([1,1,2,2,1]),Int32Array.from([2,1,1,1,2]),Int32Array.from([1,2,1,1,2]),Int32Array.from([2,2,1,1,1]),Int32Array.from([1,1,2,1,2]),Int32Array.from([2,1,2,1,1]),Int32Array.from([1,2,2,1,1]),Int32Array.from([1,1,1,2,2]),Int32Array.from([2,1,1,2,1]),Int32Array.from([1,2,1,2,1]),Int32Array.from([1,1,3,3,1]),Int32Array.from([3,1,1,1,3]),Int32Array.from([1,3,1,1,3]),Int32Array.from([3,3,1,1,1]),Int32Array.from([1,1,3,1,3]),Int32Array.from([3,1,3,1,1]),Int32Array.from([1,3,3,1,1]),Int32Array.from([1,1,1,3,3]),Int32Array.from([3,1,1,3,1]),Int32Array.from([1,3,1,3,1])],t.MAX_AVG_VARIANCE=.38,t.MAX_INDIVIDUAL_VARIANCE=.5,t.DEFAULT_ALLOWED_LENGTHS=[6,8,10,12,14],t.START_PATTERN=Int32Array.from([1,1,1,1]),t.END_PATTERN_REVERSED=[Int32Array.from([1,1,2]),Int32Array.from([1,1,3])],t}(f["a"]);t["a"]=p},be40:function(e,t,n){"use strict";var r=n("2ec9"),i=function(){function e(){}return e.setGridSampler=function(t){e.gridSampler=t},e.getInstance=function(){return e.gridSampler},e.gridSampler=new r["a"],e}();t["a"]=i},be7f:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.util.VK"),n=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},r=function(e){return function(t){return n(t)===e}},i=function(e){return function(t){return typeof t===e}},o=function(e){return function(t){return e===t}},a=r("string"),s=r("array"),l=o(null),u=i("boolean"),c=i("function"),f=function(){},d=function(e){return function(){return e}},h=function(e){return e},p=function(e,t){return e===t},m=d(!1),g=d(!0),v=function(){return b},b=function(){var e=function(e){return e()},t=h,n={fold:function(e,t){return e()},isSome:m,isNone:g,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:d(null),getOrUndefined:d(void 0),or:t,orThunk:e,map:v,each:f,bind:v,exists:m,forall:g,filter:function(){return v()},toArray:function(){return[]},toString:d("none()")};return n}(),y=function(e){var t=d(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},isSome:g,isNone:m,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return y(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:b},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return i},w=function(e){return null===e||void 0===e?b:y(e)},_={some:y,none:v,from:w},C=Array.prototype.indexOf,x=Array.prototype.push,S=function(e,t){return C.call(e,t)},k=function(e,t){return S(e,t)>-1},D=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r},O=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];t(i,n)}},T=function(e,t,n){return O(e,(function(e,r){n=t(n,e,r)})),n},E=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!s(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);x.apply(t,e[n])}return t},I=function(e,t){return E(D(e,t))},N=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return _.none()},A=function(e,t,n){return void 0===n&&(n=p),e.exists((function(e){return n(e,t)}))},P=function(e){for(var t=[],n=function(e){t.push(e)},r=0;r<e.length;r++)e[r].each(n);return t},M=function(e,t){return e?_.some(t):_.none()},R=function(e){var t=e.getParam("link_assume_external_targets",!1);return u(t)&&t?1:!a(t)||"http"!==t&&"https"!==t?0:t},F=function(e){return e.getParam("link_context_toolbar",!1,"boolean")},B=function(e){return e.getParam("link_list")},L=function(e){return e.getParam("default_link_target")},$=function(e){return e.getParam("target_list",!0)},V=function(e){return e.getParam("rel_list",[],"array")},j=function(e){return e.getParam("link_class_list",[],"array")},z=function(e){return e.getParam("link_title",!0,"boolean")},H=function(e){return e.getParam("allow_unsafe_link_target",!1,"boolean")},U=function(e){return e.getParam("link_quicklink",!1,"boolean")},W=function(e){return e.getParam("link_default_protocol","http","string")},q=tinymce.util.Tools.resolve("tinymce.util.Tools"),G=function(e){return a(e.value)?e.value:""},Y=function(e){return a(e.text)?e.text:a(e.title)?e.title:""},K=function(e,t){var n=[];return q.each(e,(function(e){var r=Y(e);if(void 0!==e.menu){var i=K(e.menu,t);n.push({text:r,items:i})}else{var o=t(e);n.push({text:r,value:o})}})),n},X=function(e){return void 0===e&&(e=G),function(t){return _.from(t).map((function(t){return K(t,e)}))}},J=function(e){return X(G)(e)},Z=function(e,t){return function(n){return{name:e,type:"listbox",label:t,items:n}}},Q={sanitize:J,sanitizeWith:X,createUi:Z,getValue:G},ee=function(){return ee=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ee.apply(this,arguments)},te=Object.keys,ne=Object.hasOwnProperty,re=function(e,t){for(var n=te(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];t(a,o)}},ie=function(e){return function(t,n){e[n]=t}},oe=function(e,t,n,r){var i={};return re(e,(function(e,i){(t(e,i)?n:r)(e,i)})),i},ae=function(e,t){var n={};return oe(e,t,ie(n),f),n},se=function(e,t){return ne.call(e,t)},le=function(e,t){return se(e,t)&&void 0!==e[t]&&null!==e[t]},ue=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),ce=tinymce.util.Tools.resolve("tinymce.util.URI"),fe=function(e){return e&&"a"===e.nodeName.toLowerCase()},de=function(e){return fe(e)&&!!me(e)},he=function(e,t){if(e.collapsed)return[];var n=e.cloneContents(),r=new ue(n.firstChild,n),i=[],o=n.firstChild;do{t(o)&&i.push(o)}while(o=r.next());return i},pe=function(e){return/^\w+:/i.test(e)},me=function(e){var t=e.getAttribute("data-mce-href");return t||e.getAttribute("href")},ge=function(e,t){var n=["noopener"],r=e?e.split(/\s+/):[],i=function(e){return q.trim(e.sort().join(" "))},o=function(e){return e=a(e),e.length>0?e.concat(n):n},a=function(e){return e.filter((function(e){return-1===q.inArray(n,e)}))},s=t?o(r):a(r);return s.length>0?i(s):""},ve=function(e){return e.replace(/\uFEFF/g,"")},be=function(e,t){return t=t||e.selection.getNode(),xe(t)?e.dom.select("a[href]",t)[0]:e.dom.getParent(t,"a[href]")},ye=function(e,t){var n=t?t.innerText||t.textContent:e.getContent({format:"text"});return ve(n)},we=function(e){return q.grep(e,de).length>0},_e=function(e){return he(e,de).length>0},Ce=function(e){var t=e.schema.getTextInlineElements(),n=function(e){return 1===e.nodeType&&!fe(e)&&!se(t,e.nodeName.toLowerCase())},r=he(e.selection.getRng(),n);return 0===r.length},xe=function(e){return e&&"FIGURE"===e.nodeName&&/\bimage\b/i.test(e.className)},Se=function(e){var t=["title","rel","class","target"];return T(t,(function(t,n){return e[n].each((function(e){t[n]=e.length>0?e:null})),t}),{href:e.href})},ke=function(e,t){return"http"!==t&&"https"!==t||pe(e)?e:t+"://"+e},De=function(e,t){var n=ee({},t);if(!(V(e).length>0)&&!1===H(e)){var r=ge(n.rel,"_blank"===n.target);n.rel=r||null}return _.from(n.target).isNone()&&!1===$(e)&&(n.target=L(e)),n.href=ke(n.href,R(e)),n},Oe=function(e,t,n,r){n.each((function(e){se(t,"innerText")?t.innerText=e:t.textContent=e})),e.dom.setAttribs(t,r),e.selection.select(t)},Te=function(e,t,n,r){xe(t)?Be(e,t,r):n.fold((function(){e.execCommand("mceInsertLink",!1,r)}),(function(t){e.insertContent(e.dom.createHTML("a",r,e.dom.encode(t)))}))},Ee=function(e,t,n){var r=e.selection.getNode(),i=be(e,r),o=De(e,Se(n));e.undoManager.transact((function(){n.href===t.href&&t.attach(),i?(e.focus(),Oe(e,i,n.text,o)):Te(e,r,n.text,o)}))},Ie=function(e){var t=e.dom,n=e.selection,r=n.getBookmark(),i=n.getRng().cloneRange(),o=t.getParent(i.startContainer,"a[href]",e.getBody()),a=t.getParent(i.endContainer,"a[href]",e.getBody());o&&i.setStartBefore(o),a&&i.setEndAfter(a),n.setRng(i),e.execCommand("unlink"),n.moveToBookmark(r)},Ne=function(e){e.undoManager.transact((function(){var t=e.selection.getNode();xe(t)?Fe(e,t):Ie(e),e.focus()}))},Ae=function(e){var t=e.class,n=e.href,r=e.rel,i=e.target,o=e.text,a=e.title;return ae({class:t.getOrNull(),href:n,rel:r.getOrNull(),target:i.getOrNull(),text:o.getOrNull(),title:a.getOrNull()},(function(e,t){return!1===l(e)}))},Pe=function(e,t){var n=t.href;return ee(ee({},t),{href:ce.isDomSafe(n,"a",e.settings)?n:""})},Me=function(e,t,n){var r=Pe(e,n);e.hasPlugin("rtc",!0)?e.execCommand("createlink",!1,Ae(r)):Ee(e,t,r)},Re=function(e){e.hasPlugin("rtc",!0)?e.execCommand("unlink"):Ne(e)},Fe=function(e,t){var n=e.dom.select("img",t)[0];if(n){var r=e.dom.getParents(n,"a[href]",t)[0];r&&(r.parentNode.insertBefore(n,r),e.dom.remove(r))}},Be=function(e,t,n){var r=e.dom.select("img",t)[0];if(r){var i=e.dom.create("a",n);r.parentNode.insertBefore(i,r),i.appendChild(r)}},Le=function(e){return le(e,"items")},$e=function(e,t){return N(t,(function(t){return Le(t)?$e(e,t.items):M(t.value===e,t)}))},Ve=function(e,t,n,r){var i=r[t],o=e.length>0;return void 0!==i?$e(i,n).map((function(t){return{url:{value:t.value,meta:{text:o?e:t.text,attach:f}},text:o?e:t.text}})):_.none()},je=function(e,t){return"link"===t?e.link:"anchor"===t?e.anchor:_.none()},ze=function(e,t){var n={text:e.text,title:e.title},r=function(e){return M(n.title.length<=0,_.from(e.meta.title).getOr(""))},i=function(e){return M(n.text.length<=0,_.from(e.meta.text).getOr(e.value))},o=function(e){var t=i(e.url),n=r(e.url);return t.isSome()||n.isSome()?_.some(ee(ee({},t.map((function(e){return{text:e}})).getOr({})),n.map((function(e){return{title:e}})).getOr({}))):_.none()},a=function(e,r){var i=je(t,r.name).getOr([]);return Ve(n.text,r.name,i,e)},s=function(e,t){var r=t.name;return"url"===r?o(e()):k(["anchor","link"],r)?a(e(),t):"text"===r||"title"===r?(n[r]=e()[r],_.none()):_.none()};return{onChange:s}},He={init:ze,getDelta:Ve},Ue=tinymce.util.Tools.resolve("tinymce.util.Delay"),We=tinymce.util.Tools.resolve("tinymce.util.Promise"),qe=function(e,t,n){var r=e.selection.getRng();Ue.setEditorTimeout(e,(function(){e.windowManager.confirm(t,(function(t){e.selection.setRng(r),n(t)}))}))},Ge=function(e){var t=e.href,n=t.indexOf("@")>0&&-1===t.indexOf("/")&&-1===t.indexOf("mailto:");return n?_.some({message:"The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?",preprocess:function(e){return ee(ee({},e),{href:"mailto:"+t})}}):_.none()},Ye=function(e,t){return function(n){var r=n.href,i=1===e&&!pe(r)||0===e&&/^\s*www(\.|\d\.)/i.test(r);return i?_.some({message:"The URL you entered seems to be an external link. Do you want to add the required "+t+":// prefix?",preprocess:function(e){return ee(ee({},e),{href:t+"://"+r})}}):_.none()}},Ke=function(e,t){return N([Ge,Ye(R(e),W(e))],(function(e){return e(t)})).fold((function(){return We.resolve(t)}),(function(n){return new We((function(r){qe(e,n.message,(function(e){r(e?n.preprocess(t):t)}))}))}))},Xe={preprocess:Ke},Je=function(e){var t=e.dom.select("a:not([href])"),n=I(t,(function(e){var t=e.name||e.id;return t?[{text:t,value:"#"+t}]:[]}));return n.length>0?_.some([{text:"None",value:""}].concat(n)):_.none()},Ze={getAnchors:Je},Qe=function(e){var t=j(e);return t.length>0?Q.sanitize(t):_.none()},et={getClasses:Qe},tt=tinymce.util.Tools.resolve("tinymce.util.XHR"),nt=function(e){try{return _.some(JSON.parse(e))}catch(t){return _.none()}},rt=function(e){var t=function(t){return e.convertURL(t.value||t.url,"href")},n=B(e);return new We((function(e){a(n)?tt.send({url:n,success:function(t){return e(nt(t))},error:function(t){return e(_.none())}}):c(n)?n((function(t){return e(_.some(t))})):e(_.from(n))})).then((function(e){return e.bind(Q.sanitizeWith(t)).map((function(e){if(e.length>0){var t=[{text:"None",value:""}];return t.concat(e)}return e}))}))},it={getLinks:rt},ot=function(e,t){var n=V(e);if(n.length>0){var r=A(t,"_blank"),i=!1===H(e),o=function(e){return ge(Q.getValue(e),r)},a=i?Q.sanitizeWith(o):Q.sanitize;return a(n)}return _.none()},at={getRels:ot},st=[{text:"Current window",value:""},{text:"New window",value:"_blank"}],lt=function(e){var t=$(e);return s(t)?Q.sanitize(t).orThunk((function(){return _.some(st)})):!1===t?_.none():_.some(st)},ut={getTargets:lt},ct=function(e,t,n){var r=e.getAttrib(t,n);return null!==r&&r.length>0?_.some(r):_.none()},ft=function(e,t){var n=e.dom,r=Ce(e),i=r?_.some(ye(e.selection,t)):_.none(),o=t?_.some(n.getAttrib(t,"href")):_.none(),a=t?_.from(n.getAttrib(t,"target")):_.none(),s=ct(n,t,"rel"),l=ct(n,t,"class"),u=ct(n,t,"title");return{url:o,text:i,title:u,target:a,rel:s,linkClass:l}},dt=function(e,t){return it.getLinks(e).then((function(n){var r=ft(e,t);return{anchor:r,catalogs:{targets:ut.getTargets(e),rels:at.getRels(e,r.target),classes:et.getClasses(e),anchor:Ze.getAnchors(e),link:n},optNode:_.from(t),flags:{titleEnabled:z(e)}}}))},ht={collect:dt},pt=function(e,t){return function(n){var r=n.getData();if(!r.url.value)return Re(e),void n.close();var i=function(e){return _.from(r[e]).filter((function(n){return!A(t.anchor[e],n)}))},o={href:r.url.value,text:i("text"),target:i("target"),rel:i("rel"),class:i("linkClass"),title:i("title")},a={href:r.url.value,attach:void 0!==r.url.meta&&r.url.meta.attach?r.url.meta.attach:f};Xe.preprocess(e,o).then((function(t){Me(e,a,t)})),n.close()}},mt=function(e){var t=be(e);return ht.collect(e,t)},gt=function(e,t){var n=e.anchor,r=n.url.getOr("");return{url:{value:r,meta:{original:{value:r}}},text:n.text.getOr(""),title:n.title.getOr(""),anchor:r,link:r,rel:n.rel.getOr(""),target:n.target.or(t).getOr(""),linkClass:n.linkClass.getOr("")}},vt=function(e,t,n){var r=[{name:"url",type:"urlinput",filetype:"file",label:"URL"}],i=e.anchor.text.map((function(){return{name:"text",type:"input",label:"Text to display"}})).toArray(),o=e.flags.titleEnabled?[{name:"title",type:"input",label:"Title"}]:[],a=_.from(L(n)),s=gt(e,a),l=e.catalogs,u=He.init(s,l),c={type:"panel",items:E([r,i,o,P([l.anchor.map(Q.createUi("anchor","Anchors")),l.rels.map(Q.createUi("rel","Rel")),l.targets.map(Q.createUi("target","Open link in...")),l.link.map(Q.createUi("link","Link list")),l.classes.map(Q.createUi("linkClass","Class"))])])};return{title:"Insert/Edit Link",size:"normal",body:c,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:s,onChange:function(e,t){var n=t.name;u.onChange(e.getData,{name:n}).each((function(t){e.setData(t)}))},onSubmit:t}},bt=function(e){var t=mt(e);t.then((function(t){var n=pt(e,t);return vt(t,n,e)})).then((function(t){e.windowManager.open(t)}))},yt=function(e,t){document.body.appendChild(e),e.dispatchEvent(t),document.body.removeChild(e)},wt=function(e){var t=document.createElement("a");t.target="_blank",t.href=e,t.rel="noreferrer noopener";var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),yt(t,n)},_t=function(e,t){return e.dom.getParent(t,"a[href]")},Ct=function(e){return _t(e,e.selection.getStart())},xt=function(e){return!0===e.altKey&&!1===e.shiftKey&&!1===e.ctrlKey&&!1===e.metaKey},St=function(e,t){if(t){var n=me(t);if(/^#/.test(n)){var r=e.$(n);r.length&&e.selection.scrollIntoView(r[0],!0)}else wt(t.href)}},kt=function(e){return function(){bt(e)}},Dt=function(e){return function(){St(e,Ct(e))}},Ot=function(e){e.on("click",(function(n){var r=_t(e,n.target);r&&t.metaKeyPressed(n)&&(n.preventDefault(),St(e,r))})),e.on("keydown",(function(t){var n=Ct(e);n&&13===t.keyCode&&xt(t)&&(t.preventDefault(),St(e,n))}))},Tt=function(e,t){return e.on("NodeChange",t),function(){return e.off("NodeChange",t)}},Et=function(e){return function(t){var n=function(){return t.setActive(!e.mode.isReadOnly()&&null!==be(e,e.selection.getNode()))};return n(),Tt(e,n)}},It=function(e){return function(t){var n=function(){return t.setDisabled(null===be(e,e.selection.getNode()))};return n(),Tt(e,n)}},Nt=function(e){return function(t){var n=function(t){return we(t)||_e(e.selection.getRng())},r=e.dom.getParents(e.selection.getStart());return t.setDisabled(!n(r)),Tt(e,(function(e){return t.setDisabled(!n(e.parents))}))}},At=function(e){e.addCommand("mceLink",(function(){U(e)?e.fire("contexttoolbar-show",{toolbarKey:"quicklink"}):kt(e)()}))},Pt=function(e){e.addShortcut("Meta+K","",(function(){e.execCommand("mceLink")}))},Mt=function(e){e.ui.registry.addToggleButton("link",{icon:"link",tooltip:"Insert/edit link",onAction:kt(e),onSetup:Et(e)}),e.ui.registry.addButton("openlink",{icon:"new-tab",tooltip:"Open link",onAction:Dt(e),onSetup:It(e)}),e.ui.registry.addButton("unlink",{icon:"unlink",tooltip:"Remove link",onAction:function(){return Re(e)},onSetup:Nt(e)})},Rt=function(e){e.ui.registry.addMenuItem("openlink",{text:"Open link",icon:"new-tab",onAction:Dt(e),onSetup:It(e)}),e.ui.registry.addMenuItem("link",{icon:"link",text:"Link...",shortcut:"Meta+K",onAction:kt(e)}),e.ui.registry.addMenuItem("unlink",{icon:"unlink",text:"Remove link",onAction:function(){return Re(e)},onSetup:Nt(e)})},Ft=function(e){var t="link unlink openlink",n="link";e.ui.registry.addContextMenu("link",{update:function(r){return we(e.dom.getParents(r,"a"))?t:n}})},Bt=function(e){var t=function(e){e.selection.collapse(!1)},n=function(t){var n=e.selection.getNode();return t.setDisabled(!be(e,n)),f},r=function(t){var n=be(e),r=Ce(e);if(!n&&r){var i=ye(e.selection,n);return _.some(i.length>0?i:t)}return _.none()};e.ui.registry.addContextForm("quicklink",{launch:{type:"contextformtogglebutton",icon:"link",tooltip:"Link",onSetup:Et(e)},label:"Link",predicate:function(t){return!!be(e,t)&&F(e)},initValue:function(){var t=be(e);return t?me(t):""},commands:[{type:"contextformtogglebutton",icon:"link",tooltip:"Link",primary:!0,onSetup:function(t){var n=e.selection.getNode();return t.setActive(!!be(e,n)),Et(e)(t)},onAction:function(n){var i=n.getValue(),o=r(i),a={href:i,attach:f};Me(e,a,{href:i,text:o,title:_.none(),rel:_.none(),target:_.none(),class:_.none()}),t(e),n.hide()}},{type:"contextformbutton",icon:"unlink",tooltip:"Remove link",onSetup:n,onAction:function(t){Re(e),t.hide()}},{type:"contextformbutton",icon:"new-tab",tooltip:"Open link",onSetup:n,onAction:function(t){Dt(e)(),t.hide()}}]})};function Lt(){e.add("link",(function(e){Mt(e),Rt(e),Ft(e),Bt(e),Ot(e),At(e),Pt(e)}))}Lt()})()},bee2:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("a38e");function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Object(r["a"])(i.key),i)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},bf0b:function(e,t,n){var r=n("355d"),i=n("aebd"),o=n("36c3"),a=n("1bc3"),s=n("07e3"),l=n("794b"),u=Object.getOwnPropertyDescriptor;t.f=n("8e60")?u:function(e,t){if(e=o(e),t=a(t,!0),l)try{return u(e,t)}catch(n){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},bf32:function(e,t,n){"use strict";t.__esModule=!0,t.isEmpty=t.isEqual=t.arrayEquals=t.looseEqual=t.capitalize=t.kebabCase=t.autoprefixer=t.isFirefox=t.isEdge=t.isIE=t.coerceTruthyValueToArray=t.arrayFind=t.arrayFindIndex=t.escapeRegexpString=t.valueEquals=t.generateId=t.getValueByPath=void 0;var r=n("1907"),i=d(r),o=n("8034"),a=d(o),s=n("1098"),l=d(s);t.noop=p,t.hasOwn=m,t.toObject=v,t.getPropByPath=b,t.rafThrottle=x,t.objToArray=S;var u=n("8bbf"),c=d(u),f=n("11bf");function d(e){return e&&e.__esModule?e:{default:e}}var h=Object.prototype.hasOwnProperty;function p(){}function m(e,t){return h.call(e,t)}function g(e,t){for(var n in t)e[n]=t[n];return e}function v(e){for(var t={},n=0;n<e.length;n++)e[n]&&g(t,e[n]);return t}t.getValueByPath=function(e,t){t=t||"";for(var n=t.split("."),r=e,i=null,o=0,a=n.length;o<a;o++){var s=n[o];if(!r)break;if(o===a-1){i=r[s];break}r=r[s]}return i};function b(e,t,n){var r=e;t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,"");for(var i=t.split("."),o=0,a=i.length;o<a-1;++o){if(!r&&!n)break;var s=i[o];if(!(s in r)){if(n)throw new Error("please transfer a valid prop path to form item!");break}r=r[s]}return{o:r,k:i[o],v:r?r[i[o]]:null}}t.generateId=function(){return Math.floor(1e4*Math.random())},t.valueEquals=function(e,t){if(e===t)return!0;if(!(e instanceof Array))return!1;if(!(t instanceof Array))return!1;if(e.length!==t.length)return!1;for(var n=0;n!==e.length;++n)if(e[n]!==t[n])return!1;return!0},t.escapeRegexpString=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return String(e).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")};var y=t.arrayFindIndex=function(e,t){for(var n=0;n!==e.length;++n)if(t(e[n]))return n;return-1},w=(t.arrayFind=function(e,t){var n=y(e,t);return-1!==n?e[n]:void 0},t.coerceTruthyValueToArray=function(e){return Array.isArray(e)?e:e?[e]:[]},t.isIE=function(){return!c.default.prototype.$isServer&&!isNaN(Number(document.documentMode))},t.isEdge=function(){return!c.default.prototype.$isServer&&navigator.userAgent.indexOf("Edge")>-1},t.isFirefox=function(){return!c.default.prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)},t.autoprefixer=function(e){if("object"!==("undefined"===typeof e?"undefined":(0,l.default)(e)))return e;var t=["transform","transition","animation"],n=["ms-","webkit-"];return t.forEach((function(t){var r=e[t];t&&r&&n.forEach((function(n){e[n+t]=r}))})),e},t.kebabCase=function(e){var t=/([^-])([A-Z])/g;return e.replace(t,"$1-$2").replace(t,"$1-$2").toLowerCase()},t.capitalize=function(e){return(0,f.isString)(e)?e.charAt(0).toUpperCase()+e.slice(1):e},t.looseEqual=function(e,t){var n=(0,f.isObject)(e),r=(0,f.isObject)(t);return n&&r?(0,a.default)(e)===(0,a.default)(t):!n&&!r&&String(e)===String(t)}),_=t.arrayEquals=function(e,t){if(e=e||[],t=t||[],e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!w(e[n],t[n]))return!1;return!0},C=(t.isEqual=function(e,t){return Array.isArray(e)&&Array.isArray(t)?_(e,t):w(e,t)},t.isEmpty=function(e){if(null==e)return!0;if("boolean"===typeof e)return!1;if("number"===typeof e)return!e;if(e instanceof Error)return""===e.message;switch(Object.prototype.toString.call(e)){case"[object String]":case"[object Array]":return!e.length;case"[object File]":case"[object Map]":case"[object Set]":return!e.size;case"[object Object]":return!(0,i.default)(e).length}return!1});function x(e){var t=!1;return function(){for(var n=this,r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];t||(t=!0,window.requestAnimationFrame((function(){e.apply(n,i),t=!1})))}}function S(e){return Array.isArray(e)?e:C(e)?[]:[e]}},bf6a:function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;function i(e){return decodeURIComponent(e.replace(/\+/g," "))}function o(e){for(var t,n=/([^=?&]+)=?([^&]*)/g,r={};t=n.exec(e);r[i(t[1])]=i(t[2]));return r}function a(e,t){t=t||"";var n=[];for(var i in"string"!==typeof t&&(t="?"),e)r.call(e,i)&&n.push(encodeURIComponent(i)+"="+encodeURIComponent(e[i]));return n.length?t+n.join("&"):""}t.stringify=a,t.parse=o},bf90:function(e,t,n){var r=n("36c3"),i=n("bf0b").f;n("ce7e")("getOwnPropertyDescriptor",(function(){return function(e,t){return i(r(e),t)}}))},c098:function(e,t,n){e.exports=n("d4af")},c207:function(e,t){},c26b:function(e,t,n){"use strict";var r=n("86cc").f,i=n("2aeb"),o=n("dcbc"),a=n("9b43"),s=n("f605"),l=n("4a59"),u=n("01f9"),c=n("d53b"),f=n("7a56"),d=n("9e1e"),h=n("67ab").fastKey,p=n("b39a"),m=d?"_s":"size",g=function(e,t){var n,r=h(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,u){var c=e((function(e,r){s(e,c,t,"_i"),e._t=t,e._i=i(null),e._f=void 0,e._l=void 0,e[m]=0,void 0!=r&&l(r,n,e[u],e)}));return o(c.prototype,{clear:function(){for(var e=p(this,t),n=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];e._f=e._l=void 0,e[m]=0},delete:function(e){var n=p(this,t),r=g(n,e);if(r){var i=r.n,o=r.p;delete n._i[r.i],r.r=!0,o&&(o.n=i),i&&(i.p=o),n._f==r&&(n._f=i),n._l==r&&(n._l=o),n[m]--}return!!r},forEach:function(e){p(this,t);var n,r=a(e,arguments.length>1?arguments[1]:void 0,3);while(n=n?n.n:this._f){r(n.v,n.k,this);while(n&&n.r)n=n.p}},has:function(e){return!!g(p(this,t),e)}}),d&&r(c.prototype,"size",{get:function(){return p(this,t)[m]}}),c},def:function(e,t,n){var r,i,o=g(e,t);return o?o.v=n:(e._l=o={i:i=h(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=o),r&&(r.n=o),e[m]++,"F"!==i&&(e._i[i]=o)),e},getEntry:g,setStrong:function(e,t,n){u(e,t,(function(e,n){this._t=p(e,t),this._k=n,this._l=void 0}),(function(){var e=this,t=e._k,n=e._l;while(n&&n.r)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?c(0,"keys"==t?n.k:"values"==t?n.v:[n.k,n.v]):(e._t=void 0,c(1))}),n?"entries":"values",!n,!0),f(t)}}},c366:function(e,t,n){var r=n("6821"),i=n("9def"),o=n("77f1");e.exports=function(e){return function(t,n,a){var s,l=r(t),u=i(l.length),c=o(a,u);if(e&&n!=n){while(u>c)if(s=l[c++],s!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}}},c367:function(e,t,n){"use strict";var r=n("8436"),i=n("50ed"),o=n("481b"),a=n("36c3");e.exports=n("30f1")(Array,"Array",(function(e,t){this._t=a(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,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},c3a1:function(e,t,n){var r=n("e6f3"),i=n("1691");e.exports=Object.keys||function(e){return r(e,i)}},c4a9:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=function(){return"undefined"!==typeof window?window:e},i=function(){var e=r();return e&&e.tinymce?e.tinymce:null}}).call(this,n("c8ba"))},c559:function(e,t,n){"use strict";n.d(t,"e",(function(){return c})),n.d(t,"b",(function(){return f})),n.d(t,"c",(function(){return d})),n.d(t,"d",(function(){return h})),n.d(t,"a",(function(){return m}));n("ac6a"),n("6b54"),n("551c"),n("28a5");var r=n("bc95"),i=n.n(r),o=n("8bbf"),a=n.n(o),s=n("5f87");function l(e){if(void 0===a.a.prototype.projectModel||"developing.model"!==a.a.prototype.projectModel){var t=u(location.href);if(i.a.setItem("relativeUrl",t),t&&e){var n="",r=e.split("/");if(r.length>=3){var o=r[0]+"//"+r[2];n=e.substring(e.indexOf(o)+o.length)}return t.lastIndexOf("/")===t.length-1&&(t=t.substring(0,t.lastIndexOf("/"))),n?t+n:t}}return e}function u(e){var t=e.split("#");if(t.length>0){var n=t[0],r=n,i=n.split("/");return i.length>=3&&(r=i[0]+"//"+i[2]+"/"),r}}function c(){var e=a.a.prototype.showMenuRoute;return void 0===e&&(e="false"),"true"===e}function f(e){return a.a.prototype.projectModel&&"developing.model"===a.a.prototype.projectModel&&a.a.prototype.frontUrl?a.a.prototype.frontUrl:l(e)}function d(e){return!(!e||"iMatrix"!==e&&"portal"!==e&&"mms"!==e&&"task"!==e&&"wf"!==e&&"dc"!==e&&"mc"!==e&&"mobile"!==e&&"acs"!==e&&"bs"!==e&&"pcm"!==e)}function h(e){return e&&"[object Promise]"===Object.prototype.toString.call(e)}function p(){return Object(s["a"])()}function m(e){var t,n=p();if(n){var r=JSON.parse(n);t=r[e]}return t||(t="zh_CN"),t}},c561:function(e,t,n){"use strict";n("f989")},c5a0:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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="/dist/",n(n.s=93)}({1:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var l,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},2:function(e,t){e.exports=n("f321")},3:function(e,t){e.exports=n("bf32")},6:function(e,t){e.exports=n("1e6c")},7:function(e,t){e.exports=n("8bbf")},93:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",[n("transition",{attrs:{name:e.transition},on:{"after-enter":e.handleAfterEnter,"after-leave":e.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.disabled&&e.showPopper,expression:"!disabled && showPopper"}],ref:"popper",staticClass:"el-popover el-popper",class:[e.popperClass,e.content&&"el-popover--plain"],style:{width:e.width+"px"},attrs:{role:"tooltip",id:e.tooltipId,"aria-hidden":e.disabled||!e.showPopper?"true":"false"}},[e.title?n("div",{staticClass:"el-popover__title",domProps:{textContent:e._s(e.title)}}):e._e(),e._t("default",[e._v(e._s(e.content))])],2)]),n("span",{ref:"wrapper",staticClass:"el-popover__reference-wrapper"},[e._t("reference")],2)],1)};r._withStripped=!0;var i=n(6),o=n.n(i),a=n(2),s=n(3),l={name:"ElPopover",mixins:[o.a],props:{trigger:{type:String,default:"click",validator:function(e){return["click","focus","hover","manual"].indexOf(e)>-1}},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:200},title:String,disabled:Boolean,content:String,reference:{},popperClass:String,width:{},visibleArrow:{default:!0},arrowOffset:{type:Number,default:0},transition:{type:String,default:"fade-in-linear"},tabindex:{type:Number,default:0}},computed:{tooltipId:function(){return"el-popover-"+Object(s.generateId)()}},watch:{showPopper:function(e){this.disabled||(e?this.$emit("show"):this.$emit("hide"))},trigger:function(e,t){this.updateInited(e,t)}},mounted:function(){this.inited()},beforeDestroy:function(){this.cleanup()},deactivated:function(){this.cleanup()},methods:{inited:function(){var e=this.referenceElm=this.reference||this.$refs.reference,t=this.popper||this.$refs.popper;!e&&this.$refs.wrapper.children&&(e=this.referenceElm=this.$refs.wrapper.children[0]),e&&(Object(a.addClass)(e,"el-popover__reference"),e.setAttribute("aria-describedby",this.tooltipId),e.setAttribute("tabindex",this.tabindex),t.setAttribute("tabindex",0),"click"!==this.trigger&&(Object(a.on)(e,"focusin",this.handleFocus_instance),Object(a.on)(t,"focusin",this.handleFocus),Object(a.on)(e,"focusout",this.handleBlur),Object(a.on)(t,"focusout",this.handleBlur)),Object(a.on)(e,"keydown",this.handleKeydown),Object(a.on)(e,"click",this.handleClick)),"click"===this.trigger?(Object(a.on)(e,"click",this.doToggle),Object(a.on)(document,"click",this.handleDocumentClick)):"hover"===this.trigger?(Object(a.on)(e,"mouseenter",this.handleMouseEnter),Object(a.on)(t,"mouseenter",this.handleMouseEnter),Object(a.on)(e,"mouseleave",this.handleMouseLeave),Object(a.on)(t,"mouseleave",this.handleMouseLeave)):"focus"===this.trigger&&(this.tabindex,e.querySelector("input, textarea")?(Object(a.on)(e,"focusin",this.doShow),Object(a.on)(e,"focusout",this.doClose)):(Object(a.on)(e,"mousedown",this.doShow),Object(a.on)(e,"mouseup",this.doClose)))},updateInited:function(){var e=this,t=this.$refs.reference,n=this.$refs.popper;!t&&this.$refs.wrapper.children&&(t=this.referenceElm=this.$refs.wrapper.children[0]),Object(a.off)(t,"click",this.doToggle),Object(a.off)(t,"focusin",this.doShow),Object(a.off)(t,"focusout",this.doClose),Object(a.off)(t,"mousedown",this.doShow),Object(a.off)(t,"mouseup",this.doClose),Object(a.off)(t,"mouseleave",this.handleMouseLeave),Object(a.off)(t,"mouseenter",this.handleMouseEnter),Object(a.off)(document,"click",this.handleDocumentClick),Object(a.off)(n,"focusin",this.handleFocus),Object(a.off)(t,"focusout",this.handleBlur),Object(a.off)(n,"focusout",this.handleBlur),Object(a.off)(t,"focusin",this.handleFocus_instance),this.$nextTick((function(){e.inited()}))},handleFocus_instance:function(e){this.handleFocus();var t=e.__vue__;t&&"function"==typeof t.focus&&t.focus()},doToggle:function(){this.showPopper=!this.showPopper},doShow:function(){this.showPopper=!0},doClose:function(){this.showPopper=!1},handleFocus:function(){Object(a.addClass)(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!0)},handleClick:function(){Object(a.removeClass)(this.referenceElm,"focusing")},handleBlur:function(){Object(a.removeClass)(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!1)},handleMouseEnter:function(){var e=this;clearTimeout(this._timer),this.openDelay?this._timer=setTimeout((function(){e.showPopper=!0}),this.openDelay):this.showPopper=!0},handleKeydown:function(e){27===e.keyCode&&"manual"!==this.trigger&&this.doClose()},handleMouseLeave:function(){var e=this;clearTimeout(this._timer),this.closeDelay?this._timer=setTimeout((function(){e.showPopper=!1}),this.closeDelay):this.showPopper=!1},handleDocumentClick:function(e){var t=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!t&&this.$refs.wrapper.children&&(t=this.referenceElm=this.$refs.wrapper.children[0]),this.$el&&t&&!this.$el.contains(e.target)&&!t.contains(e.target)&&n&&!n.contains(e.target)&&(this.showPopper=!1)},handleAfterEnter:function(){this.$emit("after-enter")},handleAfterLeave:function(){this.$emit("after-leave"),this.doDestroy()},cleanup:function(){(this.openDelay||this.closeDelay)&&clearTimeout(this._timer)}},destroyed:function(){var e=this.reference;Object(a.off)(e,"click",this.doToggle),Object(a.off)(e,"mouseup",this.doClose),Object(a.off)(e,"mousedown",this.doShow),Object(a.off)(e,"focusin",this.doShow),Object(a.off)(e,"focusout",this.doClose),Object(a.off)(e,"mousedown",this.doShow),Object(a.off)(e,"mouseup",this.doClose),Object(a.off)(e,"mouseleave",this.handleMouseLeave),Object(a.off)(e,"mouseenter",this.handleMouseEnter),Object(a.off)(document,"click",this.handleDocumentClick)}},u=n(1),c=Object(u.a)(l,r,[],!1,null,null,null);c.options.__file="packages/popover/src/main.vue";var f=c.exports,d=function(e,t,n){var r=t.expression?t.value:t.arg,i=n.context.$refs[r];i&&(Array.isArray(i)?i[0].$refs.reference=e:i.$refs.reference=e)},h={bind:function(e,t,n){d(e,t,n)},inserted:function(e,t,n){d(e,t,n)}},p=n(7);n.n(p).a.directive("popover",h),f.install=function(e){e.directive("popover",h),e.component(f.name,f)},f.directive=h,t.default=f}})},c5f6:function(e,t,n){"use strict";var r=n("7726"),i=n("69a8"),o=n("2d95"),a=n("5dbc"),s=n("6a99"),l=n("79e5"),u=n("9093").f,c=n("11e9").f,f=n("86cc").f,d=n("aa77").trim,h="Number",p=r[h],m=p,g=p.prototype,v=o(n("2aeb")(g))==h,b="trim"in String.prototype,y=function(e){var t=s(e,!1);if("string"==typeof t&&t.length>2){t=b?t.trim():d(t,3);var n,r,i,o=t.charCodeAt(0);if(43===o||45===o){if(n=t.charCodeAt(2),88===n||120===n)return NaN}else if(48===o){switch(t.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+t}for(var a,l=t.slice(2),u=0,c=l.length;u<c;u++)if(a=l.charCodeAt(u),a<48||a>i)return NaN;return parseInt(l,r)}}return+t};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof p&&(v?l((function(){g.valueOf.call(n)})):o(n)!=h)?a(new m(y(t)),n,p):y(t)};for(var w,_=n("9e1e")?u(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),C=0;_.length>C;C++)i(m,w=_[C])&&!i(p,w)&&f(p,w,c(m,w));p.prototype=g,g.constructor=p,n("2aba")(r,h,p)}},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;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},ca00:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"e",(function(){return getI18n})),__webpack_require__.d(__webpack_exports__,"f",(function(){return getLanguageWithLocale})),__webpack_require__.d(__webpack_exports__,"a",(function(){return analysisCondition})),__webpack_require__.d(__webpack_exports__,"i",(function(){return getPropValue})),__webpack_require__.d(__webpack_exports__,"b",(function(){return analysisValue})),__webpack_require__.d(__webpack_exports__,"k",(function(){return setEntityFieldValue})),__webpack_require__.d(__webpack_exports__,"d",(function(){return getEntityFieldValueWithOutCase})),__webpack_require__.d(__webpack_exports__,"c",(function(){return getEntityFieldValue})),__webpack_require__.d(__webpack_exports__,"g",(function(){return getParentObjectUtil})),__webpack_require__.d(__webpack_exports__,"h",(function(){return getPropNameWhenJoinTable})),__webpack_require__.d(__webpack_exports__,"j",(function(){return isImage}));var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("7f7f"),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("cadf"),core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("456d"),core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es7_array_includes__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("6762"),core_js_modules_es7_array_includes__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es7_array_includes__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es6_string_includes__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("2fdb"),core_js_modules_es6_string_includes__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es6_string_includes__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_es6_string_starts_with__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("f559"),core_js_modules_es6_string_starts_with__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_es6_string_starts_with__WEBPACK_IMPORTED_MODULE_5__),core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("28a5"),core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_6__),core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("a481"),core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_7__),D_MyToolbox_ws_idea_agile_builder_oppo_agile_builder_platform_fe_dev2_dw_iMatrix_UI_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("53ca"),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("ac6a"),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_9__),core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("551c"),core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_10__),_i18n_i18n__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("0692"),vue__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("8bbf"),vue__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_12__),_calculator_calculator_util__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("7da6"),_common_util__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("c559");function getI18n(){return window.$locale?_i18n_i18n__WEBPACK_IMPORTED_MODULE_11__["a"].locale=window.$locale:_i18n_i18n__WEBPACK_IMPORTED_MODULE_11__["a"].locale="cn",_i18n_i18n__WEBPACK_IMPORTED_MODULE_11__["a"]}function getLanguageWithLocale(){var e=window.$locale;return e&&"zh"!==e||(e="cn"),Object(_common_util__WEBPACK_IMPORTED_MODULE_14__["a"])(e)}function findOptionsByDynamicDataSource(e,t,n,r,i){return new Promise((function(o,a){findDynamicDataSourceByCode(e,t,n,r,i).then((function(e){var t=[];if(e&&e.options){var n,r=e.options;e.valueAttribute&&(n=e.valueAttribute),n&&"[label]"!==n||(n="_label_"),r.forEach((function(e){var r=e[n],i=e["_label_"];t.push({label:i,value:r})}))}t||(t=[]),o(t)})).catch((function(e){a(e)}))}))}function findDynamicDataSourceByCode(e,t,n,r,i){var o,a,s,l,u;i&&(o=i.watchAttrValue,void 0!==o&&null!==o||(o=""),a=i.parent,s=i._listCode,l=i._formCode,u=i._tableName);var c={searchText:t,watchAttrValue:o,parent:a};r&&"object"===Object(D_MyToolbox_ws_idea_agile_builder_oppo_agile_builder_platform_fe_dev2_dw_iMatrix_UI_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_8__["a"])(r)?c.additionalParamMap=r:r&&"string"===typeof r&&(c.additionalParamMap=JSON.parse(r)),void 0===c.additionalParamMap&&(c.additionalParamMap={}),s&&(c.additionalParamMap._listCode=s),l&&(c.additionalParamMap._formCode=l),u&&(c.additionalParamMap._tableName=u),n&&null!==n&&(c.entity=n);var f=vue__WEBPACK_IMPORTED_MODULE_12___default.a.prototype.baseURL;return new Promise((function(t,n){void 0!==vue__WEBPACK_IMPORTED_MODULE_12___default.a.prototype.systemCode&&"iMatrix"===vue__WEBPACK_IMPORTED_MODULE_12___default.a.prototype.systemCode?t():vue__WEBPACK_IMPORTED_MODULE_12___default.a.prototype.$http.post(f+"/common/dynamic-data-source/"+e,c).then((function(r){r.backendUrl?vue__WEBPACK_IMPORTED_MODULE_12___default.a.prototype.$http.post(r.backendUrl+"/common/dynamic-data-source/"+e,c).then((function(e){t(e)})).catch((function(e){n(e)})):t(r)})).catch((function(e){n(e)}))}))}function analysisCondition(e,t,n,r,i,o,a){if(void 0===e||""===e||null===e)return!0;"undefined"!==typeof i&&null!==i||(i=!1);var s={};n&&"string"===typeof n&&""!==n?s=JSON.parse(n):n&&"object"===Object(D_MyToolbox_ws_idea_agile_builder_oppo_agile_builder_platform_fe_dev2_dw_iMatrix_UI_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_8__["a"])(n)&&(s=n);var l={};r&&"string"===typeof r&&""!==r?l=JSON.parse(r):r&&"object"===Object(D_MyToolbox_ws_idea_agile_builder_oppo_agile_builder_platform_fe_dev2_dw_iMatrix_UI_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_8__["a"])(r)&&(l=r);var u=[];return e&&"string"===typeof e&&""!==e?u=JSON.parse(e):e&&Array.isArray(e)&&(u=e),parseCondition(t,u,i,o,s,l,a)}function parseCondition(entity,conditionList,isSql,tableName,additionalParamMap,contextParameterMap,parentFormData){if(void 0===conditionList||null===conditionList||0===conditionList.length)return!0;for(var conditions="",i=0;i<conditionList.length;i++){var condition=conditionList[i],propName=condition.propName,propDbName=condition.propDbName;if(propName&&""!==propName||propDbName&&""!==propDbName){var leftValue=void 0;if(isSql&&propDbName){if(-1!==propDbName.indexOf("parent_+_")){propDbName=propDbName.replace("parent_+_","");var propDbNameArr=propDbName.split("_+_");propDbName=propDbNameArr[1],leftValue=getValue(parentFormData,propDbName,isSql)}else leftValue=getValue(entity,propDbName,isSql);if((void 0===leftValue||null===leftValue)&&tableName&&propDbName.toLowerCase().startsWith(tableName.toLowerCase()+".")){var myProp=propDbName.substring(propDbName.indexOf("."));leftValue=getValue(entity,myProp,isSql)}}else{if(-1!==propName.indexOf("parent_+_")){propName=propName.replace("parent_+_","");var propNameArr=propName.split("_+_");propName=propNameArr[1],leftValue=getValue(parentFormData,propName,isSql)}else leftValue=getValue(entity,propName,isSql);!propDbName||void 0!==leftValue&&null!==leftValue||(leftValue=getValue(entity,propDbName,isSql))}var operator=condition.operator,propValue=condition.propValue,dataType=condition.dataType,variableIsNullStr=condition.variableIsNull,value=getPropValue(propValue,entity,additionalParamMap,contextParameterMap);variableIsNullStr&&"null"===variableIsNullStr&&(void 0!==value&&""!==value||(value=null));var conditionResult=Object(_calculator_calculator_util__WEBPACK_IMPORTED_MODULE_13__["a"])(leftValue,operator,value,dataType),leftBracket=condition.leftBracket,rightBracket=condition.rightBracket,joinSign=condition.joinSign;if(leftBracket&&null!==leftBracket&&""!==leftBracket&&(conditions+=leftBracket,conditions+=" "),variableIsNullStr&&"null"!==variableIsNullStr&&(void 0!==value&&null!==value&&value+""!==""||(conditionResult="1=1"===variableIsNullStr)),conditions+=conditionResult+" ",rightBracket&&null!==rightBracket&&""!==rightBracket&&(conditions+=rightBracket,conditions+=" "),i<conditionList.length-1&&joinSign&&null!==joinSign&&""!==joinSign){var joinSignIgnoreCase=joinSign.toLowerCase();"and"===joinSignIgnoreCase?joinSign=joinSignIgnoreCase.replace("and","&&"):"or"===joinSignIgnoreCase&&(joinSign=joinSignIgnoreCase.replace("or","||")),conditions+=joinSign+" "}}}return!conditions||eval("("+conditions+")")}var REPLACE_DOT="__";function getValue(e,t,n){var r=null;return e&&null!==e&&t&&null!==t&&(r=getValueByField(e,t),void 0!==r&&null!==r||n&&(void 0!==r&&null!=r||t.indexOf(".")>0&&(t=t.replace(".",REPLACE_DOT),r=getValueByField(e,t)))),r}function getValueByField(e,t){var n;if(e&&null!==e)return n=t.indexOf(".")>0?getSubEntityValue(e,t):e[t],n}function getSubEntityValue(e,t){for(var n=null,r=e,i=t.split("\\."),o=0;o<i.length;o++){var a=i[o];o===i.length?n=getSubEntityFieldValue(r,a):r=getSubEntityFieldValue(r,a)}return n}function getSubEntityFieldValue(e,t){return void 0===e||null===e?null:e[t]}function getContextValue(e,t){if(e)return e[t]}function getPropValue(e,t,n,r,i,o,a){var s=null;if(e&&null!==e&&""!==e)if("null"===e)s=null;else if(e.includes("${context.")||e.includes("${request.")||e.includes("${obj.")){if(e.includes("${context."))e=e.replace("${context.","").replace("}",""),s=getContextValue(r,e);else if(e.includes("${request.")&&"${request.term}"!==e)e=e.replace("${request.","").replace("}",""),s=n&&null!=n&&Object.keys(n).indexOf(e)>=0&&n[e]&&null!==n[e]?n[e]:null;else if(e.includes("${obj."))if(void 0===t||null==t)s=null;else{var l=e.replace("${obj.","").replace("}","");s=getEntityFieldValue(t,l)}}else if(e.includes("${parent."))if(void 0===i||null==i)s=null;else{var u=e.replace("${parent.","").replace("}","");s=getEntityFieldValue(i,u)}else if(e.includes("${task."))if(void 0===a||null==a)s=null;else{var c=e.replace("${task.","").replace("}","");s=getEntityFieldValue(a,c)}else if(e.includes("${subObj."))if(void 0===o||null==o)s=null;else{var f=e.replace("${subObj.","").replace("}","");s=getEntityFieldValue(o,f)}else s=e.includes("${input.")?e.replace("${input.","").replace("}",""):e;return s}function analysisValue(e,t,n,r){if(e){var i="",o=e.split("-#-#");return null!=o&&o.length>0&&o.forEach((function(e){var o=getPropValue(e,t,n,r);o&&null!==o||(o=""),i+=o})),i}}function setEntityFieldValue(e,t,n){if(t&&e)if(t&&t.indexOf(".")>0){var r=getParentObjectUtil(t,e);if(r){var i=t.substring(t.lastIndexOf(".")+1);void 0===r[i]?vue__WEBPACK_IMPORTED_MODULE_12___default.a.set(r,t.substring(t.lastIndexOf(".")+1),n):r[i]=n}}else void 0===e[t]?vue__WEBPACK_IMPORTED_MODULE_12___default.a.set(e,t,n):e[t]=n}function getEntityFieldValueWithOutCase(e,t){if(t&&t.indexOf(".")>0){var n=getParentObjectUtil(t,e),r=t.substring(t.lastIndexOf(".")+1);return n[r]}return e[t]}function getEntityFieldValue(e,t,n){var r=getEntityFieldValueWithCase(e,t);return void 0===r&&(r=getEntityFieldValueWithCase(e,t.toLowerCase())),void 0===r&&void 0===n&&(r=getEntityFieldValueWithCase(e,t.toUpperCase())),r}function getEntityFieldValueWithCase(e,t){if(t&&t.indexOf(".")>0){var n=getParentObjectUtil(t,e),r=t.substring(t.lastIndexOf(".")+1);return n[r]}return e[t]}function getParentObjectUtil(e,t){var n=e.split(".");if(1===n.length)return t;for(var r,i=0;i<n.length-1;i++)r=getParentModelProp(n[i],0===i?t:r);return r}function getParentModelProp(e,t){var n=getParentModelPropWithCase(e,t);return void 0===n&&(n=getParentModelPropWithCase(e.toLowerCase(),t)),void 0===n&&(n=getParentModelPropWithCase(e.toUpperCase(),t)),n}function getParentModelPropWithCase(e,t){return t||(t={}),t[e]||(t[e]={}),t[e]}function findSystemInfoByCode(e){return new Promise((function(t,n){e||(e=vue__WEBPACK_IMPORTED_MODULE_12___default.a.prototype.systemCode),vue__WEBPACK_IMPORTED_MODULE_12___default.a.prototype.$http.get(vue__WEBPACK_IMPORTED_MODULE_12___default.a.prototype.baseAPI+"/component/business-systems/"+e).then((function(n){t(n?{zh_CN:n.name,en_US:n.enName,frontendUrl:n.frontendUrl}:"系统:"+e+"不存在")})).catch((function(e){n(e)}))}))}function getPropNameWhenJoinTable(e,t,n){if(e&&void 0!==t&&!0===t){var r="__";e.indexOf(".")>0?e=e.replace(".",r):n&&null!==n&&""!==n&&e.indexOf(n+r)<0&&(e=n+r+e)}return e}function isImage(e){return!!/\.(jpg|JPG|jpeg|JPEG|png|PNG|gif|GIF|bmp|BMP|psd|PSD|tif|TIF)$/.test(e)}},ca08:function(e,t,n){"use strict";var r=n("d0b6"),i=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.getNotFoundInstance=function(){return new t},t.kind="NotFoundException",t}(r["a"]);t["a"]=o},ca57:function(e,t,n){},ca5a:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},cadf:function(e,t,n){"use strict";var r=n("9c6c"),i=n("d53b"),o=n("84f2"),a=n("6821");e.exports=n("01f9")(Array,"Array",(function(e,t){this._t=a(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,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},cb12:function(e,t,n){"use strict";var r=n("63af"),i=n("f0a7"),o=n("9dcc"),a=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=function(e){function t(t,n){void 0===t&&(t=void 0),void 0===n&&(n=void 0);var r=e.call(this,n)||this;return r.index=t,r.message=n,r}return a(t,e),t.kind="ArrayIndexOutOfBoundsException",t}(o["a"]),l=s,u=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},c=function(){function e(){}return e.fill=function(e,t){for(var n=0,r=e.length;n<r;n++)e[n]=t},e.fillWithin=function(t,n,r,i){e.rangeCheck(t.length,n,r);for(var o=n;o<r;o++)t[o]=i},e.rangeCheck=function(e,t,n){if(t>n)throw new i["a"]("fromIndex("+t+") > toIndex("+n+")");if(t<0)throw new l(t);if(n>e)throw new l(n)},e.asList=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e},e.create=function(e,t,n){var r=Array.from({length:e});return r.map((function(e){return Array.from({length:t}).fill(n)}))},e.createInt32Array=function(e,t,n){var r=Array.from({length:e});return r.map((function(e){return Int32Array.from({length:t}).fill(n)}))},e.equals=function(e,t){if(!e)return!1;if(!t)return!1;if(!e.length)return!1;if(!t.length)return!1;if(e.length!==t.length)return!1;for(var n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0},e.hashCode=function(e){var t,n;if(null===e)return 0;var r=1;try{for(var i=u(e),o=i.next();!o.done;o=i.next()){var a=o.value;r=31*r+a}}catch(s){t={error:s}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},e.fillUint8Array=function(e,t){for(var n=0;n!==e.length;n++)e[n]=t},e.copyOf=function(e,t){return e.slice(0,t)},e.copyOfUint8Array=function(e,t){if(e.length<=t){var n=new Uint8Array(t);return n.set(e),n}return e.slice(0,t)},e.copyOfRange=function(e,t,n){var i=n-t,o=new Int32Array(i);return r["a"].arraycopy(e,t,o,0,i),o},e.binarySearch=function(t,n,r){void 0===r&&(r=e.numberComparator);var i=0,o=t.length-1;while(i<=o){var a=o+i>>1,s=r(n,t[a]);if(s>0)i=a+1;else{if(!(s<0))return a;o=a-1}}return-i-1},e.numberComparator=function(e,t){return e-t},e}();t["a"]=c},cb76:function(e,t,n){"use strict";n("e34f")},cb7c:function(e,t,n){var r=n("d3f4");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},ccb9:function(e,t,n){t.f=n("5168")},cd1c:function(e,t,n){var r=n("e853");e.exports=function(e,t){return new(r(e))(t)}},cd78:function(e,t,n){var r=n("e4ae"),i=n("f772"),o=n("656e");e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e),a=n.resolve;return a(t),n.promise}},cda1:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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="/dist/",n(n.s=107)}({1:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var l,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},107:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-checkbox",class:[e.checkboxSize?"el-checkbox--"+e.checkboxSize:"",{"is-disabled":e.isDisabled},{"is-bordered":e.border},{"is-checked":e.isChecked}],attrs:{id:e.id}},[n("span",{staticClass:"el-checkbox__input",class:{"is-disabled":e.isDisabled,"is-checked":e.isChecked,"is-indeterminate":e.indeterminate,"is-focus":e.focus},attrs:{tabindex:!!e.indeterminate&&0,role:!!e.indeterminate&&"checkbox","aria-checked":!!e.indeterminate&&"mixed"}},[n("span",{staticClass:"el-checkbox__inner"}),e.trueLabel||e.falseLabel?n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":e.indeterminate?"true":"false",name:e.name,disabled:e.isDisabled,"true-value":e.trueLabel,"false-value":e.falseLabel},domProps:{checked:Array.isArray(e.model)?e._i(e.model,null)>-1:e._q(e.model,e.trueLabel)},on:{change:[function(t){var n=e.model,r=t.target,i=r.checked?e.trueLabel:e.falseLabel;if(Array.isArray(n)){var o=e._i(n,null);r.checked?o<0&&(e.model=n.concat([null])):o>-1&&(e.model=n.slice(0,o).concat(n.slice(o+1)))}else e.model=i},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":e.indeterminate?"true":"false",disabled:e.isDisabled,name:e.name},domProps:{value:e.label,checked:Array.isArray(e.model)?e._i(e.model,e.label)>-1:e.model},on:{change:[function(t){var n=e.model,r=t.target,i=!!r.checked;if(Array.isArray(n)){var o=e.label,a=e._i(n,o);r.checked?a<0&&(e.model=n.concat([o])):a>-1&&(e.model=n.slice(0,a).concat(n.slice(a+1)))}else e.model=i},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}})]),e.$slots.default||e.label?n("span",{staticClass:"el-checkbox__label"},[e._t("default"),e.$slots.default?e._e():[e._v(e._s(e.label))]],2):e._e()])};r._withStripped=!0;var i=n(4),o={name:"ElCheckbox",mixins:[n.n(i).a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElCheckbox",data:function(){return{selfModel:!1,focus:!1,isLimitExceeded:!1}},computed:{model:{get:function(){return this.isGroup?this.store:void 0!==this.value?this.value:this.selfModel},set:function(e){this.isGroup?(this.isLimitExceeded=!1,void 0!==this._checkboxGroup.min&&e.length<this._checkboxGroup.min&&(this.isLimitExceeded=!0),void 0!==this._checkboxGroup.max&&e.length>this._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch("ElCheckboxGroup","input",[e])):(this.$emit("input",e),this.selfModel=e)}},isChecked:function(){return"[object Boolean]"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?this.model.indexOf(this.label)>-1:null!==this.model&&void 0!==this.model&&this.model===this.trueLabel},isGroup:function(){for(var e=this.$parent;e;){if("ElCheckboxGroup"===e.$options.componentName)return this._checkboxGroup=e,!0;e=e.$parent}return!1},store:function(){return this._checkboxGroup?this._checkboxGroup.value:this.value},isLimitDisabled:function(){var e=this._checkboxGroup,t=e.max,n=e.min;return!(!t&&!n)&&this.model.length>=t&&!this.isChecked||this.model.length<=n&&this.isChecked},isDisabled:function(){return this.isGroup?this._checkboxGroup.disabled||this.disabled||(this.elForm||{}).disabled||this.isLimitDisabled:this.disabled||(this.elForm||{}).disabled},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxSize:function(){var e=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._checkboxGroup.checkboxGroupSize||e}},props:{value:{},label:{},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number],id:String,controls:String,border:Boolean,size:String},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(e){var t=this;if(!this.isLimitExceeded){var n=void 0;n=e.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit("change",n,e),this.$nextTick((function(){t.isGroup&&t.dispatch("ElCheckboxGroup","change",[t._checkboxGroup.value])}))}}},created:function(){this.checked&&this.addToStore()},mounted:function(){this.indeterminate&&this.$el.setAttribute("aria-controls",this.controls)},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",e)}}},a=n(1),s=Object(a.a)(o,r,[],!1,null,null,null);s.options.__file="packages/checkbox/src/checkbox.vue";var l=s.exports;l.install=function(e){e.component(l.name,l)},t.default=l},4:function(e,t){e.exports=n("bbe4")}})},cdd9:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)},n=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},r=function(e){return function(t){return n(t)===e}},i=function(e){return function(t){return typeof t===e}},o=function(e){return function(t){return e===t}},a=r("string"),s=r("object"),l=r("array"),u=o(null),c=i("boolean"),f=function(e){return null===e||void 0===e},d=function(e){return!f(e)},h=i("function"),p=i("number"),m=function(){},g=function(e){return function(){return e}},v=function(e){return e},b=g(!1),y=g(!0),w=function(){return _},_=function(){var e=function(e){return e()},t=v,n={fold:function(e,t){return e()},isSome:b,isNone:y,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:g(null),getOrUndefined:g(void 0),or:t,orThunk:e,map:w,each:m,bind:w,exists:b,forall:y,filter:function(){return w()},toArray:function(){return[]},toString:g("none()")};return n}(),C=function(e){var t=g(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},isSome:y,isNone:b,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return C(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:_},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return i},x=function(e){return null===e||void 0===e?_:C(e)},S={some:C,none:w,from:x},k=Object.keys,D=Object.hasOwnProperty,O=function(e,t){for(var n=k(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];t(a,o)}},T=function(e){return function(t,n){e[n]=t}},E=function(e,t,n,r){var i={};return O(e,(function(e,i){(t(e,i)?n:r)(e,i)})),i},I=function(e,t){var n={};return E(e,t,T(n),m),n},N=function(e,t){return D.call(e,t)},A=function(e,t){return N(e,t)&&void 0!==e[t]&&null!==e[t]},P=Array.prototype.push,M=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!l(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);P.apply(t,e[n])}return t},R=function(e,t){return t>=0&&t<e.length?S.some(e[t]):S.none()},F=function(e){return R(e,0)},B=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return S.none()};"undefined"!==typeof window?window:Function("return this;")();var L=function(e,t,n){if(!(a(n)||c(n)||p(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},$=function(e,t,n){L(e.dom,t,n)},V=function(e,t){e.dom.removeAttribute(t)},j=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return U(r.childNodes[0])},z=function(e,t){var n=t||document,r=n.createElement(e);return U(r)},H=function(e,t){var n=t||document,r=n.createTextNode(e);return U(r)},U=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},W=function(e,t,n){return S.from(e.dom.elementFromPoint(t,n)).map(U)},q={fromHtml:j,fromTag:z,fromText:H,fromDom:U,fromPoint:W},G=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),Y=tinymce.util.Tools.resolve("tinymce.util.Promise"),K=tinymce.util.Tools.resolve("tinymce.util.URI"),X=tinymce.util.Tools.resolve("tinymce.util.XHR"),J=function(e){return e.getParam("image_dimensions",!0,"boolean")},Z=function(e){return e.getParam("image_advtab",!1,"boolean")},Q=function(e){return e.getParam("image_uploadtab",!0,"boolean")},ee=function(e){return e.getParam("image_prepend_url","","string")},te=function(e){return e.getParam("image_class_list")},ne=function(e){return e.getParam("image_description",!0,"boolean")},re=function(e){return e.getParam("image_title",!1,"boolean")},ie=function(e){return e.getParam("image_caption",!1,"boolean")},oe=function(e){return e.getParam("image_list",!1)},ae=function(e){return d(e.getParam("images_upload_url"))},se=function(e){return d(e.getParam("images_upload_handler"))},le=function(e){return e.getParam("a11y_advanced_options",!1,"boolean")},ue=function(e){return e.getParam("automatic_uploads",!0,"boolean")},ce=function(e,t){return Math.max(parseInt(e,10),parseInt(t,10))},fe=function(e){return new Y((function(t){var n=document.createElement("img"),r=function(e){n.onload=n.onerror=null,n.parentNode&&n.parentNode.removeChild(n),t(e)};n.onload=function(){var e=ce(n.width,n.clientWidth),t=ce(n.height,n.clientHeight),i={width:e,height:t};r(Y.resolve(i))},n.onerror=function(){r(Y.reject("Failed to get image dimensions for: "+e))};var i=n.style;i.visibility="hidden",i.position="fixed",i.bottom=i.left="0px",i.width=i.height="auto",document.body.appendChild(n),n.src=e}))},de=function(e){return e&&(e=e.replace(/px$/,"")),e},he=function(e){return e.length>0&&/^[0-9]+$/.test(e)&&(e+="px"),e},pe=function(e){if(e.margin){var t=String(e.margin).split(" ");switch(t.length){case 1:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[0],e["margin-bottom"]=e["margin-bottom"]||t[0],e["margin-left"]=e["margin-left"]||t[0];break;case 2:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[0],e["margin-left"]=e["margin-left"]||t[1];break;case 3:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[2],e["margin-left"]=e["margin-left"]||t[1];break;case 4:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[2],e["margin-left"]=e["margin-left"]||t[3]}delete e.margin}return e},me=function(e,t){var n=oe(e);a(n)?X.send({url:n,success:function(e){t(JSON.parse(e))}}):h(n)?n(t):t(n)},ge=function(e,t,n){var r=function(){n.onload=n.onerror=null,e.selection&&(e.selection.select(n),e.nodeChanged())};n.onload=function(){t.width||t.height||!J(e)||e.dom.setAttribs(n,{width:String(n.clientWidth),height:String(n.clientHeight)}),r()},n.onerror=r},ve=function(e){return new Y((function(t,n){var r=new FileReader;r.onload=function(){t(r.result)},r.onerror=function(){n(r.error.message)},r.readAsDataURL(e)}))},be=function(e){return"IMG"===e.nodeName&&(e.hasAttribute("data-mce-object")||e.hasAttribute("data-mce-placeholder"))},ye=function(e,t){return K.isDomSafe(t,"img",e.settings)},we=G.DOM,_e=function(e){return e.style.marginLeft&&e.style.marginRight&&e.style.marginLeft===e.style.marginRight?de(e.style.marginLeft):""},Ce=function(e){return e.style.marginTop&&e.style.marginBottom&&e.style.marginTop===e.style.marginBottom?de(e.style.marginTop):""},xe=function(e){return e.style.borderWidth?de(e.style.borderWidth):""},Se=function(e,t){return e.hasAttribute(t)?e.getAttribute(t):""},ke=function(e,t){return e.style[t]?e.style[t]:""},De=function(e){return null!==e.parentNode&&"FIGURE"===e.parentNode.nodeName},Oe=function(e,t,n){""===n?e.removeAttribute(t):e.setAttribute(t,n)},Te=function(e){var t=we.create("figure",{class:"image"});we.insertAfter(t,e),t.appendChild(e),t.appendChild(we.create("figcaption",{contentEditable:"true"},"Caption")),t.contentEditable="false"},Ee=function(e){var t=e.parentNode;we.insertAfter(e,t),we.remove(t)},Ie=function(e){De(e)?Ee(e):Te(e)},Ne=function(e,t){var n=e.getAttribute("style"),r=t(null!==n?n:"");r.length>0?(e.setAttribute("style",r),e.setAttribute("data-mce-style",r)):e.removeAttribute("style")},Ae=function(e,t){return function(e,n,r){e.style[n]?(e.style[n]=he(r),Ne(e,t)):Oe(e,n,r)}},Pe=function(e,t){return e.style[t]?de(e.style[t]):Se(e,t)},Me=function(e,t){var n=he(t);e.style.marginLeft=n,e.style.marginRight=n},Re=function(e,t){var n=he(t);e.style.marginTop=n,e.style.marginBottom=n},Fe=function(e,t){var n=he(t);e.style.borderWidth=n},Be=function(e,t){e.style.borderStyle=t},Le=function(e){return ke(e,"borderStyle")},$e=function(e){return"FIGURE"===e.nodeName},Ve=function(e){return"IMG"===e.nodeName},je=function(e){return 0===we.getAttrib(e,"alt").length&&"presentation"===we.getAttrib(e,"role")},ze=function(e){return je(e)?"":Se(e,"alt")},He=function(){return{src:"",alt:"",title:"",width:"",height:"",class:"",style:"",caption:!1,hspace:"",vspace:"",border:"",borderStyle:"",isDecorative:!1}},Ue=function(e,t){var n=document.createElement("img");return Oe(n,"style",t.style),(_e(n)||""!==t.hspace)&&Me(n,t.hspace),(Ce(n)||""!==t.vspace)&&Re(n,t.vspace),(xe(n)||""!==t.border)&&Fe(n,t.border),(Le(n)||""!==t.borderStyle)&&Be(n,t.borderStyle),e(n.getAttribute("style"))},We=function(e,n){var r=document.createElement("img");if(Je(e,t(t({},n),{caption:!1}),r),Ye(r,n.alt,n.isDecorative),n.caption){var i=we.create("figure",{class:"image"});return i.appendChild(r),i.appendChild(we.create("figcaption",{contentEditable:"true"},"Caption")),i.contentEditable="false",i}return r},qe=function(e,t){return{src:Se(t,"src"),alt:ze(t),title:Se(t,"title"),width:Pe(t,"width"),height:Pe(t,"height"),class:Se(t,"class"),style:e(Se(t,"style")),caption:De(t),hspace:_e(t),vspace:Ce(t),border:xe(t),borderStyle:ke(t,"borderStyle"),isDecorative:je(t)}},Ge=function(e,t,n,r,i){n[r]!==t[r]&&i(e,r,n[r])},Ye=function(e,t,n){if(n){we.setAttrib(e,"role","presentation");var r=q.fromDom(e);$(r,"alt","")}else{if(u(t)){r=q.fromDom(e);V(r,"alt")}else{r=q.fromDom(e);$(r,"alt",t)}"presentation"===we.getAttrib(e,"role")&&we.setAttrib(e,"role","")}},Ke=function(e,t,n){n.alt===t.alt&&n.isDecorative===t.isDecorative||Ye(e,n.alt,n.isDecorative)},Xe=function(e,t){return function(n,r,i){e(n,i),Ne(n,t)}},Je=function(e,t,n){var r=qe(e,n);Ge(n,r,t,"caption",(function(e,t,n){return Ie(e)})),Ge(n,r,t,"src",Oe),Ge(n,r,t,"title",Oe),Ge(n,r,t,"width",Ae("width",e)),Ge(n,r,t,"height",Ae("height",e)),Ge(n,r,t,"class",Oe),Ge(n,r,t,"style",Xe((function(e,t){return Oe(e,"style",t)}),e)),Ge(n,r,t,"hspace",Xe(Me,e)),Ge(n,r,t,"vspace",Xe(Re,e)),Ge(n,r,t,"border",Xe(Fe,e)),Ge(n,r,t,"borderStyle",Xe(Be,e)),Ke(n,r,t)},Ze=function(e,t){var n=e.dom.styles.parse(t),r=pe(n),i=e.dom.styles.parse(e.dom.styles.serialize(r));return e.dom.styles.serialize(i)},Qe=function(e){var t=e.selection.getNode(),n=e.dom.getParent(t,"figure.image");return n?e.dom.select("img",n)[0]:t&&("IMG"!==t.nodeName||be(t))?null:t},et=function(e,t){var n=e.dom,r=I(e.schema.getTextBlockElements(),(function(t,n){return!e.schema.isValidChild(n,"figure")})),i=n.getParent(t.parentNode,(function(e){return A(r,e.nodeName)}),e.getBody());return i?n.split(i,t):t},tt=function(e){var t=Qe(e);return t?qe((function(t){return Ze(e,t)}),t):He()},nt=function(e,t){var n=We((function(t){return Ze(e,t)}),t);e.dom.setAttrib(n,"data-mce-id","__mcenew"),e.focus(),e.selection.setContent(n.outerHTML);var r=e.dom.select('*[data-mce-id="__mcenew"]')[0];if(e.dom.setAttrib(r,"data-mce-id",null),$e(r)){var i=et(e,r);e.selection.select(i)}else e.selection.select(r)},rt=function(e,t){e.dom.setAttrib(t,"src",t.getAttribute("src"))},it=function(e,t){if(t){var n=e.dom.is(t.parentNode,"figure.image")?t.parentNode:t;e.dom.remove(n),e.focus(),e.nodeChanged(),e.dom.isEmpty(e.getBody())&&(e.setContent(""),e.selection.setCursorLocation())}},ot=function(e,t){var n=Qe(e);if(Je((function(t){return Ze(e,t)}),t,n),rt(e,n),$e(n.parentNode)){var r=n.parentNode;et(e,r),e.selection.select(n.parentNode)}else e.selection.select(n),ge(e,t,n)},at=function(e,n){var r=n.src;return t(t({},n),{src:ye(e,r)?r:""})},st=function(e,n){var r=Qe(e);if(r){var i=qe((function(t){return Ze(e,t)}),r),o=t(t({},i),n),a=at(e,o);o.src?ot(e,a):it(e,r)}else n.src&&nt(e,t(t({},He()),n))},lt=function(e,t){var n=s(e)&&s(t);return n?ct(e,t):t},ut=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(0===t.length)throw new Error("Can't merge zero objects");for(var r={},i=0;i<t.length;i++){var o=t[i];for(var a in o)N(o,a)&&(r[a]=e(r[a],o[a]))}return r}},ct=ut(lt),ft=function(e){return e.length>0},dt=tinymce.util.Tools.resolve("tinymce.util.ImageUploader"),ht=tinymce.util.Tools.resolve("tinymce.util.Tools"),pt=function(e){return a(e.value)?e.value:""},mt=function(e){return a(e.text)?e.text:a(e.title)?e.title:""},gt=function(e,t){var n=[];return ht.each(e,(function(e){var r=mt(e);if(void 0!==e.menu){var i=gt(e.menu,t);n.push({text:r,items:i})}else{var o=t(e);n.push({text:r,value:o})}})),n},vt=function(e){return void 0===e&&(e=pt),function(t){return t?S.from(t).map((function(t){return gt(t,e)})):S.none()}},bt=function(e){return vt(pt)(e)},yt=function(e){return N(e,"items")},wt=function(e,t){return B(e,(function(e){return yt(e)?wt(e.items,t):e.value===t?S.some(e):S.none()}))},_t=function(e,t){return e.bind((function(e){return wt(e,t)}))},Ct={sanitizer:vt,sanitize:bt,findEntry:_t},xt=function(e){return{title:"Advanced",name:"advanced",items:[{type:"input",label:"Style",name:"style"},{type:"grid",columns:2,items:[{type:"input",label:"Vertical space",name:"vspace",inputMode:"numeric"},{type:"input",label:"Horizontal space",name:"hspace",inputMode:"numeric"},{type:"input",label:"Border width",name:"border",inputMode:"numeric"},{type:"listbox",name:"borderstyle",label:"Border style",items:[{text:"Select...",value:""},{text:"Solid",value:"solid"},{text:"Dotted",value:"dotted"},{text:"Dashed",value:"dashed"},{text:"Double",value:"double"},{text:"Groove",value:"groove"},{text:"Ridge",value:"ridge"},{text:"Inset",value:"inset"},{text:"Outset",value:"outset"},{text:"None",value:"none"},{text:"Hidden",value:"hidden"}]}]}]}},St={makeTab:xt},kt=function(e){var t=Ct.sanitizer((function(t){return e.convertURL(t.value||t.url,"src")})),n=new Y((function(n){me(e,(function(e){n(t(e).map((function(e){return M([[{text:"None",value:""}],e])})))}))})),r=Ct.sanitize(te(e)),i=Z(e),o=Q(e),s=ae(e),l=se(e),u=tt(e),c=ne(e),f=re(e),d=J(e),h=ie(e),p=le(e),m=ue(e),g=S.some(ee(e)).filter((function(e){return a(e)&&e.length>0}));return n.then((function(e){return{image:u,imageList:e,classList:r,hasAdvTab:i,hasUploadTab:o,hasUploadUrl:s,hasUploadHandler:l,hasDescription:c,hasImageTitle:f,hasDimensions:d,hasImageCaption:h,prependURL:g,hasAccessibilityOptions:p,automaticUploads:m}}))},Dt=function(e){var n={name:"src",type:"urlinput",filetype:"image",label:"Source"},r=e.imageList.map((function(e){return{name:"images",type:"listbox",label:"Image list",items:e}})),i={name:"alt",type:"input",label:"Alternative description",disabled:e.hasAccessibilityOptions&&e.image.isDecorative},o={name:"title",type:"input",label:"Image title"},a={name:"dimensions",type:"sizeinput"},s={type:"label",label:"Accessibility",items:[{name:"isDecorative",type:"checkbox",label:"Image is decorative"}]},l=e.classList.map((function(e){return{name:"classes",type:"listbox",label:"Class",items:e}})),u={type:"label",label:"Caption",items:[{type:"checkbox",name:"caption",label:"Show caption"}]},c=function(e){return e?{type:"grid",columns:2}:{type:"panel"}};return M([[n],r.toArray(),e.hasAccessibilityOptions&&e.hasDescription?[s]:[],e.hasDescription?[i]:[],e.hasImageTitle?[o]:[],e.hasDimensions?[a]:[],[t(t({},c(e.classList.isSome()&&e.hasImageCaption)),{items:M([l.toArray(),e.hasImageCaption?[u]:[]])})]])},Ot=function(e){return{title:"General",name:"general",items:Dt(e)}},Tt={makeTab:Ot,makeItems:Dt},Et=function(e){var t=[{type:"dropzone",name:"fileinput"}];return{title:"Upload",name:"upload",items:t}},It={makeTab:Et},Nt=function(e){return{prevImage:Ct.findEntry(e.imageList,e.image.src),prevAlt:e.image.alt,open:!0}},At=function(e){return{src:{value:e.src,meta:{}},images:e.src,alt:e.alt,title:e.title,dimensions:{width:e.width,height:e.height},classes:e.class,caption:e.caption,style:e.style,vspace:e.vspace,border:e.border,hspace:e.hspace,borderstyle:e.borderStyle,fileinput:[],isDecorative:e.isDecorative}},Pt=function(e,t){return{src:e.src.value,alt:0===e.alt.length&&t?null:e.alt,title:e.title,width:e.dimensions.width,height:e.dimensions.height,class:e.classes,style:e.style,caption:e.caption,hspace:e.hspace,vspace:e.vspace,border:e.border,borderStyle:e.borderstyle,isDecorative:e.isDecorative}},Mt=function(e,t){return/^(?:[a-zA-Z]+:)?\/\//.test(t)?S.none():e.prependURL.bind((function(e){return t.substring(0,e.length)!==e?S.some(e+t):S.none()}))},Rt=function(e,t){var n=t.getData();Mt(e,n.src.value).each((function(e){t.setData({src:{value:e,meta:n.src.meta}})}))},Ft=function(e,t,n){e.hasDescription&&a(n.alt)&&(t.alt=n.alt),e.hasAccessibilityOptions&&(t.isDecorative=n.isDecorative||t.isDecorative||!1),e.hasImageTitle&&a(n.title)&&(t.title=n.title),e.hasDimensions&&(a(n.width)&&(t.dimensions.width=n.width),a(n.height)&&(t.dimensions.height=n.height)),a(n.class)&&Ct.findEntry(e.classList,n.class).each((function(e){t.classes=e.value})),e.hasImageCaption&&c(n.caption)&&(t.caption=n.caption),e.hasAdvTab&&(a(n.style)&&(t.style=n.style),a(n.vspace)&&(t.vspace=n.vspace),a(n.border)&&(t.border=n.border),a(n.hspace)&&(t.hspace=n.hspace),a(n.borderstyle)&&(t.borderstyle=n.borderstyle))},Bt=function(e,t){var n=t.getData(),r=n.src.meta;if(void 0!==r){var i=ct({},n);Ft(e,i,r),t.setData(i)}},Lt=function(e,t,n,r){var i=r.getData(),o=i.src.value,a=i.src.meta||{};a.width||a.height||!t.hasDimensions||(ft(o)?e.imageSize(o).then((function(e){n.open&&r.setData({dimensions:e})})).catch((function(e){return console.error(e)})):r.setData({dimensions:{width:"",height:""}}))},$t=function(e,t,n){var r=n.getData(),i=Ct.findEntry(e.imageList,r.src.value);t.prevImage=i,n.setData({images:i.map((function(e){return e.value})).getOr("")})},Vt=function(e,t,n,r){Rt(t,r),Bt(t,r),Lt(e,t,n,r),$t(t,n,r)},jt=function(e,t,n,r){var i=r.getData(),o=Ct.findEntry(t.imageList,i.images);o.each((function(e){var t=""===i.alt||n.prevImage.map((function(e){return e.text===i.alt})).getOr(!1);t?""===e.value?r.setData({src:e,alt:n.prevAlt}):r.setData({src:e,alt:e.text}):r.setData({src:e})})),n.prevImage=o,Vt(e,t,n,r)},zt=function(e){var t=e["margin-top"]&&e["margin-bottom"]&&e["margin-top"]===e["margin-bottom"];return t?de(String(e["margin-top"])):""},Ht=function(e){var t=e["margin-right"]&&e["margin-left"]&&e["margin-right"]===e["margin-left"];return t?de(String(e["margin-right"])):""},Ut=function(e){return e["border-width"]?de(String(e["border-width"])):""},Wt=function(e){return e["border-style"]?String(e["border-style"]):""},qt=function(e,t,n){return t(e(t(n)))},Gt=function(e,t,n){var r=pe(e(n.style)),i=ct({},n);return i.vspace=zt(r),i.hspace=Ht(r),i.border=Ut(r),i.borderstyle=Wt(r),i.style=qt(e,t,r),i},Yt=function(e,t){var n=t.getData(),r=Gt(e.parseStyle,e.serializeStyle,n);t.setData(r)},Kt=function(e,t,n){var r=ct(At(t.image),n.getData()),i=Ue(e.normalizeCss,Pt(r,!1));n.setData({style:i})},Xt=function(e,t,n,r){var i=r.getData();r.block("Uploading image"),F(i.fileinput).fold((function(){r.unblock()}),(function(i){var o=URL.createObjectURL(i),a=function(){r.unblock(),URL.revokeObjectURL(o)},s=function(i){r.setData({src:{value:i,meta:{}}}),r.showTab("general"),Vt(e,t,n,r)};ve(i).then((function(n){var l=e.createBlobCache(i,o,n);t.automaticUploads?e.uploadImage(l).then((function(e){s(e.url),a()})).catch((function(t){a(),e.alertErr(t)})):(e.addToBlobCache(l),s(l.blobUri()),r.unblock())}))}))},Jt=function(e,t,n){return function(r,i){"src"===i.name?Vt(e,t,n,r):"images"===i.name?jt(e,t,n,r):"alt"===i.name?n.prevAlt=r.getData().alt:"style"===i.name?Yt(e,r):"vspace"===i.name||"hspace"===i.name||"border"===i.name||"borderstyle"===i.name?Kt(e,t,r):"fileinput"===i.name?Xt(e,t,n,r):"isDecorative"===i.name&&(r.getData().isDecorative?r.disable("alt"):r.enable("alt"))}},Zt=function(e){return function(){e.open=!1}},Qt=function(e){if(e.hasAdvTab||e.hasUploadUrl||e.hasUploadHandler){var t={type:"tabpanel",tabs:M([[Tt.makeTab(e)],e.hasAdvTab?[St.makeTab(e)]:[],e.hasUploadTab&&(e.hasUploadUrl||e.hasUploadHandler)?[It.makeTab(e)]:[]])};return t}var n={type:"panel",items:Tt.makeItems(e)};return n},en=function(e){return function(t){var n=Nt(t);return{title:"Insert/Edit Image",size:"normal",body:Qt(t),buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:At(t.image),onSubmit:e.onSubmit(t),onChange:Jt(e,t,n),onClose:Zt(n)}}},tn=function(e){return function(t){return function(n){var r=ct(At(t.image),n.getData());e.execCommand("mceUpdateImage",!1,Pt(r,t.hasAccessibilityOptions)),e.editorUpload.uploadImagesAuto(),n.close()}}},nn=function(e){return function(t){return ye(e,t)?fe(e.documentBaseURI.toAbsolute(t)).then((function(e){return{width:String(e.width),height:String(e.height)}})):Y.resolve({width:"",height:""})}},rn=function(e){return function(t,n,r){return e.editorUpload.blobCache.create({blob:t,blobUri:n,name:t.name?t.name.replace(/\.[^\.]+$/,""):null,filename:t.name,base64:r.split(",")[1]})}},on=function(e){return function(t){e.editorUpload.blobCache.add(t)}},an=function(e){return function(t){e.windowManager.alert(t)}},sn=function(e){return function(t){return Ze(e,t)}},ln=function(e){return function(t){return e.dom.parseStyle(t)}},un=function(e){return function(t,n){return e.dom.serializeStyle(t,n)}},cn=function(e){return function(t){return dt(e).upload([t],!1).then((function(e){return 0===e.length?Y.reject("Failed to upload image"):!1===e[0].status?Y.reject(e[0].error.message):e[0]}))}},fn=function(e){var t={onSubmit:tn(e),imageSize:nn(e),addToBlobCache:on(e),createBlobCache:rn(e),alertErr:an(e),normalizeCss:sn(e),parseStyle:ln(e),serializeStyle:un(e),uploadImage:cn(e)},n=function(){kt(e).then(en(t)).then(e.windowManager.open)};return{open:n}},dn=function(e){e.addCommand("mceImage",fn(e).open),e.addCommand("mceUpdateImage",(function(t,n){e.undoManager.transact((function(){return st(e,n)}))}))},hn=function(e){var t=e.attr("class");return t&&/\bimage\b/.test(t)},pn=function(e){return function(t){var n=t.length,r=function(t){t.attr("contenteditable",e?"true":null)};while(n--){var i=t[n];hn(i)&&(i.attr("contenteditable",e?"false":null),ht.each(i.getAll("figcaption"),r))}}},mn=function(e){e.on("PreInit",(function(){e.parser.addNodeFilter("figure",pn(!0)),e.serializer.addNodeFilter("figure",pn(!1))}))},gn=function(e){e.ui.registry.addToggleButton("image",{icon:"image",tooltip:"Insert/edit image",onAction:fn(e).open,onSetup:function(t){return t.setActive(d(Qe(e))),e.selection.selectorChangedWithUnbind("img:not([data-mce-object],[data-mce-placeholder]),figure.image",t.setActive).unbind}}),e.ui.registry.addMenuItem("image",{icon:"image",text:"Image...",onAction:fn(e).open}),e.ui.registry.addContextMenu("image",{update:function(e){return $e(e)||Ve(e)&&!be(e)?["image"]:[]}})};function vn(){e.add("image",(function(e){mn(e),gn(e),dn(e)}))}vn()})()},ce10:function(e,t,n){var r=n("69a8"),i=n("6821"),o=n("c366")(!1),a=n("613b")("IE_PROTO");e.exports=function(e,t){var n,s=i(e),l=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);while(t.length>l)r(s,n=t[l++])&&(~o(u,n)||u.push(n));return u}},ce7e:function(e,t,n){var r=n("63b6"),i=n("584a"),o=n("294c");e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o((function(){n(1)})),"Object",a)}},cedd:function(e,t,n){"use strict";var r=n("9cca"),i=n("2111"),o=n("0b22"),a=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.encodeCompressedGtin=function(e,t){e.append("(01)");var n=e.length();e.append("9"),this.encodeCompressedGtinWithoutAI(e,t,n)},t.prototype.encodeCompressedGtinWithoutAI=function(e,n,r){for(var i=0;i<4;++i){var o=this.getGeneralDecoder().extractNumericValueFromBitArray(n+10*i,10);o/100===0&&e.append("0"),o/10===0&&e.append("0"),e.append(o)}t.appendCheckDigit(e,r)},t.appendCheckDigit=function(e,t){for(var n=0,r=0;r<13;r++){var i=e.charAt(r+t).charCodeAt(0)-"0".charCodeAt(0);n+=0===(1&r)?3*i:i}n=10-n%10,10===n&&(n=0),e.append(n)},t.GTIN_SIZE=40,t}(o["a"]),l=s,u=n("6530"),c=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),f=function(e){function t(t){return e.call(this,t)||this}return c(t,e),t.prototype.parseInformation=function(){var e=new u["a"];e.append("(01)");var n=e.length(),r=this.getGeneralDecoder().extractNumericValueFromBitArray(t.HEADER_SIZE,4);return e.append(r),this.encodeCompressedGtinWithoutAI(e,t.HEADER_SIZE+4,n),this.getGeneralDecoder().decodeAllCodes(e,t.HEADER_SIZE+44)},t.HEADER_SIZE=4,t}(l),d=f,h=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),p=function(e){function t(t){return e.call(this,t)||this}return h(t,e),t.prototype.parseInformation=function(){var e=new u["a"];return this.getGeneralDecoder().decodeAllCodes(e,t.HEADER_SIZE)},t.HEADER_SIZE=5,t}(o["a"]),m=p,g=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),v=function(e){function t(t){return e.call(this,t)||this}return g(t,e),t.prototype.encodeCompressedWeight=function(e,t,n){var r=this.getGeneralDecoder().extractNumericValueFromBitArray(t,n);this.addWeightCode(e,r);for(var i=this.checkWeight(r),o=1e5,a=0;a<5;++a)i/o===0&&e.append("0"),o/=10;e.append(i)},t}(l),b=v,y=n("ca08"),w=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_=function(e){function t(t){return e.call(this,t)||this}return w(t,e),t.prototype.parseInformation=function(){if(this.getInformation().getSize()!=t.HEADER_SIZE+b.GTIN_SIZE+t.WEIGHT_SIZE)throw new y["a"];var e=new u["a"];return this.encodeCompressedGtin(e,t.HEADER_SIZE),this.encodeCompressedWeight(e,t.HEADER_SIZE+b.GTIN_SIZE,t.WEIGHT_SIZE),e.toString()},t.HEADER_SIZE=5,t.WEIGHT_SIZE=15,t}(b),C=_,x=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),S=function(e){function t(t){return e.call(this,t)||this}return x(t,e),t.prototype.addWeightCode=function(e,t){e.append("(3103)")},t.prototype.checkWeight=function(e){return e},t}(C),k=S,D=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),O=function(e){function t(t){return e.call(this,t)||this}return D(t,e),t.prototype.addWeightCode=function(e,t){t<1e4?e.append("(3202)"):e.append("(3203)")},t.prototype.checkWeight=function(e){return e<1e4?e:e-1e4},t}(C),T=O,E=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),I=function(e){function t(t){return e.call(this,t)||this}return E(t,e),t.prototype.parseInformation=function(){if(this.getInformation().getSize()<t.HEADER_SIZE+l.GTIN_SIZE)throw new y["a"];var e=new u["a"];this.encodeCompressedGtin(e,t.HEADER_SIZE);var n=this.getGeneralDecoder().extractNumericValueFromBitArray(t.HEADER_SIZE+l.GTIN_SIZE,t.LAST_DIGIT_SIZE);e.append("(392"),e.append(n),e.append(")");var r=this.getGeneralDecoder().decodeGeneralPurposeField(t.HEADER_SIZE+l.GTIN_SIZE+t.LAST_DIGIT_SIZE,null);return e.append(r.getNewString()),e.toString()},t.HEADER_SIZE=8,t.LAST_DIGIT_SIZE=2,t}(l),N=I,A=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),P=function(e){function t(t){return e.call(this,t)||this}return A(t,e),t.prototype.parseInformation=function(){if(this.getInformation().getSize()<t.HEADER_SIZE+l.GTIN_SIZE)throw new y["a"];var e=new u["a"];this.encodeCompressedGtin(e,t.HEADER_SIZE);var n=this.getGeneralDecoder().extractNumericValueFromBitArray(t.HEADER_SIZE+l.GTIN_SIZE,t.LAST_DIGIT_SIZE);e.append("(393"),e.append(n),e.append(")");var r=this.getGeneralDecoder().extractNumericValueFromBitArray(t.HEADER_SIZE+l.GTIN_SIZE+t.LAST_DIGIT_SIZE,t.FIRST_THREE_DIGITS_SIZE);r/100==0&&e.append("0"),r/10==0&&e.append("0"),e.append(r);var i=this.getGeneralDecoder().decodeGeneralPurposeField(t.HEADER_SIZE+l.GTIN_SIZE+t.LAST_DIGIT_SIZE+t.FIRST_THREE_DIGITS_SIZE,null);return e.append(i.getNewString()),e.toString()},t.HEADER_SIZE=8,t.LAST_DIGIT_SIZE=2,t.FIRST_THREE_DIGITS_SIZE=10,t}(l),M=P,R=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),F=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.dateCode=r,i.firstAIdigits=n,i}return R(t,e),t.prototype.parseInformation=function(){if(this.getInformation().getSize()!=t.HEADER_SIZE+t.GTIN_SIZE+t.WEIGHT_SIZE+t.DATE_SIZE)throw new y["a"];var e=new u["a"];return this.encodeCompressedGtin(e,t.HEADER_SIZE),this.encodeCompressedWeight(e,t.HEADER_SIZE+t.GTIN_SIZE,t.WEIGHT_SIZE),this.encodeCompressedDate(e,t.HEADER_SIZE+t.GTIN_SIZE+t.WEIGHT_SIZE),e.toString()},t.prototype.encodeCompressedDate=function(e,n){var r=this.getGeneralDecoder().extractNumericValueFromBitArray(n,t.DATE_SIZE);if(38400!=r){e.append("("),e.append(this.dateCode),e.append(")");var i=r%32;r/=32;var o=r%12+1;r/=12;var a=r;a/10==0&&e.append("0"),e.append(a),o/10==0&&e.append("0"),e.append(o),i/10==0&&e.append("0"),e.append(i)}},t.prototype.addWeightCode=function(e,t){e.append("("),e.append(this.firstAIdigits),e.append(t/1e5),e.append(")")},t.prototype.checkWeight=function(e){return e%1e5},t.HEADER_SIZE=8,t.WEIGHT_SIZE=20,t.DATE_SIZE=16,t}(b),B=F;function L(e){try{if(e.get(1))return new d(e);if(!e.get(2))return new m(e);var t=i["a"].extractNumericValueFromBitArray(e,1,4);switch(t){case 4:return new k(e);case 5:return new T(e)}var n=i["a"].extractNumericValueFromBitArray(e,1,5);switch(n){case 12:return new N(e);case 13:return new M(e)}var o=i["a"].extractNumericValueFromBitArray(e,1,7);switch(o){case 56:return new B(e,"310","11");case 57:return new B(e,"320","11");case 58:return new B(e,"310","13");case 59:return new B(e,"320","13");case 60:return new B(e,"310","15");case 61:return new B(e,"320","15");case 62:return new B(e,"310","17");case 63:return new B(e,"320","17")}}catch(a){throw console.log(a),new r["a"]("unknown decoder: "+e)}}n.d(t,"a",(function(){return L}))},d03f:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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="/dist/",n(n.s=104)}({1:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var l,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},104:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-radio",class:[e.radioSize?"el-radio--"+e.radioSize:"",{"is-disabled":e.isDisabled},{"is-focus":e.focus},{"is-bordered":e.border},{"is-checked":e.model===e.label}],attrs:{role:"radio","aria-checked":e.model===e.label,"aria-disabled":e.isDisabled,tabindex:e.tabIndex},on:{keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"]))return null;t.stopPropagation(),t.preventDefault(),e.model=e.isDisabled?e.model:e.label}}},[n("span",{staticClass:"el-radio__input",class:{"is-disabled":e.isDisabled,"is-checked":e.model===e.label}},[n("span",{staticClass:"el-radio__inner"}),n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],ref:"radio",staticClass:"el-radio__original",attrs:{type:"radio","aria-hidden":"true",name:e.name,disabled:e.isDisabled,tabindex:"-1"},domProps:{value:e.label,checked:e._q(e.model,e.label)},on:{focus:function(t){e.focus=!0},blur:function(t){e.focus=!1},change:[function(t){e.model=e.label},e.handleChange]}})]),n("span",{staticClass:"el-radio__label",on:{keydown:function(e){e.stopPropagation()}}},[e._t("default"),e.$slots.default?e._e():[e._v(e._s(e.label))]],2)])};r._withStripped=!0;var i=n(4),o={name:"ElRadio",mixins:[n.n(i).a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElRadio",props:{value:{},label:{},disabled:Boolean,name:String,border:Boolean,size:String},data:function(){return{focus:!1}},computed:{isGroup:function(){for(var e=this.$parent;e;){if("ElRadioGroup"===e.$options.componentName)return this._radioGroup=e,!0;e=e.$parent}return!1},model:{get:function(){return this.isGroup?this._radioGroup.value:this.value},set:function(e){this.isGroup?this.dispatch("ElRadioGroup","input",[e]):this.$emit("input",e),this.$refs.radio&&(this.$refs.radio.checked=this.model===this.label)}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},radioSize:function(){var e=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._radioGroup.radioGroupSize||e},isDisabled:function(){return this.isGroup?this._radioGroup.disabled||this.disabled||(this.elForm||{}).disabled:this.disabled||(this.elForm||{}).disabled},tabIndex:function(){return this.isDisabled||this.isGroup&&this.model!==this.label?-1:0}},methods:{handleChange:function(){var e=this;this.$nextTick((function(){e.$emit("change",e.model),e.isGroup&&e.dispatch("ElRadioGroup","handleChange",e.model)}))}}},a=n(1),s=Object(a.a)(o,r,[],!1,null,null,null);s.options.__file="packages/radio/src/radio.vue";var l=s.exports;l.install=function(e){e.component(l.name,l)},t.default=l},4:function(e,t){e.exports=n("bbe4")}})},d0b6:function(e,t,n){"use strict";function r(e,t){var n=Object.setPrototypeOf;n?n(e,t):e.__proto__=t}function i(e,t){void 0===t&&(t=e.constructor);var n=Error.captureStackTrace;n&&n(e,t)}var o=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),a=function(e){function t(t,n){var o=this.constructor,a=e.call(this,t,n)||this;return Object.defineProperty(a,"name",{value:o.name,enumerable:!1,configurable:!0}),r(a,o.prototype),i(a),a}return o(t,e),t}(Error);var s=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),l=function(e){function t(t){void 0===t&&(t=void 0);var n=e.call(this,t)||this;return n.message=t,n}return s(t,e),t.prototype.getKind=function(){var e=this.constructor;return e.kind},t.kind="Exception",t}(a);t["a"]=l},d0cb:function(e,t,n){"use strict";var r=n("a363"),i=n("ab23"),o=n("ca08"),a=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},l=function(e){function t(){var t=e.call(this)||this;return t.decodeMiddleCounters=Int32Array.from([0,0,0,0]),t}return a(t,e),t.prototype.decodeMiddle=function(e,n,r){var o,a,l,u,c=this.decodeMiddleCounters;c[0]=0,c[1]=0,c[2]=0,c[3]=0;for(var f=e.getSize(),d=n[1],h=0,p=0;p<6&&d<f;p++){var m=i["a"].decodeDigit(e,c,d,i["a"].L_AND_G_PATTERNS);r+=String.fromCharCode("0".charCodeAt(0)+m%10);try{for(var g=(o=void 0,s(c)),v=g.next();!v.done;v=g.next()){var b=v.value;d+=b}}catch(C){o={error:C}}finally{try{v&&!v.done&&(a=g.return)&&a.call(g)}finally{if(o)throw o.error}}m>=10&&(h|=1<<5-p)}r=t.determineFirstDigit(r,h);var y=i["a"].findGuardPattern(e,d,!0,i["a"].MIDDLE_PATTERN,new Int32Array(i["a"].MIDDLE_PATTERN.length).fill(0));d=y[1];for(p=0;p<6&&d<f;p++){m=i["a"].decodeDigit(e,c,d,i["a"].L_PATTERNS);r+=String.fromCharCode("0".charCodeAt(0)+m);try{for(var w=(l=void 0,s(c)),_=w.next();!_.done;_=w.next()){b=_.value;d+=b}}catch(x){l={error:x}}finally{try{_&&!_.done&&(u=w.return)&&u.call(w)}finally{if(l)throw l.error}}}return{rowOffset:d,resultString:r}},t.prototype.getBarcodeFormat=function(){return r["a"].EAN_13},t.determineFirstDigit=function(e,t){for(var n=0;n<10;n++)if(t===this.FIRST_DIGIT_ENCODINGS[n])return e=String.fromCharCode("0".charCodeAt(0)+n)+e,e;throw new o["a"]},t.FIRST_DIGIT_ENCODINGS=[0,11,13,14,19,25,28,21,22,26],t}(i["a"]);t["a"]=l},d192:function(e,t,n){"use strict";t.__esModule=!0;var r=r||{};r.Utils=r.Utils||{},r.Utils.focusFirstDescendant=function(e){for(var t=0;t<e.childNodes.length;t++){var n=e.childNodes[t];if(r.Utils.attemptFocus(n)||r.Utils.focusFirstDescendant(n))return!0}return!1},r.Utils.focusLastDescendant=function(e){for(var t=e.childNodes.length-1;t>=0;t--){var n=e.childNodes[t];if(r.Utils.attemptFocus(n)||r.Utils.focusLastDescendant(n))return!0}return!1},r.Utils.attemptFocus=function(e){if(!r.Utils.isFocusable(e))return!1;r.Utils.IgnoreUtilFocusChanges=!0;try{e.focus()}catch(t){console.log(t)}return r.Utils.IgnoreUtilFocusChanges=!1,document.activeElement===e},r.Utils.isFocusable=function(e){if(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return"hidden"!==e.type&&"file"!==e.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},r.Utils.triggerEvent=function(e,t){var n=void 0;n=/^mouse|click/.test(t)?"MouseEvents":/^key/.test(t)?"KeyboardEvent":"HTMLEvents";for(var r=document.createEvent(n),i=arguments.length,o=Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];return r.initEvent.apply(r,[t].concat(o)),e.dispatchEvent?e.dispatchEvent(r):e.fireEvent("on"+t,r),e},r.Utils.keys={tab:9,enter:13,space:32,left:37,up:38,right:39,down:40,esc:27},t.default=r.Utils},d263:function(e,t,n){"use strict";n("386b")("fixed",(function(e){return function(){return e(this,"tt","","")}}))},d2c8:function(e,t,n){var r=n("aae3"),i=n("be13");e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(e))}},d2fa:function(e,t,n){"use strict";var r=n("a363"),i=n("2011"),o=n("fe96"),a=n("ca08"),s=n("2f50"),l=n("64a7"),u=n("2d92"),c=n("547e"),f=n("34c8"),d=n("2915"),h=n("a9a4"),p=n("b3d8"),m=n("7978"),g=function(){function e(e){var t=e.getHeight();if(t<21||1!==(3&t))throw new m["a"];this.bitMatrix=e}return e.prototype.readFormatInformation=function(){if(null!==this.parsedFormatInfo&&void 0!==this.parsedFormatInfo)return this.parsedFormatInfo;for(var e=0,t=0;t<6;t++)e=this.copyBit(t,8,e);e=this.copyBit(7,8,e),e=this.copyBit(8,8,e),e=this.copyBit(8,7,e);for(var n=5;n>=0;n--)e=this.copyBit(8,n,e);var r=this.bitMatrix.getHeight(),i=0,o=r-7;for(n=r-1;n>=o;n--)i=this.copyBit(8,n,i);for(t=r-8;t<r;t++)i=this.copyBit(t,8,i);if(this.parsedFormatInfo=h["a"].decodeFormatInformation(e,i),null!==this.parsedFormatInfo)return this.parsedFormatInfo;throw new m["a"]},e.prototype.readVersion=function(){if(null!==this.parsedVersion&&void 0!==this.parsedVersion)return this.parsedVersion;var e=this.bitMatrix.getHeight(),t=Math.floor((e-17)/4);if(t<=6)return d["a"].getVersionForNumber(t);for(var n=0,r=e-11,i=5;i>=0;i--)for(var o=e-9;o>=r;o--)n=this.copyBit(o,i,n);var a=d["a"].decodeVersionInformation(n);if(null!==a&&a.getDimensionForVersion()===e)return this.parsedVersion=a,a;n=0;for(o=5;o>=0;o--)for(i=e-9;i>=r;i--)n=this.copyBit(o,i,n);if(a=d["a"].decodeVersionInformation(n),null!==a&&a.getDimensionForVersion()===e)return this.parsedVersion=a,a;throw new m["a"]},e.prototype.copyBit=function(e,t,n){var r=this.isMirror?this.bitMatrix.get(t,e):this.bitMatrix.get(e,t);return r?n<<1|1:n<<1},e.prototype.readCodewords=function(){var e=this.readFormatInformation(),t=this.readVersion(),n=p["a"].values.get(e.getDataMask()),r=this.bitMatrix.getHeight();n.unmaskBitMatrix(this.bitMatrix,r);for(var i=t.buildFunctionPattern(),o=!0,a=new Uint8Array(t.getTotalCodewords()),s=0,l=0,u=0,c=r-1;c>0;c-=2){6===c&&c--;for(var f=0;f<r;f++)for(var d=o?r-1-f:f,h=0;h<2;h++)i.get(c-h,d)||(u++,l<<=1,this.bitMatrix.get(c-h,d)&&(l|=1),8===u&&(a[s++]=l,u=0,l=0));o=!o}if(s!==t.getTotalCodewords())throw new m["a"];return a},e.prototype.remask=function(){if(null!==this.parsedFormatInfo){var e=p["a"].values[this.parsedFormatInfo.getDataMask()],t=this.bitMatrix.getHeight();e.unmaskBitMatrix(this.bitMatrix,t)}},e.prototype.setMirror=function(e){this.parsedVersion=null,this.parsedFormatInfo=null,this.isMirror=e},e.prototype.mirror=function(){for(var e=this.bitMatrix,t=0,n=e.getWidth();t<n;t++)for(var r=t+1,i=e.getHeight();r<i;r++)e.get(t,r)!==e.get(r,t)&&(e.flip(r,t),e.flip(t,r))},e}(),v=g,b=n("f0a7"),y=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},w=function(){function e(e,t){this.numDataCodewords=e,this.codewords=t}return e.getDataBlocks=function(t,n,r){var i,o,a,s;if(t.length!==n.getTotalCodewords())throw new b["a"];var l=n.getECBlocksForLevel(r),u=0,c=l.getECBlocks();try{for(var f=y(c),d=f.next();!d.done;d=f.next()){var h=d.value;u+=h.getCount()}}catch(N){i={error:N}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}var p=new Array(u),m=0;try{for(var g=y(c),v=g.next();!v.done;v=g.next()){h=v.value;for(var w=0;w<h.getCount();w++){var _=h.getDataCodewords(),C=l.getECCodewordsPerBlock()+_;p[m++]=new e(_,new Uint8Array(C))}}}catch(A){a={error:A}}finally{try{v&&!v.done&&(s=g.return)&&s.call(g)}finally{if(a)throw a.error}}var x=p[0].codewords.length,S=p.length-1;while(S>=0){var k=p[S].codewords.length;if(k===x)break;S--}S++;var D=x-l.getECCodewordsPerBlock(),O=0;for(w=0;w<D;w++)for(var T=0;T<m;T++)p[T].codewords[w]=t[O++];for(T=S;T<m;T++)p[T].codewords[D]=t[O++];var E=p[0].codewords.length;for(w=D;w<E;w++)for(T=0;T<m;T++){var I=T<S?w:w+1;p[T].codewords[I]=t[O++]}return p},e.prototype.getNumDataCodewords=function(){return this.numDataCodewords},e.prototype.getCodewords=function(){return this.codewords},e}(),_=w,C=n("5035"),x=function(){function e(e){this.mirrored=e}return e.prototype.isMirrored=function(){return this.mirrored},e.prototype.applyMirroredCorrection=function(e){if(this.mirrored&&null!==e&&!(e.length<3)){var t=e[0];e[0]=e[2],e[2]=t}},e}(),S=x,k=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},D=function(){function e(){this.rsDecoder=new f["a"](c["a"].QR_CODE_FIELD_256)}return e.prototype.decodeBooleanArray=function(e,t){return this.decodeBitMatrix(i["a"].parseFromBooleanArray(e),t)},e.prototype.decodeBitMatrix=function(e,t){var n=new v(e),r=null;try{return this.decodeBitMatrixParser(n,t)}catch(o){r=o}try{n.remask(),n.setMirror(!0),n.readVersion(),n.readFormatInformation(),n.mirror();var i=this.decodeBitMatrixParser(n,t);return i.setOther(new S(!0)),i}catch(o){if(null!==r)throw r;throw o}},e.prototype.decodeBitMatrixParser=function(e,t){var n,r,i,o,a=e.readVersion(),s=e.readFormatInformation().getErrorCorrectionLevel(),l=e.readCodewords(),u=_.getDataBlocks(l,a,s),c=0;try{for(var f=k(u),d=f.next();!d.done;d=f.next()){var h=d.value;c+=h.getNumDataCodewords()}}catch(x){n={error:x}}finally{try{d&&!d.done&&(r=f.return)&&r.call(f)}finally{if(n)throw n.error}}var p=new Uint8Array(c),m=0;try{for(var g=k(u),v=g.next();!v.done;v=g.next()){h=v.value;var b=h.getCodewords(),y=h.getNumDataCodewords();this.correctErrors(b,y);for(var w=0;w<y;w++)p[m++]=b[w]}}catch(S){i={error:S}}finally{try{v&&!v.done&&(o=g.return)&&o.call(g)}finally{if(i)throw i.error}}return C["a"].decode(p,a,s,t)},e.prototype.correctErrors=function(e,t){var n=new Int32Array(e);try{this.rsDecoder.decode(n,e.length-t)}catch(i){throw new u["a"]}for(var r=0;r<t;r++)e[r]=n[r]},e}(),O=D,T=n("fb63"),E=n("7a37"),I=n("be40"),N=n("a0cf"),A=n("8c95"),P=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),M=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.estimatedModuleSize=r,i}return P(t,e),t.prototype.aboutEquals=function(e,t,n){if(Math.abs(t-this.getY())<=e&&Math.abs(n-this.getX())<=e){var r=Math.abs(e-this.estimatedModuleSize);return r<=1||r<=this.estimatedModuleSize}return!1},t.prototype.combineEstimate=function(e,n,r){var i=(this.getX()+n)/2,o=(this.getY()+e)/2,a=(this.estimatedModuleSize+r)/2;return new t(i,o,a)},t}(A["a"]),R=M,F=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},B=function(){function e(e,t,n,r,i,o,a){this.image=e,this.startX=t,this.startY=n,this.width=r,this.height=i,this.moduleSize=o,this.resultPointCallback=a,this.possibleCenters=[],this.crossCheckStateCount=new Int32Array(3)}return e.prototype.find=function(){for(var e=this.startX,t=this.height,n=this.width,r=e+n,i=this.startY+t/2,o=new Int32Array(3),s=this.image,l=0;l<t;l++){var u=i+(0===(1&l)?Math.floor((l+1)/2):-Math.floor((l+1)/2));o[0]=0,o[1]=0,o[2]=0;var c=e;while(c<r&&!s.get(c,u))c++;var f=0;while(c<r){if(s.get(c,u))if(1===f)o[1]++;else if(2===f){if(this.foundPatternCross(o)){var d=this.handlePossibleCenter(o,u,c);if(null!==d)return d}o[0]=o[2],o[1]=1,o[2]=0,f=1}else o[++f]++;else 1===f&&f++,o[f]++;c++}if(this.foundPatternCross(o)){d=this.handlePossibleCenter(o,u,r);if(null!==d)return d}}if(0!==this.possibleCenters.length)return this.possibleCenters[0];throw new a["a"]},e.centerFromEnd=function(e,t){return t-e[2]-e[1]/2},e.prototype.foundPatternCross=function(e){for(var t=this.moduleSize,n=t/2,r=0;r<3;r++)if(Math.abs(t-e[r])>=n)return!1;return!0},e.prototype.crossCheckVertical=function(t,n,r,i){var o=this.image,a=o.getHeight(),s=this.crossCheckStateCount;s[0]=0,s[1]=0,s[2]=0;var l=t;while(l>=0&&o.get(n,l)&&s[1]<=r)s[1]++,l--;if(l<0||s[1]>r)return NaN;while(l>=0&&!o.get(n,l)&&s[0]<=r)s[0]++,l--;if(s[0]>r)return NaN;l=t+1;while(l<a&&o.get(n,l)&&s[1]<=r)s[1]++,l++;if(l===a||s[1]>r)return NaN;while(l<a&&!o.get(n,l)&&s[2]<=r)s[2]++,l++;if(s[2]>r)return NaN;var u=s[0]+s[1]+s[2];return 5*Math.abs(u-i)>=2*i?NaN:this.foundPatternCross(s)?e.centerFromEnd(s,l):NaN},e.prototype.handlePossibleCenter=function(t,n,r){var i,o,a=t[0]+t[1]+t[2],s=e.centerFromEnd(t,r),l=this.crossCheckVertical(n,s,2*t[1],a);if(!isNaN(l)){var u=(t[0]+t[1]+t[2])/3;try{for(var c=F(this.possibleCenters),f=c.next();!f.done;f=c.next()){var d=f.value;if(d.aboutEquals(u,l,s))return d.combineEstimate(l,s,u)}}catch(p){i={error:p}}finally{try{f&&!f.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}var h=new R(s,l,u);this.possibleCenters.push(h),null!==this.resultPointCallback&&void 0!==this.resultPointCallback&&this.resultPointCallback.foundPossibleResultPoint(h)}return null},e}(),L=B,$=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),V=function(e){function t(t,n,r,i){var o=e.call(this,t,n)||this;return o.estimatedModuleSize=r,o.count=i,void 0===i&&(o.count=1),o}return $(t,e),t.prototype.getEstimatedModuleSize=function(){return this.estimatedModuleSize},t.prototype.getCount=function(){return this.count},t.prototype.aboutEquals=function(e,t,n){if(Math.abs(t-this.getY())<=e&&Math.abs(n-this.getX())<=e){var r=Math.abs(e-this.estimatedModuleSize);return r<=1||r<=this.estimatedModuleSize}return!1},t.prototype.combineEstimate=function(e,n,r){var i=this.count+1,o=(this.count*this.getX()+n)/i,a=(this.count*this.getY()+e)/i,s=(this.count*this.estimatedModuleSize+r)/i;return new t(o,a,s,i)},t}(A["a"]),j=V,z=function(){function e(e){this.bottomLeft=e[0],this.topLeft=e[1],this.topRight=e[2]}return e.prototype.getBottomLeft=function(){return this.bottomLeft},e.prototype.getTopLeft=function(){return this.topLeft},e.prototype.getTopRight=function(){return this.topRight},e}(),H=z,U=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},W=function(){function e(e,t){this.image=e,this.resultPointCallback=t,this.possibleCenters=[],this.crossCheckStateCount=new Int32Array(5),this.resultPointCallback=t}return e.prototype.getImage=function(){return this.image},e.prototype.getPossibleCenters=function(){return this.possibleCenters},e.prototype.find=function(t){var n=null!==t&&void 0!==t&&void 0!==t.get(o["a"].TRY_HARDER),r=null!==t&&void 0!==t&&void 0!==t.get(o["a"].PURE_BARCODE),i=this.image,a=i.getHeight(),s=i.getWidth(),l=Math.floor(3*a/(4*e.MAX_MODULES));(l<e.MIN_SKIP||n)&&(l=e.MIN_SKIP);for(var u=!1,c=new Int32Array(5),f=l-1;f<a&&!u;f+=l){c[0]=0,c[1]=0,c[2]=0,c[3]=0,c[4]=0;for(var d=0,h=0;h<s;h++)if(i.get(h,f))1===(1&d)&&d++,c[d]++;else if(0===(1&d))if(4===d)if(e.foundPatternCross(c)){var p=this.handlePossibleCenter(c,f,h,r);if(!0!==p){c[0]=c[2],c[1]=c[3],c[2]=c[4],c[3]=1,c[4]=0,d=3;continue}if(l=2,!0===this.hasSkipped)u=this.haveMultiplyConfirmedCenters();else{var m=this.findRowSkip();m>c[2]&&(f+=m-c[2]-l,h=s-1)}d=0,c[0]=0,c[1]=0,c[2]=0,c[3]=0,c[4]=0}else c[0]=c[2],c[1]=c[3],c[2]=c[4],c[3]=1,c[4]=0,d=3;else c[++d]++;else c[d]++;if(e.foundPatternCross(c)){p=this.handlePossibleCenter(c,f,s,r);!0===p&&(l=c[0],this.hasSkipped&&(u=this.haveMultiplyConfirmedCenters()))}}var g=this.selectBestPatterns();return A["a"].orderBestPatterns(g),new H(g)},e.centerFromEnd=function(e,t){return t-e[4]-e[3]-e[2]/2},e.foundPatternCross=function(e){for(var t=0,n=0;n<5;n++){var r=e[n];if(0===r)return!1;t+=r}if(t<7)return!1;var i=t/7,o=i/2;return Math.abs(i-e[0])<o&&Math.abs(i-e[1])<o&&Math.abs(3*i-e[2])<3*o&&Math.abs(i-e[3])<o&&Math.abs(i-e[4])<o},e.prototype.getCrossCheckStateCount=function(){var e=this.crossCheckStateCount;return e[0]=0,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e},e.prototype.crossCheckDiagonal=function(t,n,r,i){var o=this.getCrossCheckStateCount(),a=0,s=this.image;while(t>=a&&n>=a&&s.get(n-a,t-a))o[2]++,a++;if(t<a||n<a)return!1;while(t>=a&&n>=a&&!s.get(n-a,t-a)&&o[1]<=r)o[1]++,a++;if(t<a||n<a||o[1]>r)return!1;while(t>=a&&n>=a&&s.get(n-a,t-a)&&o[0]<=r)o[0]++,a++;if(o[0]>r)return!1;var l=s.getHeight(),u=s.getWidth();a=1;while(t+a<l&&n+a<u&&s.get(n+a,t+a))o[2]++,a++;if(t+a>=l||n+a>=u)return!1;while(t+a<l&&n+a<u&&!s.get(n+a,t+a)&&o[3]<r)o[3]++,a++;if(t+a>=l||n+a>=u||o[3]>=r)return!1;while(t+a<l&&n+a<u&&s.get(n+a,t+a)&&o[4]<r)o[4]++,a++;if(o[4]>=r)return!1;var c=o[0]+o[1]+o[2]+o[3]+o[4];return Math.abs(c-i)<2*i&&e.foundPatternCross(o)},e.prototype.crossCheckVertical=function(t,n,r,i){var o=this.image,a=o.getHeight(),s=this.getCrossCheckStateCount(),l=t;while(l>=0&&o.get(n,l))s[2]++,l--;if(l<0)return NaN;while(l>=0&&!o.get(n,l)&&s[1]<=r)s[1]++,l--;if(l<0||s[1]>r)return NaN;while(l>=0&&o.get(n,l)&&s[0]<=r)s[0]++,l--;if(s[0]>r)return NaN;l=t+1;while(l<a&&o.get(n,l))s[2]++,l++;if(l===a)return NaN;while(l<a&&!o.get(n,l)&&s[3]<r)s[3]++,l++;if(l===a||s[3]>=r)return NaN;while(l<a&&o.get(n,l)&&s[4]<r)s[4]++,l++;if(s[4]>=r)return NaN;var u=s[0]+s[1]+s[2]+s[3]+s[4];return 5*Math.abs(u-i)>=2*i?NaN:e.foundPatternCross(s)?e.centerFromEnd(s,l):NaN},e.prototype.crossCheckHorizontal=function(t,n,r,i){var o=this.image,a=o.getWidth(),s=this.getCrossCheckStateCount(),l=t;while(l>=0&&o.get(l,n))s[2]++,l--;if(l<0)return NaN;while(l>=0&&!o.get(l,n)&&s[1]<=r)s[1]++,l--;if(l<0||s[1]>r)return NaN;while(l>=0&&o.get(l,n)&&s[0]<=r)s[0]++,l--;if(s[0]>r)return NaN;l=t+1;while(l<a&&o.get(l,n))s[2]++,l++;if(l===a)return NaN;while(l<a&&!o.get(l,n)&&s[3]<r)s[3]++,l++;if(l===a||s[3]>=r)return NaN;while(l<a&&o.get(l,n)&&s[4]<r)s[4]++,l++;if(s[4]>=r)return NaN;var u=s[0]+s[1]+s[2]+s[3]+s[4];return 5*Math.abs(u-i)>=i?NaN:e.foundPatternCross(s)?e.centerFromEnd(s,l):NaN},e.prototype.handlePossibleCenter=function(t,n,r,i){var o=t[0]+t[1]+t[2]+t[3]+t[4],a=e.centerFromEnd(t,r),s=this.crossCheckVertical(n,Math.floor(a),t[2],o);if(!isNaN(s)&&(a=this.crossCheckHorizontal(Math.floor(a),Math.floor(s),t[2],o),!isNaN(a)&&(!i||this.crossCheckDiagonal(Math.floor(s),Math.floor(a),t[2],o)))){for(var l=o/7,u=!1,c=this.possibleCenters,f=0,d=c.length;f<d;f++){var h=c[f];if(h.aboutEquals(l,s,a)){c[f]=h.combineEstimate(s,a,l),u=!0;break}}if(!u){var p=new j(a,s,l);c.push(p),null!==this.resultPointCallback&&void 0!==this.resultPointCallback&&this.resultPointCallback.foundPossibleResultPoint(p)}return!0}return!1},e.prototype.findRowSkip=function(){var t,n,r=this.possibleCenters.length;if(r<=1)return 0;var i=null;try{for(var o=U(this.possibleCenters),a=o.next();!a.done;a=o.next()){var s=a.value;if(s.getCount()>=e.CENTER_QUORUM){if(null!=i)return this.hasSkipped=!0,Math.floor((Math.abs(i.getX()-s.getX())-Math.abs(i.getY()-s.getY()))/2);i=s}}}catch(l){t={error:l}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return 0},e.prototype.haveMultiplyConfirmedCenters=function(){var t,n,r,i,o=0,a=0,s=this.possibleCenters.length;try{for(var l=U(this.possibleCenters),u=l.next();!u.done;u=l.next()){var c=u.value;c.getCount()>=e.CENTER_QUORUM&&(o++,a+=c.getEstimatedModuleSize())}}catch(m){t={error:m}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}if(o<3)return!1;var f=a/s,d=0;try{for(var h=U(this.possibleCenters),p=h.next();!p.done;p=h.next()){c=p.value;d+=Math.abs(c.getEstimatedModuleSize()-f)}}catch(g){r={error:g}}finally{try{p&&!p.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}return d<=.05*a},e.prototype.selectBestPatterns=function(){var e,t,n,r,i=this.possibleCenters.length;if(i<3)throw new a["a"];var o,s=this.possibleCenters;if(i>3){var l=0,u=0;try{for(var c=U(this.possibleCenters),f=c.next();!f.done;f=c.next()){var d=f.value,h=d.getEstimatedModuleSize();l+=h,u+=h*h}}catch(_){e={error:_}}finally{try{f&&!f.done&&(t=c.return)&&t.call(c)}finally{if(e)throw e.error}}o=l/i;var p=Math.sqrt(u/i-o*o);s.sort((function(e,t){var n=Math.abs(t.getEstimatedModuleSize()-o),r=Math.abs(e.getEstimatedModuleSize()-o);return n<r?-1:n>r?1:0}));for(var m=Math.max(.2*o,p),g=0;g<s.length&&s.length>3;g++){var v=s[g];Math.abs(v.getEstimatedModuleSize()-o)>m&&(s.splice(g,1),g--)}}if(s.length>3){l=0;try{for(var b=U(s),y=b.next();!y.done;y=b.next()){var w=y.value;l+=w.getEstimatedModuleSize()}}catch(C){n={error:C}}finally{try{y&&!y.done&&(r=b.return)&&r.call(b)}finally{if(n)throw n.error}}o=l/s.length,s.sort((function(e,t){if(t.getCount()===e.getCount()){var n=Math.abs(t.getEstimatedModuleSize()-o),r=Math.abs(e.getEstimatedModuleSize()-o);return n<r?1:n>r?-1:0}return t.getCount()-e.getCount()})),s.splice(3)}return[s[0],s[1],s[2]]},e.CENTER_QUORUM=2,e.MIN_SKIP=3,e.MAX_MODULES=57,e}(),q=W,G=function(){function e(e){this.image=e}return e.prototype.getImage=function(){return this.image},e.prototype.getResultPointCallback=function(){return this.resultPointCallback},e.prototype.detect=function(e){this.resultPointCallback=null===e||void 0===e?null:e.get(o["a"].NEED_RESULT_POINT_CALLBACK);var t=new q(this.image,this.resultPointCallback),n=t.find(e);return this.processFinderPatternInfo(n)},e.prototype.processFinderPatternInfo=function(t){var n=t.getTopLeft(),r=t.getTopRight(),i=t.getBottomLeft(),o=this.calculateModuleSize(n,r,i);if(o<1)throw new a["a"]("No pattern found in proccess finder.");var s=e.computeDimension(n,r,i,o),l=d["a"].getProvisionalVersionForDimension(s),u=l.getDimensionForVersion()-7,c=null;if(l.getAlignmentPatternCenters().length>0)for(var f=r.getX()-n.getX()+i.getX(),h=r.getY()-n.getY()+i.getY(),p=1-3/u,m=Math.floor(n.getX()+p*(f-n.getX())),g=Math.floor(n.getY()+p*(h-n.getY())),v=4;v<=16;v<<=1)try{c=this.findAlignmentInRegion(o,m,g,v);break}catch(_){if(!(_ instanceof a["a"]))throw _}var b,y=e.createTransform(n,r,i,c,s),w=e.sampleGrid(this.image,y,s);return b=null===c?[i,n,r]:[i,n,r,c],new E["a"](w,b)},e.createTransform=function(e,t,n,r,i){var o,a,s,l,u=i-3.5;return null!==r?(o=r.getX(),a=r.getY(),s=u-3,l=s):(o=t.getX()-e.getX()+n.getX(),a=t.getY()-e.getY()+n.getY(),s=u,l=u),N["a"].quadrilateralToQuadrilateral(3.5,3.5,u,3.5,s,l,3.5,u,e.getX(),e.getY(),t.getX(),t.getY(),o,a,n.getX(),n.getY())},e.sampleGrid=function(e,t,n){var r=I["a"].getInstance();return r.sampleGridWithTransform(e,n,n,t)},e.computeDimension=function(e,t,n,r){var i=T["a"].round(A["a"].distance(e,t)/r),o=T["a"].round(A["a"].distance(e,n)/r),s=Math.floor((i+o)/2)+7;switch(3&s){case 0:s++;break;case 2:s--;break;case 3:throw new a["a"]("Dimensions could be not found.")}return s},e.prototype.calculateModuleSize=function(e,t,n){return(this.calculateModuleSizeOneWay(e,t)+this.calculateModuleSizeOneWay(e,n))/2},e.prototype.calculateModuleSizeOneWay=function(e,t){var n=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(e.getX()),Math.floor(e.getY()),Math.floor(t.getX()),Math.floor(t.getY())),r=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(t.getX()),Math.floor(t.getY()),Math.floor(e.getX()),Math.floor(e.getY()));return isNaN(n)?r/7:isNaN(r)?n/7:(n+r)/14},e.prototype.sizeOfBlackWhiteBlackRunBothWays=function(e,t,n,r){var i=this.sizeOfBlackWhiteBlackRun(e,t,n,r),o=1,a=e-(n-e);a<0?(o=e/(e-a),a=0):a>=this.image.getWidth()&&(o=(this.image.getWidth()-1-e)/(a-e),a=this.image.getWidth()-1);var s=Math.floor(t-(r-t)*o);return o=1,s<0?(o=t/(t-s),s=0):s>=this.image.getHeight()&&(o=(this.image.getHeight()-1-t)/(s-t),s=this.image.getHeight()-1),a=Math.floor(e+(a-e)*o),i+=this.sizeOfBlackWhiteBlackRun(e,t,a,s),i-1},e.prototype.sizeOfBlackWhiteBlackRun=function(e,t,n,r){var i=Math.abs(r-t)>Math.abs(n-e);if(i){var o=e;e=t,t=o,o=n,n=r,r=o}for(var a=Math.abs(n-e),s=Math.abs(r-t),l=-a/2,u=e<n?1:-1,c=t<r?1:-1,f=0,d=n+u,h=e,p=t;h!==d;h+=u){var m=i?p:h,g=i?h:p;if(1===f===this.image.get(m,g)){if(2===f)return T["a"].distance(h,p,e,t);f++}if(l+=s,l>0){if(p===r)break;p+=c,l-=a}}return 2===f?T["a"].distance(n+u,r,e,t):NaN},e.prototype.findAlignmentInRegion=function(e,t,n,r){var i=Math.floor(r*e),o=Math.max(0,t-i),s=Math.min(this.image.getWidth()-1,t+i);if(s-o<3*e)throw new a["a"]("Alignment top exceeds estimated module size.");var l=Math.max(0,n-i),u=Math.min(this.image.getHeight()-1,n+i);if(u-l<3*e)throw new a["a"]("Alignment bottom exceeds estimated module size.");var c=new L(this.image,o,l,s-o,u-l,e,this.resultPointCallback);return c.find()},e}(),Y=G,K=function(){function e(){this.decoder=new O}return e.prototype.getDecoder=function(){return this.decoder},e.prototype.decode=function(t,n){var i,a;if(void 0!==n&&null!==n&&void 0!==n.get(o["a"].PURE_BARCODE)){var u=e.extractPureBits(t.getBlackMatrix());i=this.decoder.decodeBitMatrix(u,n),a=e.NO_POINTS}else{var c=new Y(t.getBlackMatrix()).detect(n);i=this.decoder.decodeBitMatrix(c.getBits(),n),a=c.getPoints()}i.getOther()instanceof S&&i.getOther().applyMirroredCorrection(a);var f=new s["a"](i.getText(),i.getRawBytes(),void 0,a,r["a"].QR_CODE,void 0),d=i.getByteSegments();null!==d&&f.putMetadata(l["a"].BYTE_SEGMENTS,d);var h=i.getECLevel();return null!==h&&f.putMetadata(l["a"].ERROR_CORRECTION_LEVEL,h),i.hasStructuredAppend()&&(f.putMetadata(l["a"].STRUCTURED_APPEND_SEQUENCE,i.getStructuredAppendSequenceNumber()),f.putMetadata(l["a"].STRUCTURED_APPEND_PARITY,i.getStructuredAppendParity())),f},e.prototype.reset=function(){},e.extractPureBits=function(e){var t=e.getTopLeftOnBit(),n=e.getBottomRightOnBit();if(null===t||null===n)throw new a["a"];var r=this.moduleSize(t,e),o=t[1],s=n[1],l=t[0],u=n[0];if(l>=u||o>=s)throw new a["a"];if(s-o!==u-l&&(u=l+(s-o),u>=e.getWidth()))throw new a["a"];var c=Math.round((u-l+1)/r),f=Math.round((s-o+1)/r);if(c<=0||f<=0)throw new a["a"];if(f!==c)throw new a["a"];var d=Math.floor(r/2);o+=d,l+=d;var h=l+Math.floor((c-1)*r)-u;if(h>0){if(h>d)throw new a["a"];l-=h}var p=o+Math.floor((f-1)*r)-s;if(p>0){if(p>d)throw new a["a"];o-=p}for(var m=new i["a"](c,f),g=0;g<f;g++)for(var v=o+Math.floor(g*r),b=0;b<c;b++)e.get(l+Math.floor(b*r),v)&&m.set(b,g);return m},e.moduleSize=function(e,t){var n=t.getHeight(),r=t.getWidth(),i=e[0],o=e[1],s=!0,l=0;while(i<r&&o<n){if(s!==t.get(i,o)){if(5===++l)break;s=!s}i++,o++}if(i===r||o===n)throw new a["a"];return(i-e[0])/7},e.NO_POINTS=new Array,e}();t["a"]=K},d316:function(e,t,n){"use strict";n("0523")},d36d:function(e,t,n){"use strict";n("1108")},d3f4:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},d439:function(e,t,n){"use strict";var r=n("f0a7"),i=function(){function e(){}return e.applyMaskPenaltyRule1=function(t){return e.applyMaskPenaltyRule1Internal(t,!0)+e.applyMaskPenaltyRule1Internal(t,!1)},e.applyMaskPenaltyRule2=function(t){for(var n=0,r=t.getArray(),i=t.getWidth(),o=t.getHeight(),a=0;a<o-1;a++)for(var s=r[a],l=0;l<i-1;l++){var u=s[l];u===s[l+1]&&u===r[a+1][l]&&u===r[a+1][l+1]&&n++}return e.N2*n},e.applyMaskPenaltyRule3=function(t){for(var n=0,r=t.getArray(),i=t.getWidth(),o=t.getHeight(),a=0;a<o;a++)for(var s=0;s<i;s++){var l=r[a];s+6<i&&1===l[s]&&0===l[s+1]&&1===l[s+2]&&1===l[s+3]&&1===l[s+4]&&0===l[s+5]&&1===l[s+6]&&(e.isWhiteHorizontal(l,s-4,s)||e.isWhiteHorizontal(l,s+7,s+11))&&n++,a+6<o&&1===r[a][s]&&0===r[a+1][s]&&1===r[a+2][s]&&1===r[a+3][s]&&1===r[a+4][s]&&0===r[a+5][s]&&1===r[a+6][s]&&(e.isWhiteVertical(r,s,a-4,a)||e.isWhiteVertical(r,s,a+7,a+11))&&n++}return n*e.N3},e.isWhiteHorizontal=function(e,t,n){t=Math.max(t,0),n=Math.min(n,e.length);for(var r=t;r<n;r++)if(1===e[r])return!1;return!0},e.isWhiteVertical=function(e,t,n,r){n=Math.max(n,0),r=Math.min(r,e.length);for(var i=n;i<r;i++)if(1===e[i][t])return!1;return!0},e.applyMaskPenaltyRule4=function(t){for(var n=0,r=t.getArray(),i=t.getWidth(),o=t.getHeight(),a=0;a<o;a++)for(var s=r[a],l=0;l<i;l++)1===s[l]&&n++;var u=t.getHeight()*t.getWidth(),c=Math.floor(10*Math.abs(2*n-u)/u);return c*e.N4},e.getDataMaskBit=function(e,t,n){var i,o;switch(e){case 0:i=n+t&1;break;case 1:i=1&n;break;case 2:i=t%3;break;case 3:i=(n+t)%3;break;case 4:i=Math.floor(n/2)+Math.floor(t/3)&1;break;case 5:o=n*t,i=(1&o)+o%3;break;case 6:o=n*t,i=(1&o)+o%3&1;break;case 7:o=n*t,i=o%3+(n+t&1)&1;break;default:throw new r["a"]("Invalid mask pattern: "+e)}return 0===i},e.applyMaskPenaltyRule1Internal=function(t,n){for(var r=0,i=n?t.getHeight():t.getWidth(),o=n?t.getWidth():t.getHeight(),a=t.getArray(),s=0;s<i;s++){for(var l=0,u=-1,c=0;c<o;c++){var f=n?a[s][c]:a[c][s];f===u?l++:(l>=5&&(r+=e.N1+(l-5)),l=1,u=f)}l>=5&&(r+=e.N1+(l-5))}return r},e.N1=3,e.N2=3,e.N3=40,e.N4=10,e}();t["a"]=i},d4ac:function(e,t,n){"use strict";n("ca57")},d4af:function(e,t,n){"use strict";var r=n("8eb7"),i=n("7b3e"),o=10,a=40,s=800;function l(e){var t=0,n=0,r=0,i=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=t*o,i=n*o,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||i)&&e.deltaMode&&(1==e.deltaMode?(r*=a,i*=a):(r*=s,i*=s)),r&&!t&&(t=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:i}}l.getEventType=function(){return r.firefox()?"DOMMouseScroll":i("wheel")?"wheel":"mousewheel"},e.exports=l},d4c0:function(e,t,n){var r=n("0d58"),i=n("2621"),o=n("52a7");e.exports=function(e){var t=r(e),n=i.f;if(n){var a,s=n(e),l=o.f,u=0;while(s.length>u)l.call(e,a=s[u++])&&t.push(a)}return t}},d4c3:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.Env"),n=function(e){e.addCommand("mcePrint",(function(){t.browser.isIE()?e.getDoc().execCommand("print",!1,null):e.getWin().print()}))},r=function(e){var t=function(){return e.execCommand("mcePrint")};e.ui.registry.addButton("print",{icon:"print",tooltip:"Print",onAction:t}),e.ui.registry.addMenuItem("print",{text:"Print...",icon:"print",onAction:t})};function i(){e.add("print",(function(e){n(e),r(e),e.addShortcut("Meta+P","","mcePrint")}))}i()})()},d4ec:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},d52c:function(e,t,n){"use strict";t.__esModule=!0;var r=n("8bbf"),i=a(r),o=n("f321");function a(e){return e&&e.__esModule?e:{default:e}}var s=!1,l=!1,u=void 0,c=function(){if(!i.default.prototype.$isServer){var e=d.modalDom;return e?s=!0:(s=!1,e=document.createElement("div"),d.modalDom=e,e.addEventListener("touchmove",(function(e){e.preventDefault(),e.stopPropagation()})),e.addEventListener("click",(function(){d.doOnModalClick&&d.doOnModalClick()}))),e}},f={},d={modalFade:!0,getInstance:function(e){return f[e]},register:function(e,t){e&&t&&(f[e]=t)},deregister:function(e){e&&(f[e]=null,delete f[e])},nextZIndex:function(){return d.zIndex++},modalStack:[],doOnModalClick:function(){var e=d.modalStack[d.modalStack.length-1];if(e){var t=d.getInstance(e.id);t&&t.closeOnClickModal&&t.close()}},openModal:function(e,t,n,r,a){if(!i.default.prototype.$isServer&&e&&void 0!==t){this.modalFade=a;for(var l=this.modalStack,u=0,f=l.length;u<f;u++){var d=l[u];if(d.id===e)return}var h=c();if((0,o.addClass)(h,"v-modal"),this.modalFade&&!s&&(0,o.addClass)(h,"v-modal-enter"),r){var p=r.trim().split(/\s+/);p.forEach((function(e){return(0,o.addClass)(h,e)}))}setTimeout((function(){(0,o.removeClass)(h,"v-modal-enter")}),200),n&&n.parentNode&&11!==n.parentNode.nodeType?n.parentNode.appendChild(h):document.body.appendChild(h),t&&(h.style.zIndex=t),h.tabIndex=0,h.style.display="",this.modalStack.push({id:e,zIndex:t,modalClass:r})}},closeModal:function(e){var t=this.modalStack,n=c();if(t.length>0){var r=t[t.length-1];if(r.id===e){if(r.modalClass){var i=r.modalClass.trim().split(/\s+/);i.forEach((function(e){return(0,o.removeClass)(n,e)}))}t.pop(),t.length>0&&(n.style.zIndex=t[t.length-1].zIndex)}else for(var a=t.length-1;a>=0;a--)if(t[a].id===e){t.splice(a,1);break}}0===t.length&&(this.modalFade&&(0,o.addClass)(n,"v-modal-leave"),setTimeout((function(){0===t.length&&(n.parentNode&&n.parentNode.removeChild(n),n.style.display="none",d.modalDom=void 0),(0,o.removeClass)(n,"v-modal-leave")}),200))}};Object.defineProperty(d,"zIndex",{configurable:!0,get:function(){return l||(u=u||(i.default.prototype.$ELEMENT||{}).zIndex||2e3,l=!0),u},set:function(e){u=e}});var h=function(){if(!i.default.prototype.$isServer&&d.modalStack.length>0){var e=d.modalStack[d.modalStack.length-1];if(!e)return;var t=d.getInstance(e.id);return t}};i.default.prototype.$isServer||window.addEventListener("keydown",(function(e){if(27===e.keyCode){var t=h();t&&t.closeOnPressEscape&&(t.handleClose?t.handleClose():t.handleAction?t.handleAction("cancel"):t.close())}})),t.default=d},d53b:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},d5b2:function(e,t,n){"use strict";var r=n("f505"),i=n("0ba3"),o=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(e){function t(t){return void 0===t&&(t=500),e.call(this,new i["a"],t)||this}o(t,e)})(r["a"])},d615:function(e,t,n){"use strict";var r=n("d0b6"),i=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.kind="ReaderException",t}(r["a"]);t["a"]=o},d6e2:function(e,t,n){"use strict";n("25ac")},d864:function(e,t,n){var r=n("79aa");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},d8d6:function(e,t,n){n("1654"),n("6c1c"),e.exports=n("ccb9").f("iterator")},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},d96f:function(e,t,n){"use strict";var r=n("cb12"),i=n("9dcc"),o=n("d0b6"),a=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.kind="NullPointerException",t}(o["a"]),l=s,u=function(){function e(){}return e.prototype.writeBytes=function(e){this.writeBytesOffset(e,0,e.length)},e.prototype.writeBytesOffset=function(e,t,n){if(null==e)throw new l;if(t<0||t>e.length||n<0||t+n>e.length||t+n<0)throw new i["a"];if(0!==n)for(var r=0;r<n;r++)this.write(e[t+r])},e.prototype.flush=function(){},e.prototype.close=function(){},e}(),c=u,f=n("ea29"),d=n("f0a7"),h=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t}(o["a"]),m=p,g=n("63af"),v=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),b=function(e){function t(t){void 0===t&&(t=32);var n=e.call(this)||this;if(n.count=0,t<0)throw new d["a"]("Negative initial size: "+t);return n.buf=new Uint8Array(t),n}return v(t,e),t.prototype.ensureCapacity=function(e){e-this.buf.length>0&&this.grow(e)},t.prototype.grow=function(e){var t=this.buf.length,n=t<<1;if(n-e<0&&(n=e),n<0){if(e<0)throw new m;n=f["a"].MAX_VALUE}this.buf=r["a"].copyOfUint8Array(this.buf,n)},t.prototype.write=function(e){this.ensureCapacity(this.count+1),this.buf[this.count]=e,this.count+=1},t.prototype.writeBytesOffset=function(e,t,n){if(t<0||t>e.length||n<0||t+n-e.length>0)throw new i["a"];this.ensureCapacity(this.count+n),g["a"].arraycopy(e,t,this.buf,this.count,n),this.count+=n},t.prototype.writeTo=function(e){e.writeBytesOffset(this.buf,0,this.count)},t.prototype.reset=function(){this.count=0},t.prototype.toByteArray=function(){return r["a"].copyOfUint8Array(this.buf,this.count)},t.prototype.size=function(){return this.count},t.prototype.toString=function(e){return e?"string"===typeof e?this.toString_string(e):this.toString_number(e):this.toString_void()},t.prototype.toString_void=function(){return new String(this.buf).toString()},t.prototype.toString_string=function(e){return new String(this.buf).toString()},t.prototype.toString_number=function(e){return new String(this.buf).toString()},t.prototype.close=function(){},t}(c);t["a"]=b},d9f6:function(e,t,n){var r=n("e4ae"),i=n("794b"),o=n("1bc3"),a=Object.defineProperty;t.f=n("8e60")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},dbbc:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e){e.addCommand("InsertHorizontalRule",(function(){e.execCommand("mceInsertContent",!1,"<hr />")}))},n=function(e){var t=function(){return e.execCommand("InsertHorizontalRule")};e.ui.registry.addButton("hr",{icon:"horizontal-rule",tooltip:"Horizontal line",onAction:t}),e.ui.registry.addMenuItem("hr",{icon:"horizontal-rule",text:"Horizontal line",onAction:t})};function r(){e.add("hr",(function(e){t(e),n(e)}))}r()})()},dbdb:function(e,t,n){var r=n("584a"),i=n("e53d"),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("b8e3")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},dc62:function(e,t,n){n("9427");var r=n("584a").Object;e.exports=function(e,t){return r.create(e,t)}},dcbc:function(e,t,n){var r=n("2aba");e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},dd05:function(e,t,n){"use strict";var r=n("8c95"),i=n("f52c"),o=n("fb63"),a=n("7f3b"),s=n("547e"),l=n("34c8"),u=n("ca08"),c=n("be40"),f=n("ea29"),d=function(){function e(e,t){this.x=e,this.y=t}return e.prototype.toResultPoint=function(){return new r["a"](this.getX(),this.getY())},e.prototype.getX=function(){return this.x},e.prototype.getY=function(){return this.y},e}(),h=function(){function e(e){this.EXPECTED_CORNER_BITS=new Int32Array([3808,476,2107,1799]),this.image=e}return e.prototype.detect=function(){return this.detectMirror(!1)},e.prototype.detectMirror=function(e){var t=this.getMatrixCenter(),n=this.getBullsEyeCorners(t);if(e){var r=n[0];n[0]=n[2],n[2]=r}this.extractParameters(n);var o=this.sampleGrid(this.image,n[this.shift%4],n[(this.shift+1)%4],n[(this.shift+2)%4],n[(this.shift+3)%4]),a=this.getMatrixCornerPoints(n);return new i["a"](o,a,this.compact,this.nbDataBlocks,this.nbLayers)},e.prototype.extractParameters=function(e){if(!this.isValidPoint(e[0])||!this.isValidPoint(e[1])||!this.isValidPoint(e[2])||!this.isValidPoint(e[3]))throw new u["a"];var t=2*this.nbCenterLayers,n=new Int32Array([this.sampleLine(e[0],e[1],t),this.sampleLine(e[1],e[2],t),this.sampleLine(e[2],e[3],t),this.sampleLine(e[3],e[0],t)]);this.shift=this.getRotation(n,t);for(var r=0,i=0;i<4;i++){var o=n[(this.shift+i)%4];this.compact?(r<<=7,r+=o>>1&127):(r<<=10,r+=(o>>2&992)+(o>>1&31))}var a=this.getCorrectedParameterData(r,this.compact);this.compact?(this.nbLayers=1+(a>>6),this.nbDataBlocks=1+(63&a)):(this.nbLayers=1+(a>>11),this.nbDataBlocks=1+(2047&a))},e.prototype.getRotation=function(e,t){var n=0;e.forEach((function(e,r,i){var o=(e>>t-2<<1)+(1&e);n=(n<<3)+o})),n=((1&n)<<11)+(n>>1);for(var r=0;r<4;r++)if(f["a"].bitCount(n^this.EXPECTED_CORNER_BITS[r])<=2)return r;throw new u["a"]},e.prototype.getCorrectedParameterData=function(e,t){var n,r;t?(n=7,r=2):(n=10,r=4);for(var i=n-r,o=new Int32Array(n),a=n-1;a>=0;--a)o[a]=15&e,e>>=4;try{var c=new l["a"](s["a"].AZTEC_PARAM);c.decode(o,i)}catch(d){throw new u["a"]}var f=0;for(a=0;a<r;a++)f=(f<<4)+o[a];return f},e.prototype.getBullsEyeCorners=function(e){var t=e,n=e,i=e,o=e,a=!0;for(this.nbCenterLayers=1;this.nbCenterLayers<9;this.nbCenterLayers++){var s=this.getFirstDifferent(t,a,1,-1),l=this.getFirstDifferent(n,a,1,1),c=this.getFirstDifferent(i,a,-1,1),f=this.getFirstDifferent(o,a,-1,-1);if(this.nbCenterLayers>2){var d=this.distancePoint(f,s)*this.nbCenterLayers/(this.distancePoint(o,t)*(this.nbCenterLayers+2));if(d<.75||d>1.25||!this.isWhiteOrBlackRectangle(s,l,c,f))break}t=s,n=l,i=c,o=f,a=!a}if(5!==this.nbCenterLayers&&7!==this.nbCenterLayers)throw new u["a"];this.compact=5===this.nbCenterLayers;var h=new r["a"](t.getX()+.5,t.getY()-.5),p=new r["a"](n.getX()+.5,n.getY()+.5),m=new r["a"](i.getX()-.5,i.getY()+.5),g=new r["a"](o.getX()-.5,o.getY()-.5);return this.expandSquare([h,p,m,g],2*this.nbCenterLayers-3,2*this.nbCenterLayers)},e.prototype.getMatrixCenter=function(){var e,t,n,r;try{var i=new a["a"](this.image).detect();e=i[0],t=i[1],n=i[2],r=i[3]}catch(f){var s=this.image.getWidth()/2,l=this.image.getHeight()/2;e=this.getFirstDifferent(new d(s+7,l-7),!1,1,-1).toResultPoint(),t=this.getFirstDifferent(new d(s+7,l+7),!1,1,1).toResultPoint(),n=this.getFirstDifferent(new d(s-7,l+7),!1,-1,1).toResultPoint(),r=this.getFirstDifferent(new d(s-7,l-7),!1,-1,-1).toResultPoint()}var u=o["a"].round((e.getX()+r.getX()+t.getX()+n.getX())/4),c=o["a"].round((e.getY()+r.getY()+t.getY()+n.getY())/4);try{i=new a["a"](this.image,15,u,c).detect();e=i[0],t=i[1],n=i[2],r=i[3]}catch(f){e=this.getFirstDifferent(new d(u+7,c-7),!1,1,-1).toResultPoint(),t=this.getFirstDifferent(new d(u+7,c+7),!1,1,1).toResultPoint(),n=this.getFirstDifferent(new d(u-7,c+7),!1,-1,1).toResultPoint(),r=this.getFirstDifferent(new d(u-7,c-7),!1,-1,-1).toResultPoint()}return u=o["a"].round((e.getX()+r.getX()+t.getX()+n.getX())/4),c=o["a"].round((e.getY()+r.getY()+t.getY()+n.getY())/4),new d(u,c)},e.prototype.getMatrixCornerPoints=function(e){return this.expandSquare(e,2*this.nbCenterLayers,this.getDimension())},e.prototype.sampleGrid=function(e,t,n,r,i){var o=c["a"].getInstance(),a=this.getDimension(),s=a/2-this.nbCenterLayers,l=a/2+this.nbCenterLayers;return o.sampleGrid(e,a,a,s,s,l,s,l,l,s,l,t.getX(),t.getY(),n.getX(),n.getY(),r.getX(),r.getY(),i.getX(),i.getY())},e.prototype.sampleLine=function(e,t,n){for(var r=0,i=this.distanceResultPoint(e,t),a=i/n,s=e.getX(),l=e.getY(),u=a*(t.getX()-e.getX())/i,c=a*(t.getY()-e.getY())/i,f=0;f<n;f++)this.image.get(o["a"].round(s+f*u),o["a"].round(l+f*c))&&(r|=1<<n-f-1);return r},e.prototype.isWhiteOrBlackRectangle=function(e,t,n,r){var i=3;e=new d(e.getX()-i,e.getY()+i),t=new d(t.getX()-i,t.getY()-i),n=new d(n.getX()+i,n.getY()-i),r=new d(r.getX()+i,r.getY()+i);var o=this.getColor(r,e);if(0===o)return!1;var a=this.getColor(e,t);return a===o&&(a=this.getColor(t,n),a===o&&(a=this.getColor(n,r),a===o))},e.prototype.getColor=function(e,t){for(var n=this.distancePoint(e,t),r=(t.getX()-e.getX())/n,i=(t.getY()-e.getY())/n,a=0,s=e.getX(),l=e.getY(),u=this.image.get(e.getX(),e.getY()),c=Math.ceil(n),f=0;f<c;f++)s+=r,l+=i,this.image.get(o["a"].round(s),o["a"].round(l))!==u&&a++;var d=a/n;return d>.1&&d<.9?0:d<=.1===u?1:-1},e.prototype.getFirstDifferent=function(e,t,n,r){var i=e.getX()+n,o=e.getY()+r;while(this.isValid(i,o)&&this.image.get(i,o)===t)i+=n,o+=r;i-=n,o-=r;while(this.isValid(i,o)&&this.image.get(i,o)===t)i+=n;i-=n;while(this.isValid(i,o)&&this.image.get(i,o)===t)o+=r;return o-=r,new d(i,o)},e.prototype.expandSquare=function(e,t,n){var i=n/(2*t),o=e[0].getX()-e[2].getX(),a=e[0].getY()-e[2].getY(),s=(e[0].getX()+e[2].getX())/2,l=(e[0].getY()+e[2].getY())/2,u=new r["a"](s+i*o,l+i*a),c=new r["a"](s-i*o,l-i*a);o=e[1].getX()-e[3].getX(),a=e[1].getY()-e[3].getY(),s=(e[1].getX()+e[3].getX())/2,l=(e[1].getY()+e[3].getY())/2;var f=new r["a"](s+i*o,l+i*a),d=new r["a"](s-i*o,l-i*a),h=[u,f,c,d];return h},e.prototype.isValid=function(e,t){return e>=0&&e<this.image.getWidth()&&t>0&&t<this.image.getHeight()},e.prototype.isValidPoint=function(e){var t=o["a"].round(e.getX()),n=o["a"].round(e.getY());return this.isValid(t,n)},e.prototype.distancePoint=function(e,t){return o["a"].distance(e.getX(),e.getY(),t.getX(),t.getY())},e.prototype.distanceResultPoint=function(e,t){return o["a"].distance(e.getX(),e.getY(),t.getX(),t.getY())},e.prototype.getDimension=function(){return this.compact?4*this.nbLayers+11:this.nbLayers<=4?4*this.nbLayers+15:4*this.nbLayers+2*(f["a"].truncDivision(this.nbLayers-4,8)+1)+15},e}();t["a"]=h},dd22:function(e,t,n){},ddb3:function(e,t,n){"use strict";var r,i,o=n("24ee"),a=d(o),s=n("1907"),l=d(s),u=n("3f6b"),c=d(u),f=n("1098");d(f);function d(e){return e&&e.__esModule?e:{default:e}}
|
|
35
|
+
*/(function(o){var a;if(r=o,i="function"===typeof r?r.call(t,n,t,e):r,void 0===i||(e.exports=i),a=!0,e.exports=o(),a=!0,!a){var s=window.Cookies,l=window.Cookies=o();l.noConflict=function(){return window.Cookies=s,l}}})((function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function n(r){function i(){}function o(t,n,o){if("undefined"!==typeof document){o=e({path:"/"},i.defaults,o),"number"===typeof o.expires&&(o.expires=new Date(1*new Date+864e5*o.expires)),o.expires=o.expires?o.expires.toUTCString():"";try{var a=JSON.stringify(n);/^[\{\[]/.test(a)&&(n=a)}catch(u){}n=r.write?r.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s="";for(var l in o)o[l]&&(s+="; "+l,!0!==o[l]&&(s+="="+o[l].split(";")[0]));return document.cookie=t+"="+n+s}}function a(e,n){if("undefined"!==typeof document){for(var i={},o=document.cookie?document.cookie.split("; "):[],a=0;a<o.length;a++){var s=o[a].split("="),l=s.slice(1).join("=");n||'"'!==l.charAt(0)||(l=l.slice(1,-1));try{var u=t(s[0]);if(l=(r.read||r)(l,u)||t(l),n)try{l=JSON.parse(l)}catch(c){}if(i[u]=l,e===u)break}catch(c){}}return e?i[e]:i}}return i.set=o,i.get=function(e){return a(e,!1)},i.getJSON=function(e){return a(e,!0)},i.remove=function(t,n){o(t,"",e(n,{expires:-1}))},i.defaults={},i.withConverter=n,i}return n((function(){}))}))},a793:function(e,t,n){"use strict";var r=n("a363"),i=n("fe96"),o=n("ca08"),a=n("3d59"),s=n("7bb2"),l=n("be139"),u=n("2f50"),c=n("0b81"),f=n("d0cb"),d=n("ab23"),h=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),p=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},m=function(e){function t(){var t=e.call(this)||this;return t.decodeMiddleCounters=Int32Array.from([0,0,0,0]),t}return h(t,e),t.prototype.decodeMiddle=function(e,t,n){var r,i,o,a,s=this.decodeMiddleCounters;s[0]=0,s[1]=0,s[2]=0,s[3]=0;for(var l=e.getSize(),u=t[1],c=0;c<4&&u<l;c++){var f=d["a"].decodeDigit(e,s,u,d["a"].L_PATTERNS);n+=String.fromCharCode("0".charCodeAt(0)+f);try{for(var h=(r=void 0,p(s)),m=h.next();!m.done;m=h.next()){var g=m.value;u+=g}}catch(w){r={error:w}}finally{try{m&&!m.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}}var v=d["a"].findGuardPattern(e,u,!0,d["a"].MIDDLE_PATTERN,new Int32Array(d["a"].MIDDLE_PATTERN.length).fill(0));u=v[1];for(c=0;c<4&&u<l;c++){f=d["a"].decodeDigit(e,s,u,d["a"].L_PATTERNS);n+=String.fromCharCode("0".charCodeAt(0)+f);try{for(var b=(o=void 0,p(s)),y=b.next();!y.done;y=b.next()){g=y.value;u+=g}}catch(_){o={error:_}}finally{try{y&&!y.done&&(a=b.return)&&a.call(b)}finally{if(o)throw o.error}}}return{rowOffset:u,resultString:n}},t.prototype.getBarcodeFormat=function(){return r["a"].EAN_8},t}(d["a"]),g=m,v=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),b=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ean13Reader=new f["a"],t}return v(t,e),t.prototype.getBarcodeFormat=function(){return r["a"].UPC_A},t.prototype.decode=function(e,t){return this.maybeReturnResult(this.ean13Reader.decode(e))},t.prototype.decodeRow=function(e,t,n){return this.maybeReturnResult(this.ean13Reader.decodeRow(e,t,n))},t.prototype.decodeMiddle=function(e,t,n){return this.ean13Reader.decodeMiddle(e,t,n)},t.prototype.maybeReturnResult=function(e){var t=e.getText();if("0"===t.charAt(0)){var n=new u["a"](t.substring(1),null,null,e.getResultPoints(),r["a"].UPC_A);return null!=e.getResultMetadata()&&n.putAllMetadata(e.getResultMetadata()),n}throw new o["a"]},t.prototype.reset=function(){this.ean13Reader.reset()},t}(d["a"]),y=b,w=n("6530"),_=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),C=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},x=function(e){function t(){var t=e.call(this)||this;return t.decodeMiddleCounters=new Int32Array(4),t}return _(t,e),t.prototype.decodeMiddle=function(e,n,r){var i,o,a=this.decodeMiddleCounters.map((function(e){return e}));a[0]=0,a[1]=0,a[2]=0,a[3]=0;for(var s=e.getSize(),l=n[1],u=0,c=0;c<6&&l<s;c++){var f=t.decodeDigit(e,a,l,t.L_AND_G_PATTERNS);r+=String.fromCharCode("0".charCodeAt(0)+f%10);try{for(var d=(i=void 0,C(a)),h=d.next();!h.done;h=d.next()){var p=h.value;l+=p}}catch(m){i={error:m}}finally{try{h&&!h.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}f>=10&&(u|=1<<5-c)}return t.determineNumSysAndCheckDigit(new w["a"](r),u),l},t.prototype.decodeEnd=function(e,n){return t.findGuardPatternWithoutCounters(e,n,!0,t.MIDDLE_END_PATTERN)},t.prototype.checkChecksum=function(e){return d["a"].checkChecksum(t.convertUPCEtoUPCA(e))},t.determineNumSysAndCheckDigit=function(e,t){for(var n=0;n<=1;n++)for(var r=0;r<10;r++)if(t===this.NUMSYS_AND_CHECK_DIGIT_PATTERNS[n][r])return e.insert(0,"0"+n),void e.append("0"+r);throw o["a"].getNotFoundInstance()},t.prototype.getBarcodeFormat=function(){return r["a"].UPC_E},t.convertUPCEtoUPCA=function(e){var t=e.slice(1,7).split("").map((function(e){return e.charCodeAt(0)})),n=new w["a"];n.append(e.charAt(0));var r=t[5];switch(r){case 0:case 1:case 2:n.appendChars(t,0,2),n.append(r),n.append("0000"),n.appendChars(t,2,3);break;case 3:n.appendChars(t,0,3),n.append("00000"),n.appendChars(t,3,2);break;case 4:n.appendChars(t,0,4),n.append("00000"),n.append(t[4]);break;default:n.appendChars(t,0,5),n.append("0000"),n.append(r);break}return e.length>=8&&n.append(e.charAt(7)),n.toString()},t.MIDDLE_END_PATTERN=Int32Array.from([1,1,1,1,1,1]),t.NUMSYS_AND_CHECK_DIGIT_PATTERNS=[Int32Array.from([56,52,50,49,44,38,35,42,41,37]),Int32Array.from([7,11,13,14,19,25,28,21,22,1])],t}(d["a"]),S=x,k=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),D=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},O=function(e){function t(t){var n=e.call(this)||this,o=null==t?null:t.get(i["a"].POSSIBLE_FORMATS),a=[];return null!=o&&(o.indexOf(r["a"].EAN_13)>-1&&a.push(new f["a"]),o.indexOf(r["a"].UPC_A)>-1&&a.push(new y),o.indexOf(r["a"].EAN_8)>-1&&a.push(new g),o.indexOf(r["a"].UPC_E)>-1&&a.push(new S)),0===a.length&&(a.push(new f["a"]),a.push(new y),a.push(new g),a.push(new S)),n.readers=a,n}return k(t,e),t.prototype.decodeRow=function(e,t,n){var a,s;try{for(var l=D(this.readers),c=l.next();!c.done;c=l.next()){var f=c.value;try{var d=f.decodeRow(e,t,n),h=d.getBarcodeFormat()===r["a"].EAN_13&&"0"===d.getText().charAt(0),p=null==n?null:n.get(i["a"].POSSIBLE_FORMATS),m=null==p||p.includes(r["a"].UPC_A);if(h&&m){var g=d.getRawBytes(),v=new u["a"](d.getText().substring(1),g,g?g.length:null,d.getResultPoints(),r["a"].UPC_A);return v.putAllMetadata(d.getResultMetadata()),v}return d}catch(b){}}}catch(y){a={error:y}}finally{try{c&&!c.done&&(s=l.return)&&s.call(l)}finally{if(a)throw a.error}}throw new o["a"]},t.prototype.reset=function(){var e,t;try{for(var n=D(this.readers),r=n.next();!r.done;r=n.next()){var i=r.value;i.reset()}}catch(o){e={error:o}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},t}(c["a"]),T=O,E=n("02dc"),I=n("e4f9"),N=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),A=function(e){function t(t){var n=e.call(this)||this;n.readers=[];var o=t?t.get(i["a"].POSSIBLE_FORMATS):null,u=t&&void 0!==t.get(i["a"].ASSUME_CODE_39_CHECK_DIGIT);return o&&((o.includes(r["a"].EAN_13)||o.includes(r["a"].UPC_A)||o.includes(r["a"].EAN_8)||o.includes(r["a"].UPC_E))&&n.readers.push(new T(t)),o.includes(r["a"].CODE_39)&&n.readers.push(new s["a"](u)),o.includes(r["a"].CODE_128)&&n.readers.push(new a["a"]),o.includes(r["a"].ITF)&&n.readers.push(new l["a"]),o.includes(r["a"].RSS_14)&&n.readers.push(new I["a"]),o.includes(r["a"].RSS_EXPANDED)&&(console.warn("RSS Expanded reader IS NOT ready for production yet! use at your own risk."),n.readers.push(new E["a"]))),0===n.readers.length&&(n.readers.push(new T(t)),n.readers.push(new s["a"]),n.readers.push(new T(t)),n.readers.push(new a["a"]),n.readers.push(new l["a"]),n.readers.push(new I["a"])),n}return N(t,e),t.prototype.decodeRow=function(e,t,n){for(var r=0;r<this.readers.length;r++)try{return this.readers[r].decodeRow(e,t,n)}catch(i){}throw new o["a"]},t.prototype.reset=function(){this.readers.forEach((function(e){return e.reset()}))},t}(c["a"]);t["a"]=A},a7f2:function(e,t,n){"use strict";var r=n("f6ed"),i=n("63af"),o=n("f0a7"),a=function(){function e(e,t){if(0===t.length)throw new o["a"];this.field=e;var n=t.length;if(n>1&&0===t[0]){var r=1;while(r<n&&0===t[r])r++;r===n?this.coefficients=Int32Array.from([0]):(this.coefficients=new Int32Array(n-r),i["a"].arraycopy(t,r,this.coefficients,0,this.coefficients.length))}else this.coefficients=t}return e.prototype.getCoefficients=function(){return this.coefficients},e.prototype.getDegree=function(){return this.coefficients.length-1},e.prototype.isZero=function(){return 0===this.coefficients[0]},e.prototype.getCoefficient=function(e){return this.coefficients[this.coefficients.length-1-e]},e.prototype.evaluateAt=function(e){if(0===e)return this.getCoefficient(0);var t,n=this.coefficients;if(1===e){t=0;for(var i=0,o=n.length;i!==o;i++){var a=n[i];t=r["a"].addOrSubtract(t,a)}return t}t=n[0];var s=n.length,l=this.field;for(i=1;i<s;i++)t=r["a"].addOrSubtract(l.multiply(e,t),n[i]);return t},e.prototype.addOrSubtract=function(t){if(!this.field.equals(t.field))throw new o["a"]("GenericGFPolys do not have same GenericGF field");if(this.isZero())return t;if(t.isZero())return this;var n=this.coefficients,a=t.coefficients;if(n.length>a.length){var s=n;n=a,a=s}var l=new Int32Array(a.length),u=a.length-n.length;i["a"].arraycopy(a,0,l,0,u);for(var c=u;c<a.length;c++)l[c]=r["a"].addOrSubtract(n[c-u],a[c]);return new e(this.field,l)},e.prototype.multiply=function(t){if(!this.field.equals(t.field))throw new o["a"]("GenericGFPolys do not have same GenericGF field");if(this.isZero()||t.isZero())return this.field.getZero();for(var n=this.coefficients,i=n.length,a=t.coefficients,s=a.length,l=new Int32Array(i+s-1),u=this.field,c=0;c<i;c++)for(var f=n[c],d=0;d<s;d++)l[c+d]=r["a"].addOrSubtract(l[c+d],u.multiply(f,a[d]));return new e(u,l)},e.prototype.multiplyScalar=function(t){if(0===t)return this.field.getZero();if(1===t)return this;for(var n=this.coefficients.length,r=this.field,i=new Int32Array(n),o=this.coefficients,a=0;a<n;a++)i[a]=r.multiply(o[a],t);return new e(r,i)},e.prototype.multiplyByMonomial=function(t,n){if(t<0)throw new o["a"];if(0===n)return this.field.getZero();for(var r=this.coefficients,i=r.length,a=new Int32Array(i+t),s=this.field,l=0;l<i;l++)a[l]=s.multiply(r[l],n);return new e(s,a)},e.prototype.divide=function(e){if(!this.field.equals(e.field))throw new o["a"]("GenericGFPolys do not have same GenericGF field");if(e.isZero())throw new o["a"]("Divide by 0");var t=this.field,n=t.getZero(),r=this,i=e.getCoefficient(e.getDegree()),a=t.inverse(i);while(r.getDegree()>=e.getDegree()&&!r.isZero()){var s=r.getDegree()-e.getDegree(),l=t.multiply(r.getCoefficient(r.getDegree()),a),u=e.multiplyByMonomial(s,l),c=t.buildMonomial(s,l);n=n.addOrSubtract(c),r=r.addOrSubtract(u)}return[n,r]},e.prototype.toString=function(){for(var e="",t=this.getDegree();t>=0;t--){var n=this.getCoefficient(t);if(0!==n){if(n<0?(e+=" - ",n=-n):e.length>0&&(e+=" + "),0===t||1!==n){var r=this.field.log(n);0===r?e+="1":1===r?e+="a":(e+="a^",e+=r)}0!==t&&(1===t?e+="x":(e+="x^",e+=t))}}return e},e}();t["a"]=a},a911:function(e,t){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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="/dist/",n(n.s=146)}({1:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var l,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},146:function(e,t,n){"use strict";n.r(t);var r={name:"ElTag",props:{text:String,closable:Boolean,type:String,hit:Boolean,disableTransitions:Boolean,color:String,size:String,effect:{type:String,default:"light",validator:function(e){return-1!==["dark","light","plain"].indexOf(e)}}},methods:{handleClose:function(e){e.stopPropagation(),this.$emit("close",e)},handleClick:function(e){this.$emit("click",e)}},computed:{tagSize:function(){return this.size||(this.$ELEMENT||{}).size}},render:function(){var e=arguments[0],t=this.type,n=this.tagSize,r=this.hit,i=this.effect,o=["el-tag",t?"el-tag--"+t:"",n?"el-tag--"+n:"",i?"el-tag--"+i:"",r&&"is-hit"],a=e("span",{class:o,style:{backgroundColor:this.color},on:{click:this.handleClick}},[this.$slots.default,this.closable&&e("i",{class:"el-tag__close el-icon-close",on:{click:this.handleClose}})]);return this.disableTransitions?a:e("transition",{attrs:{name:"el-zoom-in-center"}},[a])}},i=n(1),o=Object(i.a)(r,void 0,void 0,!1,null,null,null);o.options.__file="packages/tag/src/tag.vue";var a=o.exports;a.install=function(e){e.component(a.name,a)},t.default=a}})},a9a4:function(e,t,n){"use strict";var r=n("5134"),i=n("ea29"),o=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=function(){function e(e){this.errorCorrectionLevel=r["a"].forBits(e>>3&3),this.dataMask=7&e}return e.numBitsDiffering=function(e,t){return i["a"].bitCount(e^t)},e.decodeFormatInformation=function(t,n){var r=e.doDecodeFormatInformation(t,n);return null!==r?r:e.doDecodeFormatInformation(t^e.FORMAT_INFO_MASK_QR,n^e.FORMAT_INFO_MASK_QR)},e.doDecodeFormatInformation=function(t,n){var r,i,a=Number.MAX_SAFE_INTEGER,s=0;try{for(var l=o(e.FORMAT_INFO_DECODE_LOOKUP),u=l.next();!u.done;u=l.next()){var c=u.value,f=c[0];if(f===t||f===n)return new e(c[1]);var d=e.numBitsDiffering(t,f);d<a&&(s=c[1],a=d),t!==n&&(d=e.numBitsDiffering(n,f),d<a&&(s=c[1],a=d))}}catch(h){r={error:h}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}return a<=3?new e(s):null},e.prototype.getErrorCorrectionLevel=function(){return this.errorCorrectionLevel},e.prototype.getDataMask=function(){return this.dataMask},e.prototype.hashCode=function(){return this.errorCorrectionLevel.getBits()<<3|this.dataMask},e.prototype.equals=function(t){if(!(t instanceof e))return!1;var n=t;return this.errorCorrectionLevel===n.errorCorrectionLevel&&this.dataMask===n.dataMask},e.FORMAT_INFO_MASK_QR=21522,e.FORMAT_INFO_DECODE_LOOKUP=[Int32Array.from([21522,0]),Int32Array.from([20773,1]),Int32Array.from([24188,2]),Int32Array.from([23371,3]),Int32Array.from([17913,4]),Int32Array.from([16590,5]),Int32Array.from([20375,6]),Int32Array.from([19104,7]),Int32Array.from([30660,8]),Int32Array.from([29427,9]),Int32Array.from([32170,10]),Int32Array.from([30877,11]),Int32Array.from([26159,12]),Int32Array.from([25368,13]),Int32Array.from([27713,14]),Int32Array.from([26998,15]),Int32Array.from([5769,16]),Int32Array.from([5054,17]),Int32Array.from([7399,18]),Int32Array.from([6608,19]),Int32Array.from([1890,20]),Int32Array.from([597,21]),Int32Array.from([3340,22]),Int32Array.from([2107,23]),Int32Array.from([13663,24]),Int32Array.from([12392,25]),Int32Array.from([16177,26]),Int32Array.from([14854,27]),Int32Array.from([9396,28]),Int32Array.from([8579,29]),Int32Array.from([11994,30]),Int32Array.from([11245,31])],e}();t["a"]=a},a9e3:function(e,t,n){"use strict";n("d5b2"),n("e3f3"),n("f505"),n("9fa8");var r=n("6cd7");n.d(t,"BrowserMultiFormatReader",(function(){return r["a"]}));n("6246"),n("8283"),n("9878"),n("3cb6"),n("0c36"),n("8f21"),n("e027")},aa17:function(e,t,n){"use strict";var r=n("fb63"),i=n("ca08"),o=n("0b81"),a=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},l=function(e){function t(){var t=e.call(this)||this;return t.decodeFinderCounters=new Int32Array(4),t.dataCharacterCounters=new Int32Array(8),t.oddRoundingErrors=new Array(4),t.evenRoundingErrors=new Array(4),t.oddCounts=new Array(t.dataCharacterCounters.length/2),t.evenCounts=new Array(t.dataCharacterCounters.length/2),t}return a(t,e),t.prototype.getDecodeFinderCounters=function(){return this.decodeFinderCounters},t.prototype.getDataCharacterCounters=function(){return this.dataCharacterCounters},t.prototype.getOddRoundingErrors=function(){return this.oddRoundingErrors},t.prototype.getEvenRoundingErrors=function(){return this.evenRoundingErrors},t.prototype.getOddCounts=function(){return this.oddCounts},t.prototype.getEvenCounts=function(){return this.evenCounts},t.prototype.parseFinderValue=function(e,n){for(var r=0;r<n.length;r++)if(o["a"].patternMatchVariance(e,n[r],t.MAX_INDIVIDUAL_VARIANCE)<t.MAX_AVG_VARIANCE)return r;throw new i["a"]},t.count=function(e){return r["a"].sum(new Int32Array(e))},t.increment=function(e,t){for(var n=0,r=t[0],i=1;i<e.length;i++)t[i]>r&&(r=t[i],n=i);e[n]++},t.decrement=function(e,t){for(var n=0,r=t[0],i=1;i<e.length;i++)t[i]<r&&(r=t[i],n=i);e[n]--},t.isFinderPattern=function(e){var n,r,i=e[0]+e[1],o=i+e[2]+e[3],a=i/o;if(a>=t.MIN_FINDER_PATTERN_RATIO&&a<=t.MAX_FINDER_PATTERN_RATIO){var l=Number.MAX_SAFE_INTEGER,u=Number.MIN_SAFE_INTEGER;try{for(var c=s(e),f=c.next();!f.done;f=c.next()){var d=f.value;d>u&&(u=d),d<l&&(l=d)}}catch(h){n={error:h}}finally{try{f&&!f.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}return u<10*l}return!1},t.MAX_AVG_VARIANCE=.2,t.MAX_INDIVIDUAL_VARIANCE=.45,t.MIN_FINDER_PATTERN_RATIO=9.5/12,t.MAX_FINDER_PATTERN_RATIO=12.5/14,t}(o["a"]);t["a"]=l},aa21:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));n("2397"),n("6762"),n("2fdb"),n("c5f6");var r=n("99de"),i=n("7e84"),o=n("262e"),a=n("d4ec"),s=n("bee2");function l(e,t,n){return t=Object(i["a"])(t),Object(r["a"])(e,u()?Reflect.construct(t,n||[],Object(i["a"])(e).constructor):t.apply(e,n))}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}var c=function(){function e(){if(Object(a["a"])(this,e),(this instanceof e?this.constructor:void 0)===e)throw new Error("抽象类不能实例化!")}return Object(s["a"])(e,[{key:"isNullValue",value:function(e,t){return(void 0===e||null===e||e+""==="")&&"IS_NULL"===t}},{key:"isNotNullValue",value:function(e,t){return void 0!==e&&null!==e&&e+""!==""&&"IS_NOT_NULL"===t}},{key:"isEQEmptyValue",value:function(e,t,n){return(void 0===e||null===e||e+""==="")&&(void 0===n||null===n||n+""==="")&&("EQ"===t||"CONTAIN"===t)}}])}(),f=function(e){function t(e,n,r){var i;if(Object(a["a"])(this,t),i=l(this,t),i.isNotNullValue(e,n))i.result=!0;else if(i.isNullValue(e,n))i.result=!0;else if(i.isEQEmptyValue(e,n,r))i.result=!0;else if(void 0===e||null===e)i.result=!1;else{var o=Number(e+""),s=Number(r+"");if("GET"===n)i.result=o>=s;else if("LET"===n)i.result=o<=s;else if("GT"===n)i.result=o>s;else if("LT"===n)i.result=o<s;else if("NET"===n)i.result=o!==s;else if("EQ"===n)i.result=o===s;else if("IS_NULL"===n)i.result=void 0===e||null===e;else{if("IS_NOT_NULL"!==n)throw new Error("表达式不合法:"+e+" "+n+" "+r);i.result=void 0!==e&&null!==e}}return i}return Object(o["a"])(t,e),Object(s["a"])(t)}(c),d=function(e){function t(e,n,r){var i;if(Object(a["a"])(this,t),i=l(this,t),i.isNullValue(e,n))i.result=!0;else if(i.isEQEmptyValue(e,n,r))i.result=!0;else if(i.isNotNullValue(e,n))i.result=!0;else if(void 0===e||null===e)i.result=!1;else if("NET"===n)i.result=e!==r;else if("EQ"===n)i.result=e===r;else if("NOT_CONTAIN"===n)i.result=!e.includes(r);else if("CONTAIN"===n)i.result=e.includes(r);else if("IS_NULL"===n)i.result=void 0===e||null===e||""===e;else{if("IS_NOT_NULL"!==n)throw new Error("表达式不合法:"+e+" "+n+" "+r);i.result=void 0!==e&&null!==e&&""!==e}return i}return Object(o["a"])(t,e),Object(s["a"])(t)}(c);function h(e){switch(e){case"TEXT":return d;case"DOUBLE":return f;case"FLOAT":return f;case"INTEGER":return f;case"LONG":return f;case"DATE":return f;case"TIME":return f;default:return d}}},aa77:function(e,t,n){var r=n("5ca1"),i=n("be13"),o=n("79e5"),a=n("fdef"),s="["+a+"]",l="
",u=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),f=function(e,t,n){var i={},s=o((function(){return!!a[e]()||l[e]()!=l})),u=i[e]=s?t(d):a[e];n&&(i[n]=u),r(r.P+r.F*s,"String",i)},d=f.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(u,"")),2&t&&(e=e.replace(c,"")),e};e.exports=f},aae3:function(e,t,n){var r=n("d3f4"),i=n("2d95"),o=n("2b4c")("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},ab23:function(e,t,n){"use strict";var r=n("a363"),i=n("fe96"),o=n("2f50"),a=n("64a7"),s=n("8c95"),l=n("0b81"),u=n("ca08"),c=n("7978"),f=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.decodeRowStringBuffer="",t}return f(t,e),t.findStartGuardPattern=function(e){var n,r=!1,i=0,o=Int32Array.from([0,0,0]);while(!r){o=Int32Array.from([0,0,0]),n=t.findGuardPattern(e,i,!1,this.START_END_PATTERN,o);var a=n[0];i=n[1];var s=a-(i-a);s>=0&&(r=e.isRange(s,a,!1))}return n},t.checkChecksum=function(e){return t.checkStandardUPCEANChecksum(e)},t.checkStandardUPCEANChecksum=function(e){var n=e.length;if(0===n)return!1;var r=parseInt(e.charAt(n-1),10);return t.getStandardUPCEANChecksum(e.substring(0,n-1))===r},t.getStandardUPCEANChecksum=function(e){for(var t=e.length,n=0,r=t-1;r>=0;r-=2){var i=e.charAt(r).charCodeAt(0)-"0".charCodeAt(0);if(i<0||i>9)throw new c["a"];n+=i}n*=3;for(r=t-2;r>=0;r-=2){i=e.charAt(r).charCodeAt(0)-"0".charCodeAt(0);if(i<0||i>9)throw new c["a"];n+=i}return(1e3-n)%10},t.decodeEnd=function(e,n){return t.findGuardPattern(e,n,!1,t.START_END_PATTERN,new Int32Array(t.START_END_PATTERN.length).fill(0))},t.findGuardPatternWithoutCounters=function(e,t,n,r){return this.findGuardPattern(e,t,n,r,new Int32Array(r.length))},t.findGuardPattern=function(e,n,r,i,o){var a=e.getSize();n=r?e.getNextUnset(n):e.getNextSet(n);for(var s=0,c=n,f=i.length,d=r,h=n;h<a;h++)if(e.get(h)!==d)o[s]++;else{if(s===f-1){if(l["a"].patternMatchVariance(o,i,t.MAX_INDIVIDUAL_VARIANCE)<t.MAX_AVG_VARIANCE)return Int32Array.from([c,h]);c+=o[0]+o[1];for(var p=o.slice(2,o.length-1),m=0;m<s-1;m++)o[m]=p[m];o[s-1]=0,o[s]=0,s--}else s++;o[s]=1,d=!d}throw new u["a"]},t.decodeDigit=function(e,n,r,i){this.recordPattern(e,r,n);for(var o=this.MAX_AVG_VARIANCE,a=-1,s=i.length,c=0;c<s;c++){var f=i[c],d=l["a"].patternMatchVariance(n,f,t.MAX_INDIVIDUAL_VARIANCE);d<o&&(o=d,a=c)}if(a>=0)return a;throw new u["a"]},t.MAX_AVG_VARIANCE=.48,t.MAX_INDIVIDUAL_VARIANCE=.7,t.START_END_PATTERN=Int32Array.from([1,1,1]),t.MIDDLE_PATTERN=Int32Array.from([1,1,1,1,1]),t.END_PATTERN=Int32Array.from([1,1,1,1,1,1]),t.L_PATTERNS=[Int32Array.from([3,2,1,1]),Int32Array.from([2,2,2,1]),Int32Array.from([2,1,2,2]),Int32Array.from([1,4,1,1]),Int32Array.from([1,1,3,2]),Int32Array.from([1,2,3,1]),Int32Array.from([1,1,1,4]),Int32Array.from([1,3,1,2]),Int32Array.from([1,2,1,3]),Int32Array.from([3,1,1,2])],t}(l["a"]),h=d,p=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},m=function(){function e(){this.CHECK_DIGIT_ENCODINGS=[24,20,18,17,12,6,3,10,9,5],this.decodeMiddleCounters=Int32Array.from([0,0,0,0]),this.decodeRowStringBuffer=""}return e.prototype.decodeRow=function(t,n,i){var a=this.decodeRowStringBuffer,l=this.decodeMiddle(n,i,a),u=a.toString(),c=e.parseExtensionString(u),f=[new s["a"]((i[0]+i[1])/2,t),new s["a"](l,t)],d=new o["a"](u,null,0,f,r["a"].UPC_EAN_EXTENSION,(new Date).getTime());return null!=c&&d.putAllMetadata(c),d},e.prototype.decodeMiddle=function(t,n,r){var i,o,a=this.decodeMiddleCounters;a[0]=0,a[1]=0,a[2]=0,a[3]=0;for(var s=t.getSize(),l=n[1],c=0,f=0;f<5&&l<s;f++){var d=h.decodeDigit(t,a,l,h.L_AND_G_PATTERNS);r+=String.fromCharCode("0".charCodeAt(0)+d%10);try{for(var m=(i=void 0,p(a)),g=m.next();!g.done;g=m.next()){var v=g.value;l+=v}}catch(y){i={error:y}}finally{try{g&&!g.done&&(o=m.return)&&o.call(m)}finally{if(i)throw i.error}}d>=10&&(c|=1<<4-f),4!==f&&(l=t.getNextSet(l),l=t.getNextUnset(l))}if(5!==r.length)throw new u["a"];var b=this.determineCheckDigit(c);if(e.extensionChecksum(r.toString())!==b)throw new u["a"];return l},e.extensionChecksum=function(e){for(var t=e.length,n=0,r=t-2;r>=0;r-=2)n+=e.charAt(r).charCodeAt(0)-"0".charCodeAt(0);n*=3;for(r=t-1;r>=0;r-=2)n+=e.charAt(r).charCodeAt(0)-"0".charCodeAt(0);return n*=3,n%10},e.prototype.determineCheckDigit=function(e){for(var t=0;t<10;t++)if(e===this.CHECK_DIGIT_ENCODINGS[t])return t;throw new u["a"]},e.parseExtensionString=function(t){if(5!==t.length)return null;var n=e.parseExtension5String(t);return null==n?null:new Map([[a["a"].SUGGESTED_PRICE,n]])},e.parseExtension5String=function(e){var t;switch(e.charAt(0)){case"0":t="£";break;case"5":t="$";break;case"9":switch(e){case"90000":return null;case"99991":return"0.00";case"99990":return"Used"}t="";break;default:t="";break}var n=parseInt(e.substring(1)),r=(n/100).toString(),i=n%100,o=i<10?"0"+i:i.toString();return t+r+"."+o},e}(),g=m,v=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},b=function(){function e(){this.decodeMiddleCounters=Int32Array.from([0,0,0,0]),this.decodeRowStringBuffer=""}return e.prototype.decodeRow=function(t,n,i){var a=this.decodeRowStringBuffer,l=this.decodeMiddle(n,i,a),u=a.toString(),c=e.parseExtensionString(u),f=[new s["a"]((i[0]+i[1])/2,t),new s["a"](l,t)],d=new o["a"](u,null,0,f,r["a"].UPC_EAN_EXTENSION,(new Date).getTime());return null!=c&&d.putAllMetadata(c),d},e.prototype.decodeMiddle=function(e,t,n){var r,i,o=this.decodeMiddleCounters;o[0]=0,o[1]=0,o[2]=0,o[3]=0;for(var a=e.getSize(),s=t[1],l=0,c=0;c<2&&s<a;c++){var f=h.decodeDigit(e,o,s,h.L_AND_G_PATTERNS);n+=String.fromCharCode("0".charCodeAt(0)+f%10);try{for(var d=(r=void 0,v(o)),p=d.next();!p.done;p=d.next()){var m=p.value;s+=m}}catch(g){r={error:g}}finally{try{p&&!p.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}f>=10&&(l|=1<<1-c),1!==c&&(s=e.getNextSet(s),s=e.getNextUnset(s))}if(2!==n.length)throw new u["a"];if(parseInt(n.toString())%4!==l)throw new u["a"];return s},e.parseExtensionString=function(e){return 2!==e.length?null:new Map([[a["a"].ISSUE_NUMBER,parseInt(e)]])},e}(),y=b,w=function(){function e(){}return e.decodeRow=function(e,t,n){var r=h.findGuardPattern(t,n,!1,this.EXTENSION_START_PATTERN,new Int32Array(this.EXTENSION_START_PATTERN.length).fill(0));try{var i=new g;return i.decodeRow(e,t,r)}catch(a){var o=new y;return o.decodeRow(e,t,r)}},e.EXTENSION_START_PATTERN=Int32Array.from([1,1,2]),e}(),_=w,C=n("2d92"),x=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),S=function(e){function t(){var n=e.call(this)||this;n.decodeRowStringBuffer="",t.L_AND_G_PATTERNS=t.L_PATTERNS.map((function(e){return Int32Array.from(e)}));for(var r=10;r<20;r++){for(var i=t.L_PATTERNS[r-10],o=new Int32Array(i.length),a=0;a<i.length;a++)o[a]=i[i.length-a-1];t.L_AND_G_PATTERNS[r]=o}return n}return x(t,e),t.prototype.decodeRow=function(e,n,l){var f=t.findStartGuardPattern(n),d=null==l?null:l.get(i["a"].NEED_RESULT_POINT_CALLBACK);if(null!=d){var h=new s["a"]((f[0]+f[1])/2,e);d.foundPossibleResultPoint(h)}var p=this.decodeMiddle(n,f,this.decodeRowStringBuffer),m=p.rowOffset,g=p.resultString;if(null!=d){var v=new s["a"](m,e);d.foundPossibleResultPoint(v)}var b=t.decodeEnd(n,m);if(null!=d){var y=new s["a"]((b[0]+b[1])/2,e);d.foundPossibleResultPoint(y)}var w=b[1],x=w+(w-b[0]);if(x>=n.getSize()||!n.isRange(w,x,!1))throw new u["a"];var S=g.toString();if(S.length<8)throw new c["a"];if(!t.checkChecksum(S))throw new C["a"];var k=(f[1]+f[0])/2,D=(b[1]+b[0])/2,O=this.getBarcodeFormat(),T=[new s["a"](k,e),new s["a"](D,e)],E=new o["a"](S,null,0,T,O,(new Date).getTime()),I=0;try{var N=_.decodeRow(e,n,b[1]);E.putMetadata(a["a"].UPC_EAN_EXTENSION,N.getText()),E.putAllMetadata(N.getResultMetadata()),E.addResultPoints(N.getResultPoints()),I=N.getText().length}catch(R){}var A=null==l?null:l.get(i["a"].ALLOWED_EAN_EXTENSIONS);if(null!=A){var P=!1;for(var M in A)if(I.toString()===M){P=!0;break}if(!P)throw new u["a"]}return O===r["a"].EAN_13||r["a"].UPC_A,E},t.checkChecksum=function(e){return t.checkStandardUPCEANChecksum(e)},t.checkStandardUPCEANChecksum=function(e){var n=e.length;if(0===n)return!1;var r=parseInt(e.charAt(n-1),10);return t.getStandardUPCEANChecksum(e.substring(0,n-1))===r},t.getStandardUPCEANChecksum=function(e){for(var t=e.length,n=0,r=t-1;r>=0;r-=2){var i=e.charAt(r).charCodeAt(0)-"0".charCodeAt(0);if(i<0||i>9)throw new c["a"];n+=i}n*=3;for(r=t-2;r>=0;r-=2){i=e.charAt(r).charCodeAt(0)-"0".charCodeAt(0);if(i<0||i>9)throw new c["a"];n+=i}return(1e3-n)%10},t.decodeEnd=function(e,n){return t.findGuardPattern(e,n,!1,t.START_END_PATTERN,new Int32Array(t.START_END_PATTERN.length).fill(0))},t}(h);t["a"]=S},ab5b:function(e,t,n){"use strict";var r=n("cb12"),i=n("fb63"),o=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=function(){function e(){}return e.prototype.PDF417Common=function(){},e.getBitCountSum=function(e){return i["a"].sum(e)},e.toIntArray=function(t){var n,r;if(null==t||!t.length)return e.EMPTY_INT_ARRAY;var i=new Int32Array(t.length),a=0;try{for(var s=o(t),l=s.next();!l.done;l=s.next()){var u=l.value;i[a++]=u}}catch(c){n={error:c}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return i},e.getCodeword=function(t){var n=r["a"].binarySearch(e.SYMBOL_TABLE,262143&t);return n<0?-1:(e.CODEWORD_TABLE[n]-1)%e.NUMBER_OF_CODEWORDS},e.NUMBER_OF_CODEWORDS=929,e.MAX_CODEWORDS_IN_BARCODE=e.NUMBER_OF_CODEWORDS-1,e.MIN_ROWS_IN_BARCODE=3,e.MAX_ROWS_IN_BARCODE=90,e.MODULES_IN_CODEWORD=17,e.MODULES_IN_STOP_PATTERN=18,e.BARS_IN_MODULE=8,e.EMPTY_INT_ARRAY=new Int32Array([]),e.SYMBOL_TABLE=Int32Array.from([66142,66170,66206,66236,66290,66292,66350,66382,66396,66454,66470,66476,66594,66600,66614,66626,66628,66632,66640,66654,66662,66668,66682,66690,66718,66720,66748,66758,66776,66798,66802,66804,66820,66824,66832,66846,66848,66876,66880,66936,66950,66956,66968,66992,67006,67022,67036,67042,67044,67048,67062,67118,67150,67164,67214,67228,67256,67294,67322,67350,67366,67372,67398,67404,67416,67438,67474,67476,67490,67492,67496,67510,67618,67624,67650,67656,67664,67678,67686,67692,67706,67714,67716,67728,67742,67744,67772,67782,67788,67800,67822,67826,67828,67842,67848,67870,67872,67900,67904,67960,67974,67992,68016,68030,68046,68060,68066,68068,68072,68086,68104,68112,68126,68128,68156,68160,68216,68336,68358,68364,68376,68400,68414,68448,68476,68494,68508,68536,68546,68548,68552,68560,68574,68582,68588,68654,68686,68700,68706,68708,68712,68726,68750,68764,68792,68802,68804,68808,68816,68830,68838,68844,68858,68878,68892,68920,68976,68990,68994,68996,69e3,69008,69022,69024,69052,69062,69068,69080,69102,69106,69108,69142,69158,69164,69190,69208,69230,69254,69260,69272,69296,69310,69326,69340,69386,69394,69396,69410,69416,69430,69442,69444,69448,69456,69470,69478,69484,69554,69556,69666,69672,69698,69704,69712,69726,69754,69762,69764,69776,69790,69792,69820,69830,69836,69848,69870,69874,69876,69890,69918,69920,69948,69952,70008,70022,70040,70064,70078,70094,70108,70114,70116,70120,70134,70152,70174,70176,70264,70384,70412,70448,70462,70496,70524,70542,70556,70584,70594,70600,70608,70622,70630,70636,70664,70672,70686,70688,70716,70720,70776,70896,71136,71180,71192,71216,71230,71264,71292,71360,71416,71452,71480,71536,71550,71554,71556,71560,71568,71582,71584,71612,71622,71628,71640,71662,71726,71732,71758,71772,71778,71780,71784,71798,71822,71836,71864,71874,71880,71888,71902,71910,71916,71930,71950,71964,71992,72048,72062,72066,72068,72080,72094,72096,72124,72134,72140,72152,72174,72178,72180,72206,72220,72248,72304,72318,72416,72444,72456,72464,72478,72480,72508,72512,72568,72588,72600,72624,72638,72654,72668,72674,72676,72680,72694,72726,72742,72748,72774,72780,72792,72814,72838,72856,72880,72894,72910,72924,72930,72932,72936,72950,72966,72972,72984,73008,73022,73056,73084,73102,73116,73144,73156,73160,73168,73182,73190,73196,73210,73226,73234,73236,73250,73252,73256,73270,73282,73284,73296,73310,73318,73324,73346,73348,73352,73360,73374,73376,73404,73414,73420,73432,73454,73498,73518,73522,73524,73550,73564,73570,73572,73576,73590,73800,73822,73858,73860,73872,73886,73888,73916,73944,73970,73972,73992,74014,74016,74044,74048,74104,74118,74136,74160,74174,74210,74212,74216,74230,74244,74256,74270,74272,74360,74480,74502,74508,74544,74558,74592,74620,74638,74652,74680,74690,74696,74704,74726,74732,74782,74784,74812,74992,75232,75288,75326,75360,75388,75456,75512,75576,75632,75646,75650,75652,75664,75678,75680,75708,75718,75724,75736,75758,75808,75836,75840,75896,76016,76256,76736,76824,76848,76862,76896,76924,76992,77048,77296,77340,77368,77424,77438,77536,77564,77572,77576,77584,77600,77628,77632,77688,77702,77708,77720,77744,77758,77774,77788,77870,77902,77916,77922,77928,77966,77980,78008,78018,78024,78032,78046,78060,78074,78094,78136,78192,78206,78210,78212,78224,78238,78240,78268,78278,78284,78296,78322,78324,78350,78364,78448,78462,78560,78588,78600,78622,78624,78652,78656,78712,78726,78744,78768,78782,78798,78812,78818,78820,78824,78838,78862,78876,78904,78960,78974,79072,79100,79296,79352,79368,79376,79390,79392,79420,79424,79480,79600,79628,79640,79664,79678,79712,79740,79772,79800,79810,79812,79816,79824,79838,79846,79852,79894,79910,79916,79942,79948,79960,79982,79988,80006,80024,80048,80062,80078,80092,80098,80100,80104,80134,80140,80176,80190,80224,80252,80270,80284,80312,80328,80336,80350,80358,80364,80378,80390,80396,80408,80432,80446,80480,80508,80576,80632,80654,80668,80696,80752,80766,80776,80784,80798,80800,80828,80844,80856,80878,80882,80884,80914,80916,80930,80932,80936,80950,80962,80968,80976,80990,80998,81004,81026,81028,81040,81054,81056,81084,81094,81100,81112,81134,81154,81156,81160,81168,81182,81184,81212,81216,81272,81286,81292,81304,81328,81342,81358,81372,81380,81384,81398,81434,81454,81458,81460,81486,81500,81506,81508,81512,81526,81550,81564,81592,81602,81604,81608,81616,81630,81638,81644,81702,81708,81722,81734,81740,81752,81774,81778,81780,82050,82078,82080,82108,82180,82184,82192,82206,82208,82236,82240,82296,82316,82328,82352,82366,82402,82404,82408,82440,82448,82462,82464,82492,82496,82552,82672,82694,82700,82712,82736,82750,82784,82812,82830,82882,82884,82888,82896,82918,82924,82952,82960,82974,82976,83004,83008,83064,83184,83424,83468,83480,83504,83518,83552,83580,83648,83704,83740,83768,83824,83838,83842,83844,83848,83856,83872,83900,83910,83916,83928,83950,83984,84e3,84028,84032,84088,84208,84448,84928,85040,85054,85088,85116,85184,85240,85488,85560,85616,85630,85728,85756,85764,85768,85776,85790,85792,85820,85824,85880,85894,85900,85912,85936,85966,85980,86048,86080,86136,86256,86496,86976,88160,88188,88256,88312,88560,89056,89200,89214,89312,89340,89536,89592,89608,89616,89632,89664,89720,89840,89868,89880,89904,89952,89980,89998,90012,90040,90190,90204,90254,90268,90296,90306,90308,90312,90334,90382,90396,90424,90480,90494,90500,90504,90512,90526,90528,90556,90566,90572,90584,90610,90612,90638,90652,90680,90736,90750,90848,90876,90884,90888,90896,90910,90912,90940,90944,91e3,91014,91020,91032,91056,91070,91086,91100,91106,91108,91112,91126,91150,91164,91192,91248,91262,91360,91388,91584,91640,91664,91678,91680,91708,91712,91768,91888,91928,91952,91966,92e3,92028,92046,92060,92088,92098,92100,92104,92112,92126,92134,92140,92188,92216,92272,92384,92412,92608,92664,93168,93200,93214,93216,93244,93248,93304,93424,93664,93720,93744,93758,93792,93820,93888,93944,93980,94008,94064,94078,94084,94088,94096,94110,94112,94140,94150,94156,94168,94246,94252,94278,94284,94296,94318,94342,94348,94360,94384,94398,94414,94428,94440,94470,94476,94488,94512,94526,94560,94588,94606,94620,94648,94658,94660,94664,94672,94686,94694,94700,94714,94726,94732,94744,94768,94782,94816,94844,94912,94968,94990,95004,95032,95088,95102,95112,95120,95134,95136,95164,95180,95192,95214,95218,95220,95244,95256,95280,95294,95328,95356,95424,95480,95728,95758,95772,95800,95856,95870,95968,95996,96008,96016,96030,96032,96060,96064,96120,96152,96176,96190,96220,96226,96228,96232,96290,96292,96296,96310,96322,96324,96328,96336,96350,96358,96364,96386,96388,96392,96400,96414,96416,96444,96454,96460,96472,96494,96498,96500,96514,96516,96520,96528,96542,96544,96572,96576,96632,96646,96652,96664,96688,96702,96718,96732,96738,96740,96744,96758,96772,96776,96784,96798,96800,96828,96832,96888,97008,97030,97036,97048,97072,97086,97120,97148,97166,97180,97208,97220,97224,97232,97246,97254,97260,97326,97330,97332,97358,97372,97378,97380,97384,97398,97422,97436,97464,97474,97476,97480,97488,97502,97510,97516,97550,97564,97592,97648,97666,97668,97672,97680,97694,97696,97724,97734,97740,97752,97774,97830,97836,97850,97862,97868,97880,97902,97906,97908,97926,97932,97944,97968,97998,98012,98018,98020,98024,98038,98618,98674,98676,98838,98854,98874,98892,98904,98926,98930,98932,98968,99006,99042,99044,99048,99062,99166,99194,99246,99286,99350,99366,99372,99386,99398,99416,99438,99442,99444,99462,99504,99518,99534,99548,99554,99556,99560,99574,99590,99596,99608,99632,99646,99680,99708,99726,99740,99768,99778,99780,99784,99792,99806,99814,99820,99834,99858,99860,99874,99880,99894,99906,99920,99934,99962,99970,99972,99976,99984,99998,1e5,100028,100038,100044,100056,100078,100082,100084,100142,100174,100188,100246,100262,100268,100306,100308,100390,100396,100410,100422,100428,100440,100462,100466,100468,100486,100504,100528,100542,100558,100572,100578,100580,100584,100598,100620,100656,100670,100704,100732,100750,100792,100802,100808,100816,100830,100838,100844,100858,100888,100912,100926,100960,100988,101056,101112,101148,101176,101232,101246,101250,101252,101256,101264,101278,101280,101308,101318,101324,101336,101358,101362,101364,101410,101412,101416,101430,101442,101448,101456,101470,101478,101498,101506,101508,101520,101534,101536,101564,101580,101618,101620,101636,101640,101648,101662,101664,101692,101696,101752,101766,101784,101838,101858,101860,101864,101934,101938,101940,101966,101980,101986,101988,101992,102030,102044,102072,102082,102084,102088,102096,102138,102166,102182,102188,102214,102220,102232,102254,102282,102290,102292,102306,102308,102312,102326,102444,102458,102470,102476,102488,102514,102516,102534,102552,102576,102590,102606,102620,102626,102632,102646,102662,102668,102704,102718,102752,102780,102798,102812,102840,102850,102856,102864,102878,102886,102892,102906,102936,102974,103008,103036,103104,103160,103224,103280,103294,103298,103300,103312,103326,103328,103356,103366,103372,103384,103406,103410,103412,103472,103486,103520,103548,103616,103672,103920,103992,104048,104062,104160,104188,104194,104196,104200,104208,104224,104252,104256,104312,104326,104332,104344,104368,104382,104398,104412,104418,104420,104424,104482,104484,104514,104520,104528,104542,104550,104570,104578,104580,104592,104606,104608,104636,104652,104690,104692,104706,104712,104734,104736,104764,104768,104824,104838,104856,104910,104930,104932,104936,104968,104976,104990,104992,105020,105024,105080,105200,105240,105278,105312,105372,105410,105412,105416,105424,105446,105518,105524,105550,105564,105570,105572,105576,105614,105628,105656,105666,105672,105680,105702,105722,105742,105756,105784,105840,105854,105858,105860,105864,105872,105888,105932,105970,105972,106006,106022,106028,106054,106060,106072,106100,106118,106124,106136,106160,106174,106190,106210,106212,106216,106250,106258,106260,106274,106276,106280,106306,106308,106312,106320,106334,106348,106394,106414,106418,106420,106566,106572,106610,106612,106630,106636,106648,106672,106686,106722,106724,106728,106742,106758,106764,106776,106800,106814,106848,106876,106894,106908,106936,106946,106948,106952,106960,106974,106982,106988,107032,107056,107070,107104,107132,107200,107256,107292,107320,107376,107390,107394,107396,107400,107408,107422,107424,107452,107462,107468,107480,107502,107506,107508,107544,107568,107582,107616,107644,107712,107768,108016,108060,108088,108144,108158,108256,108284,108290,108292,108296,108304,108318,108320,108348,108352,108408,108422,108428,108440,108464,108478,108494,108508,108514,108516,108520,108592,108640,108668,108736,108792,109040,109536,109680,109694,109792,109820,110016,110072,110084,110088,110096,110112,110140,110144,110200,110320,110342,110348,110360,110384,110398,110432,110460,110478,110492,110520,110532,110536,110544,110558,110658,110686,110714,110722,110724,110728,110736,110750,110752,110780,110796,110834,110836,110850,110852,110856,110864,110878,110880,110908,110912,110968,110982,111e3,111054,111074,111076,111080,111108,111112,111120,111134,111136,111164,111168,111224,111344,111372,111422,111456,111516,111554,111556,111560,111568,111590,111632,111646,111648,111676,111680,111736,111856,112096,112152,112224,112252,112320,112440,112514,112516,112520,112528,112542,112544,112588,112686,112718,112732,112782,112796,112824,112834,112836,112840,112848,112870,112890,112910,112924,112952,113008,113022,113026,113028,113032,113040,113054,113056,113100,113138,113140,113166,113180,113208,113264,113278,113376,113404,113416,113424,113440,113468,113472,113560,113614,113634,113636,113640,113686,113702,113708,113734,113740,113752,113778,113780,113798,113804,113816,113840,113854,113870,113890,113892,113896,113926,113932,113944,113968,113982,114016,114044,114076,114114,114116,114120,114128,114150,114170,114194,114196,114210,114212,114216,114242,114244,114248,114256,114270,114278,114306,114308,114312,114320,114334,114336,114364,114380,114420,114458,114478,114482,114484,114510,114524,114530,114532,114536,114842,114866,114868,114970,114994,114996,115042,115044,115048,115062,115130,115226,115250,115252,115278,115292,115298,115300,115304,115318,115342,115394,115396,115400,115408,115422,115430,115436,115450,115478,115494,115514,115526,115532,115570,115572,115738,115758,115762,115764,115790,115804,115810,115812,115816,115830,115854,115868,115896,115906,115912,115920,115934,115942,115948,115962,115996,116024,116080,116094,116098,116100,116104,116112,116126,116128,116156,116166,116172,116184,116206,116210,116212,116246,116262,116268,116282,116294,116300,116312,116334,116338,116340,116358,116364,116376,116400,116414,116430,116444,116450,116452,116456,116498,116500,116514,116520,116534,116546,116548,116552,116560,116574,116582,116588,116602,116654,116694,116714,116762,116782,116786,116788,116814,116828,116834,116836,116840,116854,116878,116892,116920,116930,116936,116944,116958,116966,116972,116986,117006,117048,117104,117118,117122,117124,117136,117150,117152,117180,117190,117196,117208,117230,117234,117236,117304,117360,117374,117472,117500,117506,117508,117512,117520,117536,117564,117568,117624,117638,117644,117656,117680,117694,117710,117724,117730,117732,117736,117750,117782,117798,117804,117818,117830,117848,117874,117876,117894,117936,117950,117966,117986,117988,117992,118022,118028,118040,118064,118078,118112,118140,118172,118210,118212,118216,118224,118238,118246,118266,118306,118312,118338,118352,118366,118374,118394,118402,118404,118408,118416,118430,118432,118460,118476,118514,118516,118574,118578,118580,118606,118620,118626,118628,118632,118678,118694,118700,118730,118738,118740,118830,118834,118836,118862,118876,118882,118884,118888,118902,118926,118940,118968,118978,118980,118984,118992,119006,119014,119020,119034,119068,119096,119152,119166,119170,119172,119176,119184,119198,119200,119228,119238,119244,119256,119278,119282,119284,119324,119352,119408,119422,119520,119548,119554,119556,119560,119568,119582,119584,119612,119616,119672,119686,119692,119704,119728,119742,119758,119772,119778,119780,119784,119798,119920,119934,120032,120060,120256,120312,120324,120328,120336,120352,120384,120440,120560,120582,120588,120600,120624,120638,120672,120700,120718,120732,120760,120770,120772,120776,120784,120798,120806,120812,120870,120876,120890,120902,120908,120920,120946,120948,120966,120972,120984,121008,121022,121038,121058,121060,121064,121078,121100,121112,121136,121150,121184,121212,121244,121282,121284,121288,121296,121318,121338,121356,121368,121392,121406,121440,121468,121536,121592,121656,121730,121732,121736,121744,121758,121760,121804,121842,121844,121890,121922,121924,121928,121936,121950,121958,121978,121986,121988,121992,122e3,122014,122016,122044,122060,122098,122100,122116,122120,122128,122142,122144,122172,122176,122232,122246,122264,122318,122338,122340,122344,122414,122418,122420,122446,122460,122466,122468,122472,122510,122524,122552,122562,122564,122568,122576,122598,122618,122646,122662,122668,122694,122700,122712,122738,122740,122762,122770,122772,122786,122788,122792,123018,123026,123028,123042,123044,123048,123062,123098,123146,123154,123156,123170,123172,123176,123190,123202,123204,123208,123216,123238,123244,123258,123290,123314,123316,123402,123410,123412,123426,123428,123432,123446,123458,123464,123472,123486,123494,123500,123514,123522,123524,123528,123536,123552,123580,123590,123596,123608,123630,123634,123636,123674,123698,123700,123740,123746,123748,123752,123834,123914,123922,123924,123938,123944,123958,123970,123976,123984,123998,124006,124012,124026,124034,124036,124048,124062,124064,124092,124102,124108,124120,124142,124146,124148,124162,124164,124168,124176,124190,124192,124220,124224,124280,124294,124300,124312,124336,124350,124366,124380,124386,124388,124392,124406,124442,124462,124466,124468,124494,124508,124514,124520,124558,124572,124600,124610,124612,124616,124624,124646,124666,124694,124710,124716,124730,124742,124748,124760,124786,124788,124818,124820,124834,124836,124840,124854,124946,124948,124962,124964,124968,124982,124994,124996,125e3,125008,125022,125030,125036,125050,125058,125060,125064,125072,125086,125088,125116,125126,125132,125144,125166,125170,125172,125186,125188,125192,125200,125216,125244,125248,125304,125318,125324,125336,125360,125374,125390,125404,125410,125412,125416,125430,125444,125448,125456,125472,125504,125560,125680,125702,125708,125720,125744,125758,125792,125820,125838,125852,125880,125890,125892,125896,125904,125918,125926,125932,125978,125998,126002,126004,126030,126044,126050,126052,126056,126094,126108,126136,126146,126148,126152,126160,126182,126202,126222,126236,126264,126320,126334,126338,126340,126344,126352,126366,126368,126412,126450,126452,126486,126502,126508,126522,126534,126540,126552,126574,126578,126580,126598,126604,126616,126640,126654,126670,126684,126690,126692,126696,126738,126754,126756,126760,126774,126786,126788,126792,126800,126814,126822,126828,126842,126894,126898,126900,126934,127126,127142,127148,127162,127178,127186,127188,127254,127270,127276,127290,127302,127308,127320,127342,127346,127348,127370,127378,127380,127394,127396,127400,127450,127510,127526,127532,127546,127558,127576,127598,127602,127604,127622,127628,127640,127664,127678,127694,127708,127714,127716,127720,127734,127754,127762,127764,127778,127784,127810,127812,127816,127824,127838,127846,127866,127898,127918,127922,127924,128022,128038,128044,128058,128070,128076,128088,128110,128114,128116,128134,128140,128152,128176,128190,128206,128220,128226,128228,128232,128246,128262,128268,128280,128304,128318,128352,128380,128398,128412,128440,128450,128452,128456,128464,128478,128486,128492,128506,128522,128530,128532,128546,128548,128552,128566,128578,128580,128584,128592,128606,128614,128634,128642,128644,128648,128656,128670,128672,128700,128716,128754,128756,128794,128814,128818,128820,128846,128860,128866,128868,128872,128886,128918,128934,128940,128954,128978,128980,129178,129198,129202,129204,129238,129258,129306,129326,129330,129332,129358,129372,129378,129380,129384,129398,129430,129446,129452,129466,129482,129490,129492,129562,129582,129586,129588,129614,129628,129634,129636,129640,129654,129678,129692,129720,129730,129732,129736,129744,129758,129766,129772,129814,129830,129836,129850,129862,129868,129880,129902,129906,129908,129930,129938,129940,129954,129956,129960,129974,130010]),e.CODEWORD_TABLE=Int32Array.from([2627,1819,2622,2621,1813,1812,2729,2724,2723,2779,2774,2773,902,896,908,868,865,861,859,2511,873,871,1780,835,2493,825,2491,842,837,844,1764,1762,811,810,809,2483,807,2482,806,2480,815,814,813,812,2484,817,816,1745,1744,1742,1746,2655,2637,2635,2626,2625,2623,2628,1820,2752,2739,2737,2728,2727,2725,2730,2785,2783,2778,2777,2775,2780,787,781,747,739,736,2413,754,752,1719,692,689,681,2371,678,2369,700,697,694,703,1688,1686,642,638,2343,631,2341,627,2338,651,646,643,2345,654,652,1652,1650,1647,1654,601,599,2322,596,2321,594,2319,2317,611,610,608,606,2324,603,2323,615,614,612,1617,1616,1614,1612,616,1619,1618,2575,2538,2536,905,901,898,909,2509,2507,2504,870,867,864,860,2512,875,872,1781,2490,2489,2487,2485,1748,836,834,832,830,2494,827,2492,843,841,839,845,1765,1763,2701,2676,2674,2653,2648,2656,2634,2633,2631,2629,1821,2638,2636,2770,2763,2761,2750,2745,2753,2736,2735,2733,2731,1848,2740,2738,2786,2784,591,588,576,569,566,2296,1590,537,534,526,2276,522,2274,545,542,539,548,1572,1570,481,2245,466,2242,462,2239,492,485,482,2249,496,494,1534,1531,1528,1538,413,2196,406,2191,2188,425,419,2202,415,2199,432,430,427,1472,1467,1464,433,1476,1474,368,367,2160,365,2159,362,2157,2155,2152,378,377,375,2166,372,2165,369,2162,383,381,379,2168,1419,1418,1416,1414,385,1411,384,1423,1422,1420,1424,2461,802,2441,2439,790,786,783,794,2409,2406,2403,750,742,738,2414,756,753,1720,2367,2365,2362,2359,1663,693,691,684,2373,680,2370,702,699,696,704,1690,1687,2337,2336,2334,2332,1624,2329,1622,640,637,2344,634,2342,630,2340,650,648,645,2346,655,653,1653,1651,1649,1655,2612,2597,2595,2571,2568,2565,2576,2534,2529,2526,1787,2540,2537,907,904,900,910,2503,2502,2500,2498,1768,2495,1767,2510,2508,2506,869,866,863,2513,876,874,1782,2720,2713,2711,2697,2694,2691,2702,2672,2670,2664,1828,2678,2675,2647,2646,2644,2642,1823,2639,1822,2654,2652,2650,2657,2771,1855,2765,2762,1850,1849,2751,2749,2747,2754,353,2148,344,342,336,2142,332,2140,345,1375,1373,306,2130,299,2128,295,2125,319,314,311,2132,1354,1352,1349,1356,262,257,2101,253,2096,2093,274,273,267,2107,263,2104,280,278,275,1316,1311,1308,1320,1318,2052,202,2050,2044,2040,219,2063,212,2060,208,2055,224,221,2066,1260,1258,1252,231,1248,229,1266,1264,1261,1268,155,1998,153,1996,1994,1991,1988,165,164,2007,162,2006,159,2003,2e3,172,171,169,2012,166,2010,1186,1184,1182,1179,175,1176,173,1192,1191,1189,1187,176,1194,1193,2313,2307,2305,592,589,2294,2292,2289,578,572,568,2297,580,1591,2272,2267,2264,1547,538,536,529,2278,525,2275,547,544,541,1574,1571,2237,2235,2229,1493,2225,1489,478,2247,470,2244,465,2241,493,488,484,2250,498,495,1536,1533,1530,1539,2187,2186,2184,2182,1432,2179,1430,2176,1427,414,412,2197,409,2195,405,2193,2190,426,424,421,2203,418,2201,431,429,1473,1471,1469,1466,434,1477,1475,2478,2472,2470,2459,2457,2454,2462,803,2437,2432,2429,1726,2443,2440,792,789,785,2401,2399,2393,1702,2389,1699,2411,2408,2405,745,741,2415,758,755,1721,2358,2357,2355,2353,1661,2350,1660,2347,1657,2368,2366,2364,2361,1666,690,687,2374,683,2372,701,698,705,1691,1689,2619,2617,2610,2608,2605,2613,2593,2588,2585,1803,2599,2596,2563,2561,2555,1797,2551,1795,2573,2570,2567,2577,2525,2524,2522,2520,1786,2517,1785,2514,1783,2535,2533,2531,2528,1788,2541,2539,906,903,911,2721,1844,2715,2712,1838,1836,2699,2696,2693,2703,1827,1826,1824,2673,2671,2669,2666,1829,2679,2677,1858,1857,2772,1854,1853,1851,1856,2766,2764,143,1987,139,1986,135,133,131,1984,128,1983,125,1981,138,137,136,1985,1133,1132,1130,112,110,1974,107,1973,104,1971,1969,122,121,119,117,1977,114,1976,124,1115,1114,1112,1110,1117,1116,84,83,1953,81,1952,78,1950,1948,1945,94,93,91,1959,88,1958,85,1955,99,97,95,1961,1086,1085,1083,1081,1078,100,1090,1089,1087,1091,49,47,1917,44,1915,1913,1910,1907,59,1926,56,1925,53,1922,1919,66,64,1931,61,1929,1042,1040,1038,71,1035,70,1032,68,1048,1047,1045,1043,1050,1049,12,10,1869,1867,1864,1861,21,1880,19,1877,1874,1871,28,1888,25,1886,22,1883,982,980,977,974,32,30,991,989,987,984,34,995,994,992,2151,2150,2147,2146,2144,356,355,354,2149,2139,2138,2136,2134,1359,343,341,338,2143,335,2141,348,347,346,1376,1374,2124,2123,2121,2119,1326,2116,1324,310,308,305,2131,302,2129,298,2127,320,318,316,313,2133,322,321,1355,1353,1351,1357,2092,2091,2089,2087,1276,2084,1274,2081,1271,259,2102,256,2100,252,2098,2095,272,269,2108,266,2106,281,279,277,1317,1315,1313,1310,282,1321,1319,2039,2037,2035,2032,1203,2029,1200,1197,207,2053,205,2051,201,2049,2046,2043,220,218,2064,215,2062,211,2059,228,226,223,2069,1259,1257,1254,232,1251,230,1267,1265,1263,2316,2315,2312,2311,2309,2314,2304,2303,2301,2299,1593,2308,2306,590,2288,2287,2285,2283,1578,2280,1577,2295,2293,2291,579,577,574,571,2298,582,581,1592,2263,2262,2260,2258,1545,2255,1544,2252,1541,2273,2271,2269,2266,1550,535,532,2279,528,2277,546,543,549,1575,1573,2224,2222,2220,1486,2217,1485,2214,1482,1479,2238,2236,2234,2231,1496,2228,1492,480,477,2248,473,2246,469,2243,490,487,2251,497,1537,1535,1532,2477,2476,2474,2479,2469,2468,2466,2464,1730,2473,2471,2453,2452,2450,2448,1729,2445,1728,2460,2458,2456,2463,805,804,2428,2427,2425,2423,1725,2420,1724,2417,1722,2438,2436,2434,2431,1727,2444,2442,793,791,788,795,2388,2386,2384,1697,2381,1696,2378,1694,1692,2402,2400,2398,2395,1703,2392,1701,2412,2410,2407,751,748,744,2416,759,757,1807,2620,2618,1806,1805,2611,2609,2607,2614,1802,1801,1799,2594,2592,2590,2587,1804,2600,2598,1794,1793,1791,1789,2564,2562,2560,2557,1798,2554,1796,2574,2572,2569,2578,1847,1846,2722,1843,1842,1840,1845,2716,2714,1835,1834,1832,1830,1839,1837,2700,2698,2695,2704,1817,1811,1810,897,862,1777,829,826,838,1760,1758,808,2481,1741,1740,1738,1743,2624,1818,2726,2776,782,740,737,1715,686,679,695,1682,1680,639,628,2339,647,644,1645,1643,1640,1648,602,600,597,595,2320,593,2318,609,607,604,1611,1610,1608,1606,613,1615,1613,2328,926,924,892,886,899,857,850,2505,1778,824,823,821,819,2488,818,2486,833,831,828,840,1761,1759,2649,2632,2630,2746,2734,2732,2782,2781,570,567,1587,531,527,523,540,1566,1564,476,467,463,2240,486,483,1524,1521,1518,1529,411,403,2192,399,2189,423,416,1462,1457,1454,428,1468,1465,2210,366,363,2158,360,2156,357,2153,376,373,370,2163,1410,1409,1407,1405,382,1402,380,1417,1415,1412,1421,2175,2174,777,774,771,784,732,725,722,2404,743,1716,676,674,668,2363,665,2360,685,1684,1681,626,624,622,2335,620,2333,617,2330,641,635,649,1646,1644,1642,2566,928,925,2530,2527,894,891,888,2501,2499,2496,858,856,854,851,1779,2692,2668,2665,2645,2643,2640,2651,2768,2759,2757,2744,2743,2741,2748,352,1382,340,337,333,1371,1369,307,300,296,2126,315,312,1347,1342,1350,261,258,250,2097,246,2094,271,268,264,1306,1301,1298,276,1312,1309,2115,203,2048,195,2045,191,2041,213,209,2056,1246,1244,1238,225,1234,222,1256,1253,1249,1262,2080,2079,154,1997,150,1995,147,1992,1989,163,160,2004,156,2001,1175,1174,1172,1170,1167,170,1164,167,1185,1183,1180,1177,174,1190,1188,2025,2024,2022,587,586,564,559,556,2290,573,1588,520,518,512,2268,508,2265,530,1568,1565,461,457,2233,450,2230,446,2226,479,471,489,1526,1523,1520,397,395,2185,392,2183,389,2180,2177,410,2194,402,422,1463,1461,1459,1456,1470,2455,799,2433,2430,779,776,773,2397,2394,2390,734,728,724,746,1717,2356,2354,2351,2348,1658,677,675,673,670,667,688,1685,1683,2606,2589,2586,2559,2556,2552,927,2523,2521,2518,2515,1784,2532,895,893,890,2718,2709,2707,2689,2687,2684,2663,2662,2660,2658,1825,2667,2769,1852,2760,2758,142,141,1139,1138,134,132,129,126,1982,1129,1128,1126,1131,113,111,108,105,1972,101,1970,120,118,115,1109,1108,1106,1104,123,1113,1111,82,79,1951,75,1949,72,1946,92,89,86,1956,1077,1076,1074,1072,98,1069,96,1084,1082,1079,1088,1968,1967,48,45,1916,42,1914,39,1911,1908,60,57,54,1923,50,1920,1031,1030,1028,1026,67,1023,65,1020,62,1041,1039,1036,1033,69,1046,1044,1944,1943,1941,11,9,1868,7,1865,1862,1859,20,1878,16,1875,13,1872,970,968,966,963,29,960,26,23,983,981,978,975,33,971,31,990,988,985,1906,1904,1902,993,351,2145,1383,331,330,328,326,2137,323,2135,339,1372,1370,294,293,291,289,2122,286,2120,283,2117,309,303,317,1348,1346,1344,245,244,242,2090,239,2088,236,2085,2082,260,2099,249,270,1307,1305,1303,1300,1314,189,2038,186,2036,183,2033,2030,2026,206,198,2047,194,216,1247,1245,1243,1240,227,1237,1255,2310,2302,2300,2286,2284,2281,565,563,561,558,575,1589,2261,2259,2256,2253,1542,521,519,517,514,2270,511,533,1569,1567,2223,2221,2218,2215,1483,2211,1480,459,456,453,2232,449,474,491,1527,1525,1522,2475,2467,2465,2451,2449,2446,801,800,2426,2424,2421,2418,1723,2435,780,778,775,2387,2385,2382,2379,1695,2375,1693,2396,735,733,730,727,749,1718,2616,2615,2604,2603,2601,2584,2583,2581,2579,1800,2591,2550,2549,2547,2545,1792,2542,1790,2558,929,2719,1841,2710,2708,1833,1831,2690,2688,2686,1815,1809,1808,1774,1756,1754,1737,1736,1734,1739,1816,1711,1676,1674,633,629,1638,1636,1633,1641,598,1605,1604,1602,1600,605,1609,1607,2327,887,853,1775,822,820,1757,1755,1584,524,1560,1558,468,464,1514,1511,1508,1519,408,404,400,1452,1447,1444,417,1458,1455,2208,364,361,358,2154,1401,1400,1398,1396,374,1393,371,1408,1406,1403,1413,2173,2172,772,726,723,1712,672,669,666,682,1678,1675,625,623,621,618,2331,636,632,1639,1637,1635,920,918,884,880,889,849,848,847,846,2497,855,852,1776,2641,2742,2787,1380,334,1367,1365,301,297,1340,1338,1335,1343,255,251,247,1296,1291,1288,265,1302,1299,2113,204,196,192,2042,1232,1230,1224,214,1220,210,1242,1239,1235,1250,2077,2075,151,148,1993,144,1990,1163,1162,1160,1158,1155,161,1152,157,1173,1171,1168,1165,168,1181,1178,2021,2020,2018,2023,585,560,557,1585,516,509,1562,1559,458,447,2227,472,1516,1513,1510,398,396,393,390,2181,386,2178,407,1453,1451,1449,1446,420,1460,2209,769,764,720,712,2391,729,1713,664,663,661,659,2352,656,2349,671,1679,1677,2553,922,919,2519,2516,885,883,881,2685,2661,2659,2767,2756,2755,140,1137,1136,130,127,1125,1124,1122,1127,109,106,102,1103,1102,1100,1098,116,1107,1105,1980,80,76,73,1947,1068,1067,1065,1063,90,1060,87,1075,1073,1070,1080,1966,1965,46,43,40,1912,36,1909,1019,1018,1016,1014,58,1011,55,1008,51,1029,1027,1024,1021,63,1037,1034,1940,1939,1937,1942,8,1866,4,1863,1,1860,956,954,952,949,946,17,14,969,967,964,961,27,957,24,979,976,972,1901,1900,1898,1896,986,1905,1903,350,349,1381,329,327,324,1368,1366,292,290,287,284,2118,304,1341,1339,1337,1345,243,240,237,2086,233,2083,254,1297,1295,1293,1290,1304,2114,190,187,184,2034,180,2031,177,2027,199,1233,1231,1229,1226,217,1223,1241,2078,2076,584,555,554,552,550,2282,562,1586,507,506,504,502,2257,499,2254,515,1563,1561,445,443,441,2219,438,2216,435,2212,460,454,475,1517,1515,1512,2447,798,797,2422,2419,770,768,766,2383,2380,2376,721,719,717,714,731,1714,2602,2582,2580,2548,2546,2543,923,921,2717,2706,2705,2683,2682,2680,1771,1752,1750,1733,1732,1731,1735,1814,1707,1670,1668,1631,1629,1626,1634,1599,1598,1596,1594,1603,1601,2326,1772,1753,1751,1581,1554,1552,1504,1501,1498,1509,1442,1437,1434,401,1448,1445,2206,1392,1391,1389,1387,1384,359,1399,1397,1394,1404,2171,2170,1708,1672,1669,619,1632,1630,1628,1773,1378,1363,1361,1333,1328,1336,1286,1281,1278,248,1292,1289,2111,1218,1216,1210,197,1206,193,1228,1225,1221,1236,2073,2071,1151,1150,1148,1146,152,1143,149,1140,145,1161,1159,1156,1153,158,1169,1166,2017,2016,2014,2019,1582,510,1556,1553,452,448,1506,1500,394,391,387,1443,1441,1439,1436,1450,2207,765,716,713,1709,662,660,657,1673,1671,916,914,879,878,877,882,1135,1134,1121,1120,1118,1123,1097,1096,1094,1092,103,1101,1099,1979,1059,1058,1056,1054,77,1051,74,1066,1064,1061,1071,1964,1963,1007,1006,1004,1002,999,41,996,37,1017,1015,1012,1009,52,1025,1022,1936,1935,1933,1938,942,940,938,935,932,5,2,955,953,950,947,18,943,15,965,962,958,1895,1894,1892,1890,973,1899,1897,1379,325,1364,1362,288,285,1334,1332,1330,241,238,234,1287,1285,1283,1280,1294,2112,188,185,181,178,2028,1219,1217,1215,1212,200,1209,1227,2074,2072,583,553,551,1583,505,503,500,513,1557,1555,444,442,439,436,2213,455,451,1507,1505,1502,796,763,762,760,767,711,710,708,706,2377,718,715,1710,2544,917,915,2681,1627,1597,1595,2325,1769,1749,1747,1499,1438,1435,2204,1390,1388,1385,1395,2169,2167,1704,1665,1662,1625,1623,1620,1770,1329,1282,1279,2109,1214,1207,1222,2068,2065,1149,1147,1144,1141,146,1157,1154,2013,2011,2008,2015,1579,1549,1546,1495,1487,1433,1431,1428,1425,388,1440,2205,1705,658,1667,1664,1119,1095,1093,1978,1057,1055,1052,1062,1962,1960,1005,1003,1e3,997,38,1013,1010,1932,1930,1927,1934,941,939,936,933,6,930,3,951,948,944,1889,1887,1884,1881,959,1893,1891,35,1377,1360,1358,1327,1325,1322,1331,1277,1275,1272,1269,235,1284,2110,1205,1204,1201,1198,182,1195,179,1213,2070,2067,1580,501,1551,1548,440,437,1497,1494,1490,1503,761,709,707,1706,913,912,2198,1386,2164,2161,1621,1766,2103,1208,2058,2054,1145,1142,2005,2002,1999,2009,1488,1429,1426,2200,1698,1659,1656,1975,1053,1957,1954,1001,998,1924,1921,1918,1928,937,934,931,1879,1876,1873,1870,945,1885,1882,1323,1273,1270,2105,1202,1199,1196,1211,2061,2057,1576,1543,1540,1484,1481,1478,1491,1700]),e}();t["a"]=a},ab88:function(e,t,n){},aba2:function(e,t,n){var r=n("e53d"),i=n("4178").set,o=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,l="process"==n("6b4c")(a);e.exports=function(){var e,t,n,u=function(){var r,i;l&&(r=a.domain)&&r.exit();while(e){i=e.fn,e=e.next;try{i()}catch(o){throw e?n():t=void 0,o}}t=void 0,r&&r.enter()};if(l)n=function(){a.nextTick(u)};else if(!o||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var c=s.resolve(void 0);n=function(){c.then(u)}}else n=function(){i.call(r,u)};else{var f=!0,d=document.createTextNode("");new o(u).observe(d,{characterData:!0}),n=function(){d.data=f=!f}}return function(r){var i={fn:r,next:void 0};t&&(t.next=i),e||(e=i,n()),t=i}}},ac4d:function(e,t,n){n("3a72")("asyncIterator")},ac6a:function(e,t,n){for(var r=n("cadf"),i=n("0d58"),o=n("2aba"),a=n("7726"),s=n("32e9"),l=n("84f2"),u=n("2b4c"),c=u("iterator"),f=u("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},p=i(h),m=0;m<p.length;m++){var g,v=p[m],b=h[v],y=a[v],w=y&&y.prototype;if(w&&(w[c]||s(w,c,d),w[f]||s(w,f,v),l[v]=d,b))for(g in r)w[g]||o(w,g,r[g],!0)}},acf3:function(e,t,n){"use strict";var r,i=n("a652"),o=n("6099"),a=n("6530"),s=n("78c7"),l=n("f823"),u=n("7978"),c=n("9cca");(function(e){e[e["PAD_ENCODE"]=0]="PAD_ENCODE",e[e["ASCII_ENCODE"]=1]="ASCII_ENCODE",e[e["C40_ENCODE"]=2]="C40_ENCODE",e[e["TEXT_ENCODE"]=3]="TEXT_ENCODE",e[e["ANSIX12_ENCODE"]=4]="ANSIX12_ENCODE",e[e["EDIFACT_ENCODE"]=5]="EDIFACT_ENCODE",e[e["BASE256_ENCODE"]=6]="BASE256_ENCODE"})(r||(r={}));var f=function(){function e(){}return e.decode=function(e){var t=new o["a"](e),n=new a["a"],s=new a["a"],l=new Array,c=r.ASCII_ENCODE;do{if(c===r.ASCII_ENCODE)c=this.decodeAsciiSegment(t,n,s);else{switch(c){case r.C40_ENCODE:this.decodeC40Segment(t,n);break;case r.TEXT_ENCODE:this.decodeTextSegment(t,n);break;case r.ANSIX12_ENCODE:this.decodeAnsiX12Segment(t,n);break;case r.EDIFACT_ENCODE:this.decodeEdifactSegment(t,n);break;case r.BASE256_ENCODE:this.decodeBase256Segment(t,n,l);break;default:throw new u["a"]}c=r.ASCII_ENCODE}}while(c!==r.PAD_ENCODE&&t.available()>0);return s.length()>0&&n.append(s.toString()),new i["a"](e,n.toString(),0===l.length?null:l,null)},e.decodeAsciiSegment=function(e,t,n){var i=!1;do{var o=e.readBits(8);if(0===o)throw new u["a"];if(o<=128)return i&&(o+=128),t.append(String.fromCharCode(o-1)),r.ASCII_ENCODE;if(129===o)return r.PAD_ENCODE;if(o<=229){var a=o-130;a<10&&t.append("0"),t.append(""+a)}else switch(o){case 230:return r.C40_ENCODE;case 231:return r.BASE256_ENCODE;case 232:t.append(String.fromCharCode(29));break;case 233:case 234:break;case 235:i=!0;break;case 236:t.append("[)>05"),n.insert(0,"");break;case 237:t.append("[)>06"),n.insert(0,"");break;case 238:return r.ANSIX12_ENCODE;case 239:return r.TEXT_ENCODE;case 240:return r.EDIFACT_ENCODE;case 241:break;default:if(254!==o||0!==e.available())throw new u["a"];break}}while(e.available()>0);return r.ASCII_ENCODE},e.decodeC40Segment=function(e,t){var n=!1,r=[],i=0;do{if(8===e.available())return;var o=e.readBits(8);if(254===o)return;this.parseTwoBytes(o,e.readBits(8),r);for(var a=0;a<3;a++){var s=r[a];switch(i){case 0:if(s<3)i=s+1;else{if(!(s<this.C40_BASIC_SET_CHARS.length))throw new u["a"];var l=this.C40_BASIC_SET_CHARS[s];n?(t.append(String.fromCharCode(l.charCodeAt(0)+128)),n=!1):t.append(l)}break;case 1:n?(t.append(String.fromCharCode(s+128)),n=!1):t.append(String.fromCharCode(s)),i=0;break;case 2:if(s<this.C40_SHIFT2_SET_CHARS.length){l=this.C40_SHIFT2_SET_CHARS[s];n?(t.append(String.fromCharCode(l.charCodeAt(0)+128)),n=!1):t.append(l)}else switch(s){case 27:t.append(String.fromCharCode(29));break;case 30:n=!0;break;default:throw new u["a"]}i=0;break;case 3:n?(t.append(String.fromCharCode(s+224)),n=!1):t.append(String.fromCharCode(s+96)),i=0;break;default:throw new u["a"]}}}while(e.available()>0)},e.decodeTextSegment=function(e,t){var n=!1,r=[],i=0;do{if(8===e.available())return;var o=e.readBits(8);if(254===o)return;this.parseTwoBytes(o,e.readBits(8),r);for(var a=0;a<3;a++){var s=r[a];switch(i){case 0:if(s<3)i=s+1;else{if(!(s<this.TEXT_BASIC_SET_CHARS.length))throw new u["a"];var l=this.TEXT_BASIC_SET_CHARS[s];n?(t.append(String.fromCharCode(l.charCodeAt(0)+128)),n=!1):t.append(l)}break;case 1:n?(t.append(String.fromCharCode(s+128)),n=!1):t.append(String.fromCharCode(s)),i=0;break;case 2:if(s<this.TEXT_SHIFT2_SET_CHARS.length){l=this.TEXT_SHIFT2_SET_CHARS[s];n?(t.append(String.fromCharCode(l.charCodeAt(0)+128)),n=!1):t.append(l)}else switch(s){case 27:t.append(String.fromCharCode(29));break;case 30:n=!0;break;default:throw new u["a"]}i=0;break;case 3:if(!(s<this.TEXT_SHIFT3_SET_CHARS.length))throw new u["a"];l=this.TEXT_SHIFT3_SET_CHARS[s];n?(t.append(String.fromCharCode(l.charCodeAt(0)+128)),n=!1):t.append(l),i=0;break;default:throw new u["a"]}}}while(e.available()>0)},e.decodeAnsiX12Segment=function(e,t){var n=[];do{if(8===e.available())return;var r=e.readBits(8);if(254===r)return;this.parseTwoBytes(r,e.readBits(8),n);for(var i=0;i<3;i++){var o=n[i];switch(o){case 0:t.append("\r");break;case 1:t.append("*");break;case 2:t.append(">");break;case 3:t.append(" ");break;default:if(o<14)t.append(String.fromCharCode(o+44));else{if(!(o<40))throw new u["a"];t.append(String.fromCharCode(o+51))}break}}}while(e.available()>0)},e.parseTwoBytes=function(e,t,n){var r=(e<<8)+t-1,i=Math.floor(r/1600);n[0]=i,r-=1600*i,i=Math.floor(r/40),n[1]=i,n[2]=r-40*i},e.decodeEdifactSegment=function(e,t){do{if(e.available()<=16)return;for(var n=0;n<4;n++){var r=e.readBits(6);if(31===r){var i=8-e.getBitOffset();return void(8!==i&&e.readBits(i))}0===(32&r)&&(r|=64),t.append(String.fromCharCode(r))}}while(e.available()>0)},e.decodeBase256Segment=function(e,t,n){var r,i=1+e.getByteOffset(),o=this.unrandomize255State(e.readBits(8),i++);if(r=0===o?e.available()/8|0:o<250?o:250*(o-249)+this.unrandomize255State(e.readBits(8),i++),r<0)throw new u["a"];for(var a=new Uint8Array(r),f=0;f<r;f++){if(e.available()<8)throw new u["a"];a[f]=this.unrandomize255State(e.readBits(8),i++)}n.push(a);try{t.append(s["a"].decode(a,l["a"].ISO88591))}catch(d){throw new c["a"]("Platform does not support required encoding: "+d.message)}},e.unrandomize255State=function(e,t){var n=149*t%255+1,r=e-n;return r>=0?r:r+256},e.C40_BASIC_SET_CHARS=["*","*","*"," ","0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],e.C40_SHIFT2_SET_CHARS=["!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","@","[","\\","]","^","_"],e.TEXT_BASIC_SET_CHARS=["*","*","*"," ","0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],e.TEXT_SHIFT2_SET_CHARS=e.C40_SHIFT2_SET_CHARS,e.TEXT_SHIFT3_SET_CHARS=["`","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","{","|","}","~",String.fromCharCode(127)],e}();t["a"]=f},ade3:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("a38e");function i(e,t,n){return t=Object(r["a"])(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},ae4b:function(e,t,n){"use strict";var r=n("6530"),i=function(){function e(){this.maskPattern=-1}return e.prototype.getMode=function(){return this.mode},e.prototype.getECLevel=function(){return this.ecLevel},e.prototype.getVersion=function(){return this.version},e.prototype.getMaskPattern=function(){return this.maskPattern},e.prototype.getMatrix=function(){return this.matrix},e.prototype.toString=function(){var e=new r["a"];return e.append("<<\n"),e.append(" mode: "),e.append(this.mode?this.mode.toString():"null"),e.append("\n ecLevel: "),e.append(this.ecLevel?this.ecLevel.toString():"null"),e.append("\n version: "),e.append(this.version?this.version.toString():"null"),e.append("\n maskPattern: "),e.append(this.maskPattern.toString()),this.matrix?(e.append("\n matrix:\n"),e.append(this.matrix.toString())):e.append("\n matrix: null\n"),e.append(">>\n"),e.toString()},e.prototype.setMode=function(e){this.mode=e},e.prototype.setECLevel=function(e){this.ecLevel=e},e.prototype.setVersion=function(e){this.version=e},e.prototype.setMaskPattern=function(e){this.maskPattern=e},e.prototype.setMatrix=function(e){this.matrix=e},e.isValidMaskPattern=function(t){return t>=0&&t<e.NUM_MASK_PATTERNS},e.NUM_MASK_PATTERNS=8,e}();t["a"]=i},aebd:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},aef6:function(e,t,n){"use strict";var r=n("5ca1"),i=n("9def"),o=n("d2c8"),a="endsWith",s=""[a];r(r.P+r.F*n("5147")(a),"String",{endsWith:function(e){var t=o(this,e,a),n=arguments.length>1?arguments[1]:void 0,r=i(t.length),l=void 0===n?r:Math.min(i(n),r),u=String(e);return s?s.call(t,u,l):t.slice(l-u.length,l)===u}})},afc5:function(e,t,n){e.exports={default:n("69b9"),__esModule:!0}},b0c5:function(e,t,n){"use strict";var r=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},b0dc:function(e,t,n){var r=n("e4ae");e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(a){var o=e["return"];throw void 0!==o&&r(o.call(e)),a}}},b232:function(e,t,n){"use strict";n("8723")},b39a:function(e,t,n){var r=n("d3f4");e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},b3d8:function(e,t,n){"use strict";var r;(function(e){e[e["DATA_MASK_000"]=0]="DATA_MASK_000",e[e["DATA_MASK_001"]=1]="DATA_MASK_001",e[e["DATA_MASK_010"]=2]="DATA_MASK_010",e[e["DATA_MASK_011"]=3]="DATA_MASK_011",e[e["DATA_MASK_100"]=4]="DATA_MASK_100",e[e["DATA_MASK_101"]=5]="DATA_MASK_101",e[e["DATA_MASK_110"]=6]="DATA_MASK_110",e[e["DATA_MASK_111"]=7]="DATA_MASK_111"})(r||(r={}));var i=function(){function e(e,t){this.value=e,this.isMasked=t}return e.prototype.unmaskBitMatrix=function(e,t){for(var n=0;n<t;n++)for(var r=0;r<t;r++)this.isMasked(n,r)&&e.flip(r,n)},e.values=new Map([[r.DATA_MASK_000,new e(r.DATA_MASK_000,(function(e,t){return 0===(e+t&1)}))],[r.DATA_MASK_001,new e(r.DATA_MASK_001,(function(e,t){return 0===(1&e)}))],[r.DATA_MASK_010,new e(r.DATA_MASK_010,(function(e,t){return t%3===0}))],[r.DATA_MASK_011,new e(r.DATA_MASK_011,(function(e,t){return(e+t)%3===0}))],[r.DATA_MASK_100,new e(r.DATA_MASK_100,(function(e,t){return 0===(Math.floor(e/2)+Math.floor(t/3)&1)}))],[r.DATA_MASK_101,new e(r.DATA_MASK_101,(function(e,t){return e*t%6===0}))],[r.DATA_MASK_110,new e(r.DATA_MASK_110,(function(e,t){return e*t%6<3}))],[r.DATA_MASK_111,new e(r.DATA_MASK_111,(function(e,t){return 0===(e+t+e*t%3&1)}))]]),e}();t["a"]=i},b447:function(e,t,n){var r=n("3a38"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},b5b4:function(e,t,n){"use strict";var r=n("9068"),i=n("ea29"),o=n("ae4b"),a=n("d439"),s=n("4986"),l=n("f0a7"),u=function(){function e(){}return e.clearMatrix=function(e){e.clear(255)},e.buildMatrix=function(t,n,r,i,o){e.clearMatrix(o),e.embedBasicPatterns(r,o),e.embedTypeInfo(n,i,o),e.maybeEmbedVersionInfo(r,o),e.embedDataBits(t,i,o)},e.embedBasicPatterns=function(t,n){e.embedPositionDetectionPatternsAndSeparators(n),e.embedDarkDotAtLeftBottomCorner(n),e.maybeEmbedPositionAdjustmentPatterns(t,n),e.embedTimingPatterns(n)},e.embedTypeInfo=function(t,n,i){var o=new r["a"];e.makeTypeInfoBits(t,n,o);for(var a=0,s=o.getSize();a<s;++a){var l=o.get(o.getSize()-1-a),u=e.TYPE_INFO_COORDINATES[a],c=u[0],f=u[1];if(i.setBoolean(c,f,l),a<8){var d=i.getWidth()-a-1,h=8;i.setBoolean(d,h,l)}else{d=8,h=i.getHeight()-7+(a-8);i.setBoolean(d,h,l)}}},e.maybeEmbedVersionInfo=function(t,n){if(!(t.getVersionNumber()<7)){var i=new r["a"];e.makeVersionInfoBits(t,i);for(var o=17,a=0;a<6;++a)for(var s=0;s<3;++s){var l=i.get(o);o--,n.setBoolean(a,n.getHeight()-11+s,l),n.setBoolean(n.getHeight()-11+s,a,l)}}},e.embedDataBits=function(t,n,r){var i=0,o=-1,l=r.getWidth()-1,u=r.getHeight()-1;while(l>0){6===l&&(l-=1);while(u>=0&&u<r.getHeight()){for(var c=0;c<2;++c){var f=l-c;if(e.isEmpty(r.get(f,u))){var d=void 0;i<t.getSize()?(d=t.get(i),++i):d=!1,255!==n&&a["a"].getDataMaskBit(n,f,u)&&(d=!d),r.setBoolean(f,u,d)}}u+=o}o=-o,u+=o,l-=2}if(i!==t.getSize())throw new s["a"]("Not all bits consumed: "+i+"/"+t.getSize())},e.findMSBSet=function(e){return 32-i["a"].numberOfLeadingZeros(e)},e.calculateBCHCode=function(t,n){if(0===n)throw new l["a"]("0 polynomial");var r=e.findMSBSet(n);t<<=r-1;while(e.findMSBSet(t)>=r)t^=n<<e.findMSBSet(t)-r;return t},e.makeTypeInfoBits=function(t,n,i){if(!o["a"].isValidMaskPattern(n))throw new s["a"]("Invalid mask pattern");var a=t.getBits()<<3|n;i.appendBits(a,5);var l=e.calculateBCHCode(a,e.TYPE_INFO_POLY);i.appendBits(l,10);var u=new r["a"];if(u.appendBits(e.TYPE_INFO_MASK_PATTERN,15),i.xor(u),15!==i.getSize())throw new s["a"]("should not happen but we got: "+i.getSize())},e.makeVersionInfoBits=function(t,n){n.appendBits(t.getVersionNumber(),6);var r=e.calculateBCHCode(t.getVersionNumber(),e.VERSION_INFO_POLY);if(n.appendBits(r,12),18!==n.getSize())throw new s["a"]("should not happen but we got: "+n.getSize())},e.isEmpty=function(e){return 255===e},e.embedTimingPatterns=function(t){for(var n=8;n<t.getWidth()-8;++n){var r=(n+1)%2;e.isEmpty(t.get(n,6))&&t.setNumber(n,6,r),e.isEmpty(t.get(6,n))&&t.setNumber(6,n,r)}},e.embedDarkDotAtLeftBottomCorner=function(e){if(0===e.get(8,e.getHeight()-8))throw new s["a"];e.setNumber(8,e.getHeight()-8,1)},e.embedHorizontalSeparationPattern=function(t,n,r){for(var i=0;i<8;++i){if(!e.isEmpty(r.get(t+i,n)))throw new s["a"];r.setNumber(t+i,n,0)}},e.embedVerticalSeparationPattern=function(t,n,r){for(var i=0;i<7;++i){if(!e.isEmpty(r.get(t,n+i)))throw new s["a"];r.setNumber(t,n+i,0)}},e.embedPositionAdjustmentPattern=function(t,n,r){for(var i=0;i<5;++i)for(var o=e.POSITION_ADJUSTMENT_PATTERN[i],a=0;a<5;++a)r.setNumber(t+a,n+i,o[a])},e.embedPositionDetectionPattern=function(t,n,r){for(var i=0;i<7;++i)for(var o=e.POSITION_DETECTION_PATTERN[i],a=0;a<7;++a)r.setNumber(t+a,n+i,o[a])},e.embedPositionDetectionPatternsAndSeparators=function(t){var n=e.POSITION_DETECTION_PATTERN[0].length;e.embedPositionDetectionPattern(0,0,t),e.embedPositionDetectionPattern(t.getWidth()-n,0,t),e.embedPositionDetectionPattern(0,t.getWidth()-n,t);var r=8;e.embedHorizontalSeparationPattern(0,r-1,t),e.embedHorizontalSeparationPattern(t.getWidth()-r,r-1,t),e.embedHorizontalSeparationPattern(0,t.getWidth()-r,t);var i=7;e.embedVerticalSeparationPattern(i,0,t),e.embedVerticalSeparationPattern(t.getHeight()-i-1,0,t),e.embedVerticalSeparationPattern(i,t.getHeight()-i,t)},e.maybeEmbedPositionAdjustmentPatterns=function(t,n){if(!(t.getVersionNumber()<2))for(var r=t.getVersionNumber()-1,i=e.POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE[r],o=0,a=i.length;o!==a;o++){var s=i[o];if(s>=0)for(var l=0;l!==a;l++){var u=i[l];u>=0&&e.isEmpty(n.get(u,s))&&e.embedPositionAdjustmentPattern(u-2,s-2,n)}}},e.POSITION_DETECTION_PATTERN=Array.from([Int32Array.from([1,1,1,1,1,1,1]),Int32Array.from([1,0,0,0,0,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,0,0,0,0,1]),Int32Array.from([1,1,1,1,1,1,1])]),e.POSITION_ADJUSTMENT_PATTERN=Array.from([Int32Array.from([1,1,1,1,1]),Int32Array.from([1,0,0,0,1]),Int32Array.from([1,0,1,0,1]),Int32Array.from([1,0,0,0,1]),Int32Array.from([1,1,1,1,1])]),e.POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE=Array.from([Int32Array.from([-1,-1,-1,-1,-1,-1,-1]),Int32Array.from([6,18,-1,-1,-1,-1,-1]),Int32Array.from([6,22,-1,-1,-1,-1,-1]),Int32Array.from([6,26,-1,-1,-1,-1,-1]),Int32Array.from([6,30,-1,-1,-1,-1,-1]),Int32Array.from([6,34,-1,-1,-1,-1,-1]),Int32Array.from([6,22,38,-1,-1,-1,-1]),Int32Array.from([6,24,42,-1,-1,-1,-1]),Int32Array.from([6,26,46,-1,-1,-1,-1]),Int32Array.from([6,28,50,-1,-1,-1,-1]),Int32Array.from([6,30,54,-1,-1,-1,-1]),Int32Array.from([6,32,58,-1,-1,-1,-1]),Int32Array.from([6,34,62,-1,-1,-1,-1]),Int32Array.from([6,26,46,66,-1,-1,-1]),Int32Array.from([6,26,48,70,-1,-1,-1]),Int32Array.from([6,26,50,74,-1,-1,-1]),Int32Array.from([6,30,54,78,-1,-1,-1]),Int32Array.from([6,30,56,82,-1,-1,-1]),Int32Array.from([6,30,58,86,-1,-1,-1]),Int32Array.from([6,34,62,90,-1,-1,-1]),Int32Array.from([6,28,50,72,94,-1,-1]),Int32Array.from([6,26,50,74,98,-1,-1]),Int32Array.from([6,30,54,78,102,-1,-1]),Int32Array.from([6,28,54,80,106,-1,-1]),Int32Array.from([6,32,58,84,110,-1,-1]),Int32Array.from([6,30,58,86,114,-1,-1]),Int32Array.from([6,34,62,90,118,-1,-1]),Int32Array.from([6,26,50,74,98,122,-1]),Int32Array.from([6,30,54,78,102,126,-1]),Int32Array.from([6,26,52,78,104,130,-1]),Int32Array.from([6,30,56,82,108,134,-1]),Int32Array.from([6,34,60,86,112,138,-1]),Int32Array.from([6,30,58,86,114,142,-1]),Int32Array.from([6,34,62,90,118,146,-1]),Int32Array.from([6,30,54,78,102,126,150]),Int32Array.from([6,24,50,76,102,128,154]),Int32Array.from([6,28,54,80,106,132,158]),Int32Array.from([6,32,58,84,110,136,162]),Int32Array.from([6,26,54,82,110,138,166]),Int32Array.from([6,30,58,86,114,142,170])]),e.TYPE_INFO_COORDINATES=Array.from([Int32Array.from([8,0]),Int32Array.from([8,1]),Int32Array.from([8,2]),Int32Array.from([8,3]),Int32Array.from([8,4]),Int32Array.from([8,5]),Int32Array.from([8,7]),Int32Array.from([8,8]),Int32Array.from([7,8]),Int32Array.from([5,8]),Int32Array.from([4,8]),Int32Array.from([3,8]),Int32Array.from([2,8]),Int32Array.from([1,8]),Int32Array.from([0,8])]),e.VERSION_INFO_POLY=7973,e.TYPE_INFO_POLY=1335,e.TYPE_INFO_MASK_PATTERN=21522,e}();t["a"]=u},b86b:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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="/dist/",n(n.s=109)}({1:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var l,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},109:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this.$createElement;return(this._self._c||e)("div",{ref:"checkbox-group",staticClass:"el-checkbox-group",attrs:{role:"group","aria-label":"checkbox-group"}},[this._t("default")],2)};r._withStripped=!0;var i=n(4),o={name:"ElCheckboxGroup",componentName:"ElCheckboxGroup",mixins:[n.n(i).a],inject:{elFormItem:{default:""}},data:function(){return{isButton:!1}},props:{value:{},disabled:Boolean,min:Number,max:Number,size:String,fill:String,textColor:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxGroupSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size}},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",[e])}}},a=n(1),s=Object(a.a)(o,r,[],!1,null,null,null);s.options.__file="packages/checkbox/src/checkbox-group.vue";var l=s.exports;l.install=function(e){e.component(l.name,l)},t.default=l},4:function(e,t){e.exports=n("bbe4")}})},b875:function(e,t,n){"use strict";var r,i=Object.prototype.hasOwnProperty,o=n("f809"),a=n("bf6a"),s={},l="§";function u(){if(c.supported){var e,t=r.getItem("koekje"),n=0;for(e in s=t&&t.charAt(0)===l?a.parse(t.slice(1)):{},s)i.call(s,e)&&n++;c.length=n}}r=o("undefined"!==typeof document?document:{});var c=e.exports={length:0,getItem:function(e){return i.call(s,e)?s[e]:null},setItem:function(e,t){s[e]=t,r.setItem("koekje",a.stringify(s,l)),c.length++},removeItem:function(e){delete s[e],r.setItem("koekje",a.stringify(s,l)),c.length--},clear:function(){s={},r.setItem("koekje","",{expires:new Date(0)}),c.length=0},supported:function(){return"object"===typeof navigator&&navigator.cookieEnabled}(),update:u};u()},b8e3:function(e,t){e.exports=!0},ba92:function(e,t,n){"use strict";var r=n("4bf8"),i=n("77f1"),o=n("9def");e.exports=[].copyWithin||function(e,t){var n=r(this),a=o(n.length),s=i(e,a),l=i(t,a),u=arguments.length>2?arguments[2]:void 0,c=Math.min((void 0===u?a:i(u,a))-l,a-s),f=1;l<s&&s<l+c&&(f=-1,l+=c-1,s+=c-1);while(c-- >0)l in n?n[s]=n[l]:delete n[s],s+=f,l+=f;return n}},bb6f:function(e,t,n){"use strict";var r=function(){function e(e,t){this.value=e,this.checksumPortion=t}return e.prototype.getValue=function(){return this.value},e.prototype.getChecksumPortion=function(){return this.checksumPortion},e.prototype.toString=function(){return this.value+"("+this.checksumPortion+")"},e.prototype.equals=function(t){if(!(t instanceof e))return!1;var n=t;return this.value===n.value&&this.checksumPortion===n.checksumPortion},e.prototype.hashCode=function(){return this.value^this.checksumPortion},e}();t["a"]=r},bbe4:function(e,t,n){"use strict";function r(e,t,n){this.$children.forEach((function(i){var o=i.$options.componentName;o===e?i.$emit.apply(i,[t].concat(n)):r.apply(i,[e,t].concat([n]))}))}t.__esModule=!0,t.default={methods:{dispatch:function(e,t,n){var r=this.$parent||this.$root,i=r.$options.componentName;while(r&&(!i||i!==e))r=r.$parent,r&&(i=r.$options.componentName);r&&r.$emit.apply(r,[t].concat(n))},broadcast:function(e,t,n){r.call(this,e,t,n)}}}},bc13:function(e,t,n){var r=n("e53d"),i=r.navigator;e.exports=i&&i.userAgent||""},bc54:function(e,t,n){n("7c4f")},bc95:function(e,t,n){e.exports=function(){"use strict";try{if(sessionStorage.setItem("foo","bar"),"bar"!==sessionStorage.getItem("foo"))throw 1;sessionStorage.removeItem("foo")}catch(i){var e=n("5082"),t=n("746a"),r=n("b875");return t.supported?t:r.supported?r:e}return sessionStorage}()},bcaa:function(e,t,n){var r=n("cb7c"),i=n("d3f4"),o=n("a5b8");e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e),a=n.resolve;return a(t),n.promise}},bd11:function(e,t){e.exports=r;var n=/\((?!\?)/g;function r(e,t,i){i=i||{},t=t||[];var o,a=i.strict,s=!1!==i.end,l=i.sensitive?"":"i",u=0,c=t.length,f=0,d=0;if(e instanceof RegExp){while(o=n.exec(e.source))t.push({name:d++,optional:!1,offset:o.index});return e}if(Array.isArray(e))return e=e.map((function(e){return r(e,t,i).source})),new RegExp("(?:"+e.join("|")+")",l);e=("^"+e+(a?"":"/"===e[e.length-1]?"?":"/?")).replace(/\/\(/g,"/(?:").replace(/([\/\.])/g,"\\$1").replace(/(\\\/)?(\\\.)?:(\w+)(\(.*?\))?(\*)?(\?)?/g,(function(e,n,r,i,o,a,s,l){n=n||"",r=r||"",o=o||"([^\\/"+r+"]+?)",s=s||"",t.push({name:i,optional:!!s,offset:l+u});var c=(s?"":n)+"(?:"+r+(s?n:"")+o+(a?"((?:[\\/"+r+"].+?)?)":"")+")"+s;return u+=c.length-e.length,c})).replace(/\*/g,(function(e,n){var r=t.length;while(r-- >c&&t[r].offset>n)t[r].offset+=3;return"(.*)"}));while(o=n.exec(e)){var h=0,p=o.index;while("\\"===e.charAt(--p))h++;h%2!==1&&((c+f===t.length||t[c+f].offset>o.index)&&t.splice(c+f,0,{name:d++,optional:!1,offset:o.index}),f++)}return e+=s?"$":"/"===e[e.length-1]?"":"(?=\\/|$)",new RegExp(e,l)}},bd7a:function(e,t,n){"use strict";var r=n("5622"),i=n("9068"),o=n("2011"),a=n("ca08"),s=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),l=function(e){function t(n){var r=e.call(this,n)||this;return r.luminances=t.EMPTY,r.buckets=new Int32Array(t.LUMINANCE_BUCKETS),r}return s(t,e),t.prototype.getBlackRow=function(e,n){var r=this.getLuminanceSource(),o=r.getWidth();void 0===n||null===n||n.getSize()<o?n=new i["a"](o):n.clear(),this.initArrays(o);for(var a=r.getRow(e,this.luminances),s=this.buckets,l=0;l<o;l++)s[(255&a[l])>>t.LUMINANCE_SHIFT]++;var u=t.estimateBlackPoint(s);if(o<3)for(l=0;l<o;l++)(255&a[l])<u&&n.set(l);else{var c=255&a[0],f=255&a[1];for(l=1;l<o-1;l++){var d=255&a[l+1];(4*f-c-d)/2<u&&n.set(l),c=f,f=d}}return n},t.prototype.getBlackMatrix=function(){var e=this.getLuminanceSource(),n=e.getWidth(),r=e.getHeight(),i=new o["a"](n,r);this.initArrays(n);for(var a=this.buckets,s=1;s<5;s++)for(var l=Math.floor(r*s/5),u=e.getRow(l,this.luminances),c=Math.floor(4*n/5),f=Math.floor(n/5);f<c;f++){var d=255&u[f];a[d>>t.LUMINANCE_SHIFT]++}var h=t.estimateBlackPoint(a),p=e.getMatrix();for(s=0;s<r;s++){var m=s*n;for(f=0;f<n;f++){d=255&p[m+f];d<h&&i.set(f,s)}}return i},t.prototype.createBinarizer=function(e){return new t(e)},t.prototype.initArrays=function(e){this.luminances.length<e&&(this.luminances=new Uint8ClampedArray(e));for(var n=this.buckets,r=0;r<t.LUMINANCE_BUCKETS;r++)n[r]=0},t.estimateBlackPoint=function(e){for(var n=e.length,r=0,i=0,o=0,s=0;s<n;s++)e[s]>o&&(i=s,o=e[s]),e[s]>r&&(r=e[s]);var l=0,u=0;for(s=0;s<n;s++){var c=s-i,f=e[s]*c*c;f>u&&(l=s,u=f)}if(i>l){var d=i;i=l,l=d}if(l-i<=n/16)throw new a["a"];var h=l-1,p=-1;for(s=l-1;s>i;s--){var m=s-i;f=m*m*(l-s)*(r-e[s]);f>p&&(h=s,p=f)}return h<<t.LUMINANCE_SHIFT},t.LUMINANCE_BITS=5,t.LUMINANCE_SHIFT=8-t.LUMINANCE_BITS,t.LUMINANCE_BUCKETS=1<<t.LUMINANCE_BITS,t.EMPTY=Uint8ClampedArray.from([0]),t}(r["a"]);t["a"]=l},be13:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},be139:function(e,t,n){"use strict";var r=n("a363"),i=n("fe96"),o=n("7978"),a=n("ca08"),s=n("2f50"),l=n("8c95"),u=n("6530"),c=n("63af"),f=n("0b81"),d=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),h=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.narrowLineWidth=-1,t}return d(t,e),t.prototype.decodeRow=function(e,n,a){var c,f,d=this.decodeStart(n),p=this.decodeEnd(n),m=new u["a"];t.decodeMiddle(n,d[1],p[0],m);var g=m.toString(),v=null;null!=a&&(v=a.get(i["a"].ALLOWED_LENGTHS)),null==v&&(v=t.DEFAULT_ALLOWED_LENGTHS);var b=g.length,y=!1,w=0;try{for(var _=h(v),C=_.next();!C.done;C=_.next()){var x=C.value;if(b===x){y=!0;break}x>w&&(w=x)}}catch(D){c={error:D}}finally{try{C&&!C.done&&(f=_.return)&&f.call(_)}finally{if(c)throw c.error}}if(!y&&b>w&&(y=!0),!y)throw new o["a"];var S=[new l["a"](d[1],e),new l["a"](p[0],e)],k=new s["a"](g,null,0,S,r["a"].ITF,(new Date).getTime());return k},t.decodeMiddle=function(e,n,r,i){var o=new Int32Array(10),a=new Int32Array(5),s=new Int32Array(5);o.fill(0),a.fill(0),s.fill(0);while(n<r){f["a"].recordPattern(e,n,o);for(var l=0;l<5;l++){var u=2*l;a[l]=o[u],s[l]=o[u+1]}var c=t.decodeDigit(a);i.append(c.toString()),c=this.decodeDigit(s),i.append(c.toString()),o.forEach((function(e){n+=e}))}},t.prototype.decodeStart=function(e){var n=t.skipWhiteSpace(e),r=t.findGuardPattern(e,n,t.START_PATTERN);return this.narrowLineWidth=(r[1]-r[0])/4,this.validateQuietZone(e,r[0]),r},t.prototype.validateQuietZone=function(e,t){var n=10*this.narrowLineWidth;n=n<t?n:t;for(var r=t-1;n>0&&r>=0;r--){if(e.get(r))break;n--}if(0!==n)throw new a["a"]},t.skipWhiteSpace=function(e){var t=e.getSize(),n=e.getNextSet(0);if(n===t)throw new a["a"];return n},t.prototype.decodeEnd=function(e){e.reverse();try{var n=t.skipWhiteSpace(e),r=void 0;try{r=t.findGuardPattern(e,n,t.END_PATTERN_REVERSED[0])}catch(o){o instanceof a["a"]&&(r=t.findGuardPattern(e,n,t.END_PATTERN_REVERSED[1]))}this.validateQuietZone(e,r[0]);var i=r[0];return r[0]=e.getSize()-r[1],r[1]=e.getSize()-i,r}finally{e.reverse()}},t.findGuardPattern=function(e,n,r){var i=r.length,o=new Int32Array(i),s=e.getSize(),l=!1,u=0,d=n;o.fill(0);for(var h=n;h<s;h++)if(e.get(h)!==l)o[u]++;else{if(u===i-1){if(f["a"].patternMatchVariance(o,r,t.MAX_INDIVIDUAL_VARIANCE)<t.MAX_AVG_VARIANCE)return[d,h];d+=o[0]+o[1],c["a"].arraycopy(o,2,o,0,u-1),o[u-1]=0,o[u]=0,u--}else u++;o[u]=1,l=!l}throw new a["a"]},t.decodeDigit=function(e){for(var n=t.MAX_AVG_VARIANCE,r=-1,i=t.PATTERNS.length,o=0;o<i;o++){var s=t.PATTERNS[o],l=f["a"].patternMatchVariance(e,s,t.MAX_INDIVIDUAL_VARIANCE);l<n?(n=l,r=o):l===n&&(r=-1)}if(r>=0)return r%10;throw new a["a"]},t.PATTERNS=[Int32Array.from([1,1,2,2,1]),Int32Array.from([2,1,1,1,2]),Int32Array.from([1,2,1,1,2]),Int32Array.from([2,2,1,1,1]),Int32Array.from([1,1,2,1,2]),Int32Array.from([2,1,2,1,1]),Int32Array.from([1,2,2,1,1]),Int32Array.from([1,1,1,2,2]),Int32Array.from([2,1,1,2,1]),Int32Array.from([1,2,1,2,1]),Int32Array.from([1,1,3,3,1]),Int32Array.from([3,1,1,1,3]),Int32Array.from([1,3,1,1,3]),Int32Array.from([3,3,1,1,1]),Int32Array.from([1,1,3,1,3]),Int32Array.from([3,1,3,1,1]),Int32Array.from([1,3,3,1,1]),Int32Array.from([1,1,1,3,3]),Int32Array.from([3,1,1,3,1]),Int32Array.from([1,3,1,3,1])],t.MAX_AVG_VARIANCE=.38,t.MAX_INDIVIDUAL_VARIANCE=.5,t.DEFAULT_ALLOWED_LENGTHS=[6,8,10,12,14],t.START_PATTERN=Int32Array.from([1,1,1,1]),t.END_PATTERN_REVERSED=[Int32Array.from([1,1,2]),Int32Array.from([1,1,3])],t}(f["a"]);t["a"]=p},be40:function(e,t,n){"use strict";var r=n("2ec9"),i=function(){function e(){}return e.setGridSampler=function(t){e.gridSampler=t},e.getInstance=function(){return e.gridSampler},e.gridSampler=new r["a"],e}();t["a"]=i},be7f:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.util.VK"),n=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},r=function(e){return function(t){return n(t)===e}},i=function(e){return function(t){return typeof t===e}},o=function(e){return function(t){return e===t}},a=r("string"),s=r("array"),l=o(null),u=i("boolean"),c=i("function"),f=function(){},d=function(e){return function(){return e}},h=function(e){return e},p=function(e,t){return e===t},m=d(!1),g=d(!0),v=function(){return b},b=function(){var e=function(e){return e()},t=h,n={fold:function(e,t){return e()},isSome:m,isNone:g,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:d(null),getOrUndefined:d(void 0),or:t,orThunk:e,map:v,each:f,bind:v,exists:m,forall:g,filter:function(){return v()},toArray:function(){return[]},toString:d("none()")};return n}(),y=function(e){var t=d(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},isSome:g,isNone:m,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return y(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:b},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return i},w=function(e){return null===e||void 0===e?b:y(e)},_={some:y,none:v,from:w},C=Array.prototype.indexOf,x=Array.prototype.push,S=function(e,t){return C.call(e,t)},k=function(e,t){return S(e,t)>-1},D=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r},O=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];t(i,n)}},T=function(e,t,n){return O(e,(function(e,r){n=t(n,e,r)})),n},E=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!s(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);x.apply(t,e[n])}return t},I=function(e,t){return E(D(e,t))},N=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return _.none()},A=function(e,t,n){return void 0===n&&(n=p),e.exists((function(e){return n(e,t)}))},P=function(e){for(var t=[],n=function(e){t.push(e)},r=0;r<e.length;r++)e[r].each(n);return t},M=function(e,t){return e?_.some(t):_.none()},R=function(e){var t=e.getParam("link_assume_external_targets",!1);return u(t)&&t?1:!a(t)||"http"!==t&&"https"!==t?0:t},F=function(e){return e.getParam("link_context_toolbar",!1,"boolean")},B=function(e){return e.getParam("link_list")},L=function(e){return e.getParam("default_link_target")},$=function(e){return e.getParam("target_list",!0)},V=function(e){return e.getParam("rel_list",[],"array")},j=function(e){return e.getParam("link_class_list",[],"array")},z=function(e){return e.getParam("link_title",!0,"boolean")},H=function(e){return e.getParam("allow_unsafe_link_target",!1,"boolean")},U=function(e){return e.getParam("link_quicklink",!1,"boolean")},W=function(e){return e.getParam("link_default_protocol","http","string")},q=tinymce.util.Tools.resolve("tinymce.util.Tools"),G=function(e){return a(e.value)?e.value:""},Y=function(e){return a(e.text)?e.text:a(e.title)?e.title:""},K=function(e,t){var n=[];return q.each(e,(function(e){var r=Y(e);if(void 0!==e.menu){var i=K(e.menu,t);n.push({text:r,items:i})}else{var o=t(e);n.push({text:r,value:o})}})),n},X=function(e){return void 0===e&&(e=G),function(t){return _.from(t).map((function(t){return K(t,e)}))}},J=function(e){return X(G)(e)},Z=function(e,t){return function(n){return{name:e,type:"listbox",label:t,items:n}}},Q={sanitize:J,sanitizeWith:X,createUi:Z,getValue:G},ee=function(){return ee=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ee.apply(this,arguments)},te=Object.keys,ne=Object.hasOwnProperty,re=function(e,t){for(var n=te(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];t(a,o)}},ie=function(e){return function(t,n){e[n]=t}},oe=function(e,t,n,r){var i={};return re(e,(function(e,i){(t(e,i)?n:r)(e,i)})),i},ae=function(e,t){var n={};return oe(e,t,ie(n),f),n},se=function(e,t){return ne.call(e,t)},le=function(e,t){return se(e,t)&&void 0!==e[t]&&null!==e[t]},ue=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),ce=tinymce.util.Tools.resolve("tinymce.util.URI"),fe=function(e){return e&&"a"===e.nodeName.toLowerCase()},de=function(e){return fe(e)&&!!me(e)},he=function(e,t){if(e.collapsed)return[];var n=e.cloneContents(),r=new ue(n.firstChild,n),i=[],o=n.firstChild;do{t(o)&&i.push(o)}while(o=r.next());return i},pe=function(e){return/^\w+:/i.test(e)},me=function(e){var t=e.getAttribute("data-mce-href");return t||e.getAttribute("href")},ge=function(e,t){var n=["noopener"],r=e?e.split(/\s+/):[],i=function(e){return q.trim(e.sort().join(" "))},o=function(e){return e=a(e),e.length>0?e.concat(n):n},a=function(e){return e.filter((function(e){return-1===q.inArray(n,e)}))},s=t?o(r):a(r);return s.length>0?i(s):""},ve=function(e){return e.replace(/\uFEFF/g,"")},be=function(e,t){return t=t||e.selection.getNode(),xe(t)?e.dom.select("a[href]",t)[0]:e.dom.getParent(t,"a[href]")},ye=function(e,t){var n=t?t.innerText||t.textContent:e.getContent({format:"text"});return ve(n)},we=function(e){return q.grep(e,de).length>0},_e=function(e){return he(e,de).length>0},Ce=function(e){var t=e.schema.getTextInlineElements(),n=function(e){return 1===e.nodeType&&!fe(e)&&!se(t,e.nodeName.toLowerCase())},r=he(e.selection.getRng(),n);return 0===r.length},xe=function(e){return e&&"FIGURE"===e.nodeName&&/\bimage\b/i.test(e.className)},Se=function(e){var t=["title","rel","class","target"];return T(t,(function(t,n){return e[n].each((function(e){t[n]=e.length>0?e:null})),t}),{href:e.href})},ke=function(e,t){return"http"!==t&&"https"!==t||pe(e)?e:t+"://"+e},De=function(e,t){var n=ee({},t);if(!(V(e).length>0)&&!1===H(e)){var r=ge(n.rel,"_blank"===n.target);n.rel=r||null}return _.from(n.target).isNone()&&!1===$(e)&&(n.target=L(e)),n.href=ke(n.href,R(e)),n},Oe=function(e,t,n,r){n.each((function(e){se(t,"innerText")?t.innerText=e:t.textContent=e})),e.dom.setAttribs(t,r),e.selection.select(t)},Te=function(e,t,n,r){xe(t)?Be(e,t,r):n.fold((function(){e.execCommand("mceInsertLink",!1,r)}),(function(t){e.insertContent(e.dom.createHTML("a",r,e.dom.encode(t)))}))},Ee=function(e,t,n){var r=e.selection.getNode(),i=be(e,r),o=De(e,Se(n));e.undoManager.transact((function(){n.href===t.href&&t.attach(),i?(e.focus(),Oe(e,i,n.text,o)):Te(e,r,n.text,o)}))},Ie=function(e){var t=e.dom,n=e.selection,r=n.getBookmark(),i=n.getRng().cloneRange(),o=t.getParent(i.startContainer,"a[href]",e.getBody()),a=t.getParent(i.endContainer,"a[href]",e.getBody());o&&i.setStartBefore(o),a&&i.setEndAfter(a),n.setRng(i),e.execCommand("unlink"),n.moveToBookmark(r)},Ne=function(e){e.undoManager.transact((function(){var t=e.selection.getNode();xe(t)?Fe(e,t):Ie(e),e.focus()}))},Ae=function(e){var t=e.class,n=e.href,r=e.rel,i=e.target,o=e.text,a=e.title;return ae({class:t.getOrNull(),href:n,rel:r.getOrNull(),target:i.getOrNull(),text:o.getOrNull(),title:a.getOrNull()},(function(e,t){return!1===l(e)}))},Pe=function(e,t){var n=t.href;return ee(ee({},t),{href:ce.isDomSafe(n,"a",e.settings)?n:""})},Me=function(e,t,n){var r=Pe(e,n);e.hasPlugin("rtc",!0)?e.execCommand("createlink",!1,Ae(r)):Ee(e,t,r)},Re=function(e){e.hasPlugin("rtc",!0)?e.execCommand("unlink"):Ne(e)},Fe=function(e,t){var n=e.dom.select("img",t)[0];if(n){var r=e.dom.getParents(n,"a[href]",t)[0];r&&(r.parentNode.insertBefore(n,r),e.dom.remove(r))}},Be=function(e,t,n){var r=e.dom.select("img",t)[0];if(r){var i=e.dom.create("a",n);r.parentNode.insertBefore(i,r),i.appendChild(r)}},Le=function(e){return le(e,"items")},$e=function(e,t){return N(t,(function(t){return Le(t)?$e(e,t.items):M(t.value===e,t)}))},Ve=function(e,t,n,r){var i=r[t],o=e.length>0;return void 0!==i?$e(i,n).map((function(t){return{url:{value:t.value,meta:{text:o?e:t.text,attach:f}},text:o?e:t.text}})):_.none()},je=function(e,t){return"link"===t?e.link:"anchor"===t?e.anchor:_.none()},ze=function(e,t){var n={text:e.text,title:e.title},r=function(e){return M(n.title.length<=0,_.from(e.meta.title).getOr(""))},i=function(e){return M(n.text.length<=0,_.from(e.meta.text).getOr(e.value))},o=function(e){var t=i(e.url),n=r(e.url);return t.isSome()||n.isSome()?_.some(ee(ee({},t.map((function(e){return{text:e}})).getOr({})),n.map((function(e){return{title:e}})).getOr({}))):_.none()},a=function(e,r){var i=je(t,r.name).getOr([]);return Ve(n.text,r.name,i,e)},s=function(e,t){var r=t.name;return"url"===r?o(e()):k(["anchor","link"],r)?a(e(),t):"text"===r||"title"===r?(n[r]=e()[r],_.none()):_.none()};return{onChange:s}},He={init:ze,getDelta:Ve},Ue=tinymce.util.Tools.resolve("tinymce.util.Delay"),We=tinymce.util.Tools.resolve("tinymce.util.Promise"),qe=function(e,t,n){var r=e.selection.getRng();Ue.setEditorTimeout(e,(function(){e.windowManager.confirm(t,(function(t){e.selection.setRng(r),n(t)}))}))},Ge=function(e){var t=e.href,n=t.indexOf("@")>0&&-1===t.indexOf("/")&&-1===t.indexOf("mailto:");return n?_.some({message:"The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?",preprocess:function(e){return ee(ee({},e),{href:"mailto:"+t})}}):_.none()},Ye=function(e,t){return function(n){var r=n.href,i=1===e&&!pe(r)||0===e&&/^\s*www(\.|\d\.)/i.test(r);return i?_.some({message:"The URL you entered seems to be an external link. Do you want to add the required "+t+":// prefix?",preprocess:function(e){return ee(ee({},e),{href:t+"://"+r})}}):_.none()}},Ke=function(e,t){return N([Ge,Ye(R(e),W(e))],(function(e){return e(t)})).fold((function(){return We.resolve(t)}),(function(n){return new We((function(r){qe(e,n.message,(function(e){r(e?n.preprocess(t):t)}))}))}))},Xe={preprocess:Ke},Je=function(e){var t=e.dom.select("a:not([href])"),n=I(t,(function(e){var t=e.name||e.id;return t?[{text:t,value:"#"+t}]:[]}));return n.length>0?_.some([{text:"None",value:""}].concat(n)):_.none()},Ze={getAnchors:Je},Qe=function(e){var t=j(e);return t.length>0?Q.sanitize(t):_.none()},et={getClasses:Qe},tt=tinymce.util.Tools.resolve("tinymce.util.XHR"),nt=function(e){try{return _.some(JSON.parse(e))}catch(t){return _.none()}},rt=function(e){var t=function(t){return e.convertURL(t.value||t.url,"href")},n=B(e);return new We((function(e){a(n)?tt.send({url:n,success:function(t){return e(nt(t))},error:function(t){return e(_.none())}}):c(n)?n((function(t){return e(_.some(t))})):e(_.from(n))})).then((function(e){return e.bind(Q.sanitizeWith(t)).map((function(e){if(e.length>0){var t=[{text:"None",value:""}];return t.concat(e)}return e}))}))},it={getLinks:rt},ot=function(e,t){var n=V(e);if(n.length>0){var r=A(t,"_blank"),i=!1===H(e),o=function(e){return ge(Q.getValue(e),r)},a=i?Q.sanitizeWith(o):Q.sanitize;return a(n)}return _.none()},at={getRels:ot},st=[{text:"Current window",value:""},{text:"New window",value:"_blank"}],lt=function(e){var t=$(e);return s(t)?Q.sanitize(t).orThunk((function(){return _.some(st)})):!1===t?_.none():_.some(st)},ut={getTargets:lt},ct=function(e,t,n){var r=e.getAttrib(t,n);return null!==r&&r.length>0?_.some(r):_.none()},ft=function(e,t){var n=e.dom,r=Ce(e),i=r?_.some(ye(e.selection,t)):_.none(),o=t?_.some(n.getAttrib(t,"href")):_.none(),a=t?_.from(n.getAttrib(t,"target")):_.none(),s=ct(n,t,"rel"),l=ct(n,t,"class"),u=ct(n,t,"title");return{url:o,text:i,title:u,target:a,rel:s,linkClass:l}},dt=function(e,t){return it.getLinks(e).then((function(n){var r=ft(e,t);return{anchor:r,catalogs:{targets:ut.getTargets(e),rels:at.getRels(e,r.target),classes:et.getClasses(e),anchor:Ze.getAnchors(e),link:n},optNode:_.from(t),flags:{titleEnabled:z(e)}}}))},ht={collect:dt},pt=function(e,t){return function(n){var r=n.getData();if(!r.url.value)return Re(e),void n.close();var i=function(e){return _.from(r[e]).filter((function(n){return!A(t.anchor[e],n)}))},o={href:r.url.value,text:i("text"),target:i("target"),rel:i("rel"),class:i("linkClass"),title:i("title")},a={href:r.url.value,attach:void 0!==r.url.meta&&r.url.meta.attach?r.url.meta.attach:f};Xe.preprocess(e,o).then((function(t){Me(e,a,t)})),n.close()}},mt=function(e){var t=be(e);return ht.collect(e,t)},gt=function(e,t){var n=e.anchor,r=n.url.getOr("");return{url:{value:r,meta:{original:{value:r}}},text:n.text.getOr(""),title:n.title.getOr(""),anchor:r,link:r,rel:n.rel.getOr(""),target:n.target.or(t).getOr(""),linkClass:n.linkClass.getOr("")}},vt=function(e,t,n){var r=[{name:"url",type:"urlinput",filetype:"file",label:"URL"}],i=e.anchor.text.map((function(){return{name:"text",type:"input",label:"Text to display"}})).toArray(),o=e.flags.titleEnabled?[{name:"title",type:"input",label:"Title"}]:[],a=_.from(L(n)),s=gt(e,a),l=e.catalogs,u=He.init(s,l),c={type:"panel",items:E([r,i,o,P([l.anchor.map(Q.createUi("anchor","Anchors")),l.rels.map(Q.createUi("rel","Rel")),l.targets.map(Q.createUi("target","Open link in...")),l.link.map(Q.createUi("link","Link list")),l.classes.map(Q.createUi("linkClass","Class"))])])};return{title:"Insert/Edit Link",size:"normal",body:c,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:s,onChange:function(e,t){var n=t.name;u.onChange(e.getData,{name:n}).each((function(t){e.setData(t)}))},onSubmit:t}},bt=function(e){var t=mt(e);t.then((function(t){var n=pt(e,t);return vt(t,n,e)})).then((function(t){e.windowManager.open(t)}))},yt=function(e,t){document.body.appendChild(e),e.dispatchEvent(t),document.body.removeChild(e)},wt=function(e){var t=document.createElement("a");t.target="_blank",t.href=e,t.rel="noreferrer noopener";var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),yt(t,n)},_t=function(e,t){return e.dom.getParent(t,"a[href]")},Ct=function(e){return _t(e,e.selection.getStart())},xt=function(e){return!0===e.altKey&&!1===e.shiftKey&&!1===e.ctrlKey&&!1===e.metaKey},St=function(e,t){if(t){var n=me(t);if(/^#/.test(n)){var r=e.$(n);r.length&&e.selection.scrollIntoView(r[0],!0)}else wt(t.href)}},kt=function(e){return function(){bt(e)}},Dt=function(e){return function(){St(e,Ct(e))}},Ot=function(e){e.on("click",(function(n){var r=_t(e,n.target);r&&t.metaKeyPressed(n)&&(n.preventDefault(),St(e,r))})),e.on("keydown",(function(t){var n=Ct(e);n&&13===t.keyCode&&xt(t)&&(t.preventDefault(),St(e,n))}))},Tt=function(e,t){return e.on("NodeChange",t),function(){return e.off("NodeChange",t)}},Et=function(e){return function(t){var n=function(){return t.setActive(!e.mode.isReadOnly()&&null!==be(e,e.selection.getNode()))};return n(),Tt(e,n)}},It=function(e){return function(t){var n=function(){return t.setDisabled(null===be(e,e.selection.getNode()))};return n(),Tt(e,n)}},Nt=function(e){return function(t){var n=function(t){return we(t)||_e(e.selection.getRng())},r=e.dom.getParents(e.selection.getStart());return t.setDisabled(!n(r)),Tt(e,(function(e){return t.setDisabled(!n(e.parents))}))}},At=function(e){e.addCommand("mceLink",(function(){U(e)?e.fire("contexttoolbar-show",{toolbarKey:"quicklink"}):kt(e)()}))},Pt=function(e){e.addShortcut("Meta+K","",(function(){e.execCommand("mceLink")}))},Mt=function(e){e.ui.registry.addToggleButton("link",{icon:"link",tooltip:"Insert/edit link",onAction:kt(e),onSetup:Et(e)}),e.ui.registry.addButton("openlink",{icon:"new-tab",tooltip:"Open link",onAction:Dt(e),onSetup:It(e)}),e.ui.registry.addButton("unlink",{icon:"unlink",tooltip:"Remove link",onAction:function(){return Re(e)},onSetup:Nt(e)})},Rt=function(e){e.ui.registry.addMenuItem("openlink",{text:"Open link",icon:"new-tab",onAction:Dt(e),onSetup:It(e)}),e.ui.registry.addMenuItem("link",{icon:"link",text:"Link...",shortcut:"Meta+K",onAction:kt(e)}),e.ui.registry.addMenuItem("unlink",{icon:"unlink",text:"Remove link",onAction:function(){return Re(e)},onSetup:Nt(e)})},Ft=function(e){var t="link unlink openlink",n="link";e.ui.registry.addContextMenu("link",{update:function(r){return we(e.dom.getParents(r,"a"))?t:n}})},Bt=function(e){var t=function(e){e.selection.collapse(!1)},n=function(t){var n=e.selection.getNode();return t.setDisabled(!be(e,n)),f},r=function(t){var n=be(e),r=Ce(e);if(!n&&r){var i=ye(e.selection,n);return _.some(i.length>0?i:t)}return _.none()};e.ui.registry.addContextForm("quicklink",{launch:{type:"contextformtogglebutton",icon:"link",tooltip:"Link",onSetup:Et(e)},label:"Link",predicate:function(t){return!!be(e,t)&&F(e)},initValue:function(){var t=be(e);return t?me(t):""},commands:[{type:"contextformtogglebutton",icon:"link",tooltip:"Link",primary:!0,onSetup:function(t){var n=e.selection.getNode();return t.setActive(!!be(e,n)),Et(e)(t)},onAction:function(n){var i=n.getValue(),o=r(i),a={href:i,attach:f};Me(e,a,{href:i,text:o,title:_.none(),rel:_.none(),target:_.none(),class:_.none()}),t(e),n.hide()}},{type:"contextformbutton",icon:"unlink",tooltip:"Remove link",onSetup:n,onAction:function(t){Re(e),t.hide()}},{type:"contextformbutton",icon:"new-tab",tooltip:"Open link",onSetup:n,onAction:function(t){Dt(e)(),t.hide()}}]})};function Lt(){e.add("link",(function(e){Mt(e),Rt(e),Ft(e),Bt(e),Ot(e),At(e),Pt(e)}))}Lt()})()},bee2:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("a38e");function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Object(r["a"])(i.key),i)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},bf0b:function(e,t,n){var r=n("355d"),i=n("aebd"),o=n("36c3"),a=n("1bc3"),s=n("07e3"),l=n("794b"),u=Object.getOwnPropertyDescriptor;t.f=n("8e60")?u:function(e,t){if(e=o(e),t=a(t,!0),l)try{return u(e,t)}catch(n){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},bf32:function(e,t,n){"use strict";t.__esModule=!0,t.isEmpty=t.isEqual=t.arrayEquals=t.looseEqual=t.capitalize=t.kebabCase=t.autoprefixer=t.isFirefox=t.isEdge=t.isIE=t.coerceTruthyValueToArray=t.arrayFind=t.arrayFindIndex=t.escapeRegexpString=t.valueEquals=t.generateId=t.getValueByPath=void 0;var r=n("1907"),i=d(r),o=n("8034"),a=d(o),s=n("1098"),l=d(s);t.noop=p,t.hasOwn=m,t.toObject=v,t.getPropByPath=b,t.rafThrottle=x,t.objToArray=S;var u=n("8bbf"),c=d(u),f=n("11bf");function d(e){return e&&e.__esModule?e:{default:e}}var h=Object.prototype.hasOwnProperty;function p(){}function m(e,t){return h.call(e,t)}function g(e,t){for(var n in t)e[n]=t[n];return e}function v(e){for(var t={},n=0;n<e.length;n++)e[n]&&g(t,e[n]);return t}t.getValueByPath=function(e,t){t=t||"";for(var n=t.split("."),r=e,i=null,o=0,a=n.length;o<a;o++){var s=n[o];if(!r)break;if(o===a-1){i=r[s];break}r=r[s]}return i};function b(e,t,n){var r=e;t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,"");for(var i=t.split("."),o=0,a=i.length;o<a-1;++o){if(!r&&!n)break;var s=i[o];if(!(s in r)){if(n)throw new Error("please transfer a valid prop path to form item!");break}r=r[s]}return{o:r,k:i[o],v:r?r[i[o]]:null}}t.generateId=function(){return Math.floor(1e4*Math.random())},t.valueEquals=function(e,t){if(e===t)return!0;if(!(e instanceof Array))return!1;if(!(t instanceof Array))return!1;if(e.length!==t.length)return!1;for(var n=0;n!==e.length;++n)if(e[n]!==t[n])return!1;return!0},t.escapeRegexpString=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return String(e).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")};var y=t.arrayFindIndex=function(e,t){for(var n=0;n!==e.length;++n)if(t(e[n]))return n;return-1},w=(t.arrayFind=function(e,t){var n=y(e,t);return-1!==n?e[n]:void 0},t.coerceTruthyValueToArray=function(e){return Array.isArray(e)?e:e?[e]:[]},t.isIE=function(){return!c.default.prototype.$isServer&&!isNaN(Number(document.documentMode))},t.isEdge=function(){return!c.default.prototype.$isServer&&navigator.userAgent.indexOf("Edge")>-1},t.isFirefox=function(){return!c.default.prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)},t.autoprefixer=function(e){if("object"!==("undefined"===typeof e?"undefined":(0,l.default)(e)))return e;var t=["transform","transition","animation"],n=["ms-","webkit-"];return t.forEach((function(t){var r=e[t];t&&r&&n.forEach((function(n){e[n+t]=r}))})),e},t.kebabCase=function(e){var t=/([^-])([A-Z])/g;return e.replace(t,"$1-$2").replace(t,"$1-$2").toLowerCase()},t.capitalize=function(e){return(0,f.isString)(e)?e.charAt(0).toUpperCase()+e.slice(1):e},t.looseEqual=function(e,t){var n=(0,f.isObject)(e),r=(0,f.isObject)(t);return n&&r?(0,a.default)(e)===(0,a.default)(t):!n&&!r&&String(e)===String(t)}),_=t.arrayEquals=function(e,t){if(e=e||[],t=t||[],e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!w(e[n],t[n]))return!1;return!0},C=(t.isEqual=function(e,t){return Array.isArray(e)&&Array.isArray(t)?_(e,t):w(e,t)},t.isEmpty=function(e){if(null==e)return!0;if("boolean"===typeof e)return!1;if("number"===typeof e)return!e;if(e instanceof Error)return""===e.message;switch(Object.prototype.toString.call(e)){case"[object String]":case"[object Array]":return!e.length;case"[object File]":case"[object Map]":case"[object Set]":return!e.size;case"[object Object]":return!(0,i.default)(e).length}return!1});function x(e){var t=!1;return function(){for(var n=this,r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];t||(t=!0,window.requestAnimationFrame((function(){e.apply(n,i),t=!1})))}}function S(e){return Array.isArray(e)?e:C(e)?[]:[e]}},bf6a:function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;function i(e){return decodeURIComponent(e.replace(/\+/g," "))}function o(e){for(var t,n=/([^=?&]+)=?([^&]*)/g,r={};t=n.exec(e);r[i(t[1])]=i(t[2]));return r}function a(e,t){t=t||"";var n=[];for(var i in"string"!==typeof t&&(t="?"),e)r.call(e,i)&&n.push(encodeURIComponent(i)+"="+encodeURIComponent(e[i]));return n.length?t+n.join("&"):""}t.stringify=a,t.parse=o},bf90:function(e,t,n){var r=n("36c3"),i=n("bf0b").f;n("ce7e")("getOwnPropertyDescriptor",(function(){return function(e,t){return i(r(e),t)}}))},c098:function(e,t,n){e.exports=n("d4af")},c207:function(e,t){},c26b:function(e,t,n){"use strict";var r=n("86cc").f,i=n("2aeb"),o=n("dcbc"),a=n("9b43"),s=n("f605"),l=n("4a59"),u=n("01f9"),c=n("d53b"),f=n("7a56"),d=n("9e1e"),h=n("67ab").fastKey,p=n("b39a"),m=d?"_s":"size",g=function(e,t){var n,r=h(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,u){var c=e((function(e,r){s(e,c,t,"_i"),e._t=t,e._i=i(null),e._f=void 0,e._l=void 0,e[m]=0,void 0!=r&&l(r,n,e[u],e)}));return o(c.prototype,{clear:function(){for(var e=p(this,t),n=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];e._f=e._l=void 0,e[m]=0},delete:function(e){var n=p(this,t),r=g(n,e);if(r){var i=r.n,o=r.p;delete n._i[r.i],r.r=!0,o&&(o.n=i),i&&(i.p=o),n._f==r&&(n._f=i),n._l==r&&(n._l=o),n[m]--}return!!r},forEach:function(e){p(this,t);var n,r=a(e,arguments.length>1?arguments[1]:void 0,3);while(n=n?n.n:this._f){r(n.v,n.k,this);while(n&&n.r)n=n.p}},has:function(e){return!!g(p(this,t),e)}}),d&&r(c.prototype,"size",{get:function(){return p(this,t)[m]}}),c},def:function(e,t,n){var r,i,o=g(e,t);return o?o.v=n:(e._l=o={i:i=h(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=o),r&&(r.n=o),e[m]++,"F"!==i&&(e._i[i]=o)),e},getEntry:g,setStrong:function(e,t,n){u(e,t,(function(e,n){this._t=p(e,t),this._k=n,this._l=void 0}),(function(){var e=this,t=e._k,n=e._l;while(n&&n.r)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?c(0,"keys"==t?n.k:"values"==t?n.v:[n.k,n.v]):(e._t=void 0,c(1))}),n?"entries":"values",!n,!0),f(t)}}},c366:function(e,t,n){var r=n("6821"),i=n("9def"),o=n("77f1");e.exports=function(e){return function(t,n,a){var s,l=r(t),u=i(l.length),c=o(a,u);if(e&&n!=n){while(u>c)if(s=l[c++],s!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}}},c367:function(e,t,n){"use strict";var r=n("8436"),i=n("50ed"),o=n("481b"),a=n("36c3");e.exports=n("30f1")(Array,"Array",(function(e,t){this._t=a(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,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},c3a1:function(e,t,n){var r=n("e6f3"),i=n("1691");e.exports=Object.keys||function(e){return r(e,i)}},c3bf:function(e,t,n){"use strict";n("9ed7")},c4a9:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=function(){return"undefined"!==typeof window?window:e},i=function(){var e=r();return e&&e.tinymce?e.tinymce:null}}).call(this,n("c8ba"))},c559:function(e,t,n){"use strict";n.d(t,"e",(function(){return c})),n.d(t,"b",(function(){return f})),n.d(t,"c",(function(){return d})),n.d(t,"d",(function(){return h})),n.d(t,"a",(function(){return m}));n("ac6a"),n("6b54"),n("551c"),n("28a5");var r=n("bc95"),i=n.n(r),o=n("8bbf"),a=n.n(o),s=n("5f87");function l(e){if(void 0===a.a.prototype.projectModel||"developing.model"!==a.a.prototype.projectModel){var t=u(location.href);if(i.a.setItem("relativeUrl",t),t&&e){var n="",r=e.split("/");if(r.length>=3){var o=r[0]+"//"+r[2];n=e.substring(e.indexOf(o)+o.length)}return t.lastIndexOf("/")===t.length-1&&(t=t.substring(0,t.lastIndexOf("/"))),n?t+n:t}}return e}function u(e){var t=e.split("#");if(t.length>0){var n=t[0],r=n,i=n.split("/");return i.length>=3&&(r=i[0]+"//"+i[2]+"/"),r}}function c(){var e=a.a.prototype.showMenuRoute;return void 0===e&&(e="false"),"true"===e}function f(e){return a.a.prototype.projectModel&&"developing.model"===a.a.prototype.projectModel&&a.a.prototype.frontUrl?a.a.prototype.frontUrl:l(e)}function d(e){return!(!e||"iMatrix"!==e&&"portal"!==e&&"mms"!==e&&"task"!==e&&"wf"!==e&&"dc"!==e&&"mc"!==e&&"mobile"!==e&&"acs"!==e&&"bs"!==e&&"pcm"!==e)}function h(e){return e&&"[object Promise]"===Object.prototype.toString.call(e)}function p(){return Object(s["a"])()}function m(e){var t,n=p();if(n){var r=JSON.parse(n);t=r[e]}return t||(t="zh_CN"),t}},c5a0:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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="/dist/",n(n.s=93)}({1:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var l,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},2:function(e,t){e.exports=n("f321")},3:function(e,t){e.exports=n("bf32")},6:function(e,t){e.exports=n("1e6c")},7:function(e,t){e.exports=n("8bbf")},93:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",[n("transition",{attrs:{name:e.transition},on:{"after-enter":e.handleAfterEnter,"after-leave":e.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.disabled&&e.showPopper,expression:"!disabled && showPopper"}],ref:"popper",staticClass:"el-popover el-popper",class:[e.popperClass,e.content&&"el-popover--plain"],style:{width:e.width+"px"},attrs:{role:"tooltip",id:e.tooltipId,"aria-hidden":e.disabled||!e.showPopper?"true":"false"}},[e.title?n("div",{staticClass:"el-popover__title",domProps:{textContent:e._s(e.title)}}):e._e(),e._t("default",[e._v(e._s(e.content))])],2)]),n("span",{ref:"wrapper",staticClass:"el-popover__reference-wrapper"},[e._t("reference")],2)],1)};r._withStripped=!0;var i=n(6),o=n.n(i),a=n(2),s=n(3),l={name:"ElPopover",mixins:[o.a],props:{trigger:{type:String,default:"click",validator:function(e){return["click","focus","hover","manual"].indexOf(e)>-1}},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:200},title:String,disabled:Boolean,content:String,reference:{},popperClass:String,width:{},visibleArrow:{default:!0},arrowOffset:{type:Number,default:0},transition:{type:String,default:"fade-in-linear"},tabindex:{type:Number,default:0}},computed:{tooltipId:function(){return"el-popover-"+Object(s.generateId)()}},watch:{showPopper:function(e){this.disabled||(e?this.$emit("show"):this.$emit("hide"))},trigger:function(e,t){this.updateInited(e,t)}},mounted:function(){this.inited()},beforeDestroy:function(){this.cleanup()},deactivated:function(){this.cleanup()},methods:{inited:function(){var e=this.referenceElm=this.reference||this.$refs.reference,t=this.popper||this.$refs.popper;!e&&this.$refs.wrapper.children&&(e=this.referenceElm=this.$refs.wrapper.children[0]),e&&(Object(a.addClass)(e,"el-popover__reference"),e.setAttribute("aria-describedby",this.tooltipId),e.setAttribute("tabindex",this.tabindex),t.setAttribute("tabindex",0),"click"!==this.trigger&&(Object(a.on)(e,"focusin",this.handleFocus_instance),Object(a.on)(t,"focusin",this.handleFocus),Object(a.on)(e,"focusout",this.handleBlur),Object(a.on)(t,"focusout",this.handleBlur)),Object(a.on)(e,"keydown",this.handleKeydown),Object(a.on)(e,"click",this.handleClick)),"click"===this.trigger?(Object(a.on)(e,"click",this.doToggle),Object(a.on)(document,"click",this.handleDocumentClick)):"hover"===this.trigger?(Object(a.on)(e,"mouseenter",this.handleMouseEnter),Object(a.on)(t,"mouseenter",this.handleMouseEnter),Object(a.on)(e,"mouseleave",this.handleMouseLeave),Object(a.on)(t,"mouseleave",this.handleMouseLeave)):"focus"===this.trigger&&(this.tabindex,e.querySelector("input, textarea")?(Object(a.on)(e,"focusin",this.doShow),Object(a.on)(e,"focusout",this.doClose)):(Object(a.on)(e,"mousedown",this.doShow),Object(a.on)(e,"mouseup",this.doClose)))},updateInited:function(){var e=this,t=this.$refs.reference,n=this.$refs.popper;!t&&this.$refs.wrapper.children&&(t=this.referenceElm=this.$refs.wrapper.children[0]),Object(a.off)(t,"click",this.doToggle),Object(a.off)(t,"focusin",this.doShow),Object(a.off)(t,"focusout",this.doClose),Object(a.off)(t,"mousedown",this.doShow),Object(a.off)(t,"mouseup",this.doClose),Object(a.off)(t,"mouseleave",this.handleMouseLeave),Object(a.off)(t,"mouseenter",this.handleMouseEnter),Object(a.off)(document,"click",this.handleDocumentClick),Object(a.off)(n,"focusin",this.handleFocus),Object(a.off)(t,"focusout",this.handleBlur),Object(a.off)(n,"focusout",this.handleBlur),Object(a.off)(t,"focusin",this.handleFocus_instance),this.$nextTick((function(){e.inited()}))},handleFocus_instance:function(e){this.handleFocus();var t=e.__vue__;t&&"function"==typeof t.focus&&t.focus()},doToggle:function(){this.showPopper=!this.showPopper},doShow:function(){this.showPopper=!0},doClose:function(){this.showPopper=!1},handleFocus:function(){Object(a.addClass)(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!0)},handleClick:function(){Object(a.removeClass)(this.referenceElm,"focusing")},handleBlur:function(){Object(a.removeClass)(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!1)},handleMouseEnter:function(){var e=this;clearTimeout(this._timer),this.openDelay?this._timer=setTimeout((function(){e.showPopper=!0}),this.openDelay):this.showPopper=!0},handleKeydown:function(e){27===e.keyCode&&"manual"!==this.trigger&&this.doClose()},handleMouseLeave:function(){var e=this;clearTimeout(this._timer),this.closeDelay?this._timer=setTimeout((function(){e.showPopper=!1}),this.closeDelay):this.showPopper=!1},handleDocumentClick:function(e){var t=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!t&&this.$refs.wrapper.children&&(t=this.referenceElm=this.$refs.wrapper.children[0]),this.$el&&t&&!this.$el.contains(e.target)&&!t.contains(e.target)&&n&&!n.contains(e.target)&&(this.showPopper=!1)},handleAfterEnter:function(){this.$emit("after-enter")},handleAfterLeave:function(){this.$emit("after-leave"),this.doDestroy()},cleanup:function(){(this.openDelay||this.closeDelay)&&clearTimeout(this._timer)}},destroyed:function(){var e=this.reference;Object(a.off)(e,"click",this.doToggle),Object(a.off)(e,"mouseup",this.doClose),Object(a.off)(e,"mousedown",this.doShow),Object(a.off)(e,"focusin",this.doShow),Object(a.off)(e,"focusout",this.doClose),Object(a.off)(e,"mousedown",this.doShow),Object(a.off)(e,"mouseup",this.doClose),Object(a.off)(e,"mouseleave",this.handleMouseLeave),Object(a.off)(e,"mouseenter",this.handleMouseEnter),Object(a.off)(document,"click",this.handleDocumentClick)}},u=n(1),c=Object(u.a)(l,r,[],!1,null,null,null);c.options.__file="packages/popover/src/main.vue";var f=c.exports,d=function(e,t,n){var r=t.expression?t.value:t.arg,i=n.context.$refs[r];i&&(Array.isArray(i)?i[0].$refs.reference=e:i.$refs.reference=e)},h={bind:function(e,t,n){d(e,t,n)},inserted:function(e,t,n){d(e,t,n)}},p=n(7);n.n(p).a.directive("popover",h),f.install=function(e){e.directive("popover",h),e.component(f.name,f)},f.directive=h,t.default=f}})},c5f6:function(e,t,n){"use strict";var r=n("7726"),i=n("69a8"),o=n("2d95"),a=n("5dbc"),s=n("6a99"),l=n("79e5"),u=n("9093").f,c=n("11e9").f,f=n("86cc").f,d=n("aa77").trim,h="Number",p=r[h],m=p,g=p.prototype,v=o(n("2aeb")(g))==h,b="trim"in String.prototype,y=function(e){var t=s(e,!1);if("string"==typeof t&&t.length>2){t=b?t.trim():d(t,3);var n,r,i,o=t.charCodeAt(0);if(43===o||45===o){if(n=t.charCodeAt(2),88===n||120===n)return NaN}else if(48===o){switch(t.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+t}for(var a,l=t.slice(2),u=0,c=l.length;u<c;u++)if(a=l.charCodeAt(u),a<48||a>i)return NaN;return parseInt(l,r)}}return+t};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof p&&(v?l((function(){g.valueOf.call(n)})):o(n)!=h)?a(new m(y(t)),n,p):y(t)};for(var w,_=n("9e1e")?u(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),C=0;_.length>C;C++)i(m,w=_[C])&&!i(p,w)&&f(p,w,c(m,w));p.prototype=g,g.constructor=p,n("2aba")(r,h,p)}},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;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},ca00:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"e",(function(){return getI18n})),__webpack_require__.d(__webpack_exports__,"f",(function(){return getLanguageWithLocale})),__webpack_require__.d(__webpack_exports__,"a",(function(){return analysisCondition})),__webpack_require__.d(__webpack_exports__,"i",(function(){return getPropValue})),__webpack_require__.d(__webpack_exports__,"b",(function(){return analysisValue})),__webpack_require__.d(__webpack_exports__,"k",(function(){return setEntityFieldValue})),__webpack_require__.d(__webpack_exports__,"d",(function(){return getEntityFieldValueWithOutCase})),__webpack_require__.d(__webpack_exports__,"c",(function(){return getEntityFieldValue})),__webpack_require__.d(__webpack_exports__,"g",(function(){return getParentObjectUtil})),__webpack_require__.d(__webpack_exports__,"h",(function(){return getPropNameWhenJoinTable})),__webpack_require__.d(__webpack_exports__,"j",(function(){return isImage}));var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("7f7f"),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("cadf"),core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("456d"),core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es7_array_includes__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("6762"),core_js_modules_es7_array_includes__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es7_array_includes__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es6_string_includes__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("2fdb"),core_js_modules_es6_string_includes__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es6_string_includes__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_es6_string_starts_with__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("f559"),core_js_modules_es6_string_starts_with__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_es6_string_starts_with__WEBPACK_IMPORTED_MODULE_5__),core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("28a5"),core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_6__),core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("a481"),core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_7__),D_MyToolbox_ws_idea_agile_builder_oppo_agile_builder_platform_fe_dev2_dw_iMatrix_UI_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("53ca"),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("ac6a"),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_9__),core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("551c"),core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_10__),_i18n_i18n__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("0692"),vue__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("8bbf"),vue__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_12__),_calculator_calculator_util__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("7da6"),_common_util__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("c559");function getI18n(){return window.$locale?_i18n_i18n__WEBPACK_IMPORTED_MODULE_11__["a"].locale=window.$locale:_i18n_i18n__WEBPACK_IMPORTED_MODULE_11__["a"].locale="cn",_i18n_i18n__WEBPACK_IMPORTED_MODULE_11__["a"]}function getLanguageWithLocale(){var e=window.$locale;return e&&"zh"!==e||(e="cn"),Object(_common_util__WEBPACK_IMPORTED_MODULE_14__["a"])(e)}function findOptionsByDynamicDataSource(e,t,n,r,i){return new Promise((function(o,a){findDynamicDataSourceByCode(e,t,n,r,i).then((function(e){var t=[];if(e&&e.options){var n,r=e.options;e.valueAttribute&&(n=e.valueAttribute),n&&"[label]"!==n||(n="_label_"),r.forEach((function(e){var r=e[n],i=e["_label_"];t.push({label:i,value:r})}))}t||(t=[]),o(t)})).catch((function(e){a(e)}))}))}function findDynamicDataSourceByCode(e,t,n,r,i){var o,a,s,l,u;i&&(o=i.watchAttrValue,void 0!==o&&null!==o||(o=""),a=i.parent,s=i._listCode,l=i._formCode,u=i._tableName);var c={searchText:t,watchAttrValue:o,parent:a};r&&"object"===Object(D_MyToolbox_ws_idea_agile_builder_oppo_agile_builder_platform_fe_dev2_dw_iMatrix_UI_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_8__["a"])(r)?c.additionalParamMap=r:r&&"string"===typeof r&&(c.additionalParamMap=JSON.parse(r)),void 0===c.additionalParamMap&&(c.additionalParamMap={}),s&&(c.additionalParamMap._listCode=s),l&&(c.additionalParamMap._formCode=l),u&&(c.additionalParamMap._tableName=u),n&&null!==n&&(c.entity=n);var f=vue__WEBPACK_IMPORTED_MODULE_12___default.a.prototype.baseURL;return new Promise((function(t,n){void 0!==vue__WEBPACK_IMPORTED_MODULE_12___default.a.prototype.systemCode&&"iMatrix"===vue__WEBPACK_IMPORTED_MODULE_12___default.a.prototype.systemCode?t():vue__WEBPACK_IMPORTED_MODULE_12___default.a.prototype.$http.post(f+"/common/dynamic-data-source/"+e,c).then((function(r){r.backendUrl?vue__WEBPACK_IMPORTED_MODULE_12___default.a.prototype.$http.post(r.backendUrl+"/common/dynamic-data-source/"+e,c).then((function(e){t(e)})).catch((function(e){n(e)})):t(r)})).catch((function(e){n(e)}))}))}function analysisCondition(e,t,n,r,i,o,a){if(void 0===e||""===e||null===e)return!0;"undefined"!==typeof i&&null!==i||(i=!1);var s={};n&&"string"===typeof n&&""!==n?s=JSON.parse(n):n&&"object"===Object(D_MyToolbox_ws_idea_agile_builder_oppo_agile_builder_platform_fe_dev2_dw_iMatrix_UI_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_8__["a"])(n)&&(s=n);var l={};r&&"string"===typeof r&&""!==r?l=JSON.parse(r):r&&"object"===Object(D_MyToolbox_ws_idea_agile_builder_oppo_agile_builder_platform_fe_dev2_dw_iMatrix_UI_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_8__["a"])(r)&&(l=r);var u=[];return e&&"string"===typeof e&&""!==e?u=JSON.parse(e):e&&Array.isArray(e)&&(u=e),parseCondition(t,u,i,o,s,l,a)}function parseCondition(entity,conditionList,isSql,tableName,additionalParamMap,contextParameterMap,parentFormData){if(void 0===conditionList||null===conditionList||0===conditionList.length)return!0;for(var conditions="",i=0;i<conditionList.length;i++){var condition=conditionList[i],propName=condition.propName,propDbName=condition.propDbName;if(propName&&""!==propName||propDbName&&""!==propDbName){var leftValue=void 0;if(isSql&&propDbName){if(-1!==propDbName.indexOf("parent_+_")){propDbName=propDbName.replace("parent_+_","");var propDbNameArr=propDbName.split("_+_");propDbName=propDbNameArr[1],leftValue=getValue(parentFormData,propDbName,isSql)}else leftValue=getValue(entity,propDbName,isSql);if((void 0===leftValue||null===leftValue)&&tableName&&propDbName.toLowerCase().startsWith(tableName.toLowerCase()+".")){var myProp=propDbName.substring(propDbName.indexOf("."));leftValue=getValue(entity,myProp,isSql)}}else{if(-1!==propName.indexOf("parent_+_")){propName=propName.replace("parent_+_","");var propNameArr=propName.split("_+_");propName=propNameArr[1],leftValue=getValue(parentFormData,propName,isSql)}else leftValue=getValue(entity,propName,isSql);!propDbName||void 0!==leftValue&&null!==leftValue||(leftValue=getValue(entity,propDbName,isSql))}var operator=condition.operator,propValue=condition.propValue,dataType=condition.dataType,variableIsNullStr=condition.variableIsNull,value=getPropValue(propValue,entity,additionalParamMap,contextParameterMap);variableIsNullStr&&"null"===variableIsNullStr&&(void 0!==value&&""!==value||(value=null));var conditionResult=Object(_calculator_calculator_util__WEBPACK_IMPORTED_MODULE_13__["a"])(leftValue,operator,value,dataType),leftBracket=condition.leftBracket,rightBracket=condition.rightBracket,joinSign=condition.joinSign;if(leftBracket&&null!==leftBracket&&""!==leftBracket&&(conditions+=leftBracket,conditions+=" "),variableIsNullStr&&"null"!==variableIsNullStr&&(void 0!==value&&null!==value&&value+""!==""||(conditionResult="1=1"===variableIsNullStr)),conditions+=conditionResult+" ",rightBracket&&null!==rightBracket&&""!==rightBracket&&(conditions+=rightBracket,conditions+=" "),i<conditionList.length-1&&joinSign&&null!==joinSign&&""!==joinSign){var joinSignIgnoreCase=joinSign.toLowerCase();"and"===joinSignIgnoreCase?joinSign=joinSignIgnoreCase.replace("and","&&"):"or"===joinSignIgnoreCase&&(joinSign=joinSignIgnoreCase.replace("or","||")),conditions+=joinSign+" "}}}return!conditions||eval("("+conditions+")")}var REPLACE_DOT="__";function getValue(e,t,n){var r=null;return e&&null!==e&&t&&null!==t&&(r=getValueByField(e,t),void 0!==r&&null!==r||n&&(void 0!==r&&null!=r||t.indexOf(".")>0&&(t=t.replace(".",REPLACE_DOT),r=getValueByField(e,t)))),r}function getValueByField(e,t){var n;if(e&&null!==e)return n=t.indexOf(".")>0?getSubEntityValue(e,t):e[t],n}function getSubEntityValue(e,t){for(var n=null,r=e,i=t.split("\\."),o=0;o<i.length;o++){var a=i[o];o===i.length?n=getSubEntityFieldValue(r,a):r=getSubEntityFieldValue(r,a)}return n}function getSubEntityFieldValue(e,t){return void 0===e||null===e?null:e[t]}function getContextValue(e,t){if(e)return e[t]}function getPropValue(e,t,n,r,i,o,a){var s=null;if(e&&null!==e&&""!==e)if("null"===e)s=null;else if(e.includes("${context.")||e.includes("${request.")||e.includes("${obj.")){if(e.includes("${context."))e=e.replace("${context.","").replace("}",""),s=getContextValue(r,e);else if(e.includes("${request.")&&"${request.term}"!==e)e=e.replace("${request.","").replace("}",""),s=n&&null!=n&&Object.keys(n).indexOf(e)>=0&&n[e]&&null!==n[e]?n[e]:null;else if(e.includes("${obj."))if(void 0===t||null==t)s=null;else{var l=e.replace("${obj.","").replace("}","");s=getEntityFieldValue(t,l)}}else if(e.includes("${parent."))if(void 0===i||null==i)s=null;else{var u=e.replace("${parent.","").replace("}","");s=getEntityFieldValue(i,u)}else if(e.includes("${task."))if(void 0===a||null==a)s=null;else{var c=e.replace("${task.","").replace("}","");s=getEntityFieldValue(a,c)}else if(e.includes("${subObj."))if(void 0===o||null==o)s=null;else{var f=e.replace("${subObj.","").replace("}","");s=getEntityFieldValue(o,f)}else s=e.includes("${input.")?e.replace("${input.","").replace("}",""):e;return s}function analysisValue(e,t,n,r){if(e){var i="",o=e.split("-#-#");return null!=o&&o.length>0&&o.forEach((function(e){var o=getPropValue(e,t,n,r);o&&null!==o||(o=""),i+=o})),i}}function setEntityFieldValue(e,t,n){if(t&&e)if(t&&t.indexOf(".")>0){var r=getParentObjectUtil(t,e);if(r){var i=t.substring(t.lastIndexOf(".")+1);void 0===r[i]?vue__WEBPACK_IMPORTED_MODULE_12___default.a.set(r,t.substring(t.lastIndexOf(".")+1),n):r[i]=n}}else void 0===e[t]?vue__WEBPACK_IMPORTED_MODULE_12___default.a.set(e,t,n):e[t]=n}function getEntityFieldValueWithOutCase(e,t){if(t&&t.indexOf(".")>0){var n=getParentObjectUtil(t,e),r=t.substring(t.lastIndexOf(".")+1);return n[r]}return e[t]}function getEntityFieldValue(e,t,n){var r=getEntityFieldValueWithCase(e,t);return void 0===r&&(r=getEntityFieldValueWithCase(e,t.toLowerCase())),void 0===r&&void 0===n&&(r=getEntityFieldValueWithCase(e,t.toUpperCase())),r}function getEntityFieldValueWithCase(e,t){if(t&&t.indexOf(".")>0){var n=getParentObjectUtil(t,e),r=t.substring(t.lastIndexOf(".")+1);return n[r]}return e[t]}function getParentObjectUtil(e,t){var n=e.split(".");if(1===n.length)return t;for(var r,i=0;i<n.length-1;i++)r=getParentModelProp(n[i],0===i?t:r);return r}function getParentModelProp(e,t){var n=getParentModelPropWithCase(e,t);return void 0===n&&(n=getParentModelPropWithCase(e.toLowerCase(),t)),void 0===n&&(n=getParentModelPropWithCase(e.toUpperCase(),t)),n}function getParentModelPropWithCase(e,t){return t||(t={}),t[e]||(t[e]={}),t[e]}function findSystemInfoByCode(e){return new Promise((function(t,n){e||(e=vue__WEBPACK_IMPORTED_MODULE_12___default.a.prototype.systemCode),vue__WEBPACK_IMPORTED_MODULE_12___default.a.prototype.$http.get(vue__WEBPACK_IMPORTED_MODULE_12___default.a.prototype.baseAPI+"/component/business-systems/"+e).then((function(n){t(n?{zh_CN:n.name,en_US:n.enName,frontendUrl:n.frontendUrl}:"系统:"+e+"不存在")})).catch((function(e){n(e)}))}))}function getPropNameWhenJoinTable(e,t,n){if(e&&void 0!==t&&!0===t){var r="__";e.indexOf(".")>0?e=e.replace(".",r):n&&null!==n&&""!==n&&e.indexOf(n+r)<0&&(e=n+r+e)}return e}function isImage(e){return!!/\.(jpg|JPG|jpeg|JPEG|png|PNG|gif|GIF|bmp|BMP|psd|PSD|tif|TIF)$/.test(e)}},ca08:function(e,t,n){"use strict";var r=n("d0b6"),i=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.getNotFoundInstance=function(){return new t},t.kind="NotFoundException",t}(r["a"]);t["a"]=o},ca57:function(e,t,n){},ca5a:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},cadf:function(e,t,n){"use strict";var r=n("9c6c"),i=n("d53b"),o=n("84f2"),a=n("6821");e.exports=n("01f9")(Array,"Array",(function(e,t){this._t=a(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,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},cb12:function(e,t,n){"use strict";var r=n("63af"),i=n("f0a7"),o=n("9dcc"),a=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=function(e){function t(t,n){void 0===t&&(t=void 0),void 0===n&&(n=void 0);var r=e.call(this,n)||this;return r.index=t,r.message=n,r}return a(t,e),t.kind="ArrayIndexOutOfBoundsException",t}(o["a"]),l=s,u=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},c=function(){function e(){}return e.fill=function(e,t){for(var n=0,r=e.length;n<r;n++)e[n]=t},e.fillWithin=function(t,n,r,i){e.rangeCheck(t.length,n,r);for(var o=n;o<r;o++)t[o]=i},e.rangeCheck=function(e,t,n){if(t>n)throw new i["a"]("fromIndex("+t+") > toIndex("+n+")");if(t<0)throw new l(t);if(n>e)throw new l(n)},e.asList=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e},e.create=function(e,t,n){var r=Array.from({length:e});return r.map((function(e){return Array.from({length:t}).fill(n)}))},e.createInt32Array=function(e,t,n){var r=Array.from({length:e});return r.map((function(e){return Int32Array.from({length:t}).fill(n)}))},e.equals=function(e,t){if(!e)return!1;if(!t)return!1;if(!e.length)return!1;if(!t.length)return!1;if(e.length!==t.length)return!1;for(var n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0},e.hashCode=function(e){var t,n;if(null===e)return 0;var r=1;try{for(var i=u(e),o=i.next();!o.done;o=i.next()){var a=o.value;r=31*r+a}}catch(s){t={error:s}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},e.fillUint8Array=function(e,t){for(var n=0;n!==e.length;n++)e[n]=t},e.copyOf=function(e,t){return e.slice(0,t)},e.copyOfUint8Array=function(e,t){if(e.length<=t){var n=new Uint8Array(t);return n.set(e),n}return e.slice(0,t)},e.copyOfRange=function(e,t,n){var i=n-t,o=new Int32Array(i);return r["a"].arraycopy(e,t,o,0,i),o},e.binarySearch=function(t,n,r){void 0===r&&(r=e.numberComparator);var i=0,o=t.length-1;while(i<=o){var a=o+i>>1,s=r(n,t[a]);if(s>0)i=a+1;else{if(!(s<0))return a;o=a-1}}return-i-1},e.numberComparator=function(e,t){return e-t},e}();t["a"]=c},cb76:function(e,t,n){"use strict";n("e34f")},cb7c:function(e,t,n){var r=n("d3f4");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},ccb9:function(e,t,n){t.f=n("5168")},cd1c:function(e,t,n){var r=n("e853");e.exports=function(e,t){return new(r(e))(t)}},cd78:function(e,t,n){var r=n("e4ae"),i=n("f772"),o=n("656e");e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e),a=n.resolve;return a(t),n.promise}},cda1:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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="/dist/",n(n.s=107)}({1:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var l,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},107:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-checkbox",class:[e.checkboxSize?"el-checkbox--"+e.checkboxSize:"",{"is-disabled":e.isDisabled},{"is-bordered":e.border},{"is-checked":e.isChecked}],attrs:{id:e.id}},[n("span",{staticClass:"el-checkbox__input",class:{"is-disabled":e.isDisabled,"is-checked":e.isChecked,"is-indeterminate":e.indeterminate,"is-focus":e.focus},attrs:{tabindex:!!e.indeterminate&&0,role:!!e.indeterminate&&"checkbox","aria-checked":!!e.indeterminate&&"mixed"}},[n("span",{staticClass:"el-checkbox__inner"}),e.trueLabel||e.falseLabel?n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":e.indeterminate?"true":"false",name:e.name,disabled:e.isDisabled,"true-value":e.trueLabel,"false-value":e.falseLabel},domProps:{checked:Array.isArray(e.model)?e._i(e.model,null)>-1:e._q(e.model,e.trueLabel)},on:{change:[function(t){var n=e.model,r=t.target,i=r.checked?e.trueLabel:e.falseLabel;if(Array.isArray(n)){var o=e._i(n,null);r.checked?o<0&&(e.model=n.concat([null])):o>-1&&(e.model=n.slice(0,o).concat(n.slice(o+1)))}else e.model=i},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":e.indeterminate?"true":"false",disabled:e.isDisabled,name:e.name},domProps:{value:e.label,checked:Array.isArray(e.model)?e._i(e.model,e.label)>-1:e.model},on:{change:[function(t){var n=e.model,r=t.target,i=!!r.checked;if(Array.isArray(n)){var o=e.label,a=e._i(n,o);r.checked?a<0&&(e.model=n.concat([o])):a>-1&&(e.model=n.slice(0,a).concat(n.slice(a+1)))}else e.model=i},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}})]),e.$slots.default||e.label?n("span",{staticClass:"el-checkbox__label"},[e._t("default"),e.$slots.default?e._e():[e._v(e._s(e.label))]],2):e._e()])};r._withStripped=!0;var i=n(4),o={name:"ElCheckbox",mixins:[n.n(i).a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElCheckbox",data:function(){return{selfModel:!1,focus:!1,isLimitExceeded:!1}},computed:{model:{get:function(){return this.isGroup?this.store:void 0!==this.value?this.value:this.selfModel},set:function(e){this.isGroup?(this.isLimitExceeded=!1,void 0!==this._checkboxGroup.min&&e.length<this._checkboxGroup.min&&(this.isLimitExceeded=!0),void 0!==this._checkboxGroup.max&&e.length>this._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch("ElCheckboxGroup","input",[e])):(this.$emit("input",e),this.selfModel=e)}},isChecked:function(){return"[object Boolean]"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?this.model.indexOf(this.label)>-1:null!==this.model&&void 0!==this.model&&this.model===this.trueLabel},isGroup:function(){for(var e=this.$parent;e;){if("ElCheckboxGroup"===e.$options.componentName)return this._checkboxGroup=e,!0;e=e.$parent}return!1},store:function(){return this._checkboxGroup?this._checkboxGroup.value:this.value},isLimitDisabled:function(){var e=this._checkboxGroup,t=e.max,n=e.min;return!(!t&&!n)&&this.model.length>=t&&!this.isChecked||this.model.length<=n&&this.isChecked},isDisabled:function(){return this.isGroup?this._checkboxGroup.disabled||this.disabled||(this.elForm||{}).disabled||this.isLimitDisabled:this.disabled||(this.elForm||{}).disabled},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxSize:function(){var e=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._checkboxGroup.checkboxGroupSize||e}},props:{value:{},label:{},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number],id:String,controls:String,border:Boolean,size:String},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(e){var t=this;if(!this.isLimitExceeded){var n=void 0;n=e.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit("change",n,e),this.$nextTick((function(){t.isGroup&&t.dispatch("ElCheckboxGroup","change",[t._checkboxGroup.value])}))}}},created:function(){this.checked&&this.addToStore()},mounted:function(){this.indeterminate&&this.$el.setAttribute("aria-controls",this.controls)},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",e)}}},a=n(1),s=Object(a.a)(o,r,[],!1,null,null,null);s.options.__file="packages/checkbox/src/checkbox.vue";var l=s.exports;l.install=function(e){e.component(l.name,l)},t.default=l},4:function(e,t){e.exports=n("bbe4")}})},cdd9:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)},n=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},r=function(e){return function(t){return n(t)===e}},i=function(e){return function(t){return typeof t===e}},o=function(e){return function(t){return e===t}},a=r("string"),s=r("object"),l=r("array"),u=o(null),c=i("boolean"),f=function(e){return null===e||void 0===e},d=function(e){return!f(e)},h=i("function"),p=i("number"),m=function(){},g=function(e){return function(){return e}},v=function(e){return e},b=g(!1),y=g(!0),w=function(){return _},_=function(){var e=function(e){return e()},t=v,n={fold:function(e,t){return e()},isSome:b,isNone:y,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:g(null),getOrUndefined:g(void 0),or:t,orThunk:e,map:w,each:m,bind:w,exists:b,forall:y,filter:function(){return w()},toArray:function(){return[]},toString:g("none()")};return n}(),C=function(e){var t=g(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},isSome:y,isNone:b,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return C(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:_},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return i},x=function(e){return null===e||void 0===e?_:C(e)},S={some:C,none:w,from:x},k=Object.keys,D=Object.hasOwnProperty,O=function(e,t){for(var n=k(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];t(a,o)}},T=function(e){return function(t,n){e[n]=t}},E=function(e,t,n,r){var i={};return O(e,(function(e,i){(t(e,i)?n:r)(e,i)})),i},I=function(e,t){var n={};return E(e,t,T(n),m),n},N=function(e,t){return D.call(e,t)},A=function(e,t){return N(e,t)&&void 0!==e[t]&&null!==e[t]},P=Array.prototype.push,M=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!l(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);P.apply(t,e[n])}return t},R=function(e,t){return t>=0&&t<e.length?S.some(e[t]):S.none()},F=function(e){return R(e,0)},B=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return S.none()};"undefined"!==typeof window?window:Function("return this;")();var L=function(e,t,n){if(!(a(n)||c(n)||p(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},$=function(e,t,n){L(e.dom,t,n)},V=function(e,t){e.dom.removeAttribute(t)},j=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return U(r.childNodes[0])},z=function(e,t){var n=t||document,r=n.createElement(e);return U(r)},H=function(e,t){var n=t||document,r=n.createTextNode(e);return U(r)},U=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},W=function(e,t,n){return S.from(e.dom.elementFromPoint(t,n)).map(U)},q={fromHtml:j,fromTag:z,fromText:H,fromDom:U,fromPoint:W},G=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),Y=tinymce.util.Tools.resolve("tinymce.util.Promise"),K=tinymce.util.Tools.resolve("tinymce.util.URI"),X=tinymce.util.Tools.resolve("tinymce.util.XHR"),J=function(e){return e.getParam("image_dimensions",!0,"boolean")},Z=function(e){return e.getParam("image_advtab",!1,"boolean")},Q=function(e){return e.getParam("image_uploadtab",!0,"boolean")},ee=function(e){return e.getParam("image_prepend_url","","string")},te=function(e){return e.getParam("image_class_list")},ne=function(e){return e.getParam("image_description",!0,"boolean")},re=function(e){return e.getParam("image_title",!1,"boolean")},ie=function(e){return e.getParam("image_caption",!1,"boolean")},oe=function(e){return e.getParam("image_list",!1)},ae=function(e){return d(e.getParam("images_upload_url"))},se=function(e){return d(e.getParam("images_upload_handler"))},le=function(e){return e.getParam("a11y_advanced_options",!1,"boolean")},ue=function(e){return e.getParam("automatic_uploads",!0,"boolean")},ce=function(e,t){return Math.max(parseInt(e,10),parseInt(t,10))},fe=function(e){return new Y((function(t){var n=document.createElement("img"),r=function(e){n.onload=n.onerror=null,n.parentNode&&n.parentNode.removeChild(n),t(e)};n.onload=function(){var e=ce(n.width,n.clientWidth),t=ce(n.height,n.clientHeight),i={width:e,height:t};r(Y.resolve(i))},n.onerror=function(){r(Y.reject("Failed to get image dimensions for: "+e))};var i=n.style;i.visibility="hidden",i.position="fixed",i.bottom=i.left="0px",i.width=i.height="auto",document.body.appendChild(n),n.src=e}))},de=function(e){return e&&(e=e.replace(/px$/,"")),e},he=function(e){return e.length>0&&/^[0-9]+$/.test(e)&&(e+="px"),e},pe=function(e){if(e.margin){var t=String(e.margin).split(" ");switch(t.length){case 1:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[0],e["margin-bottom"]=e["margin-bottom"]||t[0],e["margin-left"]=e["margin-left"]||t[0];break;case 2:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[0],e["margin-left"]=e["margin-left"]||t[1];break;case 3:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[2],e["margin-left"]=e["margin-left"]||t[1];break;case 4:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[2],e["margin-left"]=e["margin-left"]||t[3]}delete e.margin}return e},me=function(e,t){var n=oe(e);a(n)?X.send({url:n,success:function(e){t(JSON.parse(e))}}):h(n)?n(t):t(n)},ge=function(e,t,n){var r=function(){n.onload=n.onerror=null,e.selection&&(e.selection.select(n),e.nodeChanged())};n.onload=function(){t.width||t.height||!J(e)||e.dom.setAttribs(n,{width:String(n.clientWidth),height:String(n.clientHeight)}),r()},n.onerror=r},ve=function(e){return new Y((function(t,n){var r=new FileReader;r.onload=function(){t(r.result)},r.onerror=function(){n(r.error.message)},r.readAsDataURL(e)}))},be=function(e){return"IMG"===e.nodeName&&(e.hasAttribute("data-mce-object")||e.hasAttribute("data-mce-placeholder"))},ye=function(e,t){return K.isDomSafe(t,"img",e.settings)},we=G.DOM,_e=function(e){return e.style.marginLeft&&e.style.marginRight&&e.style.marginLeft===e.style.marginRight?de(e.style.marginLeft):""},Ce=function(e){return e.style.marginTop&&e.style.marginBottom&&e.style.marginTop===e.style.marginBottom?de(e.style.marginTop):""},xe=function(e){return e.style.borderWidth?de(e.style.borderWidth):""},Se=function(e,t){return e.hasAttribute(t)?e.getAttribute(t):""},ke=function(e,t){return e.style[t]?e.style[t]:""},De=function(e){return null!==e.parentNode&&"FIGURE"===e.parentNode.nodeName},Oe=function(e,t,n){""===n?e.removeAttribute(t):e.setAttribute(t,n)},Te=function(e){var t=we.create("figure",{class:"image"});we.insertAfter(t,e),t.appendChild(e),t.appendChild(we.create("figcaption",{contentEditable:"true"},"Caption")),t.contentEditable="false"},Ee=function(e){var t=e.parentNode;we.insertAfter(e,t),we.remove(t)},Ie=function(e){De(e)?Ee(e):Te(e)},Ne=function(e,t){var n=e.getAttribute("style"),r=t(null!==n?n:"");r.length>0?(e.setAttribute("style",r),e.setAttribute("data-mce-style",r)):e.removeAttribute("style")},Ae=function(e,t){return function(e,n,r){e.style[n]?(e.style[n]=he(r),Ne(e,t)):Oe(e,n,r)}},Pe=function(e,t){return e.style[t]?de(e.style[t]):Se(e,t)},Me=function(e,t){var n=he(t);e.style.marginLeft=n,e.style.marginRight=n},Re=function(e,t){var n=he(t);e.style.marginTop=n,e.style.marginBottom=n},Fe=function(e,t){var n=he(t);e.style.borderWidth=n},Be=function(e,t){e.style.borderStyle=t},Le=function(e){return ke(e,"borderStyle")},$e=function(e){return"FIGURE"===e.nodeName},Ve=function(e){return"IMG"===e.nodeName},je=function(e){return 0===we.getAttrib(e,"alt").length&&"presentation"===we.getAttrib(e,"role")},ze=function(e){return je(e)?"":Se(e,"alt")},He=function(){return{src:"",alt:"",title:"",width:"",height:"",class:"",style:"",caption:!1,hspace:"",vspace:"",border:"",borderStyle:"",isDecorative:!1}},Ue=function(e,t){var n=document.createElement("img");return Oe(n,"style",t.style),(_e(n)||""!==t.hspace)&&Me(n,t.hspace),(Ce(n)||""!==t.vspace)&&Re(n,t.vspace),(xe(n)||""!==t.border)&&Fe(n,t.border),(Le(n)||""!==t.borderStyle)&&Be(n,t.borderStyle),e(n.getAttribute("style"))},We=function(e,n){var r=document.createElement("img");if(Je(e,t(t({},n),{caption:!1}),r),Ye(r,n.alt,n.isDecorative),n.caption){var i=we.create("figure",{class:"image"});return i.appendChild(r),i.appendChild(we.create("figcaption",{contentEditable:"true"},"Caption")),i.contentEditable="false",i}return r},qe=function(e,t){return{src:Se(t,"src"),alt:ze(t),title:Se(t,"title"),width:Pe(t,"width"),height:Pe(t,"height"),class:Se(t,"class"),style:e(Se(t,"style")),caption:De(t),hspace:_e(t),vspace:Ce(t),border:xe(t),borderStyle:ke(t,"borderStyle"),isDecorative:je(t)}},Ge=function(e,t,n,r,i){n[r]!==t[r]&&i(e,r,n[r])},Ye=function(e,t,n){if(n){we.setAttrib(e,"role","presentation");var r=q.fromDom(e);$(r,"alt","")}else{if(u(t)){r=q.fromDom(e);V(r,"alt")}else{r=q.fromDom(e);$(r,"alt",t)}"presentation"===we.getAttrib(e,"role")&&we.setAttrib(e,"role","")}},Ke=function(e,t,n){n.alt===t.alt&&n.isDecorative===t.isDecorative||Ye(e,n.alt,n.isDecorative)},Xe=function(e,t){return function(n,r,i){e(n,i),Ne(n,t)}},Je=function(e,t,n){var r=qe(e,n);Ge(n,r,t,"caption",(function(e,t,n){return Ie(e)})),Ge(n,r,t,"src",Oe),Ge(n,r,t,"title",Oe),Ge(n,r,t,"width",Ae("width",e)),Ge(n,r,t,"height",Ae("height",e)),Ge(n,r,t,"class",Oe),Ge(n,r,t,"style",Xe((function(e,t){return Oe(e,"style",t)}),e)),Ge(n,r,t,"hspace",Xe(Me,e)),Ge(n,r,t,"vspace",Xe(Re,e)),Ge(n,r,t,"border",Xe(Fe,e)),Ge(n,r,t,"borderStyle",Xe(Be,e)),Ke(n,r,t)},Ze=function(e,t){var n=e.dom.styles.parse(t),r=pe(n),i=e.dom.styles.parse(e.dom.styles.serialize(r));return e.dom.styles.serialize(i)},Qe=function(e){var t=e.selection.getNode(),n=e.dom.getParent(t,"figure.image");return n?e.dom.select("img",n)[0]:t&&("IMG"!==t.nodeName||be(t))?null:t},et=function(e,t){var n=e.dom,r=I(e.schema.getTextBlockElements(),(function(t,n){return!e.schema.isValidChild(n,"figure")})),i=n.getParent(t.parentNode,(function(e){return A(r,e.nodeName)}),e.getBody());return i?n.split(i,t):t},tt=function(e){var t=Qe(e);return t?qe((function(t){return Ze(e,t)}),t):He()},nt=function(e,t){var n=We((function(t){return Ze(e,t)}),t);e.dom.setAttrib(n,"data-mce-id","__mcenew"),e.focus(),e.selection.setContent(n.outerHTML);var r=e.dom.select('*[data-mce-id="__mcenew"]')[0];if(e.dom.setAttrib(r,"data-mce-id",null),$e(r)){var i=et(e,r);e.selection.select(i)}else e.selection.select(r)},rt=function(e,t){e.dom.setAttrib(t,"src",t.getAttribute("src"))},it=function(e,t){if(t){var n=e.dom.is(t.parentNode,"figure.image")?t.parentNode:t;e.dom.remove(n),e.focus(),e.nodeChanged(),e.dom.isEmpty(e.getBody())&&(e.setContent(""),e.selection.setCursorLocation())}},ot=function(e,t){var n=Qe(e);if(Je((function(t){return Ze(e,t)}),t,n),rt(e,n),$e(n.parentNode)){var r=n.parentNode;et(e,r),e.selection.select(n.parentNode)}else e.selection.select(n),ge(e,t,n)},at=function(e,n){var r=n.src;return t(t({},n),{src:ye(e,r)?r:""})},st=function(e,n){var r=Qe(e);if(r){var i=qe((function(t){return Ze(e,t)}),r),o=t(t({},i),n),a=at(e,o);o.src?ot(e,a):it(e,r)}else n.src&&nt(e,t(t({},He()),n))},lt=function(e,t){var n=s(e)&&s(t);return n?ct(e,t):t},ut=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(0===t.length)throw new Error("Can't merge zero objects");for(var r={},i=0;i<t.length;i++){var o=t[i];for(var a in o)N(o,a)&&(r[a]=e(r[a],o[a]))}return r}},ct=ut(lt),ft=function(e){return e.length>0},dt=tinymce.util.Tools.resolve("tinymce.util.ImageUploader"),ht=tinymce.util.Tools.resolve("tinymce.util.Tools"),pt=function(e){return a(e.value)?e.value:""},mt=function(e){return a(e.text)?e.text:a(e.title)?e.title:""},gt=function(e,t){var n=[];return ht.each(e,(function(e){var r=mt(e);if(void 0!==e.menu){var i=gt(e.menu,t);n.push({text:r,items:i})}else{var o=t(e);n.push({text:r,value:o})}})),n},vt=function(e){return void 0===e&&(e=pt),function(t){return t?S.from(t).map((function(t){return gt(t,e)})):S.none()}},bt=function(e){return vt(pt)(e)},yt=function(e){return N(e,"items")},wt=function(e,t){return B(e,(function(e){return yt(e)?wt(e.items,t):e.value===t?S.some(e):S.none()}))},_t=function(e,t){return e.bind((function(e){return wt(e,t)}))},Ct={sanitizer:vt,sanitize:bt,findEntry:_t},xt=function(e){return{title:"Advanced",name:"advanced",items:[{type:"input",label:"Style",name:"style"},{type:"grid",columns:2,items:[{type:"input",label:"Vertical space",name:"vspace",inputMode:"numeric"},{type:"input",label:"Horizontal space",name:"hspace",inputMode:"numeric"},{type:"input",label:"Border width",name:"border",inputMode:"numeric"},{type:"listbox",name:"borderstyle",label:"Border style",items:[{text:"Select...",value:""},{text:"Solid",value:"solid"},{text:"Dotted",value:"dotted"},{text:"Dashed",value:"dashed"},{text:"Double",value:"double"},{text:"Groove",value:"groove"},{text:"Ridge",value:"ridge"},{text:"Inset",value:"inset"},{text:"Outset",value:"outset"},{text:"None",value:"none"},{text:"Hidden",value:"hidden"}]}]}]}},St={makeTab:xt},kt=function(e){var t=Ct.sanitizer((function(t){return e.convertURL(t.value||t.url,"src")})),n=new Y((function(n){me(e,(function(e){n(t(e).map((function(e){return M([[{text:"None",value:""}],e])})))}))})),r=Ct.sanitize(te(e)),i=Z(e),o=Q(e),s=ae(e),l=se(e),u=tt(e),c=ne(e),f=re(e),d=J(e),h=ie(e),p=le(e),m=ue(e),g=S.some(ee(e)).filter((function(e){return a(e)&&e.length>0}));return n.then((function(e){return{image:u,imageList:e,classList:r,hasAdvTab:i,hasUploadTab:o,hasUploadUrl:s,hasUploadHandler:l,hasDescription:c,hasImageTitle:f,hasDimensions:d,hasImageCaption:h,prependURL:g,hasAccessibilityOptions:p,automaticUploads:m}}))},Dt=function(e){var n={name:"src",type:"urlinput",filetype:"image",label:"Source"},r=e.imageList.map((function(e){return{name:"images",type:"listbox",label:"Image list",items:e}})),i={name:"alt",type:"input",label:"Alternative description",disabled:e.hasAccessibilityOptions&&e.image.isDecorative},o={name:"title",type:"input",label:"Image title"},a={name:"dimensions",type:"sizeinput"},s={type:"label",label:"Accessibility",items:[{name:"isDecorative",type:"checkbox",label:"Image is decorative"}]},l=e.classList.map((function(e){return{name:"classes",type:"listbox",label:"Class",items:e}})),u={type:"label",label:"Caption",items:[{type:"checkbox",name:"caption",label:"Show caption"}]},c=function(e){return e?{type:"grid",columns:2}:{type:"panel"}};return M([[n],r.toArray(),e.hasAccessibilityOptions&&e.hasDescription?[s]:[],e.hasDescription?[i]:[],e.hasImageTitle?[o]:[],e.hasDimensions?[a]:[],[t(t({},c(e.classList.isSome()&&e.hasImageCaption)),{items:M([l.toArray(),e.hasImageCaption?[u]:[]])})]])},Ot=function(e){return{title:"General",name:"general",items:Dt(e)}},Tt={makeTab:Ot,makeItems:Dt},Et=function(e){var t=[{type:"dropzone",name:"fileinput"}];return{title:"Upload",name:"upload",items:t}},It={makeTab:Et},Nt=function(e){return{prevImage:Ct.findEntry(e.imageList,e.image.src),prevAlt:e.image.alt,open:!0}},At=function(e){return{src:{value:e.src,meta:{}},images:e.src,alt:e.alt,title:e.title,dimensions:{width:e.width,height:e.height},classes:e.class,caption:e.caption,style:e.style,vspace:e.vspace,border:e.border,hspace:e.hspace,borderstyle:e.borderStyle,fileinput:[],isDecorative:e.isDecorative}},Pt=function(e,t){return{src:e.src.value,alt:0===e.alt.length&&t?null:e.alt,title:e.title,width:e.dimensions.width,height:e.dimensions.height,class:e.classes,style:e.style,caption:e.caption,hspace:e.hspace,vspace:e.vspace,border:e.border,borderStyle:e.borderstyle,isDecorative:e.isDecorative}},Mt=function(e,t){return/^(?:[a-zA-Z]+:)?\/\//.test(t)?S.none():e.prependURL.bind((function(e){return t.substring(0,e.length)!==e?S.some(e+t):S.none()}))},Rt=function(e,t){var n=t.getData();Mt(e,n.src.value).each((function(e){t.setData({src:{value:e,meta:n.src.meta}})}))},Ft=function(e,t,n){e.hasDescription&&a(n.alt)&&(t.alt=n.alt),e.hasAccessibilityOptions&&(t.isDecorative=n.isDecorative||t.isDecorative||!1),e.hasImageTitle&&a(n.title)&&(t.title=n.title),e.hasDimensions&&(a(n.width)&&(t.dimensions.width=n.width),a(n.height)&&(t.dimensions.height=n.height)),a(n.class)&&Ct.findEntry(e.classList,n.class).each((function(e){t.classes=e.value})),e.hasImageCaption&&c(n.caption)&&(t.caption=n.caption),e.hasAdvTab&&(a(n.style)&&(t.style=n.style),a(n.vspace)&&(t.vspace=n.vspace),a(n.border)&&(t.border=n.border),a(n.hspace)&&(t.hspace=n.hspace),a(n.borderstyle)&&(t.borderstyle=n.borderstyle))},Bt=function(e,t){var n=t.getData(),r=n.src.meta;if(void 0!==r){var i=ct({},n);Ft(e,i,r),t.setData(i)}},Lt=function(e,t,n,r){var i=r.getData(),o=i.src.value,a=i.src.meta||{};a.width||a.height||!t.hasDimensions||(ft(o)?e.imageSize(o).then((function(e){n.open&&r.setData({dimensions:e})})).catch((function(e){return console.error(e)})):r.setData({dimensions:{width:"",height:""}}))},$t=function(e,t,n){var r=n.getData(),i=Ct.findEntry(e.imageList,r.src.value);t.prevImage=i,n.setData({images:i.map((function(e){return e.value})).getOr("")})},Vt=function(e,t,n,r){Rt(t,r),Bt(t,r),Lt(e,t,n,r),$t(t,n,r)},jt=function(e,t,n,r){var i=r.getData(),o=Ct.findEntry(t.imageList,i.images);o.each((function(e){var t=""===i.alt||n.prevImage.map((function(e){return e.text===i.alt})).getOr(!1);t?""===e.value?r.setData({src:e,alt:n.prevAlt}):r.setData({src:e,alt:e.text}):r.setData({src:e})})),n.prevImage=o,Vt(e,t,n,r)},zt=function(e){var t=e["margin-top"]&&e["margin-bottom"]&&e["margin-top"]===e["margin-bottom"];return t?de(String(e["margin-top"])):""},Ht=function(e){var t=e["margin-right"]&&e["margin-left"]&&e["margin-right"]===e["margin-left"];return t?de(String(e["margin-right"])):""},Ut=function(e){return e["border-width"]?de(String(e["border-width"])):""},Wt=function(e){return e["border-style"]?String(e["border-style"]):""},qt=function(e,t,n){return t(e(t(n)))},Gt=function(e,t,n){var r=pe(e(n.style)),i=ct({},n);return i.vspace=zt(r),i.hspace=Ht(r),i.border=Ut(r),i.borderstyle=Wt(r),i.style=qt(e,t,r),i},Yt=function(e,t){var n=t.getData(),r=Gt(e.parseStyle,e.serializeStyle,n);t.setData(r)},Kt=function(e,t,n){var r=ct(At(t.image),n.getData()),i=Ue(e.normalizeCss,Pt(r,!1));n.setData({style:i})},Xt=function(e,t,n,r){var i=r.getData();r.block("Uploading image"),F(i.fileinput).fold((function(){r.unblock()}),(function(i){var o=URL.createObjectURL(i),a=function(){r.unblock(),URL.revokeObjectURL(o)},s=function(i){r.setData({src:{value:i,meta:{}}}),r.showTab("general"),Vt(e,t,n,r)};ve(i).then((function(n){var l=e.createBlobCache(i,o,n);t.automaticUploads?e.uploadImage(l).then((function(e){s(e.url),a()})).catch((function(t){a(),e.alertErr(t)})):(e.addToBlobCache(l),s(l.blobUri()),r.unblock())}))}))},Jt=function(e,t,n){return function(r,i){"src"===i.name?Vt(e,t,n,r):"images"===i.name?jt(e,t,n,r):"alt"===i.name?n.prevAlt=r.getData().alt:"style"===i.name?Yt(e,r):"vspace"===i.name||"hspace"===i.name||"border"===i.name||"borderstyle"===i.name?Kt(e,t,r):"fileinput"===i.name?Xt(e,t,n,r):"isDecorative"===i.name&&(r.getData().isDecorative?r.disable("alt"):r.enable("alt"))}},Zt=function(e){return function(){e.open=!1}},Qt=function(e){if(e.hasAdvTab||e.hasUploadUrl||e.hasUploadHandler){var t={type:"tabpanel",tabs:M([[Tt.makeTab(e)],e.hasAdvTab?[St.makeTab(e)]:[],e.hasUploadTab&&(e.hasUploadUrl||e.hasUploadHandler)?[It.makeTab(e)]:[]])};return t}var n={type:"panel",items:Tt.makeItems(e)};return n},en=function(e){return function(t){var n=Nt(t);return{title:"Insert/Edit Image",size:"normal",body:Qt(t),buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:At(t.image),onSubmit:e.onSubmit(t),onChange:Jt(e,t,n),onClose:Zt(n)}}},tn=function(e){return function(t){return function(n){var r=ct(At(t.image),n.getData());e.execCommand("mceUpdateImage",!1,Pt(r,t.hasAccessibilityOptions)),e.editorUpload.uploadImagesAuto(),n.close()}}},nn=function(e){return function(t){return ye(e,t)?fe(e.documentBaseURI.toAbsolute(t)).then((function(e){return{width:String(e.width),height:String(e.height)}})):Y.resolve({width:"",height:""})}},rn=function(e){return function(t,n,r){return e.editorUpload.blobCache.create({blob:t,blobUri:n,name:t.name?t.name.replace(/\.[^\.]+$/,""):null,filename:t.name,base64:r.split(",")[1]})}},on=function(e){return function(t){e.editorUpload.blobCache.add(t)}},an=function(e){return function(t){e.windowManager.alert(t)}},sn=function(e){return function(t){return Ze(e,t)}},ln=function(e){return function(t){return e.dom.parseStyle(t)}},un=function(e){return function(t,n){return e.dom.serializeStyle(t,n)}},cn=function(e){return function(t){return dt(e).upload([t],!1).then((function(e){return 0===e.length?Y.reject("Failed to upload image"):!1===e[0].status?Y.reject(e[0].error.message):e[0]}))}},fn=function(e){var t={onSubmit:tn(e),imageSize:nn(e),addToBlobCache:on(e),createBlobCache:rn(e),alertErr:an(e),normalizeCss:sn(e),parseStyle:ln(e),serializeStyle:un(e),uploadImage:cn(e)},n=function(){kt(e).then(en(t)).then(e.windowManager.open)};return{open:n}},dn=function(e){e.addCommand("mceImage",fn(e).open),e.addCommand("mceUpdateImage",(function(t,n){e.undoManager.transact((function(){return st(e,n)}))}))},hn=function(e){var t=e.attr("class");return t&&/\bimage\b/.test(t)},pn=function(e){return function(t){var n=t.length,r=function(t){t.attr("contenteditable",e?"true":null)};while(n--){var i=t[n];hn(i)&&(i.attr("contenteditable",e?"false":null),ht.each(i.getAll("figcaption"),r))}}},mn=function(e){e.on("PreInit",(function(){e.parser.addNodeFilter("figure",pn(!0)),e.serializer.addNodeFilter("figure",pn(!1))}))},gn=function(e){e.ui.registry.addToggleButton("image",{icon:"image",tooltip:"Insert/edit image",onAction:fn(e).open,onSetup:function(t){return t.setActive(d(Qe(e))),e.selection.selectorChangedWithUnbind("img:not([data-mce-object],[data-mce-placeholder]),figure.image",t.setActive).unbind}}),e.ui.registry.addMenuItem("image",{icon:"image",text:"Image...",onAction:fn(e).open}),e.ui.registry.addContextMenu("image",{update:function(e){return $e(e)||Ve(e)&&!be(e)?["image"]:[]}})};function vn(){e.add("image",(function(e){mn(e),gn(e),dn(e)}))}vn()})()},ce10:function(e,t,n){var r=n("69a8"),i=n("6821"),o=n("c366")(!1),a=n("613b")("IE_PROTO");e.exports=function(e,t){var n,s=i(e),l=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);while(t.length>l)r(s,n=t[l++])&&(~o(u,n)||u.push(n));return u}},ce7e:function(e,t,n){var r=n("63b6"),i=n("584a"),o=n("294c");e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o((function(){n(1)})),"Object",a)}},cedd:function(e,t,n){"use strict";var r=n("9cca"),i=n("2111"),o=n("0b22"),a=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.encodeCompressedGtin=function(e,t){e.append("(01)");var n=e.length();e.append("9"),this.encodeCompressedGtinWithoutAI(e,t,n)},t.prototype.encodeCompressedGtinWithoutAI=function(e,n,r){for(var i=0;i<4;++i){var o=this.getGeneralDecoder().extractNumericValueFromBitArray(n+10*i,10);o/100===0&&e.append("0"),o/10===0&&e.append("0"),e.append(o)}t.appendCheckDigit(e,r)},t.appendCheckDigit=function(e,t){for(var n=0,r=0;r<13;r++){var i=e.charAt(r+t).charCodeAt(0)-"0".charCodeAt(0);n+=0===(1&r)?3*i:i}n=10-n%10,10===n&&(n=0),e.append(n)},t.GTIN_SIZE=40,t}(o["a"]),l=s,u=n("6530"),c=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),f=function(e){function t(t){return e.call(this,t)||this}return c(t,e),t.prototype.parseInformation=function(){var e=new u["a"];e.append("(01)");var n=e.length(),r=this.getGeneralDecoder().extractNumericValueFromBitArray(t.HEADER_SIZE,4);return e.append(r),this.encodeCompressedGtinWithoutAI(e,t.HEADER_SIZE+4,n),this.getGeneralDecoder().decodeAllCodes(e,t.HEADER_SIZE+44)},t.HEADER_SIZE=4,t}(l),d=f,h=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),p=function(e){function t(t){return e.call(this,t)||this}return h(t,e),t.prototype.parseInformation=function(){var e=new u["a"];return this.getGeneralDecoder().decodeAllCodes(e,t.HEADER_SIZE)},t.HEADER_SIZE=5,t}(o["a"]),m=p,g=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),v=function(e){function t(t){return e.call(this,t)||this}return g(t,e),t.prototype.encodeCompressedWeight=function(e,t,n){var r=this.getGeneralDecoder().extractNumericValueFromBitArray(t,n);this.addWeightCode(e,r);for(var i=this.checkWeight(r),o=1e5,a=0;a<5;++a)i/o===0&&e.append("0"),o/=10;e.append(i)},t}(l),b=v,y=n("ca08"),w=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_=function(e){function t(t){return e.call(this,t)||this}return w(t,e),t.prototype.parseInformation=function(){if(this.getInformation().getSize()!=t.HEADER_SIZE+b.GTIN_SIZE+t.WEIGHT_SIZE)throw new y["a"];var e=new u["a"];return this.encodeCompressedGtin(e,t.HEADER_SIZE),this.encodeCompressedWeight(e,t.HEADER_SIZE+b.GTIN_SIZE,t.WEIGHT_SIZE),e.toString()},t.HEADER_SIZE=5,t.WEIGHT_SIZE=15,t}(b),C=_,x=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),S=function(e){function t(t){return e.call(this,t)||this}return x(t,e),t.prototype.addWeightCode=function(e,t){e.append("(3103)")},t.prototype.checkWeight=function(e){return e},t}(C),k=S,D=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),O=function(e){function t(t){return e.call(this,t)||this}return D(t,e),t.prototype.addWeightCode=function(e,t){t<1e4?e.append("(3202)"):e.append("(3203)")},t.prototype.checkWeight=function(e){return e<1e4?e:e-1e4},t}(C),T=O,E=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),I=function(e){function t(t){return e.call(this,t)||this}return E(t,e),t.prototype.parseInformation=function(){if(this.getInformation().getSize()<t.HEADER_SIZE+l.GTIN_SIZE)throw new y["a"];var e=new u["a"];this.encodeCompressedGtin(e,t.HEADER_SIZE);var n=this.getGeneralDecoder().extractNumericValueFromBitArray(t.HEADER_SIZE+l.GTIN_SIZE,t.LAST_DIGIT_SIZE);e.append("(392"),e.append(n),e.append(")");var r=this.getGeneralDecoder().decodeGeneralPurposeField(t.HEADER_SIZE+l.GTIN_SIZE+t.LAST_DIGIT_SIZE,null);return e.append(r.getNewString()),e.toString()},t.HEADER_SIZE=8,t.LAST_DIGIT_SIZE=2,t}(l),N=I,A=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),P=function(e){function t(t){return e.call(this,t)||this}return A(t,e),t.prototype.parseInformation=function(){if(this.getInformation().getSize()<t.HEADER_SIZE+l.GTIN_SIZE)throw new y["a"];var e=new u["a"];this.encodeCompressedGtin(e,t.HEADER_SIZE);var n=this.getGeneralDecoder().extractNumericValueFromBitArray(t.HEADER_SIZE+l.GTIN_SIZE,t.LAST_DIGIT_SIZE);e.append("(393"),e.append(n),e.append(")");var r=this.getGeneralDecoder().extractNumericValueFromBitArray(t.HEADER_SIZE+l.GTIN_SIZE+t.LAST_DIGIT_SIZE,t.FIRST_THREE_DIGITS_SIZE);r/100==0&&e.append("0"),r/10==0&&e.append("0"),e.append(r);var i=this.getGeneralDecoder().decodeGeneralPurposeField(t.HEADER_SIZE+l.GTIN_SIZE+t.LAST_DIGIT_SIZE+t.FIRST_THREE_DIGITS_SIZE,null);return e.append(i.getNewString()),e.toString()},t.HEADER_SIZE=8,t.LAST_DIGIT_SIZE=2,t.FIRST_THREE_DIGITS_SIZE=10,t}(l),M=P,R=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),F=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.dateCode=r,i.firstAIdigits=n,i}return R(t,e),t.prototype.parseInformation=function(){if(this.getInformation().getSize()!=t.HEADER_SIZE+t.GTIN_SIZE+t.WEIGHT_SIZE+t.DATE_SIZE)throw new y["a"];var e=new u["a"];return this.encodeCompressedGtin(e,t.HEADER_SIZE),this.encodeCompressedWeight(e,t.HEADER_SIZE+t.GTIN_SIZE,t.WEIGHT_SIZE),this.encodeCompressedDate(e,t.HEADER_SIZE+t.GTIN_SIZE+t.WEIGHT_SIZE),e.toString()},t.prototype.encodeCompressedDate=function(e,n){var r=this.getGeneralDecoder().extractNumericValueFromBitArray(n,t.DATE_SIZE);if(38400!=r){e.append("("),e.append(this.dateCode),e.append(")");var i=r%32;r/=32;var o=r%12+1;r/=12;var a=r;a/10==0&&e.append("0"),e.append(a),o/10==0&&e.append("0"),e.append(o),i/10==0&&e.append("0"),e.append(i)}},t.prototype.addWeightCode=function(e,t){e.append("("),e.append(this.firstAIdigits),e.append(t/1e5),e.append(")")},t.prototype.checkWeight=function(e){return e%1e5},t.HEADER_SIZE=8,t.WEIGHT_SIZE=20,t.DATE_SIZE=16,t}(b),B=F;function L(e){try{if(e.get(1))return new d(e);if(!e.get(2))return new m(e);var t=i["a"].extractNumericValueFromBitArray(e,1,4);switch(t){case 4:return new k(e);case 5:return new T(e)}var n=i["a"].extractNumericValueFromBitArray(e,1,5);switch(n){case 12:return new N(e);case 13:return new M(e)}var o=i["a"].extractNumericValueFromBitArray(e,1,7);switch(o){case 56:return new B(e,"310","11");case 57:return new B(e,"320","11");case 58:return new B(e,"310","13");case 59:return new B(e,"320","13");case 60:return new B(e,"310","15");case 61:return new B(e,"320","15");case 62:return new B(e,"310","17");case 63:return new B(e,"320","17")}}catch(a){throw console.log(a),new r["a"]("unknown decoder: "+e)}}n.d(t,"a",(function(){return L}))},d03f:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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="/dist/",n(n.s=104)}({1:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var l,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},104:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-radio",class:[e.radioSize?"el-radio--"+e.radioSize:"",{"is-disabled":e.isDisabled},{"is-focus":e.focus},{"is-bordered":e.border},{"is-checked":e.model===e.label}],attrs:{role:"radio","aria-checked":e.model===e.label,"aria-disabled":e.isDisabled,tabindex:e.tabIndex},on:{keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"]))return null;t.stopPropagation(),t.preventDefault(),e.model=e.isDisabled?e.model:e.label}}},[n("span",{staticClass:"el-radio__input",class:{"is-disabled":e.isDisabled,"is-checked":e.model===e.label}},[n("span",{staticClass:"el-radio__inner"}),n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],ref:"radio",staticClass:"el-radio__original",attrs:{type:"radio","aria-hidden":"true",name:e.name,disabled:e.isDisabled,tabindex:"-1"},domProps:{value:e.label,checked:e._q(e.model,e.label)},on:{focus:function(t){e.focus=!0},blur:function(t){e.focus=!1},change:[function(t){e.model=e.label},e.handleChange]}})]),n("span",{staticClass:"el-radio__label",on:{keydown:function(e){e.stopPropagation()}}},[e._t("default"),e.$slots.default?e._e():[e._v(e._s(e.label))]],2)])};r._withStripped=!0;var i=n(4),o={name:"ElRadio",mixins:[n.n(i).a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElRadio",props:{value:{},label:{},disabled:Boolean,name:String,border:Boolean,size:String},data:function(){return{focus:!1}},computed:{isGroup:function(){for(var e=this.$parent;e;){if("ElRadioGroup"===e.$options.componentName)return this._radioGroup=e,!0;e=e.$parent}return!1},model:{get:function(){return this.isGroup?this._radioGroup.value:this.value},set:function(e){this.isGroup?this.dispatch("ElRadioGroup","input",[e]):this.$emit("input",e),this.$refs.radio&&(this.$refs.radio.checked=this.model===this.label)}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},radioSize:function(){var e=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._radioGroup.radioGroupSize||e},isDisabled:function(){return this.isGroup?this._radioGroup.disabled||this.disabled||(this.elForm||{}).disabled:this.disabled||(this.elForm||{}).disabled},tabIndex:function(){return this.isDisabled||this.isGroup&&this.model!==this.label?-1:0}},methods:{handleChange:function(){var e=this;this.$nextTick((function(){e.$emit("change",e.model),e.isGroup&&e.dispatch("ElRadioGroup","handleChange",e.model)}))}}},a=n(1),s=Object(a.a)(o,r,[],!1,null,null,null);s.options.__file="packages/radio/src/radio.vue";var l=s.exports;l.install=function(e){e.component(l.name,l)},t.default=l},4:function(e,t){e.exports=n("bbe4")}})},d0b6:function(e,t,n){"use strict";function r(e,t){var n=Object.setPrototypeOf;n?n(e,t):e.__proto__=t}function i(e,t){void 0===t&&(t=e.constructor);var n=Error.captureStackTrace;n&&n(e,t)}var o=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),a=function(e){function t(t,n){var o=this.constructor,a=e.call(this,t,n)||this;return Object.defineProperty(a,"name",{value:o.name,enumerable:!1,configurable:!0}),r(a,o.prototype),i(a),a}return o(t,e),t}(Error);var s=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),l=function(e){function t(t){void 0===t&&(t=void 0);var n=e.call(this,t)||this;return n.message=t,n}return s(t,e),t.prototype.getKind=function(){var e=this.constructor;return e.kind},t.kind="Exception",t}(a);t["a"]=l},d0cb:function(e,t,n){"use strict";var r=n("a363"),i=n("ab23"),o=n("ca08"),a=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},l=function(e){function t(){var t=e.call(this)||this;return t.decodeMiddleCounters=Int32Array.from([0,0,0,0]),t}return a(t,e),t.prototype.decodeMiddle=function(e,n,r){var o,a,l,u,c=this.decodeMiddleCounters;c[0]=0,c[1]=0,c[2]=0,c[3]=0;for(var f=e.getSize(),d=n[1],h=0,p=0;p<6&&d<f;p++){var m=i["a"].decodeDigit(e,c,d,i["a"].L_AND_G_PATTERNS);r+=String.fromCharCode("0".charCodeAt(0)+m%10);try{for(var g=(o=void 0,s(c)),v=g.next();!v.done;v=g.next()){var b=v.value;d+=b}}catch(C){o={error:C}}finally{try{v&&!v.done&&(a=g.return)&&a.call(g)}finally{if(o)throw o.error}}m>=10&&(h|=1<<5-p)}r=t.determineFirstDigit(r,h);var y=i["a"].findGuardPattern(e,d,!0,i["a"].MIDDLE_PATTERN,new Int32Array(i["a"].MIDDLE_PATTERN.length).fill(0));d=y[1];for(p=0;p<6&&d<f;p++){m=i["a"].decodeDigit(e,c,d,i["a"].L_PATTERNS);r+=String.fromCharCode("0".charCodeAt(0)+m);try{for(var w=(l=void 0,s(c)),_=w.next();!_.done;_=w.next()){b=_.value;d+=b}}catch(x){l={error:x}}finally{try{_&&!_.done&&(u=w.return)&&u.call(w)}finally{if(l)throw l.error}}}return{rowOffset:d,resultString:r}},t.prototype.getBarcodeFormat=function(){return r["a"].EAN_13},t.determineFirstDigit=function(e,t){for(var n=0;n<10;n++)if(t===this.FIRST_DIGIT_ENCODINGS[n])return e=String.fromCharCode("0".charCodeAt(0)+n)+e,e;throw new o["a"]},t.FIRST_DIGIT_ENCODINGS=[0,11,13,14,19,25,28,21,22,26],t}(i["a"]);t["a"]=l},d192:function(e,t,n){"use strict";t.__esModule=!0;var r=r||{};r.Utils=r.Utils||{},r.Utils.focusFirstDescendant=function(e){for(var t=0;t<e.childNodes.length;t++){var n=e.childNodes[t];if(r.Utils.attemptFocus(n)||r.Utils.focusFirstDescendant(n))return!0}return!1},r.Utils.focusLastDescendant=function(e){for(var t=e.childNodes.length-1;t>=0;t--){var n=e.childNodes[t];if(r.Utils.attemptFocus(n)||r.Utils.focusLastDescendant(n))return!0}return!1},r.Utils.attemptFocus=function(e){if(!r.Utils.isFocusable(e))return!1;r.Utils.IgnoreUtilFocusChanges=!0;try{e.focus()}catch(t){console.log(t)}return r.Utils.IgnoreUtilFocusChanges=!1,document.activeElement===e},r.Utils.isFocusable=function(e){if(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return"hidden"!==e.type&&"file"!==e.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},r.Utils.triggerEvent=function(e,t){var n=void 0;n=/^mouse|click/.test(t)?"MouseEvents":/^key/.test(t)?"KeyboardEvent":"HTMLEvents";for(var r=document.createEvent(n),i=arguments.length,o=Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];return r.initEvent.apply(r,[t].concat(o)),e.dispatchEvent?e.dispatchEvent(r):e.fireEvent("on"+t,r),e},r.Utils.keys={tab:9,enter:13,space:32,left:37,up:38,right:39,down:40,esc:27},t.default=r.Utils},d263:function(e,t,n){"use strict";n("386b")("fixed",(function(e){return function(){return e(this,"tt","","")}}))},d2c8:function(e,t,n){var r=n("aae3"),i=n("be13");e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(e))}},d2fa:function(e,t,n){"use strict";var r=n("a363"),i=n("2011"),o=n("fe96"),a=n("ca08"),s=n("2f50"),l=n("64a7"),u=n("2d92"),c=n("547e"),f=n("34c8"),d=n("2915"),h=n("a9a4"),p=n("b3d8"),m=n("7978"),g=function(){function e(e){var t=e.getHeight();if(t<21||1!==(3&t))throw new m["a"];this.bitMatrix=e}return e.prototype.readFormatInformation=function(){if(null!==this.parsedFormatInfo&&void 0!==this.parsedFormatInfo)return this.parsedFormatInfo;for(var e=0,t=0;t<6;t++)e=this.copyBit(t,8,e);e=this.copyBit(7,8,e),e=this.copyBit(8,8,e),e=this.copyBit(8,7,e);for(var n=5;n>=0;n--)e=this.copyBit(8,n,e);var r=this.bitMatrix.getHeight(),i=0,o=r-7;for(n=r-1;n>=o;n--)i=this.copyBit(8,n,i);for(t=r-8;t<r;t++)i=this.copyBit(t,8,i);if(this.parsedFormatInfo=h["a"].decodeFormatInformation(e,i),null!==this.parsedFormatInfo)return this.parsedFormatInfo;throw new m["a"]},e.prototype.readVersion=function(){if(null!==this.parsedVersion&&void 0!==this.parsedVersion)return this.parsedVersion;var e=this.bitMatrix.getHeight(),t=Math.floor((e-17)/4);if(t<=6)return d["a"].getVersionForNumber(t);for(var n=0,r=e-11,i=5;i>=0;i--)for(var o=e-9;o>=r;o--)n=this.copyBit(o,i,n);var a=d["a"].decodeVersionInformation(n);if(null!==a&&a.getDimensionForVersion()===e)return this.parsedVersion=a,a;n=0;for(o=5;o>=0;o--)for(i=e-9;i>=r;i--)n=this.copyBit(o,i,n);if(a=d["a"].decodeVersionInformation(n),null!==a&&a.getDimensionForVersion()===e)return this.parsedVersion=a,a;throw new m["a"]},e.prototype.copyBit=function(e,t,n){var r=this.isMirror?this.bitMatrix.get(t,e):this.bitMatrix.get(e,t);return r?n<<1|1:n<<1},e.prototype.readCodewords=function(){var e=this.readFormatInformation(),t=this.readVersion(),n=p["a"].values.get(e.getDataMask()),r=this.bitMatrix.getHeight();n.unmaskBitMatrix(this.bitMatrix,r);for(var i=t.buildFunctionPattern(),o=!0,a=new Uint8Array(t.getTotalCodewords()),s=0,l=0,u=0,c=r-1;c>0;c-=2){6===c&&c--;for(var f=0;f<r;f++)for(var d=o?r-1-f:f,h=0;h<2;h++)i.get(c-h,d)||(u++,l<<=1,this.bitMatrix.get(c-h,d)&&(l|=1),8===u&&(a[s++]=l,u=0,l=0));o=!o}if(s!==t.getTotalCodewords())throw new m["a"];return a},e.prototype.remask=function(){if(null!==this.parsedFormatInfo){var e=p["a"].values[this.parsedFormatInfo.getDataMask()],t=this.bitMatrix.getHeight();e.unmaskBitMatrix(this.bitMatrix,t)}},e.prototype.setMirror=function(e){this.parsedVersion=null,this.parsedFormatInfo=null,this.isMirror=e},e.prototype.mirror=function(){for(var e=this.bitMatrix,t=0,n=e.getWidth();t<n;t++)for(var r=t+1,i=e.getHeight();r<i;r++)e.get(t,r)!==e.get(r,t)&&(e.flip(r,t),e.flip(t,r))},e}(),v=g,b=n("f0a7"),y=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},w=function(){function e(e,t){this.numDataCodewords=e,this.codewords=t}return e.getDataBlocks=function(t,n,r){var i,o,a,s;if(t.length!==n.getTotalCodewords())throw new b["a"];var l=n.getECBlocksForLevel(r),u=0,c=l.getECBlocks();try{for(var f=y(c),d=f.next();!d.done;d=f.next()){var h=d.value;u+=h.getCount()}}catch(N){i={error:N}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}var p=new Array(u),m=0;try{for(var g=y(c),v=g.next();!v.done;v=g.next()){h=v.value;for(var w=0;w<h.getCount();w++){var _=h.getDataCodewords(),C=l.getECCodewordsPerBlock()+_;p[m++]=new e(_,new Uint8Array(C))}}}catch(A){a={error:A}}finally{try{v&&!v.done&&(s=g.return)&&s.call(g)}finally{if(a)throw a.error}}var x=p[0].codewords.length,S=p.length-1;while(S>=0){var k=p[S].codewords.length;if(k===x)break;S--}S++;var D=x-l.getECCodewordsPerBlock(),O=0;for(w=0;w<D;w++)for(var T=0;T<m;T++)p[T].codewords[w]=t[O++];for(T=S;T<m;T++)p[T].codewords[D]=t[O++];var E=p[0].codewords.length;for(w=D;w<E;w++)for(T=0;T<m;T++){var I=T<S?w:w+1;p[T].codewords[I]=t[O++]}return p},e.prototype.getNumDataCodewords=function(){return this.numDataCodewords},e.prototype.getCodewords=function(){return this.codewords},e}(),_=w,C=n("5035"),x=function(){function e(e){this.mirrored=e}return e.prototype.isMirrored=function(){return this.mirrored},e.prototype.applyMirroredCorrection=function(e){if(this.mirrored&&null!==e&&!(e.length<3)){var t=e[0];e[0]=e[2],e[2]=t}},e}(),S=x,k=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},D=function(){function e(){this.rsDecoder=new f["a"](c["a"].QR_CODE_FIELD_256)}return e.prototype.decodeBooleanArray=function(e,t){return this.decodeBitMatrix(i["a"].parseFromBooleanArray(e),t)},e.prototype.decodeBitMatrix=function(e,t){var n=new v(e),r=null;try{return this.decodeBitMatrixParser(n,t)}catch(o){r=o}try{n.remask(),n.setMirror(!0),n.readVersion(),n.readFormatInformation(),n.mirror();var i=this.decodeBitMatrixParser(n,t);return i.setOther(new S(!0)),i}catch(o){if(null!==r)throw r;throw o}},e.prototype.decodeBitMatrixParser=function(e,t){var n,r,i,o,a=e.readVersion(),s=e.readFormatInformation().getErrorCorrectionLevel(),l=e.readCodewords(),u=_.getDataBlocks(l,a,s),c=0;try{for(var f=k(u),d=f.next();!d.done;d=f.next()){var h=d.value;c+=h.getNumDataCodewords()}}catch(x){n={error:x}}finally{try{d&&!d.done&&(r=f.return)&&r.call(f)}finally{if(n)throw n.error}}var p=new Uint8Array(c),m=0;try{for(var g=k(u),v=g.next();!v.done;v=g.next()){h=v.value;var b=h.getCodewords(),y=h.getNumDataCodewords();this.correctErrors(b,y);for(var w=0;w<y;w++)p[m++]=b[w]}}catch(S){i={error:S}}finally{try{v&&!v.done&&(o=g.return)&&o.call(g)}finally{if(i)throw i.error}}return C["a"].decode(p,a,s,t)},e.prototype.correctErrors=function(e,t){var n=new Int32Array(e);try{this.rsDecoder.decode(n,e.length-t)}catch(i){throw new u["a"]}for(var r=0;r<t;r++)e[r]=n[r]},e}(),O=D,T=n("fb63"),E=n("7a37"),I=n("be40"),N=n("a0cf"),A=n("8c95"),P=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),M=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.estimatedModuleSize=r,i}return P(t,e),t.prototype.aboutEquals=function(e,t,n){if(Math.abs(t-this.getY())<=e&&Math.abs(n-this.getX())<=e){var r=Math.abs(e-this.estimatedModuleSize);return r<=1||r<=this.estimatedModuleSize}return!1},t.prototype.combineEstimate=function(e,n,r){var i=(this.getX()+n)/2,o=(this.getY()+e)/2,a=(this.estimatedModuleSize+r)/2;return new t(i,o,a)},t}(A["a"]),R=M,F=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},B=function(){function e(e,t,n,r,i,o,a){this.image=e,this.startX=t,this.startY=n,this.width=r,this.height=i,this.moduleSize=o,this.resultPointCallback=a,this.possibleCenters=[],this.crossCheckStateCount=new Int32Array(3)}return e.prototype.find=function(){for(var e=this.startX,t=this.height,n=this.width,r=e+n,i=this.startY+t/2,o=new Int32Array(3),s=this.image,l=0;l<t;l++){var u=i+(0===(1&l)?Math.floor((l+1)/2):-Math.floor((l+1)/2));o[0]=0,o[1]=0,o[2]=0;var c=e;while(c<r&&!s.get(c,u))c++;var f=0;while(c<r){if(s.get(c,u))if(1===f)o[1]++;else if(2===f){if(this.foundPatternCross(o)){var d=this.handlePossibleCenter(o,u,c);if(null!==d)return d}o[0]=o[2],o[1]=1,o[2]=0,f=1}else o[++f]++;else 1===f&&f++,o[f]++;c++}if(this.foundPatternCross(o)){d=this.handlePossibleCenter(o,u,r);if(null!==d)return d}}if(0!==this.possibleCenters.length)return this.possibleCenters[0];throw new a["a"]},e.centerFromEnd=function(e,t){return t-e[2]-e[1]/2},e.prototype.foundPatternCross=function(e){for(var t=this.moduleSize,n=t/2,r=0;r<3;r++)if(Math.abs(t-e[r])>=n)return!1;return!0},e.prototype.crossCheckVertical=function(t,n,r,i){var o=this.image,a=o.getHeight(),s=this.crossCheckStateCount;s[0]=0,s[1]=0,s[2]=0;var l=t;while(l>=0&&o.get(n,l)&&s[1]<=r)s[1]++,l--;if(l<0||s[1]>r)return NaN;while(l>=0&&!o.get(n,l)&&s[0]<=r)s[0]++,l--;if(s[0]>r)return NaN;l=t+1;while(l<a&&o.get(n,l)&&s[1]<=r)s[1]++,l++;if(l===a||s[1]>r)return NaN;while(l<a&&!o.get(n,l)&&s[2]<=r)s[2]++,l++;if(s[2]>r)return NaN;var u=s[0]+s[1]+s[2];return 5*Math.abs(u-i)>=2*i?NaN:this.foundPatternCross(s)?e.centerFromEnd(s,l):NaN},e.prototype.handlePossibleCenter=function(t,n,r){var i,o,a=t[0]+t[1]+t[2],s=e.centerFromEnd(t,r),l=this.crossCheckVertical(n,s,2*t[1],a);if(!isNaN(l)){var u=(t[0]+t[1]+t[2])/3;try{for(var c=F(this.possibleCenters),f=c.next();!f.done;f=c.next()){var d=f.value;if(d.aboutEquals(u,l,s))return d.combineEstimate(l,s,u)}}catch(p){i={error:p}}finally{try{f&&!f.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}var h=new R(s,l,u);this.possibleCenters.push(h),null!==this.resultPointCallback&&void 0!==this.resultPointCallback&&this.resultPointCallback.foundPossibleResultPoint(h)}return null},e}(),L=B,$=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),V=function(e){function t(t,n,r,i){var o=e.call(this,t,n)||this;return o.estimatedModuleSize=r,o.count=i,void 0===i&&(o.count=1),o}return $(t,e),t.prototype.getEstimatedModuleSize=function(){return this.estimatedModuleSize},t.prototype.getCount=function(){return this.count},t.prototype.aboutEquals=function(e,t,n){if(Math.abs(t-this.getY())<=e&&Math.abs(n-this.getX())<=e){var r=Math.abs(e-this.estimatedModuleSize);return r<=1||r<=this.estimatedModuleSize}return!1},t.prototype.combineEstimate=function(e,n,r){var i=this.count+1,o=(this.count*this.getX()+n)/i,a=(this.count*this.getY()+e)/i,s=(this.count*this.estimatedModuleSize+r)/i;return new t(o,a,s,i)},t}(A["a"]),j=V,z=function(){function e(e){this.bottomLeft=e[0],this.topLeft=e[1],this.topRight=e[2]}return e.prototype.getBottomLeft=function(){return this.bottomLeft},e.prototype.getTopLeft=function(){return this.topLeft},e.prototype.getTopRight=function(){return this.topRight},e}(),H=z,U=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},W=function(){function e(e,t){this.image=e,this.resultPointCallback=t,this.possibleCenters=[],this.crossCheckStateCount=new Int32Array(5),this.resultPointCallback=t}return e.prototype.getImage=function(){return this.image},e.prototype.getPossibleCenters=function(){return this.possibleCenters},e.prototype.find=function(t){var n=null!==t&&void 0!==t&&void 0!==t.get(o["a"].TRY_HARDER),r=null!==t&&void 0!==t&&void 0!==t.get(o["a"].PURE_BARCODE),i=this.image,a=i.getHeight(),s=i.getWidth(),l=Math.floor(3*a/(4*e.MAX_MODULES));(l<e.MIN_SKIP||n)&&(l=e.MIN_SKIP);for(var u=!1,c=new Int32Array(5),f=l-1;f<a&&!u;f+=l){c[0]=0,c[1]=0,c[2]=0,c[3]=0,c[4]=0;for(var d=0,h=0;h<s;h++)if(i.get(h,f))1===(1&d)&&d++,c[d]++;else if(0===(1&d))if(4===d)if(e.foundPatternCross(c)){var p=this.handlePossibleCenter(c,f,h,r);if(!0!==p){c[0]=c[2],c[1]=c[3],c[2]=c[4],c[3]=1,c[4]=0,d=3;continue}if(l=2,!0===this.hasSkipped)u=this.haveMultiplyConfirmedCenters();else{var m=this.findRowSkip();m>c[2]&&(f+=m-c[2]-l,h=s-1)}d=0,c[0]=0,c[1]=0,c[2]=0,c[3]=0,c[4]=0}else c[0]=c[2],c[1]=c[3],c[2]=c[4],c[3]=1,c[4]=0,d=3;else c[++d]++;else c[d]++;if(e.foundPatternCross(c)){p=this.handlePossibleCenter(c,f,s,r);!0===p&&(l=c[0],this.hasSkipped&&(u=this.haveMultiplyConfirmedCenters()))}}var g=this.selectBestPatterns();return A["a"].orderBestPatterns(g),new H(g)},e.centerFromEnd=function(e,t){return t-e[4]-e[3]-e[2]/2},e.foundPatternCross=function(e){for(var t=0,n=0;n<5;n++){var r=e[n];if(0===r)return!1;t+=r}if(t<7)return!1;var i=t/7,o=i/2;return Math.abs(i-e[0])<o&&Math.abs(i-e[1])<o&&Math.abs(3*i-e[2])<3*o&&Math.abs(i-e[3])<o&&Math.abs(i-e[4])<o},e.prototype.getCrossCheckStateCount=function(){var e=this.crossCheckStateCount;return e[0]=0,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e},e.prototype.crossCheckDiagonal=function(t,n,r,i){var o=this.getCrossCheckStateCount(),a=0,s=this.image;while(t>=a&&n>=a&&s.get(n-a,t-a))o[2]++,a++;if(t<a||n<a)return!1;while(t>=a&&n>=a&&!s.get(n-a,t-a)&&o[1]<=r)o[1]++,a++;if(t<a||n<a||o[1]>r)return!1;while(t>=a&&n>=a&&s.get(n-a,t-a)&&o[0]<=r)o[0]++,a++;if(o[0]>r)return!1;var l=s.getHeight(),u=s.getWidth();a=1;while(t+a<l&&n+a<u&&s.get(n+a,t+a))o[2]++,a++;if(t+a>=l||n+a>=u)return!1;while(t+a<l&&n+a<u&&!s.get(n+a,t+a)&&o[3]<r)o[3]++,a++;if(t+a>=l||n+a>=u||o[3]>=r)return!1;while(t+a<l&&n+a<u&&s.get(n+a,t+a)&&o[4]<r)o[4]++,a++;if(o[4]>=r)return!1;var c=o[0]+o[1]+o[2]+o[3]+o[4];return Math.abs(c-i)<2*i&&e.foundPatternCross(o)},e.prototype.crossCheckVertical=function(t,n,r,i){var o=this.image,a=o.getHeight(),s=this.getCrossCheckStateCount(),l=t;while(l>=0&&o.get(n,l))s[2]++,l--;if(l<0)return NaN;while(l>=0&&!o.get(n,l)&&s[1]<=r)s[1]++,l--;if(l<0||s[1]>r)return NaN;while(l>=0&&o.get(n,l)&&s[0]<=r)s[0]++,l--;if(s[0]>r)return NaN;l=t+1;while(l<a&&o.get(n,l))s[2]++,l++;if(l===a)return NaN;while(l<a&&!o.get(n,l)&&s[3]<r)s[3]++,l++;if(l===a||s[3]>=r)return NaN;while(l<a&&o.get(n,l)&&s[4]<r)s[4]++,l++;if(s[4]>=r)return NaN;var u=s[0]+s[1]+s[2]+s[3]+s[4];return 5*Math.abs(u-i)>=2*i?NaN:e.foundPatternCross(s)?e.centerFromEnd(s,l):NaN},e.prototype.crossCheckHorizontal=function(t,n,r,i){var o=this.image,a=o.getWidth(),s=this.getCrossCheckStateCount(),l=t;while(l>=0&&o.get(l,n))s[2]++,l--;if(l<0)return NaN;while(l>=0&&!o.get(l,n)&&s[1]<=r)s[1]++,l--;if(l<0||s[1]>r)return NaN;while(l>=0&&o.get(l,n)&&s[0]<=r)s[0]++,l--;if(s[0]>r)return NaN;l=t+1;while(l<a&&o.get(l,n))s[2]++,l++;if(l===a)return NaN;while(l<a&&!o.get(l,n)&&s[3]<r)s[3]++,l++;if(l===a||s[3]>=r)return NaN;while(l<a&&o.get(l,n)&&s[4]<r)s[4]++,l++;if(s[4]>=r)return NaN;var u=s[0]+s[1]+s[2]+s[3]+s[4];return 5*Math.abs(u-i)>=i?NaN:e.foundPatternCross(s)?e.centerFromEnd(s,l):NaN},e.prototype.handlePossibleCenter=function(t,n,r,i){var o=t[0]+t[1]+t[2]+t[3]+t[4],a=e.centerFromEnd(t,r),s=this.crossCheckVertical(n,Math.floor(a),t[2],o);if(!isNaN(s)&&(a=this.crossCheckHorizontal(Math.floor(a),Math.floor(s),t[2],o),!isNaN(a)&&(!i||this.crossCheckDiagonal(Math.floor(s),Math.floor(a),t[2],o)))){for(var l=o/7,u=!1,c=this.possibleCenters,f=0,d=c.length;f<d;f++){var h=c[f];if(h.aboutEquals(l,s,a)){c[f]=h.combineEstimate(s,a,l),u=!0;break}}if(!u){var p=new j(a,s,l);c.push(p),null!==this.resultPointCallback&&void 0!==this.resultPointCallback&&this.resultPointCallback.foundPossibleResultPoint(p)}return!0}return!1},e.prototype.findRowSkip=function(){var t,n,r=this.possibleCenters.length;if(r<=1)return 0;var i=null;try{for(var o=U(this.possibleCenters),a=o.next();!a.done;a=o.next()){var s=a.value;if(s.getCount()>=e.CENTER_QUORUM){if(null!=i)return this.hasSkipped=!0,Math.floor((Math.abs(i.getX()-s.getX())-Math.abs(i.getY()-s.getY()))/2);i=s}}}catch(l){t={error:l}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return 0},e.prototype.haveMultiplyConfirmedCenters=function(){var t,n,r,i,o=0,a=0,s=this.possibleCenters.length;try{for(var l=U(this.possibleCenters),u=l.next();!u.done;u=l.next()){var c=u.value;c.getCount()>=e.CENTER_QUORUM&&(o++,a+=c.getEstimatedModuleSize())}}catch(m){t={error:m}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}if(o<3)return!1;var f=a/s,d=0;try{for(var h=U(this.possibleCenters),p=h.next();!p.done;p=h.next()){c=p.value;d+=Math.abs(c.getEstimatedModuleSize()-f)}}catch(g){r={error:g}}finally{try{p&&!p.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}return d<=.05*a},e.prototype.selectBestPatterns=function(){var e,t,n,r,i=this.possibleCenters.length;if(i<3)throw new a["a"];var o,s=this.possibleCenters;if(i>3){var l=0,u=0;try{for(var c=U(this.possibleCenters),f=c.next();!f.done;f=c.next()){var d=f.value,h=d.getEstimatedModuleSize();l+=h,u+=h*h}}catch(_){e={error:_}}finally{try{f&&!f.done&&(t=c.return)&&t.call(c)}finally{if(e)throw e.error}}o=l/i;var p=Math.sqrt(u/i-o*o);s.sort((function(e,t){var n=Math.abs(t.getEstimatedModuleSize()-o),r=Math.abs(e.getEstimatedModuleSize()-o);return n<r?-1:n>r?1:0}));for(var m=Math.max(.2*o,p),g=0;g<s.length&&s.length>3;g++){var v=s[g];Math.abs(v.getEstimatedModuleSize()-o)>m&&(s.splice(g,1),g--)}}if(s.length>3){l=0;try{for(var b=U(s),y=b.next();!y.done;y=b.next()){var w=y.value;l+=w.getEstimatedModuleSize()}}catch(C){n={error:C}}finally{try{y&&!y.done&&(r=b.return)&&r.call(b)}finally{if(n)throw n.error}}o=l/s.length,s.sort((function(e,t){if(t.getCount()===e.getCount()){var n=Math.abs(t.getEstimatedModuleSize()-o),r=Math.abs(e.getEstimatedModuleSize()-o);return n<r?1:n>r?-1:0}return t.getCount()-e.getCount()})),s.splice(3)}return[s[0],s[1],s[2]]},e.CENTER_QUORUM=2,e.MIN_SKIP=3,e.MAX_MODULES=57,e}(),q=W,G=function(){function e(e){this.image=e}return e.prototype.getImage=function(){return this.image},e.prototype.getResultPointCallback=function(){return this.resultPointCallback},e.prototype.detect=function(e){this.resultPointCallback=null===e||void 0===e?null:e.get(o["a"].NEED_RESULT_POINT_CALLBACK);var t=new q(this.image,this.resultPointCallback),n=t.find(e);return this.processFinderPatternInfo(n)},e.prototype.processFinderPatternInfo=function(t){var n=t.getTopLeft(),r=t.getTopRight(),i=t.getBottomLeft(),o=this.calculateModuleSize(n,r,i);if(o<1)throw new a["a"]("No pattern found in proccess finder.");var s=e.computeDimension(n,r,i,o),l=d["a"].getProvisionalVersionForDimension(s),u=l.getDimensionForVersion()-7,c=null;if(l.getAlignmentPatternCenters().length>0)for(var f=r.getX()-n.getX()+i.getX(),h=r.getY()-n.getY()+i.getY(),p=1-3/u,m=Math.floor(n.getX()+p*(f-n.getX())),g=Math.floor(n.getY()+p*(h-n.getY())),v=4;v<=16;v<<=1)try{c=this.findAlignmentInRegion(o,m,g,v);break}catch(_){if(!(_ instanceof a["a"]))throw _}var b,y=e.createTransform(n,r,i,c,s),w=e.sampleGrid(this.image,y,s);return b=null===c?[i,n,r]:[i,n,r,c],new E["a"](w,b)},e.createTransform=function(e,t,n,r,i){var o,a,s,l,u=i-3.5;return null!==r?(o=r.getX(),a=r.getY(),s=u-3,l=s):(o=t.getX()-e.getX()+n.getX(),a=t.getY()-e.getY()+n.getY(),s=u,l=u),N["a"].quadrilateralToQuadrilateral(3.5,3.5,u,3.5,s,l,3.5,u,e.getX(),e.getY(),t.getX(),t.getY(),o,a,n.getX(),n.getY())},e.sampleGrid=function(e,t,n){var r=I["a"].getInstance();return r.sampleGridWithTransform(e,n,n,t)},e.computeDimension=function(e,t,n,r){var i=T["a"].round(A["a"].distance(e,t)/r),o=T["a"].round(A["a"].distance(e,n)/r),s=Math.floor((i+o)/2)+7;switch(3&s){case 0:s++;break;case 2:s--;break;case 3:throw new a["a"]("Dimensions could be not found.")}return s},e.prototype.calculateModuleSize=function(e,t,n){return(this.calculateModuleSizeOneWay(e,t)+this.calculateModuleSizeOneWay(e,n))/2},e.prototype.calculateModuleSizeOneWay=function(e,t){var n=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(e.getX()),Math.floor(e.getY()),Math.floor(t.getX()),Math.floor(t.getY())),r=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(t.getX()),Math.floor(t.getY()),Math.floor(e.getX()),Math.floor(e.getY()));return isNaN(n)?r/7:isNaN(r)?n/7:(n+r)/14},e.prototype.sizeOfBlackWhiteBlackRunBothWays=function(e,t,n,r){var i=this.sizeOfBlackWhiteBlackRun(e,t,n,r),o=1,a=e-(n-e);a<0?(o=e/(e-a),a=0):a>=this.image.getWidth()&&(o=(this.image.getWidth()-1-e)/(a-e),a=this.image.getWidth()-1);var s=Math.floor(t-(r-t)*o);return o=1,s<0?(o=t/(t-s),s=0):s>=this.image.getHeight()&&(o=(this.image.getHeight()-1-t)/(s-t),s=this.image.getHeight()-1),a=Math.floor(e+(a-e)*o),i+=this.sizeOfBlackWhiteBlackRun(e,t,a,s),i-1},e.prototype.sizeOfBlackWhiteBlackRun=function(e,t,n,r){var i=Math.abs(r-t)>Math.abs(n-e);if(i){var o=e;e=t,t=o,o=n,n=r,r=o}for(var a=Math.abs(n-e),s=Math.abs(r-t),l=-a/2,u=e<n?1:-1,c=t<r?1:-1,f=0,d=n+u,h=e,p=t;h!==d;h+=u){var m=i?p:h,g=i?h:p;if(1===f===this.image.get(m,g)){if(2===f)return T["a"].distance(h,p,e,t);f++}if(l+=s,l>0){if(p===r)break;p+=c,l-=a}}return 2===f?T["a"].distance(n+u,r,e,t):NaN},e.prototype.findAlignmentInRegion=function(e,t,n,r){var i=Math.floor(r*e),o=Math.max(0,t-i),s=Math.min(this.image.getWidth()-1,t+i);if(s-o<3*e)throw new a["a"]("Alignment top exceeds estimated module size.");var l=Math.max(0,n-i),u=Math.min(this.image.getHeight()-1,n+i);if(u-l<3*e)throw new a["a"]("Alignment bottom exceeds estimated module size.");var c=new L(this.image,o,l,s-o,u-l,e,this.resultPointCallback);return c.find()},e}(),Y=G,K=function(){function e(){this.decoder=new O}return e.prototype.getDecoder=function(){return this.decoder},e.prototype.decode=function(t,n){var i,a;if(void 0!==n&&null!==n&&void 0!==n.get(o["a"].PURE_BARCODE)){var u=e.extractPureBits(t.getBlackMatrix());i=this.decoder.decodeBitMatrix(u,n),a=e.NO_POINTS}else{var c=new Y(t.getBlackMatrix()).detect(n);i=this.decoder.decodeBitMatrix(c.getBits(),n),a=c.getPoints()}i.getOther()instanceof S&&i.getOther().applyMirroredCorrection(a);var f=new s["a"](i.getText(),i.getRawBytes(),void 0,a,r["a"].QR_CODE,void 0),d=i.getByteSegments();null!==d&&f.putMetadata(l["a"].BYTE_SEGMENTS,d);var h=i.getECLevel();return null!==h&&f.putMetadata(l["a"].ERROR_CORRECTION_LEVEL,h),i.hasStructuredAppend()&&(f.putMetadata(l["a"].STRUCTURED_APPEND_SEQUENCE,i.getStructuredAppendSequenceNumber()),f.putMetadata(l["a"].STRUCTURED_APPEND_PARITY,i.getStructuredAppendParity())),f},e.prototype.reset=function(){},e.extractPureBits=function(e){var t=e.getTopLeftOnBit(),n=e.getBottomRightOnBit();if(null===t||null===n)throw new a["a"];var r=this.moduleSize(t,e),o=t[1],s=n[1],l=t[0],u=n[0];if(l>=u||o>=s)throw new a["a"];if(s-o!==u-l&&(u=l+(s-o),u>=e.getWidth()))throw new a["a"];var c=Math.round((u-l+1)/r),f=Math.round((s-o+1)/r);if(c<=0||f<=0)throw new a["a"];if(f!==c)throw new a["a"];var d=Math.floor(r/2);o+=d,l+=d;var h=l+Math.floor((c-1)*r)-u;if(h>0){if(h>d)throw new a["a"];l-=h}var p=o+Math.floor((f-1)*r)-s;if(p>0){if(p>d)throw new a["a"];o-=p}for(var m=new i["a"](c,f),g=0;g<f;g++)for(var v=o+Math.floor(g*r),b=0;b<c;b++)e.get(l+Math.floor(b*r),v)&&m.set(b,g);return m},e.moduleSize=function(e,t){var n=t.getHeight(),r=t.getWidth(),i=e[0],o=e[1],s=!0,l=0;while(i<r&&o<n){if(s!==t.get(i,o)){if(5===++l)break;s=!s}i++,o++}if(i===r||o===n)throw new a["a"];return(i-e[0])/7},e.NO_POINTS=new Array,e}();t["a"]=K},d316:function(e,t,n){"use strict";n("0523")},d36d:function(e,t,n){"use strict";n("1108")},d3f4:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},d439:function(e,t,n){"use strict";var r=n("f0a7"),i=function(){function e(){}return e.applyMaskPenaltyRule1=function(t){return e.applyMaskPenaltyRule1Internal(t,!0)+e.applyMaskPenaltyRule1Internal(t,!1)},e.applyMaskPenaltyRule2=function(t){for(var n=0,r=t.getArray(),i=t.getWidth(),o=t.getHeight(),a=0;a<o-1;a++)for(var s=r[a],l=0;l<i-1;l++){var u=s[l];u===s[l+1]&&u===r[a+1][l]&&u===r[a+1][l+1]&&n++}return e.N2*n},e.applyMaskPenaltyRule3=function(t){for(var n=0,r=t.getArray(),i=t.getWidth(),o=t.getHeight(),a=0;a<o;a++)for(var s=0;s<i;s++){var l=r[a];s+6<i&&1===l[s]&&0===l[s+1]&&1===l[s+2]&&1===l[s+3]&&1===l[s+4]&&0===l[s+5]&&1===l[s+6]&&(e.isWhiteHorizontal(l,s-4,s)||e.isWhiteHorizontal(l,s+7,s+11))&&n++,a+6<o&&1===r[a][s]&&0===r[a+1][s]&&1===r[a+2][s]&&1===r[a+3][s]&&1===r[a+4][s]&&0===r[a+5][s]&&1===r[a+6][s]&&(e.isWhiteVertical(r,s,a-4,a)||e.isWhiteVertical(r,s,a+7,a+11))&&n++}return n*e.N3},e.isWhiteHorizontal=function(e,t,n){t=Math.max(t,0),n=Math.min(n,e.length);for(var r=t;r<n;r++)if(1===e[r])return!1;return!0},e.isWhiteVertical=function(e,t,n,r){n=Math.max(n,0),r=Math.min(r,e.length);for(var i=n;i<r;i++)if(1===e[i][t])return!1;return!0},e.applyMaskPenaltyRule4=function(t){for(var n=0,r=t.getArray(),i=t.getWidth(),o=t.getHeight(),a=0;a<o;a++)for(var s=r[a],l=0;l<i;l++)1===s[l]&&n++;var u=t.getHeight()*t.getWidth(),c=Math.floor(10*Math.abs(2*n-u)/u);return c*e.N4},e.getDataMaskBit=function(e,t,n){var i,o;switch(e){case 0:i=n+t&1;break;case 1:i=1&n;break;case 2:i=t%3;break;case 3:i=(n+t)%3;break;case 4:i=Math.floor(n/2)+Math.floor(t/3)&1;break;case 5:o=n*t,i=(1&o)+o%3;break;case 6:o=n*t,i=(1&o)+o%3&1;break;case 7:o=n*t,i=o%3+(n+t&1)&1;break;default:throw new r["a"]("Invalid mask pattern: "+e)}return 0===i},e.applyMaskPenaltyRule1Internal=function(t,n){for(var r=0,i=n?t.getHeight():t.getWidth(),o=n?t.getWidth():t.getHeight(),a=t.getArray(),s=0;s<i;s++){for(var l=0,u=-1,c=0;c<o;c++){var f=n?a[s][c]:a[c][s];f===u?l++:(l>=5&&(r+=e.N1+(l-5)),l=1,u=f)}l>=5&&(r+=e.N1+(l-5))}return r},e.N1=3,e.N2=3,e.N3=40,e.N4=10,e}();t["a"]=i},d4ac:function(e,t,n){"use strict";n("ca57")},d4af:function(e,t,n){"use strict";var r=n("8eb7"),i=n("7b3e"),o=10,a=40,s=800;function l(e){var t=0,n=0,r=0,i=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=t*o,i=n*o,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||i)&&e.deltaMode&&(1==e.deltaMode?(r*=a,i*=a):(r*=s,i*=s)),r&&!t&&(t=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:i}}l.getEventType=function(){return r.firefox()?"DOMMouseScroll":i("wheel")?"wheel":"mousewheel"},e.exports=l},d4c0:function(e,t,n){var r=n("0d58"),i=n("2621"),o=n("52a7");e.exports=function(e){var t=r(e),n=i.f;if(n){var a,s=n(e),l=o.f,u=0;while(s.length>u)l.call(e,a=s[u++])&&t.push(a)}return t}},d4c3:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.Env"),n=function(e){e.addCommand("mcePrint",(function(){t.browser.isIE()?e.getDoc().execCommand("print",!1,null):e.getWin().print()}))},r=function(e){var t=function(){return e.execCommand("mcePrint")};e.ui.registry.addButton("print",{icon:"print",tooltip:"Print",onAction:t}),e.ui.registry.addMenuItem("print",{text:"Print...",icon:"print",onAction:t})};function i(){e.add("print",(function(e){n(e),r(e),e.addShortcut("Meta+P","","mcePrint")}))}i()})()},d4ec:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},d52c:function(e,t,n){"use strict";t.__esModule=!0;var r=n("8bbf"),i=a(r),o=n("f321");function a(e){return e&&e.__esModule?e:{default:e}}var s=!1,l=!1,u=void 0,c=function(){if(!i.default.prototype.$isServer){var e=d.modalDom;return e?s=!0:(s=!1,e=document.createElement("div"),d.modalDom=e,e.addEventListener("touchmove",(function(e){e.preventDefault(),e.stopPropagation()})),e.addEventListener("click",(function(){d.doOnModalClick&&d.doOnModalClick()}))),e}},f={},d={modalFade:!0,getInstance:function(e){return f[e]},register:function(e,t){e&&t&&(f[e]=t)},deregister:function(e){e&&(f[e]=null,delete f[e])},nextZIndex:function(){return d.zIndex++},modalStack:[],doOnModalClick:function(){var e=d.modalStack[d.modalStack.length-1];if(e){var t=d.getInstance(e.id);t&&t.closeOnClickModal&&t.close()}},openModal:function(e,t,n,r,a){if(!i.default.prototype.$isServer&&e&&void 0!==t){this.modalFade=a;for(var l=this.modalStack,u=0,f=l.length;u<f;u++){var d=l[u];if(d.id===e)return}var h=c();if((0,o.addClass)(h,"v-modal"),this.modalFade&&!s&&(0,o.addClass)(h,"v-modal-enter"),r){var p=r.trim().split(/\s+/);p.forEach((function(e){return(0,o.addClass)(h,e)}))}setTimeout((function(){(0,o.removeClass)(h,"v-modal-enter")}),200),n&&n.parentNode&&11!==n.parentNode.nodeType?n.parentNode.appendChild(h):document.body.appendChild(h),t&&(h.style.zIndex=t),h.tabIndex=0,h.style.display="",this.modalStack.push({id:e,zIndex:t,modalClass:r})}},closeModal:function(e){var t=this.modalStack,n=c();if(t.length>0){var r=t[t.length-1];if(r.id===e){if(r.modalClass){var i=r.modalClass.trim().split(/\s+/);i.forEach((function(e){return(0,o.removeClass)(n,e)}))}t.pop(),t.length>0&&(n.style.zIndex=t[t.length-1].zIndex)}else for(var a=t.length-1;a>=0;a--)if(t[a].id===e){t.splice(a,1);break}}0===t.length&&(this.modalFade&&(0,o.addClass)(n,"v-modal-leave"),setTimeout((function(){0===t.length&&(n.parentNode&&n.parentNode.removeChild(n),n.style.display="none",d.modalDom=void 0),(0,o.removeClass)(n,"v-modal-leave")}),200))}};Object.defineProperty(d,"zIndex",{configurable:!0,get:function(){return l||(u=u||(i.default.prototype.$ELEMENT||{}).zIndex||2e3,l=!0),u},set:function(e){u=e}});var h=function(){if(!i.default.prototype.$isServer&&d.modalStack.length>0){var e=d.modalStack[d.modalStack.length-1];if(!e)return;var t=d.getInstance(e.id);return t}};i.default.prototype.$isServer||window.addEventListener("keydown",(function(e){if(27===e.keyCode){var t=h();t&&t.closeOnPressEscape&&(t.handleClose?t.handleClose():t.handleAction?t.handleAction("cancel"):t.close())}})),t.default=d},d53b:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},d5b2:function(e,t,n){"use strict";var r=n("f505"),i=n("0ba3"),o=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(e){function t(t){return void 0===t&&(t=500),e.call(this,new i["a"],t)||this}o(t,e)})(r["a"])},d615:function(e,t,n){"use strict";var r=n("d0b6"),i=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.kind="ReaderException",t}(r["a"]);t["a"]=o},d6e2:function(e,t,n){"use strict";n("25ac")},d864:function(e,t,n){var r=n("79aa");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},d8d6:function(e,t,n){n("1654"),n("6c1c"),e.exports=n("ccb9").f("iterator")},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},d96f:function(e,t,n){"use strict";var r=n("cb12"),i=n("9dcc"),o=n("d0b6"),a=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.kind="NullPointerException",t}(o["a"]),l=s,u=function(){function e(){}return e.prototype.writeBytes=function(e){this.writeBytesOffset(e,0,e.length)},e.prototype.writeBytesOffset=function(e,t,n){if(null==e)throw new l;if(t<0||t>e.length||n<0||t+n>e.length||t+n<0)throw new i["a"];if(0!==n)for(var r=0;r<n;r++)this.write(e[t+r])},e.prototype.flush=function(){},e.prototype.close=function(){},e}(),c=u,f=n("ea29"),d=n("f0a7"),h=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t}(o["a"]),m=p,g=n("63af"),v=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),b=function(e){function t(t){void 0===t&&(t=32);var n=e.call(this)||this;if(n.count=0,t<0)throw new d["a"]("Negative initial size: "+t);return n.buf=new Uint8Array(t),n}return v(t,e),t.prototype.ensureCapacity=function(e){e-this.buf.length>0&&this.grow(e)},t.prototype.grow=function(e){var t=this.buf.length,n=t<<1;if(n-e<0&&(n=e),n<0){if(e<0)throw new m;n=f["a"].MAX_VALUE}this.buf=r["a"].copyOfUint8Array(this.buf,n)},t.prototype.write=function(e){this.ensureCapacity(this.count+1),this.buf[this.count]=e,this.count+=1},t.prototype.writeBytesOffset=function(e,t,n){if(t<0||t>e.length||n<0||t+n-e.length>0)throw new i["a"];this.ensureCapacity(this.count+n),g["a"].arraycopy(e,t,this.buf,this.count,n),this.count+=n},t.prototype.writeTo=function(e){e.writeBytesOffset(this.buf,0,this.count)},t.prototype.reset=function(){this.count=0},t.prototype.toByteArray=function(){return r["a"].copyOfUint8Array(this.buf,this.count)},t.prototype.size=function(){return this.count},t.prototype.toString=function(e){return e?"string"===typeof e?this.toString_string(e):this.toString_number(e):this.toString_void()},t.prototype.toString_void=function(){return new String(this.buf).toString()},t.prototype.toString_string=function(e){return new String(this.buf).toString()},t.prototype.toString_number=function(e){return new String(this.buf).toString()},t.prototype.close=function(){},t}(c);t["a"]=b},d9f6:function(e,t,n){var r=n("e4ae"),i=n("794b"),o=n("1bc3"),a=Object.defineProperty;t.f=n("8e60")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},dbbc:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e){e.addCommand("InsertHorizontalRule",(function(){e.execCommand("mceInsertContent",!1,"<hr />")}))},n=function(e){var t=function(){return e.execCommand("InsertHorizontalRule")};e.ui.registry.addButton("hr",{icon:"horizontal-rule",tooltip:"Horizontal line",onAction:t}),e.ui.registry.addMenuItem("hr",{icon:"horizontal-rule",text:"Horizontal line",onAction:t})};function r(){e.add("hr",(function(e){t(e),n(e)}))}r()})()},dbdb:function(e,t,n){var r=n("584a"),i=n("e53d"),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("b8e3")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},dc62:function(e,t,n){n("9427");var r=n("584a").Object;e.exports=function(e,t){return r.create(e,t)}},dcbc:function(e,t,n){var r=n("2aba");e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},dd05:function(e,t,n){"use strict";var r=n("8c95"),i=n("f52c"),o=n("fb63"),a=n("7f3b"),s=n("547e"),l=n("34c8"),u=n("ca08"),c=n("be40"),f=n("ea29"),d=function(){function e(e,t){this.x=e,this.y=t}return e.prototype.toResultPoint=function(){return new r["a"](this.getX(),this.getY())},e.prototype.getX=function(){return this.x},e.prototype.getY=function(){return this.y},e}(),h=function(){function e(e){this.EXPECTED_CORNER_BITS=new Int32Array([3808,476,2107,1799]),this.image=e}return e.prototype.detect=function(){return this.detectMirror(!1)},e.prototype.detectMirror=function(e){var t=this.getMatrixCenter(),n=this.getBullsEyeCorners(t);if(e){var r=n[0];n[0]=n[2],n[2]=r}this.extractParameters(n);var o=this.sampleGrid(this.image,n[this.shift%4],n[(this.shift+1)%4],n[(this.shift+2)%4],n[(this.shift+3)%4]),a=this.getMatrixCornerPoints(n);return new i["a"](o,a,this.compact,this.nbDataBlocks,this.nbLayers)},e.prototype.extractParameters=function(e){if(!this.isValidPoint(e[0])||!this.isValidPoint(e[1])||!this.isValidPoint(e[2])||!this.isValidPoint(e[3]))throw new u["a"];var t=2*this.nbCenterLayers,n=new Int32Array([this.sampleLine(e[0],e[1],t),this.sampleLine(e[1],e[2],t),this.sampleLine(e[2],e[3],t),this.sampleLine(e[3],e[0],t)]);this.shift=this.getRotation(n,t);for(var r=0,i=0;i<4;i++){var o=n[(this.shift+i)%4];this.compact?(r<<=7,r+=o>>1&127):(r<<=10,r+=(o>>2&992)+(o>>1&31))}var a=this.getCorrectedParameterData(r,this.compact);this.compact?(this.nbLayers=1+(a>>6),this.nbDataBlocks=1+(63&a)):(this.nbLayers=1+(a>>11),this.nbDataBlocks=1+(2047&a))},e.prototype.getRotation=function(e,t){var n=0;e.forEach((function(e,r,i){var o=(e>>t-2<<1)+(1&e);n=(n<<3)+o})),n=((1&n)<<11)+(n>>1);for(var r=0;r<4;r++)if(f["a"].bitCount(n^this.EXPECTED_CORNER_BITS[r])<=2)return r;throw new u["a"]},e.prototype.getCorrectedParameterData=function(e,t){var n,r;t?(n=7,r=2):(n=10,r=4);for(var i=n-r,o=new Int32Array(n),a=n-1;a>=0;--a)o[a]=15&e,e>>=4;try{var c=new l["a"](s["a"].AZTEC_PARAM);c.decode(o,i)}catch(d){throw new u["a"]}var f=0;for(a=0;a<r;a++)f=(f<<4)+o[a];return f},e.prototype.getBullsEyeCorners=function(e){var t=e,n=e,i=e,o=e,a=!0;for(this.nbCenterLayers=1;this.nbCenterLayers<9;this.nbCenterLayers++){var s=this.getFirstDifferent(t,a,1,-1),l=this.getFirstDifferent(n,a,1,1),c=this.getFirstDifferent(i,a,-1,1),f=this.getFirstDifferent(o,a,-1,-1);if(this.nbCenterLayers>2){var d=this.distancePoint(f,s)*this.nbCenterLayers/(this.distancePoint(o,t)*(this.nbCenterLayers+2));if(d<.75||d>1.25||!this.isWhiteOrBlackRectangle(s,l,c,f))break}t=s,n=l,i=c,o=f,a=!a}if(5!==this.nbCenterLayers&&7!==this.nbCenterLayers)throw new u["a"];this.compact=5===this.nbCenterLayers;var h=new r["a"](t.getX()+.5,t.getY()-.5),p=new r["a"](n.getX()+.5,n.getY()+.5),m=new r["a"](i.getX()-.5,i.getY()+.5),g=new r["a"](o.getX()-.5,o.getY()-.5);return this.expandSquare([h,p,m,g],2*this.nbCenterLayers-3,2*this.nbCenterLayers)},e.prototype.getMatrixCenter=function(){var e,t,n,r;try{var i=new a["a"](this.image).detect();e=i[0],t=i[1],n=i[2],r=i[3]}catch(f){var s=this.image.getWidth()/2,l=this.image.getHeight()/2;e=this.getFirstDifferent(new d(s+7,l-7),!1,1,-1).toResultPoint(),t=this.getFirstDifferent(new d(s+7,l+7),!1,1,1).toResultPoint(),n=this.getFirstDifferent(new d(s-7,l+7),!1,-1,1).toResultPoint(),r=this.getFirstDifferent(new d(s-7,l-7),!1,-1,-1).toResultPoint()}var u=o["a"].round((e.getX()+r.getX()+t.getX()+n.getX())/4),c=o["a"].round((e.getY()+r.getY()+t.getY()+n.getY())/4);try{i=new a["a"](this.image,15,u,c).detect();e=i[0],t=i[1],n=i[2],r=i[3]}catch(f){e=this.getFirstDifferent(new d(u+7,c-7),!1,1,-1).toResultPoint(),t=this.getFirstDifferent(new d(u+7,c+7),!1,1,1).toResultPoint(),n=this.getFirstDifferent(new d(u-7,c+7),!1,-1,1).toResultPoint(),r=this.getFirstDifferent(new d(u-7,c-7),!1,-1,-1).toResultPoint()}return u=o["a"].round((e.getX()+r.getX()+t.getX()+n.getX())/4),c=o["a"].round((e.getY()+r.getY()+t.getY()+n.getY())/4),new d(u,c)},e.prototype.getMatrixCornerPoints=function(e){return this.expandSquare(e,2*this.nbCenterLayers,this.getDimension())},e.prototype.sampleGrid=function(e,t,n,r,i){var o=c["a"].getInstance(),a=this.getDimension(),s=a/2-this.nbCenterLayers,l=a/2+this.nbCenterLayers;return o.sampleGrid(e,a,a,s,s,l,s,l,l,s,l,t.getX(),t.getY(),n.getX(),n.getY(),r.getX(),r.getY(),i.getX(),i.getY())},e.prototype.sampleLine=function(e,t,n){for(var r=0,i=this.distanceResultPoint(e,t),a=i/n,s=e.getX(),l=e.getY(),u=a*(t.getX()-e.getX())/i,c=a*(t.getY()-e.getY())/i,f=0;f<n;f++)this.image.get(o["a"].round(s+f*u),o["a"].round(l+f*c))&&(r|=1<<n-f-1);return r},e.prototype.isWhiteOrBlackRectangle=function(e,t,n,r){var i=3;e=new d(e.getX()-i,e.getY()+i),t=new d(t.getX()-i,t.getY()-i),n=new d(n.getX()+i,n.getY()-i),r=new d(r.getX()+i,r.getY()+i);var o=this.getColor(r,e);if(0===o)return!1;var a=this.getColor(e,t);return a===o&&(a=this.getColor(t,n),a===o&&(a=this.getColor(n,r),a===o))},e.prototype.getColor=function(e,t){for(var n=this.distancePoint(e,t),r=(t.getX()-e.getX())/n,i=(t.getY()-e.getY())/n,a=0,s=e.getX(),l=e.getY(),u=this.image.get(e.getX(),e.getY()),c=Math.ceil(n),f=0;f<c;f++)s+=r,l+=i,this.image.get(o["a"].round(s),o["a"].round(l))!==u&&a++;var d=a/n;return d>.1&&d<.9?0:d<=.1===u?1:-1},e.prototype.getFirstDifferent=function(e,t,n,r){var i=e.getX()+n,o=e.getY()+r;while(this.isValid(i,o)&&this.image.get(i,o)===t)i+=n,o+=r;i-=n,o-=r;while(this.isValid(i,o)&&this.image.get(i,o)===t)i+=n;i-=n;while(this.isValid(i,o)&&this.image.get(i,o)===t)o+=r;return o-=r,new d(i,o)},e.prototype.expandSquare=function(e,t,n){var i=n/(2*t),o=e[0].getX()-e[2].getX(),a=e[0].getY()-e[2].getY(),s=(e[0].getX()+e[2].getX())/2,l=(e[0].getY()+e[2].getY())/2,u=new r["a"](s+i*o,l+i*a),c=new r["a"](s-i*o,l-i*a);o=e[1].getX()-e[3].getX(),a=e[1].getY()-e[3].getY(),s=(e[1].getX()+e[3].getX())/2,l=(e[1].getY()+e[3].getY())/2;var f=new r["a"](s+i*o,l+i*a),d=new r["a"](s-i*o,l-i*a),h=[u,f,c,d];return h},e.prototype.isValid=function(e,t){return e>=0&&e<this.image.getWidth()&&t>0&&t<this.image.getHeight()},e.prototype.isValidPoint=function(e){var t=o["a"].round(e.getX()),n=o["a"].round(e.getY());return this.isValid(t,n)},e.prototype.distancePoint=function(e,t){return o["a"].distance(e.getX(),e.getY(),t.getX(),t.getY())},e.prototype.distanceResultPoint=function(e,t){return o["a"].distance(e.getX(),e.getY(),t.getX(),t.getY())},e.prototype.getDimension=function(){return this.compact?4*this.nbLayers+11:this.nbLayers<=4?4*this.nbLayers+15:4*this.nbLayers+2*(f["a"].truncDivision(this.nbLayers-4,8)+1)+15},e}();t["a"]=h},dd22:function(e,t,n){},ddb3:function(e,t,n){"use strict";var r,i,o=n("24ee"),a=d(o),s=n("1907"),l=d(s),u=n("3f6b"),c=d(u),f=n("1098");d(f);function d(e){return e&&e.__esModule?e:{default:e}}
|
|
36
36
|
/**
|
|
37
37
|
* @fileOverview Kickass library to create and place poppers near their reference elements.
|
|
38
38
|
* @version {{version}}
|
|
@@ -56,7 +56,7 @@ function o(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;va
|
|
|
56
56
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
57
57
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
58
58
|
* SOFTWARE.
|
|
59
|
-
*/(function(o,a){r=a,i="function"===typeof r?r.call(t,n,t,e):r,void 0===i||(e.exports=i)})(0,(function(){var e=window,t={placement:"bottom",gpuAcceleration:!0,offset:0,boundariesElement:"viewport",boundariesPadding:5,preventOverflowOrder:["left","right","top","bottom"],flipBehavior:"flip",arrowElement:"[x-arrow]",arrowOffset:0,modifiers:["shift","offset","preventOverflow","keepTogether","arrow","flip","applyStyle"],modifiersIgnored:[],forceAbsolute:!1};function n(e,n,r){this._reference=e.jquery?e[0]:e,this.state={};var i="undefined"===typeof n||null===n,o=n&&"[object Object]"===Object.prototype.toString.call(n);return this._popper=i||o?this.parse(o?n:{}):n.jquery?n[0]:n,this._options=(0,c.default)({},t,r),this._options.modifiers=this._options.modifiers.map(function(e){if(-1===this._options.modifiersIgnored.indexOf(e))return"applyStyle"===e&&this._popper.setAttribute("x-placement",this._options.placement),this.modifiers[e]||e}.bind(this)),this.state.position=this._getPosition(this._popper,this._reference),p(this._popper,{position:this.state.position,top:0}),this.update(),this._setupEventListeners(),this}function r(t){var n=t.style.display,r=t.style.visibility;t.style.display="block",t.style.visibility="hidden";t.offsetWidth;var i=e.getComputedStyle(t),o=parseFloat(i.marginTop)+parseFloat(i.marginBottom),a=parseFloat(i.marginLeft)+parseFloat(i.marginRight),s={width:t.offsetWidth+a,height:t.offsetHeight+o};return t.style.display=n,t.style.visibility=r,s}function i(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function o(e){var t=(0,c.default)({},e);return t.right=t.left+t.width,t.bottom=t.top+t.height,t}function s(e,t){var n,r=0;for(n in e){if(e[n]===t)return r;r++}return null}function u(t,n){var r=e.getComputedStyle(t,null);return r[n]}function f(t){var n=t.offsetParent;return n!==e.document.body&&n?n:e.document.documentElement}function d(t){var n=t.parentNode;return n?n===e.document?e.document.body.scrollTop||e.document.body.scrollLeft?e.document.body:e.document.documentElement:-1!==["scroll","auto"].indexOf(u(n,"overflow"))||-1!==["scroll","auto"].indexOf(u(n,"overflow-x"))||-1!==["scroll","auto"].indexOf(u(n,"overflow-y"))?n:d(t.parentNode):t}function h(t){return t!==e.document.body&&("fixed"===u(t,"position")||(t.parentNode?h(t.parentNode):t))}function p(e,t){function n(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}(0,l.default)(t).forEach((function(r){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(r)&&n(t[r])&&(i="px"),e.style[r]=t[r]+i}))}function m(e){var t={};return e&&"[object Function]"===t.toString.call(e)}function g(e){var t={width:e.offsetWidth,height:e.offsetHeight,left:e.offsetLeft,top:e.offsetTop};return t.right=t.left+t.width,t.bottom=t.top+t.height,t}function v(e){var t=e.getBoundingClientRect(),n=-1!=navigator.userAgent.indexOf("MSIE"),r=n&&"HTML"===e.tagName?-e.scrollTop:t.top;return{left:t.left,top:r,right:t.right,bottom:t.bottom,width:t.right-t.left,height:t.bottom-r}}function b(e,t,n){var r=v(e),i=v(t);if(n){var o=d(t);i.top+=o.scrollTop,i.bottom+=o.scrollTop,i.left+=o.scrollLeft,i.right+=o.scrollLeft}var a={top:r.top-i.top,left:r.left-i.left,bottom:r.top-i.top+r.height,right:r.left-i.left+r.width,width:r.width,height:r.height};return a}function y(t){for(var n=["","ms","webkit","moz","o"],r=0;r<n.length;r++){var i=n[r]?n[r]+t.charAt(0).toUpperCase()+t.slice(1):t;if("undefined"!==typeof e.document.body.style[i])return i}return null}return n.prototype.destroy=function(){return this._popper.removeAttribute("x-placement"),this._popper.style.left="",this._popper.style.position="",this._popper.style.top="",this._popper.style[y("transform")]="",this._removeEventListeners(),this._options.removeOnDestroy&&this._popper.remove(),this},n.prototype.update=function(){var e={instance:this,styles:{}};e.placement=this._options.placement,e._originalPlacement=this._options.placement,e.offsets=this._getOffsets(this._popper,this._reference,e.placement),e.boundaries=this._getBoundaries(e,this._options.boundariesPadding,this._options.boundariesElement),e=this.runModifiers(e,this._options.modifiers),"function"===typeof this.state.updateCallback&&this.state.updateCallback(e)},n.prototype.onCreate=function(e){return e(this),this},n.prototype.onUpdate=function(e){return this.state.updateCallback=e,this},n.prototype.parse=function(t){var n={tagName:"div",classNames:["popper"],attributes:[],parent:e.document.body,content:"",contentType:"text",arrowTagName:"div",arrowClassNames:["popper__arrow"],arrowAttributes:["x-arrow"]};t=(0,c.default)({},n,t);var r=e.document,i=r.createElement(t.tagName);if(s(i,t.classNames),l(i,t.attributes),"node"===t.contentType?i.appendChild(t.content.jquery?t.content[0]:t.content):"html"===t.contentType?i.innerHTML=t.content:i.textContent=t.content,t.arrowTagName){var o=r.createElement(t.arrowTagName);s(o,t.arrowClassNames),l(o,t.arrowAttributes),i.appendChild(o)}var a=t.parent.jquery?t.parent[0]:t.parent;if("string"===typeof a){if(a=r.querySelectorAll(t.parent),a.length>1&&console.warn("WARNING: the given `parent` query("+t.parent+") matched more than one element, the first one will be used"),0===a.length)throw"ERROR: the given `parent` doesn't exists!";a=a[0]}return a.length>1&&a instanceof Element===!1&&(console.warn("WARNING: you have passed as parent a list of elements, the first one will be used"),a=a[0]),a.appendChild(i),i;function s(e,t){t.forEach((function(t){e.classList.add(t)}))}function l(e,t){t.forEach((function(t){e.setAttribute(t.split(":")[0],t.split(":")[1]||"")}))}},n.prototype._getPosition=function(e,t){var n=f(t);if(this._options.forceAbsolute)return"absolute";var r=h(t,n);return r?"fixed":"absolute"},n.prototype._getOffsets=function(e,t,n){n=n.split("-")[0];var i={};i.position=this.state.position;var o="fixed"===i.position,a=b(t,f(e),o),s=r(e);return-1!==["right","left"].indexOf(n)?(i.top=a.top+a.height/2-s.height/2,i.left="left"===n?a.left-s.width:a.right):(i.left=a.left+a.width/2-s.width/2,i.top="top"===n?a.top-s.height:a.bottom),i.width=s.width,i.height=s.height,{popper:i,reference:a}},n.prototype._setupEventListeners=function(){if(this.state.updateBound=this.update.bind(this),e.addEventListener("resize",this.state.updateBound),"window"!==this._options.boundariesElement){var t=d(this._reference);t!==e.document.body&&t!==e.document.documentElement||(t=e),t.addEventListener("scroll",this.state.updateBound),this.state.scrollTarget=t}},n.prototype._removeEventListeners=function(){e.removeEventListener("resize",this.state.updateBound),"window"!==this._options.boundariesElement&&this.state.scrollTarget&&(this.state.scrollTarget.removeEventListener("scroll",this.state.updateBound),this.state.scrollTarget=null),this.state.updateBound=null},n.prototype._getBoundaries=function(t,n,r){var i,o,a={};if("window"===r){var s=e.document.body,l=e.document.documentElement;o=Math.max(s.scrollHeight,s.offsetHeight,l.clientHeight,l.scrollHeight,l.offsetHeight),i=Math.max(s.scrollWidth,s.offsetWidth,l.clientWidth,l.scrollWidth,l.offsetWidth),a={top:0,right:i,bottom:o,left:0}}else if("viewport"===r){var u=f(this._popper),c=d(this._popper),h=g(u),p=function(e){return e==document.body?Math.max(document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},m=function(e){return e==document.body?Math.max(document.documentElement.scrollLeft,document.body.scrollLeft):e.scrollLeft},v="fixed"===t.offsets.popper.position?0:p(c),b="fixed"===t.offsets.popper.position?0:m(c);a={top:0-(h.top-v),right:e.document.documentElement.clientWidth-(h.left-b),bottom:e.document.documentElement.clientHeight-(h.top-v),left:0-(h.left-b)}}else a=f(this._popper)===r?{top:0,left:0,right:r.clientWidth,bottom:r.clientHeight}:g(r);return a.left+=n,a.right-=n,a.top=a.top+n,a.bottom=a.bottom-n,a},n.prototype.runModifiers=function(e,t,n){var r=t.slice();return void 0!==n&&(r=this._options.modifiers.slice(0,s(this._options.modifiers,n))),r.forEach(function(t){m(t)&&(e=t.call(this,e))}.bind(this)),e},n.prototype.isModifierRequired=function(e,t){var n=s(this._options.modifiers,e);return!!this._options.modifiers.slice(0,n).filter((function(e){return e===t})).length},n.prototype.modifiers={},n.prototype.modifiers.applyStyle=function(e){var t,n={position:e.offsets.popper.position},r=Math.round(e.offsets.popper.left),i=Math.round(e.offsets.popper.top);return this._options.gpuAcceleration&&(t=y("transform"))?(n[t]="translate3d("+r+"px, "+i+"px, 0)",n.top=0,n.left=0):(n.left=r,n.top=i),(0,c.default)(n,e.styles),p(this._popper,n),this._popper.setAttribute("x-placement",e.placement),this.isModifierRequired(this.modifiers.applyStyle,this.modifiers.arrow)&&e.offsets.arrow&&p(e.arrowElement,e.offsets.arrow),e},n.prototype.modifiers.shift=function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets.reference,a=o(e.offsets.popper),s={y:{start:{top:i.top},end:{top:i.top+i.height-a.height}},x:{start:{left:i.left},end:{left:i.left+i.width-a.width}}},l=-1!==["bottom","top"].indexOf(n)?"x":"y";e.offsets.popper=(0,c.default)(a,s[l][r])}return e},n.prototype.modifiers.preventOverflow=function(e){var t=this._options.preventOverflowOrder,n=o(e.offsets.popper),r={left:function(){var t=n.left;return n.left<e.boundaries.left&&(t=Math.max(n.left,e.boundaries.left)),{left:t}},right:function(){var t=n.left;return n.right>e.boundaries.right&&(t=Math.min(n.left,e.boundaries.right-n.width)),{left:t}},top:function(){var t=n.top;return n.top<e.boundaries.top&&(t=Math.max(n.top,e.boundaries.top)),{top:t}},bottom:function(){var t=n.top;return n.bottom>e.boundaries.bottom&&(t=Math.min(n.top,e.boundaries.bottom-n.height)),{top:t}}};return t.forEach((function(t){e.offsets.popper=(0,c.default)(n,r[t]())})),e},n.prototype.modifiers.keepTogether=function(e){var t=o(e.offsets.popper),n=e.offsets.reference,r=Math.floor;return t.right<r(n.left)&&(e.offsets.popper.left=r(n.left)-t.width),t.left>r(n.right)&&(e.offsets.popper.left=r(n.right)),t.bottom<r(n.top)&&(e.offsets.popper.top=r(n.top)-t.height),t.top>r(n.bottom)&&(e.offsets.popper.top=r(n.bottom)),e},n.prototype.modifiers.flip=function(e){if(!this.isModifierRequired(this.modifiers.flip,this.modifiers.preventOverflow))return console.warn("WARNING: preventOverflow modifier is required by flip modifier in order to work, be sure to include it before flip!"),e;if(e.flipped&&e.placement===e._originalPlacement)return e;var t=e.placement.split("-")[0],n=i(t),r=e.placement.split("-")[1]||"",a=[];return a="flip"===this._options.flipBehavior?[t,n]:this._options.flipBehavior,a.forEach(function(s,l){if(t===s&&a.length!==l+1){t=e.placement.split("-")[0],n=i(t);var u=o(e.offsets.popper),c=-1!==["right","bottom"].indexOf(t);(c&&Math.floor(e.offsets.reference[t])>Math.floor(u[n])||!c&&Math.floor(e.offsets.reference[t])<Math.floor(u[n]))&&(e.flipped=!0,e.placement=a[l+1],r&&(e.placement+="-"+r),e.offsets.popper=this._getOffsets(this._popper,this._reference,e.placement).popper,e=this.runModifiers(e,this._options.modifiers,this._flip))}}.bind(this)),e},n.prototype.modifiers.offset=function(e){var t=this._options.offset,n=e.offsets.popper;return-1!==e.placement.indexOf("left")?n.top-=t:-1!==e.placement.indexOf("right")?n.top+=t:-1!==e.placement.indexOf("top")?n.left-=t:-1!==e.placement.indexOf("bottom")&&(n.left+=t),e},n.prototype.modifiers.arrow=function(e){var t=this._options.arrowElement,n=this._options.arrowOffset;if("string"===typeof t&&(t=this._popper.querySelector(t)),!t)return e;if(!this._popper.contains(t))return console.warn("WARNING: `arrowElement` must be child of its popper element!"),e;if(!this.isModifierRequired(this.modifiers.arrow,this.modifiers.keepTogether))return console.warn("WARNING: keepTogether modifier is required by arrow modifier in order to work, be sure to include it before arrow!"),e;var i={},a=e.placement.split("-")[0],s=o(e.offsets.popper),l=e.offsets.reference,u=-1!==["left","right"].indexOf(a),c=u?"height":"width",f=u?"top":"left",d=u?"left":"top",h=u?"bottom":"right",p=r(t)[c];l[h]-p<s[f]&&(e.offsets.popper[f]-=s[f]-(l[h]-p)),l[f]+p>s[h]&&(e.offsets.popper[f]+=l[f]+p-s[h]);var m=l[f]+(n||l[c]/2-p/2),g=m-s[f];return g=Math.max(Math.min(s[c]-p-8,g),8),i[f]=g,i[d]="",e.offsets.arrow=i,e.arrowElement=t,e},c.default||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(void 0===e||null===e)throw new TypeError("Cannot convert first argument to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(void 0!==r&&null!==r){r=Object(r);for(var i=(0,l.default)(r),o=0,s=i.length;o<s;o++){var u=i[o],c=(0,a.default)(r,u);void 0!==c&&c.enumerable&&(t[u]=r[u])}}}return t}}),n}))},e027:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function e(e,t,n){this.deviceId=e,this.label=t,this.kind="videoinput",this.groupId=n||void 0}return e.prototype.toJSON=function(){return{kind:this.kind,groupId:this.groupId,deviceId:this.deviceId,label:this.label}},e}()},e0b8:function(e,t,n){"use strict";var r=n("7726"),i=n("5ca1"),o=n("2aba"),a=n("dcbc"),s=n("67ab"),l=n("4a59"),u=n("f605"),c=n("d3f4"),f=n("79e5"),d=n("5cc5"),h=n("7f20"),p=n("5dbc");e.exports=function(e,t,n,m,g,v){var b=r[e],y=b,w=g?"set":"add",_=y&&y.prototype,C={},x=function(e){var t=_[e];o(_,e,"delete"==e||"has"==e?function(e){return!(v&&!c(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return v&&!c(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof y&&(v||_.forEach&&!f((function(){(new y).entries().next()})))){var S=new y,k=S[w](v?{}:-0,1)!=S,D=f((function(){S.has(1)})),O=d((function(e){new y(e)})),T=!v&&f((function(){var e=new y,t=5;while(t--)e[w](t,t);return!e.has(-0)}));O||(y=t((function(t,n){u(t,y,e);var r=p(new b,t,y);return void 0!=n&&l(n,g,r[w],r),r})),y.prototype=_,_.constructor=y),(D||T)&&(x("delete"),x("has"),g&&x("get")),(T||k)&&x(w),v&&_.clear&&delete _.clear}else y=m.getConstructor(t,e,g,w),a(y.prototype,n),s.NEED=!0;return h(y,e),C[e]=y,i(i.G+i.W+i.F*(y!=b),C),v||m.setStrong(y,e,g),y}},e11e:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e17f:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){if(i.default.prototype.$isServer)return 0;if(void 0!==a)return a;var e=document.createElement("div");e.className="el-scrollbar__wrap",e.style.visibility="hidden",e.style.width="100px",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",e.appendChild(n);var r=n.offsetWidth;return e.parentNode.removeChild(e),a=t-r,a};var r=n("8bbf"),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}var a=void 0},e1b7:function(e,t,n){n("522e"),e.exports=n("584a").Object.freeze},e1de:function(e,t,n){e.exports={default:n("696e"),__esModule:!0}},e245:function(e,t,n){"use strict";t.__esModule=!0;n("bf32");t.default={mounted:function(){},methods:{getMigratingConfig:function(){return{props:{},events:{}}}}}},e2d6:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},n=function(e){return function(n){return t(n)===e}},r=function(e){return function(t){return typeof t===e}},i=n("string"),o=r("boolean"),a=function(e){return null===e||void 0===e},s=function(e){return!a(e)},l=r("function"),u=r("number"),c=function(){},f=function(e,t){return function(n){return e(t(n))}},d=function(e){return function(){return e}},h=function(e){return e},p=d(!1),m=d(!0),g=function(){return v},v=function(){var e=function(e){return e()},t=h,n={fold:function(e,t){return e()},isSome:p,isNone:m,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:d(null),getOrUndefined:d(void 0),or:t,orThunk:e,map:g,each:c,bind:g,exists:p,forall:m,filter:function(){return g()},toArray:function(){return[]},toString:d("none()")};return n}(),b=function(e){var t=d(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},isSome:m,isNone:p,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return b(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:v},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return i},y=function(e){return null===e||void 0===e?v:b(e)},w={some:b,none:g,from:y},_=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r},C=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];t(i,n)}},x=function(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];t(o,r)&&n.push(o)}return n},S=9,k=11,D=1,O=3,T=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return N(r.childNodes[0])},E=function(e,t){var n=t||document,r=n.createElement(e);return N(r)},I=function(e,t){var n=t||document,r=n.createTextNode(e);return N(r)},N=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},A=function(e,t,n){return w.from(e.dom.elementFromPoint(t,n)).map(N)},P={fromHtml:T,fromTag:E,fromText:I,fromDom:N,fromPoint:A},M=function(e,t){var n=e.dom;if(n.nodeType!==D)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")};"undefined"!==typeof window?window:Function("return this;")();var R=function(e){var t=e.dom.nodeName;return t.toLowerCase()},F=function(e){return e.dom.nodeType},B=function(e){return function(t){return F(t)===e}},L=B(D),$=B(O),V=B(S),j=B(k),z=function(e){return function(t){return L(t)&&R(t)===e}},H=function(e){return P.fromDom(e.dom.ownerDocument)},U=function(e){return V(e)?e:H(e)},W=function(e){return w.from(e.dom.parentNode).map(P.fromDom)},q=function(e){return _(e.dom.childNodes,P.fromDom)},G=function(e,t,n){if(!(i(n)||o(n)||u(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},Y=function(e,t,n){G(e.dom,t,n)},K=function(e,t){e.dom.removeAttribute(t)},X=function(e){return j(e)&&s(e.dom.host)},J=l(Element.prototype.attachShadow)&&l(Node.prototype.getRootNode),Z=J?function(e){return P.fromDom(e.dom.getRootNode())}:U,Q=function(e){var t=Z(e);return X(t)?w.some(t):w.none()},ee=function(e){return P.fromDom(e.dom.host)},te=function(e){var t=$(e)?e.dom.parentNode:e.dom;if(void 0===t||null===t||null===t.ownerDocument)return!1;var n=t.ownerDocument;return Q(P.fromDom(t)).fold((function(){return n.body.contains(t)}),f(te,ee))},ne=function(e,t,n){var r=e.dom,i=l(n)?n:p;while(r.parentNode){r=r.parentNode;var o=P.fromDom(r);if(t(o))return w.some(o);if(i(o))break}return w.none()},re=function(e,t,n){return ne(e,(function(e){return M(e,t)}),n)},ie=function(e){return void 0!==e.style&&l(e.style.getPropertyValue)},oe=function(e,t){var n=e.dom,r=window.getComputedStyle(n),i=r.getPropertyValue(t);return""!==i||te(e)?i:ae(n,t)},ae=function(e,t){return ie(e)?e.style.getPropertyValue(t):""},se=function(e){return"rtl"===oe(e,"direction")?"rtl":"ltr"},le=function(e,t){return x(q(e),t)},ue=function(e,t){return le(e,(function(e){return M(e,t)}))},ce=function(e){return W(e).filter(L)},fe=function(e,t){var n=t?re(e,"ol,ul"):w.some(e);return n.getOr(e)},de=z("li"),he=function(e,t){var n=e.selection.getSelectedBlocks();n.length>0&&(C(n,(function(e){var n=P.fromDom(e),r=de(n),i=fe(n,r),o=ce(i);o.each((function(e){var n=se(e);if(n!==t?Y(i,"dir",t):se(i)!==t&&K(i,"dir"),r){var o=ue(i,"li[dir]");C(o,(function(e){return K(e,"dir")}))}}))})),e.nodeChanged())},pe=function(e){e.addCommand("mceDirectionLTR",(function(){he(e,"ltr")})),e.addCommand("mceDirectionRTL",(function(){he(e,"rtl")}))},me=function(e,t){return function(n){var r=function(e){var r=P.fromDom(e.element);n.setActive(se(r)===t)};return e.on("NodeChange",r),function(){return e.off("NodeChange",r)}}},ge=function(e){e.ui.registry.addToggleButton("ltr",{tooltip:"Left to right",icon:"ltr",onAction:function(){return e.execCommand("mceDirectionLTR")},onSetup:me(e,"ltr")}),e.ui.registry.addToggleButton("rtl",{tooltip:"Right to left",icon:"rtl",onAction:function(){return e.execCommand("mceDirectionRTL")},onSetup:me(e,"rtl")})};function ve(){e.add("directionality",(function(e){pe(e),ge(e)}))}ve()})()},e33b:function(e,t){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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="/dist/",n(n.s=112)}({1:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var l,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},112:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("button",{staticClass:"el-button",class:[e.type?"el-button--"+e.type:"",e.buttonSize?"el-button--"+e.buttonSize:"",{"is-disabled":e.buttonDisabled,"is-loading":e.loading,"is-plain":e.plain,"is-round":e.round,"is-circle":e.circle}],attrs:{disabled:e.buttonDisabled||e.loading,autofocus:e.autofocus,type:e.nativeType},on:{click:e.handleClick}},[e.loading?n("i",{staticClass:"el-icon-loading"}):e._e(),e.icon&&!e.loading?n("i",{class:e.icon}):e._e(),e.$slots.default?n("span",[e._t("default")],2):e._e()])};r._withStripped=!0;var i={name:"ElButton",inject:{elForm:{default:""},elFormItem:{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:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},buttonSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},buttonDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},methods:{handleClick:function(e){this.$emit("click",e)}}},o=n(1),a=Object(o.a)(i,r,[],!1,null,null,null);a.options.__file="packages/button/src/button.vue";var s=a.exports;s.install=function(e){e.component(s.name,s)},t.default=s}})},e34f:function(e,t,n){},e3f3:function(e,t,n){"use strict";var r=n("f505"),i=n("a793"),o=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(e){function t(t,n){return void 0===t&&(t=500),e.call(this,new i["a"](n),t,n)||this}o(t,e)})(r["a"])},e433:function(e,t){tinymce.addI18n("zh-Hans",{Redo:"重做",Undo:"撤销",Cut:"剪切",Copy:"复制",Paste:"粘贴","Select all":"全选","New document":"新建文档",Ok:"确定",Cancel:"取消","Visual aids":"网格线",Bold:"粗体",Italic:"斜体",Underline:"下划线",Strikethrough:"删除线",Superscript:"上标",Subscript:"下标","Clear formatting":"清除格式",Remove:"移除","Align left":"左对齐","Align center":"居中对齐","Align right":"右对齐","No alignment":"未对齐",Justify:"两端对齐","Bullet list":"无序列表","Numbered list":"有序列表","Decrease indent":"减少缩进","Increase indent":"增加缩进",Close:"关闭",Formats:"格式","Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.":"你的浏览器不支持打开剪贴板,请使用Ctrl+X/C/V等快捷键。",Headings:"标题","Heading 1":"一级标题","Heading 2":"二级标题","Heading 3":"三级标题","Heading 4":"四级标题","Heading 5":"五级标题","Heading 6":"六级标题",Preformatted:"预先格式化的",Div:"Div",Pre:"前言",Code:"代码",Paragraph:"段落",Blockquote:"引文区块",Inline:"文本",Blocks:"样式","Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.":"当前为纯文本粘贴模式,再次点击可以回到普通粘贴模式。",Fonts:"字体","Font sizes":"字体大小",Class:"类型","Browse for an image":"浏览图像",OR:"或","Drop an image here":"拖放一张图像至此",Upload:"上传","Uploading image":"上传图片",Block:"块",Align:"对齐",Default:"预设",Circle:"空心圆",Disc:"实心圆",Square:"实心方块","Lower Alpha":"小写英文字母","Lower Greek":"小写希腊字母","Lower Roman":"小写罗马数字","Upper Alpha":"大写英文字母","Upper Roman":"大写罗马数字","Anchor...":"锚点...",Anchor:"锚点",Name:"名称",ID:"ID","ID should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores.":"ID应该以英文字母开头,后面只能有英文字母、数字、破折号、点、冒号或下划线。","You have unsaved changes are you sure you want to navigate away?":"你还有文档尚未保存,确定要离开?","Restore last draft":"恢复上次的草稿","Special character...":"特殊字符...","Special Character":"特殊字符","Source code":"源代码","Insert/Edit code sample":"插入/编辑代码示例",Language:"语言","Code sample...":"示例代码...","Left to right":"由左到右","Right to left":"由右到左",Title:"标题",Fullscreen:"全屏",Action:"动作",Shortcut:"快捷方式",Help:"帮助",Address:"地址","Focus to menubar":"移动焦点到菜单栏","Focus to toolbar":"移动焦点到工具栏","Focus to element path":"移动焦点到元素路径","Focus to contextual toolbar":"移动焦点到上下文菜单","Insert link (if link plugin activated)":"插入链接 (如果链接插件已激活)","Save (if save plugin activated)":"保存(如果保存插件已激活)","Find (if searchreplace plugin activated)":"查找(如果查找替换插件已激活)","Plugins installed ({0}):":"已安装插件 ({0}):","Premium plugins:":"优秀插件:","Learn more...":"了解更多...","You are using {0}":"你正在使用 {0}",Plugins:"插件","Handy Shortcuts":"快捷键","Horizontal line":"水平分割线","Insert/edit image":"插入/编辑图片","Alternative description":"替代描述",Accessibility:"辅助功能","Image is decorative":"图像是装饰性的",Source:"源",Dimensions:"尺寸","Constrain proportions":"保持比例",General:"一般",Advanced:"高级",Style:"样式","Vertical space":"垂直间距","Horizontal space":"水平间距",Border:"框线","Insert image":"插入图片","Image...":"图片...","Image list":"图片清单",Resize:"调整大小","Insert date/time":"插入日期/时间","Date/time":"日期/时间","Insert/edit link":"插入/编辑链接","Text to display":"要显示的文本",Url:"地址","Open link in...":"链接打开位置...","Current window":"当前窗口",None:"无","New window":"新窗口","Open link":"打开链接","Remove link":"移除链接",Anchors:"锚点","Link...":"链接...","Paste or type a link":"粘贴或输入链接","The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?":"你所填写的URL地址为邮件地址,需要加上mailto: 前缀吗?","The URL you entered seems to be an external link. Do you want to add the required http:// prefix?":"你所填写的URL地址属于外部链接,需要加上http:// 前缀吗?","The URL you entered seems to be an external link. Do you want to add the required https:// prefix?":"您输入的 URL 似乎是一个外部链接。您想添加所需的 https:// 前缀吗?","Link list":"链接清单","Insert video":"插入视频","Insert/edit video":"插入/编辑视频","Insert/edit media":"插入/编辑媒体","Alternative source":"镜像","Alternative source URL":"替代来源网址","Media poster (Image URL)":"封面(图片地址)","Paste your embed code below:":"将内嵌代码粘贴在下面:",Embed:"内嵌","Media...":"多媒体...","Nonbreaking space":"不间断空格","Page break":"分页符","Paste as text":"粘贴为文本",Preview:"预览",Print:"打印","Print...":"打印...",Save:"保存",Find:"寻找","Replace with":"替换为",Replace:"替换","Replace all":"替换全部",Previous:"上一个",Next:"下一个","Find and Replace":"查找和替换","Find and replace...":"查找并替换...","Could not find the specified string.":"未找到搜索内容。","Match case":"大小写匹配","Find whole words only":"全字匹配","Find in selection":"在选区中查找","Insert table":"插入表格","Table properties":"表格属性","Delete table":"删除表格",Cell:"单元格",Row:"行",Column:"栏目","Cell properties":"单元格属性","Merge cells":"合并单元格","Split cell":"拆分单元格","Insert row before":"在上方插入行","Insert row after":"在下方插入行","Delete row":"删除行","Row properties":"行属性","Cut row":"剪切行","Cut column":"剪切列","Copy row":"复制行","Copy column":"复制列","Paste row before":"粘贴行到上方","Paste column before":"粘贴此列前","Paste row after":"粘贴行到下方","Paste column after":"粘贴后面的列","Insert column before":"在左侧插入列","Insert column after":"在右侧插入列","Delete column":"删除列",Cols:"列",Rows:"行数",Width:"宽度",Height:"高度","Cell spacing":"单元格外间距","Cell padding":"单元格内边距","Row clipboard actions":"行剪贴板操作","Column clipboard actions":"列剪贴板操作","Table styles":"表格样式","Cell styles":"单元格样式","Column header":"列标题","Row header":"行头","Table caption":"表格标题",Caption:"标题","Show caption":"显示标题",Left:"左",Center:"居中",Right:"右","Cell type":"储存格别",Scope:"范围",Alignment:"对齐","Horizontal align":"水平对齐","Vertical align":"垂直对齐",Top:"上方对齐",Middle:"居中对齐",Bottom:"下方对齐","Header cell":"表头单元格","Row group":"行组","Column group":"列组","Row type":"行类型",Header:"表头",Body:"表体",Footer:"表尾","Border color":"框线颜色",Solid:"实线",Dotted:"虚线",Dashed:"虚线",Double:"双精度",Groove:"凹槽",Ridge:"海脊座",Inset:"嵌入",Outset:"外置",Hidden:"隐藏","Insert template...":"插入模板...",Templates:"模板",Template:"模板","Insert Template":"插入模板","Text color":"文本颜色","Background color":"背景颜色","Custom...":"自定义......","Custom color":"自定义颜色","No color":"无","Remove color":"移除颜色","Show blocks":"显示区块边框","Show invisible characters":"显示不可见字符","Word count":"字数",Count:"计数",Document:"文档",Selection:"选择",Words:"单词","Words: {0}":"字数:{0}","{0} words":"{0} 字",File:"文件",Edit:"编辑",Insert:"插入",View:"查看",Format:"格式",Table:"表格",Tools:"工具","Powered by {0}":"由{0}驱动","Rich Text Area. Press ALT-F9 for menu. Press ALT-F10 for toolbar. Press ALT-0 for help":"编辑区。按ALT-F9打开菜单,按ALT-F10打开工具栏,按ALT-0查看帮助","Image title":"图片标题","Border width":"边框宽度","Border style":"边框样式",Error:"错误",Warn:"警告",Valid:"有效","To open the popup, press Shift+Enter":"按Shitf+Enter键打开对话框","Rich Text Area":"富文本区域","Rich Text Area. Press ALT-0 for help.":"编辑区。按Alt+0键打开帮助。","System Font":"系统字体","Failed to upload image: {0}":"图片上传失败: {0}","Failed to load plugin: {0} from url {1}":"插件加载失败: {0} 来自链接 {1}","Failed to load plugin url: {0}":"插件加载失败 链接: {0}","Failed to initialize plugin: {0}":"插件初始化失败: {0}",example:"示例",Search:"搜索",All:"全部",Currency:"货币",Text:"文字",Quotations:"引用",Mathematical:"数学","Extended Latin":"拉丁语扩充",Symbols:"符号",Arrows:"箭头","User Defined":"自定义","dollar sign":"美元符号","currency sign":"货币符号","euro-currency sign":"欧元符号","colon sign":"冒号","cruzeiro sign":"克鲁赛罗币符号","french franc sign":"法郎符号","lira sign":"里拉符号","mill sign":"密尔符号","naira sign":"奈拉符号","peseta sign":"比塞塔符号","rupee sign":"卢比符号","won sign":"韩元符号","new sheqel sign":"新谢克尔符号","dong sign":"越南盾符号","kip sign":"老挝基普符号","tugrik sign":"图格里克符号","drachma sign":"德拉克马符号","german penny symbol":"德国便士符号","peso sign":"比索符号","guarani sign":"瓜拉尼符号","austral sign":"澳元符号","hryvnia sign":"格里夫尼亚符号","cedi sign":"塞地符号","livre tournois sign":"里弗弗尔符号","spesmilo sign":"spesmilo符号","tenge sign":"坚戈符号","indian rupee sign":"印度卢比","turkish lira sign":"土耳其里拉","nordic mark sign":"北欧马克","manat sign":"马纳特符号","ruble sign":"卢布符号","yen character":"日元字样","yuan character":"人民币元字样","yuan character, in hong kong and taiwan":"元字样(港台地区)","yen/yuan character variant one":"元字样(大写)",Emojis:"Emojis","Emojis...":"Emojis...","Loading emojis...":"正在加载Emojis...","Could not load emojis":"无法加载Emojis",People:"人类","Animals and Nature":"动物和自然","Food and Drink":"食物和饮品",Activity:"活动","Travel and Places":"旅游和地点",Objects:"物件",Flags:"旗帜",Characters:"字符","Characters (no spaces)":"字符(无空格)","{0} characters":"{0} 个字符","Error: Form submit field collision.":"错误: 表单提交字段冲突。","Error: No form element found.":"错误: 没有表单控件。","Color swatch":"颜色样本","Color Picker":"选色器","Invalid hex color code: {0}":"十六进制颜色代码无效: {0}","Invalid input":"无效输入",R:"R","Red component":"红色部分",G:"G","Green component":"绿色部分",B:"B","Blue component":"白色部分","#":"#","Hex color code":"十六进制颜色代码","Range 0 to 255":"范围0至255",Turquoise:"青绿色",Green:"绿色",Blue:"蓝色",Purple:"紫色","Navy Blue":"海军蓝","Dark Turquoise":"深蓝绿色","Dark Green":"深绿色","Medium Blue":"中蓝色","Medium Purple":"中紫色","Midnight Blue":"深蓝色",Yellow:"黄色",Orange:"橙色",Red:"红色","Light Gray":"浅灰色",Gray:"灰色","Dark Yellow":"暗黄色","Dark Orange":"深橙色","Dark Red":"深红色","Medium Gray":"中灰色","Dark Gray":"深灰色","Light Green":"浅绿色","Light Yellow":"浅黄色","Light Red":"浅红色","Light Purple":"浅紫色","Light Blue":"浅蓝色","Dark Purple":"深紫色","Dark Blue":"深蓝色",Black:"黑色",White:"白色","Switch to or from fullscreen mode":"切换全屏模式","Open help dialog":"打开帮助对话框",history:"历史",styles:"样式",formatting:"格式化",alignment:"对齐",indentation:"缩进",Font:"字体",Size:"字号","More...":"更多...","Select...":"选择...",Preferences:"首选项",Yes:"是",No:"否","Keyboard Navigation":"键盘指引",Version:"版本","Code view":"代码视图","Open popup menu for split buttons":"打开弹出式菜单,用于拆分按钮","List Properties":"列表属性","List properties...":"标题字体属性","Start list at number":"以数字开始列表","Line height":"行高","Dropped file type is not supported":"此文件类型不支持拖放","Loading...":"加载中...","ImageProxy HTTP error: Rejected request":"图片代理请求错误:请求被拒绝","ImageProxy HTTP error: Could not find Image Proxy":"图片代理请求错误:无法找到图片代理","ImageProxy HTTP error: Incorrect Image Proxy URL":"图片代理请求错误:图片代理地址错误","ImageProxy HTTP error: Unknown ImageProxy error":"图片代理请求错误:未知的图片代理错误"})},e4ae:function(e,t,n){var r=n("f772");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},e4f9:function(e,t,n){"use strict";var r=n("aa17"),i=n("bb6f"),o=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),a=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.count=0,i.finderPattern=r,i}return o(t,e),t.prototype.getFinderPattern=function(){return this.finderPattern},t.prototype.getCount=function(){return this.count},t.prototype.incrementCount=function(){this.count++},t}(i["a"]),s=a,l=n("2f50"),u=n("fe96"),c=n("ca08"),f=n("6530"),d=n("a363"),h=n("8c95"),p=n("929b"),m=n("fb63"),g=n("1533"),v=n("63af"),b=n("0b81"),y=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),w=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.possibleLeftPairs=[],t.possibleRightPairs=[],t}return y(t,e),t.prototype.decodeRow=function(e,n,r){var i,o,a,s,l=this.decodePair(n,!1,e,r);t.addOrTally(this.possibleLeftPairs,l),n.reverse();var u=this.decodePair(n,!0,e,r);t.addOrTally(this.possibleRightPairs,u),n.reverse();try{for(var f=w(this.possibleLeftPairs),d=f.next();!d.done;d=f.next()){var h=d.value;if(h.getCount()>1)try{for(var p=(a=void 0,w(this.possibleRightPairs)),m=p.next();!m.done;m=p.next()){var g=m.value;if(g.getCount()>1&&t.checkChecksum(h,g))return t.constructResult(h,g)}}catch(v){a={error:v}}finally{try{m&&!m.done&&(s=p.return)&&s.call(p)}finally{if(a)throw a.error}}}}catch(b){i={error:b}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}throw new c["a"]},t.addOrTally=function(e,t){var n,r;if(null!=t){var i=!1;try{for(var o=w(e),a=o.next();!a.done;a=o.next()){var s=a.value;if(s.getValue()===t.getValue()){s.incrementCount(),i=!0;break}}}catch(l){n={error:l}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}i||e.push(t)}},t.prototype.reset=function(){this.possibleLeftPairs.length=0,this.possibleRightPairs.length=0},t.constructResult=function(e,t){for(var n=4537077*e.getValue()+t.getValue(),r=new String(n).toString(),i=new f["a"],o=13-r.length;o>0;o--)i.append("0");i.append(r);var a=0;for(o=0;o<13;o++){var s=i.charAt(o).charCodeAt(0)-"0".charCodeAt(0);a+=0===(1&o)?3*s:s}a=10-a%10,10===a&&(a=0),i.append(a.toString());var u=e.getFinderPattern().getResultPoints(),c=t.getFinderPattern().getResultPoints();return new l["a"](i.toString(),null,0,[u[0],u[1],c[0],c[1]],d["a"].RSS_14,(new Date).getTime())},t.checkChecksum=function(e,t){var n=(e.getChecksumPortion()+16*t.getChecksumPortion())%79,r=9*e.getFinderPattern().getValue()+t.getFinderPattern().getValue();return r>72&&r--,r>8&&r--,n===r},t.prototype.decodePair=function(e,t,n,r){try{var i=this.findFinderPattern(e,t),o=this.parseFoundFinderPattern(e,n,t,i),a=null==r?null:r.get(u["a"].NEED_RESULT_POINT_CALLBACK);if(null!=a){var l=(i[0]+i[1])/2;t&&(l=e.getSize()-1-l),a.foundPossibleResultPoint(new h["a"](l,n))}var c=this.decodeDataCharacter(e,o,!0),f=this.decodeDataCharacter(e,o,!1);return new s(1597*c.getValue()+f.getValue(),c.getChecksumPortion()+4*f.getChecksumPortion(),o)}catch(d){return null}},t.prototype.decodeDataCharacter=function(e,n,r){for(var o=this.getDataCharacterCounters(),a=0;a<o.length;a++)o[a]=0;if(r)b["a"].recordPatternInReverse(e,n.getStartEnd()[0],o);else{b["a"].recordPattern(e,n.getStartEnd()[1]+1,o);for(var s=0,l=o.length-1;s<l;s++,l--){var u=o[s];o[s]=o[l],o[l]=u}}var f=r?16:15,d=m["a"].sum(new Int32Array(o))/f,h=this.getOddCounts(),p=this.getEvenCounts(),v=this.getOddRoundingErrors(),y=this.getEvenRoundingErrors();for(s=0;s<o.length;s++){var w=o[s]/d,_=Math.floor(w+.5);_<1?_=1:_>8&&(_=8);var C=Math.floor(s/2);0===(1&s)?(h[C]=_,v[C]=w-_):(p[C]=_,y[C]=w-_)}this.adjustOddEvenCounts(r,f);var x=0,S=0;for(s=h.length-1;s>=0;s--)S*=9,S+=h[s],x+=h[s];var k=0,D=0;for(s=p.length-1;s>=0;s--)k*=9,k+=p[s],D+=p[s];var O=S+3*k;if(r){if(0!==(1&x)||x>12||x<4)throw new c["a"];var T=(12-x)/2,E=t.OUTSIDE_ODD_WIDEST[T],I=9-E,N=g["a"].getRSSvalue(h,E,!1),A=g["a"].getRSSvalue(p,I,!0),P=t.OUTSIDE_EVEN_TOTAL_SUBSET[T],M=t.OUTSIDE_GSUM[T];return new i["a"](N*P+A+M,O)}if(0!==(1&D)||D>10||D<4)throw new c["a"];T=(10-D)/2,E=t.INSIDE_ODD_WIDEST[T],I=9-E,N=g["a"].getRSSvalue(h,E,!0),A=g["a"].getRSSvalue(p,I,!1);var R=t.INSIDE_ODD_TOTAL_SUBSET[T];M=t.INSIDE_GSUM[T];return new i["a"](A*R+N+M,O)},t.prototype.findFinderPattern=function(e,t){var n=this.getDecodeFinderCounters();n[0]=0,n[1]=0,n[2]=0,n[3]=0;var i=e.getSize(),o=!1,a=0;while(a<i){if(o=!e.get(a),t===o)break;a++}for(var s=0,l=a,u=a;u<i;u++)if(e.get(u)!==o)n[s]++;else{if(3===s){if(r["a"].isFinderPattern(n))return[l,u];l+=n[0]+n[1],n[0]=n[2],n[1]=n[3],n[2]=0,n[3]=0,s--}else s++;n[s]=1,o=!o}throw new c["a"]},t.prototype.parseFoundFinderPattern=function(e,n,r,i){var o=e.get(i[0]),a=i[0]-1;while(a>=0&&o!==e.get(a))a--;a++;var s=i[0]-a,l=this.getDecodeFinderCounters(),u=new Int32Array(l.length);v["a"].arraycopy(l,0,u,1,l.length-1),u[0]=s;var c=this.parseFinderValue(u,t.FINDER_PATTERNS),f=a,d=i[1];return r&&(f=e.getSize()-1-f,d=e.getSize()-1-d),new p["a"](c,[a,i[1]],f,d,n)},t.prototype.adjustOddEvenCounts=function(e,t){var n=m["a"].sum(new Int32Array(this.getOddCounts())),i=m["a"].sum(new Int32Array(this.getEvenCounts())),o=!1,a=!1,s=!1,l=!1;e?(n>12?a=!0:n<4&&(o=!0),i>12?l=!0:i<4&&(s=!0)):(n>11?a=!0:n<5&&(o=!0),i>10?l=!0:i<4&&(s=!0));var u=n+i-t,f=(1&n)===(e?1:0),d=1===(1&i);if(1===u)if(f){if(d)throw new c["a"];a=!0}else{if(!d)throw new c["a"];l=!0}else if(-1===u)if(f){if(d)throw new c["a"];o=!0}else{if(!d)throw new c["a"];s=!0}else{if(0!==u)throw new c["a"];if(f){if(!d)throw new c["a"];n<i?(o=!0,l=!0):(a=!0,s=!0)}else if(d)throw new c["a"]}if(o){if(a)throw new c["a"];r["a"].increment(this.getOddCounts(),this.getOddRoundingErrors())}if(a&&r["a"].decrement(this.getOddCounts(),this.getOddRoundingErrors()),s){if(l)throw new c["a"];r["a"].increment(this.getEvenCounts(),this.getOddRoundingErrors())}l&&r["a"].decrement(this.getEvenCounts(),this.getEvenRoundingErrors())},t.OUTSIDE_EVEN_TOTAL_SUBSET=[1,10,34,70,126],t.INSIDE_ODD_TOTAL_SUBSET=[4,20,48,81],t.OUTSIDE_GSUM=[0,161,961,2015,2715],t.INSIDE_GSUM=[0,336,1036,1516],t.OUTSIDE_ODD_WIDEST=[8,6,4,3,1],t.INSIDE_ODD_WIDEST=[2,4,6,8],t.FINDER_PATTERNS=[Int32Array.from([3,8,2,1]),Int32Array.from([3,5,5,1]),Int32Array.from([3,3,7,1]),Int32Array.from([3,1,9,1]),Int32Array.from([2,7,4,1]),Int32Array.from([2,5,6,1]),Int32Array.from([2,3,8,1]),Int32Array.from([1,5,7,1]),Int32Array.from([1,3,9,1])],t}(r["a"]);t["a"]=_},e53d:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},e5da:function(e,t,n){"use strict";t.__esModule=!0,t.default=a;var r=n("8bbf"),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!i.default.prototype.$isServer)if(t){var n=[],r=t.offsetParent;while(r&&e!==r&&e.contains(r))n.push(r),r=r.offsetParent;var o=t.offsetTop+n.reduce((function(e,t){return e+t.offsetTop}),0),a=o+t.offsetHeight,s=e.scrollTop,l=s+e.clientHeight;o<s?e.scrollTop=o:a>l&&(e.scrollTop=a-e.clientHeight)}else e.scrollTop=0}},e692:function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},e6f3:function(e,t,n){var r=n("07e3"),i=n("36c3"),o=n("5b4e")(!1),a=n("5559")("IE_PROTO");e.exports=function(e,t){var n,s=i(e),l=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);while(t.length>l)r(s,n=t[l++])&&(~o(u,n)||u.push(n));return u}},e853:function(e,t,n){var r=n("d3f4"),i=n("1169"),o=n("2b4c")("species");e.exports=function(e){var t;return i(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!i(t.prototype)||(t=void 0),r(t)&&(t=t[o],null===t&&(t=void 0))),void 0===t?Array:t}},e8b0:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e){return e},n=function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},r="\ufeff",i=function(e){return e.replace(/\uFEFF/g,"")},o=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r},a="[!-#%-*,-\\/:;?@\\[-\\]_{}¡«·»¿;·՚-՟։֊־׀׃׆׳״؉؊،؍؛؞؟٪-٭۔܀-܍߷-߹࠰-࠾࡞।॥॰෴๏๚๛༄-༒༺-༽྅࿐-࿔࿙࿚၊-၏჻፡-፨᐀᙭᙮᚛᚜᛫-᛭᜵᜶។-៖៘-៚᠀-᠊᥄᥅᨞᨟᪠-᪦᪨-᪭᭚-᭠᯼-᯿᰻-᰿᱾᱿᳓‐-‧‰-⁃⁅-⁑⁓-⁞⁽⁾₍₎〈〉❨-❵⟅⟆⟦-⟯⦃-⦘⧘-⧛⧼⧽⳹-⳼⳾⳿⵰⸀-⸮⸰⸱、-〃〈-】〔-〟〰〽゠・꓾꓿꘍-꘏꙳꙾꛲-꛷꡴-꡷꣎꣏꣸-꣺꤮꤯꥟꧁-꧍꧞꧟꩜-꩟꫞꫟꯫﴾﴿︐-︙︰-﹒﹔-﹡﹣﹨﹪﹫!-#%-*,-/:;?@[-]_{}⦅-・]",s={aletter:"[A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-׳ؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆༀཀ-ཇཉ-ཬྈ-ྌႠ-Ⴥა-ჺჼᄀ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᨀ-ᨖᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᯀ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⒶ-ⓩⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⴀ-ⴥⴰ-ⵥⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〻〼ㄅ-ㄭㄱ-ㆎㆠ-ㆺꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐꞑꞠ-ꞩꟺ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]",midnumlet:"[-'\\.‘’․﹒'.]",midletter:"[:··״‧︓﹕:]",midnum:"[±+*/,;;։،؍٬߸⁄︐︔﹐﹔,;]",numeric:"[0-9٠-٩٫۰-۹߀-߉०-९০-৯੦-੯૦-૯୦-୯௦-௯౦-౯೦-೯൦-൯๐-๙໐-໙༠-༩၀-၉႐-႙០-៩᠐-᠙᥆-᥏᧐-᧙᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙꘠-꘩꣐-꣙꤀-꤉꧐-꧙꩐-꩙꯰-꯹]",cr:"\\r",lf:"\\n",newline:"[\v\f
\u2028\u2029]",extend:"[̀-ͯ҃-҉֑-ׇֽֿׁׂׅׄؐ-ًؚ-ٰٟۖ-ۜ۟-۪ۤۧۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ऀ-ःऺ-़ा-ॏ॑-ॗॢॣঁ-ঃ়া-ৄেৈো-্ৗৢৣਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑੰੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣஂா-ூெ-ைொ-்ௗఁ-ఃా-ౄె-ైొ-్ౕౖౢౣಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣംഃാ-ൄെ-ൈൊ-്ൗൢൣංඃ්ා-ුූෘ-ෟෲෳัิ-ฺ็-๎ັິ-ູົຼ່-ໍ༹༘༙༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏႚ-ႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳា-៓៝᠋-᠍ᢩᤠ-ᤫᤰ-᤻ᦰ-ᧀᧈᧉᨗ-ᨛᩕ-ᩞ᩠-᩿᩼ᬀ-ᬄ᬴-᭄᭫-᭳ᮀ-ᮂᮡ-᯦᮪-᯳ᰤ-᰷᳐-᳔᳒-᳨᳭ᳲ᷀-ᷦ᷼-᷿⃐-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꙯-꙲꙼꙽꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-꣄꣠-꣱ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀ꨩ-ꨶꩃꩌꩍꩻꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꯣ-ꯪ꯬꯭ﬞ︀-️︠-゙゚︦]",format:"[-឴឵---\ufeff-]",katakana:"[〱-〵゛゜゠-ヺー-ヿㇰ-ㇿ㋐-㋾㌀-㍗ヲ-ン]",extendnumlet:"[=_‿⁀⁔︳︴﹍-﹏_∀-⋿<>]",punctuation:a},l={ALETTER:0,MIDNUMLET:1,MIDLETTER:2,MIDNUM:3,NUMERIC:4,CR:5,LF:6,NEWLINE:7,EXTEND:8,FORMAT:9,KATAKANA:10,EXTENDNUMLET:11,AT:12,OTHER:13},u=[new RegExp(s.aletter),new RegExp(s.midnumlet),new RegExp(s.midletter),new RegExp(s.midnum),new RegExp(s.numeric),new RegExp(s.cr),new RegExp(s.lf),new RegExp(s.newline),new RegExp(s.extend),new RegExp(s.format),new RegExp(s.katakana),new RegExp(s.extendnumlet),new RegExp("@")],c="",f=new RegExp("^"+s.punctuation+"$"),d=/^\s+$/,h=u,p=l.OTHER,m=function(e){for(var t=p,n=h.length,r=0;r<n;++r){var i=h[r];if(i&&i.test(e)){t=r;break}}return t},g=function(e){var t={};return function(n){if(t[n])return t[n];var r=e(n);return t[n]=r,r}},v=function(e){var t=g(m);return o(e,t)},b=function(e,t){var n=e[t],r=e[t+1];if(t<0||t>e.length-1&&0!==t)return!1;if(n===l.ALETTER&&r===l.ALETTER)return!1;var i=e[t+2];if(n===l.ALETTER&&(r===l.MIDLETTER||r===l.MIDNUMLET||r===l.AT)&&i===l.ALETTER)return!1;var o=e[t-1];return(n!==l.MIDLETTER&&n!==l.MIDNUMLET&&r!==l.AT||r!==l.ALETTER||o!==l.ALETTER)&&((n!==l.NUMERIC&&n!==l.ALETTER||r!==l.NUMERIC&&r!==l.ALETTER)&&((n!==l.MIDNUM&&n!==l.MIDNUMLET||r!==l.NUMERIC||o!==l.NUMERIC)&&((n!==l.NUMERIC||r!==l.MIDNUM&&r!==l.MIDNUMLET||i!==l.NUMERIC)&&(n!==l.EXTEND&&n!==l.FORMAT&&o!==l.EXTEND&&o!==l.FORMAT&&r!==l.EXTEND&&r!==l.FORMAT&&((n!==l.CR||r!==l.LF)&&(n===l.NEWLINE||n===l.CR||n===l.LF||(r===l.NEWLINE||r===l.CR||r===l.LF||(n!==l.KATAKANA||r!==l.KATAKANA)&&((r!==l.EXTENDNUMLET||n!==l.ALETTER&&n!==l.NUMERIC&&n!==l.KATAKANA&&n!==l.EXTENDNUMLET)&&((n!==l.EXTENDNUMLET||r!==l.ALETTER&&r!==l.NUMERIC&&r!==l.KATAKANA)&&n!==l.AT)))))))))},y=c,w=d,_=f,C=function(e){return"http"===e||"https"===e},x=function(e,t){var n;for(n=t;n<e.length;n++)if(w.test(e[n]))break;return n},S=function(e,t){var n=x(e,t+1),r=e.slice(t+1,n).join(y);return"://"===r.substr(0,3)?n:t},k=function(e,t,n,r){for(var i=[],o=[],a=0;a<n.length;++a)if(o.push(e[a]),b(n,a)){var s=t[a];if((r.includeWhitespace||!w.test(s))&&(r.includePunctuation||!_.test(s))){var l=a-o.length+1,u=a+1,c=t.slice(l,u).join(y);if(C(c)){var f=S(t,a),d=e.slice(u,f);Array.prototype.push.apply(o,d),a=f}i.push(o)}o=[]}return i},D=function(){return{includeWhitespace:!1,includePunctuation:!1}},O=function(e,t,i){i=n(n({},D()),i);for(var o=[],a=[],s=0;s<e.length;s++){var l=t(e[s]);l!==r&&(o.push(e[s]),a.push(l))}var u=v(a);return k(o,a,u,i)},T=O,E=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),I=function(e,t){var n=t.getBlockElements(),r=t.getShortEndedElements(),o=function(e){return n[e.nodeName]||r[e.nodeName]},a=[],s="",l=new E(e,e);while(e=l.next())3===e.nodeType?s+=i(e.data):o(e)&&s.length&&(a.push(s),s="");return s.length&&a.push(s),a},N=function(e){return e.replace(/\u200B/g,"")},A=function(e){return e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length},P=function(e,n){var r=N(I(e,n).join("\n"));return T(r.split(""),t).length},M=function(e,t){var n=I(e,t).join("");return A(n)},R=function(e,t){var n=I(e,t).join("").replace(/\s/g,"");return A(n)},F=function(e,t){return function(){return t(e.getBody(),e.schema)}},B=function(e,t){return function(){return t(e.selection.getRng().cloneContents(),e.schema)}},L=function(e){return F(e,P)},$=function(e){return{body:{getWordCount:L(e),getCharacterCount:F(e,M),getCharacterCountWithoutSpaces:F(e,R)},selection:{getWordCount:B(e,P),getCharacterCount:B(e,M),getCharacterCountWithoutSpaces:B(e,R)},getCount:L(e)}},V=function(e,t){e.windowManager.open({title:"Word Count",body:{type:"panel",items:[{type:"table",header:["Count","Document","Selection"],cells:[["Words",String(t.body.getWordCount()),String(t.selection.getWordCount())],["Characters (no spaces)",String(t.body.getCharacterCountWithoutSpaces()),String(t.selection.getCharacterCountWithoutSpaces())],["Characters",String(t.body.getCharacterCount()),String(t.selection.getCharacterCount())]]}]},buttons:[{type:"cancel",name:"close",text:"Close",primary:!0}]})},j=function(e,t){e.addCommand("mceWordCount",(function(){return V(e,t)}))},z=tinymce.util.Tools.resolve("tinymce.util.Delay"),H=function(e,t){e.fire("wordCountUpdate",{wordCount:{words:t.body.getWordCount(),characters:t.body.getCharacterCount(),charactersWithoutSpaces:t.body.getCharacterCountWithoutSpaces()}})},U=function(e,t){H(e,t)},W=function(e,t,n){var r=z.debounce((function(){return U(e,t)}),n);e.on("init",(function(){U(e,t),z.setEditorTimeout(e,(function(){e.on("SetContent BeforeAddUndo Undo Redo ViewUpdate keyup",r)}),0)}))},q=function(e){var t=function(){return e.execCommand("mceWordCount")};e.ui.registry.addButton("wordcount",{tooltip:"Word count",icon:"character-count",onAction:t}),e.ui.registry.addMenuItem("wordcount",{text:"Word count",icon:"character-count",onAction:t})};function G(t){void 0===t&&(t=300),e.add("wordcount",(function(e){var n=$(e);return j(e,n),q(e),W(e,n,t),n}))}G()})()},ea29:function(e,t,n){"use strict";var r=function(){function e(){}return e.numberOfTrailingZeros=function(e){var t;if(0===e)return 32;var n=31;return t=e<<16,0!==t&&(n-=16,e=t),t=e<<8,0!==t&&(n-=8,e=t),t=e<<4,0!==t&&(n-=4,e=t),t=e<<2,0!==t&&(n-=2,e=t),n-(e<<1>>>31)},e.numberOfLeadingZeros=function(e){if(0===e)return 32;var t=1;return e>>>16===0&&(t+=16,e<<=16),e>>>24===0&&(t+=8,e<<=8),e>>>28===0&&(t+=4,e<<=4),e>>>30===0&&(t+=2,e<<=2),t-=e>>>31,t},e.toHexString=function(e){return e.toString(16)},e.toBinaryString=function(e){return String(parseInt(String(e),2))},e.bitCount=function(e){return e-=e>>>1&1431655765,e=(858993459&e)+(e>>>2&858993459),e=e+(e>>>4)&252645135,e+=e>>>8,e+=e>>>16,63&e},e.truncDivision=function(e,t){return Math.trunc(e/t)},e.parseInt=function(e,t){return void 0===t&&(t=void 0),parseInt(e,t)},e.MIN_VALUE_32_BITS=-2147483648,e.MAX_VALUE=Number.MAX_SAFE_INTEGER,e}();t["a"]=r},eb30:function(e,t,n){"use strict";t.__esModule=!0,t.PopupManager=void 0;var r=n("8bbf"),i=d(r),o=n("5ea8"),a=d(o),s=n("d52c"),l=d(s),u=n("e17f"),c=d(u),f=n("f321");function d(e){return e&&e.__esModule?e:{default:e}}var h=1,p=void 0;t.default={props:{visible:{type:Boolean,default:!1},openDelay:{},closeDelay:{},zIndex:{},modal:{type:Boolean,default:!1},modalFade:{type:Boolean,default:!0},modalClass:{},modalAppendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!1}},beforeMount:function(){this._popupId="popup-"+h++,l.default.register(this._popupId,this)},beforeDestroy:function(){l.default.deregister(this._popupId),l.default.closeModal(this._popupId),this.restoreBodyStyle()},data:function(){return{opened:!1,bodyPaddingRight:null,computedBodyPaddingRight:0,withoutHiddenClass:!0,rendered:!1}},watch:{visible:function(e){var t=this;if(e){if(this._opening)return;this.rendered?this.open():(this.rendered=!0,i.default.nextTick((function(){t.open()})))}else this.close()}},methods:{open:function(e){var t=this;this.rendered||(this.rendered=!0);var n=(0,a.default)({},this.$props||this,e);this._closeTimer&&(clearTimeout(this._closeTimer),this._closeTimer=null),clearTimeout(this._openTimer);var r=Number(n.openDelay);r>0?this._openTimer=setTimeout((function(){t._openTimer=null,t.doOpen(n)}),r):this.doOpen(n)},doOpen:function(e){if(!this.$isServer&&(!this.willOpen||this.willOpen())&&!this.opened){this._opening=!0;var t=this.$el,n=e.modal,r=e.zIndex;if(r&&(l.default.zIndex=r),n&&(this._closing&&(l.default.closeModal(this._popupId),this._closing=!1),l.default.openModal(this._popupId,l.default.nextZIndex(),this.modalAppendToBody?void 0:t,e.modalClass,e.modalFade),e.lockScroll)){this.withoutHiddenClass=!(0,f.hasClass)(document.body,"el-popup-parent--hidden"),this.withoutHiddenClass&&(this.bodyPaddingRight=document.body.style.paddingRight,this.computedBodyPaddingRight=parseInt((0,f.getStyle)(document.body,"paddingRight"),10)),p=(0,c.default)();var i=document.documentElement.clientHeight<document.body.scrollHeight,o=(0,f.getStyle)(document.body,"overflowY");p>0&&(i||"scroll"===o)&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.computedBodyPaddingRight+p+"px"),(0,f.addClass)(document.body,"el-popup-parent--hidden")}"static"===getComputedStyle(t).position&&(t.style.position="absolute"),t.style.zIndex=l.default.nextZIndex(),this.opened=!0,this.onOpen&&this.onOpen(),this.doAfterOpen()}},doAfterOpen:function(){this._opening=!1},close:function(){var e=this;if(!this.willClose||this.willClose()){null!==this._openTimer&&(clearTimeout(this._openTimer),this._openTimer=null),clearTimeout(this._closeTimer);var t=Number(this.closeDelay);t>0?this._closeTimer=setTimeout((function(){e._closeTimer=null,e.doClose()}),t):this.doClose()}},doClose:function(){this._closing=!0,this.onClose&&this.onClose(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose()},doAfterClose:function(){l.default.closeModal(this._popupId),this._closing=!1},restoreBodyStyle:function(){this.modal&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.bodyPaddingRight,(0,f.removeClass)(document.body,"el-popup-parent--hidden")),this.withoutHiddenClass=!0}}},t.PopupManager=l.default},ebd6:function(e,t,n){var r=n("cb7c"),i=n("d8e8"),o=n("2b4c")("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||void 0==(n=r(a)[o])?t:i(n)}},ebfd:function(e,t,n){var r=n("62a0")("meta"),i=n("f772"),o=n("07e3"),a=n("d9f6").f,s=0,l=Object.isExtensible||function(){return!0},u=!n("294c")((function(){return l(Object.preventExtensions({}))})),c=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},f=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!l(e))return"F";if(!t)return"E";c(e)}return e[r].i},d=function(e,t){if(!o(e,r)){if(!l(e))return!0;if(!t)return!1;c(e)}return e[r].w},h=function(e){return u&&p.NEED&&l(e)&&!o(e,r)&&c(e),e},p=e.exports={KEY:r,NEED:!1,fastKey:f,getWeak:d,onFreeze:h}},ec27:function(e,t,n){n("fc39")},ec30:function(e,t,n){"use strict";if(n("9e1e")){var r=n("2d00"),i=n("7726"),o=n("79e5"),a=n("5ca1"),s=n("0f88"),l=n("ed0b"),u=n("9b43"),c=n("f605"),f=n("4630"),d=n("32e9"),h=n("dcbc"),p=n("4588"),m=n("9def"),g=n("09fa"),v=n("77f1"),b=n("6a99"),y=n("69a8"),w=n("23c6"),_=n("d3f4"),C=n("4bf8"),x=n("33a4"),S=n("2aeb"),k=n("38fd"),D=n("9093").f,O=n("27ee"),T=n("ca5a"),E=n("2b4c"),I=n("0a49"),N=n("c366"),A=n("ebd6"),P=n("cadf"),M=n("84f2"),R=n("5cc5"),F=n("7a56"),B=n("36bd"),L=n("ba92"),$=n("86cc"),V=n("11e9"),j=$.f,z=V.f,H=i.RangeError,U=i.TypeError,W=i.Uint8Array,q="ArrayBuffer",G="Shared"+q,Y="BYTES_PER_ELEMENT",K="prototype",X=Array[K],J=l.ArrayBuffer,Z=l.DataView,Q=I(0),ee=I(2),te=I(3),ne=I(4),re=I(5),ie=I(6),oe=N(!0),ae=N(!1),se=P.values,le=P.keys,ue=P.entries,ce=X.lastIndexOf,fe=X.reduce,de=X.reduceRight,he=X.join,pe=X.sort,me=X.slice,ge=X.toString,ve=X.toLocaleString,be=E("iterator"),ye=E("toStringTag"),we=T("typed_constructor"),_e=T("def_constructor"),Ce=s.CONSTR,xe=s.TYPED,Se=s.VIEW,ke="Wrong length!",De=I(1,(function(e,t){return Ne(A(e,e[_e]),t)})),Oe=o((function(){return 1===new W(new Uint16Array([1]).buffer)[0]})),Te=!!W&&!!W[K].set&&o((function(){new W(1).set({})})),Ee=function(e,t){var n=p(e);if(n<0||n%t)throw H("Wrong offset!");return n},Ie=function(e){if(_(e)&&xe in e)return e;throw U(e+" is not a typed array!")},Ne=function(e,t){if(!_(e)||!(we in e))throw U("It is not a typed array constructor!");return new e(t)},Ae=function(e,t){return Pe(A(e,e[_e]),t)},Pe=function(e,t){var n=0,r=t.length,i=Ne(e,r);while(r>n)i[n]=t[n++];return i},Me=function(e,t,n){j(e,t,{get:function(){return this._d[n]}})},Re=function(e){var t,n,r,i,o,a,s=C(e),l=arguments.length,c=l>1?arguments[1]:void 0,f=void 0!==c,d=O(s);if(void 0!=d&&!x(d)){for(a=d.call(s),r=[],t=0;!(o=a.next()).done;t++)r.push(o.value);s=r}for(f&&l>2&&(c=u(c,arguments[2],2)),t=0,n=m(s.length),i=Ne(this,n);n>t;t++)i[t]=f?c(s[t],t):s[t];return i},Fe=function(){var e=0,t=arguments.length,n=Ne(this,t);while(t>e)n[e]=arguments[e++];return n},Be=!!W&&o((function(){ve.call(new W(1))})),Le=function(){return ve.apply(Be?me.call(Ie(this)):Ie(this),arguments)},$e={copyWithin:function(e,t){return L.call(Ie(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return ne(Ie(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return B.apply(Ie(this),arguments)},filter:function(e){return Ae(this,ee(Ie(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return re(Ie(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ie(Ie(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){Q(Ie(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return ae(Ie(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return oe(Ie(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return he.apply(Ie(this),arguments)},lastIndexOf:function(e){return ce.apply(Ie(this),arguments)},map:function(e){return De(Ie(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return fe.apply(Ie(this),arguments)},reduceRight:function(e){return de.apply(Ie(this),arguments)},reverse:function(){var e,t=this,n=Ie(t).length,r=Math.floor(n/2),i=0;while(i<r)e=t[i],t[i++]=t[--n],t[n]=e;return t},some:function(e){return te(Ie(this),e,arguments.length>1?arguments[1]:void 0)},sort:function(e){return pe.call(Ie(this),e)},subarray:function(e,t){var n=Ie(this),r=n.length,i=v(e,r);return new(A(n,n[_e]))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,m((void 0===t?r:v(t,r))-i))}},Ve=function(e,t){return Ae(this,me.call(Ie(this),e,t))},je=function(e){Ie(this);var t=Ee(arguments[1],1),n=this.length,r=C(e),i=m(r.length),o=0;if(i+t>n)throw H(ke);while(o<i)this[t+o]=r[o++]},ze={entries:function(){return ue.call(Ie(this))},keys:function(){return le.call(Ie(this))},values:function(){return se.call(Ie(this))}},He=function(e,t){return _(e)&&e[xe]&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},Ue=function(e,t){return He(e,t=b(t,!0))?f(2,e[t]):z(e,t)},We=function(e,t,n){return!(He(e,t=b(t,!0))&&_(n)&&y(n,"value"))||y(n,"get")||y(n,"set")||n.configurable||y(n,"writable")&&!n.writable||y(n,"enumerable")&&!n.enumerable?j(e,t,n):(e[t]=n.value,e)};Ce||(V.f=Ue,$.f=We),a(a.S+a.F*!Ce,"Object",{getOwnPropertyDescriptor:Ue,defineProperty:We}),o((function(){ge.call({})}))&&(ge=ve=function(){return he.call(this)});var qe=h({},$e);h(qe,ze),d(qe,be,ze.values),h(qe,{slice:Ve,set:je,constructor:function(){},toString:ge,toLocaleString:Le}),Me(qe,"buffer","b"),Me(qe,"byteOffset","o"),Me(qe,"byteLength","l"),Me(qe,"length","e"),j(qe,ye,{get:function(){return this[xe]}}),e.exports=function(e,t,n,l){l=!!l;var u=e+(l?"Clamped":"")+"Array",f="get"+e,h="set"+e,p=i[u],v=p||{},b=p&&k(p),y=!p||!s.ABV,C={},x=p&&p[K],O=function(e,n){var r=e._d;return r.v[f](n*t+r.o,Oe)},T=function(e,n,r){var i=e._d;l&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),i.v[h](n*t+i.o,r,Oe)},E=function(e,t){j(e,t,{get:function(){return O(this,t)},set:function(e){return T(this,t,e)},enumerable:!0})};y?(p=n((function(e,n,r,i){c(e,p,u,"_d");var o,a,s,l,f=0,h=0;if(_(n)){if(!(n instanceof J||(l=w(n))==q||l==G))return xe in n?Pe(p,n):Re.call(p,n);o=n,h=Ee(r,t);var v=n.byteLength;if(void 0===i){if(v%t)throw H(ke);if(a=v-h,a<0)throw H(ke)}else if(a=m(i)*t,a+h>v)throw H(ke);s=a/t}else s=g(n),a=s*t,o=new J(a);d(e,"_d",{b:o,o:h,l:a,e:s,v:new Z(o)});while(f<s)E(e,f++)})),x=p[K]=S(qe),d(x,"constructor",p)):o((function(){p(1)}))&&o((function(){new p(-1)}))&&R((function(e){new p,new p(null),new p(1.5),new p(e)}),!0)||(p=n((function(e,n,r,i){var o;return c(e,p,u),_(n)?n instanceof J||(o=w(n))==q||o==G?void 0!==i?new v(n,Ee(r,t),i):void 0!==r?new v(n,Ee(r,t)):new v(n):xe in n?Pe(p,n):Re.call(p,n):new v(g(n))})),Q(b!==Function.prototype?D(v).concat(D(b)):D(v),(function(e){e in p||d(p,e,v[e])})),p[K]=x,r||(x.constructor=p));var I=x[be],N=!!I&&("values"==I.name||void 0==I.name),A=ze.values;d(p,we,!0),d(x,xe,u),d(x,Se,!0),d(x,_e,p),(l?new p(1)[ye]==u:ye in x)||j(x,ye,{get:function(){return u}}),C[u]=p,a(a.G+a.W+a.F*(p!=v),C),a(a.S,u,{BYTES_PER_ELEMENT:t}),a(a.S+a.F*o((function(){v.of.call(p,1)})),u,{from:Re,of:Fe}),Y in x||d(x,Y,t),a(a.P,u,$e),F(u),a(a.P+a.F*Te,u,{set:je}),a(a.P+a.F*!N,u,ze),r||x.toString==ge||(x.toString=ge),a(a.P+a.F*o((function(){new p(1).slice()})),u,{slice:Ve}),a(a.P+a.F*(o((function(){return[1,2].toLocaleString()!=new p([1,2]).toLocaleString()}))||!o((function(){x.toLocaleString.call([1,2])}))),u,{toLocaleString:Le}),M[u]=N?I:A,r||N||d(x,be,A)}}else e.exports=function(){}},ec6d:function(e,t,n){"use strict";var r=n("67f0"),i=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.forName=function(e){return this.getCharacterSetECIByName(e)},t}(r["a"]);t["a"]=o},ed0b:function(e,t,n){"use strict";var r=n("7726"),i=n("9e1e"),o=n("2d00"),a=n("0f88"),s=n("32e9"),l=n("dcbc"),u=n("79e5"),c=n("f605"),f=n("4588"),d=n("9def"),h=n("09fa"),p=n("9093").f,m=n("86cc").f,g=n("36bd"),v=n("7f20"),b="ArrayBuffer",y="DataView",w="prototype",_="Wrong length!",C="Wrong index!",x=r[b],S=r[y],k=r.Math,D=r.RangeError,O=r.Infinity,T=x,E=k.abs,I=k.pow,N=k.floor,A=k.log,P=k.LN2,M="buffer",R="byteLength",F="byteOffset",B=i?"_b":M,L=i?"_l":R,$=i?"_o":F;function V(e,t,n){var r,i,o,a=new Array(n),s=8*n-t-1,l=(1<<s)-1,u=l>>1,c=23===t?I(2,-24)-I(2,-77):0,f=0,d=e<0||0===e&&1/e<0?1:0;for(e=E(e),e!=e||e===O?(i=e!=e?1:0,r=l):(r=N(A(e)/P),e*(o=I(2,-r))<1&&(r--,o*=2),e+=r+u>=1?c/o:c*I(2,1-u),e*o>=2&&(r++,o/=2),r+u>=l?(i=0,r=l):r+u>=1?(i=(e*o-1)*I(2,t),r+=u):(i=e*I(2,u-1)*I(2,t),r=0));t>=8;a[f++]=255&i,i/=256,t-=8);for(r=r<<t|i,s+=t;s>0;a[f++]=255&r,r/=256,s-=8);return a[--f]|=128*d,a}function j(e,t,n){var r,i=8*n-t-1,o=(1<<i)-1,a=o>>1,s=i-7,l=n-1,u=e[l--],c=127&u;for(u>>=7;s>0;c=256*c+e[l],l--,s-=8);for(r=c&(1<<-s)-1,c>>=-s,s+=t;s>0;r=256*r+e[l],l--,s-=8);if(0===c)c=1-a;else{if(c===o)return r?NaN:u?-O:O;r+=I(2,t),c-=a}return(u?-1:1)*r*I(2,c-t)}function z(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function H(e){return[255&e]}function U(e){return[255&e,e>>8&255]}function W(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function q(e){return V(e,52,8)}function G(e){return V(e,23,4)}function Y(e,t,n){m(e[w],t,{get:function(){return this[n]}})}function K(e,t,n,r){var i=+n,o=h(i);if(o+t>e[L])throw D(C);var a=e[B]._b,s=o+e[$],l=a.slice(s,s+t);return r?l:l.reverse()}function X(e,t,n,r,i,o){var a=+n,s=h(a);if(s+t>e[L])throw D(C);for(var l=e[B]._b,u=s+e[$],c=r(+i),f=0;f<t;f++)l[u+f]=c[o?f:t-f-1]}if(a.ABV){if(!u((function(){x(1)}))||!u((function(){new x(-1)}))||u((function(){return new x,new x(1.5),new x(NaN),x.name!=b}))){x=function(e){return c(this,x),new T(h(e))};for(var J,Z=x[w]=T[w],Q=p(T),ee=0;Q.length>ee;)(J=Q[ee++])in x||s(x,J,T[J]);o||(Z.constructor=x)}var te=new S(new x(2)),ne=S[w].setInt8;te.setInt8(0,2147483648),te.setInt8(1,2147483649),!te.getInt8(0)&&te.getInt8(1)||l(S[w],{setInt8:function(e,t){ne.call(this,e,t<<24>>24)},setUint8:function(e,t){ne.call(this,e,t<<24>>24)}},!0)}else x=function(e){c(this,x,b);var t=h(e);this._b=g.call(new Array(t),0),this[L]=t},S=function(e,t,n){c(this,S,y),c(e,x,y);var r=e[L],i=f(t);if(i<0||i>r)throw D("Wrong offset!");if(n=void 0===n?r-i:d(n),i+n>r)throw D(_);this[B]=e,this[$]=i,this[L]=n},i&&(Y(x,R,"_l"),Y(S,M,"_b"),Y(S,R,"_l"),Y(S,F,"_o")),l(S[w],{getInt8:function(e){return K(this,1,e)[0]<<24>>24},getUint8:function(e){return K(this,1,e)[0]},getInt16:function(e){var t=K(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=K(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return z(K(this,4,e,arguments[1]))},getUint32:function(e){return z(K(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return j(K(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return j(K(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){X(this,1,e,H,t)},setUint8:function(e,t){X(this,1,e,H,t)},setInt16:function(e,t){X(this,2,e,U,t,arguments[2])},setUint16:function(e,t){X(this,2,e,U,t,arguments[2])},setInt32:function(e,t){X(this,4,e,W,t,arguments[2])},setUint32:function(e,t){X(this,4,e,W,t,arguments[2])},setFloat32:function(e,t){X(this,4,e,G,t,arguments[2])},setFloat64:function(e,t){X(this,8,e,q,t,arguments[2])}});v(x,b),v(S,y),s(S[w],a.VIEW,!0),t[b]=x,t[y]=S},ee54:function(e,t,n){"use strict";var r=n("a363"),i=n("2011"),o=n("fe96"),a=n("ca08"),s=n("2f50"),l=n("64a7"),u=n("63af"),c=n("2d92"),f=n("547e"),d=n("34c8"),h=n("7978"),p=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},m=function(){function e(e,t,n){this.ecCodewords=e,this.ecBlocks=[t],n&&this.ecBlocks.push(n)}return e.prototype.getECCodewords=function(){return this.ecCodewords},e.prototype.getECBlocks=function(){return this.ecBlocks},e}(),g=function(){function e(e,t){this.count=e,this.dataCodewords=t}return e.prototype.getCount=function(){return this.count},e.prototype.getDataCodewords=function(){return this.dataCodewords},e}(),v=function(){function e(e,t,n,r,i,o){var a,s;this.versionNumber=e,this.symbolSizeRows=t,this.symbolSizeColumns=n,this.dataRegionSizeRows=r,this.dataRegionSizeColumns=i,this.ecBlocks=o;var l=0,u=o.getECCodewords(),c=o.getECBlocks();try{for(var f=p(c),d=f.next();!d.done;d=f.next()){var h=d.value;l+=h.getCount()*(h.getDataCodewords()+u)}}catch(m){a={error:m}}finally{try{d&&!d.done&&(s=f.return)&&s.call(f)}finally{if(a)throw a.error}}this.totalCodewords=l}return e.prototype.getVersionNumber=function(){return this.versionNumber},e.prototype.getSymbolSizeRows=function(){return this.symbolSizeRows},e.prototype.getSymbolSizeColumns=function(){return this.symbolSizeColumns},e.prototype.getDataRegionSizeRows=function(){return this.dataRegionSizeRows},e.prototype.getDataRegionSizeColumns=function(){return this.dataRegionSizeColumns},e.prototype.getTotalCodewords=function(){return this.totalCodewords},e.prototype.getECBlocks=function(){return this.ecBlocks},e.getVersionForDimensions=function(t,n){var r,i;if(0!==(1&t)||0!==(1&n))throw new h["a"];try{for(var o=p(e.VERSIONS),a=o.next();!a.done;a=o.next()){var s=a.value;if(s.symbolSizeRows===t&&s.symbolSizeColumns===n)return s}}catch(l){r={error:l}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}throw new h["a"]},e.prototype.toString=function(){return""+this.versionNumber},e.buildVersions=function(){return[new e(1,10,10,8,8,new m(5,new g(1,3))),new e(2,12,12,10,10,new m(7,new g(1,5))),new e(3,14,14,12,12,new m(10,new g(1,8))),new e(4,16,16,14,14,new m(12,new g(1,12))),new e(5,18,18,16,16,new m(14,new g(1,18))),new e(6,20,20,18,18,new m(18,new g(1,22))),new e(7,22,22,20,20,new m(20,new g(1,30))),new e(8,24,24,22,22,new m(24,new g(1,36))),new e(9,26,26,24,24,new m(28,new g(1,44))),new e(10,32,32,14,14,new m(36,new g(1,62))),new e(11,36,36,16,16,new m(42,new g(1,86))),new e(12,40,40,18,18,new m(48,new g(1,114))),new e(13,44,44,20,20,new m(56,new g(1,144))),new e(14,48,48,22,22,new m(68,new g(1,174))),new e(15,52,52,24,24,new m(42,new g(2,102))),new e(16,64,64,14,14,new m(56,new g(2,140))),new e(17,72,72,16,16,new m(36,new g(4,92))),new e(18,80,80,18,18,new m(48,new g(4,114))),new e(19,88,88,20,20,new m(56,new g(4,144))),new e(20,96,96,22,22,new m(68,new g(4,174))),new e(21,104,104,24,24,new m(56,new g(6,136))),new e(22,120,120,18,18,new m(68,new g(6,175))),new e(23,132,132,20,20,new m(62,new g(8,163))),new e(24,144,144,22,22,new m(62,new g(8,156),new g(2,155))),new e(25,8,18,6,16,new m(7,new g(1,5))),new e(26,8,32,6,14,new m(11,new g(1,10))),new e(27,12,26,10,24,new m(14,new g(1,16))),new e(28,12,36,10,16,new m(18,new g(1,22))),new e(29,16,36,14,16,new m(24,new g(1,32))),new e(30,16,48,14,22,new m(28,new g(1,49)))]},e.VERSIONS=e.buildVersions(),e}(),b=v,y=n("f0a7"),w=function(){function e(t){var n=t.getHeight();if(n<8||n>144||0!==(1&n))throw new h["a"];this.version=e.readVersion(t),this.mappingBitMatrix=this.extractDataRegion(t),this.readMappingMatrix=new i["a"](this.mappingBitMatrix.getWidth(),this.mappingBitMatrix.getHeight())}return e.prototype.getVersion=function(){return this.version},e.readVersion=function(e){var t=e.getHeight(),n=e.getWidth();return b.getVersionForDimensions(t,n)},e.prototype.readCodewords=function(){var e=new Int8Array(this.version.getTotalCodewords()),t=0,n=4,r=0,i=this.mappingBitMatrix.getHeight(),o=this.mappingBitMatrix.getWidth(),a=!1,s=!1,l=!1,u=!1;do{if(n!==i||0!==r||a)if(n!==i-2||0!==r||0===(3&o)||s)if(n!==i+4||2!==r||0!==(7&o)||l)if(n!==i-2||0!==r||4!==(7&o)||u){do{n<i&&r>=0&&!this.readMappingMatrix.get(r,n)&&(e[t++]=255&this.readUtah(n,r,i,o)),n-=2,r+=2}while(n>=0&&r<o);n+=1,r+=3;do{n>=0&&r<o&&!this.readMappingMatrix.get(r,n)&&(e[t++]=255&this.readUtah(n,r,i,o)),n+=2,r-=2}while(n<i&&r>=0);n+=3,r+=1}else e[t++]=255&this.readCorner4(i,o),n-=2,r+=2,u=!0;else e[t++]=255&this.readCorner3(i,o),n-=2,r+=2,l=!0;else e[t++]=255&this.readCorner2(i,o),n-=2,r+=2,s=!0;else e[t++]=255&this.readCorner1(i,o),n-=2,r+=2,a=!0}while(n<i||r<o);if(t!==this.version.getTotalCodewords())throw new h["a"];return e},e.prototype.readModule=function(e,t,n,r){return e<0&&(e+=n,t+=4-(n+4&7)),t<0&&(t+=r,e+=4-(r+4&7)),this.readMappingMatrix.set(t,e),this.mappingBitMatrix.get(t,e)},e.prototype.readUtah=function(e,t,n,r){var i=0;return this.readModule(e-2,t-2,n,r)&&(i|=1),i<<=1,this.readModule(e-2,t-1,n,r)&&(i|=1),i<<=1,this.readModule(e-1,t-2,n,r)&&(i|=1),i<<=1,this.readModule(e-1,t-1,n,r)&&(i|=1),i<<=1,this.readModule(e-1,t,n,r)&&(i|=1),i<<=1,this.readModule(e,t-2,n,r)&&(i|=1),i<<=1,this.readModule(e,t-1,n,r)&&(i|=1),i<<=1,this.readModule(e,t,n,r)&&(i|=1),i},e.prototype.readCorner1=function(e,t){var n=0;return this.readModule(e-1,0,e,t)&&(n|=1),n<<=1,this.readModule(e-1,1,e,t)&&(n|=1),n<<=1,this.readModule(e-1,2,e,t)&&(n|=1),n<<=1,this.readModule(0,t-2,e,t)&&(n|=1),n<<=1,this.readModule(0,t-1,e,t)&&(n|=1),n<<=1,this.readModule(1,t-1,e,t)&&(n|=1),n<<=1,this.readModule(2,t-1,e,t)&&(n|=1),n<<=1,this.readModule(3,t-1,e,t)&&(n|=1),n},e.prototype.readCorner2=function(e,t){var n=0;return this.readModule(e-3,0,e,t)&&(n|=1),n<<=1,this.readModule(e-2,0,e,t)&&(n|=1),n<<=1,this.readModule(e-1,0,e,t)&&(n|=1),n<<=1,this.readModule(0,t-4,e,t)&&(n|=1),n<<=1,this.readModule(0,t-3,e,t)&&(n|=1),n<<=1,this.readModule(0,t-2,e,t)&&(n|=1),n<<=1,this.readModule(0,t-1,e,t)&&(n|=1),n<<=1,this.readModule(1,t-1,e,t)&&(n|=1),n},e.prototype.readCorner3=function(e,t){var n=0;return this.readModule(e-1,0,e,t)&&(n|=1),n<<=1,this.readModule(e-1,t-1,e,t)&&(n|=1),n<<=1,this.readModule(0,t-3,e,t)&&(n|=1),n<<=1,this.readModule(0,t-2,e,t)&&(n|=1),n<<=1,this.readModule(0,t-1,e,t)&&(n|=1),n<<=1,this.readModule(1,t-3,e,t)&&(n|=1),n<<=1,this.readModule(1,t-2,e,t)&&(n|=1),n<<=1,this.readModule(1,t-1,e,t)&&(n|=1),n},e.prototype.readCorner4=function(e,t){var n=0;return this.readModule(e-3,0,e,t)&&(n|=1),n<<=1,this.readModule(e-2,0,e,t)&&(n|=1),n<<=1,this.readModule(e-1,0,e,t)&&(n|=1),n<<=1,this.readModule(0,t-2,e,t)&&(n|=1),n<<=1,this.readModule(0,t-1,e,t)&&(n|=1),n<<=1,this.readModule(1,t-1,e,t)&&(n|=1),n<<=1,this.readModule(2,t-1,e,t)&&(n|=1),n<<=1,this.readModule(3,t-1,e,t)&&(n|=1),n},e.prototype.extractDataRegion=function(e){var t=this.version.getSymbolSizeRows(),n=this.version.getSymbolSizeColumns();if(e.getHeight()!==t)throw new y["a"]("Dimension of bitMatrix must match the version size");for(var r=this.version.getDataRegionSizeRows(),o=this.version.getDataRegionSizeColumns(),a=t/r|0,s=n/o|0,l=a*r,u=s*o,c=new i["a"](u,l),f=0;f<a;++f)for(var d=f*r,h=0;h<s;++h)for(var p=h*o,m=0;m<r;++m)for(var g=f*(r+2)+1+m,v=d+m,b=0;b<o;++b){var w=h*(o+2)+1+b;if(e.get(w,g)){var _=p+b;c.set(_,v)}}return c},e}(),_=w,C=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},x=function(){function e(e,t){this.numDataCodewords=e,this.codewords=t}return e.getDataBlocks=function(t,n){var r,i,o,a,s=n.getECBlocks(),l=0,u=s.getECBlocks();try{for(var c=C(u),f=c.next();!f.done;f=c.next()){var d=f.value;l+=d.getCount()}}catch(A){r={error:A}}finally{try{f&&!f.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}var h=new Array(l),p=0;try{for(var m=C(u),g=m.next();!g.done;g=m.next()){d=g.value;for(var v=0;v<d.getCount();v++){var b=d.getDataCodewords(),w=s.getECCodewords()+b;h[p++]=new e(b,new Uint8Array(w))}}}catch(P){o={error:P}}finally{try{g&&!g.done&&(a=m.return)&&a.call(m)}finally{if(o)throw o.error}}var _=h[0].codewords.length,x=_-s.getECCodewords(),S=x-1,k=0;for(v=0;v<S;v++)for(var D=0;D<p;D++)h[D].codewords[v]=t[k++];var O=24===n.getVersionNumber(),T=O?8:p;for(D=0;D<T;D++)h[D].codewords[x-1]=t[k++];var E=h[0].codewords.length;for(v=x;v<E;v++)for(D=0;D<p;D++){var I=O?(D+8)%p:D,N=O&&I>7?v-1:v;h[I].codewords[N]=t[k++]}if(k!==t.length)throw new y["a"];return h},e.prototype.getNumDataCodewords=function(){return this.numDataCodewords},e.prototype.getCodewords=function(){return this.codewords},e}(),S=x,k=n("acf3"),D=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},O=function(){function e(){this.rsDecoder=new d["a"](f["a"].DATA_MATRIX_FIELD_256)}return e.prototype.decode=function(e){var t,n,r=new _(e),i=r.getVersion(),o=r.readCodewords(),a=S.getDataBlocks(o,i),s=0;try{for(var l=D(a),u=l.next();!u.done;u=l.next()){var c=u.value;s+=c.getNumDataCodewords()}}catch(b){t={error:b}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}for(var f=new Uint8Array(s),d=a.length,h=0;h<d;h++){var p=a[h],m=p.getCodewords(),g=p.getNumDataCodewords();this.correctErrors(m,g);for(var v=0;v<g;v++)f[v*d+h]=m[v]}return k["a"].decode(f)},e.prototype.correctErrors=function(e,t){var n=new Int32Array(e);try{this.rsDecoder.decode(n,e.length-t)}catch(i){throw new c["a"]}for(var r=0;r<t;r++)e[r]=n[r]},e}(),T=O,E=n("7f3b"),I=n("7a37"),N=n("be40"),A=n("8c95"),P=function(){function e(e){this.image=e,this.rectangleDetector=new E["a"](this.image)}return e.prototype.detect=function(){var t=this.rectangleDetector.detect(),n=this.detectSolid1(t);if(n=this.detectSolid2(n),n[3]=this.correctTopRight(n),!n[3])throw new a["a"];n=this.shiftToModuleCenter(n);var r=n[0],i=n[1],o=n[2],s=n[3],l=this.transitionsBetween(r,s)+1,u=this.transitionsBetween(o,s)+1;1===(1&l)&&(l+=1),1===(1&u)&&(u+=1),4*l<7*u&&4*u<7*l&&(l=u=Math.max(l,u));var c=e.sampleGrid(this.image,r,i,o,s,l,u);return new I["a"](c,[r,i,o,s])},e.shiftPoint=function(e,t,n){var r=(t.getX()-e.getX())/(n+1),i=(t.getY()-e.getY())/(n+1);return new A["a"](e.getX()+r,e.getY()+i)},e.moveAway=function(e,t,n){var r=e.getX(),i=e.getY();return r<t?r-=1:r+=1,i<n?i-=1:i+=1,new A["a"](r,i)},e.prototype.detectSolid1=function(e){var t=e[0],n=e[1],r=e[3],i=e[2],o=this.transitionsBetween(t,n),a=this.transitionsBetween(n,r),s=this.transitionsBetween(r,i),l=this.transitionsBetween(i,t),u=o,c=[i,t,n,r];return u>a&&(u=a,c[0]=t,c[1]=n,c[2]=r,c[3]=i),u>s&&(u=s,c[0]=n,c[1]=r,c[2]=i,c[3]=t),u>l&&(c[0]=r,c[1]=i,c[2]=t,c[3]=n),c},e.prototype.detectSolid2=function(t){var n=t[0],r=t[1],i=t[2],o=t[3],a=this.transitionsBetween(n,o),s=e.shiftPoint(r,i,4*(a+1)),l=e.shiftPoint(i,r,4*(a+1)),u=this.transitionsBetween(s,n),c=this.transitionsBetween(l,o);return u<c?(t[0]=n,t[1]=r,t[2]=i,t[3]=o):(t[0]=r,t[1]=i,t[2]=o,t[3]=n),t},e.prototype.correctTopRight=function(t){var n=t[0],r=t[1],i=t[2],o=t[3],a=this.transitionsBetween(n,o),s=this.transitionsBetween(r,o),l=e.shiftPoint(n,r,4*(s+1)),u=e.shiftPoint(i,r,4*(a+1));a=this.transitionsBetween(l,o),s=this.transitionsBetween(u,o);var c=new A["a"](o.getX()+(i.getX()-r.getX())/(a+1),o.getY()+(i.getY()-r.getY())/(a+1)),f=new A["a"](o.getX()+(n.getX()-r.getX())/(s+1),o.getY()+(n.getY()-r.getY())/(s+1));if(!this.isValid(c))return this.isValid(f)?f:null;if(!this.isValid(f))return c;var d=this.transitionsBetween(l,c)+this.transitionsBetween(u,c),h=this.transitionsBetween(l,f)+this.transitionsBetween(u,f);return d>h?c:f},e.prototype.shiftToModuleCenter=function(t){var n=t[0],r=t[1],i=t[2],o=t[3],a=this.transitionsBetween(n,o)+1,s=this.transitionsBetween(i,o)+1,l=e.shiftPoint(n,r,4*s),u=e.shiftPoint(i,r,4*a);a=this.transitionsBetween(l,o)+1,s=this.transitionsBetween(u,o)+1,1===(1&a)&&(a+=1),1===(1&s)&&(s+=1);var c,f,d=(n.getX()+r.getX()+i.getX()+o.getX())/4,h=(n.getY()+r.getY()+i.getY()+o.getY())/4;return n=e.moveAway(n,d,h),r=e.moveAway(r,d,h),i=e.moveAway(i,d,h),o=e.moveAway(o,d,h),l=e.shiftPoint(n,r,4*s),l=e.shiftPoint(l,o,4*a),c=e.shiftPoint(r,n,4*s),c=e.shiftPoint(c,i,4*a),u=e.shiftPoint(i,o,4*s),u=e.shiftPoint(u,r,4*a),f=e.shiftPoint(o,i,4*s),f=e.shiftPoint(f,n,4*a),[l,c,u,f]},e.prototype.isValid=function(e){return e.getX()>=0&&e.getX()<this.image.getWidth()&&e.getY()>0&&e.getY()<this.image.getHeight()},e.sampleGrid=function(e,t,n,r,i,o,a){var s=N["a"].getInstance();return s.sampleGrid(e,o,a,.5,.5,o-.5,.5,o-.5,a-.5,.5,a-.5,t.getX(),t.getY(),i.getX(),i.getY(),r.getX(),r.getY(),n.getX(),n.getY())},e.prototype.transitionsBetween=function(e,t){var n=Math.trunc(e.getX()),r=Math.trunc(e.getY()),i=Math.trunc(t.getX()),o=Math.trunc(t.getY()),a=Math.abs(o-r)>Math.abs(i-n);if(a){var s=n;n=r,r=s,s=i,i=o,o=s}for(var l=Math.abs(i-n),u=Math.abs(o-r),c=-l/2,f=r<o?1:-1,d=n<i?1:-1,h=0,p=this.image.get(a?r:n,a?n:r),m=n,g=r;m!==i;m+=d){var v=this.image.get(a?g:m,a?m:g);if(v!==p&&(h++,p=v),c+=u,c>0){if(g===o)break;g+=f,c-=l}}return h},e}(),M=P,R=function(){function e(){this.decoder=new T}return e.prototype.decode=function(t,n){var i,a;if(void 0===n&&(n=null),null!=n&&n.has(o["a"].PURE_BARCODE)){var c=e.extractPureBits(t.getBlackMatrix());i=this.decoder.decode(c),a=e.NO_POINTS}else{var f=new M(t.getBlackMatrix()).detect();i=this.decoder.decode(f.getBits()),a=f.getPoints()}var d=i.getRawBytes(),h=new s["a"](i.getText(),d,8*d.length,a,r["a"].DATA_MATRIX,u["a"].currentTimeMillis()),p=i.getByteSegments();null!=p&&h.putMetadata(l["a"].BYTE_SEGMENTS,p);var m=i.getECLevel();return null!=m&&h.putMetadata(l["a"].ERROR_CORRECTION_LEVEL,m),h},e.prototype.reset=function(){},e.extractPureBits=function(e){var t=e.getTopLeftOnBit(),n=e.getBottomRightOnBit();if(null==t||null==n)throw new a["a"];var r=this.moduleSize(t,e),o=t[1],s=n[1],l=t[0],u=n[0],c=(u-l+1)/r,f=(s-o+1)/r;if(c<=0||f<=0)throw new a["a"];var d=r/2;o+=d,l+=d;for(var h=new i["a"](c,f),p=0;p<f;p++)for(var m=o+p*r,g=0;g<c;g++)e.get(l+g*r,m)&&h.set(g,p);return h},e.moduleSize=function(e,t){var n=t.getWidth(),r=e[0],i=e[1];while(r<n&&t.get(r,i))r++;if(r===n)throw new a["a"];var o=r-e[0];if(0===o)throw new a["a"];return o},e.NO_POINTS=[],e}();t["a"]=R},ef01:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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="/dist/",n(n.s=90)}({1:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var l,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},11:function(e,t){e.exports=n("5ea8")},13:function(e,t){e.exports=n("e245")},26:function(e,t){e.exports=n("6864")},4:function(e,t){e.exports=n("bbe4")},90:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["textarea"===e.type?"el-textarea":"el-input",e.inputSize?"el-input--"+e.inputSize:"",{"is-disabled":e.inputDisabled,"is-exceed":e.inputExceed,"el-input-group":e.$slots.prepend||e.$slots.append,"el-input-group--append":e.$slots.append,"el-input-group--prepend":e.$slots.prepend,"el-input--prefix":e.$slots.prefix||e.prefixIcon,"el-input--suffix":e.$slots.suffix||e.suffixIcon||e.clearable||e.showPassword}],on:{mouseenter:function(t){e.hovering=!0},mouseleave:function(t){e.hovering=!1}}},["textarea"!==e.type?[e.$slots.prepend?n("div",{staticClass:"el-input-group__prepend"},[e._t("prepend")],2):e._e(),"textarea"!==e.type?n("input",e._b({ref:"input",staticClass:"el-input__inner",attrs:{tabindex:e.tabindex,type:e.showPassword?e.passwordVisible?"text":"password":e.type,disabled:e.inputDisabled,readonly:e.readonly,autocomplete:e.autoComplete||e.autocomplete,"aria-label":e.label},on:{compositionstart:e.handleCompositionStart,compositionupdate:e.handleCompositionUpdate,compositionend:e.handleCompositionEnd,input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},"input",e.$attrs,!1)):e._e(),e.$slots.prefix||e.prefixIcon?n("span",{staticClass:"el-input__prefix"},[e._t("prefix"),e.prefixIcon?n("i",{staticClass:"el-input__icon",class:e.prefixIcon}):e._e()],2):e._e(),e.getSuffixVisible()?n("span",{staticClass:"el-input__suffix"},[n("span",{staticClass:"el-input__suffix-inner"},[e.showClear&&e.showPwdVisible&&e.isWordLimitVisible?e._e():[e._t("suffix"),e.suffixIcon?n("i",{staticClass:"el-input__icon",class:e.suffixIcon}):e._e()],e.showClear?n("i",{staticClass:"el-input__icon el-icon-circle-close el-input__clear",on:{mousedown:function(e){e.preventDefault()},click:e.clear}}):e._e(),e.showPwdVisible?n("i",{staticClass:"el-input__icon el-icon-view el-input__clear",on:{click:e.handlePasswordVisible}}):e._e(),e.isWordLimitVisible?n("span",{staticClass:"el-input__count"},[n("span",{staticClass:"el-input__count-inner"},[e._v("\n "+e._s(e.textLength)+"/"+e._s(e.upperLimit)+"\n ")])]):e._e()],2),e.validateState?n("i",{staticClass:"el-input__icon",class:["el-input__validateIcon",e.validateIcon]}):e._e()]):e._e(),e.$slots.append?n("div",{staticClass:"el-input-group__append"},[e._t("append")],2):e._e()]:n("textarea",e._b({ref:"textarea",staticClass:"el-textarea__inner",style:e.textareaStyle,attrs:{tabindex:e.tabindex,disabled:e.inputDisabled,readonly:e.readonly,autocomplete:e.autoComplete||e.autocomplete,"aria-label":e.label},on:{compositionstart:e.handleCompositionStart,compositionupdate:e.handleCompositionUpdate,compositionend:e.handleCompositionEnd,input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},"textarea",e.$attrs,!1)),e.isWordLimitVisible&&"textarea"===e.type?n("span",{staticClass:"el-input__count"},[e._v(e._s(e.textLength)+"/"+e._s(e.upperLimit))]):e._e()],2)};r._withStripped=!0;var i=n(4),o=n.n(i),a=n(13),s=n.n(a),l=void 0,u="\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",c=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function f(e){var t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=parseFloat(t.getPropertyValue("padding-bottom"))+parseFloat(t.getPropertyValue("padding-top")),i=parseFloat(t.getPropertyValue("border-bottom-width"))+parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:c.map((function(e){return e+":"+t.getPropertyValue(e)})).join(";"),paddingSize:r,borderSize:i,boxSizing:n}}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;l||(l=document.createElement("textarea"),document.body.appendChild(l));var r=f(e),i=r.paddingSize,o=r.borderSize,a=r.boxSizing,s=r.contextStyle;l.setAttribute("style",s+";"+u),l.value=e.value||e.placeholder||"";var c=l.scrollHeight,d={};"border-box"===a?c+=o:"content-box"===a&&(c-=i),l.value="";var h=l.scrollHeight-i;if(null!==t){var p=h*t;"border-box"===a&&(p=p+i+o),c=Math.max(p,c),d.minHeight=p+"px"}if(null!==n){var m=h*n;"border-box"===a&&(m=m+i+o),c=Math.min(m,c)}return d.height=c+"px",l.parentNode&&l.parentNode.removeChild(l),l=null,d}var h=n(11),p=n.n(h),m=n(26),g={name:"ElInput",componentName:"ElInput",mixins:[o.a,s.a],inheritAttrs:!1,inject:{elForm:{default:""},elFormItem:{default:""}},data:function(){return{textareaCalcStyle:{},hovering:!1,focused:!1,isComposing:!1,passwordVisible:!1}},props:{value:[String,Number],size:String,resize:String,form:String,disabled:Boolean,readonly:Boolean,type:{type:String,default:"text"},autosize:{type:[Boolean,Object],default:!1},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(){return!0}},validateEvent:{type:Boolean,default:!0},suffixIcon:String,prefixIcon:String,label:String,clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},tabindex:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},validateState:function(){return this.elFormItem?this.elFormItem.validateState:""},needStatusIcon:function(){return!!this.elForm&&this.elForm.statusIcon},validateIcon:function(){return{validating:"el-icon-loading",success:"el-icon-circle-check",error:"el-icon-circle-close"}[this.validateState]},textareaStyle:function(){return p()({},this.textareaCalcStyle,{resize:this.resize})},inputSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputDisabled:function(){return this.disabled||(this.elForm||{}).disabled},nativeInputValue:function(){return null===this.value||void 0===this.value?"":String(this.value)},showClear:function(){return this.clearable&&!this.inputDisabled&&!this.readonly&&this.nativeInputValue&&(this.focused||this.hovering)},showPwdVisible:function(){return this.showPassword&&!this.inputDisabled&&!this.readonly&&(!!this.nativeInputValue||this.focused)},isWordLimitVisible:function(){return this.showWordLimit&&this.$attrs.maxlength&&("text"===this.type||"textarea"===this.type)&&!this.inputDisabled&&!this.readonly&&!this.showPassword},upperLimit:function(){return this.$attrs.maxlength},textLength:function(){return"number"==typeof this.value?String(this.value).length:(this.value||"").length},inputExceed:function(){return this.isWordLimitVisible&&this.textLength>this.upperLimit}},watch:{value:function(e){this.$nextTick(this.resizeTextarea),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[e])},nativeInputValue:function(){this.setNativeInputValue()},type:function(){var e=this;this.$nextTick((function(){e.setNativeInputValue(),e.resizeTextarea(),e.updateIconOffset()}))}},methods:{focus:function(){this.getInput().focus()},blur:function(){this.getInput().blur()},getMigratingConfig:function(){return{props:{icon:"icon is removed, use suffix-icon / prefix-icon instead.","on-icon-click":"on-icon-click is removed."},events:{click:"click is removed."}}},handleBlur:function(e){this.focused=!1,this.$emit("blur",e),this.validateEvent&&this.dispatch("ElFormItem","el.form.blur",[this.value])},select:function(){this.getInput().select()},resizeTextarea:function(){if(!this.$isServer){var e=this.autosize;if("textarea"===this.type)if(e){var t=e.minRows,n=e.maxRows;this.textareaCalcStyle=d(this.$refs.textarea,t,n)}else this.textareaCalcStyle={minHeight:d(this.$refs.textarea).minHeight}}},setNativeInputValue:function(){var e=this.getInput();e&&e.value!==this.nativeInputValue&&(e.value=this.nativeInputValue)},handleFocus:function(e){this.focused=!0,this.$emit("focus",e)},handleCompositionStart:function(){this.isComposing=!0},handleCompositionUpdate:function(e){var t=e.target.value,n=t[t.length-1]||"";this.isComposing=!Object(m.isKorean)(n)},handleCompositionEnd:function(e){this.isComposing&&(this.isComposing=!1,this.handleInput(e))},handleInput:function(e){this.isComposing||e.target.value!==this.nativeInputValue&&(this.$emit("input",e.target.value),this.$nextTick(this.setNativeInputValue))},handleChange:function(e){this.$emit("change",e.target.value)},calcIconOffset:function(e){var t=[].slice.call(this.$el.querySelectorAll(".el-input__"+e)||[]);if(t.length){for(var n=null,r=0;r<t.length;r++)if(t[r].parentNode===this.$el){n=t[r];break}if(n){if("suffix"===e&&this.isWordLimitVisible){var i=this.$refs.input,o=parseInt(getComputedStyle(n).right,10)||0,a=n.offsetWidth+o;i.style.paddingRight=a+"px"}var s={suffix:"append",prefix:"prepend"}[e];this.$slots[s]?n.style.transform="translateX("+("suffix"===e?"-":"")+this.$el.querySelector(".el-input-group__"+s).offsetWidth+"px)":n.removeAttribute("style")}}else(this.$refs.input||this.$refs.textarea).style.paddingRight=""},updateIconOffset:function(){var e=this;this.$nextTick((function(){e.calcIconOffset("prefix"),e.calcIconOffset("suffix")}))},clear:function(){this.$emit("input",""),this.$emit("change",""),this.$emit("clear")},handlePasswordVisible:function(){var e=this;this.passwordVisible=!this.passwordVisible,this.$nextTick((function(){e.focus()}))},getInput:function(){return this.$refs.input||this.$refs.textarea},getSuffixVisible:function(){return this.$slots.suffix||this.suffixIcon||this.showClear||this.showPassword||this.isWordLimitVisible||this.validateState&&this.needStatusIcon}},created:function(){this.$on("inputSelect",this.select)},mounted:function(){this.setNativeInputValue(),this.resizeTextarea(),this.updateIconOffset()},updated:function(){this.$nextTick(this.updateIconOffset)}},v=n(1),b=Object(v.a)(g,r,[],!1,null,null,null);b.options.__file="packages/input/src/input.vue";var y=b.exports;y.install=function(e){e.component(y.name,y)},t.default=y}})},f034:function(e,t){(function(){"use strict";var e=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},t=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=function(e){return{isFullscreen:function(){return null!==e.get()}}},r=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},i=function(e){return function(t){return r(t)===e}},o=function(e){return function(t){return typeof t===e}},a=i("string"),s=i("array"),l=o("boolean"),u=function(e){return null===e||void 0===e},c=function(e){return!u(e)},f=o("function"),d=o("number"),h=function(){},p=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e(t.apply(null,n))}},m=function(e,t){return function(n){return e(t(n))}},g=function(e){return function(){return e}},v=function(e){return e};function b(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=t.concat(n);return e.apply(null,i)}}var y=g(!1),w=g(!0),_=function(){return C},C=function(){var e=function(e){return e()},t=v,n={fold:function(e,t){return e()},isSome:y,isNone:w,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:g(null),getOrUndefined:g(void 0),or:t,orThunk:e,map:_,each:h,bind:_,exists:y,forall:w,filter:function(){return _()},toArray:function(){return[]},toString:g("none()")};return n}(),x=function(e){var t=g(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},isSome:w,isNone:y,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return x(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:C},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return i},S=function(e){return null===e||void 0===e?C:x(e)},k={some:x,none:_,from:S},D=function(){return D=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},D.apply(this,arguments)},O=function(t){var n=e(k.none()),r=function(){return n.get().each(t)},i=function(){r(),n.set(k.none())},o=function(){return n.get().isSome()},a=function(){return n.get()},s=function(e){r(),n.set(k.some(e))};return{clear:i,isSet:o,get:a,set:s}},T=function(){return O((function(e){return e.unbind()}))},E=function(){var e=O(h),t=function(t){return e.get().each(t)};return D(D({},e),{on:t})},I=Array.prototype.push,N=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r},A=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];t(i,n)}},P=function(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];t(o,r)&&n.push(o)}return n},M=function(e,t,n){for(var r=0,i=e.length;r<i;r++){var o=e[r];if(t(o,r))return k.some(o);if(n(o,r))break}return k.none()},R=function(e,t){return M(e,t,y)},F=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!s(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);I.apply(t,e[n])}return t},B=function(e,t){return F(N(e,t))},L=function(e,t){return t>=0&&t<e.length?k.some(e[t]):k.none()},$=function(e){return L(e,0)},V=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return k.none()},j=Object.keys,z=function(e,t){for(var n=j(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];t(a,o)}},H=function(e,t){return-1!==e.indexOf(t)},U=function(e){return void 0!==e.style&&f(e.style.getPropertyValue)},W=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return Y(r.childNodes[0])},q=function(e,t){var n=t||document,r=n.createElement(e);return Y(r)},G=function(e,t){var n=t||document,r=n.createTextNode(e);return Y(r)},Y=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},K=function(e,t,n){return k.from(e.dom.elementFromPoint(t,n)).map(Y)},X={fromHtml:W,fromTag:q,fromText:G,fromDom:Y,fromPoint:K};"undefined"!==typeof window?window:Function("return this;")();var J=9,Z=11,Q=1,ee=3,te=function(e){return e.dom.nodeType},ne=function(e){return function(t){return te(t)===e}},re=ne(Q),ie=ne(ee),oe=ne(J),ae=ne(Z),se=function(e){var t,n=!1;return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return n||(n=!0,t=e.apply(null,r)),t}},le=function(e,t,n,r){var i=e.isiOS()&&!0===/ipad/i.test(n),o=e.isiOS()&&!i,a=e.isiOS()||e.isAndroid(),s=a||r("(pointer:coarse)"),l=i||!o&&a&&r("(min-device-width:768px)"),u=o||a&&!l,c=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n),f=!u&&!l&&!c;return{isiPad:g(i),isiPhone:g(o),isTablet:g(l),isPhone:g(u),isTouch:g(s),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:g(c),isDesktop:g(f)}},ue=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}},ce=function(e,t){var n=ue(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return he(r(1),r(2))},fe=function(e,t){var n=String(t).toLowerCase();return 0===e.length?de():ce(e,n)},de=function(){return he(0,0)},he=function(e,t){return{major:e,minor:t}},pe={nu:he,detect:fe,unknown:de},me=function(e,t){return V(t.brands,(function(t){var n=t.brand.toLowerCase();return R(e,(function(e){var t;return n===(null===(t=e.brand)||void 0===t?void 0:t.toLowerCase())})).map((function(e){return{current:e.name,version:pe.nu(parseInt(t.version,10),0)}}))}))},ge=function(e,t){var n=String(t).toLowerCase();return R(e,(function(e){return e.search(n)}))},ve=function(e,t){return ge(e,t).map((function(e){var n=pe.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},be=function(e,t){return ge(e,t).map((function(e){var n=pe.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},ye=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,we=function(e){return function(t){return H(t,e)}},_e=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return H(e,"edge/")&&H(e,"chrome")&&H(e,"safari")&&H(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,ye],search:function(e){return H(e,"chrome")&&!H(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return H(e,"msie")||H(e,"trident")}},{name:"Opera",versionRegexes:[ye,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:we("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:we("firefox")},{name:"Safari",versionRegexes:[ye,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(H(e,"safari")||H(e,"mobile/"))&&H(e,"applewebkit")}}],Ce=[{name:"Windows",search:we("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return H(e,"iphone")||H(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:we("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:we("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:we("linux"),versionRegexes:[]},{name:"Solaris",search:we("sunos"),versionRegexes:[]},{name:"FreeBSD",search:we("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:we("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],xe={browsers:g(_e),oses:g(Ce)},Se="Edge",ke="Chrome",De="IE",Oe="Opera",Te="Firefox",Ee="Safari",Ie=function(){return Ne({current:void 0,version:pe.unknown()})},Ne=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isEdge:r(Se),isChrome:r(ke),isIE:r(De),isOpera:r(Oe),isFirefox:r(Te),isSafari:r(Ee)}},Ae={unknown:Ie,nu:Ne,edge:g(Se),chrome:g(ke),ie:g(De),opera:g(Oe),firefox:g(Te),safari:g(Ee)},Pe="Windows",Me="iOS",Re="Android",Fe="Linux",Be="OSX",Le="Solaris",$e="FreeBSD",Ve="ChromeOS",je=function(){return ze({current:void 0,version:pe.unknown()})},ze=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isWindows:r(Pe),isiOS:r(Me),isAndroid:r(Re),isOSX:r(Be),isLinux:r(Fe),isSolaris:r(Le),isFreeBSD:r($e),isChromeOS:r(Ve)}},He={unknown:je,nu:ze,windows:g(Pe),ios:g(Me),android:g(Re),linux:g(Fe),osx:g(Be),solaris:g(Le),freebsd:g($e),chromeos:g(Ve)},Ue=function(e,t,n){var r=xe.browsers(),i=xe.oses(),o=t.bind((function(e){return me(r,e)})).orThunk((function(){return ve(r,e)})).fold(Ae.unknown,Ae.nu),a=be(i,e).fold(He.unknown,He.nu),s=le(a,o,e,n);return{browser:o,os:a,deviceType:s}},We={detect:Ue},qe=function(e){return window.matchMedia(e).matches},Ge=se((function(){return We.detect(navigator.userAgent,k.from(navigator.userAgentData),qe)})),Ye=function(){return Ge()},Ke=function(e,t){var n=e.dom;if(n.nodeType!==Q)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},Xe=function(e){return e.nodeType!==Q&&e.nodeType!==J&&e.nodeType!==Z||0===e.childElementCount},Je=function(e,t){var n=void 0===t?document:t.dom;return Xe(n)?[]:N(n.querySelectorAll(e),X.fromDom)},Ze=function(e,t){return e.dom===t.dom},Qe=function(e){return X.fromDom(e.dom.ownerDocument)},et=function(e){return oe(e)?e:Qe(e)},tt=function(e){return k.from(e.dom.parentNode).map(X.fromDom)},nt=function(e,t){var n=f(t)?t:y,r=e.dom,i=[];while(null!==r.parentNode&&void 0!==r.parentNode){var o=r.parentNode,a=X.fromDom(o);if(i.push(a),!0===n(a))break;r=o}return i},rt=function(e){var t=function(t){return P(t,(function(t){return!Ze(e,t)}))};return tt(e).map(it).map(t).getOr([])},it=function(e){return N(e.dom.childNodes,X.fromDom)},ot=function(e){return ae(e)&&c(e.dom.host)},at=f(Element.prototype.attachShadow)&&f(Node.prototype.getRootNode),st=g(at),lt=at?function(e){return X.fromDom(e.dom.getRootNode())}:et,ut=function(e){var t=lt(e);return ot(t)?k.some(t):k.none()},ct=function(e){return X.fromDom(e.dom.host)},ft=function(e){if(st()&&c(e.target)){var t=X.fromDom(e.target);if(re(t)&&dt(t)&&e.composed&&e.composedPath){var n=e.composedPath();if(n)return $(n)}}return k.from(e.target)},dt=function(e){return c(e.dom.shadowRoot)},ht=function(e){var t=ie(e)?e.dom.parentNode:e.dom;if(void 0===t||null===t||null===t.ownerDocument)return!1;var n=t.ownerDocument;return ut(X.fromDom(t)).fold((function(){return n.body.contains(t)}),m(ht,ct))},pt=function(e){var t=e.dom.body;if(null===t||void 0===t)throw new Error("Body is not available yet");return X.fromDom(t)},mt=function(e,t,n){if(!(a(n)||l(n)||d(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},gt=function(e,t,n){mt(e.dom,t,n)},vt=function(e,t){var n=e.dom.getAttribute(t);return null===n?void 0:n},bt=function(e,t){e.dom.removeAttribute(t)},yt=function(e,t,n){if(!a(n))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",n,":: Element ",e),new Error("CSS value must be a string: "+n);U(e)&&e.style.setProperty(t,n)},wt=function(e,t){var n=e.dom;z(t,(function(e,t){yt(n,t,e)}))},_t=function(e,t){var n=e.dom,r=window.getComputedStyle(n),i=r.getPropertyValue(t);return""!==i||ht(e)?i:Ct(n,t)},Ct=function(e,t){return U(e)?e.style.getPropertyValue(t):""},xt=function(e,t,n,r,i,o,a){return{target:e,x:t,y:n,stop:r,prevent:i,kill:o,raw:a}},St=function(e){var t=X.fromDom(ft(e).getOr(e.target)),n=function(){return e.stopPropagation()},r=function(){return e.preventDefault()},i=p(r,n);return xt(t,e.clientX,e.clientY,n,r,i,e)},kt=function(e,t){return function(n){e(n)&&t(St(n))}},Dt=function(e,t,n,r,i){var o=kt(n,r);return e.dom.addEventListener(t,o,i),{unbind:b(Tt,e,t,o,i)}},Ot=function(e,t,n,r){return Dt(e,t,n,r,!1)},Tt=function(e,t,n,r){e.dom.removeEventListener(t,n,r)},Et=w,It=function(e,t,n){return Ot(e,t,Et,n)},Nt=function(e,t){var n=function(n,r){return Nt(e+n,t+r)};return{left:e,top:t,translate:n}},At=Nt,Pt=function(e){var t=void 0!==e?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,r=t.body.scrollTop||t.documentElement.scrollTop;return At(n,r)},Mt=function(e){var t=void 0===e?window:e;return Ye().browser.isFirefox()?k.none():k.from(t["visualViewport"])},Rt=function(e,t,n,r){return{x:e,y:t,width:n,height:r,right:e+n,bottom:t+r}},Ft=function(e){var t=void 0===e?window:e,n=t.document,r=Pt(X.fromDom(n));return Mt(t).fold((function(){var e=t.document.documentElement,n=e.clientWidth,i=e.clientHeight;return Rt(r.left,r.top,n,i)}),(function(e){return Rt(Math.max(e.pageLeft,r.left),Math.max(e.pageTop,r.top),e.width,e.height)}))},Bt=function(e,t,n){return Mt(n).map((function(n){var r=function(e){return t(St(e))};return n.addEventListener(e,r),{unbind:function(){return n.removeEventListener(e,r)}}})).getOrThunk((function(){return{unbind:h}}))},Lt=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),$t=tinymce.util.Tools.resolve("tinymce.Env"),Vt=tinymce.util.Tools.resolve("tinymce.util.Delay"),jt=function(e,t){e.fire("FullscreenStateChanged",{state:t}),e.fire("ResizeEditor")},zt=function(e){return e.getParam("fullscreen_native",!1,"boolean")},Ht=function(e){var t=X.fromDom(e.getElement());return ut(t).map(ct).getOrThunk((function(){return pt(Qe(t))}))},Ut=function(e){return void 0!==e.fullscreenElement?e.fullscreenElement:void 0!==e.msFullscreenElement?e.msFullscreenElement:void 0!==e.webkitFullscreenElement?e.webkitFullscreenElement:null},Wt=function(){return void 0!==document.fullscreenElement?"fullscreenchange":void 0!==document.msFullscreenElement?"MSFullscreenChange":void 0!==document.webkitFullscreenElement?"webkitfullscreenchange":"fullscreenchange"},qt=function(e){var t=e.dom;t.requestFullscreen?t.requestFullscreen():t.msRequestFullscreen?t.msRequestFullscreen():t.webkitRequestFullScreen&&t.webkitRequestFullScreen()},Gt=function(e){var t=e.dom;t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitCancelFullScreen&&t.webkitCancelFullScreen()},Yt=function(e){return e.dom===Ut(Qe(e).dom)},Kt=function(e,t,n){return P(nt(e,n),t)},Xt=function(e,t){return P(rt(e),t)},Jt=function(e){return Je(e)},Zt=function(e,t,n){return Kt(e,(function(e){return Ke(e,t)}),n)},Qt=function(e,t){return Xt(e,(function(e){return Ke(e,t)}))},en="data-ephox-mobile-fullscreen-style",tn="display:none!important;",nn="position:absolute!important;",rn="top:0!important;left:0!important;margin:0!important;padding:0!important;width:100%!important;height:100%!important;overflow:visible!important;",on="background-color:rgb(255,255,255)!important;",an=$t.os.isAndroid(),sn=function(e){var t=_t(e,"background-color");return void 0!==t&&""!==t?"background-color:"+t+"!important":on},ln=function(e,t,n){var r=function(e){return Qt(e,"*:not(.tox-silver-sink)")},i=function(t){return function(n){var r=vt(n,"style"),i=void 0===r?"no-styles":r.trim();i!==t&&(gt(n,en,i),wt(n,e.parseStyle(t)))}},o=Zt(t,"*"),a=B(o,r),s=sn(n);A(a,i(tn)),A(o,i(nn+rn+s));var l=!0===an?"":nn;i(l+rn+s)(t)},un=function(e){var t=Jt("["+en+"]");A(t,(function(t){var n=vt(t,en);"no-styles"!==n?wt(t,e.parseStyle(n)):bt(t,"style"),bt(t,en)}))},cn=Lt.DOM,fn=function(){return Ft(window)},dn=function(e){return window.scrollTo(e.x,e.y)},hn=Mt().fold((function(){return{bind:h,unbind:h}}),(function(e){var t=E(),n=T(),r=T(),i=function(){document.body.scrollTop=0,document.documentElement.scrollTop=0},o=function(){window.requestAnimationFrame((function(){t.on((function(t){return wt(t,{top:e.offsetTop+"px",left:e.offsetLeft+"px",height:e.height+"px",width:e.width+"px"})}))}))},a=Vt.throttle((function(){i(),o()}),50),s=function(e){t.set(e),a(),n.set(Bt("resize",a)),r.set(Bt("scroll",a))},l=function(){t.on((function(){n.clear(),r.clear()})),t.clear()};return{bind:s,unbind:l}})),pn=function(e,t){var n=document.body,r=document.documentElement,i=e.getContainer(),o=X.fromDom(i),a=Ht(e),s=t.get(),l=X.fromDom(e.getBody()),u=$t.deviceType.isTouch(),c=i.style,f=e.iframeElement,d=f.style,h=function(e){e(n,"tox-fullscreen"),e(r,"tox-fullscreen"),e(i,"tox-fullscreen"),ut(o).map((function(e){return ct(e).dom})).each((function(t){e(t,"tox-fullscreen"),e(t,"tox-shadowhost")}))},p=function(){u&&un(e.dom),h(cn.removeClass),hn.unbind(),k.from(t.get()).each((function(e){return e.fullscreenChangeHandler.unbind()}))};if(s)s.fullscreenChangeHandler.unbind(),zt(e)&&Yt(a)&&Gt(Qe(a)),d.width=s.iframeWidth,d.height=s.iframeHeight,c.width=s.containerWidth,c.height=s.containerHeight,c.top=s.containerTop,c.left=s.containerLeft,p(),dn(s.scrollPos),t.set(null),jt(e,!1),e.off("remove",p);else{var m=It(Qe(a),Wt(),(function(n){zt(e)&&(Yt(a)||null===t.get()||pn(e,t))})),g={scrollPos:fn(),containerWidth:c.width,containerHeight:c.height,containerTop:c.top,containerLeft:c.left,iframeWidth:d.width,iframeHeight:d.height,fullscreenChangeHandler:m};u&&ln(e.dom,o,l),d.width=d.height="100%",c.width=c.height="",h(cn.addClass),hn.bind(o),e.on("remove",p),t.set(g),zt(e)&&qt(a),jt(e,!0)}},mn=function(e,t){e.addCommand("mceFullScreen",(function(){pn(e,t)}))},gn=function(e,t){return function(n){n.setActive(null!==t.get());var r=function(e){return n.setActive(e.state)};return e.on("FullscreenStateChanged",r),function(){return e.off("FullscreenStateChanged",r)}}},vn=function(e,t){var n=function(){return e.execCommand("mceFullScreen")};e.ui.registry.addToggleMenuItem("fullscreen",{text:"Fullscreen",icon:"fullscreen",shortcut:"Meta+Shift+F",onAction:n,onSetup:gn(e,t)}),e.ui.registry.addToggleButton("fullscreen",{tooltip:"Fullscreen",icon:"fullscreen",onAction:n,onSetup:gn(e,t)})};function bn(){t.add("fullscreen",(function(t){var r=e(null);return t.inline||(mn(t,r),vn(t,r),t.addShortcut("Meta+Shift+F","","mceFullScreen")),n(r)}))}bn()})()},f0a7:function(e,t,n){"use strict";var r=n("d0b6"),i=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.kind="IllegalArgumentException",t}(r["a"]);t["a"]=o},f0c1:function(e,t,n){"use strict";var r=n("d8e8"),i=n("d3f4"),o=n("31f4"),a=[].slice,s={},l=function(e,t,n){if(!(t in s)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";s[t]=Function("F,a","return new F("+r.join(",")+")")}return s[t](e,n)};e.exports=Function.bind||function(e){var t=r(this),n=a.call(arguments,1),s=function(){var r=n.concat(a.call(arguments));return this instanceof s?l(t,r.length,r):o(t,r,e)};return i(t.prototype)&&(s.prototype=t.prototype),s}},f0c7:function(e,t,n){},f1ae:function(e,t,n){"use strict";var r=n("86cc"),i=n("4630");e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},f1aed:function(e,t,n){"use strict";var r=n("a363"),i=n("7163"),o=n("84b8"),a=n("2011"),s=n("ec6d"),l=n("23a7"),u=n("ea29"),c=n("9cca"),f=n("f0a7"),d=n("f823");(function(){function e(){}e.prototype.encode=function(e,t,n,r){return this.encodeWithHints(e,t,n,r,null)},e.prototype.encodeWithHints=function(t,n,r,a,c){var f=l["a"].ISO_8859_1,d=o["a"].DEFAULT_EC_PERCENT,h=o["a"].DEFAULT_AZTEC_LAYERS;return null!=c&&(c.has(i["a"].CHARACTER_SET)&&(f=s["a"].forName(c.get(i["a"].CHARACTER_SET).toString())),c.has(i["a"].ERROR_CORRECTION)&&(d=u["a"].parseInt(c.get(i["a"].ERROR_CORRECTION).toString())),c.has(i["a"].AZTEC_LAYERS)&&(h=u["a"].parseInt(c.get(i["a"].AZTEC_LAYERS).toString()))),e.encodeLayers(t,n,r,a,f,d,h)},e.encodeLayers=function(t,n,i,a,s,l,u){if(n!==r["a"].AZTEC)throw new f["a"]("Can only encode AZTEC, but got "+n);var c=o["a"].encode(d["a"].getBytes(t,s),l,u);return e.renderResult(c,i,a)},e.renderResult=function(e,t,n){var r=e.getMatrix();if(null==r)throw new c["a"];for(var i=r.getWidth(),o=r.getHeight(),s=Math.max(t,i),l=Math.max(n,o),u=Math.min(s/i,l/o),f=(s-i*u)/2,d=(l-o*u)/2,h=new a["a"](s,l),p=0,m=d;p<o;p++,m+=u)for(var g=0,v=f;g<i;g++,v+=u)r.get(g,p)&&h.setRegion(v,m,u,u);return h}})()},f201:function(e,t,n){var r=n("e4ae"),i=n("79aa"),o=n("5168")("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||void 0==(n=r(a)[o])?t:i(n)}},f20f:function(e,t,n){"use strict";var r=n("6530"),i=n("1cba"),o=function(){function e(e,t){this.width=e,this.height=t}return e.prototype.getWidth=function(){return this.width},e.prototype.getHeight=function(){return this.height},e.prototype.isCropSupported=function(){return!1},e.prototype.crop=function(e,t,n,r){throw new i["a"]("This luminance source does not support cropping.")},e.prototype.isRotateSupported=function(){return!1},e.prototype.rotateCounterClockwise=function(){throw new i["a"]("This luminance source does not support rotation by 90 degrees.")},e.prototype.rotateCounterClockwise45=function(){throw new i["a"]("This luminance source does not support rotation by 45 degrees.")},e.prototype.toString=function(){for(var e=new Uint8ClampedArray(this.width),t=new r["a"],n=0;n<this.height;n++){for(var i=this.getRow(n,e),o=0;o<this.width;o++){var a=255&i[o],s=void 0;s=a<64?"#":a<128?"+":a<192?".":" ",t.append(s)}t.append("\n")}return t.toString()},e}();t["a"]=o},f321:function(e,t,n){"use strict";t.__esModule=!0,t.isInContainer=t.getScrollContainer=t.isScroll=t.getStyle=t.once=t.off=t.on=void 0;var r=n("1098"),i=s(r);t.hasClass=g,t.addClass=v,t.removeClass=b,t.setStyle=w;var o=n("8bbf"),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}var l=a.default.prototype.$isServer,u=/([:\-_]+(.))/g,c=/^moz([A-Z])/,f=l?0:Number(document.documentMode),d=function(e){return(e||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},h=function(e){return e.replace(u,(function(e,t,n,r){return r?n.toUpperCase():n})).replace(c,"Moz$1")},p=t.on=function(){return!l&&document.addEventListener?function(e,t,n){e&&t&&n&&e.addEventListener(t,n,!1)}:function(e,t,n){e&&t&&n&&e.attachEvent("on"+t,n)}}(),m=t.off=function(){return!l&&document.removeEventListener?function(e,t,n){e&&t&&e.removeEventListener(t,n,!1)}:function(e,t,n){e&&t&&e.detachEvent("on"+t,n)}}();t.once=function(e,t,n){var r=function r(){n&&n.apply(this,arguments),m(e,t,r)};p(e,t,r)};function g(e,t){if(!e||!t)return!1;if(-1!==t.indexOf(" "))throw new Error("className should not contain space.");return e.classList?e.classList.contains(t):(" "+e.className+" ").indexOf(" "+t+" ")>-1}function v(e,t){if(e){for(var n=e.className,r=(t||"").split(" "),i=0,o=r.length;i<o;i++){var a=r[i];a&&(e.classList?e.classList.add(a):g(e,a)||(n+=" "+a))}e.classList||(e.className=n)}}function b(e,t){if(e&&t){for(var n=t.split(" "),r=" "+e.className+" ",i=0,o=n.length;i<o;i++){var a=n[i];a&&(e.classList?e.classList.remove(a):g(e,a)&&(r=r.replace(" "+a+" "," ")))}e.classList||e.setAttribute("class",d(r))}}var y=t.getStyle=f<9?function(e,t){if(!l){if(!e||!t)return null;t=h(t),"float"===t&&(t="styleFloat");try{switch(t){case"opacity":try{return e.filters.item("alpha").opacity/100}catch(n){return 1}default:return e.style[t]||e.currentStyle?e.currentStyle[t]:null}}catch(n){return e.style[t]}}}:function(e,t){if(!l){if(!e||!t)return null;t=h(t),"float"===t&&(t="cssFloat");try{var n=document.defaultView.getComputedStyle(e,"");return e.style[t]||n?n[t]:null}catch(r){return e.style[t]}}};function w(e,t,n){if(e&&t)if("object"===("undefined"===typeof t?"undefined":(0,i.default)(t)))for(var r in t)t.hasOwnProperty(r)&&w(e,r,t[r]);else t=h(t),"opacity"===t&&f<9?e.style.filter=isNaN(n)?"":"alpha(opacity="+100*n+")":e.style[t]=n}var _=t.isScroll=function(e,t){if(!l){var n=null!==t&&void 0!==t,r=y(e,n?t?"overflow-y":"overflow-x":"overflow");return r.match(/(scroll|auto|overlay)/)}};t.getScrollContainer=function(e,t){if(!l){var n=e;while(n){if([window,document,document.documentElement].includes(n))return window;if(_(n,t))return n;n=n.parentNode}return n}},t.isInContainer=function(e,t){if(l||!e||!t)return!1;var n=e.getBoundingClientRect(),r=void 0;return r=[window,document,document.documentElement,null,void 0].includes(t)?{top:0,right:window.innerWidth,bottom:window.innerHeight,left:0}:t.getBoundingClientRect(),n.top<r.bottom&&n.bottom>r.top&&n.right>r.left&&n.left<r.right}},f400:function(e,t,n){"use strict";var r=n("c26b"),i=n("b39a"),o="Map";e.exports=n("e0b8")(o,(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(e){var t=r.getEntry(i(this,o),e);return t&&t.v},set:function(e,t){return r.def(i(this,o),0===e?0:e,t)}},r,!0)},f505:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n("f8c0"),i=n("57fd"),o=n("2d92"),a=n("5641"),s=n("7978"),l=n("ca08"),u=n("0c36"),c=n("e027"),f=function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):i(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())}))},d=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return l([e,t])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},h=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},p=function(){function e(e,t,n){void 0===t&&(t=500),this.reader=e,this.timeBetweenScansMillis=t,this._hints=n,this._stopContinuousDecode=!1,this._stopAsyncDecode=!1,this._timeBetweenDecodingAttempts=0}return Object.defineProperty(e.prototype,"hasNavigator",{get:function(){return"undefined"!==typeof navigator},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isMediaDevicesSuported",{get:function(){return this.hasNavigator&&!!navigator.mediaDevices},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"canEnumerateDevices",{get:function(){return!(!this.isMediaDevicesSuported||!navigator.mediaDevices.enumerateDevices)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"timeBetweenDecodingAttempts",{get:function(){return this._timeBetweenDecodingAttempts},set:function(e){this._timeBetweenDecodingAttempts=e<0?0:e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hints",{get:function(){return this._hints},set:function(e){this._hints=e||null},enumerable:!1,configurable:!0}),e.prototype.listVideoInputDevices=function(){return f(this,void 0,void 0,(function(){var e,t,n,r,i,o,a,s,l,u,c,f;return d(this,(function(d){switch(d.label){case 0:if(!this.hasNavigator)throw new Error("Can't enumerate devices, navigator is not present.");if(!this.canEnumerateDevices)throw new Error("Can't enumerate devices, method not supported.");return[4,navigator.mediaDevices.enumerateDevices()];case 1:e=d.sent(),t=[];try{for(n=h(e),r=n.next();!r.done;r=n.next())i=r.value,o="video"===i.kind?"videoinput":i.kind,"videoinput"===o&&(a=i.deviceId||i.id,s=i.label||"Video device "+(t.length+1),l=i.groupId,u={deviceId:a,label:s,kind:o,groupId:l},t.push(u))}catch(p){c={error:p}}finally{try{r&&!r.done&&(f=n.return)&&f.call(n)}finally{if(c)throw c.error}}return[2,t]}}))}))},e.prototype.getVideoInputDevices=function(){return f(this,void 0,void 0,(function(){var e;return d(this,(function(t){switch(t.label){case 0:return[4,this.listVideoInputDevices()];case 1:return e=t.sent(),[2,e.map((function(e){return new c["a"](e.deviceId,e.label)}))]}}))}))},e.prototype.findDeviceById=function(e){return f(this,void 0,void 0,(function(){var t;return d(this,(function(n){switch(n.label){case 0:return[4,this.listVideoInputDevices()];case 1:return t=n.sent(),t?[2,t.find((function(t){return t.deviceId===e}))]:[2,null]}}))}))},e.prototype.decodeFromInputVideoDevice=function(e,t){return f(this,void 0,void 0,(function(){return d(this,(function(n){switch(n.label){case 0:return[4,this.decodeOnceFromVideoDevice(e,t)];case 1:return[2,n.sent()]}}))}))},e.prototype.decodeOnceFromVideoDevice=function(e,t){return f(this,void 0,void 0,(function(){var n,r;return d(this,(function(i){switch(i.label){case 0:return this.reset(),n=e?{deviceId:{exact:e}}:{facingMode:"environment"},r={video:n},[4,this.decodeOnceFromConstraints(r,t)];case 1:return[2,i.sent()]}}))}))},e.prototype.decodeOnceFromConstraints=function(e,t){return f(this,void 0,void 0,(function(){var n;return d(this,(function(r){switch(r.label){case 0:return[4,navigator.mediaDevices.getUserMedia(e)];case 1:return n=r.sent(),[4,this.decodeOnceFromStream(n,t)];case 2:return[2,r.sent()]}}))}))},e.prototype.decodeOnceFromStream=function(e,t){return f(this,void 0,void 0,(function(){var n,r;return d(this,(function(i){switch(i.label){case 0:return this.reset(),[4,this.attachStreamToVideo(e,t)];case 1:return n=i.sent(),[4,this.decodeOnce(n)];case 2:return r=i.sent(),[2,r]}}))}))},e.prototype.decodeFromInputVideoDeviceContinuously=function(e,t,n){return f(this,void 0,void 0,(function(){return d(this,(function(r){switch(r.label){case 0:return[4,this.decodeFromVideoDevice(e,t,n)];case 1:return[2,r.sent()]}}))}))},e.prototype.decodeFromVideoDevice=function(e,t,n){return f(this,void 0,void 0,(function(){var r,i;return d(this,(function(o){switch(o.label){case 0:return r=e?{deviceId:{exact:e}}:{facingMode:"environment"},i={video:r},[4,this.decodeFromConstraints(i,t,n)];case 1:return[2,o.sent()]}}))}))},e.prototype.decodeFromConstraints=function(e,t,n){return f(this,void 0,void 0,(function(){var r;return d(this,(function(i){switch(i.label){case 0:return[4,navigator.mediaDevices.getUserMedia(e)];case 1:return r=i.sent(),[4,this.decodeFromStream(r,t,n)];case 2:return[2,i.sent()]}}))}))},e.prototype.decodeFromStream=function(e,t,n){return f(this,void 0,void 0,(function(){var r;return d(this,(function(i){switch(i.label){case 0:return this.reset(),[4,this.attachStreamToVideo(e,t)];case 1:return r=i.sent(),[4,this.decodeContinuously(r,n)];case 2:return[2,i.sent()]}}))}))},e.prototype.stopAsyncDecode=function(){this._stopAsyncDecode=!0},e.prototype.stopContinuousDecode=function(){this._stopContinuousDecode=!0},e.prototype.attachStreamToVideo=function(e,t){return f(this,void 0,void 0,(function(){var n;return d(this,(function(r){switch(r.label){case 0:return n=this.prepareVideoElement(t),this.addVideoSource(n,e),this.videoElement=n,this.stream=e,[4,this.playVideoOnLoadAsync(n)];case 1:return r.sent(),[2,n]}}))}))},e.prototype.playVideoOnLoadAsync=function(e){var t=this;return new Promise((function(n,r){return t.playVideoOnLoad(e,(function(){return n()}))}))},e.prototype.playVideoOnLoad=function(e,t){var n=this;this.videoEndedListener=function(){return n.stopStreams()},this.videoCanPlayListener=function(){return n.tryPlayVideo(e)},e.addEventListener("ended",this.videoEndedListener),e.addEventListener("canplay",this.videoCanPlayListener),e.addEventListener("playing",t),this.tryPlayVideo(e)},e.prototype.isVideoPlaying=function(e){return e.currentTime>0&&!e.paused&&!e.ended&&e.readyState>2},e.prototype.tryPlayVideo=function(e){return f(this,void 0,void 0,(function(){return d(this,(function(t){switch(t.label){case 0:if(this.isVideoPlaying(e))return console.warn("Trying to play video that is already playing."),[2];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,e.play()];case 2:return t.sent(),[3,4];case 3:return t.sent(),console.warn("It was not possible to play the video."),[3,4];case 4:return[2]}}))}))},e.prototype.getMediaElement=function(e,t){var n=document.getElementById(e);if(!n)throw new r["a"]("element with id '"+e+"' not found");if(n.nodeName.toLowerCase()!==t.toLowerCase())throw new r["a"]("element with id '"+e+"' must be an "+t+" element");return n},e.prototype.decodeFromImage=function(e,t){if(!e&&!t)throw new r["a"]("either imageElement with a src set or an url must be provided");return t&&!e?this.decodeFromImageUrl(t):this.decodeFromImageElement(e)},e.prototype.decodeFromVideo=function(e,t){if(!e&&!t)throw new r["a"]("Either an element with a src set or an URL must be provided");return t&&!e?this.decodeFromVideoUrl(t):this.decodeFromVideoElement(e)},e.prototype.decodeFromVideoContinuously=function(e,t,n){if(void 0===e&&void 0===t)throw new r["a"]("Either an element with a src set or an URL must be provided");return t&&!e?this.decodeFromVideoUrlContinuously(t,n):this.decodeFromVideoElementContinuously(e,n)},e.prototype.decodeFromImageElement=function(e){if(!e)throw new r["a"]("An image element must be provided.");this.reset();var t,n=this.prepareImageElement(e);return this.imageElement=n,t=this.isImageLoaded(n)?this.decodeOnce(n,!1,!0):this._decodeOnLoadImage(n),t},e.prototype.decodeFromVideoElement=function(e){var t=this._decodeFromVideoElementSetup(e);return this._decodeOnLoadVideo(t)},e.prototype.decodeFromVideoElementContinuously=function(e,t){var n=this._decodeFromVideoElementSetup(e);return this._decodeOnLoadVideoContinuously(n,t)},e.prototype._decodeFromVideoElementSetup=function(e){if(!e)throw new r["a"]("A video element must be provided.");this.reset();var t=this.prepareVideoElement(e);return this.videoElement=t,t},e.prototype.decodeFromImageUrl=function(e){if(!e)throw new r["a"]("An URL must be provided.");this.reset();var t=this.prepareImageElement();this.imageElement=t;var n=this._decodeOnLoadImage(t);return t.src=e,n},e.prototype.decodeFromVideoUrl=function(e){if(!e)throw new r["a"]("An URL must be provided.");this.reset();var t=this.prepareVideoElement(),n=this.decodeFromVideoElement(t);return t.src=e,n},e.prototype.decodeFromVideoUrlContinuously=function(e,t){if(!e)throw new r["a"]("An URL must be provided.");this.reset();var n=this.prepareVideoElement(),i=this.decodeFromVideoElementContinuously(n,t);return n.src=e,i},e.prototype._decodeOnLoadImage=function(e){var t=this;return new Promise((function(n,r){t.imageLoadedListener=function(){return t.decodeOnce(e,!1,!0).then(n,r)},e.addEventListener("load",t.imageLoadedListener)}))},e.prototype._decodeOnLoadVideo=function(e){return f(this,void 0,void 0,(function(){return d(this,(function(t){switch(t.label){case 0:return[4,this.playVideoOnLoadAsync(e)];case 1:return t.sent(),[4,this.decodeOnce(e)];case 2:return[2,t.sent()]}}))}))},e.prototype._decodeOnLoadVideoContinuously=function(e,t){return f(this,void 0,void 0,(function(){return d(this,(function(n){switch(n.label){case 0:return[4,this.playVideoOnLoadAsync(e)];case 1:return n.sent(),this.decodeContinuously(e,t),[2]}}))}))},e.prototype.isImageLoaded=function(e){return!!e.complete&&0!==e.naturalWidth},e.prototype.prepareImageElement=function(e){var t;return"undefined"===typeof e&&(t=document.createElement("img"),t.width=200,t.height=200),"string"===typeof e&&(t=this.getMediaElement(e,"img")),e instanceof HTMLImageElement&&(t=e),t},e.prototype.prepareVideoElement=function(e){var t;return e||"undefined"===typeof document||(t=document.createElement("video"),t.width=200,t.height=200),"string"===typeof e&&(t=this.getMediaElement(e,"video")),e instanceof HTMLVideoElement&&(t=e),t.setAttribute("autoplay","true"),t.setAttribute("muted","true"),t.setAttribute("playsinline","true"),t},e.prototype.decodeOnce=function(e,t,n){var r=this;void 0===t&&(t=!0),void 0===n&&(n=!0),this._stopAsyncDecode=!1;var i=function(a,u){if(r._stopAsyncDecode)return u(new l["a"]("Video stream has ended before any code could be detected.")),void(r._stopAsyncDecode=void 0);try{var c=r.decode(e);a(c)}catch(p){var f=t&&p instanceof l["a"],d=p instanceof o["a"]||p instanceof s["a"],h=d&&n;if(f||h)return setTimeout(i,r._timeBetweenDecodingAttempts,a,u);u(p)}};return new Promise((function(e,t){return i(e,t)}))},e.prototype.decodeContinuously=function(e,t){var n=this;this._stopContinuousDecode=!1;var r=function(){if(n._stopContinuousDecode)n._stopContinuousDecode=void 0;else try{var i=n.decode(e);t(i,null),setTimeout(r,n.timeBetweenScansMillis)}catch(c){t(null,c);var a=c instanceof o["a"]||c instanceof s["a"],u=c instanceof l["a"];(a||u)&&setTimeout(r,n._timeBetweenDecodingAttempts)}};r()},e.prototype.decode=function(e){var t=this.createBinaryBitmap(e);return this.decodeBitmap(t)},e.prototype._isHTMLVideoElement=function(e){var t=e;return 0!==t.videoWidth},e.prototype.createBinaryBitmap=function(e){this.getCaptureCanvasContext(e);this._isHTMLVideoElement(e)?this.drawFrameOnCanvas(e):this.drawImageOnCanvas(e);var t=this.getCaptureCanvas(e),n=new u["a"](t),r=new a["a"](n);return new i["a"](r)},e.prototype.getCaptureCanvasContext=function(e){if(!this.captureCanvasContext){var t=this.getCaptureCanvas(e),n=void 0;try{n=t.getContext("2d",{willReadFrequently:!0})}catch(r){n=t.getContext("2d")}this.captureCanvasContext=n}return this.captureCanvasContext},e.prototype.getCaptureCanvas=function(e){if(!this.captureCanvas){var t=this.createCaptureCanvas(e);this.captureCanvas=t}return this.captureCanvas},e.prototype.drawFrameOnCanvas=function(e,t,n){void 0===t&&(t={sx:0,sy:0,sWidth:e.videoWidth,sHeight:e.videoHeight,dx:0,dy:0,dWidth:e.videoWidth,dHeight:e.videoHeight}),void 0===n&&(n=this.captureCanvasContext),n.drawImage(e,t.sx,t.sy,t.sWidth,t.sHeight,t.dx,t.dy,t.dWidth,t.dHeight)},e.prototype.drawImageOnCanvas=function(e,t,n){void 0===t&&(t={sx:0,sy:0,sWidth:e.naturalWidth,sHeight:e.naturalHeight,dx:0,dy:0,dWidth:e.naturalWidth,dHeight:e.naturalHeight}),void 0===n&&(n=this.captureCanvasContext),n.drawImage(e,t.sx,t.sy,t.sWidth,t.sHeight,t.dx,t.dy,t.dWidth,t.dHeight)},e.prototype.decodeBitmap=function(e){return this.reader.decode(e,this._hints)},e.prototype.createCaptureCanvas=function(e){if("undefined"===typeof document)return this._destroyCaptureCanvas(),null;var t,n,r=document.createElement("canvas");return"undefined"!==typeof e&&(e instanceof HTMLVideoElement?(t=e.videoWidth,n=e.videoHeight):e instanceof HTMLImageElement&&(t=e.naturalWidth||e.width,n=e.naturalHeight||e.height)),r.style.width=t+"px",r.style.height=n+"px",r.width=t,r.height=n,r},e.prototype.stopStreams=function(){this.stream&&(this.stream.getVideoTracks().forEach((function(e){return e.stop()})),this.stream=void 0),!1===this._stopAsyncDecode&&this.stopAsyncDecode(),!1===this._stopContinuousDecode&&this.stopContinuousDecode()},e.prototype.reset=function(){this.stopStreams(),this._destroyVideoElement(),this._destroyImageElement(),this._destroyCaptureCanvas()},e.prototype._destroyVideoElement=function(){this.videoElement&&("undefined"!==typeof this.videoEndedListener&&this.videoElement.removeEventListener("ended",this.videoEndedListener),"undefined"!==typeof this.videoPlayingEventListener&&this.videoElement.removeEventListener("playing",this.videoPlayingEventListener),"undefined"!==typeof this.videoCanPlayListener&&this.videoElement.removeEventListener("loadedmetadata",this.videoCanPlayListener),this.cleanVideoSource(this.videoElement),this.videoElement=void 0)},e.prototype._destroyImageElement=function(){this.imageElement&&(void 0!==this.imageLoadedListener&&this.imageElement.removeEventListener("load",this.imageLoadedListener),this.imageElement.src=void 0,this.imageElement.removeAttribute("src"),this.imageElement=void 0)},e.prototype._destroyCaptureCanvas=function(){this.captureCanvasContext=void 0,this.captureCanvas=void 0},e.prototype.addVideoSource=function(e,t){try{e.srcObject=t}catch(n){e.src=URL.createObjectURL(t)}},e.prototype.cleanVideoSource=function(e){try{e.srcObject=null}catch(t){e.src=""}this.videoElement.removeAttribute("src")},e}()},f52c:function(e,t,n){"use strict";var r=n("7a37"),i=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n)||this;return a.compact=r,a.nbDatablocks=i,a.nbLayers=o,a}return i(t,e),t.prototype.getNbLayers=function(){return this.nbLayers},t.prototype.getNbDatablocks=function(){return this.nbDatablocks},t.prototype.isCompact=function(){return this.compact},t}(r["a"]);t["a"]=o},f559:function(e,t,n){"use strict";var r=n("5ca1"),i=n("9def"),o=n("d2c8"),a="startsWith",s=""[a];r(r.P+r.F*n("5147")(a),"String",{startsWith:function(e){var t=o(this,e,a),n=i(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return s?s.call(t,r,n):t.slice(n,n+r.length)===r}})},f605:function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},f60b:function(e,t,n){"use strict";var r=n("a363"),i=n("2d92"),o=n("7978"),a=n("ca08"),s=n("2f50"),l=n("ab5b"),u=n("ea29"),c=n("64a7"),f=n("8c95"),d=n("63af"),h=n("cb12"),p=function(){function e(e,t){this.bits=e,this.points=t}return e.prototype.getBits=function(){return this.bits},e.prototype.getPoints=function(){return this.points},e}(),m=p,g=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},v=function(){function e(){}return e.detectMultiple=function(t,n,r){var i=t.getBlackMatrix(),o=e.detect(r,i);return o.length||(i=i.clone(),i.rotate180(),o=e.detect(r,i)),new m(i,o)},e.detect=function(t,n){var r,i,o=new Array,a=0,s=0,l=!1;while(a<n.getHeight()){var u=e.findVertices(n,a,s);if(null!=u[0]||null!=u[3]){if(l=!0,o.push(u),!t)break;null!=u[2]?(s=Math.trunc(u[2].getX()),a=Math.trunc(u[2].getY())):(s=Math.trunc(u[4].getX()),a=Math.trunc(u[4].getY()))}else{if(!l)break;l=!1,s=0;try{for(var c=(r=void 0,g(o)),f=c.next();!f.done;f=c.next()){var d=f.value;null!=d[1]&&(a=Math.trunc(Math.max(a,d[1].getY()))),null!=d[3]&&(a=Math.max(a,Math.trunc(d[3].getY())))}}catch(h){r={error:h}}finally{try{f&&!f.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}a+=e.ROW_STEP}}return o},e.findVertices=function(t,n,r){var i=t.getHeight(),o=t.getWidth(),a=new Array(8);return e.copyToResult(a,e.findRowsWithPattern(t,i,o,n,r,e.START_PATTERN),e.INDEXES_START_PATTERN),null!=a[4]&&(r=Math.trunc(a[4].getX()),n=Math.trunc(a[4].getY())),e.copyToResult(a,e.findRowsWithPattern(t,i,o,n,r,e.STOP_PATTERN),e.INDEXES_STOP_PATTERN),a},e.copyToResult=function(e,t,n){for(var r=0;r<n.length;r++)e[n[r]]=t[r]},e.findRowsWithPattern=function(t,n,r,i,o,a){for(var s=new Array(4),l=!1,u=new Int32Array(a.length);i<n;i+=e.ROW_STEP){var c=e.findGuardPattern(t,o,i,r,!1,a,u);if(null!=c){while(i>0){var d=e.findGuardPattern(t,o,--i,r,!1,a,u);if(null==d){i++;break}c=d}s[0]=new f["a"](c[0],i),s[1]=new f["a"](c[1],i),l=!0;break}}var p=i+1;if(l){var m=0;for(d=Int32Array.from([Math.trunc(s[0].getX()),Math.trunc(s[1].getX())]);p<n;p++){c=e.findGuardPattern(t,d[0],p,r,!1,a,u);if(null!=c&&Math.abs(d[0]-c[0])<e.MAX_PATTERN_DRIFT&&Math.abs(d[1]-c[1])<e.MAX_PATTERN_DRIFT)d=c,m=0;else{if(m>e.SKIPPED_ROW_COUNT_MAX)break;m++}}p-=m+1,s[2]=new f["a"](d[0],p),s[3]=new f["a"](d[1],p)}return p-i<e.BARCODE_MIN_HEIGHT&&h["a"].fill(s,null),s},e.findGuardPattern=function(t,n,r,i,o,a,s){h["a"].fillWithin(s,0,s.length,0);var l=n,u=0;while(t.get(l,r)&&l>0&&u++<e.MAX_PIXEL_DRIFT)l--;for(var c=l,f=0,p=a.length,m=o;c<i;c++){var g=t.get(c,r);if(g!==m)s[f]++;else{if(f===p-1){if(e.patternMatchVariance(s,a,e.MAX_INDIVIDUAL_VARIANCE)<e.MAX_AVG_VARIANCE)return new Int32Array([l,c]);l+=s[0]+s[1],d["a"].arraycopy(s,2,s,0,f-1),s[f-1]=0,s[f]=0,f--}else f++;s[f]=1,m=!m}}return f===p-1&&e.patternMatchVariance(s,a,e.MAX_INDIVIDUAL_VARIANCE)<e.MAX_AVG_VARIANCE?new Int32Array([l,c-1]):null},e.patternMatchVariance=function(e,t,n){for(var r=e.length,i=0,o=0,a=0;a<r;a++)i+=e[a],o+=t[a];if(i<o)return 1/0;var s=i/o;n*=s;for(var l=0,u=0;u<r;u++){var c=e[u],f=t[u]*s,d=c>f?c-f:f-c;if(d>n)return 1/0;l+=d}return l/i},e.INDEXES_START_PATTERN=Int32Array.from([0,4,1,5]),e.INDEXES_STOP_PATTERN=Int32Array.from([6,2,7,3]),e.MAX_AVG_VARIANCE=.42,e.MAX_INDIVIDUAL_VARIANCE=.8,e.START_PATTERN=Int32Array.from([8,1,1,1,1,1,1,3]),e.STOP_PATTERN=Int32Array.from([7,1,1,3,1,1,1,2,1]),e.MAX_PIXEL_DRIFT=3,e.MAX_PATTERN_DRIFT=5,e.SKIPPED_ROW_COUNT_MAX=25,e.ROW_STEP=5,e.BARCODE_MIN_HEIGHT=10,e}(),b=v,y=n("fb63"),w=n("3bbd"),_=function(){function e(t,n,r,i,o){t instanceof e?this.constructor_2(t):this.constructor_1(t,n,r,i,o)}return e.prototype.constructor_1=function(e,t,n,r,i){var o=null==t||null==n,s=null==r||null==i;if(o&&s)throw new a["a"];o?(t=new f["a"](0,r.getY()),n=new f["a"](0,i.getY())):s&&(r=new f["a"](e.getWidth()-1,t.getY()),i=new f["a"](e.getWidth()-1,n.getY())),this.image=e,this.topLeft=t,this.bottomLeft=n,this.topRight=r,this.bottomRight=i,this.minX=Math.trunc(Math.min(t.getX(),n.getX())),this.maxX=Math.trunc(Math.max(r.getX(),i.getX())),this.minY=Math.trunc(Math.min(t.getY(),r.getY())),this.maxY=Math.trunc(Math.max(n.getY(),i.getY()))},e.prototype.constructor_2=function(e){this.image=e.image,this.topLeft=e.getTopLeft(),this.bottomLeft=e.getBottomLeft(),this.topRight=e.getTopRight(),this.bottomRight=e.getBottomRight(),this.minX=e.getMinX(),this.maxX=e.getMaxX(),this.minY=e.getMinY(),this.maxY=e.getMaxY()},e.merge=function(t,n){return null==t?n:null==n?t:new e(t.image,t.topLeft,t.bottomLeft,n.topRight,n.bottomRight)},e.prototype.addMissingRows=function(t,n,r){var i=this.topLeft,o=this.bottomLeft,a=this.topRight,s=this.bottomRight;if(t>0){var l=r?this.topLeft:this.topRight,u=Math.trunc(l.getY()-t);u<0&&(u=0);var c=new f["a"](l.getX(),u);r?i=c:a=c}if(n>0){var d=r?this.bottomLeft:this.bottomRight,h=Math.trunc(d.getY()+n);h>=this.image.getHeight()&&(h=this.image.getHeight()-1);var p=new f["a"](d.getX(),h);r?o=p:s=p}return new e(this.image,i,o,a,s)},e.prototype.getMinX=function(){return this.minX},e.prototype.getMaxX=function(){return this.maxX},e.prototype.getMinY=function(){return this.minY},e.prototype.getMaxY=function(){return this.maxY},e.prototype.getTopLeft=function(){return this.topLeft},e.prototype.getTopRight=function(){return this.topRight},e.prototype.getBottomLeft=function(){return this.bottomLeft},e.prototype.getBottomRight=function(){return this.bottomRight},e}(),C=_,x=function(){function e(e,t,n,r){this.columnCount=e,this.errorCorrectionLevel=r,this.rowCountUpperPart=t,this.rowCountLowerPart=n,this.rowCount=t+n}return e.prototype.getColumnCount=function(){return this.columnCount},e.prototype.getErrorCorrectionLevel=function(){return this.errorCorrectionLevel},e.prototype.getRowCount=function(){return this.rowCount},e.prototype.getRowCountUpperPart=function(){return this.rowCountUpperPart},e.prototype.getRowCountLowerPart=function(){return this.rowCountLowerPart},e}(),S=x,k=function(){function e(){this.buffer=""}return e.form=function(e,t){var n=-1;function r(e,r,i,o,a,s){if("%%"===e)return"%";if(void 0!==t[++n]){e=o?parseInt(o.substr(1)):void 0;var l,u=a?parseInt(a.substr(1)):void 0;switch(s){case"s":l=t[n];break;case"c":l=t[n][0];break;case"f":l=parseFloat(t[n]).toFixed(e);break;case"p":l=parseFloat(t[n]).toPrecision(e);break;case"e":l=parseFloat(t[n]).toExponential(e);break;case"x":l=parseInt(t[n]).toString(u||16);break;case"d":l=parseFloat(parseInt(t[n],u||10).toPrecision(e)).toFixed(0);break}l="object"===typeof l?JSON.stringify(l):(+l).toString(u);var c=parseInt(i),f=i&&i[0]+""==="0"?"0":" ";while(l.length<c)l=void 0!==r?l+f:f+l;return l}}var i=/%(-)?(0?[0-9]+)?([.][0-9]+)?([#][0-9]+)?([scfpexd%])/g;return e.replace(i,r)},e.prototype.format=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];this.buffer+=e.form(t,n)},e.prototype.toString=function(){return this.buffer},e}(),D=k,O=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},T=function(){function e(e){this.boundingBox=new C(e),this.codewords=new Array(e.getMaxY()-e.getMinY()+1)}return e.prototype.getCodewordNearby=function(t){var n=this.getCodeword(t);if(null!=n)return n;for(var r=1;r<e.MAX_NEARBY_DISTANCE;r++){var i=this.imageRowToCodewordIndex(t)-r;if(i>=0&&(n=this.codewords[i],null!=n))return n;if(i=this.imageRowToCodewordIndex(t)+r,i<this.codewords.length&&(n=this.codewords[i],null!=n))return n}return null},e.prototype.imageRowToCodewordIndex=function(e){return e-this.boundingBox.getMinY()},e.prototype.setCodeword=function(e,t){this.codewords[this.imageRowToCodewordIndex(e)]=t},e.prototype.getCodeword=function(e){return this.codewords[this.imageRowToCodewordIndex(e)]},e.prototype.getBoundingBox=function(){return this.boundingBox},e.prototype.getCodewords=function(){return this.codewords},e.prototype.toString=function(){var e,t,n=new D,r=0;try{for(var i=O(this.codewords),o=i.next();!o.done;o=i.next()){var a=o.value;null!=a?n.format("%3d: %3d|%3d%n",r++,a.getRowNumber(),a.getValue()):n.format("%3d: | %n",r++)}}catch(s){e={error:s}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return n.toString()},e.MAX_NEARBY_DISTANCE=5,e}(),E=T,I=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},N=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{while((void 0===t||t-- >0)&&!(r=o.next()).done)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return a},A=function(){function e(){this.values=new Map}return e.prototype.setValue=function(e){e=Math.trunc(e);var t=this.values.get(e);null==t&&(t=0),t++,this.values.set(e,t)},e.prototype.getValue=function(){var e,t,n=-1,r=new Array,i=function(e,t){var i={getKey:function(){return e},getValue:function(){return t}};i.getValue()>n?(n=i.getValue(),r=[],r.push(i.getKey())):i.getValue()===n&&r.push(i.getKey())};try{for(var o=I(this.values.entries()),a=o.next();!a.done;a=o.next()){var s=N(a.value,2),u=s[0],c=s[1];i(u,c)}}catch(f){e={error:f}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return l["a"].toIntArray(r)},e.prototype.getConfidence=function(e){return this.values.get(e)},e}(),P=A,M=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),R=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},F=function(e){function t(t,n){var r=e.call(this,t)||this;return r._isLeft=n,r}return M(t,e),t.prototype.setRowNumbers=function(){var e,t;try{for(var n=R(this.getCodewords()),r=n.next();!r.done;r=n.next()){var i=r.value;null!=i&&i.setRowNumberAsRowIndicatorColumn()}}catch(o){e={error:o}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},t.prototype.adjustCompleteIndicatorColumnRowNumbers=function(e){var t=this.getCodewords();this.setRowNumbers(),this.removeIncorrectCodewords(t,e);for(var n=this.getBoundingBox(),r=this._isLeft?n.getTopLeft():n.getTopRight(),i=this._isLeft?n.getBottomLeft():n.getBottomRight(),o=this.imageRowToCodewordIndex(Math.trunc(r.getY())),a=this.imageRowToCodewordIndex(Math.trunc(i.getY())),s=-1,l=1,u=0,c=o;c<a;c++)if(null!=t[c]){var f=t[c],d=f.getRowNumber()-s;if(0===d)u++;else if(1===d)l=Math.max(l,u),u=1,s=f.getRowNumber();else if(d<0||f.getRowNumber()>=e.getRowCount()||d>c)t[c]=null;else{var h=void 0;h=l>2?(l-2)*d:d;for(var p=h>=c,m=1;m<=h&&!p;m++)p=null!=t[c-m];p?t[c]=null:(s=f.getRowNumber(),u=1)}}},t.prototype.getRowHeights=function(){var e,t,n=this.getBarcodeMetadata();if(null==n)return null;this.adjustIncompleteIndicatorColumnRowNumbers(n);var r=new Int32Array(n.getRowCount());try{for(var i=R(this.getCodewords()),o=i.next();!o.done;o=i.next()){var a=o.value;if(null!=a){var s=a.getRowNumber();if(s>=r.length)continue;r[s]++}}}catch(l){e={error:l}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return r},t.prototype.adjustIncompleteIndicatorColumnRowNumbers=function(e){for(var t=this.getBoundingBox(),n=this._isLeft?t.getTopLeft():t.getTopRight(),r=this._isLeft?t.getBottomLeft():t.getBottomRight(),i=this.imageRowToCodewordIndex(Math.trunc(n.getY())),o=this.imageRowToCodewordIndex(Math.trunc(r.getY())),a=this.getCodewords(),s=-1,l=1,u=0,c=i;c<o;c++)if(null!=a[c]){var f=a[c];f.setRowNumberAsRowIndicatorColumn();var d=f.getRowNumber()-s;0===d?u++:1===d?(l=Math.max(l,u),u=1,s=f.getRowNumber()):f.getRowNumber()>=e.getRowCount()?a[c]=null:(s=f.getRowNumber(),u=1)}},t.prototype.getBarcodeMetadata=function(){var e,t,n=this.getCodewords(),r=new P,i=new P,o=new P,a=new P;try{for(var s=R(n),u=s.next();!u.done;u=s.next()){var c=u.value;if(null!=c){c.setRowNumberAsRowIndicatorColumn();var f=c.getValue()%30,d=c.getRowNumber();switch(this._isLeft||(d+=2),d%3){case 0:i.setValue(3*f+1);break;case 1:a.setValue(f/3),o.setValue(f%3);break;case 2:r.setValue(f+1);break}}}}catch(p){e={error:p}}finally{try{u&&!u.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}if(0===r.getValue().length||0===i.getValue().length||0===o.getValue().length||0===a.getValue().length||r.getValue()[0]<1||i.getValue()[0]+o.getValue()[0]<l["a"].MIN_ROWS_IN_BARCODE||i.getValue()[0]+o.getValue()[0]>l["a"].MAX_ROWS_IN_BARCODE)return null;var h=new S(r.getValue()[0],i.getValue()[0],o.getValue()[0],a.getValue()[0]);return this.removeIncorrectCodewords(n,h),h},t.prototype.removeIncorrectCodewords=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(null!=e[n]){var i=r.getValue()%30,o=r.getRowNumber();if(o>t.getRowCount())e[n]=null;else switch(this._isLeft||(o+=2),o%3){case 0:3*i+1!==t.getRowCountUpperPart()&&(e[n]=null);break;case 1:Math.trunc(i/3)===t.getErrorCorrectionLevel()&&i%3===t.getRowCountLowerPart()||(e[n]=null);break;case 2:i+1!==t.getColumnCount()&&(e[n]=null);break}}}},t.prototype.isLeft=function(){return this._isLeft},t.prototype.toString=function(){return"IsLeft: "+this._isLeft+"\n"+e.prototype.toString.call(this)},t}(E),B=F,L=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},$=function(){function e(e,t){this.ADJUST_ROW_NUMBER_SKIP=2,this.barcodeMetadata=e,this.barcodeColumnCount=e.getColumnCount(),this.boundingBox=t,this.detectionResultColumns=new Array(this.barcodeColumnCount+2)}return e.prototype.getDetectionResultColumns=function(){this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[0]),this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[this.barcodeColumnCount+1]);var e,t=l["a"].MAX_CODEWORDS_IN_BARCODE;do{e=t,t=this.adjustRowNumbersAndGetCount()}while(t>0&&t<e);return this.detectionResultColumns},e.prototype.adjustIndicatorColumnRowNumbers=function(e){null!=e&&e.adjustCompleteIndicatorColumnRowNumbers(this.barcodeMetadata)},e.prototype.adjustRowNumbersAndGetCount=function(){var e=this.adjustRowNumbersByRow();if(0===e)return 0;for(var t=1;t<this.barcodeColumnCount+1;t++)for(var n=this.detectionResultColumns[t].getCodewords(),r=0;r<n.length;r++)null!=n[r]&&(n[r].hasValidRowNumber()||this.adjustRowNumbers(t,r,n));return e},e.prototype.adjustRowNumbersByRow=function(){this.adjustRowNumbersFromBothRI();var e=this.adjustRowNumbersFromLRI();return e+this.adjustRowNumbersFromRRI()},e.prototype.adjustRowNumbersFromBothRI=function(){if(null!=this.detectionResultColumns[0]&&null!=this.detectionResultColumns[this.barcodeColumnCount+1])for(var e=this.detectionResultColumns[0].getCodewords(),t=this.detectionResultColumns[this.barcodeColumnCount+1].getCodewords(),n=0;n<e.length;n++)if(null!=e[n]&&null!=t[n]&&e[n].getRowNumber()===t[n].getRowNumber())for(var r=1;r<=this.barcodeColumnCount;r++){var i=this.detectionResultColumns[r].getCodewords()[n];null!=i&&(i.setRowNumber(e[n].getRowNumber()),i.hasValidRowNumber()||(this.detectionResultColumns[r].getCodewords()[n]=null))}},e.prototype.adjustRowNumbersFromRRI=function(){if(null==this.detectionResultColumns[this.barcodeColumnCount+1])return 0;for(var t=0,n=this.detectionResultColumns[this.barcodeColumnCount+1].getCodewords(),r=0;r<n.length;r++)if(null!=n[r])for(var i=n[r].getRowNumber(),o=0,a=this.barcodeColumnCount+1;a>0&&o<this.ADJUST_ROW_NUMBER_SKIP;a--){var s=this.detectionResultColumns[a].getCodewords()[r];null!=s&&(o=e.adjustRowNumberIfValid(i,o,s),s.hasValidRowNumber()||t++)}return t},e.prototype.adjustRowNumbersFromLRI=function(){if(null==this.detectionResultColumns[0])return 0;for(var t=0,n=this.detectionResultColumns[0].getCodewords(),r=0;r<n.length;r++)if(null!=n[r])for(var i=n[r].getRowNumber(),o=0,a=1;a<this.barcodeColumnCount+1&&o<this.ADJUST_ROW_NUMBER_SKIP;a++){var s=this.detectionResultColumns[a].getCodewords()[r];null!=s&&(o=e.adjustRowNumberIfValid(i,o,s),s.hasValidRowNumber()||t++)}return t},e.adjustRowNumberIfValid=function(e,t,n){return null==n||n.hasValidRowNumber()||(n.isValidRowNumber(e)?(n.setRowNumber(e),t=0):++t),t},e.prototype.adjustRowNumbers=function(t,n,r){var i,o;if(null!=this.detectionResultColumns[t-1]){var a=r[n],s=this.detectionResultColumns[t-1].getCodewords(),l=s;null!=this.detectionResultColumns[t+1]&&(l=this.detectionResultColumns[t+1].getCodewords());var u=new Array(14);u[2]=s[n],u[3]=l[n],n>0&&(u[0]=r[n-1],u[4]=s[n-1],u[5]=l[n-1]),n>1&&(u[8]=r[n-2],u[10]=s[n-2],u[11]=l[n-2]),n<r.length-1&&(u[1]=r[n+1],u[6]=s[n+1],u[7]=l[n+1]),n<r.length-2&&(u[9]=r[n+2],u[12]=s[n+2],u[13]=l[n+2]);try{for(var c=L(u),f=c.next();!f.done;f=c.next()){var d=f.value;if(e.adjustRowNumber(a,d))return}}catch(h){i={error:h}}finally{try{f&&!f.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}}},e.adjustRowNumber=function(e,t){return null!=t&&(!(!t.hasValidRowNumber()||t.getBucket()!==e.getBucket())&&(e.setRowNumber(t.getRowNumber()),!0))},e.prototype.getBarcodeColumnCount=function(){return this.barcodeColumnCount},e.prototype.getBarcodeRowCount=function(){return this.barcodeMetadata.getRowCount()},e.prototype.getBarcodeECLevel=function(){return this.barcodeMetadata.getErrorCorrectionLevel()},e.prototype.setBoundingBox=function(e){this.boundingBox=e},e.prototype.getBoundingBox=function(){return this.boundingBox},e.prototype.setDetectionResultColumn=function(e,t){this.detectionResultColumns[e]=t},e.prototype.getDetectionResultColumn=function(e){return this.detectionResultColumns[e]},e.prototype.toString=function(){var e=this.detectionResultColumns[0];null==e&&(e=this.detectionResultColumns[this.barcodeColumnCount+1]);for(var t=new D,n=0;n<e.getCodewords().length;n++){t.format("CW %3d:",n);for(var r=0;r<this.barcodeColumnCount+2;r++)if(null!=this.detectionResultColumns[r]){var i=this.detectionResultColumns[r].getCodewords()[n];null!=i?t.format(" %3d|%3d",i.getRowNumber(),i.getValue()):t.format(" | ")}else t.format(" | ");t.format("%n")}return t.toString()},e}(),V=$,j=function(){function e(t,n,r,i){this.rowNumber=e.BARCODE_ROW_UNKNOWN,this.startX=Math.trunc(t),this.endX=Math.trunc(n),this.bucket=Math.trunc(r),this.value=Math.trunc(i)}return e.prototype.hasValidRowNumber=function(){return this.isValidRowNumber(this.rowNumber)},e.prototype.isValidRowNumber=function(t){return t!==e.BARCODE_ROW_UNKNOWN&&this.bucket===t%3*3},e.prototype.setRowNumberAsRowIndicatorColumn=function(){this.rowNumber=Math.trunc(3*Math.trunc(this.value/30)+Math.trunc(this.bucket/3))},e.prototype.getWidth=function(){return this.endX-this.startX},e.prototype.getStartX=function(){return this.startX},e.prototype.getEndX=function(){return this.endX},e.prototype.getBucket=function(){return this.bucket},e.prototype.getValue=function(){return this.value},e.prototype.getRowNumber=function(){return this.rowNumber},e.prototype.setRowNumber=function(e){this.rowNumber=e},e.prototype.toString=function(){return this.rowNumber+"|"+this.value},e.BARCODE_ROW_UNKNOWN=-1,e}(),z=j,H=n("2e1c"),U=function(){function e(){}return e.initialize=function(){for(var t=0;t<l["a"].SYMBOL_TABLE.length;t++)for(var n=l["a"].SYMBOL_TABLE[t],r=1&n,i=0;i<l["a"].BARS_IN_MODULE;i++){var o=0;while((1&n)===r)o+=1,n>>=1;r=1&n,e.RATIOS_TABLE[t]||(e.RATIOS_TABLE[t]=new Array(l["a"].BARS_IN_MODULE)),e.RATIOS_TABLE[t][l["a"].BARS_IN_MODULE-i-1]=Math.fround(o/l["a"].MODULES_IN_CODEWORD)}this.bSymbolTableReady=!0},e.getDecodedValue=function(t){var n=e.getDecodedCodewordValue(e.sampleBitCounts(t));return-1!==n?n:e.getClosestDecodedValue(t)},e.sampleBitCounts=function(e){for(var t=y["a"].sum(e),n=new Int32Array(l["a"].BARS_IN_MODULE),r=0,i=0,o=0;o<l["a"].MODULES_IN_CODEWORD;o++){var a=t/(2*l["a"].MODULES_IN_CODEWORD)+o*t/l["a"].MODULES_IN_CODEWORD;i+e[r]<=a&&(i+=e[r],r++),n[r]++}return n},e.getDecodedCodewordValue=function(t){var n=e.getBitValue(t);return-1===l["a"].getCodeword(n)?-1:n},e.getBitValue=function(e){for(var t=0,n=0;n<e.length;n++)for(var r=0;r<e[n];r++)t=t<<1|(n%2===0?1:0);return Math.trunc(t)},e.getClosestDecodedValue=function(t){var n=y["a"].sum(t),r=new Array(l["a"].BARS_IN_MODULE);if(n>1)for(var i=0;i<r.length;i++)r[i]=Math.fround(t[i]/n);var o=H["a"].MAX_VALUE,a=-1;this.bSymbolTableReady||e.initialize();for(var s=0;s<e.RATIOS_TABLE.length;s++){for(var u=0,c=e.RATIOS_TABLE[s],f=0;f<l["a"].BARS_IN_MODULE;f++){var d=Math.fround(c[f]-r[f]);if(u+=Math.fround(d*d),u>=o)break}u<o&&(o=u,a=l["a"].SYMBOL_TABLE[s])}return a},e.bSymbolTableReady=!1,e.RATIOS_TABLE=new Array(l["a"].SYMBOL_TABLE.length).map((function(e){return new Array(l["a"].BARS_IN_MODULE)})),e}(),W=U,q=n("4c35"),G=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Y=function(){function e(){}return e.decode=function(t,n,r,i,o,s,l){for(var u,c=new C(t,n,r,i,o),f=null,d=null,h=!0;;h=!1){if(null!=n&&(f=e.getRowIndicatorColumn(t,c,n,!0,s,l)),null!=i&&(d=e.getRowIndicatorColumn(t,c,i,!1,s,l)),u=e.merge(f,d),null==u)throw a["a"].getNotFoundInstance();var p=u.getBoundingBox();if(!h||null==p||!(p.getMinY()<c.getMinY()||p.getMaxY()>c.getMaxY()))break;c=p}u.setBoundingBox(c);var m=u.getBarcodeColumnCount()+1;u.setDetectionResultColumn(0,f),u.setDetectionResultColumn(m,d);for(var g=null!=f,v=1;v<=m;v++){var b=g?v:m-v;if(void 0===u.getDetectionResultColumn(b)){var y=void 0;y=0===b||b===m?new B(c,0===b):new E(c),u.setDetectionResultColumn(b,y);for(var w=-1,_=w,x=c.getMinY();x<=c.getMaxY();x++){if(w=e.getStartColumn(u,b,x,g),w<0||w>c.getMaxX()){if(-1===_)continue;w=_}var S=e.detectCodeword(t,c.getMinX(),c.getMaxX(),g,w,x,s,l);null!=S&&(y.setCodeword(x,S),_=w,s=Math.min(s,S.getWidth()),l=Math.max(l,S.getWidth()))}}}return e.createDecoderResult(u)},e.merge=function(t,n){if(null==t&&null==n)return null;var r=e.getBarcodeMetadata(t,n);if(null==r)return null;var i=C.merge(e.adjustBoundingBox(t),e.adjustBoundingBox(n));return new V(r,i)},e.adjustBoundingBox=function(t){var n,r;if(null==t)return null;var i=t.getRowHeights();if(null==i)return null;var o=e.getMax(i),a=0;try{for(var s=G(i),l=s.next();!l.done;l=s.next()){var u=l.value;if(a+=o-u,u>0)break}}catch(h){n={error:h}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}for(var c=t.getCodewords(),f=0;a>0&&null==c[f];f++)a--;var d=0;for(f=i.length-1;f>=0;f--)if(d+=o-i[f],i[f]>0)break;for(f=c.length-1;d>0&&null==c[f];f--)d--;return t.getBoundingBox().addMissingRows(a,d,t.isLeft())},e.getMax=function(e){var t,n,r=-1;try{for(var i=G(e),o=i.next();!o.done;o=i.next()){var a=o.value;r=Math.max(r,a)}}catch(s){t={error:s}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},e.getBarcodeMetadata=function(e,t){var n,r;return null==e||null==(n=e.getBarcodeMetadata())?null==t?null:t.getBarcodeMetadata():null==t||null==(r=t.getBarcodeMetadata())?n:n.getColumnCount()!==r.getColumnCount()&&n.getErrorCorrectionLevel()!==r.getErrorCorrectionLevel()&&n.getRowCount()!==r.getRowCount()?null:n},e.getRowIndicatorColumn=function(t,n,r,i,o,a){for(var s=new B(n,i),l=0;l<2;l++)for(var u=0===l?1:-1,c=Math.trunc(Math.trunc(r.getX())),f=Math.trunc(Math.trunc(r.getY()));f<=n.getMaxY()&&f>=n.getMinY();f+=u){var d=e.detectCodeword(t,0,t.getWidth(),i,c,f,o,a);null!=d&&(s.setCodeword(f,d),c=i?d.getStartX():d.getEndX())}return s},e.adjustCodewordCount=function(t,n){var r=n[0][1],i=r.getValue(),o=t.getBarcodeColumnCount()*t.getBarcodeRowCount()-e.getNumberOfECCodeWords(t.getBarcodeECLevel());if(0===i.length){if(o<1||o>l["a"].MAX_CODEWORDS_IN_BARCODE)throw a["a"].getNotFoundInstance();r.setValue(o)}else i[0]!==o&&r.setValue(o)},e.createDecoderResult=function(t){var n=e.createBarcodeMatrix(t);e.adjustCodewordCount(t,n);for(var r=new Array,i=new Int32Array(t.getBarcodeRowCount()*t.getBarcodeColumnCount()),o=[],a=new Array,s=0;s<t.getBarcodeRowCount();s++)for(var u=0;u<t.getBarcodeColumnCount();u++){var c=n[s][u+1].getValue(),f=s*t.getBarcodeColumnCount()+u;0===c.length?r.push(f):1===c.length?i[f]=c[0]:(a.push(f),o.push(c))}for(var d=new Array(o.length),h=0;h<d.length;h++)d[h]=o[h];return e.createDecoderResultFromAmbiguousValues(t.getBarcodeECLevel(),i,l["a"].toIntArray(r),l["a"].toIntArray(a),d)},e.createDecoderResultFromAmbiguousValues=function(t,n,r,o,a){var s=new Int32Array(o.length),l=100;while(l-- >0){for(var u=0;u<s.length;u++)n[o[u]]=a[u][s[u]];try{return e.decodeCodewords(n,t,r)}catch(f){var c=f instanceof i["a"];if(!c)throw f}if(0===s.length)throw i["a"].getChecksumInstance();for(u=0;u<s.length;u++){if(s[u]<a[u].length-1){s[u]++;break}if(s[u]=0,u===s.length-1)throw i["a"].getChecksumInstance()}}throw i["a"].getChecksumInstance()},e.createBarcodeMatrix=function(e){for(var t,n,r,i,o=Array.from({length:e.getBarcodeRowCount()},(function(){return new Array(e.getBarcodeColumnCount()+2)})),a=0;a<o.length;a++)for(var s=0;s<o[a].length;s++)o[a][s]=new P;var l=0;try{for(var u=G(e.getDetectionResultColumns()),c=u.next();!c.done;c=u.next()){var f=c.value;if(null!=f)try{for(var d=(r=void 0,G(f.getCodewords())),h=d.next();!h.done;h=d.next()){var p=h.value;if(null!=p){var m=p.getRowNumber();if(m>=0){if(m>=o.length)continue;o[m][l].setValue(p.getValue())}}}}catch(g){r={error:g}}finally{try{h&&!h.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}l++}}catch(v){t={error:v}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}return o},e.isValidBarcodeColumn=function(e,t){return t>=0&&t<=e.getBarcodeColumnCount()+1},e.getStartColumn=function(t,n,r,i){var o,a,s=i?1:-1,l=null;if(e.isValidBarcodeColumn(t,n-s)&&(l=t.getDetectionResultColumn(n-s).getCodeword(r)),null!=l)return i?l.getEndX():l.getStartX();if(l=t.getDetectionResultColumn(n).getCodewordNearby(r),null!=l)return i?l.getStartX():l.getEndX();if(e.isValidBarcodeColumn(t,n-s)&&(l=t.getDetectionResultColumn(n-s).getCodewordNearby(r)),null!=l)return i?l.getEndX():l.getStartX();var u=0;while(e.isValidBarcodeColumn(t,n-s)){n-=s;try{for(var c=(o=void 0,G(t.getDetectionResultColumn(n).getCodewords())),f=c.next();!f.done;f=c.next()){var d=f.value;if(null!=d)return(i?d.getEndX():d.getStartX())+s*u*(d.getEndX()-d.getStartX())}}catch(h){o={error:h}}finally{try{f&&!f.done&&(a=c.return)&&a.call(c)}finally{if(o)throw o.error}}u++}return i?t.getBoundingBox().getMinX():t.getBoundingBox().getMaxX()},e.detectCodeword=function(t,n,r,i,o,a,s,u){o=e.adjustCodewordStartColumn(t,n,r,i,o,a);var c,f=e.getModuleBitCount(t,n,r,i,o,a);if(null==f)return null;var d=y["a"].sum(f);if(i)c=o+d;else{for(var h=0;h<f.length/2;h++){var p=f[h];f[h]=f[f.length-1-h],f[f.length-1-h]=p}c=o,o=c-d}if(!e.checkCodewordSkew(d,s,u))return null;var m=W.getDecodedValue(f),g=l["a"].getCodeword(m);return-1===g?null:new z(o,c,e.getCodewordBucketNumber(m),g)},e.getModuleBitCount=function(e,t,n,r,i,o){var a=i,s=new Int32Array(8),l=0,u=r?1:-1,c=r;while((r?a<n:a>=t)&&l<s.length)e.get(a,o)===c?(s[l]++,a+=u):(l++,c=!c);return l===s.length||a===(r?n:t)&&l===s.length-1?s:null},e.getNumberOfECCodeWords=function(e){return 2<<e},e.adjustCodewordStartColumn=function(t,n,r,i,o,a){for(var s=o,l=i?-1:1,u=0;u<2;u++){while((i?s>=n:s<r)&&i===t.get(s,a)){if(Math.abs(o-s)>e.CODEWORD_SKEW_SIZE)return o;s+=l}l=-l,i=!i}return s},e.checkCodewordSkew=function(t,n,r){return n-e.CODEWORD_SKEW_SIZE<=t&&t<=r+e.CODEWORD_SKEW_SIZE},e.decodeCodewords=function(t,n,r){if(0===t.length)throw o["a"].getFormatInstance();var i=1<<n+1,a=e.correctErrors(t,r,i);e.verifyCodewordCount(t,i);var s=q["a"].decode(t,""+n);return s.setErrorsCorrected(a),s.setErasures(r.length),s},e.correctErrors=function(t,n,r){if(null!=n&&n.length>r/2+e.MAX_ERRORS||r<0||r>e.MAX_EC_CODEWORDS)throw i["a"].getChecksumInstance();return e.errorCorrection.decode(t,r,n)},e.verifyCodewordCount=function(e,t){if(e.length<4)throw o["a"].getFormatInstance();var n=e[0];if(n>e.length)throw o["a"].getFormatInstance();if(0===n){if(!(t<e.length))throw o["a"].getFormatInstance();e[0]=e.length-t}},e.getBitCountForCodeword=function(e){var t=new Int32Array(8),n=0,r=t.length-1;while(1){if((1&e)!==n&&(n=1&e,r--,r<0))break;t[r]++,e>>=1}return t},e.getCodewordBucketNumber=function(e){return e instanceof Int32Array?this.getCodewordBucketNumber_Int32Array(e):this.getCodewordBucketNumber_number(e)},e.getCodewordBucketNumber_number=function(t){return e.getCodewordBucketNumber(e.getBitCountForCodeword(t))},e.getCodewordBucketNumber_Int32Array=function(e){return(e[0]-e[2]+e[4]-e[6]+9)%9},e.toString=function(e){for(var t=new D,n=0;n<e.length;n++){t.format("Row %2d: ",n);for(var r=0;r<e[n].length;r++){var i=e[n][r];0===i.getValue().length?t.format(" ",null):t.format("%4d(%2d)",i.getValue()[0],i.getConfidence(i.getValue()[0]))}t.format("%n")}return t.toString()},e.CODEWORD_SKEW_SIZE=2,e.MAX_ERRORS=3,e.MAX_EC_CODEWORDS=512,e.errorCorrection=new w["a"],e}(),K=Y,X=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},J=function(){function e(){}return e.prototype.decode=function(t,n){void 0===n&&(n=null);var r=e.decode(t,n,!1);if(null==r||0===r.length||null==r[0])throw a["a"].getNotFoundInstance();return r[0]},e.prototype.decodeMultiple=function(t,n){void 0===n&&(n=null);try{return e.decode(t,n,!0)}catch(r){if(r instanceof o["a"]||r instanceof i["a"])throw a["a"].getNotFoundInstance();throw r}},e.decode=function(t,n,i){var o,a,l=new Array,u=b.detectMultiple(t,n,i);try{for(var f=X(u.getPoints()),d=f.next();!d.done;d=f.next()){var h=d.value,p=K.decode(u.getBits(),h[4],h[5],h[6],h[7],e.getMinCodewordWidth(h),e.getMaxCodewordWidth(h)),m=new s["a"](p.getText(),p.getRawBytes(),void 0,h,r["a"].PDF_417);m.putMetadata(c["a"].ERROR_CORRECTION_LEVEL,p.getECLevel());var g=p.getOther();null!=g&&m.putMetadata(c["a"].PDF417_EXTRA_METADATA,g),l.push(m)}}catch(v){o={error:v}}finally{try{d&&!d.done&&(a=f.return)&&a.call(f)}finally{if(o)throw o.error}}return l.map((function(e){return e}))},e.getMaxWidth=function(e,t){return null==e||null==t?0:Math.trunc(Math.abs(e.getX()-t.getX()))},e.getMinWidth=function(e,t){return null==e||null==t?u["a"].MAX_VALUE:Math.trunc(Math.abs(e.getX()-t.getX()))},e.getMaxCodewordWidth=function(t){return Math.floor(Math.max(Math.max(e.getMaxWidth(t[0],t[4]),e.getMaxWidth(t[6],t[2])*l["a"].MODULES_IN_CODEWORD/l["a"].MODULES_IN_STOP_PATTERN),Math.max(e.getMaxWidth(t[1],t[5]),e.getMaxWidth(t[7],t[3])*l["a"].MODULES_IN_CODEWORD/l["a"].MODULES_IN_STOP_PATTERN)))},e.getMinCodewordWidth=function(t){return Math.floor(Math.min(Math.min(e.getMinWidth(t[0],t[4]),e.getMinWidth(t[6],t[2])*l["a"].MODULES_IN_CODEWORD/l["a"].MODULES_IN_STOP_PATTERN),Math.min(e.getMinWidth(t[1],t[5]),e.getMinWidth(t[7],t[3])*l["a"].MODULES_IN_CODEWORD/l["a"].MODULES_IN_STOP_PATTERN)))},e.prototype.reset=function(){},e}();t["a"]=J},f6ed:function(e,t,n){"use strict";var r=n("f0a7"),i=function(){function e(){}return e.prototype.exp=function(e){return this.expTable[e]},e.prototype.log=function(e){if(0===e)throw new r["a"];return this.logTable[e]},e.addOrSubtract=function(e,t){return e^t},e}();t["a"]=i},f6fd:function(e,t){(function(e){var t="currentScript",n=e.getElementsByTagName("script");t in e||Object.defineProperty(e,t,{get:function(){try{throw new Error}catch(r){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(e in n)if(n[e].src==t||"interactive"==n[e].readyState)return n[e];return null}}})})(document)},f751:function(e,t,n){var r=n("5ca1");r(r.S+r.F,"Object",{assign:n("7333")})},f772:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},f809:function(e,t,n){"use strict";e.exports=function(e){e||(e={}),"string"===typeof e&&(e={cookie:e}),void 0===e.cookie&&(e.cookie="");var t={getItem:function(t){for(var n=e.cookie.split(/;\s*/),r=0;r<n.length;r++){var i=n[r].split("="),o=decodeURIComponent(i[0]);if(o===t)return decodeURIComponent(i[1])}},setItem:function(t,n,r){if("string"!==typeof t||"string"!==typeof n)return!1;r||(r={});var i=encodeURIComponent(t)+"="+encodeURIComponent(n);return r.hasOwnProperty("expires")&&(i+="; expires="+r.expires),r.hasOwnProperty("path")&&(i+="; path="+r.path),r.hasOwnProperty("domain")&&(i+="; domain="+r.domain),r.secure&&(i+="; secure"),e.cookie=i,i},removeItem:function(t){e.cookie=t+"=;expires=Thu, 01 Jan 1970 00:00:01 GMT;"},clear:function(){for(var n=e.cookie.split(/;\s*/),r=0;r<n.length;r++)t.removeItem(decodeURIComponent(n[r].split("=")[0]))}};return t}},f823:function(e,t,n){"use strict";var r=n("fe96"),i=n("67f0"),o=n("78c7"),a=function(){function e(){}return e.castAsNonUtf8Char=function(e,t){void 0===t&&(t=null);var n=t?t.getName():this.ISO88591;return o["a"].decode(new Uint8Array([e]),n)},e.guessEncoding=function(t,n){if(null!==n&&void 0!==n&&void 0!==n.get(r["a"].CHARACTER_SET))return n.get(r["a"].CHARACTER_SET).toString();for(var i=t.length,o=!0,a=!0,s=!0,l=0,u=0,c=0,f=0,d=0,h=0,p=0,m=0,g=0,v=0,b=0,y=t.length>3&&239===t[0]&&187===t[1]&&191===t[2],w=0;w<i&&(o||a||s);w++){var _=255&t[w];s&&(l>0?0===(128&_)?s=!1:l--:0!==(128&_)&&(0===(64&_)?s=!1:(l++,0===(32&_)?u++:(l++,0===(16&_)?c++:(l++,0===(8&_)?f++:s=!1))))),o&&(_>127&&_<160?o=!1:_>159&&(_<192||215===_||247===_)&&b++),a&&(d>0?_<64||127===_||_>252?a=!1:d--:128===_||160===_||_>239?a=!1:_>160&&_<224?(h++,m=0,p++,p>g&&(g=p)):_>127?(d++,p=0,m++,m>v&&(v=m)):(p=0,m=0))}return s&&l>0&&(s=!1),a&&d>0&&(a=!1),s&&(y||u+c+f>0)?e.UTF8:a&&(e.ASSUME_SHIFT_JIS||g>=3||v>=3)?e.SHIFT_JIS:o&&a?2===g&&2===h||10*b>=i?e.SHIFT_JIS:e.ISO88591:o?e.ISO88591:a?e.SHIFT_JIS:s?e.UTF8:e.PLATFORM_DEFAULT_ENCODING},e.format=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=-1;function i(e,n,i,o,a,s){if("%%"===e)return"%";if(void 0!==t[++r]){e=o?parseInt(o.substr(1)):void 0;var l,u=a?parseInt(a.substr(1)):void 0;switch(s){case"s":l=t[r];break;case"c":l=t[r][0];break;case"f":l=parseFloat(t[r]).toFixed(e);break;case"p":l=parseFloat(t[r]).toPrecision(e);break;case"e":l=parseFloat(t[r]).toExponential(e);break;case"x":l=parseInt(t[r]).toString(u||16);break;case"d":l=parseFloat(parseInt(t[r],u||10).toPrecision(e)).toFixed(0);break}l="object"===typeof l?JSON.stringify(l):(+l).toString(u);var c=parseInt(i),f=i&&i[0]+""==="0"?"0":" ";while(l.length<c)l=void 0!==n?l+f:f+l;return l}}var o=/%(-)?(0?[0-9]+)?([.][0-9]+)?([#][0-9]+)?([scfpexd%])/g;return e.replace(o,i)},e.getBytes=function(e,t){return o["a"].encode(e,t)},e.getCharCode=function(e,t){return void 0===t&&(t=0),e.charCodeAt(t)},e.getCharAt=function(e){return String.fromCharCode(e)},e.SHIFT_JIS=i["a"].SJIS.getName(),e.GB2312="GB2312",e.ISO88591=i["a"].ISO8859_1.getName(),e.EUC_JP="EUC_JP",e.UTF8=i["a"].UTF8.getName(),e.PLATFORM_DEFAULT_ENCODING=e.UTF8,e.ASSUME_SHIFT_JIS=!1,e}();t["a"]=a},f848:function(e,t,n){e.exports={default:n("4dc9"),__esModule:!0}},f893:function(e,t,n){e.exports={default:n("f921"),__esModule:!0}},f8ab:function(e,t,n){"use strict";n("66c8")},f8c0:function(e,t,n){"use strict";var r=n("d0b6"),i=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.kind="ArgumentException",t}(r["a"]);t["a"]=o},f921:function(e,t,n){n("014b"),n("c207"),n("69d3"),n("765d"),e.exports=n("584a").Symbol},f989:function(e,t,n){},fa5b:function(e,t,n){e.exports=n("5537")("native-function-to-string",Function.toString)},fa99:function(e,t,n){n("0293"),e.exports=n("584a").Object.getPrototypeOf},fab2:function(e,t,n){var r=n("7726").document;e.exports=r&&r.documentElement},fb15:function(e,t,n){"use strict";var r;(n.r(t),"undefined"!==typeof window)&&(n("f6fd"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1]));n("8e6e"),n("cadf"),n("456d");var i=n("ade3"),o=(n("7f7f"),n("ac6a"),function(){var e=this,t=e._self._c;return t("el-breadcrumb",{staticClass:"app-breadcrumb",attrs:{separator:"/"}},[t("transition-group",{attrs:{name:"breadcrumb"}},e._l(e.levelListWithTitle,(function(n,r){return t("el-breadcrumb-item",{key:n.path},["noredirect"===n.redirect||r==e.levelList.length-1?t("span",{staticClass:"no-redirect"},[e._v("\n "+e._s(n.meta.title)+"\n ")]):t("router-link",{attrs:{to:n.redirect||n.path}},[e._v("\n "+e._s(n.meta.title)+"\n ")])],1)})),1)],1)}),a=[],s=n("bd11"),l=n.n(s),u={name:"Breadcrumb",data:function(){return{levelList:null}},computed:{levelListWithTitle:function(){return this.levelList.filter((function(e){return void 0!==e.meta.title&&null!==e.meta.title}))}},watch:{$route:function(){this.getBreadcrumb()}},created:function(){this.getBreadcrumb()},methods:{getBreadcrumb:function(){var e=this.$route.params,t=this.$route.matched.filter((function(t){if(t.name){var n=l.a.compile(t.path);return t.path=n(e),!0}})),n=t[0];n&&"Dashboard"!==n.name&&(t=[{path:"/dashboard",meta:{title:"Dashboard"}}].concat(t)),this.levelList=t}}},c=u;n("5b35");function f(e,t,n,r,i,o,a,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:e,options:u}}var d=f(c,o,a,!1,null,"7da23860",null),h=d.exports;h.install=function(e){e.component(h.name,h)};var p=h,m=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{staticClass:"user-tree",attrs:{visible:"",title:e.myTitle,"close-on-click-modal":!1,"append-to-body":"",width:e.multiple?"50%":"30%"},on:{open:function(t){return e.$emit("open")},opend:function(t){return e.$emit("opend")},close:function(t){return e.$emit("close")},closed:function(t){return e.$emit("closed")}}},[t("inline-department-tree",{ref:"inlineDeparmentTree",attrs:{"check-strictly":e.checkStrictly,multiple:e.multiple,height:e.height,"department-info":e.departmentInfo,"select-department-info":e.selectDepartmentInfo,"search-field":e.searchField,separator:e.separator},on:{result:e.result}}),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{size:"small"},on:{click:function(t){return e.$emit("close")}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.cancel"))+"\n ")]),t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.selectDepartment}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.sure"))+"\n ")])],1)],1)],1)},g=[],v=(n("c5f6"),function(){var e=this,t=e._self._c;return t("div",[e.multiple?t("inline-department-multi-tree",{ref:"inlineDeparmentTree",attrs:{height:e.height,"check-strictly":e.checkStrictly,"department-info":e.departmentInfo,"select-department-info":e.selectDepartmentInfo,"search-field":e.searchField,separator:e.separator},on:{result:e.result}}):e._e(),e.multiple?e._e():t("inline-department-single-tree",{ref:"inlineDeparmentTree",attrs:{"department-info":e.departmentInfo},on:{result:e.result}})],1)}),b=[],y=function(){var e=this,t=e._self._c;return t("div",[t("el-container",{staticStyle:{height:"395px"}},[t("el-aside",{attrs:{width:"350px"}},[t("el-container",{staticStyle:{height:"390px"}},[t("el-header",{staticStyle:{"text-align":"right","font-size":"12px",height:"35px"}},[t("el-autocomplete",{staticClass:"inline-input inline-input-custom",attrs:{size:"small","fetch-suggestions":e.querySearch,placeholder:e.$t("departmentTreeInline.pleaseEnterDepartmentName")},on:{select:e.handleSelect},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.clickSearch.apply(null,arguments)}},model:{value:e.filterText,callback:function(t){e.filterText=t},expression:"filterText"}},[t("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.clickSearch},slot:"append"})],1)],1),t("el-main",{staticStyle:{padding:"10px"}},[e.searchValue?e._e():t("div",{staticStyle:{"padding-top":"5px",overflow:"auto",width:"auto",display:"inline-block !important"}},[t("el-tree",{ref:"deparmentTree",attrs:{props:e.defaultProps,load:e.loadNode,lazy:"","show-checkbox":!0,"node-key":"id","check-strictly":"","render-content":e.renderContent,"filter-node-method":e.filterNode},on:{"check-change":e.handleCheckChange,"node-expand":e.handleNodeExpand,check:e.handleCheckNode,"node-click":e.handleNodeClick}})],1),e.searchValue&&e.searchValue.length>0?t("div",{staticStyle:{height:"100%",overflow:"hidden"}},[t("user-result",{attrs:{"grid-data":e.searchResult,"select-result":e.selectResult,height:e.height,multiple:!0,"is-search-result":!0},on:{addUser:e.selectUser}})],1):e._e()])],1)],1),t("el-container",[t("el-aside",{attrs:{width:"2px"}},[t("table",{staticStyle:{height:"100%","border-left-style":"solid","border-bottom-style":"none","border-right-style":"none","border-top-style":"none","border-left-color":"#cccccc"},attrs:{border:"1px",cellpadding:"0",cellspacing:"0"}})]),t("el-main",{staticStyle:{padding:"10px"}},[t("div",{staticStyle:{"text-align":"left","font-size":"16px"}},[e._v("\n "+e._s(e.$t("departmentTreeInline.selectedDept"))+":\n ")]),t("div",{style:"padding-top: 5px;height:90%;overflow: hidden;"},[t("user-result",{directives:[{name:"loading",rawName:"v-loading",value:e.isloading,expression:"isloading"}],attrs:{"grid-data":e.selectResult,height:e.height,multiple:!0,"is-search-result":!1},on:{removeUser:e.removeUser}})],1)])],1)],1)],1)},w=[],_=n("3c96"),C=(n("551c"),n("a481"),n("53ca")),x=(n("28a5"),n("386d"),n("ca00")),S=n("8bbf"),k=n.n(S),D={getSearchUserFields:function(){var e=Object(x["e"])();return[{value:"name",label:e.t("departmentUserTree.searchFieldUserName")},{value:"loginName",label:e.t("departmentUserTree.searchFieldLoginName")},{value:"email",label:e.t("departmentUserTree.searchFieldEmail")},{value:"telephone",label:e.t("departmentUserTree.searchFieldTelephone")},{value:"jobNumber",label:e.t("departmentUserTree.searchFieldJobNumber")},{value:"honorificName",label:e.t("departmentUserTree.searchFieldHonorificName")}]},removeRow:function(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].id===t.id)return 0===r?(e.shift(),e):r===n-1?(e.pop(),e):(e.splice(r,1),e);return e},storeSeachValue:function(e,t,n){if(n&&""!==n){var r=e.getObject(t);if(r&&r.length>0){var i=r.filter(this.createFilter(n));if(0===i.length){var o={value:n};r.push(o),e.setObject(t,r)}}else{var a=[],s={value:n};a.push(s),e.setObject(t,a)}this.restaurants=e.getObject(t)}},createFilter:function(e){return function(t){return 0===t.value.toLowerCase().indexOf(e.toLowerCase())}},handleSelectUtil:function(e,t){this.storeSeachValue(t,this.searchStoreKey,this.filterText),this.search(e.value)},analysisLabelTag:function(e,t,n,r){var i,o="";if(e&&(""!==e&&"string"===typeof e?i=e.split("-#-#"):"object"===Object(C["a"])(e)&&(i=e),i&&i.length>0))for(var a=0;a<i.length;a++){var s=i[a];if(-1!==s.indexOf("obj.")){if(s=s.replace("${obj.","").replace("}",""),t){var l=t[s];this.childIsObjectProp(s)&&(l=this.childObjectPropOriginalValue(t,s)),o+=l}}else if(-1!==s.indexOf("request.")){if(s=s.replace("${request.","").replace("}",""),r){var u=r[s];u&&(o+=u)}}else if(-1!==s.indexOf("input."))s=s.replace("${input.","").replace("}",""),o+=s;else if(-1!==s.indexOf("context.")&&(s=s.replace("${context.","").replace("}",""),n)){var c=n[s];c&&(o+=c)}}return o},childIsObjectProp:function(e){return e.indexOf(".")>0},childObjectPropOriginalValue:function(e,t){try{var n=e,r=t.split(".");return r.forEach((function(e){if(!n)throw n="",n;n=n[e]})),n}catch(i){return""}},getSelectUsers:function(e,t,n){var r=this;return new Promise((function(i,o){e&&t?r.$http.get(k.a.prototype.baseAPI+"/component/organization-trees/select-users?searchField="+e+"&selectUserInfo="+t+"&separator="+n).then((function(e){i(e)})).catch((function(e){o(e)})):i([])}))}},O=D,T=(n("20d6"),{filterAppendNodes:function(e){var t=this;this.$http.post(k.a.prototype.baseAPI+"/component/organization-trees/search-pc-depts",this.searchParam).then((function(e){if(e){if(0===e.length)return t.searchResult=[],void t.$message({showClose:!0,type:"error",message:Object(x["e"])().t("imatrixUIMessage.queryResultIsEmpty")});t.searchResult=e}else t.$message({showClose:!0,type:"error",message:Object(x["e"])().t("imatrixUIMessage.queryResultIsEmpty")})}))},search:function(e){this.searchValue=e;var t=e;t&&(t=t.trim()),this.searchParam.searchValue=t,this.searchParam.departmentInfo=this.departmentInfo,this.filterAppendNodes(e)},handleSelect:function(e){var t=this;this.$http.get(k.a.prototype.baseAPI+"/api/departments?departmentCode="+e.code).then((function(n){if(null!==n)for(var r in n)e.hasOwnProperty(r)&&(e[r]=n[r]);if(t.filterText="",t.searchValue="",t.setMemoryCacheData(e,"department"),t.multiple){var i=t.selectResult.findIndex((function(t){return t.code===e.code}));i<0&&t.selectResult.push(e)}else t.packageSelectResult(e),t.$emit("result",t.selectNodeInfo)}))},querySearch:function(e,t){this.filterText||0!==this.filterText.length?(this.search(this.filterText),t([])):this.memorySearch(e,t)},clickSearch:function(){this.storeSeachValue(),this.search(this.filterText)},loadDepartmentWhenSearch:function(e,t){var n=this;return new Promise((function(r,i){if(t.length===e)r();else{var o=t[e],a=o,s="~";o.indexOf(s)>-1&&(a=o.substring(o.indexOf("~")+1)),n.loadDepartment(a).then((function(){n.loadDepartmentWhenSearch(++e,t)})).catch((function(e){i(e)}))}}))},handleCheckNode:function(e,t){var n=this;if(t.checkedKeys.indexOf(e.id)>-1){if(this.isloading=!0,e.nodeType&&"DEPARTMENT"===e.nodeType&&e.data){var r=JSON.parse(e.data);this.selectUser(null,r)}e.childDepartments?(this.$refs.deparmentTree.store.nodesMap[e.id].expanded=!0,this.checkedNodeAndChildren(e),this.isloading=!1):e.leaf?this.isloading=!1:(this.$http.get(k.a.prototype.baseAPI+"/component/organization-trees/departments/"+e.id).then((function(t){n.$refs.deparmentTree.updateKeyChildren(e.id,t),n.$refs.deparmentTree.store.nodesMap[e.id].expanded=!0,n.checkedNodeAndChildren(e)})),this.$http.get(k.a.prototype.baseAPI+"/component/organization-trees/child-departments/"+e.id).then((function(e){e&&!n.checkStrictly&&(e.forEach((function(e){n.selectUser(null,e)})),n.isloading=!1)})))}else this.cancelChildCheckedNodes(e)},loadNode:function(e,t){var n=0;n=0===e.level?0:e.data.id;var r=[];this.$refs.deparmentTree&&(r=this.$refs.deparmentTree.getCheckedKeys()),this.initLoadDepartment(n,e,t,r)},initLoadDepartment:function(e,t,n,r){var i=this;this.$http.get(k.a.prototype.baseAPI+"/component/organization-trees/departments/"+e).then((function(o){if(n(o),i.$refs.deparmentTree.updateKeyChildren(e,o),0===e){var a=o[0].data;o[0].disable=!0,i.tenantInfo=JSON.parse(a),i.containBranch=o[0].containBranch,i.departmentInfo&&i.departmentInfo.length>0?i.loadPointDepartments():i.loadDepartment(i.tenantNodeId)}i.isClickNode?(i.isClickNode=!1,i.checkedNodeAndChildren(t.data)):r&&r.indexOf(e)>-1&&i.checkedNodeAndChildren(t.data)}))},loadDepartment:function(e,t,n){var r=this;return new Promise((function(t,n){r.$http.get(k.a.prototype.baseAPI+"/component/organization-trees/departments/"+e).then((function(n){r.$refs.deparmentTree.updateKeyChildren(e,n),r.$refs.deparmentTree.store.nodesMap[e]&&(r.$refs.deparmentTree.store.nodesMap[e].expanded=!0),t()})).catch((function(e){console.log("error",e)}))}))},loadPointDepartments:function(){var e=this;this.$http.post(k.a.prototype.baseAPI+"/component/organization-trees/point-departments",this.departmentInfo).then((function(t){e.$refs.deparmentTree.updateKeyChildren(e.tenantNodeId,t),e.$refs.deparmentTree.store.nodesMap[e.tenantNodeId]&&(e.$refs.deparmentTree.store.nodesMap[e.tenantNodeId].expanded=!0)}))},getSelectDepts:function(e,t,n){var r=this;return new Promise((function(i,o){e&&t?r.$http.get(k.a.prototype.baseAPI+"/component/organization-trees/select-departments?searchField="+e+"&selectDeptInfo="+t+"&separator="+n).then((function(e){i(e)})).catch((function(e){o(e)})):i([])}))},packageAllDept:function(){var e={id:this.tenantNodeId,name:"所有部门"};return e},initSelectDepts:function(){var e=this;return new Promise((function(t,n){var r=[];e.selectDepartmentInfo?e.selectDepartmentInfo===e.tenantNodeId||"所有部门"===e.selectDepartmentInfo?(r.push(e.packageAllDept()),t(r)):e.getSelectDepts(e.searchField,e.selectDepartmentInfo,e.separator).then((function(e){t(e)})).catch((function(e){n(e)})):t(r)}))}}),E=T,I=function(){var e=this,t=e._self._c;return t("div",{staticStyle:{height:"100%"}},[t("el-table",{ref:"superGrid",attrs:{data:e.gridData,"row-key":"id","row-class-name":e.tableRowClassName,"max-height":e.myHeight,border:"",fit:""},on:{"row-click":e.rowClick,"row-dblclick":e.rowDblclick}},[!1===e.multiple?t("el-table-column",{attrs:{width:"60"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("el-radio",{attrs:{label:n.$index},on:{change:e.selectUser},model:{value:e.singleUserIndex,callback:function(t){e.singleUserIndex=t},expression:"singleUserIndex"}},[e._v("\n "+e._s(n.$index+1)+"\n ")])]}}],null,!1,1685606562)}):e._e(),e.multiple&&e.isSearchResult?t("el-table-column",{attrs:{fixed:"",label:e.$t("imatrixUIPublicModel.edit"),align:"center",width:"60px"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("div",[t("el-button",{attrs:{type:"primary",size:"mini",icon:"el-icon-plus",disabled:e.isDisable(n.row),circle:""},on:{click:function(t){return e.addUser(n.$index,n.row)}}})],1)]}}],null,!1,758332263)}):e._e(),e.multiple?t("el-table-column",{attrs:{label:e.$t("superGrid.index"),align:"center",width:"60px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.$index+1)+"\n ")]}}],null,!1,2711056793)}):e._e(),e.multiple&&!e.isSearchResult?t("el-table-column",{attrs:{fixed:"",label:e.$t("imatrixUIPublicModel.edit"),align:"center",width:"60px"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("div",[t("el-button",{attrs:{type:"danger",size:"mini",icon:"el-icon-delete",circle:""},on:{click:function(t){return e.removeUser(n.$index,n.row)}}})],1)]}}],null,!1,3810037523)}):e._e(),t("el-table-column",{attrs:{label:e.$t("departmentTreeInline.name"),width:170,prop:"name"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("span",{staticClass:"ellipsis cell--span",attrs:{title:n.row.showName}},[e._v(e._s(n.row.showName))])]}}])}),t("el-table-column",{attrs:{label:e.$t("departmentTreeInline.code"),width:140,prop:"code"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("span",{staticClass:"ellipsis cell--span",attrs:{title:n.row.code}},[e._v(e._s(n.row.code))])]}}])}),t("el-table-column",{attrs:{label:e.$t("departmentTreeInline.namePath"),width:140,prop:"namePath"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("span",{staticClass:"ellipsis cell--span",attrs:{title:n.row.namePath}},[e._v(e._s(n.row.namePath))])]}}])})],1)],1)},N=[],A={name:"UserResult",props:{gridData:{type:Array,default:null},containBranch:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},isSearchResult:{type:Boolean,default:!0},height:{type:String,default:"300px"},selectResult:{type:Array,default:function(){return[]}}},data:function(){var e=this.height;e=e.substring(0,e.indexOf("px"));var t=parseInt(e)+30+"px";return{singleUserIndex:null,selectedUser:null,myHeight:t}},created:function(){console.log("search-result---",this.gridData)},methods:{removeUser:function(e,t){this.$emit("removeUser",e,t)},addUser:function(e,t){this.$emit("addUser",e,t)},selectUser:function(e){this.$emit("selectResult",this.gridData[e])},rowClick:function(e,t,n){this.singleUserIndex=e.row_index,this.$emit("selectResult",e)},tableRowClassName:function(e){var t=e.row,n=e.rowIndex;t.row_index=n},rowDblclick:function(e,t,n){this.multiple?this.$emit("addUser",null,e):this.$emit("resultRowDblclick",e)},isDisable:function(e){if(this.selectResult){var t=this.selectResult.filter(this.filterDept(e));if(t&&t.length>0)return!0}return!1},filterDept:function(e){return function(t){return t.id===e.id}}}},P=A,M=(n("22df"),f(P,I,N,!1,null,null,null)),R=M.exports,F={memorySearch:function(e,t){var n=this.memoryCacheData,r=n;setTimeout((function(){t(r)}),10*Math.random())},setMemoryCacheData:function(e,t){"departmentUser"===t?this.setDepartmentUserMemoryCacheData(e):"department"===t&&this.setDepartmentMemoryCacheData(e)},getMemoryCacheData:function(e){"departmentUser"===e?this.getDepartmentUserMemoryCacheData():"department"===e&&this.getDepartmentMemoryCacheData()},setDepartmentUserMemoryCacheData:function(e){var t=10,n=_["a"].getObject(this.memoryCacheKey),r=void 0===e.name||null===e.name||"undefined"===e.name?"":e.name,i=void 0===e.loginName||null===e.loginName||"undefined"===e.loginName?"":e.loginName,o=void 0===e.mainDepartmentName||null===e.mainDepartmentName||"undefined"===e.mainDepartmentName?"":e.mainDepartmentName,a=r+"("+i+"/"+o+")",s=-1;n&&n.length>0?s=n.findIndex((function(t){return t.loginName===e.loginName})):n=[],e["value"]=a,s<0?(n.length===t&&n.splice(t-1,1),n.unshift(e),_["a"].setObject(this.memoryCacheKey,n)):(n.splice(s,1),n.unshift(e),_["a"].setObject(this.memoryCacheKey,n))},setDepartmentMemoryCacheData:function(e){var t=10,n=_["a"].getObject(this.memoryCacheKey),r=void 0===e.name||null===e.name||"undefined"===e.name?"":e.name,i=void 0===e.code||null===e.code||"undefined"===e.code?"":e.code,o=r+"("+i+")",a=-1;n&&n.length>0?a=n.findIndex((function(t){return t.code===e.code})):n=[],e["value"]=o,a<0?(n.length===t&&n.splice(t-1,1),n.unshift(e),_["a"].setObject(this.memoryCacheKey,n)):(n.splice(a,1),n.unshift(e),_["a"].setObject(this.memoryCacheKey,n))},getDepartmentUserMemoryCacheData:function(){var e=_["a"].getObject(this.memoryCacheKey);e&&e.length>0&&(this.memoryCacheData=e)},getDepartmentMemoryCacheData:function(){var e=_["a"].getObject(this.memoryCacheKey);e&&e.length>0&&(this.memoryCacheData=e)}},B=F;function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var V={name:"InlineDepartmentMultiTree",components:{UserResult:R},props:{checkStrictly:{type:Boolean,default:!1},departmentInfo:{type:Array,default:null},height:{type:String,default:"300px"},selectDepartmentInfo:{type:[String,Number],default:null},searchField:{type:String,default:"id"},separator:{type:String,default:","}},data:function(){return{filterText:"",defaultProps:{id:"id",label:"showName",children:"childDepartments",isLeaf:"leaf"},searchParam:{searchValue:null,treeType:"DEPARTMENT_TREE",departmentInfo:null},count:0,containBranch:!1,tenantNodeId:-1,allSearchNodeIds:[],allExpandNodeIds:[],isClickNode:!1,restaurants:[],searchValue:null,searchStoreKey:"searchDepartment",selectNodeInfo:null,tenantInfo:{},searchResult:[],selectResult:[],isloading:!1,multiple:!0,memoryCacheKey:"DEPARTMENT_MEMORY_KEY",memoryCacheData:[]}},computed:{},watch:{filterText:function(e){e||(this.searchValue=e,this.departmentInfo&&this.departmentInfo.length>0?this.loadPointDepartments():this.loadDepartment(this.tenantNodeId))}},created:function(){var e=this;this.initSelectDepts(this.searchField,this.selectDepartmentInfo,this.separator).then((function(t){t&&(e.selectResult=t)}))},mounted:function(){var e=_["a"].getObject(this.searchStoreKey);this.restaurants=e||[],this.getMemoryCacheData("department")},methods:$($($($({},O),E),B),{},{filterNode:function(e,t,n){return!e||-1!==t.name.indexOf(e)},checkedNodeAndChildren:function(e){var t=this,n=e;e.data&&(n=JSON.parse(e.data)),this.selectUser(null,n),this.$refs.deparmentTree.setChecked(e.id,!0);var r=e.childDepartments;r&&!this.checkStrictly&&r.forEach((function(e){t.checkedNodeAndChildren(e)}))},cancelChildCheckedNodes:function(e){var t=this,n=JSON.parse(e.data);this.selectResult=this.removeRow(this.selectResult,n),e.id!==this.tenantNodeId&&this.$refs.deparmentTree.setChecked(this.tenantNodeId,!1);var r=e.childDepartments;r&&!this.checkStrictly&&r.forEach((function(e){t.$refs.deparmentTree.setChecked(e.id,!1),t.cancelChildCheckedNodes(e)}))},handleCheckChange:function(e,t,n){},handleNodeExpand:function(e,t,n){},handleNodeClick:function(e,t,n){this.clickNodeWhenMultiple(e)},clickNodeWhenMultiple:function(e){var t=[];if(this.$refs.deparmentTree&&(t=this.$refs.deparmentTree.getCheckedKeys()),t&&t.indexOf(e.id)>-1)this.$refs.deparmentTree.setChecked(e.id,!1),this.checkStrictly||this.cancelChildCheckedNodes(e),this.$refs.deparmentTree.store.nodesMap[e.id].expanded=!0;else{if(e.nodeType&&"DEPARTMENT"===e.nodeType&&e.data){var n=JSON.parse(e.data);this.selectUser(null,n)}this.$refs.deparmentTree.setChecked(e.id,!0);var r=e.childDepartments;r&&r.length>0?this.checkStrictly||this.checkedNodeAndChildren(e):this.isClickNode=!0}},isDepartmentNode:function(e){return e.id!==this.tenantNodeId&&e.nodeType&&"DEPARTMENT"===e.nodeType&&!e.branch},selectDepartment:function(){var e=!1,t={ids:[],names:[],codes:[],zhNames:[],enNames:[],departments:[]};if(0===this.selectResult.length)e=!0;else for(var n=0;n<this.selectResult.length;n++){var r=this.selectResult[n];t.ids.push(r.id),t.codes.push(r.code),r.enName?t.enNames.push(r.enName):t.enNames.push(""),r.department?t.departments.push(r.department):t.departments.push(r);var i=r.showName;t.names.push(i),t.zhNames.push(r.name)}t.ids.length>0?(t.containBranch=this.containBranch,this.$emit("result",t)):e=!0,e&&this.$alert(this.$t("imatrixUIMessage.pleaseSelectDepartment"),this.$t("imatrixUIMessage.tips"),{confirmButtonText:this.$t("imatrixUIPublicModel.sure")})},isSelectTenantNode:function(e){return e===this.tenantNodeId&&(!this.departmentInfo||0===this.departmentInfo.length)},renderContent:function(e,t){var n,r=t.node;t.data,t.store;return n=-1===r.data.id||r.data.branch?"el-icon-menu":-2===r.data.id||-3===r.data.id?"el-icon-tickets":"el-icon-date",e("span",[e("i",{class:n}),e("span",{attrs:{title:r.label}},[r.label])])},selectUser:function(e,t){var n=this.selectResult.filter(this.filterDept(t));n&&0===n.length&&(t.tenantCode=this.tenantInfo.code,t.tenantName=this.tenantInfo.tenantName,this.selectResult.push(t),this.setMemoryCacheData(t,"department"))},filterDept:function(e){return function(t){return t.id===e.id}},filterDeptNode:function(e){return function(t){return t+""===e.id+""}},removeUser:function(e,t){var n=this;if(t.nodeId){var r=t.nodeId;this.$refs.deparmentTree&&r&&this.$refs.deparmentTree.setChecked(r,!1)}else if(this.$refs.deparmentTree){var i=this.$refs.deparmentTree.getCheckedKeys(),o=i.filter(this.filterDeptNode(t));o.length>0&&o.forEach((function(e){n.$refs.deparmentTree.setChecked(e,!1)}))}this.selectResult=this.removeRow(this.selectResult,t),this.selectResult&&0!==this.selectResult.length||this.$refs.deparmentTree&&this.$refs.deparmentTree.setCheckedKeys([])}})},j=V,z=(n("095b"),f(j,y,w,!1,null,null,null)),H=z.exports,U=function(){var e=this,t=e._self._c;return t("div",[t("el-container",{staticStyle:{height:"395px"}},[t("el-header",{staticStyle:{"text-align":"right","font-size":"12px",height:"35px"}},[t("el-autocomplete",{staticClass:"inline-input inline-input-custom",attrs:{size:"small","fetch-suggestions":e.querySearch,placeholder:e.$t("departmentTreeInline.pleaseEnterDepartmentName")},on:{select:e.handleSelect},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.clickSearch.apply(null,arguments)}},model:{value:e.filterText,callback:function(t){e.filterText=t},expression:"filterText"}},[t("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.clickSearch},slot:"append"})],1)],1),t("el-main",{staticStyle:{padding:"10px"}},[e.searchValue?e._e():t("div",{staticStyle:{"padding-top":"5px",overflow:"auto",width:"auto",display:"inline-block !important"}},[t("el-tree",{ref:"deparmentTree",attrs:{props:e.defaultProps,load:e.loadNode,lazy:"","show-checkbox":!1,"node-key":"id","check-strictly":"","render-content":e.renderContent,"filter-node-method":e.filterNode},on:{"check-change":e.handleCheckChange,"node-expand":e.handleNodeExpand,"node-click":e.handleNodeClick}})],1),e.searchValue&&e.searchValue.length>0?t("div",{staticStyle:{height:"100%",overflow:"hidden"}},[t("user-result",{attrs:{"grid-data":e.searchResult,height:e.height,multiple:!1,"is-search-result":!0},on:{selectResult:e.getSelectUser,resultRowDblclick:e.resultRowDblclick}})],1):e._e()])],1)],1)},W=[];function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Y={name:"InlineDepartmentSingleTree",components:{UserResult:R},props:{departmentInfo:{type:Array,default:null},height:{type:String,default:"300px"},selectDepartmentInfo:{type:[String,Number],default:null},searchField:{type:String,default:"id"},separator:{type:String,default:","}},data:function(){return{filterText:"",defaultProps:{id:"id",label:"showName",children:"childDepartments",isLeaf:"leaf"},searchParam:{searchValue:null,treeType:"DEPARTMENT_TREE",departmentInfo:null},count:0,containBranch:!1,tenantNodeId:-1,allSearchNodeIds:[],allExpandNodeIds:[],isClickNode:!1,restaurants:[],searchValue:null,searchStoreKey:"searchDepartment",selectNodeInfo:null,tenantInfo:{},searchResult:[],memoryCacheKey:"DEPARTMENT_MEMORY_KEY",memoryCacheData:[]}},computed:{},watch:{filterText:function(e){e||(this.searchValue=e,this.departmentInfo&&this.departmentInfo.length>0?this.loadPointDepartments():this.loadDepartment(this.tenantNodeId))}},mounted:function(){var e=_["a"].getObject(this.searchStoreKey);this.restaurants=e||[],this.getMemoryCacheData("department")},methods:G(G(G(G({},O),E),B),{},{filterNode:function(e,t,n){return!e||-1!==t.name.indexOf(e)},checkedNodeAndChildren:function(e){var t=this;this.$refs.deparmentTree.setChecked(e.id,!0);var n=e.childDepartments;n&&n.forEach((function(e){t.checkedNodeAndChildren(e)}))},cancelChildCheckedNodes:function(e){var t=this;e.id!==this.tenantNodeId&&this.$refs.deparmentTree.setChecked(this.tenantNodeId,!1);var n=e.childDepartments;n&&n.forEach((function(e){t.$refs.deparmentTree.setChecked(e.id,!1),t.cancelChildCheckedNodes(e)}))},handleCheckChange:function(e,t,n){},handleNodeExpand:function(e,t,n){},handleNodeClick:function(e,t,n){this.selectSingleNode(e,!1)},selectSingleNode:function(e,t){if(this.isDepartmentNode(e)){var n=JSON.parse(e.data);this.packageSelectResult(n),this.setMemoryCacheData(n,"department")}},packageSelectResult:function(e){e.tenantName=this.tenantInfo.tenantName,e.tenantCode=this.tenantInfo.code;var t={id:e.id,name:e.showName,code:e.code,containBranch:this.containBranch,zhName:e.name,enName:e.enName,department:e};this.selectNodeInfo=t},isDepartmentNode:function(e){return e.id!==this.tenantNodeId&&e.nodeType&&"DEPARTMENT"===e.nodeType&&!e.branch},selectDepartment:function(){var e=!1;this.selectNodeInfo?this.$emit("result",this.selectNodeInfo):e=!0,e&&this.$alert(this.$t("imatrixUIMessage.pleaseSelectDepartment"),this.$t("imatrixUIMessage.tips"),{confirmButtonText:this.$t("imatrixUIPublicModel.sure")})},isSelectTenantNode:function(e){return e===this.tenantNodeId&&(!this.departmentInfo||0===this.departmentInfo.length)},renderContent:function(e,t){var n,r=t.node,i=t.data;t.store;return n=-1===r.data.id||r.data.branch?"el-icon-menu":-2===r.data.id||-3===r.data.id?"el-icon-tickets":"el-icon-date",i.nodeType&&"DEPARTMENT"===i.nodeType&&this.searchValue&&i.name.indexOf(this.searchValue)>-1?e("span",[e("i",{class:n}),e("span",{class:"searchResult",attrs:{title:r.label}},[r.label])]):e("span",[e("i",{class:n}),e("span",{attrs:{title:r.label}},[r.label])])},getSelectUser:function(e){this.packageSelectResult(e),this.setMemoryCacheData(e,"department")},resultRowDblclick:function(e){this.packageSelectResult(e),this.$emit("result",this.selectNodeInfo)}})},K=Y,X=(n("d316"),f(K,U,W,!1,null,null,null)),J=X.exports,Z={name:"InlineDepartmentTree",components:{InlineDepartmentMultiTree:H,InlineDepartmentSingleTree:J},props:{multiple:{type:Boolean,default:!0},checkStrictly:{type:Boolean,default:!1},departmentInfo:{type:Array,default:null},height:{type:String,default:"300px"},selectDepartmentInfo:{type:[String,Number],default:null},searchField:{type:String,default:"id"},separator:{type:String,default:","}},data:function(){return{selectNodeInfo:null}},mounted:function(){},methods:{result:function(e){this.selectNodeInfo=e,this.$emit("result",e)},selectDepartment:function(){this.$refs.inlineDeparmentTree.selectDepartment()}}},Q=Z,ee=f(Q,v,b,!1,null,null,null),te=ee.exports,ne={name:"DepartmentTree",components:{InlineDepartmentTree:te},props:{multiple:{type:Boolean,default:!0},checkStrictly:{type:Boolean,default:!1},departmentInfo:{type:Array,default:null},title:{type:String,default:null},width:{type:String,default:"30%"},height:{type:String,default:"300px"},selectDepartmentInfo:{type:[String,Number],default:null},searchField:{type:String,default:"id"},separator:{type:String,default:","}},data:function(){var e=this.$t("imatrixUIMessage.pleaseSelectDepartment");return this.title&&(e=this.title),{myTitle:e}},methods:{result:function(e){this.$emit("close",e)},selectDepartment:function(){this.$refs.inlineDeparmentTree.selectDepartment()}}},re=ne,ie=f(re,m,g,!1,null,null,null),oe=ie.exports;oe.install=function(e){e.component(oe.name,oe)};var ae=oe,se=function(){var e=this,t=e._self._c;return t("div",{staticClass:"00-Color/9-gray"},[e.isActive?t("i",{staticClass:"el-icon-s-fold",on:{click:e.toggleClick}}):t("i",{staticClass:"el-icon-s-unfold",on:{click:e.toggleClick}})])},le=[],ue={name:"Hamburger",props:{isActive:{type:Boolean,default:!1}},methods:{toggleClick:function(){this.$emit("toggleClick")}}},ce=ue,fe=(n("323d"),f(ce,se,le,!1,null,"79c757aa",null)),de=fe.exports;de.install=function(e){e.component(de.name,de)};var he=de,pe=function(){var e=this,t=e._self._c;return t("svg",{class:e.svgClass,attrs:{"aria-hidden":"true"}},[t("use",{attrs:{"xlink:href":e.iconName}})])},me=[],ge={name:"SvgIcon",props:{iconClass:{type:String,required:!0},className:{type:String,default:""}},computed:{iconName:function(){return"#icon-".concat(this.iconClass)},svgClass:function(){return this.className?"svg-icon "+this.className:"svg-icon"}}},ve=ge,be=(n("fb3f"),f(ve,pe,me,!1,null,"de244482",null)),ye=be.exports;ye.install=function(e){e.component(ye.name,ye)};var we=ye,_e=(n("0d6d"),function(){var e=this,t=e._self._c;return t("div",[!e.isFormSubTable&&e.hasLoadedColumns&&e.query&&"embedded"===e.query.showType?t("search-form",{ref:"sf",attrs:{columns:e.columns,code:e.code,url:e.url,pagination:e.pagination,query:e.query,"search-form-info":e.searchFormInfo,"search-param":e.searchFormContent,"init-search-props":e.initSearchProps,"load-complete-query":e.loadCompleteQuery},on:{search:e.doSearch,reset:e.resetSearch,"open-fold":e.openFold}}):e._e(),e.hasLoadedColumns&&e.query&&"popup"===e.query.showType?t("search-form-dialog",{ref:"sfDialog",attrs:{columns:e.columns,code:e.code,url:e.url,pagination:e.pagination,query:e.query,"search-param":e.searchFormContent,"init-search-props":e.initSearchProps},on:{search:e.doSearchDialog,reset:e.resetSearch,close:e.closeSearchFormDialog}}):e._e(),t("div",{class:"grid-area "+e.code},[e.refreshGrid&&e.hasLoadedColumns?t("el-table",{ref:"superGrid",staticClass:"elTable",staticStyle:{width:"100%"},attrs:{data:e.gridData,"row-key":e.getRowKeyProp,"show-summary":e.showSummary,"summary-method":e.getSummaries,stripe:e.stripe,border:!0,"default-expand-all":e.defaultExpandAll,lazy:e.isLazy,load:e.loadChildren,"row-style":e.changeRowStyle,"cell-style":e.changeCellStyle,"header-cell-style":e.changeHeaderStyle,"highlight-current-row":!0,"span-method":e.rowSpan,"max-height":e.maxHeight,height:e.height,"tree-props":e.treeProps},on:{"sort-change":e.handleSortChange,select:e.select,"select-all":e.selectAll,"row-click":e.rowClickEvent,"row-dblclick":e.rowDblclickEvent,"expand-change":e.expandChange,"header-click":e.headerClick,"header-dragend":e.changeHederWidth,"header-contextmenu":e.headerContextmenu,"cell-click":e.selectCell}},[e.myCustomFormatter?e._l(e.visibleColumns,(function(n,r){return t(n._defaultComponentType,{key:n.label+r,ref:n.prop,refInFor:!0,tag:"component",attrs:{column:n,"is-sql":e.isSql,"list-code":e.code,"custom-format":"GroupColumn"===n._defaultComponentType?e.myCustomFormatter:e.myCustomFormatter[n.prop],"new-width":e.newWidth,"drag-column-prop":e.dragColumnProp,"right-click-menu-arr":e.options.rightClickMenuArr,"table-name":e.tableName,"page-code":e.pageCode,"list-name":e.listName,"current-page":e.currentPage,"grid-data":e.isSubTableShowPage?e.subTableData:e.gridData,"page-grid-data":e.isSubTableShowPage?e.pageGridData:e.gridData},on:{"open-page":e.openPageDialog,refresPortData:e.refresPortData,refresPortsData:e.refresPortsData,refresMainTableFields:e.refresMainTableFields,prohibitToEdit:e.prohibitToEdit}})})):e._l(e.visibleColumns,(function(n,r){return t(n._defaultComponentType,{key:n.label+r,ref:n.prop,refInFor:!0,tag:"component",attrs:{"is-sql":e.isSql,column:n,"list-code":e.code,"is-line-edit":null!==e.lineEdit&&e.lineEdit.editable,"new-width":e.newWidth,"drag-column-prop":e.dragColumnProp,"right-click-menu-arr":e.options.rightClickMenuArr,"table-name":e.tableName,"page-code":e.pageCode,"list-name":e.listName,"current-page":e.currentPage,"grid-data":e.isSubTableShowPage?e.subTableData:e.gridData,"page-grid-data":e.isSubTableShowPage?e.pageGridData:e.gridData},on:{"open-page":e.openPageDialog,refresData:e.refresData,refresPortData:e.refresPortData,refresPortsData:e.refresPortsData,refresMainTableFields:e.refresMainTableFields,prohibitToEdit:e.prohibitToEdit}})}))],2):e._e(),t("div",{staticStyle:{position:"relative","margin-top":"5px"}},[t("el-row",["undefined"===typeof e.options.isAdministerListView||null==e.options.isAdministerListView||!0!==e.options.isAdministerListView?t("el-col",{attrs:{span:2}},[e.basicInfo.customConfig&&!e.isFormSubTable?t("i",{staticClass:"el-icon-setting",staticStyle:{float:"left",padding:"10px 0px",color:"#777"},attrs:{title:e.$t("superGrid.columnConfig")},on:{click:e.configColumns}}):e._e(),e.isFormSubTable?e._e():t("i",{staticClass:"el-icon-refresh",staticStyle:{float:"left",padding:"10px 0px",color:"#777"},attrs:{title:e.$t("superGrid.refresh")},on:{click:e.refreshGridData}})]):e._e(),t("el-col",{attrs:{span:"undefined"===typeof e.options.isAdministerListView||null==e.options.isAdministerListView||!0!==e.options.isAdministerListView?22:24}},[e.pagination&&e.isShowPage?t("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":e.pagination.pageSizes,"page-size":e.pagination.pageSize,layout:e.pagination.layout,total:e.pagination.showTotal?e.pagination.total:1e11},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e()],1)],1)],1)],1),e.showColumnConfig?t("columns-config",{attrs:{columns:e.columns,"list-code":e.code,"is-sql":e.isSql},on:{close:function(t){return e.closeCustomConfig(t)},reset:function(t){return e.resetCustomConfig(t)}}}):e._e(),e.showHeaderContextmenu?t("header-context-menu",{ref:"headerMenu",attrs:{"buttom-arr":e.options.rightClickMenuArr,column:e.rightClickColumn},on:{clearHeaderContextmenu:e.clearHeaderContextmenu}}):e._e(),e.isShowPageDialog?t("super-page-dialog",{attrs:{"dev-mode":e.pageDevMode,"jump-page-setting":Object.freeze(e.jumpPageSetting),"source-page-code":e.pageCode},on:{close:e.closePageDialog,"update-value":e.updateValues}}):e._e()],1)}),Ce=[];n("ac4d"),n("8a81"),n("5df3"),n("1c4c"),n("6b54");function xe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Se(e){if(Array.isArray(e))return xe(e)}function ke(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function De(e,t){if(e){if("string"===typeof e)return xe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xe(e,t):void 0}}function Oe(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Te(e){return Se(e)||ke(e)||De(e)||Oe()}n("f751"),n("d263");var Ee=function(){var e=this,t=e._self._c;return t("el-table-column",{attrs:{align:"center",fixed:e.fixed,width:e.column.width?e.column.width:"80"},scopedSlots:e._u([{key:"header",fn:function(){return[t("span",{staticClass:"cell--span"},[e._v(e._s(e.$t("superGrid.index")))])]},proxy:!0},{key:"default",fn:function(n){return[t("span",{staticClass:"cell--span"},[e._v("\n "+e._s(n.$index+1)+"\n ")])]}}])})},Ie=[],Ne={name:"IndexColumn",components:{},props:{column:{type:Object,default:null},isLineEdit:{type:Boolean,default:!1}},computed:{fixed:function(){return(!this.column.fixed||"false"!==this.column.fixed&&""!==this.column.fixed)&&(this.column.fixed&&"right"===this.column.fixed?"left":this.column.fixed)}}},Ae=Ne,Pe=f(Ae,Ee,Ie,!1,null,null,null),Me=Pe.exports,Re=function(){var e=this,t=e._self._c;return t("el-table-column",{attrs:{align:"center",type:"selection",label:e.column.label,fixed:e.fixed,width:e.column.width?e.column.width:"50"}})},Fe=[],Be={name:"SelectionColumn",components:{},props:{column:{type:Object,default:null},isLineEdit:{type:Boolean,default:!1}},computed:{fixed:function(){return void 0!==this.column.fixed&&null!==this.column.fixed&&""!==this.column.fixed&&"false"!==this.column.fixed&&(this.column.fixed&&"right"===this.column.fixed?"left":this.column.fixed)}}},Le=Be,$e=f(Le,Re,Fe,!1,null,null,null),Ve=$e.exports,je=function(){var e=this,t=e._self._c;return t("el-table-column",{attrs:{fixed:e.fixed,sortable:e.sortable,filters:e.filters,"filter-method":e.filterMethod,prop:e.column.prop,width:e.getColumnWidth(),align:e.align,"header-align":e.headerAlign,"class-name":e.column.prop},scopedSlots:e._u([{key:"header",fn:function(){return[t("span",{class:{is_req:e.isFieldRequired()}},[t("span",{staticClass:"cell--span required__label",attrs:{title:e.$escapeHtml(e.label)},domProps:{innerHTML:e._s(e.$escapeHtml(e.label))}})]),e.isShowAdd?t("i",{staticClass:"el-icon-circle-plus-outline",staticStyle:{"font-size":"20px",color:"#409EFF"},on:{click:e.createFormSubTableRow}}):e._e()]},proxy:!0},{key:"default",fn:function(n){return[e.lineEdit.editable&&e.isEditable&&n.row.$editing?t("dynamic-input",{key:e.column.prop+"_"+n.$index,attrs:{type:e.column.componentType,position:{row:n.$index,prop:e.column.prop},"line-edit":e.lineEdit,options:e.column.valueSet,row:n.row,column:e.column,"list-code":e.listCode,"is-sql":e.isSql},on:{findIndex:function(t){return e.findIndex(n.$index)},focus:function(t){return e.onFocus(n.$index)},refresData:e.refresData,refresPortData:e.refresPortData,refresPortsData:e.refresPortsData,refresMainTableFields:e.refresMainTableFields,prohibitToEdit:e.prohibitToEdit},model:{value:n.row[e.column.prop],callback:function(t){e.$set(n.row,e.column.prop,t)},expression:"scope.row[column.prop]"}}):t("span",[e.column.operations?t("span",e._l(e.column.operations,(function(r,i){return t("span",{key:i,staticClass:"cell--span"},[r.isGroup?t("el-dropdown",{key:i,staticStyle:{"padding-left":"10px"},attrs:{"split-button":"",size:r.buttons&&r.buttons.length>0?r.buttons[0].props.size:"small"},on:{command:e.handleCommand},scopedSlots:e._u([{key:"dropdown",fn:function(){return[t("el-dropdown-menu",e._l(r.buttons,(function(r,i){return t("span",{key:r.props.code+i},[t("el-dropdown-item",{directives:[{name:"permission",rawName:"v-permission",value:r.props.permission,expression:"buttonChild.props.permission"}],attrs:{command:e.beforeHandleCommand(r.props.code,n.row,n.$index),disabled:e.preventReclick}},[e._v("\n "+e._s(e.$escapeHtml(r.props.label?r.props.label:"search"===r.props.code?e.$t("superPageMessage.searchButtonLabel"):""))+"\n ")])],1)})),0)]},proxy:!0}],null,!0)},[e._v("\n "+e._s(e.$escapeHtml(r.label))+"\n ")]):t("row-operation",{attrs:{"operation-setting":r.props,label:r.props.label?r.props.label:n.row[e.column.prop],"operation-index":i,entity:n.row,editing:n.row.$editing,column:e.column,"row-index":n.$index,"is-show":r.isShow,"on-click":r.onClick}})],1)})),0):e.customFormatValue(n.row,e.column.prop,e.customFormat,n.$index)?t("span",{staticClass:"cell--span"},[t(e.column.prop+n.$index,{tag:"component",attrs:{row:n.row,entity:n.row,prop:e.column.prop,parent:e.parentFormData,"row-index":n.$index,"show-value":e.$escapeHtml(e.getLabel(n.row,n.$index)),value:e.getCellValue(n.row),"select-options":e.column.valueSet}})],1):void 0!==e.columnFormatter&&void 0!==e.columnFormatter.type&&"customControl"===e.columnFormatter.type&&e.columnFormatter.options&&e.columnFormatter.options.format&&""!==e.columnFormatter.options.format?t("span",{staticClass:"cell--span"},[t(e.columnFormatter.options.format,{key:e.column.prop+"_"+n.$index+"_"+e.currentPage,tag:"component",attrs:{disabled:!0,row:e.pageGridData[n.$index],entity:e.pageGridData[n.$index],prop:e.column.prop,parent:e.parentFormData,"row-index":n.$index,"get-form-data":e.getFormData,"get-grid-data":e.getTableGridData,"show-value":e.$escapeHtml(e.getLabel(e.pageGridData[n.$index],n.$index)),value:e.getCellValue(e.pageGridData[n.$index]),"select-options":e.column.valueSet,"grid-data":e.gridData,"page-grid-data":e.pageGridData,"current-page":e.currentPage},on:{prohibitToEdit:e.prohibitToEdit}})],1):void 0!==e.columnFormatter&&void 0!==e.columnFormatter.type&&"secretInfo"===e.columnFormatter.type?t("span",{staticClass:"cell--span",attrs:{id:e.column.prop+"DomData"+n.$index}},[t("secret-info",{attrs:{entity:n.row,prop:e.column.prop,value:e.getCellValue(n.row),"table-name":e.tableName,"list-code":e.listCode,"page-code":e.pageCode,"list-name":e.listName,"field-label":e.$escapeHtml(e.label)}})],1):e.isObjectProp(e.column.prop)?t("span",["annex"===e.column.componentType?t("span",{attrs:{type:"primary"}},[e.isShowOverflowTooltip?t("span",{staticClass:"ellipsis cell--span",style:{width:e.cellWidth+"px"},attrs:{id:e.column.prop+"DomData"+n.$index,title:e.$escapeHtml(e.getLabel(n.row))}},[e.$escapeHtml(e.getLabel(n.row,n.$index))?t("span",[t("i",{staticClass:"el-icon-zoom-in annex-cell",on:{click:function(t){return e.previewImg(n.row)}}})]):e._e(),e._v("\n "+e._s(e.$escapeHtml(e.getLabel(n.row,n.$index)))+"\n ")]):t("span",{staticClass:"cell--span",attrs:{id:e.column.prop+"DomData"+n.$index}},[e.$escapeHtml(e.getLabel(n.row,n.$index))?t("span",[t("i",{staticClass:"el-icon-zoom-in annex-cell",on:{click:function(t){return e.previewImg(n.row)}}})]):e._e(),e._v("\n "+e._s(e.$escapeHtml(e.getLabel(n.row,n.$index)))+"\n ")])]):e.column.formatter&&"files"===e.column.formatter.type?t("span",{attrs:{type:"primary"}},[e.isShowOverflowTooltip?t("span",{staticClass:"ellipsis cell--span",style:{width:e.cellWidth+"px"},attrs:{id:e.column.prop+"DomData"+n.$index,title:e.$escapeHtml(e.getLabel(n.row))}},[e.$escapeHtml(e.getLabel(n.row,n.$index))?t("span",[t("i",{staticClass:"el-icon-zoom-in annex-cell",on:{click:function(t){return e.previewImg(n.row)}}})]):e._e(),e._v("\n "+e._s(e.$escapeHtml(e.getLabel(n.row,n.$index)))+"\n\n ")]):t("span",{staticClass:"cell--span",attrs:{id:e.column.prop+"DomData"+n.$index}},[e.$escapeHtml(e.getLabel(n.row,n.$index))?t("span",[t("i",{staticClass:"el-icon-zoom-in annex-cell",on:{click:function(t){return e.previewImg(n.row)}}})]):e._e(),e._v("\n "+e._s(e.$escapeHtml(e.getLabel(n.row,n.$index)))+"\n ")])]):void 0!==e.columnFormatter&&void 0!==e.columnFormatter.type&&"hyperlinks"===e.columnFormatter.type&&!0===e.getMyHyperLinkSetting(n.row).visible?t("el-link",{attrs:{type:"primary"},on:{click:function(t){return e.clickHyperLink(e.column,n.row,e.listCode,n.$index)}}},[e.isShowOverflowTooltip?t("span",{staticClass:"ellipsis cell--span",style:{width:e.cellWidth+"px"},attrs:{id:e.column.prop+"DomData"+n.$index,title:e.getMyHyperLinkSetting(n.row).title}},[e._v(e._s(e.getMyHyperLinkSetting(n.row).label)),e.getMyHyperLinkSetting(n.row).icon?t("i",{class:e.getMyHyperLinkSetting(n.row).icon}):e._e()]):t("span",{staticClass:"cell--span",attrs:{id:e.column.prop+"DomData"+n.$index}},[e._v(e._s(e.getMyHyperLinkSetting(n.row).label)),e.getMyHyperLinkSetting(n.row).icon?t("i",{class:e.getMyHyperLinkSetting(n.row).icon}):e._e()])]):e.isShowOverflowTooltip?t("span",{staticClass:"ellipsis cell--span",style:{width:e.cellWidth+"px"},attrs:{id:e.column.prop+"DomData"+n.$index,title:e.$escapeHtml(e.getLabel(n.row))}},[e._v(e._s(e.$escapeHtml(e.getLabel(n.row,n.$index))))]):t("span",{staticClass:"cell--span",attrs:{id:e.column.prop+"DomData"+n.$index}},[e._v(e._s(e.$escapeHtml(e.getLabel(n.row,n.$index))))])],1):t("span",["annex"===e.column.componentType||"multipartUpload"===e.column.componentType?t("span",{attrs:{type:"primary"}},[e.isShowOverflowTooltip?t("span",{staticClass:"ellipsis cell--span",style:{width:e.cellWidth+"px"},attrs:{id:e.column.prop+"DomData"+n.$index,title:e.$escapeHtml(e.getLabel(n.row))}},[t("FsPreview",{attrs:{label:e.$escapeHtml(e.getLabel(n.row,n.$index)),entity:n.row,"file-set-obj":JSON.parse(e.column.fileSet),"is-sql":e.isSql}})],1):t("span",{staticClass:"cell--span",attrs:{id:e.column.prop+"DomData"+n.$index}},[t("FsPreview",{attrs:{label:e.$escapeHtml(e.getLabel(n.row,n.$index)),entity:n.row,"file-set-obj":JSON.parse(e.column.fileSet),"is-sql":e.isSql}})],1)]):e.column.formatter&&"files"===e.column.formatter.type?t("span",[e.isShowOverflowTooltip?t("span",{staticClass:"ellipsis cell--span",style:{width:e.cellWidth+"px"},attrs:{id:e.column.prop+"DomData"+n.$index,title:e.$escapeHtml(e.getLabel(n.row))}},[e.$escapeHtml(e.getLabel(n.row,n.$index))?t("span",[t("i",{staticClass:"el-icon-zoom-in annex-cell",on:{click:function(t){return e.previewImg(n.row)}}})]):e._e(),e._v("\n "+e._s(e.$escapeHtml(e.getLabel(n.row,n.$index)))+"\n ")]):t("span",{staticClass:"cell--span",attrs:{id:e.column.prop+"DomData"+n.$index}},[e.$escapeHtml(e.getLabel(n.row,n.$index))?t("span",[t("i",{staticClass:"el-icon-zoom-in annex-cell",on:{click:function(t){return e.previewImg(n.row)}}})]):e._e(),e._v("\n "+e._s(e.$escapeHtml(e.getLabel(n.row,n.$index)))+"\n ")])]):void 0!==e.columnFormatter&&void 0!==e.columnFormatter.type&&"hyperlinks"===e.columnFormatter.type&&!0===e.getMyHyperLinkSetting(n.row).visible?t("el-link",{attrs:{type:"primary"},on:{click:function(t){return e.clickHyperLink(e.column,n.row,e.listCode,n.$index)}}},[e.isShowOverflowTooltip?t("span",{staticClass:"ellipsis cell--span",style:{width:e.cellWidth+"px"},attrs:{id:e.column.prop+"DomData"+n.$index,title:e.$escapeHtml(e.getMyHyperLinkSetting(n.row).title)}},[e._v(e._s(e.$escapeHtml(e.getMyHyperLinkSetting(n.row).label))),e.getMyHyperLinkSetting(n.row).icon?t("i",{class:e.getMyHyperLinkSetting(n.row).icon}):e._e()]):t("span",{staticClass:"cell--span",attrs:{id:e.column.prop+"DomData"+n.$index}},[e._v(e._s(e.$escapeHtml(e.getMyHyperLinkSetting(n.row).label))),e.getMyHyperLinkSetting(n.row).icon?t("i",{class:e.getMyHyperLinkSetting(n.row).icon}):e._e()])]):e.column.formatter&&"richEditor"===e.column.formatter.type?t("span",[t("el-tooltip",{staticClass:"item",attrs:{content:e.$t("superGrid.show"),effect:"dark",placement:"top"}},[t("em",{staticClass:"fa fa-info-circle annex-cell",on:{click:function(t){e.showRichEditorContent(n.row,e.column,e.getHeader())}}})])],1):e.isShowOverflowTooltip?t("span",{staticClass:"ellipsis cell--span",staticStyle:{"white-space":"pre"},style:{width:e.cellWidth+"px"},attrs:{id:e.column.prop+"DomData"+n.$index,title:e.getLabel(n.row)},domProps:{innerHTML:e._s(e.$escapeHtml(e.getLabel(n.row,n.$index)))}}):t("span",{staticClass:"cell--span",attrs:{id:e.column.prop+"DomData"+n.$index}},[e._v(e._s(e.$escapeHtml(e.getLabel(n.row,n.$index))))])],1)])]}}])},[e.showSingleImgFlag?t("view-image-dialog",{attrs:{"file-list":e.fileList},on:{close:function(t){e.showSingleImgFlag=!1}}}):e._e(),e.showRichEditorViewer?t("rich-editor-viewer",{ref:"richEditorViewerRef",on:{closeRichEditorContent:e.closeRichEditorContent}}):e._e()],1)},ze=[],He=n("5f87"),Ue=n("c559"),We=(n("f400"),new Map),qe=We;function Ge(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Ye(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Ye(e,t){if(e){if("string"===typeof e)return Ke(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ke(e,t):void 0}}function Ke(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Xe(e,t){var n,r=[],i=Ge(e);try{for(i.s();!(n=i.n()).done;){var o=n.value;r.push(o[t])}}catch(a){i.e(a)}finally{i.f()}return r}function Je(e,t,n){for(var r=[],i=0,o=0;o<e.length;o++)if(0===o)r.push(1),i=0;else if(n&&""!==n){for(var a="",s="",l=n.split(","),u=0;u<l.length;u++)a+=e[o][l[u]],s+=e[o-1][l[u]];a===s?(r[i]+=1,r.push(0)):(r.push(1),i=o)}else e[o][t]===e[o-1][t]?(r[i]+=1,r.push(0)):(r.push(1),i=o);return r}function Ze(e){e||(e=qe.get("_list_code"));var t,n=Ge(qe.get(e).columns);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.editable)return r.prop}}catch(i){n.e(i)}finally{n.f()}return null}var Qe={getIndex:function(e){var t,n=0,r=Ge(qe.columns);try{for(r.s();!(t=r.n()).done;){var i=t.value;if(i.prop===e)return n;n++}}catch(o){r.e(o)}finally{r.f()}},getLeftColumn:function(e){var t=Qe.getIndex(e),n=0;for(n=t-1;n>=0;n--)return qe.columns[n].editable?qe.columns[n].prop:null}};function et(e,t){t||(t=qe.get("_list_code"));var n=qe.get(t);e<n.gridData.length&&(n.isMulitiSelect?(n.superGrid.clearSelection(),n.superGrid.toggleRowSelection(n.gridData[e],!0)):n.superGrid.setCurrentRow(n.gridData[e]))}function tt(e,t){if(!e&&!t)return!0;if(e&&t){var n=nt(e),r=nt(t),i=n;i=n.length>r.length?n:r;for(var o=0;o<i.length;o++){var a=i[o];if("$editing"!==a){var s=e[a],l=t[a];if(s!==l)return!1}}return!0}return!1}function nt(e){var t=[];for(var n in e)t.push(n);return t}function rt(e){e||(e=qe.get("_list_code"));var t=qe.get(e);return(void 0===t.isEditRow||!0!==t.isEditRow)&&("undefined"===typeof t.$rowIndex||null===t.$rowIndex||("undefined"===typeof t.$lastSaveRowIndex||null===t.$lastSaveRowIndex||t.$rowIndex===t.$lastSaveRowIndex))}function it(e){e||(e=qe.get("_list_code"));var t=qe.get(e);if(void 0!==t.isEditRow&&!0===t.isEditRow)return!1;var n=rt();return!!n&&("undefined"===typeof t.isCreateRow||!0!==t.isCreateRow)}function ot(e){return e&&e.id?e.id:e&&e.ID?e.ID:void 0}function at(e,t,n){t||(t=qe.get("_list_code"));var r=!1,i=qe.get(t),o=ut("disableEditProps",t)?i.options.lineEditOptions.disableEditProps:null;if(o){var a=o.split(",");a&&a.indexOf(e)>=0&&(r=!0)}var s=ot(n);if(!1===r&&i.options){var l=i.options.validateRules;if(l){var u=l.filter((function(t){return t.name&&(t.name===e||"all_fields"===t.name)})),c=!0;if(u&&u.length>0){for(var f=0;f<u.length;f++)c=void 0===u[f].rowIndexes||null===u[f].rowIndexes?u[f].canEdit:!(u[f].rowIndexes.indexOf(s)>=0)||u[f].canEdit;!1===c&&(r=!0)}}if(!1===r){var d=i.options.actionPermission,h=lt(d,s);!1===h&&(r=!0)}}return r}function st(e,t){t||(t=qe.get("_list_code"));var n=!1,r=qe.get(t);if(r&&r.options){var i=r.options.validateRules;if(i){var o=i.filter((function(t){return t.name&&(t.name===e||"all_fields"===t.name)&&void 0!==t.canEdit&&!0===t.canEdit}));o&&o.length>0&&(n=!0)}}return n}function lt(e,t){var n=!0,r=e;return r&&void 0!==r.canUpdate&&!1===r.canUpdate&&void 0!==t&&r.updateRowIndexes&&r.updateRowIndexes.indexOf(t)>=0&&(n=!1),n}function ut(e,t){t||(t=qe.get("_list_code"));var n=qe.get(t);return!(!n.options.lineEditOptions||!n.options.lineEditOptions[e])}function ct(e,t){t||(t=qe.get("_list_code"));var n=qe.get(t);return!(!n.options.lineEditOptions||"function"!==typeof n.options.lineEditOptions[e])}function ft(e,t){t||(t=qe.get("_list_code"));var n=qe.get(t);return!(!n.options||"function"!==typeof n.options[e])}function dt(){var e={columns:[],gridData:[],orgGridData:[],canSaveRow:!0,showValidateError:!0,defaultLineEditOptions:{aftersaveIsCreateRow:!0,autoSave:!0,isSaveByEnter:!0,isRestoreByEsc:!0,aftersaveIsCancelEditState:!0,afterRestoreIsCancelEditState:!0,input:function(){}},options:{lineEditOptions:{}}};return k.a.observable(e)}function ht(e,t,n){var r=t.split(".");if(1!==r.length){for(var i=e,o=0;o<r.length-1;o++)void 0===i[r[o]]&&(i[r[o]]={}),i=i[r[o]];i[r[r.length-1]]=void 0!==n?n:null}else e[t]=void 0!==n?n:null}function pt(e,t,n){var r=t.split(".");if(1!==r.length){for(var i=e,o=0;o<r.length-1;o++)void 0===i[r[o]]&&(i[r[o]]={}),i=i[r[o]];i[r[r.length-1]]=void 0!==n?n:[new Date,new Date]}else e[t]=void 0!==n?n:[new Date,new Date]}function mt(e,t,n){var r=120,i=document.querySelector(".box-card");i&&null!==i&&(r=91),!0===Object(Ue["e"])()&&(r+=50);var o=document.querySelector(".el-tabs__content ."+t);o&&(r+=80),void 0===n||null===n||""===n?n=window.innerHeight:r=0;var a=n-e.$el.offsetTop-r;return a}function gt(e,t){var n={searchParam:e};if(n.withDataPermission=t.options.isWithDataPermission,n.isWorkflowEntity=t.options.isWorkflowEntity,t.options.extraParam)for(var r in t.options.extraParam)n[r]=t.options.extraParam[r];return n}function vt(e,t){var n="",r="";return e&&(e.showNameData&&(t?e.showNameData.dbName&&(n=e.showNameData.dbName):e.showNameData.name&&(n=e.showNameData.name)),e.serverNameData&&(t?e.serverNameData.dbName&&(r=e.serverNameData.dbName):e.serverNameData.name&&(r=e.serverNameData.name))),{showName:n,serverPath:r}}function bt(e,t,n,r){var i=[];if(n){if(n&&n.length>0)for(var o=0;o<n.length;o++){var a=n[o],s=yt(a[t.showName],a[t.serverPath]);i.push(s)}}else if(r){var l=r.showName,u=r.serverPath;if(l&&u)for(var c=l.split(","),f=u.split(","),d=0;d<c.length;d++){var h=yt(c[d],f[d]);i.push(h)}}return i}function yt(e,t){e&&(e=e.replace("#","~~").replace("?","~$").replace("&","$"));var n={};n.showName=e,n.serverPath=t,n.showName&&/\.(jpg|JPG|jpeg|JPEG|png|PNG|gif|GIF|bmp|BMP|psd|PSD|tif|TIF)$/.test(e)&&(n.isImg=!0);var r=Object(He["c"])(),i=k.a.prototype.baseURL+"/common/super-form/downloads?jwt="+r;Object(Ue["c"])(k.a.prototype.systemCode)&&(i=k.a.prototype.baseAPI+"/component/super-form/downloads?jwt="+r);var o=i+"&showName="+encodeURI(n.showName)+"&serverPath="+n.serverPath;return n.src=o,n}function wt(e,t,n){var r=[];if(t.fileSet&&""!==t.fileSet&&("annex"===t.componentType||"multipartUpload"===t.componentType)){var i=JSON.parse(t.fileSet),o=vt(i,n);if(i&&i.multiple)if(i.childAnnexDataTableCode){var a=e[t.prop];r=bt(i,o,a,null)}else{var s={showName:Object(x["c"])(e,o.showName),serverPath:Object(x["c"])(e,o.serverPath)};r=bt(i,o,null,s)}else{var l=Object(x["c"])(e,o.showName),u=Object(x["c"])(e,o.serverPath);r.push(yt(l,u))}}return r}function _t(e,t,n){var r;n&&(n&&"object"===Object(C["a"])(n)?r=JSON.stringify(n):n&&""!==n&&(r=n));var i={isSql:t,additionalParameter:r};if(e.valueSetOptions){var o=JSON.parse(e.valueSetOptions);o&&o.valueSetOptions&&(i.valueSetOptions=o.valueSetOptions),o.dynamicDataSourceCode&&""!==o.dynamicDataSourceCode&&(i.dynamicDataSourceCode=o.dynamicDataSourceCode)}return i}function Ct(e){return!!(e.valueSet&&e.valueSet.length>0&&"dynamicDataSource"===e.valueSet[0].value)}function xt(e,t){return void 0===e||null===e||0===e||void 0===t||null===t||0===t?1:Math.ceil(e/t)}function St(e){var t=document.querySelector("."+e+" .el-table--scrollable-y .el-table__body-wrapper");t&&null!==t&&(t.scrollTop=t.scrollHeight)}function kt(e){var t=null;return e.additionalParamMap&&"object"===Object(C["a"])(e.additionalParamMap)?t=e.additionalParamMap:e.additionalParamMap&&""!==e.additionalParamMap&&(t=JSON.parse(e.additionalParamMap)),t}var Dt=function(){var e=this,t=e._self._c;return e.type&&e.type.indexOf("custom:")>=0&&""!=e.componentName?t("div",{style:e.row.validateErrorField&&e.row.validateErrorField===e.column.prop?"border:1px solid red":""},[t(e.componentName,{ref:"customItem",tag:"component",attrs:{value:e.innerValue,row:e.row,entity:e.row,disabled:e.disabled,prop:e.column.prop,parent:e.parentFormData,"row-index":e.position?e.position.row:null,"select-options":e.options,"grid-data":e.gridData,"page-grid-data":e.pageGridData},on:{input:function(t){return e.cellEvent("input",t)}}})],1):t("div",{style:e.row.validateErrorField&&e.row.validateErrorField===e.column.prop?"border:1px solid red":""},["year"===e.type||"month"===e.type?t("el-date-picker",{ref:"item",staticStyle:{width:"100%"},attrs:{disabled:e.disabled,type:e.type,editable:!1,"value-format":e.isValueFormat(),format:e.isFormat(),placeholder:e.$t("imatrixUIMessage.selectTime")},on:{input:function(t){return e.cellEvent("input",t)},focus:function(t){return e.cellEvent("focus",t)},blur:function(t){return e.cellEvent("blur",t)},change:function(t){return e.cellEvent("change",t)}},model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}}):e._e(),"yearRange"===e.type?t("el-date-picker",{ref:"item",staticStyle:{width:"100%"},attrs:{disabled:e.disabled,editable:!1,placeholder:e.$t("imatrixUIMessage.selectYear"),type:"year","value-format":"yyyy"},on:{input:function(t){return e.cellEvent("input",t)},focus:function(t){return e.cellEvent("focus",t)},blur:function(t){return e.cellEvent("blur",t)},change:function(t){return e.cellEvent("change",t)}},model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}}):"dateTimePicker"===e.type?t("el-date-picker",{ref:"item",staticStyle:{width:"100%"},attrs:{value:e.innerValue,disabled:e.disabled,editable:!1,placeholder:e.$t("imatrixUIMessage.selectTime"),type:"datetime","value-format":e.isValueFormat(),format:e.isFormat()},on:{input:function(t){return e.cellEvent("input",t)},focus:function(t){return e.cellEvent("focus",t)},blur:function(t){return e.cellEvent("blur",t)},change:function(t){return e.cellEvent("change",t)}}}):"date"===e.type||"DATE"===e.column.dataType?t("el-date-picker",{ref:"item",staticStyle:{width:"100%"},attrs:{value:e.innerValue,type:"date",disabled:e.disabled,editable:!1,placeholder:e.$t("imatrixUIMessage.selectionDate"),"value-format":e.isValueFormat(),format:e.isFormat()},on:{input:function(t){return e.cellEvent("input",t)},focus:function(t){return e.cellEvent("focus",t)},blur:function(t){return e.cellEvent("blur",t)},change:function(t){return e.cellEvent("change",t)}}}):"time"===e.type||"TIME"===e.column.dataType?t("el-date-picker",{ref:"item",staticStyle:{width:"100%"},attrs:{value:e.innerValue,disabled:e.disabled,type:"datetime",editable:!1,placeholder:e.$t("imatrixUIMessage.selectTime"),"value-format":e.isValueFormat(),format:e.isFormat()},on:{input:function(t){return e.cellEvent("input",t)},focus:function(t){return e.cellEvent("focus",t)},blur:function(t){return e.cellEvent("blur",t)},change:function(t){return e.cellEvent("change",t)}}}):"timePicker"===e.type?t("el-time-picker",{ref:"item",staticStyle:{width:"100%"},attrs:{disabled:e.disabled,"value-format":e.isValueFormat(),format:e.isFormat(),placeholder:e.$t("imatrixUIMessage.pleaseEnterATimePoint")},on:{input:function(t){return e.cellEvent("input",t)},focus:function(t){return e.cellEvent("focus",t)},blur:function(t){return e.cellEvent("blur",t)},change:function(t){return e.cellEvent("change",t)}},model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}}):"input"!==e.type||"INTEGER"!==e.column.dataType&&"LONG"!==e.column.dataType?"input"===e.type?t("el-input",{ref:"item",attrs:{disabled:e.disabled,clearable:"",placeholder:e.$t("imatrixUIMessage.pleaseEnterContent")},on:{input:function(t){return e.cellEvent("input",t)},focus:function(t){return e.cellEvent("focus",t)},blur:function(t){return e.cellEvent("blur",t)},change:function(t){return e.cellEvent("change",t)},clear:function(t){return e.cellEvent("clear",t)}},model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}}):"textarea"===e.type?t("el-input",{ref:"item",attrs:{disabled:e.disabled,type:"textarea",rows:1,clearable:"",placeholder:e.$t("imatrixUIMessage.pleaseEnterContent")},on:{input:function(t){return e.cellEvent("input",t)},focus:function(t){return e.cellEvent("focus",t)},blur:function(t){return e.cellEvent("blur",t)},change:function(t){return e.cellEvent("change",t)},clear:function(t){return e.cellEvent("clear",t)}},model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}}):"annex"===e.type?t("fs-upload-list",{attrs:{disabled:e.disabled,"file-info":e.fileInfo,"file-list":e.fileList,"file-set-obj":e.fileSetObj,value:e.innerValue,row:e.row,"is-sql":e.isSql,"custom-view-url":!0},on:{delete:e.deleteFile,"delete-success":e.deleteSuccess,"upload-success":e.uploadOnSuccess}}):"multipartUpload"===e.type?t("multipart-upload",{attrs:{disabled:e.disabled,entity:e.row,"file-info":e.fileInfo,"file-list":e.fileList,"file-set-obj":e.fileSetObj,value:e.innerValue,type:"list"},on:{delete:e.deleteFile,"delete-success":e.deleteSuccess,"upload-success":e.uploadOnSuccess}}):"select"!==e.type||e.isDynamicDataSourceSource()?"multiselect"!==e.type||e.isDynamicDataSourceSource()?"multiselect"!==e.type&&"select"!==e.type||!e.isDynamicDataSourceSource()?"inputNumber"===e.type?t("el-input-number",{ref:"item",attrs:{disabled:e.disabled,"controls-position":e.inputNumberSet.position,max:0==e.inputNumberSet.max?0:e.inputNumberSet.max?e.inputNumberSet.max:1/0,min:0==e.inputNumberSet.min?0:e.inputNumberSet.min?e.inputNumberSet.min:-1/0,precision:e.inputNumberSet.precision,step:e.inputNumberSet.step?e.inputNumberSet.step:1},on:{input:function(t){return e.cellEvent("input",t)},change:function(t){return e.cellEvent("change",t)},focus:function(t){return e.cellEvent("focus",t)},blur:function(t){return e.cellEvent("blur",t)}},model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}}):"switch"!==e.type&&"BOOLEAN"!==e.column.dataType||"mysql"!==e.dataSourceType?"switch"===e.type||"BOOLEAN"===e.column.dataType?t("el-switch",{ref:"item",attrs:{value:e.innerValue,disabled:e.disabled,"active-value":1,"inactive-value":0,"active-color":"#13ce66","inactive-color":"#ff4949"},on:{input:function(t){return e.cellEvent("input",t,!0)},change:function(t){return e.cellEvent("change",t)}}}):"slider"===e.type?t("el-slider",{ref:"item",attrs:{value:e.innerValue,disabled:e.disabled},on:{input:function(t){return e.cellEvent("input",t,!0)},change:function(t){return e.cellEvent("change",t)}}}):"rate"===e.type?t("el-rate",{ref:"item",attrs:{value:e.innerValue,disabled:e.disabled},on:{input:function(t){return e.cellEvent("input",t,!0)},change:function(t){return e.cellEvent("change",t)}}}):e.deptManTree||e.deptTree||e.wgManTree||e.wgTree?t("organization-input",{attrs:{fields:e.fields,models:e.row,"check-strictly":e.isCheckStrictly,multiple:e.isMultiTree,"tree-type":e.deptManTree?"DeptUserTree":e.deptTree?"DeptTree":e.wgManTree?"WgUserTree":e.wgTree?"WgTree":null,disabled:e.disabled,"table-name":e.tableName,"department-info":e.departmentInfo,"is-join-table":e.isJoinTable},on:{focus:e.showOrganizationTree,setValue:e.organizationInputEvent,clear:e.clearOrganizationInputEvent,append:e.appendOrganizationInputEvent,replace:e.replaceOrganizationInputEvent},model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}}):e._e():t("el-switch",{ref:"item",attrs:{value:e.innerValue,disabled:e.disabled,"active-color":"#13ce66","inactive-color":"#ff4949"},on:{input:function(t){return e.cellEvent("input",t,!0)},change:function(t){return e.cellEvent("change",t)}}}):t("dynamic-source-select",{attrs:{"base-props":{multiple:"multiselect"===e.type,disabled:e.disabled},column:e.column,entity:e.row,options:{dynamicDataSourceCode:e.dynamicDataSourceCode,valueSetOptions:e.valueSetOptions,isSql:e.isSql,additionalParameter:e.additionalParamMap?JSON.stringify(e.additionalParamMap):null},"table-name":e.tableName,"list-code":e.listCode,"is-join-table":e.isJoinTable,parent:e.parentFormData},on:{input:function(t){return e.cellEvent("input",t)},change:e.multiselectChange,"visible-change":function(t){return e.cellEvent("visible-change",t)},focus:function(t){return e.cellEvent("focus",t)},"remove-tag":function(t){return e.cellEvent("remove-tag",t)},blur:function(t){return e.cellEvent("blur",t)},clear:function(t){return e.cellEvent("clear",t)},"set-value":e.setDynamicSourceSelectValue},model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}}):t("el-select",{ref:"item",attrs:{clearable:"",disabled:e.disabled,multiple:"","collapse-tags":"",placeholder:e.$t("imatrixUIMessage.pleaseSelect")},on:{input:function(t){return e.cellEvent("input",t)},change:e.multiselectChange,"visible-change":function(t){return e.cellEvent("visible-change",t)},focus:function(t){return e.cellEvent("focus",t)},"remove-tag":function(t){return e.cellEvent("remove-tag",t)},blur:function(t){return e.cellEvent("blur",t)},clear:function(t){return e.cellEvent("clear",t)}},model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}},[t("el-option",{attrs:{label:e.$t("superGrid.selectAll"),value:"saveAll"}}),e._l(e.options,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],2):t("el-select",{ref:"item",attrs:{clearable:"",disabled:e.disabled,placeholder:e.$t("imatrixUIMessage.pleaseSelect")},on:{input:function(t){return e.cellEvent("input",t)},change:function(t){return e.cellEvent("change",t)},focus:function(t){return e.cellEvent("focus",t)},"visible-change":function(t){return e.cellEvent("visible-change",t)},blur:function(t){return e.cellEvent("blur",t)},clear:function(t){return e.cellEvent("clear",t)}},model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}},e._l(e.options,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1):t("el-input",{ref:"item",attrs:{disabled:e.disabled,clearable:"",placeholder:e.$t("imatrixUIMessage.pleaseEnterContent")},on:{input:function(t){return e.cellEvent("input",t)},focus:function(t){return e.cellEvent("focus",t)},blur:function(t){return e.cellEvent("blur",t)},change:function(t){return e.cellEvent("change",t)},clear:function(t){return e.cellEvent("clear",t)}},model:{value:e.innerValue,callback:function(t){e.innerValue=e._n(t)},expression:"innerValue"}}),t("el-dialog",{attrs:{title:e.$t("imatrixUIMessage.tips"),visible:e.annexUploadFlag,"append-to-body":!0,"show-close":!0,width:"30%"},on:{"update:visible":function(t){e.annexUploadFlag=t}}},["annex"===e.type&&e.annexUploadFlag?t("el-upload",{attrs:{action:e.defaultAction,accept:e.fileSetObj&&e.fileSetObj.accept?e.fileSetObj.accept:null,"on-success":e.uploadOnSuccess,headers:e.headers,"before-upload":e.handleBeforeUpload,name:"file","with-credentials":!0}},[t("el-button",[e._v(e._s(e.$t("imatrixUIMessage.upload")))])],1):e._e()],1),e.showSingleImgFlag?t("view-image-dialog",{attrs:{downloadable:!e.disabled,deleteable:!e.disabled,"file-list":e.fileList},on:{close:function(t){e.showSingleImgFlag=!1},delete:e.deleteFile}}):e._e()],1)},Ot=[],Tt=function(){var e=this,t=e._self._c;return t("span",{staticClass:"select-top-span"},[e.isLoaded?t("el-select",e._b({ref:"dynamicDataSourceRef",staticStyle:{width:"100%",height:"100%"},attrs:{value:e.value,remote:e.remote,"remote-method":e.remoteMethod,"value-key":e.valueAttribute,loading:e.loading,"reserve-keyword":!0,filterable:"",clearable:""},on:{input:e.inputValue,change:e.change,"visible-change":e.visibleChange,"remove-tag":function(t){return e.removeTag(e.remote,t)},clear:e.clear,blur:function(t){return e.blurEvent(t)},focus:e.focus}},"el-select",e.myProps,!1),e._l(e.optionItems,(function(n){return t("el-option",{key:n.value,attrs:{label:n._label_,value:n[e.valueAttribute]}})})),1):e._e()],1)},Et=[],It=(n("6762"),n("2fdb"),n("4f7f"),{findDynamicDataSourceByCode:function(e,t,n,r,i){var o,a,s,l,u,c,f=this;n&&(o=n.searchText,void 0!==o&&null!==o||(o=""),a=n.watchAttrValue,void 0!==a&&null!==a||(a=""),s=n.parent,l=n._listCode,u=n._formCode,c=n._tableName);var d={searchText:o,watchAttrValue:a,parent:s};return r&&""!==r&&(d.additionalParamMap=JSON.parse(r)),void 0===d.additionalParamMap&&(d.additionalParamMap={}),l&&(d.additionalParamMap._listCode=l),u&&(d.additionalParamMap._formCode=u),c&&(d.additionalParamMap._tableName=c),t&&null!==t&&(d.entity=t),i||(i=k.a.prototype.baseURL),new Promise((function(t,n){void 0!==k.a.prototype.systemCode&&"iMatrix"===k.a.prototype.systemCode?t():f.$http.post(i+"/common/dynamic-data-source/"+e,d).then((function(r){r.backendUrl?f.$http.post(r.backendUrl+"/common/dynamic-data-source/"+e,d).then((function(e){t(e)})).catch((function(e){n(e)})):t(r)})).catch((function(e){n(e)}))}))}}),Nt=It,At={change:function(e){this.$emit("change",e)},visibleChange:function(e){this.$emit("visible-change",e)},removeTag:function(e,t){this.$emit("remove-tag",t),Array.isArray(this.value)&&1===this.value.length&&e&&(this.clearMarkValue(),this.remoteQuery("",null))},clear:function(){this.clearMarkValue(),this.$emit("clear")},blur:function(e){this.$emit("blur",e)},focus:function(e){this.$emit("focus",e)},input:function(e){this.$emit("input",e)}},Pt=At;function Mt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mt(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ft={name:"DynamicSourceSelect",components:{},model:{prop:"value",event:"input"},props:{column:{type:Object,default:null},value:{type:[String,Boolean,Number,Array],default:null},baseProps:{type:Object,default:null},entity:{type:Object,default:null},options:{type:Object,default:null},tableName:{type:String,default:null},isJoinTable:{type:Boolean,default:!1},parent:{type:Object,default:null},listCode:{type:String,default:null},formCode:{type:String,default:null}},data:function(){var e,t=Object.assign({},this.baseProps);this.entity&&(e=JSON.stringify(this.entity));var n=[];return void 0!==this.baseProps.multiple&&!0===this.baseProps.multiple&&void 0!==this.value&&null!==this.value&&this.value&&Array.isArray(this.value)&&(n=JSON.parse(JSON.stringify(this.value))),{markValue:e,optionItems:[],myProps:t,valueSetOptions:[],dynamicDataSourceCode:"",loading:!1,valueAttribute:null,remote:!1,additionalParameterStr:this.options.additionalParameter,isLoaded:!1,watchAttr:null,backendUrl:null,lastValues:n}},watch:{baseProps:{deep:!0,handler:function(e){this.myProps=Object.assign({},e)}}},created:function(){var e=this;if(this.options&&this.options.dynamicDataSourceCode){this.dynamicDataSourceCode=this.options.dynamicDataSourceCode.trim();var t={_listCode:this.listCode,_formCode:this.formCode,_tableName:this.tableName};this.parent&&(t.parent=this.parent),this.packageDynamicDataSourceInfo(this.dynamicDataSourceCode,t).then((function(t){if(t.backendUrl&&(e.backendUrl=t.backendUrl),void 0!==t.fuzzyQuery&&!0===t.fuzzyQuery&&(e.remote=!0),e.options&&e.options.valueSetOptions&&(e.valueSetOptions=e.options.valueSetOptions),e.options&&void 0!==e.options.isSql&&null!==e.options.isSql&&(e.isSql=e.options.isSql),e.watchAttr){var n,r=e.watchAttr.split(",");r.forEach((function(t){e.entity&&(n=e.entity[t]),e.$watch("entity."+t,(function(e,t){var n=this;this.watchAttrValueChange(e);var r=this.optionItems.filter((function(t){return t[n.valueAttribute]===e}));r||this.inputValue("")}))})),e.watchAttrValueChange(n)}e.isLoaded=!0,void 0!==e.baseProps.multiple&&!0===e.baseProps.multiple&&e.$nextTick((function(){e.$refs["dynamicDataSourceRef"].setSelected()}))})).catch((function(t){console.log(t),e.isLoaded=!0}))}else this.isLoaded=!0},methods:Rt(Rt(Rt({},Nt),Pt),{},{blurEvent:function(e){var t=this;void 0!==this.baseProps.multiple&&!1===this.baseProps.multiple&&this.$nextTick((function(){t.$refs["dynamicDataSourceRef"].setSelected()})),this.$emit("blur",e)},inputValue:function(e){this.$emit("input",e),null!==e&&void 0!==e&&""!==e||this.remoteQueryMethod(e),this.setValues(e)},packageDynamicDataSourceInfo:function(e,t){var n=this;return new Promise((function(r,i){n.findDynamicDataSourceByCode(e,n.entity,t,n.additionalParameterStr,n.backendUrl).then((function(e){if(e){if(e.options){if(n.optionItems=e.options,n.column){n.column.prop!==e.valueAttribute&&n.$set(n.column,"_dynamic-source-data-"+n.column.prop,{valueSetOptions:n.options.valueSetOptions,optionItems:n.optionItems,valueAttribute:e.valueAttribute});for(var t=0;t<n.options.valueSetOptions.length;t++){var i=n.options.valueSetOptions[t];if(e.valueAttribute===i.columnName){if(n.markValue){var o=JSON.parse(n.markValue);if(o&&o[i.valueColumn.dbColumnName]){var a=o[i.valueColumn.dbColumnName].split(",");"select"===n.column.componentType&&(a=a[0]),n.$emit("set-value",{value:a,targetColumnName:n.column.prop,options:n.optionItems,valueAttribute:n.valueAttribute})}}break}}}}else n.optionItems=[];e.valueAttribute&&(n.valueAttribute=e.valueAttribute),n.valueAttribute=n.getValueAttribute(),n.watchAttr=e.watchAttr,r(e)}else r()})).catch((function(e){i(e)}))}))},remoteQuery:function(e,t){var n=this;if(null!==e&&void 0!==e||null!==t&&void 0!==t){var r={_listCode:this.listCode,_formCode:this.formCode,_tableName:this.tableName};if(null!==e&&void 0!==e&&(r.searchText=e),null!==t&&void 0!==t)"[object Array]"===Object.prototype.toString.apply(t)?r.watchAttrValue=t.join(","):r.watchAttrValue=t+"";else if(this.entity){var i=this.entity[this.watchAttr];null!==i&&void 0!==i&&("[object Array]"===Object.prototype.toString.apply(i)?r.watchAttrValue=i.join(","):r.watchAttrValue=i+"")}this.parent&&(r.parent=this.parent),this.loading=!0,this.packageDynamicDataSourceInfo(this.dynamicDataSourceCode,r).then((function(e){void 0!==n.baseProps.multiple&&!0===n.baseProps.multiple&&n.$nextTick((function(){n.$refs["dynamicDataSourceRef"].setSelected()})),n.loading=!1})).catch((function(e){console.log(e),n.loading=!1}))}},remoteQueryMethod:function(e){Array.isArray(this.value)?0===this.value.length&&this.remoteQuery(e,null):this.remoteQuery(e,null)},remoteMethod:function(e){this.remoteQuery(e,null)},watchAttrValueChange:function(e){this.remoteQuery(null,e)},getValueAttribute:function(){return this.valueAttribute&&"[label]"!==this.valueAttribute?this.valueAttribute:"_label_"},setValues:function(e){var t=this;this.valueSetOptions&&this.valueSetOptions.length>0&&(void 0!==this.baseProps.multiple&&!0===this.baseProps.multiple?this.setColumnValueWhenMulti(e):this.valueSetOptions.forEach((function(n){var r,i=n.columnName;t.optionItems&&i&&(r=t.getTargetColumnValue(e,i)),t.setColumnValue(i,r,n)})))},setColumnValue:function(e,t,n){var r=null,i=n.valueColumn;i&&(r=i.name,!0===this.isSql&&(r=i.dbColumnName,r=Object(x["h"])(r,this.isJoinTable,this.tableName))),this.entity&&r&&null!==r&&""!==r&&Object(x["k"])(this.entity,r,t),this.$emit("set-value",{value:t,sourceColumnName:e,targetColumnName:r,options:this.optionItems,valueAttribute:this.valueAttribute})},setColumnValueWhenMulti:function(e){var t,n=this,r=!1;if(this.valueSetOptions.forEach((function(i){var o=i.columnName;if(o!==n.valueAttribute);else{var a;if(n.optionItems&&o&&(a=n.getTargetColumnValue(e,o)),n.setColumnValue(o,a,i),n.lastValues.length<e.length)r=!0;else if(n.lastValues.length>e.length){r=!1;var s=[].concat(Te(n.lastValues),Te(e)),l=new Set(s),u=Array.from(l),c=[].concat(Te(u.filter((function(e){return!n.lastValues.includes(e)}))),Te(u.filter((function(t){return!e.includes(t)}))));c&&c.length>0&&(t=c[0])}n.lastValues=JSON.parse(JSON.stringify(e))}})),r){var i=!1,o=e[e.length-1],a=this.optionItems.filter((function(e){return e[n.valueAttribute]===o}));a&&a.length>0&&this.setTagValue(null,i,a[0])}else{var s=!0;this.setTagValue(t,s)}},setTagValue:function(e,t,n){var r=this;this.valueSetOptions&&this.valueSetOptions.length>0&&this.valueSetOptions.forEach((function(i){var o=i.columnName;if(o!==r.valueAttribute){var a,s=null,l=i.valueColumn;if(l&&(s=l.name,!0===r.isSql&&(s=l.dbColumnName,s=Object(x["h"])(s,r.isJoinTable,r.tableName))),s){var u=Object(x["c"])(r.entity,s);if(t){var c=r.value.indexOf(e);if(void 0!==u&&null!==u&&""!==u){var f=u.split(",");f.splice(c,1),a=f.join(",")}}else{var d;n&&(d=n[o]),a=void 0!==u&&null!==u&&""!==u?u+","+d:d}}r.entity&&s&&null!==s&&""!==s&&Object(x["k"])(r.entity,s,a),r.$emit("set-value",{value:a,sourceColumnName:o,targetColumnName:s,options:r.optionItems,valueAttribute:r.valueAttribute})}}))},getTargetColumnValue:function(e,t){var n=this;if(e){var r="";if(void 0!==this.baseProps.multiple&&!0===this.baseProps.multiple&&Array.isArray(e)){var i=0;e.forEach((function(o){var a=n.optionItems.filter((function(e){return e[n.valueAttribute]===o}));a&&a.length>0&&(r+=a[0][t],i<e.length-1&&(r+=","),i++)}))}else{var o=this.optionItems.filter((function(t){return t[n.valueAttribute]===e}));o&&o.length>0&&(r=o[0][t])}return r}},clearMarkValue:function(){if(this.markValue&&this.entity){for(var e=JSON.parse(this.markValue),t=0;t<this.options.valueSetOptions.length;t++){var n=this.options.valueSetOptions[t];e[n.valueColumn.dbColumnName]=null}this.markValue=JSON.stringify(e)}}})},Bt=Ft,Lt=(n("c561"),f(Bt,Tt,Et,!1,null,null,null)),$t=Lt.exports,Vt=(n("3b2b"),n("a15e"));function jt(e,t,n){var r={},i=e.prop;t||(t={});var o=0,a=i.split(".");return a.forEach((function(e){var i,s;o===a.length-1?(i=Ht(r,a,e),i.fields[e]=n):(0===o?i=t:(s=zt(r,a,a[o-1]),i=s.fields),i[e]||(i[e]={type:"object",required:!0,fields:{}}),0===o?r[e]=i[e]:s.fields[e]=i[e]);o++})),r}function zt(e,t,n){for(var r,i=0;i<t.length;i++){var o=t[i];if(r=0===i?e[o]:r.fields[t[i]],o===n)break}return r}function Ht(e,t,n){for(var r,i=0;i<t.length;i++)if(r=0===i?e[t[i]]:r.fields[t[i]],i!==t.length-1){var o=t[i+1];if(o===n)break}return r}function Ut(e){e||(e=qe.get("_list_code"));var t=qe.get(e),n=t.columns,r={};return n&&n.forEach((function(t){var n=t.prop;if(n&&t.validations&&!at(n,e)){var i=JSON.parse(t.validations);i.forEach((function(e){e.pattern&&(e.pattern=new RegExp(e.pattern))})),n.indexOf(".")>0?jt(t,r,i):i&&i.length>0&&(r[n]=Te(i))}})),r}function Wt(e,t,n,r,i,o,a){return qt(e,t,n,r,!0,i,o,a)}function qt(e,t,n,r,i,o,a,s){var l,u=!1;l=r||Ut(t);var c=new Vt["default"](l);t||(t=qe.get("_list_code")),console.log("superGird--validatorEntity---entity=",e);var f=qe.get(t);return c.validate(e,{first:!0},(function(l,c){var d;if(l){var h=l[0]["message"];d=l[0]["field"],null!==n&&void 0!==n&&f.gridData.length>n?(k.a.set(f.gridData[n],"validateErrorField",l[0]["field"]),u=void 0!==o&&o&&void 0!==a&&void 0!==s?Object(x["e"])().t("superGrid.pageRecordLine",{pageNum:a,row:s})+","+h:Object(x["e"])().t("superGrid.recordLine",{row:n+1})+","+h):null!==f.$rowIndex&&void 0!==f.$rowIndex&&f.gridData.length>f.$rowIndex&&(k.a.set(f.gridData[f.$rowIndex],"validateErrorField",l[0]["field"]),u=Object(x["e"])().t("superGrid.recordLine",{row:f.$rowIndex+1})+","+h)}else null!==n&&void 0!==n&&f.gridData.length>n?void 0!==o&&o?k.a.set(f.subTableData[n],"validateErrorField",""):k.a.set(f.gridData[n],"validateErrorField",""):null!==f.$rowIndex&&void 0!==f.$rowIndex&&f.gridData.length>f.$rowIndex?k.a.set(f.gridData[f.$rowIndex],"validateErrorField",""):null!==n&&void 0!==n&&void 0!==o&&o&&f.gridData.length<=n&&k.a.set(f.subTableData[n],"validateErrorField",""),u=!0;if(d&&!0===i){var p=/[A-Z]+/;if(void 0!==u&&u+""!=="true"&&u+""!=="false"&&void 0!==f.isSql&&!0===f.isSql&&p.test(d)&&void 0!==e[d.toLowerCase()]){var m=JSON.parse(JSON.stringify(e));m[d.toUpperCase()]=e[d.toLowerCase()],delete m[d.toLowerCase()],u=qt(m,t,n,r,!1)}void 0!==u&&u+""!=="true"&&u+""!=="false"&&f.showValidateError&&(f.showValidateError=!1,k.a.prototype.$message({showClose:!0,message:u,type:"warning",onClose:function(e){f.showValidateError=!0}}))}})),u}var Gt={validator:Wt,getValidator:Ut},Yt=new k.a,Kt={toolbarRefresh:function(e,t,n,r){return this.toolbarFieldParam=n,this.refresh(e,t,n,r)},refresh:function(e,t,n,r){var i=this;return new Promise((function(t,o){if(r){var a=qe.get(i.code);i.$set(a.options,"subTableData",null)}if(!n&&i.toolbarFieldParam&&(n=i.toolbarFieldParam),i.$refs)if("undefined"!==typeof e&&null!==e&&e instanceof Array&&e.length>0)if(i.$refs.sf){var s=i.$refs.sf.packageSearchParam();s&&s.length>0?n&&n.length>0&&(1===s.length&&(s[0].leftBracket="(",s[0].rightBracket=")"),"or"===s[s.length-1].joinSign&&(s[s.length-1].joinSign="and"),Array.prototype.push.apply(s,n)):n&&(s=[],s=n),i.search(s,!1,e).then((function(){return t()})).catch((function(e){return o(e)}))}else i.search(n,!1,e).then((function(){return t()})).catch((function(e){return o(e)}));else if(i.$refs.sf){var l=i.$refs.sf.packageSearchParam();l&&l.length>0?n&&n.length>0&&(1===l.length&&(l[0].leftBracket="(",l[0].rightBracket=")"),"or"===l[l.length-1].joinSign&&(l[l.length-1].joinSign="and"),Array.prototype.push.apply(l,n)):n&&(l=[],l=n),i.search(l,!1).then((function(){return t()})).catch((function(e){return o(e)}))}else i.search(n,!1).then((function(){return t()})).catch((function(e){return o(e)}));else t()}))},showSearchForm:function(){this.showSearch=!0,this.$emit("showSearch")},cancelSearch:function(){this.showSearch=!1,this.$emit("cancelSearch")},getSearchForm:function(){var e=qe.get(this.code);return e.searchForm?e.searchForm:[]},createRow:function(e,t){var n=this;return new Promise((function(r,i){e||(e=qe.get("_list_code"));var o=qe.get(e),a=o.gridData;if(o.superGrid.clearSort(),o.lineEdit&&o.lineEdit.editable&&"undefined"!==typeof o.loaded&&!0===o.loaded){var s=!0;if(ct("beforeInsertRow",e)){var l=o.isSubTableShowPage,u=o.pagination&&o.pagination.pageSize,c=!1;s=o.options.lineEditOptions.beforeInsertRow.call(n,l?o.subTableData:o.gridData,o.$rowIndex,c,n.baseURL,l?o.gridData:null,u,o.additionalParamMap)}if(void 0===s||!0===s){if(o.options&&o.options.isFormSubTable){var f=o.gridData;void 0!==o.isSubTableShowPage&&!0===o.isSubTableShowPage&&(f=o.subTableData);var d=f.filter((function(e){return void 0!==e.$editing&&!0===e.$editing}));d&&d.length>0&&d.forEach((function(e){Object(x["k"])(e,"$editing",!1),Yt.$emit("un-edit",{row:e})})),o.isEditRow=!1}else{if(!rt(e)||"undefined"!==typeof o.isCreateRow&&!0===o.isCreateRow)return k.a.prototype.$message({showClose:!0,message:Object(x["e"])().t("superGrid.pleaseSaveLine",{row:o.$rowIndex+1}),type:"warning"}),void i(new Error("please save line"));if("undefined"!==typeof o.$rowIndex&&null!==o.$rowIndex&&o.$rowIndex<o.gridData.length){var h=o.gridData[o.$rowIndex];Object(x["k"])(h,"$editing",!1),o.isEditRow=!1}}t=n.getNewRow(o.defaultValueColumns,o.additionalParamMap,o.contextParameter,t),Object(x["k"])(t,"$editing",!0),o.isEditRow=!0,o.options&&o.options.isFormSubTable?(void 0!==o.isSubTableShowPage&&!0===o.isSubTableShowPage?(o.isChangePage=!0,o.subTableData.splice(o.subTableData.length,0,t)):(a.splice(a.length,0,t),o.lineEdit.editingCell&&(o.lineEdit.editingCell.row=a.length)),o.$rowIndex=a.length,n.$nextTick((function(){St(e)}))):(a.splice(0,0,t),o.lineEdit.editingCell&&(o.lineEdit.editingCell.row=0),o.$rowIndex=0);var p=Object.assign({},t);if(o.orgGridData.splice(0,0,p),o.lineEdit.editingCell||(o.lineEdit.editingCell={},o.lineEdit.validateErrorField=""),ct("afterInsertRow",e)){var m=o.isSubTableShowPage,g=o.pagination&&o.pagination.pageSize,v=!1;o.options.lineEditOptions.afterInsertRow.call(n,m?o.subTableData:o.gridData,o.$rowIndex,v,n.baseURL,m?o.gridData:null,g,o.additionalParamMap)}o.isCreateRow=!0,r(t)}else i(new Error("can not create"))}else i(new Error("list not editable or data not loaded completely"))}))},getNewRow:function(e,t,n,r,i){r||(r={}),i||(i=qe.get("_list_code"));var o=qe.get(i);if(o&&o.allColumns&&this.setColumnsDefaultValue(o.allColumns,r),e&&e.length>0)for(var a=0;a<e.length;a++){var s=e[a];if(s&&s.prop){var l=Object(x["c"])(r,s.prop);if("$selection"!==s.prop&&"$index"!==s.prop&&s.defaultValue&&""!==s.defaultValue&&(void 0===l||""===l||null===l)){var u=Object(x["i"])(s.defaultValue,r,t,n);Object(x["k"])(r,s.prop,u)}}}return r},setColumnsDefaultValue:function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=r.prop;"$index"!==i&&"$selection"!==i&&"operation"!==i&&(r.hasOwnProperty("children")?this.setChildrenColumnsDefaultValue(r.children,t):void 0===t[i]&&Object(x["k"])(t,i,null))}Object(x["k"])(t,"$editing",!1)},setChildrenColumnsDefaultValue:function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=r.prop;r.hasOwnProperty("children")?this.setChildrenColumnsDefaultValue(r.children,t):void 0===t[i]&&"operation"!==i&&Object(x["k"])(t,i,null)}},editRow:function(e,t,n){var r=this;t||(t=qe.get("_list_code"));var i=qe.get(t);if(i&&i.lineEdit&&i.lineEdit.editable){if("undefined"!==typeof i.$rowIndex&&null!==i.$rowIndex&&i.$rowIndex!==e)if("undefined"===typeof i.options.lineEditOptions.autoSave||ut("autoSave",t)&&!0===i.options.lineEditOptions.autoSave){if(!n)return void this.saveRow(i.$rowIndex,t).then((function(n){r.editRow(e,t,!0)}))}else if(!rt(t))return void k.a.prototype.$message({showClose:!0,message:Object(x["e"])().t("superGrid.pleaseSaveLine",{row:i.$rowIndex+1}),type:"warning"});var o=!0;if(ct("beforeEdit",t)){var a=i.isSubTableShowPage,s=i.pagination&&i.pagination.pageSize;o=i.options.lineEditOptions.beforeEdit.call(this,{gridData:a?i.subTableData:i.gridData,listCode:t,entity:i.gridData[e],rowIndex:e,columns:i.columns,isMobile:!1,pageGridData:a?i.gridData:null,pageSize:s,additionalParamMap:kt(i)})}Object(Ue["d"])(o)?o.then((function(t){void 0!==t&&!0!==t||r.doEditRow(i,e)})):void 0!==o&&!0!==o||this.doEditRow(i,e)}},doEditRow:function(e,t){if("undefined"!==typeof e.$rowIndex&&null!==e.$rowIndex&&e.$rowIndex<e.gridData.length){var n=e.gridData[e.$rowIndex];Object(x["k"])(n,"$editing",!1),e.isEditRow=!1}var r=e.gridData[t];Object(x["k"])(r,"$editing",!0),e.$lastSaveRowIndex=null,e.$rowIndex=t,e.isEditRow=!0,e.lineEdit.editingCell&&(e.lineEdit.editingCell.row=t)},saveRow:function(e,t){var n=this;return new Promise((function(r,i){var o=n;setTimeout((function(){o.saveCurrentRow(e,t).then((function(e){r(e)}))}),100)}))},saveCurrentRow:function(e,t){var n=this;return new Promise((function(r,i){t||(t=qe.get("_list_code"));var o=qe.get(t);if(o.lineEdit&&o.lineEdit.editable){if("undefined"===typeof o.gridData[e].$editing||!1===o.gridData[e].$editing)return void k.a.prototype.$message({showClose:!0,message:Object(x["e"])().t("superGrid.noNeedToSaveRow",{row:e+1}),type:"warning"});if(o.$rowIndex!==e&&!rt(t))return void k.a.prototype.$message({showClose:!0,message:Object(x["e"])().t("superGrid.pleaseSaveLine",{row:o.$rowIndex+1}),type:"warning"});if(o.$lastSaveRowIndex=null,void 0!==o.isHasDynamic&&!1===o.isHasDynamic&&!o.lineEdit.urlToSaveRow&&!ut("urlToSaveRow",t)&&!ct("saveRow",t))return void k.a.prototype.$message({showClose:!0,message:Object(x["e"])().t("superGrid.pleaseSetURLToSaveRowInformation"),type:"warning"});if(!o.canSaveRow)return;o.canSaveRow=!1;var a=o.gridData[e],s=!0;ut("isEnableValidate",t)&&(s=o.options.lineEditOptions["isEnableValidate"]);var l=!0;if(!0===s&&(l=Gt.validator(a,t,e)),!0===l){var u=!0;if(ct("beforeSave",t)&&(u=o.options.lineEditOptions["beforeSave"].call(n,a,o.columns,o.additionalParamMap)),void 0===u||!0===u){Yt.$emit("un-edit",{row:a});var c,f=kt(o);if(ct("saveRow",t)&&(c=o.options.lineEditOptions["saveRow"].call(n,a,o.columns,o.$dataTypeMap,o.dynamicColumnInfo,f,o.mainDefaultValueColumns)),!c&&o.lineEdit&&o.lineEdit.urlToSaveRow){var d=o.lineEdit.urlToSaveRow;ut("urlToSaveRow",t)&&(d=o.options.lineEditOptions["urlToSaveRow"]),c=k.a.prototype.$http.post(k.a.prototype.baseURL+d,a)}if(void 0!==o.isHasDynamic&&!0===o.isHasDynamic&&!c){var h="/common/dynamic-values",p={mainTableName:o.basicInfo&&o.basicInfo.tableName?o.basicInfo.tableName:"",row:a,dynamicColumnInfo:o.dynamicColumnInfo,additionalParamMap:f,dataTypeMap:o.$dataTypeMap,dynamicServiceName:o.dynamicServiceName,mainDefaultValueColumns:o.mainDefaultValueColumns};c=k.a.prototype.$http.post(k.a.prototype.baseURL+h,p)}c?c.then((function(s){n.afterSave(o,e,t,s,a).then((function(e){r(e)})).catch((function(e){i(e)}))})).catch((function(r){o.canSaveRow=!0,ct("saveError",t)&&o.options.lineEditOptions["saveError"].call(n,a,o.columns,e,r),i(r)})):(o.canSaveRow=!0,i(Object(x["e"])().t("saveRowRequest is undefined")))}else o.canSaveRow=!0,i(Object(x["e"])().t("superGrid.theReturnValueOfTheBeforesaveCallbackMethodIsFalse"))}else o.canSaveRow=!0,i(Object(x["e"])().t("imatrixUIMessage.validationFailed"))}}))},afterSave:function(e,t,n,r,i){var o=this;return new Promise((function(a,s){e.isCreateRow=!1,e.canSaveRow=!0,e.$rowIndex=null,e.isEditRow=!1,e.$lastSaveRowIndex=t,k.a.prototype.$message({showClose:!0,message:Object(x["e"])().t("superGrid.lineSavedSuccessfully",{row:t+1}),type:"success"}),("undefined"===typeof e.options.lineEditOptions.aftersaveIsCancelEditState||ut("aftersaveIsCancelEditState",n)&&!0===e.options.lineEditOptions.aftersaveIsCancelEditState)&&(Object(x["k"])(i,"$editing",!1),e.isEditRow=!1),ct("saveSuccess",n)&&e.options.lineEditOptions["saveSuccess"].call(o,r,e.columns,t,i,e.additionalParamMap),Object.assign(e.orgGridData[t],r),Object.assign(e.gridData[t],r),o.refresh(!1,!0).then((function(){("undefined"===typeof e.options.lineEditOptions.aftersaveIsCreateRow||e.options.lineEditOptions.aftersaveIsCreateRow)&&o.createRow(n),a({rowIndex:t,listCode:n})})).catch((function(e){return s(e)}))}))},restoreRow:function(e,t){var n=this;return new Promise((function(r,i){n.restoreCurrentRow(e,t),r()}))},restoreCurrentRow:function(e,t){t||(t=qe.get("_list_code"));var n=qe.get(t);if(n.lineEdit&&n.lineEdit.editable){if(null!==n.$rowIndex&&n.$rowIndex!==e&&!rt(t))return void k.a.prototype.$message({showClose:!0,message:Object(x["e"])().t("superGrid.pleaseSaveLine",{row:n.$rowIndex+1}),type:"warning"});var r=null!==n.$lastSaveRowIndex&&n.$lastSaveRowIndex===e&&"undefined"!==typeof n.gridData[e].id,i=!0;if(ct("beforeRestoreValidate",t)){var o=n.isSubTableShowPage,a=n.pagination&&n.pagination.pageSize,s=!1;i=n.options.lineEditOptions.beforeRestoreValidate.call(this,{rowIndex:e,gridData:o?n.subTableData:n.gridData,entity:n.gridData[e],isMobile:s,baseURL:this.baseURL,isEditing:!r,pageGridData:o?n.gridData:null,pageSize:a,additionalParamMap:n.additionalParamMap})}if(void 0!==i&&!0!==i)return;if(!0===r)return void k.a.prototype.$message({showClose:!0,message:Object(x["e"])().t("superGrid.lineNoNeedToUndoEdit",{row:e+1}),type:"warning"});var l=!0;if(ct("beforeRestore",t)){var u=n.isSubTableShowPage,c=n.pagination&&n.pagination.pageSize,f=!1;l=n.options.lineEditOptions.beforeRestore.call(this,{rowIndex:e,gridData:u?n.subTableData:n.gridData,entity:n.gridData[e],isMobile:f,baseURL:k.a.prototype.baseURL,isEditing:!r,pageGridData:u?n.gridData:null,pageSize:c,additionalParamMap:n.additionalParamMap})}if(void 0===l||!0===l){if(n.orgGridData[e].id||n.orgGridData[e].ID){if(k.a.set(n.gridData,e,JSON.parse(JSON.stringify(n.orgGridData[e]))),void 0!==n.isSubTableShowPage&&!0===n.isSubTableShowPage){var d=(this.currentPage-1)*this.pageSize,h=d+e;k.a.set(n.subTableData,h,n.gridData[e])}k.a.prototype.$message({showClose:!0,message:Object(x["e"])().t("superGrid.lineCancelledSuccessfully",{row:e+1}),type:"success"}),("undefined"===typeof n.options.lineEditOptions.afterRestoreIsCancelEditState||ut("afterRestoreIsCancelEditState",t)&&!0===n.options.lineEditOptions.afterRestoreIsCancelEditState)&&(Object(x["k"])(n.gridData[e],"$editing",!1),n.isEditRow=!1)}else this.deleteRow(e,t,!0);n.$rowIndex=null,n.isCreateRow=!1,ct("afterRestore",t)&&n.options.lineEditOptions.afterRestore.call(this,e,n.orgGridData[e],n.additionalParamMap)}}},deleteRow:function(e,t,n){var r=this;return new Promise((function(i,o){t||(t=qe.get("_list_code"));var a=qe.get(t),s=!0;if(ct("beforeDelete",t)){var l=a.isSubTableShowPage,u=a.pagination&&a.pagination.pageSize,c=l?a.subTableData:a.gridData,f=!1;s=a.options.lineEditOptions.beforeDelete.call(r,e,a.gridData[e],c,f,r.baseURL,l?a.gridData:null,u,a.additionalParamMap)}if(void 0===s||!0===s){if(void 0!==a.isSubTableShowPage&&!0===a.isSubTableShowPage){a.isChangePage=!0;var d=(r.currentPage-1)*r.pageSize,h=d+e;a.subTableData.splice(h,1)}else a.gridData.splice(e,1),a.orgGridData.splice(e,1);if(a.$lastSaveRowIndex=null,a.$rowIndex=null,a.isEditRow=!1,k.a.prototype.$message({showClose:!0,message:Object(x["e"])().t("superGrid.deleteSuccessful"),type:"success"}),0===a.gridData.length&&a.options&&null!==a.options.isDefaultShowEdit&&void 0!==a.options.isDefaultShowEdit&&!0===a.options.isDefaultShowEdit&&r.createRow(t),a.isMulitiSelect&&a.superGrid.clearSelection(),a.isCreateRow=!1,void 0!==n&&!0===n&&ct("afterDelete",t)){var p=a.isSubTableShowPage,m=a.pagination&&a.pagination.pageSize,g=!1;a.options.lineEditOptions.afterDelete.call(r,e,a.orgGridData[e],p?a.subTableData:a.gridData,g,r.baseURL,p?a.gridData:null,m,a.additionalParamMap)}}i()}))},focus:function(e,t){et(e,t)},getGridData:function(e){e||(e=qe.get("_list_code"));var t=qe.get(e),n=t.isSubTableShowPage;return n?t.subTableData:t.gridData},getColumns:function(e){e||(e=qe.get("_list_code"));var t=qe.get(e);return t.columns},getPagination:function(e){e||(e=qe.get("_list_code"));var t=qe.get(e);return t.pagination},getOptionsValueSet:function(e){var t={};e||(e=qe.get("_list_code"));var n=qe.get(e),r=n.columns;return r.forEach((function(e){var n=e.prop,r=Ct(e);!r&&e.valueSet&&e.valueSet.length>0&&(t[n]=e.valueSet)})),t},restoreGridEdit:function(e){e||(e=qe.get("_list_code"));var t=qe.get(e);if(t.options&&t.options.isFormSubTable){var n=t.isSubTableShowPage,r=[];if(r=n?t.subTableData:t.gridData,r&&r.length>0)for(var i=0;i<r.length;i++){var o=r[i];if(void 0!==o.$editing&&!0===o.$editing){Object(x["k"])(o,"$editing",!1),Yt.$emit("un-edit",{row:o});break}}}}},Xt=Kt,Jt=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{"append-to-body":!0,"show-close":!0,title:e.$t("imatrixUIPublicModel.preview"),visible:!0},on:{close:function(t){return e.$emit("close")}},scopedSlots:e._u([{key:"title",fn:function(){return[t("span",[e._v(e._s(e.$t("imatrixUIPublicModel.preview"))+"\n "),e.deleteable?t("i",{staticClass:"el-icon-delete",staticStyle:{"padding-left":"5px",cursor:"pointer",color:"#F56C6C"},on:{click:function(t){return e.deleteFile()}}}):e._e()])]},proxy:!0}])},[t("el-carousel",{attrs:{interval:5e3,arrow:"always"},on:{change:e.changeFile}},e._l(e.fileList,(function(n){return t("el-carousel-item",{key:n.serverName,staticStyle:{"background-color":"#eee"}},[n.isImg?t("el-image",{attrs:{src:n.src,"preview-src-list":[n.src]}}):t("div",{staticStyle:{"text-align":"center","margin-top":"50px"}},[t("div",{staticStyle:{"font-size":"18px"}},[e._v("\n "+e._s(n.showName)+"\n ")]),t("div",{staticStyle:{"padding-top":"10px"}},[e._v("\n "+e._s(e.$t("superGrid.previewTitleWhenNotImg"))+"\n ")]),t("div",{staticStyle:{"padding-top":"10px"}},[t("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.preview()}}},[e._v("\n "+e._s(e.$t("fsUpload.preview"))+"\n ")])],1)])],1)})),1)],1)},Zt=[],Qt={name:"ViewImageDialog",props:{fileList:{type:Array,default:function(){return[]}},downloadable:{type:Boolean,default:function(){return!0}},deleteable:{type:Boolean,default:function(){return!1}}},data:function(){var e=Object(He["c"])(),t=k.a.prototype.baseURL+"/common/fs-upload/preview?jwt="+e;return Object(Ue["c"])(k.a.prototype.systemCode)&&(t=k.a.prototype.baseAPI+"/component/fs-upload/preview?jwt="+e),{showName:null,serverName:null,file:null,previewUrl:t}},methods:{changeFile:function(e,t){var n=this.fileList[e];this.file=n,this.showName=n.showName,this.serverName=n.serverName},downloadFile:function(){if(!this.showName){var e=this.fileList[0];this.showName=e.showName,this.serverName=e.serverName}var t=Object(He["c"])(),n=k.a.prototype.baseURL+"/common/super-form/downloads?jwt="+t;Object(Ue["c"])(k.a.prototype.systemCode)&&(n=k.a.prototype.baseAPI+"/component/super-form/downloads?jwt="+t),window.location.href=n+"&showName="+encodeURI(this.showName)+"&serverPath="+this.serverName},preview:function(){if(!this.showName){var e=this.fileList[0];this.showName=e.showName,this.serverName=e.serverName}k.a.prototype.customPreviewUrl?window.open(Object(Ue["b"])(k.a.prototype.portalUrl)+"/#/file-service/preview?serverPath="+this.serverName+"&showName="+encodeURI(this.showName),this.showName):window.open(this.previewUrl+"&showName="+encodeURI(this.showName)+"&serverPath="+this.serverName)},deleteFile:function(){var e;if(this.fileList&&this.fileList.length>0){if(!this.showName){var t=this.fileList[0];this.showName=t.showName,this.serverName=t.serverName}var n=this.serverName;e=this.fileList.findIndex((function(e){return e.serverName===n}))}this.$emit("delete",this.fileList,e)}}},en=Qt,tn=f(en,Jt,Zt,!1,null,"f2898a0c",null),nn=tn.exports,rn={name:"DynamicInput",components:{dynamicSourceSelect:$t,ViewImageDialog:nn},props:{value:{type:[String,Boolean,Number,Date,Array],default:null},type:{type:String,default:"input"},position:{type:Object,default:null},lineEdit:{type:Object,default:null},options:{type:Array,default:null},column:{type:Object,default:null},row:{type:Object,default:null},listCode:{type:String,default:null},isSql:{type:Boolean,default:!1}},data:function(){var e=this.value;this.type&&"select"===this.type&&"TEXT"!==this.column.dataType&&(e=this.value&&null!==this.value&&"string"!==typeof this.value?this.value+"":this.value,this.$emit("input",e));var t=this.getDefaultValue(e);void 0!==t&&null!==t&&(e=t);var n=at(this.column.prop,this.listCode,this.row),r=k.a.prototype.baseAPI+"/component/super-form/uploads";this.listCode||(this.listCode=qe.get("_list_code"));var i,o,a,s=qe.get(this.listCode);s&&s.basicInfo&&s.basicInfo.tableName&&(i=s.basicInfo.tableName),s&&s.basicInfo&&s.basicInfo.hasJoinTable&&(o=s.basicInfo.hasJoinTable),s.options.extraParam&&s.options.extraParam.entityMap&&(a=s.options.extraParam.entityMap);var l={Authorization:Object(He["c"])()},u="mysql";k.a.prototype.dataSourceType&&(u=k.a.prototype.dataSourceType.toLowerCase());var c=s.gridData,f=s.subTableData,d=s.isSubTableShowPage,h=kt(s);return{deptManTree:!1,isMultiTree:!1,isCheckStrictly:!1,deptTree:!1,wgManTree:!1,wgTree:!1,newValue:null,disabled:n,componentName:"",validateErrorField:"",annexUploadFlag:!1,defaultAction:r,fileMultiple:!1,lastFileName:"",fileList:[],lastServerName:"",fileSetObj:null,showSingleImgFlag:!1,singleImgSrc:"",fields:null,innerValue:e,valueSetOptions:null,dynamicDataSourceCode:null,tableName:i,isJoinTable:o,departmentInfo:null,parentFormData:a,headers:l,dataSourceType:u,inputNumberSet:{},fileInfo:{showName:null,serverPath:null},gridData:d?f:c,pageGridData:d?c:null,additionalParamMap:h}},computed:{},watch:{value:{handler:function(e,t){var n=this;if(this.type&&"multiselect"===this.type){var r=this.value&&null!==this.value&&"string"===typeof this.value?this.value.split(","):this.value;this.$set(this,"innerValue",r)}else"yearRange"===this.type?this.$set(this,"innerValue",""+e):this.$set(this,"innerValue",e);var i=qe.get(this.listCode);i.editProp===this.column.prop&&this.$nextTick((function(){n.$refs.customItem&&n.$refs.customItem.focus()}))},deep:!0,immediate:!0}},created:function(){var e=qe.get(this.listCode);if(this.gridParams=e,this.isCreateRow=e.isCreateRow,this.setTreeType(),this.type&&this.type.indexOf("custom:")>=0&&(this.componentName=this.type.substring(this.type.indexOf(":")+1)),this.column.fileSet&&""!==this.column.fileSet&&("annex"===this.column.componentType||"multipartUpload"===this.column.componentType)){var t=JSON.parse(this.column.fileSet);this.fileInfo.showName=this.row[t.showNameData.dbName],this.fileInfo.serverPath=this.row[t.serverNameData.dbName],this.fileSetObj=t,t&&t.multiple&&(this.fileMultiple=!0),this.fileList=wt(this.row,this.column,this.isSql),this.packageFileNameWithFileList()}if("inputNumber"===this.column.componentType&&this.setInputNumberConfig(),this.column.valueSetOptions&&"inputNumber"!==this.column.componentType){var n=JSON.parse(this.column.valueSetOptions);n&&n.valueSetOptions&&this.$set(this,"valueSetOptions",n.valueSetOptions),n.dynamicDataSourceCode&&""!==n.dynamicDataSourceCode&&this.$set(this,"dynamicDataSourceCode",n.dynamicDataSourceCode)}if(this.column.orgTreeSet){var r=JSON.parse(this.column.orgTreeSet);this.type.indexOf("DeptTree")>0&&r.checkStrictly&&(this.isCheckStrictly=r.checkStrictly),r.length?this.fields=r:r.orgTreeSetArr&&(this.fields=r.orgTreeSetArr)}},mounted:function(){},methods:{focus:function(){"slider"!==this.type&&"rate"!==this.type&&this.lineEdit.editingCell&&this.position&&this.position.row===this.lineEdit.editingCell.row&&this.position.prop===this.lineEdit.editingCell.prop&&this.$refs.item&&this.$refs.item.focus()},handleBeforeUpload:function(e){var t=this.fileSetObj.limitFileSize;if(void 0===t&&(t=30),e.size>1024*t*1024)return this.$message({type:"warning",message:this.$t("imatrixUIMessage.exceedFileSize",{fileSize:t}),showClose:!0}),!1},setTreeType:function(){this.type&&(this.type.indexOf("single")>=0&&this.type.indexOf("Tree")>0?this.isMultiTree=!1:this.isMultiTree=!0,this.type.indexOf("DeptManTree")>0&&(this.deptManTree=!0),this.type.indexOf("DeptTree")>0&&(this.deptTree=!0),this.type.indexOf("WgManTree")>0&&(this.wgManTree=!0),this.type.indexOf("WgTree")>0&&(this.wgTree=!0))},showOrganizationTree:function(){if(this.column.orgTreeSet){var e=JSON.parse(this.column.orgTreeSet);if(e.length)this.fields=e;else if(e.orgTreeSetArr&&(this.fields=e.orgTreeSetArr),e.specifyType)if("dataTable"===e.specifyType){if(e.dataTableField){var t=Object(x["c"])(this.row,e.dataTableField);t&&""!==t&&this.$set(this,"departmentInfo",t.split(","))}}else"dept"!==e.specifyType&&"workGroup"!==e.specifyType||e.specifyDept&&""!==e.specifyDept&&("object"===Object(C["a"])(e.specifyDept)?this.$set(this,"departmentInfo",e.specifyDept):this.$set(this,"departmentInfo",e.specifyDept.split(",")))}},cellEvent:function(e,t,n){var r=!1;if("focus"===e&&this.$emit("focus",t),"input"===e&&this.isDateControll()){var i=t;""===i&&(i=null),this.$emit("input",i),r=!0,this.innerValue=i}else if("input"===e&&this.isSelectControll()){if("multiselect"===this.type&&this.innerValue&&"[object Array]"===Object.prototype.toString.apply(this.innerValue)){var o="saveAll";this.innerValue.indexOf(o)<0&&this.$emit("input",this.innerValue.join(","))}else this.$emit("input",this.innerValue);r=!0}else"input"===e&&void 0!==n&&!0===n?(this.innerValue=t,this.$emit("input",t),r=!0):"blur"!==e||this.isSelectControll()||(this.blurEvent(),r=!0);if(r||"change"!==e||this.blurEvent(),"clear"===e){if(("multiselect"===this.type||"select"===this.type)&&Ct(this.column))for(var a=0;a<this.valueSetOptions.length;a++)this.column.prop!==this.valueSetOptions[a].valueColumn.dbColumnName&&this.setCellValue(this.valueSetOptions[a].valueColumn.dbColumnName,null,"input");this.$emit("input",null)}var s=qe.get(this.listCode);s.editProp=this.column.prop,this.column.events&&this.column.events[e]?this.callCustomEvent(e):ct(e,this.listCode)&&s.options.lineEditOptions[e].call(this,t,this.row,this.column,s.additionalParamMap),this.$emit("findIndex")},blurEvent:function(){null!==this.innerValue&&void 0!==this.innerValue||(this.innerValue=null,this.val=null),this.$emit("input",this.innerValue)},isDateControll:function(){return"date"===this.type||"DATE"===this.column.dataType||"time"===this.type||"TIME"===this.column.dataType},isSelectControll:function(){return"select"===this.type||"multiselect"===this.type},isDynamicDataSourceSource:function(){return Ct(this.column)},isDecimalDateType:function(){return this.column.dataType&&"DOUBLE"===this.column.dataType||"FLOAT"===this.column.dataType},callCustomEvent:function(e){this.callCustomEventWithParam(e,{value:this.innerValue,row:this.row,column:this.column})},callCustomEventWithParam:function(e,t){if(this.column&&this.column.events&&this.column.events[e]){var n=this.column.events[e];this.listCode||(this.listCode=qe.get("_list_code"));var r=qe.get(this.listCode);r.options&&r.options["eventCallBack"]&&r.options["eventCallBack"][n]&&"function"===typeof r.options["eventCallBack"][n]&&(t||(t={}),t.formData=r.options&&r.options.formData?r.options.formData:null,t.parent=this.parentFormData,t.additionalParamMap=r.additionalParamMap,r.options["eventCallBack"][n].call(this,t))}},checkDecimal:function(){if(this.isDecimalDateType()&&this.innerValue&&null!==this.innerValue){var e=/^(-?\d+)(\.\d+)?$/;if(!e.test(this.innerValue+""))return this.$message({type:"warning",message:this.$t("imatrixUIMessage.invalideDoubleValue",{num:this.innerValue}),showClose:!0}),void this.focus()}},customFocus:function(){Xt.focus(this.position?this.position.row:null)},openAnnexUpload:function(){this.annexUploadFlag=!0},previewImg:function(){this.fileList=wt(this.row,this.column,this.isSql),this.showSingleImgFlag=!0},uploadOnSuccess:function(e){if(e){var t={name:e.showName,serverPath:e.serverPath};if(this.column.fileSet&&""!==this.column.fileSet){var n=JSON.parse(this.column.fileSet);n&&(this.fileMultiple?this.multiStorage(n,t):this.radioStorageFile(n,t),this.fileList=wt(this.row,this.column,this.isSql))}}this.annexUploadFlag=!1},setCellValue:function(e,t,n){var r=this;this.$set(this.row,e,t),n&&n.split(",").forEach((function(n){r.callCustomEventWithParam(n,{value:t,row:r.row,column:r.column,prop:e})}))},radioStorageFile:function(e,t){e.showNameData&&(this.isSql?e.showNameData.dbName&&this.setCellValue(e.showNameData.dbName,t.name,"input"):e.showNameData.name&&this.setCellValue(e.showNameData.name,t.name,"input")),e.serverNameData&&(this.isSql?e.serverNameData.dbName&&this.setCellValue(e.serverNameData.dbName,t.serverPath):e.serverNameData.name&&this.setCellValue(e.serverNameData.name,t.serverPath)),this.packageFileNameWithFileList([{showName:t.name,serverPath:t.serverPath}])},multiStorage:function(e,t){var n=vt(e,this.isSql);if(e.childAnnexDataTableCode){var r=this.row[this.column.prop];r||(r=[]);var i=this.responseFileToFileObj(e,t);r.push(i),this.fileList=bt(e,n,r,null),this.setCellValue(this.column.prop,r,"input")}else{var o="",a="";if(e.showNameData)if(this.isSql){if(e.showNameData.dbName&&this.row){if(this.row[e.showNameData.dbName]){var s=this.row[e.showNameData.dbName];s+=","+t.name,this.setCellValue(e.showNameData.dbName,s,"input")}else this.setCellValue(e.showNameData.dbName,t.name,"input");o=this.row[e.showNameData.dbName]}}else if(e.showNameData.name&&this.row){if(this.row[e.showNameData.name]){var l=this.row[e.showNameData.name];l+=","+t.name,this.setCellValue(e.showNameData.name,l,"input")}else this.setCellValue(e.showNameData.name,t.name,"input");o=this.row[e.showNameData.name]}if(e.serverNameData)if(this.isSql){if(e.serverNameData.dbName&&this.row){if(this.row[e.serverNameData.dbName]){var u=this.row[e.serverNameData.dbName];u+=","+t.serverPath,this.setCellValue(e.serverNameData.dbName,u)}else this.setCellValue(e.serverNameData.dbName,t.serverPath);a=this.row[e.serverNameData.dbName]}}else if(e.serverNameData.name&&this.row){if(this.row[e.serverNameData.name]){var c=this.row[e.serverNameData.name];c+=","+t.serverPath,this.setCellValue(e.serverNameData.name,c)}else this.setCellValue(e.serverNameData.name,t.serverPath);a=this.row[e.serverNameData.name]}this.fileList=bt(e,n,null,{showName:o,serverPath:a})}this.packageFileNameWithFileList()},responseFileToFileObj:function(e,t){var n={};return e.showNameData&&(this.isSql?e.showNameData.dbName&&this.$set(n,e.showNameData.dbName,t.name):e.showNameData.name&&this.$set(n,e.showNameData.name,t.name)),e.serverNameData&&(this.isSql?e.serverNameData.dbName&&this.$set(n,e.serverNameData.dbName,t.serverPath):e.serverNameData.name&&this.$set(n,e.serverNameData.name,t.serverPath)),n},deleteAnnexFile:function(e){e&&(e.showNameData&&(this.isSql?e.showNameData.dbName&&this.setCellValue(e.showNameData.dbName,null,"input,clear"):e.showNameData.name&&this.setCellValue(e.showNameData.name,null,"input,clear")),e.serverNameData&&(this.isSql?e.serverNameData.dbName&&this.setCellValue(e.serverNameData.dbName,null):e.serverNameData.name&&this.setCellValue(e.serverNameData.name,null)))},deleteFile:function(e,t){if(this.fileList=e,void 0!==t&&-1!==t&&this.fileList.splice(t,1),this.packageFileNameWithFileList(),this.column.fileSet&&""!==this.column.fileSet){var n=JSON.parse(this.column.fileSet);if(n)if(this.fileMultiple){var r=vt(n,this.isSql);this.standardToOtherFiles(n,r)}else this.deleteAnnexFile(n)}},packageFileNameWithFileList:function(e){if(e||(e=this.fileList),e&&e.length>0){var t="",n="";e.forEach((function(e){t+=e.showName+",",n+=e.serverPath+","})),t&&t.indexOf(",")>0&&(this.lastFileName=t.substring(0,t.lastIndexOf(",")),this.lastServerName=n.substring(0,n.lastIndexOf(",")))}else this.lastFileName=null,this.lastServerName=null},standardToOtherFiles:function(e,t){if(e.childAnnexDataTableCode){var n=null;if(this.fileList&&this.fileList.length>0){n=[];for(var r=0;r<this.fileList.length;r++){var i=this.fileList[r],o={};this.$set(o,t.showName,i.showName),this.$set(o,t.serverPath,i.serverPath),n.push(o)}}this.setCellValue(this.column.prop,n,"input")}else{var a=null,s=null;if(this.fileList&&this.fileList.length>0){a="",s="";for(var l=0;l<this.fileList.length;l++){var u=this.fileList[l];""!==a&&(a+=","),""!==s&&(s+=","),a+=u.showName,s+=u.serverPath}}this.setCellValue(t.showName,a,"input"),this.setCellValue(t.serverPath,s)}},organizationInputEvent:function(e,t){if(this.isSql&&e&&e.indexOf(".")<0&&e!==this.column.prop&&this.tableName){var n="__";e=this.tableName+n+e}Object(x["k"])(this.row,e,t),e&&e===this.column.prop&&this.callCustomEventWithParam("input",{value:t,row:this.row,column:this.column,prop:e})},clearOrganizationInputEvent:function(e){this.isSql?Object(x["k"])(this.row,e,""):Object(x["k"])(this.row,e,null),e&&e===this.column.prop&&this.callCustomEventWithParam("clear",{row:this.row,column:this.column,prop:e})},appendOrganizationInputEvent:function(e,t,n,r,i){Object(x["k"])(this.row,e,i),e&&e===this.column.prop&&this.callCustomEventWithParam("append",{originalValue:t,appendValue:n,separator:r,finallyValue:i,row:this.row,column:this.column,prop:e})},replaceOrganizationInputEvent:function(e,t,n){Object(x["k"])(this.row,e,n),e&&e===this.column.prop&&this.callCustomEventWithParam("replace",{originalValue:t,newValue:n,row:this.row,column:this.column,prop:e})},setDynamicSourceSelectValue:function(e){var t=e.value,n=(e.sourceColumnName,e.targetColumnName);e.options,e.valueAttribute;n&&this.setCellValue(n,t,"input")},multiselectChange:function(e){var t=this,n=!1;if(e&&e.length>0){var r="saveAll";if(-1!==e.indexOf(r)){var i=e.length;i-1>=this.options.length?this.innerValue=null:((!this.innerValue||this.innerValue.indexOf(r)>=0)&&(this.innerValue=[]),this.options.forEach((function(e){-1===t.innerValue.indexOf(e.value)&&t.innerValue.push(e.value)}))),n=!0}}this.innerValue&&-1!==this.innerValue.indexOf("saveAll")&&this.innerValue.splice(this.innerValue.indexOf("saveAll"),1),n&&this.cellEvent("input",this.innerValue),this.cellEvent("change",e)},getDefaultValue:function(e){if(void 0!==this.column.defaultValue&&null!==this.column.defaultValue&&(void 0===e||null===e||""===e))return Object(x["k"])(this.row,this.column.prop,this.column.defaultValue),this.column.defaultValue},refresData:function(e){this.$emit("refresData",e)},refresPortData:function(e,t){this.$emit("refresPortData",e,t)},refresPortsData:function(e){this.$emit("refresPortsData",e)},refresMainTableFields:function(e){this.$emit("refresMainTableFields",e)},deleteSuccess:function(e){},isValueFormat:function(){return"TEXT"===this.column.dataType||"text"===this.column.dataType?this.isFormat():"timestamp"},isFormat:function(){return"time"===this.type&&"TIME"===this.column.dataType||"dateTimePicker"===this.type?"yyyy-MM-dd HH:mm:ss":"date"===this.type&&"DATE"===this.column.dataType?"yyyy-MM-dd":"timePicker"===this.type?this.column.originalFormat?this.column.originalFormat:"hh:mm:ss":"year"===this.type?"yyyy":"month"===this.type?"MM":"yyyy-MM-dd"},fnProhibitToEdit:function(e){this.$emit("prohibitToEdit",e)},setInputNumberConfig:function(){if("inputNumber"===this.column.componentType)if(this.column.valueSetOptions&&""!==this.column.valueSetOptions&&"inputNumber"===this.column.componentType){var e=JSON.parse(this.column.valueSetOptions);this.inputNumberSet=e}else this.inputNumberSet={min:null,max:null,step:1,precision:0,position:""}}}},on=rn,an=f(on,Dt,Ot,!1,null,null,null),sn=an.exports,ln={number:function(e,t){var n=t.precision,r=t.sign,i=t.delimiter,o=t.scientific,a=t.scientificNum;if(void 0!==e&&null!=e){if(n>0&&(e=parseFloat(e),e=e.toFixed(n)),i){var s=e+"",l=s.replace(/\d{1,3}(?=(\d{3})+(\.\d*)?$)/g,"$&,");return r?l+r:l}if(null==o)return r?e+r:e;var u=!1;a=a?parseInt(a):11,e.length>=a&&(u=!0),u&&(e=""+e,e=parseFloat(e),e=e.toExponential())}return e},currency:function(e,t){var n=t.sign;return n+this.number(e,t)},date:function(e,t){var n=t.format;if(null!=e){var r=new Date(e),i=r.getFullYear(),o=r.getMonth()+1,a=r.getDate(),s=r.getHours(),l=r.getMinutes(),u=r.getSeconds();o<10&&(o="0"+o),a<10&&(a="0"+a),s<10&&(s="0"+s),l<10&&(l="0"+l),u<10&&(u="0"+u);var c=n.replace("yyyy",i).replace("mm",l).replace("M",o).replace("m",o).replace("d",a).replace("hh",s).replace("ss",u);return-1===c.indexOf("NaN")?c:e}return e},time:function(e,t){return this.date(e,t)},percent:function(e,t){return e||e>=0?this.number(e,t)+"%":e}};function un(e,t){if(t=cn(e,t),void 0!==t&&null!==t){void 0===e.formatter&&("DATE"===e.dataType?e.formatter={type:"date",options:{format:"yyyy-m-d"}}:"TIME"===e.dataType&&(e.formatter={type:"time",options:{format:"yyyy-m-d hh:mm:ss"}}));var n=e.formatter;return void 0!==n&&void 0!==ln[n.type]?ln[n.type](t,n.options):t}}function cn(e,t){if(void 0===t||null===t)return t;var n=e.valueSet;if(void 0!==n)if("multiselect"!==e.componentType||Ct(e)){var r=n.filter((function(e){return e.value===t+""}));r.length>0&&(t=r[0].label)}else{"number"===typeof t&&(t+="");var i=(t+"").split(","),o=[];i.forEach((function(e){var t=n.filter((function(t){return t.value===e+""}));t.length>0&&o.push(t[0].label)})),t=o.join(",")}return t}var fn=n("bc95"),dn=n.n(fn);function hn(e,t,n,r,i,o,a){var s={};if(e){s.visible=!0;var l={};r&&"string"===typeof r&&""!==r?l=JSON.parse(r):r&&"object"===Object(C["a"])(r)&&(l=r);var u={};if(i&&"string"===typeof i&&""!==i?u=JSON.parse(i):i&&"object"===Object(C["a"])(i)&&(u=i),e.displayTextJudge){var c=Object(x["b"])(e.displayText,t,l,u);s.label=c}if(e.icon&&(s.icon=e.icon),e.linkTips&&(s.title=e.linkTips),e.buttonDisplayConditionsList){var f="";if(e.buttonDisplayConditionsList&&(f=JSON.stringify(e.buttonDisplayConditionsList)),f&&""!==f){var d=Object(x["a"])(f,t,l,u,n,o,a);s.visible=d}}}return s}function pn(e){if(e){var t=e.jumpPageSetting,n=e.system,r=e.dataId,i=e.ids,o=e.buttonCode,a=e.additionalParamMap,s=e.entity,l=e.parentFormData;gn(t,n,r,s,a,i,o,l).then((function(e){var t;if(e&&(t=e.jumpMode),e){var n,r,i=e,o=i._path;if("popup"===t)n=e.jumpPageWidth?e.jumpPageWidth:window.innerWidth-150,r=e.jumpPageHeight?e.jumpPageHeight:window.innerHeight-150,window.open(o,"","height="+r+",width="+n+",top=100,left=100,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no");else"refresh"===t&&(window.location.href=o)}}))}}function mn(e){if(e&&e.length>0)for(var t=0;t<e.length;t++){var n=e[t];if(n.paramName&&("id"===n.paramName||"ID"===n.paramName))return!0}}function gn(e,t,n,r,i,o,a,s){return new Promise((function(l,u){e&&"string"===typeof e&&""!==e&&(e=JSON.parse(e)),e.jumpPageUrl||l(),vn(t,e.jumpPageUrl).then((function(t){if(e.jumpPageAdditional&&e.jumpPageAdditional.length>0){var u=k.a.prototype.baseAPI+"/component/super-pages/parsing-additional-parameters",c={};c.jumpPageAdditional=JSON.stringify(e.jumpPageAdditional),c.entity=r,c.additionalParamMap=i,c.parentFormData=s;var f=mn(e.jumpPageAdditional);k.a.prototype.$http.post(u,c).then((function(r){var i="";r&&r.uuid&&(i=r.uuid+"_additionalParamMap",dn.a.setItem(i,JSON.stringify(r.paramMap))),e.paramStoreId=i,yn(e,t,n,o,a,f).then((function(e){l(e)}))}))}else yn(e,t,n,o,a,!1).then((function(e){l(e)}))})).catch((function(e){console.log(e),u(e)}))}))}function vn(e,t){return new Promise((function(n,r){if(bn(t))n(null);else if(e&&null!==e)n(e);else if(0===t.indexOf("page:")){var i=t.substring(t.indexOf("page:")+"page:".length),o=k.a.prototype.baseAPI+"/component/business-systems/with-page-codes/"+i;k.a.prototype.$http.get(o).then((function(e){n(e)})).catch((function(e){r(e)}))}else{var a=k.a.prototype.customSystem;a||(a=k.a.prototype.systemCode);var s=k.a.prototype.baseAPI+"/component/business-systems/"+a;k.a.prototype.$http.get(s).then((function(e){n(e)})).catch((function(e){r(e)}))}}))}function bn(e){return 0===e.indexOf("http:")||0===e.indexOf("https:")}function yn(e,t,n,r,i,o){return new Promise((function(a,s){var l=e.jumpPageUrl;if(l)if(0===l.indexOf("page:"))xn(l,t,n,e,r,i,o).then((function(e){a(e)}));else{var u=On(e.paramStoreId),c=l;if(l.indexOf("path:")>=0&&(c=l.substring(l.indexOf("path:")+"path:".length)),bn(c));else if(t){var f=Object(Ue["b"])(t.frontendUrl);c=f+"/#"+c}var d=Dn(t);wn(n,c,u,e,r,i,o,d),a()}}))}function wn(e,t,n,r,i,o,a,s){if(t=_n(e,t,r,i,o,a),n&&""!==n){var l="";s&&(l="&_systemName_="+encodeURI(s)),-1!==t.indexOf("?")?(t+="&",t+=n+l):(t+="?",t+=n+l)}var u="refresh";if(r&&r.jumpPageOpenMode&&(u=r.jumpPageOpenMode),"popup"===u){var c,f;c=r.jumpPageWidth?r.jumpPageWidth:window.innerWidth-150,f=r.jumpPageHeight?r.jumpPageHeight:window.innerHeight-150;var d="height="+f+", width="+c+", top=0, left=0, toolbar=no, menubar=no,scrollbars=no,resizable=no, location=no, status=no";window.open(t,"newW",d)}else"newTab"===u?window.open(t):location.href=t}function _n(e,t,n,r,i,o){if((void 0===n.isNeedId||null===n.isNeedId||!0===n.isNeedId)&&!o&&e){var a="?";t.indexOf("?")>0&&(a="&"),t=t+a+"id="+e}var s=n.paramStoreId;if(s&&""!==s){var l="paramStoreId="+s;-1!==t.indexOf("?")?(t+="&",t+=l):(t+="?",t+=l)}if(r&&r.length>0){var u=r.join(","),c="ids="+u+"&_idsStr="+u;-1!==t.indexOf("?")?(t+="&",t+=c):(t+="?",t+=c)}return i&&(-1!==t.indexOf("?")?t+="&buttonCode="+i:t+="?buttonCode="+i),t}function Cn(e){var t;return e&&-1!==e.indexOf("page:")&&(t=e.substring(e.indexOf("page:")+"page:".length)),t}function xn(e,t,n,r,i,o,a){return new Promise((function(s,l){var u=Cn(e),c="refresh";r&&r.jumpPageOpenMode&&(c=r.jumpPageOpenMode);var f={jumpMode:c};if(dn.a.setItem(u+"-jumpMode",JSON.stringify(f)),"popup"===c){var d=kn(t,u,n,r,c,i,o,a),h=Sn(r,t,u,n,c,i,o);h._path=d,s(h)}else if("newTab"===c){var p=kn(t,u,n,r,c,i,o,a);window.open(p),s()}else{var m={pageCode:u,customSystem:t.code,jumpMode:c,buttonCode:o,ids:i?i.join(","):""};void 0!==r.isNeedId&&null!==r.isNeedId&&!0!==r.isNeedId||!a&&n&&(m.id=n);var g=r.paramStoreId;g&&""!==g&&(m["paramStoreId"]=g);var v=kn(t,u,n,r,c,i,o,a);m._path=v,s(m)}}))}function Sn(e,t,n,r,i,o,a){var s={};e&&(s.jumpPageTitle=e.jumpPageTitle,s.jumpPageWidth=e.jumpPageWidth,s.jumpPageHeight=e.jumpPageHeight,s.valueMappings=e.valueMappings,s.updateValueEvent=e.updateValueEvent,s.closeEvent=e.closeEvent,s.isRefreshWhenClosePopup=e.isRefreshWhenClosePopup);var l=!1;return"undefined"!==typeof t.standard&&(l=!t.standard),s.pageCode=n,void 0!==e.isNeedId&&null!==e.isNeedId&&!0!==e.isNeedId||r&&(s.dataId=r),s.isDsc=l,s.paramStoreId=e.paramStoreId,s.jumpMode=i,s.ids=o,s.buttonCode=a,s}function kn(e,t,n,r,i,o,a,s){var l=Object(Ue["b"])(e.frontendUrl),u=l+"/#/dsc-full-screen/page?customSystem="+e.code+"&pageCode="+t+"&jumpMode="+i,c=Dn(e);return c&&(u+="&_systemName_="+encodeURI(c)),_n(n,u,r,o,a,s)}function Dn(e){if(e){var t="cn";return window.$locale&&(t=window.$locale),"cn"===t?e.name:e.enName}}function On(e){var t=dn.a.getItem(e);return Tn(t)}function Tn(e){var t="";if(e)for(var n=JSON.parse(e),r=Object.keys(n),i=0;i<r.length;i++)""!==t&&(t+="&"),t+=r[i],t+="=",t+=n[r[i]];return t}function En(e,t,n,r,i,o){if(e&&null!==e&&r&&null!==r&&n&&null!==n&&n.valueMappings){var a=e;Array.isArray(e)&&e.length>0&&(a=e[0]);var s=n.valueMappings;s.forEach((function(e){var n=e.source,s=Object(x["c"])(a,n),l="__";void 0!==s&&null!==s||(n&&t&&n.indexOf(".")>0&&(n=t+l+n),s=Object(x["c"])(a,n));var u=e.target;void 0!==o&&!0===o&&u&&i&&u.indexOf(".")>0&&(u=i+l+u),Object(x["k"])(r,u,s)}))}}var In={customFormatValue:function(e,t,n,r){if(this.customFormat){var i=e[t];this.isObjectProp(t)&&(i=this.objectPropOriginalValue(e,t));var o=un(this.column,i),a=n.call(this,i,o,e,this.column,r);return"undefined"!==typeof a&&(k.a.component(t+r,a),!0)}return!1},isObjectProp:function(e){return!!(e&&e.indexOf(".")>0)},objectPropOriginalValue:function(e,t){try{var n=e;if(t&&t.indexOf(".")>0){var r=t.split(".");return r.forEach((function(e){if(!n)throw n="",n;n=n[e]})),n}return e[t]}catch(i){return""}},objectPropValue:function(e,t){return this.formatter(e,t,this.column)},objectPropValueTwo:function(e,t){if("annex"===t.componentType||"multipartUpload"===t.componentType){var n=JSON.parse(t.fileSet);if(!n.childAnnexDataTableCode)return this.objectPropValue(e,t.prop);var r=vt(n,this.isSql),i=this.objectPropValue(e,t.prop);if(i&&i.length>0){var o=bt(n,r,i,null);return o[o.length-1].showName}}else{if(!t.formatter||"files"!==t.formatter.type)return this.objectPropValue(e,t.prop);var a=JSON.parse(t.formatter.options.fileSet);if(!a.childAnnexDataTableCode)return this.objectPropValue(e,t.prop);var s=vt(a,this.isSql),l=this.objectPropValue(e,t.prop);if(l&&l.length>0){var u=bt(a,s,l,null);return u[u.length-1].showName}}},formatter:function(e,t,n){var r=this.objectPropOriginalValue(e,t);if(void 0!==this.columnFormatter&&"custom"===this.columnFormatter.type){var i;if(this.columnFormatter.options&&this.columnFormatter.options.format&&(i=this.columnFormatter.options.format),i&&null!==i&&""!==i){var o=qe.get(this.listCode);if(o.options&&o.options["eventCallBack"]&&o.options["eventCallBack"][i]&&"function"===typeof o.options["eventCallBack"][i]){var a={value:r,row:e,column:this.column,prop:t,additionalParamMap:o.additionalParamMap};return o.options["eventCallBack"][i].call(this,a)}return un(n,r)}return un(n,r)}return un(n,r)},getColumnValue:function(e,t){var n=t.prop,r=e[n];this.isObjectProp(n)&&(r=this.objectPropOriginalValue(e,n));var i=un(t,r);return{originalValue:r,formatValue:i}},onClickFun:function(e,t,n,r){var i=this.getColumnValue(e,t);n.call(this,i.originalValue,i.formatValue,e,t,r)},isShowButtonFun:function(e,t,n,r){if(void 0===n)return!0;if("function"===typeof n){var i=this.getColumnValue(e,t),o=n.call(this,i.originalValue,i.formatValue,e,t,r);return void 0===o&&(o=!0),o}return n},getHyperLinkSetting:function(e,t,n,r,i,o,a){var s=qe.get(a),l=null;s.options.extraParam&&s.options.extraParam.entityMap&&(l=s.options.extraParam.entityMap);var u,c={};if(e&&e.formatter&&e.formatter.options&&e.formatter.options.format&&(u=e.formatter.options.format),u&&""!==u){var f=hn(JSON.parse(u),t,n,r,i,o,l);f&&f.label&&""!==f.label||(f.label=this.objectPropValueTwo(t,e)),f&&f.title&&""!==f.title||(f.title=f.label),c=f}else c.visible=!0,c.label=this.objectPropValueTwo(t,e),c.title=c.label;return c},clickHyperLink:function(e,t,n,r){var i,o=this;if(e&&e.formatter&&e.formatter.options&&e.formatter.options.format&&(i=e.formatter.options.format),i&&""!==i){var a=!0,s=qe.get(n),l=JSON.parse(i);if(l.beforeClick){var u=l.beforeClick;if(s.options&&s.options["eventCallBack"]&&s.options["eventCallBack"][u]&&"function"===typeof s.options["eventCallBack"][u]){var c={row:t,column:e,rowIndex:r,listCode:n,additionalParamMap:s.additionalParamMap};a=s.options["eventCallBack"][u].call(this,c)}}Object(Ue["d"])(a)?a.then((function(e){o.doClickHyperLink(t,n,r,l,s)})):this.doClickHyperLink(t,n,r,l,s)}},doClickHyperLink:function(e,t,n,r,i){var o=this,a=null;i.options.extraParam&&i.options.extraParam.entityMap&&(a=i.options.extraParam.entityMap),gn(r,i.system,e.id?e.id:e.ID,e,i.additionalParamMap,null,null,a).then((function(r){r&&(r._position="list",r._listCode=t,r._rowIndex=n,r.row=e,o.$emit("open-page",r))}))}},Nn=In,An=function(){var e=this,t=e._self._c;return t("span",{style:e.myStyle},[e.isShowButton()?t("span",[e.label?t("span",[e.operationSetting.permission?t(e.elementType,e._b({directives:[{name:"permission",rawName:"v-permission",value:e.operationSetting.permission,expression:"operationSetting.permission"}],tag:"component",attrs:{disabled:e.preventReclick},nativeOn:{mousedown:function(t){return e.onClickFun.apply(null,arguments)}}},"component",e.operationSetting,!1),[e._v(e._s(e.label))]):t(e.elementType,e._b({tag:"component",attrs:{disabled:e.preventReclick},nativeOn:{mousedown:function(t){return e.onClickFun.apply(null,arguments)}}},"component",e.operationSetting,!1),[e._v(e._s(e.label))])],1):t("span",[e.operationSetting.permission?t(e.elementType,e._b({directives:[{name:"permission",rawName:"v-permission",value:e.operationSetting.permission,expression:"operationSetting.permission"}],tag:"component",attrs:{disabled:e.preventReclick},nativeOn:{mousedown:function(t){return e.onClickFun.apply(null,arguments)}}},"component",e.operationSetting,!1)):t(e.elementType,e._b({tag:"component",attrs:{disabled:e.preventReclick},nativeOn:{mousedown:function(t){return e.onClickFun.apply(null,arguments)}}},"component",e.operationSetting,!1))],1)]):e._e()])},Pn=[],Mn=n("2f62");function Rn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rn(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Bn={name:"RowOperation",props:{editing:{type:Boolean,default:!1},isShow:{type:[Boolean,Function],default:!0},onClick:{type:Function,default:function(){}},entity:{type:Object,default:null},column:{type:Object,default:null},rowIndex:{type:Number,default:null},label:{type:String,default:null},operationSetting:{type:Object,default:null},operationIndex:{type:Number,default:null}},data:function(){return{elementType:"el-button",myStyle:null}},computed:Fn({},Object(Mn["a"])(["preventReclick"])),created:function(){this.operationSetting.elementType&&"el-link"===this.operationSetting.elementType&&(this.operationSetting.type="primary"),this.operationSetting.elementType&&"el-button"!==this.operationSetting.elementType||(this.operationSetting.size="mini"),this.operationSetting.style?this.myStyle=this.operationSetting.style:0===this.operationIndex||void 0!==this.operationSetting.elementType&&"el-button"!==this.operationSetting.elementType||(this.myStyle={marginLeft:"10px"}),this.operationSetting.elementType&&(this.elementType=this.operationSetting.elementType)},methods:{onClickFun:function(){Nn.onClickFun(this.entity,this.column,this.onClick,this.rowIndex)},isShowButton:function(){var e=Nn.isShowButtonFun(this.entity,this.column,this.isShow,this.rowIndex);if(e)if(this.editing){if("lineEditUpdate"===this.operationSetting.code)return!1}else if("restoreEdit"===this.operationSetting.code)return!1;return e}}},Ln=Bn,$n=f(Ln,An,Pn,!1,null,"3c0b801c",null),Vn=$n.exports,jn=function(){var e=this,t=e._self._c;return e.label?t("div",[t("div",{staticClass:"list-file",on:{click:function(t){return e.previewMuti()},dblclick:e.dblclickEvent}},[t("i",{staticClass:"el-icon-paperclip"}),e._v("\n "+e._s(e.label)+"\n "),t("i",{staticClass:"el-icon-view annex-cell"})]),t("el-dialog",{attrs:{"append-to-body":!0,"show-close":!0,title:e.$t("imatrixUIPublicModel.previewImage"),visible:e.showPreviewSingleImage},on:{"update:visible":function(t){e.showPreviewSingleImage=t},close:function(t){return e.$emit("close")}}},[t("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.$t("imatrixUIPublicModel.previewImage"))+"\n ")]),e.previewImageInfo&&e.previewImageInfo.isImg?t("el-image",{attrs:{"preview-src-list":[e.previewImageInfo.src],src:e.previewImageInfo.src}}):e._e()],1),t("el-dialog",{attrs:{"append-to-body":!0,"show-close":!0,title:e.$t("imatrixUIPublicModel.preview"),visible:e.showPreviewMulti,width:"30%"},on:{"update:visible":function(t){e.showPreviewMulti=t},close:function(t){return e.$emit("close")}}},[t("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.$t("imatrixUIPublicModel.preview"))+"\n ")]),t("el-table",{attrs:{"show-header":!1,data:e.fileList}},[t("el-table-column",{attrs:{prop:"showName",width:"200"}}),t("el-table-column",{attrs:{align:"right"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("el-tooltip",{staticClass:"item",attrs:{content:e.$t("imatrixUIPublicModel.preview"),effect:"dark",placement:"top"}},[t("i",{staticClass:"el-icon-view",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.previewSingle(n.row)}}})])]}}],null,!1,3592000678)}),t("el-table-column",{scopedSlots:e._u([{key:"default",fn:function(n){return[t("el-tooltip",{staticClass:"item",attrs:{content:e.$t("imatrixUIPublicModel.download"),effect:"dark",placement:"top"}},[t("i",{staticClass:"el-icon-download",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.donwloadFile(n.$index,e.fileList)}}})])]}}],null,!1,248088187)})],1)],1)],1):e._e()},zn=[],Hn={name:"FsPreview",components:{},props:{label:{type:String,default:null},fileSetObj:{type:Object,default:null},isSql:{type:Boolean,default:!1},entity:{type:Object,default:function(){return{}}}},data:function(){return{showPreviewSingleImage:!1,showPreviewMulti:!1,previewImageInfo:{},fileList:[]}},created:function(){},methods:{dblclickEvent:function(){clearTimeout(this.time)},previewSingle:function(e){e=yt(e.showName,e.serverPath),Object(x["j"])(e.showName)?(this.previewImageInfo=e,this.showPreviewSingleImage=!0):this.previewDoc(e)},previewMuti:function(){var e=this,t=this.analysisFileSetObj(this.fileSetObj,this.isSql),n=Object(x["c"])(this.entity,t.serverPath);if(n){var r=n.split(",");this.$http.post(k.a.prototype.baseURL+"/common/fs-upload/search-file-names",r).then((function(t){e.fileList=[],r.forEach((function(n){e.fileList.push({showName:t[n],serverPath:n})})),e.showPreviewMulti=!0}))}},previewDoc:function(e){var t=Object(He["c"])(),n=k.a.prototype.baseURL+"/common/fs-upload/preview?jwt="+t;Object(Ue["c"])(k.a.prototype.systemCode)&&(n=k.a.prototype.baseAPI+"/component/fs-upload/preview?jwt="+t);var r=e.showName;k.a.prototype.customPreviewUrl?window.open(Object(Ue["b"])(k.a.prototype.portalUrl)+"/#/file-service/preview?serverPath="+e.serverPath+"&showName="+encodeURI(r),e.showName):window.open(n+"&showName="+encodeURI(r)+"&serverPath="+e.serverPath)},donwloadFile:function(e,t){var n=Object(He["c"])(),r=this.formatFileName(this.fileList[e].showName);if(this.fileList[e].src)window.open(this.fileList[e].src);else{var i=k.a.prototype.baseURL+"/common/super-form/downloads?jwt="+n;Object(Ue["c"])(k.a.prototype.systemCode)&&(i=k.a.prototype.baseAPI+"/component/super-form/downloads?jwt="+n);var o=i+"&showName="+encodeURI(r)+"&serverPath="+this.fileList[e].serverPath;window.open(o)}},analysisFileSetObj:function(e,t){var n="",r="";return e&&(e.showNameData&&(t?e.showNameData.dbName&&(n=e.showNameData.dbName):e.showNameData.name&&(n=e.showNameData.name)),e.serverNameData&&(t?e.serverNameData.dbName&&(r=e.serverNameData.dbName):e.serverNameData.name&&(r=e.serverNameData.name))),{showName:n,serverPath:r}},formatFileName:function(e){return e.replace("#","~~").replace("?","~$").replace("&","$")}}},Un=Hn,Wn=f(Un,jn,zn,!1,null,"6d0fa3ee",null),qn=Wn.exports;qn.install=function(e){e.component(qn.name,qn)};var Gn=qn,Yn=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{visible:"",title:e.title,"append-to-body":"",fullscreen:""},on:{close:function(t){return e.$emit("closeRichEditorContent")}}},[t("el-image",{ref:"previewImg",staticStyle:{display:"none",width:"100px",height:"100px"},attrs:{src:e.srcList[0],"preview-src-list":e.srcList}}),t("div",{attrs:{id:e.fullscreenViewerId}})],1)},Kn=[],Xn={name:"RichEditorViewer",props:{entity:{type:Object,default:null},prop:{type:String,default:null},value:{type:String,default:""},disabled:{type:Boolean,default:!1},options:{type:Object,default:null},plugins:{type:[String,Array],default:"print preview searchreplace directionality fullscreen image link table hr advlist lists wordcount "},toolbar:{type:[String,Array],default:" undo redo | formatselect fontsizeselect bold italic strikethrough underline hr forecolor backcolor | image | lineheight bullist numlist table | print fullscreen preview "}},data:function(){return{srcList:[],psrcList:[],viewerId:"aglie_rich_editor_"+(new Date).getTime(),dialogVisible:!1,fullscreenViewerId:"editor_viewer_"+(new Date).getTime(),ImageComponent:null,title:""}},watch:{value:function(e){this.contentValue=e,this.entity[this.prop]=e}},created:function(){},mounted:function(){},methods:{showImage:function(e){this.srcList=[e.target.currentSrc],this.$refs.previewImg.showViewer=!0},showContent:function(e,t){var n=this;this.title=t;var r=this,i=e.replaceAll("<img",'<img @click="showImage" ');i="<div> "+i+" </div> ",this.ImageComponent=k.a.extend({methods:{showImage:function(e){r.showImage(e)}},template:i});var o=(new this.ImageComponent).$mount();this.$nextTick((function(){document.getElementById(n.fullscreenViewerId).appendChild(o.$el)}))}}},Jn=Xn,Zn=f(Jn,Yn,Kn,!1,null,null,null),Qn=Zn.exports;function er(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=tr(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function tr(e,t){if(e){if("string"===typeof e)return nr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nr(e,t):void 0}}function nr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ir(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rr(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var or={name:"NormalColumn",components:{DynamicInput:sn,RowOperation:Vn,ViewImageDialog:nn,FsPreview:Gn,RichEditorViewer:Qn},props:{column:{type:Object,default:null},customFormat:{type:Function,default:null},listCode:{type:String,default:null},isSql:{type:Boolean,default:!1},newWidth:{type:Number,default:null},dragColumnProp:{type:String,default:null},tableName:{type:String,default:null},pageCode:{type:String,default:null},listName:{type:String,default:null},currentPage:{type:Number,default:1},gridData:{type:Array,default:null},pageGridData:{type:Array,default:null}},data:function(){var e,t=qe.get(this.listCode);return t.options.extraParam&&t.options.extraParam.entityMap&&(e=t.options.extraParam.entityMap),{selectRow:null,that:this,align:"left",headerAlign:"left",columnFormatter:this.column.formatter,hyperLinks:{},fileDownType:"",isFormSubTable:!1,subTableCanAdd:!0,isShowAdd:!1,cellWidth:null,parentFormData:e,fileMultiple:!1,showSingleImgFlag:!1,singleImgSrc:"",fileList:[],index:null,isEditable:this.column.editable,showRichEditorViewer:!1,getFormData:t.options.getFormData,getTableGridData:t.options.getGridData}},computed:ir({filters:function(){if(this.column.filterable){var e,t=qe.get(this.listCode),n=Xe(t.gridData,this.column.prop),r=[],i=er(n);try{for(i.s();!(e=i.n()).done;){var o=e.value;r.push({text:o,value:o})}}catch(a){i.e(a)}finally{i.f()}return r}return null},filterMethod:function(){return this.column.filterable?this.filterHandler:null},fixed:function(){return!(this.column.fixed&&"false"===this.column.fixed||void 0===this.column.fixed||""===this.column.fixed)&&("operation"===this.column.prop&&this.column.fixed&&"left"===this.column.fixed?"right":this.column.fixed)},sortable:function(){var e=qe.get(this.listCode);return!(e&&e.options&&e.options.isFormSubTable&&e.options.showOperationButton)&&("false"!==this.column.sortable&&!1!==this.column.sortable&&""!==this.column.sortable&&(("true"===this.column.sortable||!0===this.column.sortable||!!this.column.sortable)&&"custom"))},lineEdit:function(){var e=!1;if(this.listCode){var t=qe.get(this.listCode);e=null!==t.lineEdit&&void 0!==t.lineEdit&&t.lineEdit}return e}},Object(Mn["a"])(["preventReclick"])),watch:{isSql:{handler:function(e,t){this.isSql=e}},newWidth:{handler:function(e,t){void 0!==e&&null!==e&&this.dragColumnProp&&this.dragColumnProp===this.column.prop&&(this.cellWidth=e)}}},created:function(){this.column.width&&(this.cellWidth=this.column.width-10);var e=qe.get(this.listCode);if(e&&e.options&&e.options.isFormSubTable&&(this.isFormSubTable=e.options.isFormSubTable),e&&e.options&&void 0!==e.options.subTableCanAdd&&null!==e.options.subTableCanAdd&&(this.subTableCanAdd=e.options.subTableCanAdd),this.column.prop&&"operation"===this.column.prop||"undefined"!==typeof e.options.showOverflowTooltip&&!1===e.options.showOverflowTooltip?this.isShowOverflowTooltip=!1:this.isShowOverflowTooltip=!0,"undefined"!==typeof e.options.align?this.align=e.options.align:this.column.contAlign&&""!==this.column.contAlign&&(this.align=this.column.contAlign),"undefined"!==typeof e.options.headerAlign?this.headerAlign=e.options.headerAlign:this.column.titleAlign&&""!==this.column.titleAlign?this.headerAlign=this.column.titleAlign:this.headerAlign="left",void 0===e.isHasDynamic&&void 0!==this.column.dynamic&&!0===this.column.dynamic&&(e.isHasDynamic=!0),this.label=this.getHeader(),this.column.operations,this.isShowAdd=this.isFormSubTable&&"operation"===this.column.prop&&this.subTableCanAdd&&e.options&&e.options.showOperationButton,this.column.fileSet&&""!==this.column.fileSet&&"annex"===this.column.componentType){var t=JSON.parse(this.column.fileSet);t&&t.multiple&&(this.fileMultiple=!0)}},mounted:function(){var e=this;Yt.$on("un-edit",(function(t){if(e.column.componentType&&("multiselect"===e.column.componentType||"select"===e.column.componentType)){var n=Ct(e.column);if(n)if("_dynamic-source-data-"+e.column.prop in e.column){for(var r,i=e.column["_dynamic-source-data-"+e.column.prop],o=i.valueSetOptions,a=0;a<o.length;a++){var s=o[a];if(e.column.prop===s.valueColumn.dbColumnName){r=s.columnName;break}}if(r){var l=t.row[e.column.prop];"select"===e.column.componentType?e.$set(t.row,e.column.prop,l):e.$set(t.row,e.column.prop,l.join(","))}}else{var u=t.row[e.column.prop];u&&"[object Array]"===Object.prototype.toString.apply(u)&&e.$set(t.row,e.column.prop,u.join(","))}else{var c=t.row[e.column.prop];c&&"[object Array]"===Object.prototype.toString.apply(c)&&e.$set(t.row,e.column.prop,c.join(","))}}}))},destroyed:function(){Yt.$off("un-edit")},methods:ir(ir(ir({},Nn),Xt),{},{getHeader:function(){return this.column.titleValueSet?this.formatHeader():this.column.label.replace(/\\n/g,"</br>")},formatHeader:function(){return cn(this.column.titleValueSetValue,this.column.label)},filterHandler:function(e,t,n){var r=n["property"];return t[r]===e},onFocus:function(e){var t=qe.get(this.listCode);t.lineEdit.editingCell&&(t.lineEdit.editingCell.row=e,t.lineEdit.editingCell.prop=this.column.prop)},findIndex:function(e){this.index=e;var t=qe.get(this.listCode);t.lineEdit.editingCell&&(t.lineEdit.editingCell.row=e,t.lineEdit.editingCell.prop=this.column.prop)},refresData:function(e){this.$emit("refresData",e)},refresPortData:function(e,t){var n=qe.get(this.listCode);n&&n.lineEdit&&n.lineEdit.editingCell?this.$emit("refresPortData",e,t,n.lineEdit.editingCell.row):this.$emit("refresPortData",e,t,this.index)},refresPortsData:function(e){var t=qe.get(this.listCode);t&&t.lineEdit&&t.lineEdit.editingCell?this.$emit("refresPortsData",e,t.lineEdit.editingCell.row):this.$emit("refresPortsData",e,this.index)},refresMainTableFields:function(e){this.$emit("refresMainTableFields",e)},move:function(e){if("left"===e){var t=Qe.getLeftColumn(this.column.prop),n=qe.get(this.listCode);n.lineEdit.editingCell.prop=t}},isSaveByEnter:function(){var e=qe.get(this.listCode);return"undefined"===typeof e.options.lineEditOptions.isSaveByEnter||ut("isSaveByEnter",this.listCode)&&!0===e.options.lineEditOptions.isSaveByEnter},isRestoreByEsc:function(){var e=qe.get(this.listCode);return"undefined"===typeof e.options.lineEditOptions.isRestoreByEsc||ut("isRestoreByEsc",this.listCode)&&!0===e.options.lineEditOptions.isRestoreByEsc},canFocus:function(e){var t=qe.get(this.listCode);return e===t.lineEdit.editingCell.row&&this.column.prop===t.lineEdit.editingCell.prop},getLabel:function(e,t){this.transferColumnDataToUpperCase(e);var n=this.objectPropValueTwo(e,this.column);return n},getCellValue:function(e){var t=Object(x["c"])(e,this.column.prop,!1);return void 0!==t&&null!==t||(this.transferColumnDataToUpperCase(e),t=Object(x["c"])(e,this.column.prop,!1)),t},transferColumnDataToUpperCase:function(e){var t=/[A-Z]+/;this.isSql&&t.test(this.column.prop)&&this.transferColumnDataToUpperCaseWithProp(e,this.column.prop.toLowerCase(),this.column.prop)},transferColumnDataToUpperCaseWithProp:function(e,t,n){var r;if(t&&t.indexOf(".")>0){var i=Object(x["g"])(t,e),o=t.substring(t.lastIndexOf(".")+1);r=i[o],void 0!==r&&(i[n]=r,delete i[o])}else r=e[t],void 0!==r&&(e[n]=r,delete e[t]);return r},getMyHyperLinkSetting:function(e){this.transferColumnDataToUpperCase(e);var t,n=qe.get(this.listCode);n&&n.basicInfo&&n.basicInfo.tableName&&(t=n.basicInfo.tableName);var r=this.getHyperLinkSetting(this.column,e,this.isSql,n.additionalParamMap,n.contextParameter,t,this.listCode);return r.icon=this.getHyperIconClass(r),r},getHyperIconClass:function(e){var t;return e&&null!==e&&e.icon&&""!==e.icon&&(t=e.icon),t&&0===t.indexOf("fa-")&&(t="fa "+t),t},createFormSubTableRow:function(){this.createRow(this.listCode)},handleCommand:function(e){var t=null;this.column.operations.forEach((function(n){n.isGroup&&n.buttons.forEach((function(n){n.props.code===e.comman&&(t=n)}))})),t&&Nn.onClickFun(e.row,this.column,t.onClick,e.rowIndex)},beforeHandleCommand:function(e,t,n){return{comman:e,row:t,rowIndex:n}},previewImg:function(e){this.fileList=wt(e,this.column,this.isSql),this.showSingleImgFlag=!0},getFileList:function(e){return wt(e,this.column,this.isSql)},getColumnWidth:function(){return this.column&&"operation"===this.column.prop&&!this.column.width?"210":this.column.width?this.column.width+"":"130"},fnProhibitToEdit:function(e){this.isEditable=e},prohibitToEdit:function(e){this.$emit("prohibitToEdit",e)},isFieldRequired:function(){return st(this.column.prop,this.listCode)},showRichEditorContent:function(e,t,n){var r=this;this.showRichEditorViewer=!0,this.$nextTick((function(){r.$refs.richEditorViewerRef.showContent(e[t.prop],n)}))},closeRichEditorContent:function(){this.showRichEditorViewer=!1}})},ar=or,sr=(n("9b99"),f(ar,je,ze,!1,null,"60027a16",null)),lr=sr.exports,ur=function(){var e=this,t=e._self._c;return t("el-table-column",{attrs:{width:"150",align:e.column.groupHeader?"center":""},scopedSlots:e._u([{key:"header",fn:function(){return[t("span",{staticClass:"cell--span",attrs:{title:e.label},domProps:{innerHTML:e._s(e.label)}})]},proxy:!0}])},[e.customFormat?e._l(e.visibleChildren,(function(n,r){return t(n.prop?"NormalColumn":"GroupColumn",{key:n.label+r,tag:"component",attrs:{column:n,"is-sql":e.isSql,"custom-format":n.prop?e.customFormat[n.prop]:e.customFormat,"list-code":e.listCode},on:{findIndex:function(t){return e.findIndex(e.scope.$index)},refresData:e.refresData,refresPortData:e.refresPortData,refresPortsData:e.refresPortsData,refresMainTableFields:e.refresMainTableFields}})})):e._l(e.visibleChildren,(function(n,r){return t(n.prop?"NormalColumn":"GroupColumn",{key:n.label+r,tag:"component",attrs:{"is-sql":e.isSql,column:n,"list-code":e.listCode}})}))],2)},cr=[],fr={name:"GroupColumn",components:{NormalColumn:lr,GroupColumn:pr},props:{column:{type:Object,default:null},customFormat:{type:Object,default:null},listCode:{type:String,default:null},isSql:{type:Boolean,default:!1}},data:function(){return{label:null}},computed:{visibleChildren:function(){return this.column.children?this.column.children.filter((function(e){return void 0===e.show||e.show})):[]}},created:function(){this.label=this.getHeader()},methods:{getHeader:function(){return this.column.titleValueSet?this.formatHeader():this.column.label.replace(/\\n/g,"</br>")},formatHeader:function(){return cn(this.column.titleValueSetValue,this.column.label)}}},dr=fr,hr=f(dr,ur,cr,!1,null,null,null),pr=hr.exports,mr=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{title:e.$t("superGrid.columnConfig"),width:"50%",top:"5vh","append-to-body":"","close-on-click-modal":!1,visible:!0,"show-close":!0},on:{open:function(t){return e.$emit("open")},opend:function(t){return e.$emit("opend")},close:function(t){return e.$emit("close")},closed:function(t){return e.$emit("closed")}}},[t("div",{staticClass:"operation-area"},[t("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.saveConfig}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.sure"))+"\n ")]),t("el-button",{attrs:{size:"small"},on:{click:e.resetConfig}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.reset"))+"\n ")]),t("el-button",{attrs:{size:"small"},on:{click:function(t){return e.$emit("close")}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.cancel"))+"\n ")]),e.isDragColumn?t("span",{staticStyle:{"padding-left":"10px",color:"red"}},[e._v("("+e._s(e.$t("superGrid.dragColumnOrderMessage"))+")")]):e._e()],1),e.hasLoaded?t("el-table",{staticClass:"custom-config-elTable",attrs:{data:e.columns,"max-height":"450"}},[t("el-table-column",{attrs:{property:"label",label:e.$t("superGrid.label"),width:"220"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("span",{staticClass:"ellipsis cell--span",attrs:{title:n.row.label}},[e._v(e._s(n.row.label))])]}}],null,!1,2147218805)}),t("el-table-column",{attrs:{property:"showType",label:e.$t("superGrid.isShow"),width:"120"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("el-select",{attrs:{disabled:e.isDisabledShow(n.row)},on:{change:function(t){return e.changeShow(n.row,t)}},model:{value:n.row.showType,callback:function(t){e.$set(n.row,"showType",t)},expression:"scope.row.showType"}},[t("el-option",{attrs:{label:e.isDisabledShow(n.row)?e.$t("superGrid.default"):e.$t("superGrid.show"),value:"default"}}),t("el-option",{attrs:{label:e.$t("superGrid.hidden"),value:"false"}})],1)]}}],null,!1,38039806)}),t("el-table-column",{attrs:{property:"exportType",label:e.$t("superGrid.isExportable"),width:"120"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("el-select",{attrs:{disabled:e.isDisabledExport(n.row)},on:{change:function(t){return e.changeExport(n.row,t)}},model:{value:n.row.exportType,callback:function(t){e.$set(n.row,"exportType",t)},expression:"scope.row.exportType"}},[t("el-option",{attrs:{label:e.isDisabledExport(n.row)?e.$t("superGrid.default"):e.$t("superGrid.export"),value:"default"}}),t("el-option",{attrs:{label:e.$t("superGrid.unExport"),value:"false"}})],1)]}}],null,!1,1858906284)}),e.isDragColumn?t("el-table-column",{attrs:{property:"displayOrderType",label:e.$t("superGrid.displayOrder"),width:"120"},scopedSlots:e._u([{key:"default",fn:function(n){return[n.row.displayOrderType&&"custom"===n.row.displayOrderType?t("el-input",{attrs:{clearable:"",size:"mini"},on:{clear:function(t){return e.clearDisplayOrder(n.row)}},model:{value:n.row.displayOrder,callback:function(t){e.$set(n.row,"displayOrder",t)},expression:"scope.row.displayOrder"}}):t("el-select",{model:{value:n.row.displayOrderType,callback:function(t){e.$set(n.row,"displayOrderType",t)},expression:"scope.row.displayOrderType"}},[t("el-option",{attrs:{label:e.$t("superGrid.default"),value:"default"}}),t("el-option",{attrs:{label:e.$t("superGrid.custom"),value:"custom"}})],1)]}}],null,!1,4144593745)}):e._e(),t("el-table-column",{attrs:{property:"widthType",label:e.$t("superGrid.width"),width:"120"},scopedSlots:e._u([{key:"default",fn:function(n){return[n.row.widthType&&"custom"===n.row.widthType?t("el-input",{attrs:{size:"mini",clearable:""},on:{clear:function(t){return e.clearWidth(n.row)}},model:{value:n.row.width,callback:function(t){e.$set(n.row,"width",t)},expression:"scope.row.width"}}):t("el-select",{model:{value:n.row.widthType,callback:function(t){e.$set(n.row,"widthType",t)},expression:"scope.row.widthType"}},[t("el-option",{attrs:{label:e.$t("superGrid.default"),value:"default"}}),t("el-option",{attrs:{label:e.$t("superGrid.custom"),value:"custom"}})],1)]}}],null,!1,920931843)})],1):e._e()],1)},gr=[];
|
|
59
|
+
*/(function(o,a){r=a,i="function"===typeof r?r.call(t,n,t,e):r,void 0===i||(e.exports=i)})(0,(function(){var e=window,t={placement:"bottom",gpuAcceleration:!0,offset:0,boundariesElement:"viewport",boundariesPadding:5,preventOverflowOrder:["left","right","top","bottom"],flipBehavior:"flip",arrowElement:"[x-arrow]",arrowOffset:0,modifiers:["shift","offset","preventOverflow","keepTogether","arrow","flip","applyStyle"],modifiersIgnored:[],forceAbsolute:!1};function n(e,n,r){this._reference=e.jquery?e[0]:e,this.state={};var i="undefined"===typeof n||null===n,o=n&&"[object Object]"===Object.prototype.toString.call(n);return this._popper=i||o?this.parse(o?n:{}):n.jquery?n[0]:n,this._options=(0,c.default)({},t,r),this._options.modifiers=this._options.modifiers.map(function(e){if(-1===this._options.modifiersIgnored.indexOf(e))return"applyStyle"===e&&this._popper.setAttribute("x-placement",this._options.placement),this.modifiers[e]||e}.bind(this)),this.state.position=this._getPosition(this._popper,this._reference),p(this._popper,{position:this.state.position,top:0}),this.update(),this._setupEventListeners(),this}function r(t){var n=t.style.display,r=t.style.visibility;t.style.display="block",t.style.visibility="hidden";t.offsetWidth;var i=e.getComputedStyle(t),o=parseFloat(i.marginTop)+parseFloat(i.marginBottom),a=parseFloat(i.marginLeft)+parseFloat(i.marginRight),s={width:t.offsetWidth+a,height:t.offsetHeight+o};return t.style.display=n,t.style.visibility=r,s}function i(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function o(e){var t=(0,c.default)({},e);return t.right=t.left+t.width,t.bottom=t.top+t.height,t}function s(e,t){var n,r=0;for(n in e){if(e[n]===t)return r;r++}return null}function u(t,n){var r=e.getComputedStyle(t,null);return r[n]}function f(t){var n=t.offsetParent;return n!==e.document.body&&n?n:e.document.documentElement}function d(t){var n=t.parentNode;return n?n===e.document?e.document.body.scrollTop||e.document.body.scrollLeft?e.document.body:e.document.documentElement:-1!==["scroll","auto"].indexOf(u(n,"overflow"))||-1!==["scroll","auto"].indexOf(u(n,"overflow-x"))||-1!==["scroll","auto"].indexOf(u(n,"overflow-y"))?n:d(t.parentNode):t}function h(t){return t!==e.document.body&&("fixed"===u(t,"position")||(t.parentNode?h(t.parentNode):t))}function p(e,t){function n(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}(0,l.default)(t).forEach((function(r){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(r)&&n(t[r])&&(i="px"),e.style[r]=t[r]+i}))}function m(e){var t={};return e&&"[object Function]"===t.toString.call(e)}function g(e){var t={width:e.offsetWidth,height:e.offsetHeight,left:e.offsetLeft,top:e.offsetTop};return t.right=t.left+t.width,t.bottom=t.top+t.height,t}function v(e){var t=e.getBoundingClientRect(),n=-1!=navigator.userAgent.indexOf("MSIE"),r=n&&"HTML"===e.tagName?-e.scrollTop:t.top;return{left:t.left,top:r,right:t.right,bottom:t.bottom,width:t.right-t.left,height:t.bottom-r}}function b(e,t,n){var r=v(e),i=v(t);if(n){var o=d(t);i.top+=o.scrollTop,i.bottom+=o.scrollTop,i.left+=o.scrollLeft,i.right+=o.scrollLeft}var a={top:r.top-i.top,left:r.left-i.left,bottom:r.top-i.top+r.height,right:r.left-i.left+r.width,width:r.width,height:r.height};return a}function y(t){for(var n=["","ms","webkit","moz","o"],r=0;r<n.length;r++){var i=n[r]?n[r]+t.charAt(0).toUpperCase()+t.slice(1):t;if("undefined"!==typeof e.document.body.style[i])return i}return null}return n.prototype.destroy=function(){return this._popper.removeAttribute("x-placement"),this._popper.style.left="",this._popper.style.position="",this._popper.style.top="",this._popper.style[y("transform")]="",this._removeEventListeners(),this._options.removeOnDestroy&&this._popper.remove(),this},n.prototype.update=function(){var e={instance:this,styles:{}};e.placement=this._options.placement,e._originalPlacement=this._options.placement,e.offsets=this._getOffsets(this._popper,this._reference,e.placement),e.boundaries=this._getBoundaries(e,this._options.boundariesPadding,this._options.boundariesElement),e=this.runModifiers(e,this._options.modifiers),"function"===typeof this.state.updateCallback&&this.state.updateCallback(e)},n.prototype.onCreate=function(e){return e(this),this},n.prototype.onUpdate=function(e){return this.state.updateCallback=e,this},n.prototype.parse=function(t){var n={tagName:"div",classNames:["popper"],attributes:[],parent:e.document.body,content:"",contentType:"text",arrowTagName:"div",arrowClassNames:["popper__arrow"],arrowAttributes:["x-arrow"]};t=(0,c.default)({},n,t);var r=e.document,i=r.createElement(t.tagName);if(s(i,t.classNames),l(i,t.attributes),"node"===t.contentType?i.appendChild(t.content.jquery?t.content[0]:t.content):"html"===t.contentType?i.innerHTML=t.content:i.textContent=t.content,t.arrowTagName){var o=r.createElement(t.arrowTagName);s(o,t.arrowClassNames),l(o,t.arrowAttributes),i.appendChild(o)}var a=t.parent.jquery?t.parent[0]:t.parent;if("string"===typeof a){if(a=r.querySelectorAll(t.parent),a.length>1&&console.warn("WARNING: the given `parent` query("+t.parent+") matched more than one element, the first one will be used"),0===a.length)throw"ERROR: the given `parent` doesn't exists!";a=a[0]}return a.length>1&&a instanceof Element===!1&&(console.warn("WARNING: you have passed as parent a list of elements, the first one will be used"),a=a[0]),a.appendChild(i),i;function s(e,t){t.forEach((function(t){e.classList.add(t)}))}function l(e,t){t.forEach((function(t){e.setAttribute(t.split(":")[0],t.split(":")[1]||"")}))}},n.prototype._getPosition=function(e,t){var n=f(t);if(this._options.forceAbsolute)return"absolute";var r=h(t,n);return r?"fixed":"absolute"},n.prototype._getOffsets=function(e,t,n){n=n.split("-")[0];var i={};i.position=this.state.position;var o="fixed"===i.position,a=b(t,f(e),o),s=r(e);return-1!==["right","left"].indexOf(n)?(i.top=a.top+a.height/2-s.height/2,i.left="left"===n?a.left-s.width:a.right):(i.left=a.left+a.width/2-s.width/2,i.top="top"===n?a.top-s.height:a.bottom),i.width=s.width,i.height=s.height,{popper:i,reference:a}},n.prototype._setupEventListeners=function(){if(this.state.updateBound=this.update.bind(this),e.addEventListener("resize",this.state.updateBound),"window"!==this._options.boundariesElement){var t=d(this._reference);t!==e.document.body&&t!==e.document.documentElement||(t=e),t.addEventListener("scroll",this.state.updateBound),this.state.scrollTarget=t}},n.prototype._removeEventListeners=function(){e.removeEventListener("resize",this.state.updateBound),"window"!==this._options.boundariesElement&&this.state.scrollTarget&&(this.state.scrollTarget.removeEventListener("scroll",this.state.updateBound),this.state.scrollTarget=null),this.state.updateBound=null},n.prototype._getBoundaries=function(t,n,r){var i,o,a={};if("window"===r){var s=e.document.body,l=e.document.documentElement;o=Math.max(s.scrollHeight,s.offsetHeight,l.clientHeight,l.scrollHeight,l.offsetHeight),i=Math.max(s.scrollWidth,s.offsetWidth,l.clientWidth,l.scrollWidth,l.offsetWidth),a={top:0,right:i,bottom:o,left:0}}else if("viewport"===r){var u=f(this._popper),c=d(this._popper),h=g(u),p=function(e){return e==document.body?Math.max(document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},m=function(e){return e==document.body?Math.max(document.documentElement.scrollLeft,document.body.scrollLeft):e.scrollLeft},v="fixed"===t.offsets.popper.position?0:p(c),b="fixed"===t.offsets.popper.position?0:m(c);a={top:0-(h.top-v),right:e.document.documentElement.clientWidth-(h.left-b),bottom:e.document.documentElement.clientHeight-(h.top-v),left:0-(h.left-b)}}else a=f(this._popper)===r?{top:0,left:0,right:r.clientWidth,bottom:r.clientHeight}:g(r);return a.left+=n,a.right-=n,a.top=a.top+n,a.bottom=a.bottom-n,a},n.prototype.runModifiers=function(e,t,n){var r=t.slice();return void 0!==n&&(r=this._options.modifiers.slice(0,s(this._options.modifiers,n))),r.forEach(function(t){m(t)&&(e=t.call(this,e))}.bind(this)),e},n.prototype.isModifierRequired=function(e,t){var n=s(this._options.modifiers,e);return!!this._options.modifiers.slice(0,n).filter((function(e){return e===t})).length},n.prototype.modifiers={},n.prototype.modifiers.applyStyle=function(e){var t,n={position:e.offsets.popper.position},r=Math.round(e.offsets.popper.left),i=Math.round(e.offsets.popper.top);return this._options.gpuAcceleration&&(t=y("transform"))?(n[t]="translate3d("+r+"px, "+i+"px, 0)",n.top=0,n.left=0):(n.left=r,n.top=i),(0,c.default)(n,e.styles),p(this._popper,n),this._popper.setAttribute("x-placement",e.placement),this.isModifierRequired(this.modifiers.applyStyle,this.modifiers.arrow)&&e.offsets.arrow&&p(e.arrowElement,e.offsets.arrow),e},n.prototype.modifiers.shift=function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets.reference,a=o(e.offsets.popper),s={y:{start:{top:i.top},end:{top:i.top+i.height-a.height}},x:{start:{left:i.left},end:{left:i.left+i.width-a.width}}},l=-1!==["bottom","top"].indexOf(n)?"x":"y";e.offsets.popper=(0,c.default)(a,s[l][r])}return e},n.prototype.modifiers.preventOverflow=function(e){var t=this._options.preventOverflowOrder,n=o(e.offsets.popper),r={left:function(){var t=n.left;return n.left<e.boundaries.left&&(t=Math.max(n.left,e.boundaries.left)),{left:t}},right:function(){var t=n.left;return n.right>e.boundaries.right&&(t=Math.min(n.left,e.boundaries.right-n.width)),{left:t}},top:function(){var t=n.top;return n.top<e.boundaries.top&&(t=Math.max(n.top,e.boundaries.top)),{top:t}},bottom:function(){var t=n.top;return n.bottom>e.boundaries.bottom&&(t=Math.min(n.top,e.boundaries.bottom-n.height)),{top:t}}};return t.forEach((function(t){e.offsets.popper=(0,c.default)(n,r[t]())})),e},n.prototype.modifiers.keepTogether=function(e){var t=o(e.offsets.popper),n=e.offsets.reference,r=Math.floor;return t.right<r(n.left)&&(e.offsets.popper.left=r(n.left)-t.width),t.left>r(n.right)&&(e.offsets.popper.left=r(n.right)),t.bottom<r(n.top)&&(e.offsets.popper.top=r(n.top)-t.height),t.top>r(n.bottom)&&(e.offsets.popper.top=r(n.bottom)),e},n.prototype.modifiers.flip=function(e){if(!this.isModifierRequired(this.modifiers.flip,this.modifiers.preventOverflow))return console.warn("WARNING: preventOverflow modifier is required by flip modifier in order to work, be sure to include it before flip!"),e;if(e.flipped&&e.placement===e._originalPlacement)return e;var t=e.placement.split("-")[0],n=i(t),r=e.placement.split("-")[1]||"",a=[];return a="flip"===this._options.flipBehavior?[t,n]:this._options.flipBehavior,a.forEach(function(s,l){if(t===s&&a.length!==l+1){t=e.placement.split("-")[0],n=i(t);var u=o(e.offsets.popper),c=-1!==["right","bottom"].indexOf(t);(c&&Math.floor(e.offsets.reference[t])>Math.floor(u[n])||!c&&Math.floor(e.offsets.reference[t])<Math.floor(u[n]))&&(e.flipped=!0,e.placement=a[l+1],r&&(e.placement+="-"+r),e.offsets.popper=this._getOffsets(this._popper,this._reference,e.placement).popper,e=this.runModifiers(e,this._options.modifiers,this._flip))}}.bind(this)),e},n.prototype.modifiers.offset=function(e){var t=this._options.offset,n=e.offsets.popper;return-1!==e.placement.indexOf("left")?n.top-=t:-1!==e.placement.indexOf("right")?n.top+=t:-1!==e.placement.indexOf("top")?n.left-=t:-1!==e.placement.indexOf("bottom")&&(n.left+=t),e},n.prototype.modifiers.arrow=function(e){var t=this._options.arrowElement,n=this._options.arrowOffset;if("string"===typeof t&&(t=this._popper.querySelector(t)),!t)return e;if(!this._popper.contains(t))return console.warn("WARNING: `arrowElement` must be child of its popper element!"),e;if(!this.isModifierRequired(this.modifiers.arrow,this.modifiers.keepTogether))return console.warn("WARNING: keepTogether modifier is required by arrow modifier in order to work, be sure to include it before arrow!"),e;var i={},a=e.placement.split("-")[0],s=o(e.offsets.popper),l=e.offsets.reference,u=-1!==["left","right"].indexOf(a),c=u?"height":"width",f=u?"top":"left",d=u?"left":"top",h=u?"bottom":"right",p=r(t)[c];l[h]-p<s[f]&&(e.offsets.popper[f]-=s[f]-(l[h]-p)),l[f]+p>s[h]&&(e.offsets.popper[f]+=l[f]+p-s[h]);var m=l[f]+(n||l[c]/2-p/2),g=m-s[f];return g=Math.max(Math.min(s[c]-p-8,g),8),i[f]=g,i[d]="",e.offsets.arrow=i,e.arrowElement=t,e},c.default||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(void 0===e||null===e)throw new TypeError("Cannot convert first argument to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(void 0!==r&&null!==r){r=Object(r);for(var i=(0,l.default)(r),o=0,s=i.length;o<s;o++){var u=i[o],c=(0,a.default)(r,u);void 0!==c&&c.enumerable&&(t[u]=r[u])}}}return t}}),n}))},e027:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function e(e,t,n){this.deviceId=e,this.label=t,this.kind="videoinput",this.groupId=n||void 0}return e.prototype.toJSON=function(){return{kind:this.kind,groupId:this.groupId,deviceId:this.deviceId,label:this.label}},e}()},e0b8:function(e,t,n){"use strict";var r=n("7726"),i=n("5ca1"),o=n("2aba"),a=n("dcbc"),s=n("67ab"),l=n("4a59"),u=n("f605"),c=n("d3f4"),f=n("79e5"),d=n("5cc5"),h=n("7f20"),p=n("5dbc");e.exports=function(e,t,n,m,g,v){var b=r[e],y=b,w=g?"set":"add",_=y&&y.prototype,C={},x=function(e){var t=_[e];o(_,e,"delete"==e||"has"==e?function(e){return!(v&&!c(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return v&&!c(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof y&&(v||_.forEach&&!f((function(){(new y).entries().next()})))){var S=new y,k=S[w](v?{}:-0,1)!=S,D=f((function(){S.has(1)})),O=d((function(e){new y(e)})),T=!v&&f((function(){var e=new y,t=5;while(t--)e[w](t,t);return!e.has(-0)}));O||(y=t((function(t,n){u(t,y,e);var r=p(new b,t,y);return void 0!=n&&l(n,g,r[w],r),r})),y.prototype=_,_.constructor=y),(D||T)&&(x("delete"),x("has"),g&&x("get")),(T||k)&&x(w),v&&_.clear&&delete _.clear}else y=m.getConstructor(t,e,g,w),a(y.prototype,n),s.NEED=!0;return h(y,e),C[e]=y,i(i.G+i.W+i.F*(y!=b),C),v||m.setStrong(y,e,g),y}},e11e:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e17f:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){if(i.default.prototype.$isServer)return 0;if(void 0!==a)return a;var e=document.createElement("div");e.className="el-scrollbar__wrap",e.style.visibility="hidden",e.style.width="100px",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",e.appendChild(n);var r=n.offsetWidth;return e.parentNode.removeChild(e),a=t-r,a};var r=n("8bbf"),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}var a=void 0},e1b7:function(e,t,n){n("522e"),e.exports=n("584a").Object.freeze},e1de:function(e,t,n){e.exports={default:n("696e"),__esModule:!0}},e245:function(e,t,n){"use strict";t.__esModule=!0;n("bf32");t.default={mounted:function(){},methods:{getMigratingConfig:function(){return{props:{},events:{}}}}}},e2d6:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},n=function(e){return function(n){return t(n)===e}},r=function(e){return function(t){return typeof t===e}},i=n("string"),o=r("boolean"),a=function(e){return null===e||void 0===e},s=function(e){return!a(e)},l=r("function"),u=r("number"),c=function(){},f=function(e,t){return function(n){return e(t(n))}},d=function(e){return function(){return e}},h=function(e){return e},p=d(!1),m=d(!0),g=function(){return v},v=function(){var e=function(e){return e()},t=h,n={fold:function(e,t){return e()},isSome:p,isNone:m,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:d(null),getOrUndefined:d(void 0),or:t,orThunk:e,map:g,each:c,bind:g,exists:p,forall:m,filter:function(){return g()},toArray:function(){return[]},toString:d("none()")};return n}(),b=function(e){var t=d(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},isSome:m,isNone:p,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return b(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:v},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return i},y=function(e){return null===e||void 0===e?v:b(e)},w={some:b,none:g,from:y},_=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r},C=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];t(i,n)}},x=function(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];t(o,r)&&n.push(o)}return n},S=9,k=11,D=1,O=3,T=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return N(r.childNodes[0])},E=function(e,t){var n=t||document,r=n.createElement(e);return N(r)},I=function(e,t){var n=t||document,r=n.createTextNode(e);return N(r)},N=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},A=function(e,t,n){return w.from(e.dom.elementFromPoint(t,n)).map(N)},P={fromHtml:T,fromTag:E,fromText:I,fromDom:N,fromPoint:A},M=function(e,t){var n=e.dom;if(n.nodeType!==D)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")};"undefined"!==typeof window?window:Function("return this;")();var R=function(e){var t=e.dom.nodeName;return t.toLowerCase()},F=function(e){return e.dom.nodeType},B=function(e){return function(t){return F(t)===e}},L=B(D),$=B(O),V=B(S),j=B(k),z=function(e){return function(t){return L(t)&&R(t)===e}},H=function(e){return P.fromDom(e.dom.ownerDocument)},U=function(e){return V(e)?e:H(e)},W=function(e){return w.from(e.dom.parentNode).map(P.fromDom)},q=function(e){return _(e.dom.childNodes,P.fromDom)},G=function(e,t,n){if(!(i(n)||o(n)||u(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},Y=function(e,t,n){G(e.dom,t,n)},K=function(e,t){e.dom.removeAttribute(t)},X=function(e){return j(e)&&s(e.dom.host)},J=l(Element.prototype.attachShadow)&&l(Node.prototype.getRootNode),Z=J?function(e){return P.fromDom(e.dom.getRootNode())}:U,Q=function(e){var t=Z(e);return X(t)?w.some(t):w.none()},ee=function(e){return P.fromDom(e.dom.host)},te=function(e){var t=$(e)?e.dom.parentNode:e.dom;if(void 0===t||null===t||null===t.ownerDocument)return!1;var n=t.ownerDocument;return Q(P.fromDom(t)).fold((function(){return n.body.contains(t)}),f(te,ee))},ne=function(e,t,n){var r=e.dom,i=l(n)?n:p;while(r.parentNode){r=r.parentNode;var o=P.fromDom(r);if(t(o))return w.some(o);if(i(o))break}return w.none()},re=function(e,t,n){return ne(e,(function(e){return M(e,t)}),n)},ie=function(e){return void 0!==e.style&&l(e.style.getPropertyValue)},oe=function(e,t){var n=e.dom,r=window.getComputedStyle(n),i=r.getPropertyValue(t);return""!==i||te(e)?i:ae(n,t)},ae=function(e,t){return ie(e)?e.style.getPropertyValue(t):""},se=function(e){return"rtl"===oe(e,"direction")?"rtl":"ltr"},le=function(e,t){return x(q(e),t)},ue=function(e,t){return le(e,(function(e){return M(e,t)}))},ce=function(e){return W(e).filter(L)},fe=function(e,t){var n=t?re(e,"ol,ul"):w.some(e);return n.getOr(e)},de=z("li"),he=function(e,t){var n=e.selection.getSelectedBlocks();n.length>0&&(C(n,(function(e){var n=P.fromDom(e),r=de(n),i=fe(n,r),o=ce(i);o.each((function(e){var n=se(e);if(n!==t?Y(i,"dir",t):se(i)!==t&&K(i,"dir"),r){var o=ue(i,"li[dir]");C(o,(function(e){return K(e,"dir")}))}}))})),e.nodeChanged())},pe=function(e){e.addCommand("mceDirectionLTR",(function(){he(e,"ltr")})),e.addCommand("mceDirectionRTL",(function(){he(e,"rtl")}))},me=function(e,t){return function(n){var r=function(e){var r=P.fromDom(e.element);n.setActive(se(r)===t)};return e.on("NodeChange",r),function(){return e.off("NodeChange",r)}}},ge=function(e){e.ui.registry.addToggleButton("ltr",{tooltip:"Left to right",icon:"ltr",onAction:function(){return e.execCommand("mceDirectionLTR")},onSetup:me(e,"ltr")}),e.ui.registry.addToggleButton("rtl",{tooltip:"Right to left",icon:"rtl",onAction:function(){return e.execCommand("mceDirectionRTL")},onSetup:me(e,"rtl")})};function ve(){e.add("directionality",(function(e){pe(e),ge(e)}))}ve()})()},e33b:function(e,t){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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="/dist/",n(n.s=112)}({1:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var l,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},112:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("button",{staticClass:"el-button",class:[e.type?"el-button--"+e.type:"",e.buttonSize?"el-button--"+e.buttonSize:"",{"is-disabled":e.buttonDisabled,"is-loading":e.loading,"is-plain":e.plain,"is-round":e.round,"is-circle":e.circle}],attrs:{disabled:e.buttonDisabled||e.loading,autofocus:e.autofocus,type:e.nativeType},on:{click:e.handleClick}},[e.loading?n("i",{staticClass:"el-icon-loading"}):e._e(),e.icon&&!e.loading?n("i",{class:e.icon}):e._e(),e.$slots.default?n("span",[e._t("default")],2):e._e()])};r._withStripped=!0;var i={name:"ElButton",inject:{elForm:{default:""},elFormItem:{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:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},buttonSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},buttonDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},methods:{handleClick:function(e){this.$emit("click",e)}}},o=n(1),a=Object(o.a)(i,r,[],!1,null,null,null);a.options.__file="packages/button/src/button.vue";var s=a.exports;s.install=function(e){e.component(s.name,s)},t.default=s}})},e34f:function(e,t,n){},e3f3:function(e,t,n){"use strict";var r=n("f505"),i=n("a793"),o=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(e){function t(t,n){return void 0===t&&(t=500),e.call(this,new i["a"](n),t,n)||this}o(t,e)})(r["a"])},e433:function(e,t){tinymce.addI18n("zh-Hans",{Redo:"重做",Undo:"撤销",Cut:"剪切",Copy:"复制",Paste:"粘贴","Select all":"全选","New document":"新建文档",Ok:"确定",Cancel:"取消","Visual aids":"网格线",Bold:"粗体",Italic:"斜体",Underline:"下划线",Strikethrough:"删除线",Superscript:"上标",Subscript:"下标","Clear formatting":"清除格式",Remove:"移除","Align left":"左对齐","Align center":"居中对齐","Align right":"右对齐","No alignment":"未对齐",Justify:"两端对齐","Bullet list":"无序列表","Numbered list":"有序列表","Decrease indent":"减少缩进","Increase indent":"增加缩进",Close:"关闭",Formats:"格式","Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.":"你的浏览器不支持打开剪贴板,请使用Ctrl+X/C/V等快捷键。",Headings:"标题","Heading 1":"一级标题","Heading 2":"二级标题","Heading 3":"三级标题","Heading 4":"四级标题","Heading 5":"五级标题","Heading 6":"六级标题",Preformatted:"预先格式化的",Div:"Div",Pre:"前言",Code:"代码",Paragraph:"段落",Blockquote:"引文区块",Inline:"文本",Blocks:"样式","Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.":"当前为纯文本粘贴模式,再次点击可以回到普通粘贴模式。",Fonts:"字体","Font sizes":"字体大小",Class:"类型","Browse for an image":"浏览图像",OR:"或","Drop an image here":"拖放一张图像至此",Upload:"上传","Uploading image":"上传图片",Block:"块",Align:"对齐",Default:"预设",Circle:"空心圆",Disc:"实心圆",Square:"实心方块","Lower Alpha":"小写英文字母","Lower Greek":"小写希腊字母","Lower Roman":"小写罗马数字","Upper Alpha":"大写英文字母","Upper Roman":"大写罗马数字","Anchor...":"锚点...",Anchor:"锚点",Name:"名称",ID:"ID","ID should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores.":"ID应该以英文字母开头,后面只能有英文字母、数字、破折号、点、冒号或下划线。","You have unsaved changes are you sure you want to navigate away?":"你还有文档尚未保存,确定要离开?","Restore last draft":"恢复上次的草稿","Special character...":"特殊字符...","Special Character":"特殊字符","Source code":"源代码","Insert/Edit code sample":"插入/编辑代码示例",Language:"语言","Code sample...":"示例代码...","Left to right":"由左到右","Right to left":"由右到左",Title:"标题",Fullscreen:"全屏",Action:"动作",Shortcut:"快捷方式",Help:"帮助",Address:"地址","Focus to menubar":"移动焦点到菜单栏","Focus to toolbar":"移动焦点到工具栏","Focus to element path":"移动焦点到元素路径","Focus to contextual toolbar":"移动焦点到上下文菜单","Insert link (if link plugin activated)":"插入链接 (如果链接插件已激活)","Save (if save plugin activated)":"保存(如果保存插件已激活)","Find (if searchreplace plugin activated)":"查找(如果查找替换插件已激活)","Plugins installed ({0}):":"已安装插件 ({0}):","Premium plugins:":"优秀插件:","Learn more...":"了解更多...","You are using {0}":"你正在使用 {0}",Plugins:"插件","Handy Shortcuts":"快捷键","Horizontal line":"水平分割线","Insert/edit image":"插入/编辑图片","Alternative description":"替代描述",Accessibility:"辅助功能","Image is decorative":"图像是装饰性的",Source:"源",Dimensions:"尺寸","Constrain proportions":"保持比例",General:"一般",Advanced:"高级",Style:"样式","Vertical space":"垂直间距","Horizontal space":"水平间距",Border:"框线","Insert image":"插入图片","Image...":"图片...","Image list":"图片清单",Resize:"调整大小","Insert date/time":"插入日期/时间","Date/time":"日期/时间","Insert/edit link":"插入/编辑链接","Text to display":"要显示的文本",Url:"地址","Open link in...":"链接打开位置...","Current window":"当前窗口",None:"无","New window":"新窗口","Open link":"打开链接","Remove link":"移除链接",Anchors:"锚点","Link...":"链接...","Paste or type a link":"粘贴或输入链接","The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?":"你所填写的URL地址为邮件地址,需要加上mailto: 前缀吗?","The URL you entered seems to be an external link. Do you want to add the required http:// prefix?":"你所填写的URL地址属于外部链接,需要加上http:// 前缀吗?","The URL you entered seems to be an external link. Do you want to add the required https:// prefix?":"您输入的 URL 似乎是一个外部链接。您想添加所需的 https:// 前缀吗?","Link list":"链接清单","Insert video":"插入视频","Insert/edit video":"插入/编辑视频","Insert/edit media":"插入/编辑媒体","Alternative source":"镜像","Alternative source URL":"替代来源网址","Media poster (Image URL)":"封面(图片地址)","Paste your embed code below:":"将内嵌代码粘贴在下面:",Embed:"内嵌","Media...":"多媒体...","Nonbreaking space":"不间断空格","Page break":"分页符","Paste as text":"粘贴为文本",Preview:"预览",Print:"打印","Print...":"打印...",Save:"保存",Find:"寻找","Replace with":"替换为",Replace:"替换","Replace all":"替换全部",Previous:"上一个",Next:"下一个","Find and Replace":"查找和替换","Find and replace...":"查找并替换...","Could not find the specified string.":"未找到搜索内容。","Match case":"大小写匹配","Find whole words only":"全字匹配","Find in selection":"在选区中查找","Insert table":"插入表格","Table properties":"表格属性","Delete table":"删除表格",Cell:"单元格",Row:"行",Column:"栏目","Cell properties":"单元格属性","Merge cells":"合并单元格","Split cell":"拆分单元格","Insert row before":"在上方插入行","Insert row after":"在下方插入行","Delete row":"删除行","Row properties":"行属性","Cut row":"剪切行","Cut column":"剪切列","Copy row":"复制行","Copy column":"复制列","Paste row before":"粘贴行到上方","Paste column before":"粘贴此列前","Paste row after":"粘贴行到下方","Paste column after":"粘贴后面的列","Insert column before":"在左侧插入列","Insert column after":"在右侧插入列","Delete column":"删除列",Cols:"列",Rows:"行数",Width:"宽度",Height:"高度","Cell spacing":"单元格外间距","Cell padding":"单元格内边距","Row clipboard actions":"行剪贴板操作","Column clipboard actions":"列剪贴板操作","Table styles":"表格样式","Cell styles":"单元格样式","Column header":"列标题","Row header":"行头","Table caption":"表格标题",Caption:"标题","Show caption":"显示标题",Left:"左",Center:"居中",Right:"右","Cell type":"储存格别",Scope:"范围",Alignment:"对齐","Horizontal align":"水平对齐","Vertical align":"垂直对齐",Top:"上方对齐",Middle:"居中对齐",Bottom:"下方对齐","Header cell":"表头单元格","Row group":"行组","Column group":"列组","Row type":"行类型",Header:"表头",Body:"表体",Footer:"表尾","Border color":"框线颜色",Solid:"实线",Dotted:"虚线",Dashed:"虚线",Double:"双精度",Groove:"凹槽",Ridge:"海脊座",Inset:"嵌入",Outset:"外置",Hidden:"隐藏","Insert template...":"插入模板...",Templates:"模板",Template:"模板","Insert Template":"插入模板","Text color":"文本颜色","Background color":"背景颜色","Custom...":"自定义......","Custom color":"自定义颜色","No color":"无","Remove color":"移除颜色","Show blocks":"显示区块边框","Show invisible characters":"显示不可见字符","Word count":"字数",Count:"计数",Document:"文档",Selection:"选择",Words:"单词","Words: {0}":"字数:{0}","{0} words":"{0} 字",File:"文件",Edit:"编辑",Insert:"插入",View:"查看",Format:"格式",Table:"表格",Tools:"工具","Powered by {0}":"由{0}驱动","Rich Text Area. Press ALT-F9 for menu. Press ALT-F10 for toolbar. Press ALT-0 for help":"编辑区。按ALT-F9打开菜单,按ALT-F10打开工具栏,按ALT-0查看帮助","Image title":"图片标题","Border width":"边框宽度","Border style":"边框样式",Error:"错误",Warn:"警告",Valid:"有效","To open the popup, press Shift+Enter":"按Shitf+Enter键打开对话框","Rich Text Area":"富文本区域","Rich Text Area. Press ALT-0 for help.":"编辑区。按Alt+0键打开帮助。","System Font":"系统字体","Failed to upload image: {0}":"图片上传失败: {0}","Failed to load plugin: {0} from url {1}":"插件加载失败: {0} 来自链接 {1}","Failed to load plugin url: {0}":"插件加载失败 链接: {0}","Failed to initialize plugin: {0}":"插件初始化失败: {0}",example:"示例",Search:"搜索",All:"全部",Currency:"货币",Text:"文字",Quotations:"引用",Mathematical:"数学","Extended Latin":"拉丁语扩充",Symbols:"符号",Arrows:"箭头","User Defined":"自定义","dollar sign":"美元符号","currency sign":"货币符号","euro-currency sign":"欧元符号","colon sign":"冒号","cruzeiro sign":"克鲁赛罗币符号","french franc sign":"法郎符号","lira sign":"里拉符号","mill sign":"密尔符号","naira sign":"奈拉符号","peseta sign":"比塞塔符号","rupee sign":"卢比符号","won sign":"韩元符号","new sheqel sign":"新谢克尔符号","dong sign":"越南盾符号","kip sign":"老挝基普符号","tugrik sign":"图格里克符号","drachma sign":"德拉克马符号","german penny symbol":"德国便士符号","peso sign":"比索符号","guarani sign":"瓜拉尼符号","austral sign":"澳元符号","hryvnia sign":"格里夫尼亚符号","cedi sign":"塞地符号","livre tournois sign":"里弗弗尔符号","spesmilo sign":"spesmilo符号","tenge sign":"坚戈符号","indian rupee sign":"印度卢比","turkish lira sign":"土耳其里拉","nordic mark sign":"北欧马克","manat sign":"马纳特符号","ruble sign":"卢布符号","yen character":"日元字样","yuan character":"人民币元字样","yuan character, in hong kong and taiwan":"元字样(港台地区)","yen/yuan character variant one":"元字样(大写)",Emojis:"Emojis","Emojis...":"Emojis...","Loading emojis...":"正在加载Emojis...","Could not load emojis":"无法加载Emojis",People:"人类","Animals and Nature":"动物和自然","Food and Drink":"食物和饮品",Activity:"活动","Travel and Places":"旅游和地点",Objects:"物件",Flags:"旗帜",Characters:"字符","Characters (no spaces)":"字符(无空格)","{0} characters":"{0} 个字符","Error: Form submit field collision.":"错误: 表单提交字段冲突。","Error: No form element found.":"错误: 没有表单控件。","Color swatch":"颜色样本","Color Picker":"选色器","Invalid hex color code: {0}":"十六进制颜色代码无效: {0}","Invalid input":"无效输入",R:"R","Red component":"红色部分",G:"G","Green component":"绿色部分",B:"B","Blue component":"白色部分","#":"#","Hex color code":"十六进制颜色代码","Range 0 to 255":"范围0至255",Turquoise:"青绿色",Green:"绿色",Blue:"蓝色",Purple:"紫色","Navy Blue":"海军蓝","Dark Turquoise":"深蓝绿色","Dark Green":"深绿色","Medium Blue":"中蓝色","Medium Purple":"中紫色","Midnight Blue":"深蓝色",Yellow:"黄色",Orange:"橙色",Red:"红色","Light Gray":"浅灰色",Gray:"灰色","Dark Yellow":"暗黄色","Dark Orange":"深橙色","Dark Red":"深红色","Medium Gray":"中灰色","Dark Gray":"深灰色","Light Green":"浅绿色","Light Yellow":"浅黄色","Light Red":"浅红色","Light Purple":"浅紫色","Light Blue":"浅蓝色","Dark Purple":"深紫色","Dark Blue":"深蓝色",Black:"黑色",White:"白色","Switch to or from fullscreen mode":"切换全屏模式","Open help dialog":"打开帮助对话框",history:"历史",styles:"样式",formatting:"格式化",alignment:"对齐",indentation:"缩进",Font:"字体",Size:"字号","More...":"更多...","Select...":"选择...",Preferences:"首选项",Yes:"是",No:"否","Keyboard Navigation":"键盘指引",Version:"版本","Code view":"代码视图","Open popup menu for split buttons":"打开弹出式菜单,用于拆分按钮","List Properties":"列表属性","List properties...":"标题字体属性","Start list at number":"以数字开始列表","Line height":"行高","Dropped file type is not supported":"此文件类型不支持拖放","Loading...":"加载中...","ImageProxy HTTP error: Rejected request":"图片代理请求错误:请求被拒绝","ImageProxy HTTP error: Could not find Image Proxy":"图片代理请求错误:无法找到图片代理","ImageProxy HTTP error: Incorrect Image Proxy URL":"图片代理请求错误:图片代理地址错误","ImageProxy HTTP error: Unknown ImageProxy error":"图片代理请求错误:未知的图片代理错误"})},e4ae:function(e,t,n){var r=n("f772");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},e4f9:function(e,t,n){"use strict";var r=n("aa17"),i=n("bb6f"),o=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),a=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.count=0,i.finderPattern=r,i}return o(t,e),t.prototype.getFinderPattern=function(){return this.finderPattern},t.prototype.getCount=function(){return this.count},t.prototype.incrementCount=function(){this.count++},t}(i["a"]),s=a,l=n("2f50"),u=n("fe96"),c=n("ca08"),f=n("6530"),d=n("a363"),h=n("8c95"),p=n("929b"),m=n("fb63"),g=n("1533"),v=n("63af"),b=n("0b81"),y=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),w=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.possibleLeftPairs=[],t.possibleRightPairs=[],t}return y(t,e),t.prototype.decodeRow=function(e,n,r){var i,o,a,s,l=this.decodePair(n,!1,e,r);t.addOrTally(this.possibleLeftPairs,l),n.reverse();var u=this.decodePair(n,!0,e,r);t.addOrTally(this.possibleRightPairs,u),n.reverse();try{for(var f=w(this.possibleLeftPairs),d=f.next();!d.done;d=f.next()){var h=d.value;if(h.getCount()>1)try{for(var p=(a=void 0,w(this.possibleRightPairs)),m=p.next();!m.done;m=p.next()){var g=m.value;if(g.getCount()>1&&t.checkChecksum(h,g))return t.constructResult(h,g)}}catch(v){a={error:v}}finally{try{m&&!m.done&&(s=p.return)&&s.call(p)}finally{if(a)throw a.error}}}}catch(b){i={error:b}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}throw new c["a"]},t.addOrTally=function(e,t){var n,r;if(null!=t){var i=!1;try{for(var o=w(e),a=o.next();!a.done;a=o.next()){var s=a.value;if(s.getValue()===t.getValue()){s.incrementCount(),i=!0;break}}}catch(l){n={error:l}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}i||e.push(t)}},t.prototype.reset=function(){this.possibleLeftPairs.length=0,this.possibleRightPairs.length=0},t.constructResult=function(e,t){for(var n=4537077*e.getValue()+t.getValue(),r=new String(n).toString(),i=new f["a"],o=13-r.length;o>0;o--)i.append("0");i.append(r);var a=0;for(o=0;o<13;o++){var s=i.charAt(o).charCodeAt(0)-"0".charCodeAt(0);a+=0===(1&o)?3*s:s}a=10-a%10,10===a&&(a=0),i.append(a.toString());var u=e.getFinderPattern().getResultPoints(),c=t.getFinderPattern().getResultPoints();return new l["a"](i.toString(),null,0,[u[0],u[1],c[0],c[1]],d["a"].RSS_14,(new Date).getTime())},t.checkChecksum=function(e,t){var n=(e.getChecksumPortion()+16*t.getChecksumPortion())%79,r=9*e.getFinderPattern().getValue()+t.getFinderPattern().getValue();return r>72&&r--,r>8&&r--,n===r},t.prototype.decodePair=function(e,t,n,r){try{var i=this.findFinderPattern(e,t),o=this.parseFoundFinderPattern(e,n,t,i),a=null==r?null:r.get(u["a"].NEED_RESULT_POINT_CALLBACK);if(null!=a){var l=(i[0]+i[1])/2;t&&(l=e.getSize()-1-l),a.foundPossibleResultPoint(new h["a"](l,n))}var c=this.decodeDataCharacter(e,o,!0),f=this.decodeDataCharacter(e,o,!1);return new s(1597*c.getValue()+f.getValue(),c.getChecksumPortion()+4*f.getChecksumPortion(),o)}catch(d){return null}},t.prototype.decodeDataCharacter=function(e,n,r){for(var o=this.getDataCharacterCounters(),a=0;a<o.length;a++)o[a]=0;if(r)b["a"].recordPatternInReverse(e,n.getStartEnd()[0],o);else{b["a"].recordPattern(e,n.getStartEnd()[1]+1,o);for(var s=0,l=o.length-1;s<l;s++,l--){var u=o[s];o[s]=o[l],o[l]=u}}var f=r?16:15,d=m["a"].sum(new Int32Array(o))/f,h=this.getOddCounts(),p=this.getEvenCounts(),v=this.getOddRoundingErrors(),y=this.getEvenRoundingErrors();for(s=0;s<o.length;s++){var w=o[s]/d,_=Math.floor(w+.5);_<1?_=1:_>8&&(_=8);var C=Math.floor(s/2);0===(1&s)?(h[C]=_,v[C]=w-_):(p[C]=_,y[C]=w-_)}this.adjustOddEvenCounts(r,f);var x=0,S=0;for(s=h.length-1;s>=0;s--)S*=9,S+=h[s],x+=h[s];var k=0,D=0;for(s=p.length-1;s>=0;s--)k*=9,k+=p[s],D+=p[s];var O=S+3*k;if(r){if(0!==(1&x)||x>12||x<4)throw new c["a"];var T=(12-x)/2,E=t.OUTSIDE_ODD_WIDEST[T],I=9-E,N=g["a"].getRSSvalue(h,E,!1),A=g["a"].getRSSvalue(p,I,!0),P=t.OUTSIDE_EVEN_TOTAL_SUBSET[T],M=t.OUTSIDE_GSUM[T];return new i["a"](N*P+A+M,O)}if(0!==(1&D)||D>10||D<4)throw new c["a"];T=(10-D)/2,E=t.INSIDE_ODD_WIDEST[T],I=9-E,N=g["a"].getRSSvalue(h,E,!0),A=g["a"].getRSSvalue(p,I,!1);var R=t.INSIDE_ODD_TOTAL_SUBSET[T];M=t.INSIDE_GSUM[T];return new i["a"](A*R+N+M,O)},t.prototype.findFinderPattern=function(e,t){var n=this.getDecodeFinderCounters();n[0]=0,n[1]=0,n[2]=0,n[3]=0;var i=e.getSize(),o=!1,a=0;while(a<i){if(o=!e.get(a),t===o)break;a++}for(var s=0,l=a,u=a;u<i;u++)if(e.get(u)!==o)n[s]++;else{if(3===s){if(r["a"].isFinderPattern(n))return[l,u];l+=n[0]+n[1],n[0]=n[2],n[1]=n[3],n[2]=0,n[3]=0,s--}else s++;n[s]=1,o=!o}throw new c["a"]},t.prototype.parseFoundFinderPattern=function(e,n,r,i){var o=e.get(i[0]),a=i[0]-1;while(a>=0&&o!==e.get(a))a--;a++;var s=i[0]-a,l=this.getDecodeFinderCounters(),u=new Int32Array(l.length);v["a"].arraycopy(l,0,u,1,l.length-1),u[0]=s;var c=this.parseFinderValue(u,t.FINDER_PATTERNS),f=a,d=i[1];return r&&(f=e.getSize()-1-f,d=e.getSize()-1-d),new p["a"](c,[a,i[1]],f,d,n)},t.prototype.adjustOddEvenCounts=function(e,t){var n=m["a"].sum(new Int32Array(this.getOddCounts())),i=m["a"].sum(new Int32Array(this.getEvenCounts())),o=!1,a=!1,s=!1,l=!1;e?(n>12?a=!0:n<4&&(o=!0),i>12?l=!0:i<4&&(s=!0)):(n>11?a=!0:n<5&&(o=!0),i>10?l=!0:i<4&&(s=!0));var u=n+i-t,f=(1&n)===(e?1:0),d=1===(1&i);if(1===u)if(f){if(d)throw new c["a"];a=!0}else{if(!d)throw new c["a"];l=!0}else if(-1===u)if(f){if(d)throw new c["a"];o=!0}else{if(!d)throw new c["a"];s=!0}else{if(0!==u)throw new c["a"];if(f){if(!d)throw new c["a"];n<i?(o=!0,l=!0):(a=!0,s=!0)}else if(d)throw new c["a"]}if(o){if(a)throw new c["a"];r["a"].increment(this.getOddCounts(),this.getOddRoundingErrors())}if(a&&r["a"].decrement(this.getOddCounts(),this.getOddRoundingErrors()),s){if(l)throw new c["a"];r["a"].increment(this.getEvenCounts(),this.getOddRoundingErrors())}l&&r["a"].decrement(this.getEvenCounts(),this.getEvenRoundingErrors())},t.OUTSIDE_EVEN_TOTAL_SUBSET=[1,10,34,70,126],t.INSIDE_ODD_TOTAL_SUBSET=[4,20,48,81],t.OUTSIDE_GSUM=[0,161,961,2015,2715],t.INSIDE_GSUM=[0,336,1036,1516],t.OUTSIDE_ODD_WIDEST=[8,6,4,3,1],t.INSIDE_ODD_WIDEST=[2,4,6,8],t.FINDER_PATTERNS=[Int32Array.from([3,8,2,1]),Int32Array.from([3,5,5,1]),Int32Array.from([3,3,7,1]),Int32Array.from([3,1,9,1]),Int32Array.from([2,7,4,1]),Int32Array.from([2,5,6,1]),Int32Array.from([2,3,8,1]),Int32Array.from([1,5,7,1]),Int32Array.from([1,3,9,1])],t}(r["a"]);t["a"]=_},e53d:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},e5da:function(e,t,n){"use strict";t.__esModule=!0,t.default=a;var r=n("8bbf"),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!i.default.prototype.$isServer)if(t){var n=[],r=t.offsetParent;while(r&&e!==r&&e.contains(r))n.push(r),r=r.offsetParent;var o=t.offsetTop+n.reduce((function(e,t){return e+t.offsetTop}),0),a=o+t.offsetHeight,s=e.scrollTop,l=s+e.clientHeight;o<s?e.scrollTop=o:a>l&&(e.scrollTop=a-e.clientHeight)}else e.scrollTop=0}},e692:function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},e6f3:function(e,t,n){var r=n("07e3"),i=n("36c3"),o=n("5b4e")(!1),a=n("5559")("IE_PROTO");e.exports=function(e,t){var n,s=i(e),l=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);while(t.length>l)r(s,n=t[l++])&&(~o(u,n)||u.push(n));return u}},e853:function(e,t,n){var r=n("d3f4"),i=n("1169"),o=n("2b4c")("species");e.exports=function(e){var t;return i(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!i(t.prototype)||(t=void 0),r(t)&&(t=t[o],null===t&&(t=void 0))),void 0===t?Array:t}},e8b0:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e){return e},n=function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},r="\ufeff",i=function(e){return e.replace(/\uFEFF/g,"")},o=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r},a="[!-#%-*,-\\/:;?@\\[-\\]_{}¡«·»¿;·՚-՟։֊־׀׃׆׳״؉؊،؍؛؞؟٪-٭۔܀-܍߷-߹࠰-࠾࡞।॥॰෴๏๚๛༄-༒༺-༽྅࿐-࿔࿙࿚၊-၏჻፡-፨᐀᙭᙮᚛᚜᛫-᛭᜵᜶។-៖៘-៚᠀-᠊᥄᥅᨞᨟᪠-᪦᪨-᪭᭚-᭠᯼-᯿᰻-᰿᱾᱿᳓‐-‧‰-⁃⁅-⁑⁓-⁞⁽⁾₍₎〈〉❨-❵⟅⟆⟦-⟯⦃-⦘⧘-⧛⧼⧽⳹-⳼⳾⳿⵰⸀-⸮⸰⸱、-〃〈-】〔-〟〰〽゠・꓾꓿꘍-꘏꙳꙾꛲-꛷꡴-꡷꣎꣏꣸-꣺꤮꤯꥟꧁-꧍꧞꧟꩜-꩟꫞꫟꯫﴾﴿︐-︙︰-﹒﹔-﹡﹣﹨﹪﹫!-#%-*,-/:;?@[-]_{}⦅-・]",s={aletter:"[A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-׳ؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆༀཀ-ཇཉ-ཬྈ-ྌႠ-Ⴥა-ჺჼᄀ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᨀ-ᨖᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᯀ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⒶ-ⓩⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⴀ-ⴥⴰ-ⵥⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〻〼ㄅ-ㄭㄱ-ㆎㆠ-ㆺꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐꞑꞠ-ꞩꟺ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]",midnumlet:"[-'\\.‘’․﹒'.]",midletter:"[:··״‧︓﹕:]",midnum:"[±+*/,;;։،؍٬߸⁄︐︔﹐﹔,;]",numeric:"[0-9٠-٩٫۰-۹߀-߉०-९০-৯੦-੯૦-૯୦-୯௦-௯౦-౯೦-೯൦-൯๐-๙໐-໙༠-༩၀-၉႐-႙០-៩᠐-᠙᥆-᥏᧐-᧙᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙꘠-꘩꣐-꣙꤀-꤉꧐-꧙꩐-꩙꯰-꯹]",cr:"\\r",lf:"\\n",newline:"[\v\f
\u2028\u2029]",extend:"[̀-ͯ҃-҉֑-ׇֽֿׁׂׅׄؐ-ًؚ-ٰٟۖ-ۜ۟-۪ۤۧۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ऀ-ःऺ-़ा-ॏ॑-ॗॢॣঁ-ঃ়া-ৄেৈো-্ৗৢৣਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑੰੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣஂா-ூெ-ைொ-்ௗఁ-ఃా-ౄె-ైొ-్ౕౖౢౣಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣംഃാ-ൄെ-ൈൊ-്ൗൢൣංඃ්ා-ුූෘ-ෟෲෳัิ-ฺ็-๎ັິ-ູົຼ່-ໍ༹༘༙༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏႚ-ႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳា-៓៝᠋-᠍ᢩᤠ-ᤫᤰ-᤻ᦰ-ᧀᧈᧉᨗ-ᨛᩕ-ᩞ᩠-᩿᩼ᬀ-ᬄ᬴-᭄᭫-᭳ᮀ-ᮂᮡ-᯦᮪-᯳ᰤ-᰷᳐-᳔᳒-᳨᳭ᳲ᷀-ᷦ᷼-᷿⃐-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꙯-꙲꙼꙽꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-꣄꣠-꣱ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀ꨩ-ꨶꩃꩌꩍꩻꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꯣ-ꯪ꯬꯭ﬞ︀-️︠-゙゚︦]",format:"[-឴឵---\ufeff-]",katakana:"[〱-〵゛゜゠-ヺー-ヿㇰ-ㇿ㋐-㋾㌀-㍗ヲ-ン]",extendnumlet:"[=_‿⁀⁔︳︴﹍-﹏_∀-⋿<>]",punctuation:a},l={ALETTER:0,MIDNUMLET:1,MIDLETTER:2,MIDNUM:3,NUMERIC:4,CR:5,LF:6,NEWLINE:7,EXTEND:8,FORMAT:9,KATAKANA:10,EXTENDNUMLET:11,AT:12,OTHER:13},u=[new RegExp(s.aletter),new RegExp(s.midnumlet),new RegExp(s.midletter),new RegExp(s.midnum),new RegExp(s.numeric),new RegExp(s.cr),new RegExp(s.lf),new RegExp(s.newline),new RegExp(s.extend),new RegExp(s.format),new RegExp(s.katakana),new RegExp(s.extendnumlet),new RegExp("@")],c="",f=new RegExp("^"+s.punctuation+"$"),d=/^\s+$/,h=u,p=l.OTHER,m=function(e){for(var t=p,n=h.length,r=0;r<n;++r){var i=h[r];if(i&&i.test(e)){t=r;break}}return t},g=function(e){var t={};return function(n){if(t[n])return t[n];var r=e(n);return t[n]=r,r}},v=function(e){var t=g(m);return o(e,t)},b=function(e,t){var n=e[t],r=e[t+1];if(t<0||t>e.length-1&&0!==t)return!1;if(n===l.ALETTER&&r===l.ALETTER)return!1;var i=e[t+2];if(n===l.ALETTER&&(r===l.MIDLETTER||r===l.MIDNUMLET||r===l.AT)&&i===l.ALETTER)return!1;var o=e[t-1];return(n!==l.MIDLETTER&&n!==l.MIDNUMLET&&r!==l.AT||r!==l.ALETTER||o!==l.ALETTER)&&((n!==l.NUMERIC&&n!==l.ALETTER||r!==l.NUMERIC&&r!==l.ALETTER)&&((n!==l.MIDNUM&&n!==l.MIDNUMLET||r!==l.NUMERIC||o!==l.NUMERIC)&&((n!==l.NUMERIC||r!==l.MIDNUM&&r!==l.MIDNUMLET||i!==l.NUMERIC)&&(n!==l.EXTEND&&n!==l.FORMAT&&o!==l.EXTEND&&o!==l.FORMAT&&r!==l.EXTEND&&r!==l.FORMAT&&((n!==l.CR||r!==l.LF)&&(n===l.NEWLINE||n===l.CR||n===l.LF||(r===l.NEWLINE||r===l.CR||r===l.LF||(n!==l.KATAKANA||r!==l.KATAKANA)&&((r!==l.EXTENDNUMLET||n!==l.ALETTER&&n!==l.NUMERIC&&n!==l.KATAKANA&&n!==l.EXTENDNUMLET)&&((n!==l.EXTENDNUMLET||r!==l.ALETTER&&r!==l.NUMERIC&&r!==l.KATAKANA)&&n!==l.AT)))))))))},y=c,w=d,_=f,C=function(e){return"http"===e||"https"===e},x=function(e,t){var n;for(n=t;n<e.length;n++)if(w.test(e[n]))break;return n},S=function(e,t){var n=x(e,t+1),r=e.slice(t+1,n).join(y);return"://"===r.substr(0,3)?n:t},k=function(e,t,n,r){for(var i=[],o=[],a=0;a<n.length;++a)if(o.push(e[a]),b(n,a)){var s=t[a];if((r.includeWhitespace||!w.test(s))&&(r.includePunctuation||!_.test(s))){var l=a-o.length+1,u=a+1,c=t.slice(l,u).join(y);if(C(c)){var f=S(t,a),d=e.slice(u,f);Array.prototype.push.apply(o,d),a=f}i.push(o)}o=[]}return i},D=function(){return{includeWhitespace:!1,includePunctuation:!1}},O=function(e,t,i){i=n(n({},D()),i);for(var o=[],a=[],s=0;s<e.length;s++){var l=t(e[s]);l!==r&&(o.push(e[s]),a.push(l))}var u=v(a);return k(o,a,u,i)},T=O,E=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),I=function(e,t){var n=t.getBlockElements(),r=t.getShortEndedElements(),o=function(e){return n[e.nodeName]||r[e.nodeName]},a=[],s="",l=new E(e,e);while(e=l.next())3===e.nodeType?s+=i(e.data):o(e)&&s.length&&(a.push(s),s="");return s.length&&a.push(s),a},N=function(e){return e.replace(/\u200B/g,"")},A=function(e){return e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length},P=function(e,n){var r=N(I(e,n).join("\n"));return T(r.split(""),t).length},M=function(e,t){var n=I(e,t).join("");return A(n)},R=function(e,t){var n=I(e,t).join("").replace(/\s/g,"");return A(n)},F=function(e,t){return function(){return t(e.getBody(),e.schema)}},B=function(e,t){return function(){return t(e.selection.getRng().cloneContents(),e.schema)}},L=function(e){return F(e,P)},$=function(e){return{body:{getWordCount:L(e),getCharacterCount:F(e,M),getCharacterCountWithoutSpaces:F(e,R)},selection:{getWordCount:B(e,P),getCharacterCount:B(e,M),getCharacterCountWithoutSpaces:B(e,R)},getCount:L(e)}},V=function(e,t){e.windowManager.open({title:"Word Count",body:{type:"panel",items:[{type:"table",header:["Count","Document","Selection"],cells:[["Words",String(t.body.getWordCount()),String(t.selection.getWordCount())],["Characters (no spaces)",String(t.body.getCharacterCountWithoutSpaces()),String(t.selection.getCharacterCountWithoutSpaces())],["Characters",String(t.body.getCharacterCount()),String(t.selection.getCharacterCount())]]}]},buttons:[{type:"cancel",name:"close",text:"Close",primary:!0}]})},j=function(e,t){e.addCommand("mceWordCount",(function(){return V(e,t)}))},z=tinymce.util.Tools.resolve("tinymce.util.Delay"),H=function(e,t){e.fire("wordCountUpdate",{wordCount:{words:t.body.getWordCount(),characters:t.body.getCharacterCount(),charactersWithoutSpaces:t.body.getCharacterCountWithoutSpaces()}})},U=function(e,t){H(e,t)},W=function(e,t,n){var r=z.debounce((function(){return U(e,t)}),n);e.on("init",(function(){U(e,t),z.setEditorTimeout(e,(function(){e.on("SetContent BeforeAddUndo Undo Redo ViewUpdate keyup",r)}),0)}))},q=function(e){var t=function(){return e.execCommand("mceWordCount")};e.ui.registry.addButton("wordcount",{tooltip:"Word count",icon:"character-count",onAction:t}),e.ui.registry.addMenuItem("wordcount",{text:"Word count",icon:"character-count",onAction:t})};function G(t){void 0===t&&(t=300),e.add("wordcount",(function(e){var n=$(e);return j(e,n),q(e),W(e,n,t),n}))}G()})()},ea29:function(e,t,n){"use strict";var r=function(){function e(){}return e.numberOfTrailingZeros=function(e){var t;if(0===e)return 32;var n=31;return t=e<<16,0!==t&&(n-=16,e=t),t=e<<8,0!==t&&(n-=8,e=t),t=e<<4,0!==t&&(n-=4,e=t),t=e<<2,0!==t&&(n-=2,e=t),n-(e<<1>>>31)},e.numberOfLeadingZeros=function(e){if(0===e)return 32;var t=1;return e>>>16===0&&(t+=16,e<<=16),e>>>24===0&&(t+=8,e<<=8),e>>>28===0&&(t+=4,e<<=4),e>>>30===0&&(t+=2,e<<=2),t-=e>>>31,t},e.toHexString=function(e){return e.toString(16)},e.toBinaryString=function(e){return String(parseInt(String(e),2))},e.bitCount=function(e){return e-=e>>>1&1431655765,e=(858993459&e)+(e>>>2&858993459),e=e+(e>>>4)&252645135,e+=e>>>8,e+=e>>>16,63&e},e.truncDivision=function(e,t){return Math.trunc(e/t)},e.parseInt=function(e,t){return void 0===t&&(t=void 0),parseInt(e,t)},e.MIN_VALUE_32_BITS=-2147483648,e.MAX_VALUE=Number.MAX_SAFE_INTEGER,e}();t["a"]=r},eb30:function(e,t,n){"use strict";t.__esModule=!0,t.PopupManager=void 0;var r=n("8bbf"),i=d(r),o=n("5ea8"),a=d(o),s=n("d52c"),l=d(s),u=n("e17f"),c=d(u),f=n("f321");function d(e){return e&&e.__esModule?e:{default:e}}var h=1,p=void 0;t.default={props:{visible:{type:Boolean,default:!1},openDelay:{},closeDelay:{},zIndex:{},modal:{type:Boolean,default:!1},modalFade:{type:Boolean,default:!0},modalClass:{},modalAppendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!1}},beforeMount:function(){this._popupId="popup-"+h++,l.default.register(this._popupId,this)},beforeDestroy:function(){l.default.deregister(this._popupId),l.default.closeModal(this._popupId),this.restoreBodyStyle()},data:function(){return{opened:!1,bodyPaddingRight:null,computedBodyPaddingRight:0,withoutHiddenClass:!0,rendered:!1}},watch:{visible:function(e){var t=this;if(e){if(this._opening)return;this.rendered?this.open():(this.rendered=!0,i.default.nextTick((function(){t.open()})))}else this.close()}},methods:{open:function(e){var t=this;this.rendered||(this.rendered=!0);var n=(0,a.default)({},this.$props||this,e);this._closeTimer&&(clearTimeout(this._closeTimer),this._closeTimer=null),clearTimeout(this._openTimer);var r=Number(n.openDelay);r>0?this._openTimer=setTimeout((function(){t._openTimer=null,t.doOpen(n)}),r):this.doOpen(n)},doOpen:function(e){if(!this.$isServer&&(!this.willOpen||this.willOpen())&&!this.opened){this._opening=!0;var t=this.$el,n=e.modal,r=e.zIndex;if(r&&(l.default.zIndex=r),n&&(this._closing&&(l.default.closeModal(this._popupId),this._closing=!1),l.default.openModal(this._popupId,l.default.nextZIndex(),this.modalAppendToBody?void 0:t,e.modalClass,e.modalFade),e.lockScroll)){this.withoutHiddenClass=!(0,f.hasClass)(document.body,"el-popup-parent--hidden"),this.withoutHiddenClass&&(this.bodyPaddingRight=document.body.style.paddingRight,this.computedBodyPaddingRight=parseInt((0,f.getStyle)(document.body,"paddingRight"),10)),p=(0,c.default)();var i=document.documentElement.clientHeight<document.body.scrollHeight,o=(0,f.getStyle)(document.body,"overflowY");p>0&&(i||"scroll"===o)&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.computedBodyPaddingRight+p+"px"),(0,f.addClass)(document.body,"el-popup-parent--hidden")}"static"===getComputedStyle(t).position&&(t.style.position="absolute"),t.style.zIndex=l.default.nextZIndex(),this.opened=!0,this.onOpen&&this.onOpen(),this.doAfterOpen()}},doAfterOpen:function(){this._opening=!1},close:function(){var e=this;if(!this.willClose||this.willClose()){null!==this._openTimer&&(clearTimeout(this._openTimer),this._openTimer=null),clearTimeout(this._closeTimer);var t=Number(this.closeDelay);t>0?this._closeTimer=setTimeout((function(){e._closeTimer=null,e.doClose()}),t):this.doClose()}},doClose:function(){this._closing=!0,this.onClose&&this.onClose(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose()},doAfterClose:function(){l.default.closeModal(this._popupId),this._closing=!1},restoreBodyStyle:function(){this.modal&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.bodyPaddingRight,(0,f.removeClass)(document.body,"el-popup-parent--hidden")),this.withoutHiddenClass=!0}}},t.PopupManager=l.default},ebd6:function(e,t,n){var r=n("cb7c"),i=n("d8e8"),o=n("2b4c")("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||void 0==(n=r(a)[o])?t:i(n)}},ebfd:function(e,t,n){var r=n("62a0")("meta"),i=n("f772"),o=n("07e3"),a=n("d9f6").f,s=0,l=Object.isExtensible||function(){return!0},u=!n("294c")((function(){return l(Object.preventExtensions({}))})),c=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},f=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!l(e))return"F";if(!t)return"E";c(e)}return e[r].i},d=function(e,t){if(!o(e,r)){if(!l(e))return!0;if(!t)return!1;c(e)}return e[r].w},h=function(e){return u&&p.NEED&&l(e)&&!o(e,r)&&c(e),e},p=e.exports={KEY:r,NEED:!1,fastKey:f,getWeak:d,onFreeze:h}},ec27:function(e,t,n){n("fc39")},ec30:function(e,t,n){"use strict";if(n("9e1e")){var r=n("2d00"),i=n("7726"),o=n("79e5"),a=n("5ca1"),s=n("0f88"),l=n("ed0b"),u=n("9b43"),c=n("f605"),f=n("4630"),d=n("32e9"),h=n("dcbc"),p=n("4588"),m=n("9def"),g=n("09fa"),v=n("77f1"),b=n("6a99"),y=n("69a8"),w=n("23c6"),_=n("d3f4"),C=n("4bf8"),x=n("33a4"),S=n("2aeb"),k=n("38fd"),D=n("9093").f,O=n("27ee"),T=n("ca5a"),E=n("2b4c"),I=n("0a49"),N=n("c366"),A=n("ebd6"),P=n("cadf"),M=n("84f2"),R=n("5cc5"),F=n("7a56"),B=n("36bd"),L=n("ba92"),$=n("86cc"),V=n("11e9"),j=$.f,z=V.f,H=i.RangeError,U=i.TypeError,W=i.Uint8Array,q="ArrayBuffer",G="Shared"+q,Y="BYTES_PER_ELEMENT",K="prototype",X=Array[K],J=l.ArrayBuffer,Z=l.DataView,Q=I(0),ee=I(2),te=I(3),ne=I(4),re=I(5),ie=I(6),oe=N(!0),ae=N(!1),se=P.values,le=P.keys,ue=P.entries,ce=X.lastIndexOf,fe=X.reduce,de=X.reduceRight,he=X.join,pe=X.sort,me=X.slice,ge=X.toString,ve=X.toLocaleString,be=E("iterator"),ye=E("toStringTag"),we=T("typed_constructor"),_e=T("def_constructor"),Ce=s.CONSTR,xe=s.TYPED,Se=s.VIEW,ke="Wrong length!",De=I(1,(function(e,t){return Ne(A(e,e[_e]),t)})),Oe=o((function(){return 1===new W(new Uint16Array([1]).buffer)[0]})),Te=!!W&&!!W[K].set&&o((function(){new W(1).set({})})),Ee=function(e,t){var n=p(e);if(n<0||n%t)throw H("Wrong offset!");return n},Ie=function(e){if(_(e)&&xe in e)return e;throw U(e+" is not a typed array!")},Ne=function(e,t){if(!_(e)||!(we in e))throw U("It is not a typed array constructor!");return new e(t)},Ae=function(e,t){return Pe(A(e,e[_e]),t)},Pe=function(e,t){var n=0,r=t.length,i=Ne(e,r);while(r>n)i[n]=t[n++];return i},Me=function(e,t,n){j(e,t,{get:function(){return this._d[n]}})},Re=function(e){var t,n,r,i,o,a,s=C(e),l=arguments.length,c=l>1?arguments[1]:void 0,f=void 0!==c,d=O(s);if(void 0!=d&&!x(d)){for(a=d.call(s),r=[],t=0;!(o=a.next()).done;t++)r.push(o.value);s=r}for(f&&l>2&&(c=u(c,arguments[2],2)),t=0,n=m(s.length),i=Ne(this,n);n>t;t++)i[t]=f?c(s[t],t):s[t];return i},Fe=function(){var e=0,t=arguments.length,n=Ne(this,t);while(t>e)n[e]=arguments[e++];return n},Be=!!W&&o((function(){ve.call(new W(1))})),Le=function(){return ve.apply(Be?me.call(Ie(this)):Ie(this),arguments)},$e={copyWithin:function(e,t){return L.call(Ie(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return ne(Ie(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return B.apply(Ie(this),arguments)},filter:function(e){return Ae(this,ee(Ie(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return re(Ie(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ie(Ie(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){Q(Ie(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return ae(Ie(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return oe(Ie(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return he.apply(Ie(this),arguments)},lastIndexOf:function(e){return ce.apply(Ie(this),arguments)},map:function(e){return De(Ie(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return fe.apply(Ie(this),arguments)},reduceRight:function(e){return de.apply(Ie(this),arguments)},reverse:function(){var e,t=this,n=Ie(t).length,r=Math.floor(n/2),i=0;while(i<r)e=t[i],t[i++]=t[--n],t[n]=e;return t},some:function(e){return te(Ie(this),e,arguments.length>1?arguments[1]:void 0)},sort:function(e){return pe.call(Ie(this),e)},subarray:function(e,t){var n=Ie(this),r=n.length,i=v(e,r);return new(A(n,n[_e]))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,m((void 0===t?r:v(t,r))-i))}},Ve=function(e,t){return Ae(this,me.call(Ie(this),e,t))},je=function(e){Ie(this);var t=Ee(arguments[1],1),n=this.length,r=C(e),i=m(r.length),o=0;if(i+t>n)throw H(ke);while(o<i)this[t+o]=r[o++]},ze={entries:function(){return ue.call(Ie(this))},keys:function(){return le.call(Ie(this))},values:function(){return se.call(Ie(this))}},He=function(e,t){return _(e)&&e[xe]&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},Ue=function(e,t){return He(e,t=b(t,!0))?f(2,e[t]):z(e,t)},We=function(e,t,n){return!(He(e,t=b(t,!0))&&_(n)&&y(n,"value"))||y(n,"get")||y(n,"set")||n.configurable||y(n,"writable")&&!n.writable||y(n,"enumerable")&&!n.enumerable?j(e,t,n):(e[t]=n.value,e)};Ce||(V.f=Ue,$.f=We),a(a.S+a.F*!Ce,"Object",{getOwnPropertyDescriptor:Ue,defineProperty:We}),o((function(){ge.call({})}))&&(ge=ve=function(){return he.call(this)});var qe=h({},$e);h(qe,ze),d(qe,be,ze.values),h(qe,{slice:Ve,set:je,constructor:function(){},toString:ge,toLocaleString:Le}),Me(qe,"buffer","b"),Me(qe,"byteOffset","o"),Me(qe,"byteLength","l"),Me(qe,"length","e"),j(qe,ye,{get:function(){return this[xe]}}),e.exports=function(e,t,n,l){l=!!l;var u=e+(l?"Clamped":"")+"Array",f="get"+e,h="set"+e,p=i[u],v=p||{},b=p&&k(p),y=!p||!s.ABV,C={},x=p&&p[K],O=function(e,n){var r=e._d;return r.v[f](n*t+r.o,Oe)},T=function(e,n,r){var i=e._d;l&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),i.v[h](n*t+i.o,r,Oe)},E=function(e,t){j(e,t,{get:function(){return O(this,t)},set:function(e){return T(this,t,e)},enumerable:!0})};y?(p=n((function(e,n,r,i){c(e,p,u,"_d");var o,a,s,l,f=0,h=0;if(_(n)){if(!(n instanceof J||(l=w(n))==q||l==G))return xe in n?Pe(p,n):Re.call(p,n);o=n,h=Ee(r,t);var v=n.byteLength;if(void 0===i){if(v%t)throw H(ke);if(a=v-h,a<0)throw H(ke)}else if(a=m(i)*t,a+h>v)throw H(ke);s=a/t}else s=g(n),a=s*t,o=new J(a);d(e,"_d",{b:o,o:h,l:a,e:s,v:new Z(o)});while(f<s)E(e,f++)})),x=p[K]=S(qe),d(x,"constructor",p)):o((function(){p(1)}))&&o((function(){new p(-1)}))&&R((function(e){new p,new p(null),new p(1.5),new p(e)}),!0)||(p=n((function(e,n,r,i){var o;return c(e,p,u),_(n)?n instanceof J||(o=w(n))==q||o==G?void 0!==i?new v(n,Ee(r,t),i):void 0!==r?new v(n,Ee(r,t)):new v(n):xe in n?Pe(p,n):Re.call(p,n):new v(g(n))})),Q(b!==Function.prototype?D(v).concat(D(b)):D(v),(function(e){e in p||d(p,e,v[e])})),p[K]=x,r||(x.constructor=p));var I=x[be],N=!!I&&("values"==I.name||void 0==I.name),A=ze.values;d(p,we,!0),d(x,xe,u),d(x,Se,!0),d(x,_e,p),(l?new p(1)[ye]==u:ye in x)||j(x,ye,{get:function(){return u}}),C[u]=p,a(a.G+a.W+a.F*(p!=v),C),a(a.S,u,{BYTES_PER_ELEMENT:t}),a(a.S+a.F*o((function(){v.of.call(p,1)})),u,{from:Re,of:Fe}),Y in x||d(x,Y,t),a(a.P,u,$e),F(u),a(a.P+a.F*Te,u,{set:je}),a(a.P+a.F*!N,u,ze),r||x.toString==ge||(x.toString=ge),a(a.P+a.F*o((function(){new p(1).slice()})),u,{slice:Ve}),a(a.P+a.F*(o((function(){return[1,2].toLocaleString()!=new p([1,2]).toLocaleString()}))||!o((function(){x.toLocaleString.call([1,2])}))),u,{toLocaleString:Le}),M[u]=N?I:A,r||N||d(x,be,A)}}else e.exports=function(){}},ec6d:function(e,t,n){"use strict";var r=n("67f0"),i=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.forName=function(e){return this.getCharacterSetECIByName(e)},t}(r["a"]);t["a"]=o},ed0b:function(e,t,n){"use strict";var r=n("7726"),i=n("9e1e"),o=n("2d00"),a=n("0f88"),s=n("32e9"),l=n("dcbc"),u=n("79e5"),c=n("f605"),f=n("4588"),d=n("9def"),h=n("09fa"),p=n("9093").f,m=n("86cc").f,g=n("36bd"),v=n("7f20"),b="ArrayBuffer",y="DataView",w="prototype",_="Wrong length!",C="Wrong index!",x=r[b],S=r[y],k=r.Math,D=r.RangeError,O=r.Infinity,T=x,E=k.abs,I=k.pow,N=k.floor,A=k.log,P=k.LN2,M="buffer",R="byteLength",F="byteOffset",B=i?"_b":M,L=i?"_l":R,$=i?"_o":F;function V(e,t,n){var r,i,o,a=new Array(n),s=8*n-t-1,l=(1<<s)-1,u=l>>1,c=23===t?I(2,-24)-I(2,-77):0,f=0,d=e<0||0===e&&1/e<0?1:0;for(e=E(e),e!=e||e===O?(i=e!=e?1:0,r=l):(r=N(A(e)/P),e*(o=I(2,-r))<1&&(r--,o*=2),e+=r+u>=1?c/o:c*I(2,1-u),e*o>=2&&(r++,o/=2),r+u>=l?(i=0,r=l):r+u>=1?(i=(e*o-1)*I(2,t),r+=u):(i=e*I(2,u-1)*I(2,t),r=0));t>=8;a[f++]=255&i,i/=256,t-=8);for(r=r<<t|i,s+=t;s>0;a[f++]=255&r,r/=256,s-=8);return a[--f]|=128*d,a}function j(e,t,n){var r,i=8*n-t-1,o=(1<<i)-1,a=o>>1,s=i-7,l=n-1,u=e[l--],c=127&u;for(u>>=7;s>0;c=256*c+e[l],l--,s-=8);for(r=c&(1<<-s)-1,c>>=-s,s+=t;s>0;r=256*r+e[l],l--,s-=8);if(0===c)c=1-a;else{if(c===o)return r?NaN:u?-O:O;r+=I(2,t),c-=a}return(u?-1:1)*r*I(2,c-t)}function z(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function H(e){return[255&e]}function U(e){return[255&e,e>>8&255]}function W(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function q(e){return V(e,52,8)}function G(e){return V(e,23,4)}function Y(e,t,n){m(e[w],t,{get:function(){return this[n]}})}function K(e,t,n,r){var i=+n,o=h(i);if(o+t>e[L])throw D(C);var a=e[B]._b,s=o+e[$],l=a.slice(s,s+t);return r?l:l.reverse()}function X(e,t,n,r,i,o){var a=+n,s=h(a);if(s+t>e[L])throw D(C);for(var l=e[B]._b,u=s+e[$],c=r(+i),f=0;f<t;f++)l[u+f]=c[o?f:t-f-1]}if(a.ABV){if(!u((function(){x(1)}))||!u((function(){new x(-1)}))||u((function(){return new x,new x(1.5),new x(NaN),x.name!=b}))){x=function(e){return c(this,x),new T(h(e))};for(var J,Z=x[w]=T[w],Q=p(T),ee=0;Q.length>ee;)(J=Q[ee++])in x||s(x,J,T[J]);o||(Z.constructor=x)}var te=new S(new x(2)),ne=S[w].setInt8;te.setInt8(0,2147483648),te.setInt8(1,2147483649),!te.getInt8(0)&&te.getInt8(1)||l(S[w],{setInt8:function(e,t){ne.call(this,e,t<<24>>24)},setUint8:function(e,t){ne.call(this,e,t<<24>>24)}},!0)}else x=function(e){c(this,x,b);var t=h(e);this._b=g.call(new Array(t),0),this[L]=t},S=function(e,t,n){c(this,S,y),c(e,x,y);var r=e[L],i=f(t);if(i<0||i>r)throw D("Wrong offset!");if(n=void 0===n?r-i:d(n),i+n>r)throw D(_);this[B]=e,this[$]=i,this[L]=n},i&&(Y(x,R,"_l"),Y(S,M,"_b"),Y(S,R,"_l"),Y(S,F,"_o")),l(S[w],{getInt8:function(e){return K(this,1,e)[0]<<24>>24},getUint8:function(e){return K(this,1,e)[0]},getInt16:function(e){var t=K(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=K(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return z(K(this,4,e,arguments[1]))},getUint32:function(e){return z(K(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return j(K(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return j(K(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){X(this,1,e,H,t)},setUint8:function(e,t){X(this,1,e,H,t)},setInt16:function(e,t){X(this,2,e,U,t,arguments[2])},setUint16:function(e,t){X(this,2,e,U,t,arguments[2])},setInt32:function(e,t){X(this,4,e,W,t,arguments[2])},setUint32:function(e,t){X(this,4,e,W,t,arguments[2])},setFloat32:function(e,t){X(this,4,e,G,t,arguments[2])},setFloat64:function(e,t){X(this,8,e,q,t,arguments[2])}});v(x,b),v(S,y),s(S[w],a.VIEW,!0),t[b]=x,t[y]=S},ee54:function(e,t,n){"use strict";var r=n("a363"),i=n("2011"),o=n("fe96"),a=n("ca08"),s=n("2f50"),l=n("64a7"),u=n("63af"),c=n("2d92"),f=n("547e"),d=n("34c8"),h=n("7978"),p=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},m=function(){function e(e,t,n){this.ecCodewords=e,this.ecBlocks=[t],n&&this.ecBlocks.push(n)}return e.prototype.getECCodewords=function(){return this.ecCodewords},e.prototype.getECBlocks=function(){return this.ecBlocks},e}(),g=function(){function e(e,t){this.count=e,this.dataCodewords=t}return e.prototype.getCount=function(){return this.count},e.prototype.getDataCodewords=function(){return this.dataCodewords},e}(),v=function(){function e(e,t,n,r,i,o){var a,s;this.versionNumber=e,this.symbolSizeRows=t,this.symbolSizeColumns=n,this.dataRegionSizeRows=r,this.dataRegionSizeColumns=i,this.ecBlocks=o;var l=0,u=o.getECCodewords(),c=o.getECBlocks();try{for(var f=p(c),d=f.next();!d.done;d=f.next()){var h=d.value;l+=h.getCount()*(h.getDataCodewords()+u)}}catch(m){a={error:m}}finally{try{d&&!d.done&&(s=f.return)&&s.call(f)}finally{if(a)throw a.error}}this.totalCodewords=l}return e.prototype.getVersionNumber=function(){return this.versionNumber},e.prototype.getSymbolSizeRows=function(){return this.symbolSizeRows},e.prototype.getSymbolSizeColumns=function(){return this.symbolSizeColumns},e.prototype.getDataRegionSizeRows=function(){return this.dataRegionSizeRows},e.prototype.getDataRegionSizeColumns=function(){return this.dataRegionSizeColumns},e.prototype.getTotalCodewords=function(){return this.totalCodewords},e.prototype.getECBlocks=function(){return this.ecBlocks},e.getVersionForDimensions=function(t,n){var r,i;if(0!==(1&t)||0!==(1&n))throw new h["a"];try{for(var o=p(e.VERSIONS),a=o.next();!a.done;a=o.next()){var s=a.value;if(s.symbolSizeRows===t&&s.symbolSizeColumns===n)return s}}catch(l){r={error:l}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}throw new h["a"]},e.prototype.toString=function(){return""+this.versionNumber},e.buildVersions=function(){return[new e(1,10,10,8,8,new m(5,new g(1,3))),new e(2,12,12,10,10,new m(7,new g(1,5))),new e(3,14,14,12,12,new m(10,new g(1,8))),new e(4,16,16,14,14,new m(12,new g(1,12))),new e(5,18,18,16,16,new m(14,new g(1,18))),new e(6,20,20,18,18,new m(18,new g(1,22))),new e(7,22,22,20,20,new m(20,new g(1,30))),new e(8,24,24,22,22,new m(24,new g(1,36))),new e(9,26,26,24,24,new m(28,new g(1,44))),new e(10,32,32,14,14,new m(36,new g(1,62))),new e(11,36,36,16,16,new m(42,new g(1,86))),new e(12,40,40,18,18,new m(48,new g(1,114))),new e(13,44,44,20,20,new m(56,new g(1,144))),new e(14,48,48,22,22,new m(68,new g(1,174))),new e(15,52,52,24,24,new m(42,new g(2,102))),new e(16,64,64,14,14,new m(56,new g(2,140))),new e(17,72,72,16,16,new m(36,new g(4,92))),new e(18,80,80,18,18,new m(48,new g(4,114))),new e(19,88,88,20,20,new m(56,new g(4,144))),new e(20,96,96,22,22,new m(68,new g(4,174))),new e(21,104,104,24,24,new m(56,new g(6,136))),new e(22,120,120,18,18,new m(68,new g(6,175))),new e(23,132,132,20,20,new m(62,new g(8,163))),new e(24,144,144,22,22,new m(62,new g(8,156),new g(2,155))),new e(25,8,18,6,16,new m(7,new g(1,5))),new e(26,8,32,6,14,new m(11,new g(1,10))),new e(27,12,26,10,24,new m(14,new g(1,16))),new e(28,12,36,10,16,new m(18,new g(1,22))),new e(29,16,36,14,16,new m(24,new g(1,32))),new e(30,16,48,14,22,new m(28,new g(1,49)))]},e.VERSIONS=e.buildVersions(),e}(),b=v,y=n("f0a7"),w=function(){function e(t){var n=t.getHeight();if(n<8||n>144||0!==(1&n))throw new h["a"];this.version=e.readVersion(t),this.mappingBitMatrix=this.extractDataRegion(t),this.readMappingMatrix=new i["a"](this.mappingBitMatrix.getWidth(),this.mappingBitMatrix.getHeight())}return e.prototype.getVersion=function(){return this.version},e.readVersion=function(e){var t=e.getHeight(),n=e.getWidth();return b.getVersionForDimensions(t,n)},e.prototype.readCodewords=function(){var e=new Int8Array(this.version.getTotalCodewords()),t=0,n=4,r=0,i=this.mappingBitMatrix.getHeight(),o=this.mappingBitMatrix.getWidth(),a=!1,s=!1,l=!1,u=!1;do{if(n!==i||0!==r||a)if(n!==i-2||0!==r||0===(3&o)||s)if(n!==i+4||2!==r||0!==(7&o)||l)if(n!==i-2||0!==r||4!==(7&o)||u){do{n<i&&r>=0&&!this.readMappingMatrix.get(r,n)&&(e[t++]=255&this.readUtah(n,r,i,o)),n-=2,r+=2}while(n>=0&&r<o);n+=1,r+=3;do{n>=0&&r<o&&!this.readMappingMatrix.get(r,n)&&(e[t++]=255&this.readUtah(n,r,i,o)),n+=2,r-=2}while(n<i&&r>=0);n+=3,r+=1}else e[t++]=255&this.readCorner4(i,o),n-=2,r+=2,u=!0;else e[t++]=255&this.readCorner3(i,o),n-=2,r+=2,l=!0;else e[t++]=255&this.readCorner2(i,o),n-=2,r+=2,s=!0;else e[t++]=255&this.readCorner1(i,o),n-=2,r+=2,a=!0}while(n<i||r<o);if(t!==this.version.getTotalCodewords())throw new h["a"];return e},e.prototype.readModule=function(e,t,n,r){return e<0&&(e+=n,t+=4-(n+4&7)),t<0&&(t+=r,e+=4-(r+4&7)),this.readMappingMatrix.set(t,e),this.mappingBitMatrix.get(t,e)},e.prototype.readUtah=function(e,t,n,r){var i=0;return this.readModule(e-2,t-2,n,r)&&(i|=1),i<<=1,this.readModule(e-2,t-1,n,r)&&(i|=1),i<<=1,this.readModule(e-1,t-2,n,r)&&(i|=1),i<<=1,this.readModule(e-1,t-1,n,r)&&(i|=1),i<<=1,this.readModule(e-1,t,n,r)&&(i|=1),i<<=1,this.readModule(e,t-2,n,r)&&(i|=1),i<<=1,this.readModule(e,t-1,n,r)&&(i|=1),i<<=1,this.readModule(e,t,n,r)&&(i|=1),i},e.prototype.readCorner1=function(e,t){var n=0;return this.readModule(e-1,0,e,t)&&(n|=1),n<<=1,this.readModule(e-1,1,e,t)&&(n|=1),n<<=1,this.readModule(e-1,2,e,t)&&(n|=1),n<<=1,this.readModule(0,t-2,e,t)&&(n|=1),n<<=1,this.readModule(0,t-1,e,t)&&(n|=1),n<<=1,this.readModule(1,t-1,e,t)&&(n|=1),n<<=1,this.readModule(2,t-1,e,t)&&(n|=1),n<<=1,this.readModule(3,t-1,e,t)&&(n|=1),n},e.prototype.readCorner2=function(e,t){var n=0;return this.readModule(e-3,0,e,t)&&(n|=1),n<<=1,this.readModule(e-2,0,e,t)&&(n|=1),n<<=1,this.readModule(e-1,0,e,t)&&(n|=1),n<<=1,this.readModule(0,t-4,e,t)&&(n|=1),n<<=1,this.readModule(0,t-3,e,t)&&(n|=1),n<<=1,this.readModule(0,t-2,e,t)&&(n|=1),n<<=1,this.readModule(0,t-1,e,t)&&(n|=1),n<<=1,this.readModule(1,t-1,e,t)&&(n|=1),n},e.prototype.readCorner3=function(e,t){var n=0;return this.readModule(e-1,0,e,t)&&(n|=1),n<<=1,this.readModule(e-1,t-1,e,t)&&(n|=1),n<<=1,this.readModule(0,t-3,e,t)&&(n|=1),n<<=1,this.readModule(0,t-2,e,t)&&(n|=1),n<<=1,this.readModule(0,t-1,e,t)&&(n|=1),n<<=1,this.readModule(1,t-3,e,t)&&(n|=1),n<<=1,this.readModule(1,t-2,e,t)&&(n|=1),n<<=1,this.readModule(1,t-1,e,t)&&(n|=1),n},e.prototype.readCorner4=function(e,t){var n=0;return this.readModule(e-3,0,e,t)&&(n|=1),n<<=1,this.readModule(e-2,0,e,t)&&(n|=1),n<<=1,this.readModule(e-1,0,e,t)&&(n|=1),n<<=1,this.readModule(0,t-2,e,t)&&(n|=1),n<<=1,this.readModule(0,t-1,e,t)&&(n|=1),n<<=1,this.readModule(1,t-1,e,t)&&(n|=1),n<<=1,this.readModule(2,t-1,e,t)&&(n|=1),n<<=1,this.readModule(3,t-1,e,t)&&(n|=1),n},e.prototype.extractDataRegion=function(e){var t=this.version.getSymbolSizeRows(),n=this.version.getSymbolSizeColumns();if(e.getHeight()!==t)throw new y["a"]("Dimension of bitMatrix must match the version size");for(var r=this.version.getDataRegionSizeRows(),o=this.version.getDataRegionSizeColumns(),a=t/r|0,s=n/o|0,l=a*r,u=s*o,c=new i["a"](u,l),f=0;f<a;++f)for(var d=f*r,h=0;h<s;++h)for(var p=h*o,m=0;m<r;++m)for(var g=f*(r+2)+1+m,v=d+m,b=0;b<o;++b){var w=h*(o+2)+1+b;if(e.get(w,g)){var _=p+b;c.set(_,v)}}return c},e}(),_=w,C=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},x=function(){function e(e,t){this.numDataCodewords=e,this.codewords=t}return e.getDataBlocks=function(t,n){var r,i,o,a,s=n.getECBlocks(),l=0,u=s.getECBlocks();try{for(var c=C(u),f=c.next();!f.done;f=c.next()){var d=f.value;l+=d.getCount()}}catch(A){r={error:A}}finally{try{f&&!f.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}var h=new Array(l),p=0;try{for(var m=C(u),g=m.next();!g.done;g=m.next()){d=g.value;for(var v=0;v<d.getCount();v++){var b=d.getDataCodewords(),w=s.getECCodewords()+b;h[p++]=new e(b,new Uint8Array(w))}}}catch(P){o={error:P}}finally{try{g&&!g.done&&(a=m.return)&&a.call(m)}finally{if(o)throw o.error}}var _=h[0].codewords.length,x=_-s.getECCodewords(),S=x-1,k=0;for(v=0;v<S;v++)for(var D=0;D<p;D++)h[D].codewords[v]=t[k++];var O=24===n.getVersionNumber(),T=O?8:p;for(D=0;D<T;D++)h[D].codewords[x-1]=t[k++];var E=h[0].codewords.length;for(v=x;v<E;v++)for(D=0;D<p;D++){var I=O?(D+8)%p:D,N=O&&I>7?v-1:v;h[I].codewords[N]=t[k++]}if(k!==t.length)throw new y["a"];return h},e.prototype.getNumDataCodewords=function(){return this.numDataCodewords},e.prototype.getCodewords=function(){return this.codewords},e}(),S=x,k=n("acf3"),D=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},O=function(){function e(){this.rsDecoder=new d["a"](f["a"].DATA_MATRIX_FIELD_256)}return e.prototype.decode=function(e){var t,n,r=new _(e),i=r.getVersion(),o=r.readCodewords(),a=S.getDataBlocks(o,i),s=0;try{for(var l=D(a),u=l.next();!u.done;u=l.next()){var c=u.value;s+=c.getNumDataCodewords()}}catch(b){t={error:b}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}for(var f=new Uint8Array(s),d=a.length,h=0;h<d;h++){var p=a[h],m=p.getCodewords(),g=p.getNumDataCodewords();this.correctErrors(m,g);for(var v=0;v<g;v++)f[v*d+h]=m[v]}return k["a"].decode(f)},e.prototype.correctErrors=function(e,t){var n=new Int32Array(e);try{this.rsDecoder.decode(n,e.length-t)}catch(i){throw new c["a"]}for(var r=0;r<t;r++)e[r]=n[r]},e}(),T=O,E=n("7f3b"),I=n("7a37"),N=n("be40"),A=n("8c95"),P=function(){function e(e){this.image=e,this.rectangleDetector=new E["a"](this.image)}return e.prototype.detect=function(){var t=this.rectangleDetector.detect(),n=this.detectSolid1(t);if(n=this.detectSolid2(n),n[3]=this.correctTopRight(n),!n[3])throw new a["a"];n=this.shiftToModuleCenter(n);var r=n[0],i=n[1],o=n[2],s=n[3],l=this.transitionsBetween(r,s)+1,u=this.transitionsBetween(o,s)+1;1===(1&l)&&(l+=1),1===(1&u)&&(u+=1),4*l<7*u&&4*u<7*l&&(l=u=Math.max(l,u));var c=e.sampleGrid(this.image,r,i,o,s,l,u);return new I["a"](c,[r,i,o,s])},e.shiftPoint=function(e,t,n){var r=(t.getX()-e.getX())/(n+1),i=(t.getY()-e.getY())/(n+1);return new A["a"](e.getX()+r,e.getY()+i)},e.moveAway=function(e,t,n){var r=e.getX(),i=e.getY();return r<t?r-=1:r+=1,i<n?i-=1:i+=1,new A["a"](r,i)},e.prototype.detectSolid1=function(e){var t=e[0],n=e[1],r=e[3],i=e[2],o=this.transitionsBetween(t,n),a=this.transitionsBetween(n,r),s=this.transitionsBetween(r,i),l=this.transitionsBetween(i,t),u=o,c=[i,t,n,r];return u>a&&(u=a,c[0]=t,c[1]=n,c[2]=r,c[3]=i),u>s&&(u=s,c[0]=n,c[1]=r,c[2]=i,c[3]=t),u>l&&(c[0]=r,c[1]=i,c[2]=t,c[3]=n),c},e.prototype.detectSolid2=function(t){var n=t[0],r=t[1],i=t[2],o=t[3],a=this.transitionsBetween(n,o),s=e.shiftPoint(r,i,4*(a+1)),l=e.shiftPoint(i,r,4*(a+1)),u=this.transitionsBetween(s,n),c=this.transitionsBetween(l,o);return u<c?(t[0]=n,t[1]=r,t[2]=i,t[3]=o):(t[0]=r,t[1]=i,t[2]=o,t[3]=n),t},e.prototype.correctTopRight=function(t){var n=t[0],r=t[1],i=t[2],o=t[3],a=this.transitionsBetween(n,o),s=this.transitionsBetween(r,o),l=e.shiftPoint(n,r,4*(s+1)),u=e.shiftPoint(i,r,4*(a+1));a=this.transitionsBetween(l,o),s=this.transitionsBetween(u,o);var c=new A["a"](o.getX()+(i.getX()-r.getX())/(a+1),o.getY()+(i.getY()-r.getY())/(a+1)),f=new A["a"](o.getX()+(n.getX()-r.getX())/(s+1),o.getY()+(n.getY()-r.getY())/(s+1));if(!this.isValid(c))return this.isValid(f)?f:null;if(!this.isValid(f))return c;var d=this.transitionsBetween(l,c)+this.transitionsBetween(u,c),h=this.transitionsBetween(l,f)+this.transitionsBetween(u,f);return d>h?c:f},e.prototype.shiftToModuleCenter=function(t){var n=t[0],r=t[1],i=t[2],o=t[3],a=this.transitionsBetween(n,o)+1,s=this.transitionsBetween(i,o)+1,l=e.shiftPoint(n,r,4*s),u=e.shiftPoint(i,r,4*a);a=this.transitionsBetween(l,o)+1,s=this.transitionsBetween(u,o)+1,1===(1&a)&&(a+=1),1===(1&s)&&(s+=1);var c,f,d=(n.getX()+r.getX()+i.getX()+o.getX())/4,h=(n.getY()+r.getY()+i.getY()+o.getY())/4;return n=e.moveAway(n,d,h),r=e.moveAway(r,d,h),i=e.moveAway(i,d,h),o=e.moveAway(o,d,h),l=e.shiftPoint(n,r,4*s),l=e.shiftPoint(l,o,4*a),c=e.shiftPoint(r,n,4*s),c=e.shiftPoint(c,i,4*a),u=e.shiftPoint(i,o,4*s),u=e.shiftPoint(u,r,4*a),f=e.shiftPoint(o,i,4*s),f=e.shiftPoint(f,n,4*a),[l,c,u,f]},e.prototype.isValid=function(e){return e.getX()>=0&&e.getX()<this.image.getWidth()&&e.getY()>0&&e.getY()<this.image.getHeight()},e.sampleGrid=function(e,t,n,r,i,o,a){var s=N["a"].getInstance();return s.sampleGrid(e,o,a,.5,.5,o-.5,.5,o-.5,a-.5,.5,a-.5,t.getX(),t.getY(),i.getX(),i.getY(),r.getX(),r.getY(),n.getX(),n.getY())},e.prototype.transitionsBetween=function(e,t){var n=Math.trunc(e.getX()),r=Math.trunc(e.getY()),i=Math.trunc(t.getX()),o=Math.trunc(t.getY()),a=Math.abs(o-r)>Math.abs(i-n);if(a){var s=n;n=r,r=s,s=i,i=o,o=s}for(var l=Math.abs(i-n),u=Math.abs(o-r),c=-l/2,f=r<o?1:-1,d=n<i?1:-1,h=0,p=this.image.get(a?r:n,a?n:r),m=n,g=r;m!==i;m+=d){var v=this.image.get(a?g:m,a?m:g);if(v!==p&&(h++,p=v),c+=u,c>0){if(g===o)break;g+=f,c-=l}}return h},e}(),M=P,R=function(){function e(){this.decoder=new T}return e.prototype.decode=function(t,n){var i,a;if(void 0===n&&(n=null),null!=n&&n.has(o["a"].PURE_BARCODE)){var c=e.extractPureBits(t.getBlackMatrix());i=this.decoder.decode(c),a=e.NO_POINTS}else{var f=new M(t.getBlackMatrix()).detect();i=this.decoder.decode(f.getBits()),a=f.getPoints()}var d=i.getRawBytes(),h=new s["a"](i.getText(),d,8*d.length,a,r["a"].DATA_MATRIX,u["a"].currentTimeMillis()),p=i.getByteSegments();null!=p&&h.putMetadata(l["a"].BYTE_SEGMENTS,p);var m=i.getECLevel();return null!=m&&h.putMetadata(l["a"].ERROR_CORRECTION_LEVEL,m),h},e.prototype.reset=function(){},e.extractPureBits=function(e){var t=e.getTopLeftOnBit(),n=e.getBottomRightOnBit();if(null==t||null==n)throw new a["a"];var r=this.moduleSize(t,e),o=t[1],s=n[1],l=t[0],u=n[0],c=(u-l+1)/r,f=(s-o+1)/r;if(c<=0||f<=0)throw new a["a"];var d=r/2;o+=d,l+=d;for(var h=new i["a"](c,f),p=0;p<f;p++)for(var m=o+p*r,g=0;g<c;g++)e.get(l+g*r,m)&&h.set(g,p);return h},e.moduleSize=function(e,t){var n=t.getWidth(),r=e[0],i=e[1];while(r<n&&t.get(r,i))r++;if(r===n)throw new a["a"];var o=r-e[0];if(0===o)throw new a["a"];return o},e.NO_POINTS=[],e}();t["a"]=R},ef01:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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="/dist/",n(n.s=90)}({1:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var l,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},11:function(e,t){e.exports=n("5ea8")},13:function(e,t){e.exports=n("e245")},26:function(e,t){e.exports=n("6864")},4:function(e,t){e.exports=n("bbe4")},90:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["textarea"===e.type?"el-textarea":"el-input",e.inputSize?"el-input--"+e.inputSize:"",{"is-disabled":e.inputDisabled,"is-exceed":e.inputExceed,"el-input-group":e.$slots.prepend||e.$slots.append,"el-input-group--append":e.$slots.append,"el-input-group--prepend":e.$slots.prepend,"el-input--prefix":e.$slots.prefix||e.prefixIcon,"el-input--suffix":e.$slots.suffix||e.suffixIcon||e.clearable||e.showPassword}],on:{mouseenter:function(t){e.hovering=!0},mouseleave:function(t){e.hovering=!1}}},["textarea"!==e.type?[e.$slots.prepend?n("div",{staticClass:"el-input-group__prepend"},[e._t("prepend")],2):e._e(),"textarea"!==e.type?n("input",e._b({ref:"input",staticClass:"el-input__inner",attrs:{tabindex:e.tabindex,type:e.showPassword?e.passwordVisible?"text":"password":e.type,disabled:e.inputDisabled,readonly:e.readonly,autocomplete:e.autoComplete||e.autocomplete,"aria-label":e.label},on:{compositionstart:e.handleCompositionStart,compositionupdate:e.handleCompositionUpdate,compositionend:e.handleCompositionEnd,input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},"input",e.$attrs,!1)):e._e(),e.$slots.prefix||e.prefixIcon?n("span",{staticClass:"el-input__prefix"},[e._t("prefix"),e.prefixIcon?n("i",{staticClass:"el-input__icon",class:e.prefixIcon}):e._e()],2):e._e(),e.getSuffixVisible()?n("span",{staticClass:"el-input__suffix"},[n("span",{staticClass:"el-input__suffix-inner"},[e.showClear&&e.showPwdVisible&&e.isWordLimitVisible?e._e():[e._t("suffix"),e.suffixIcon?n("i",{staticClass:"el-input__icon",class:e.suffixIcon}):e._e()],e.showClear?n("i",{staticClass:"el-input__icon el-icon-circle-close el-input__clear",on:{mousedown:function(e){e.preventDefault()},click:e.clear}}):e._e(),e.showPwdVisible?n("i",{staticClass:"el-input__icon el-icon-view el-input__clear",on:{click:e.handlePasswordVisible}}):e._e(),e.isWordLimitVisible?n("span",{staticClass:"el-input__count"},[n("span",{staticClass:"el-input__count-inner"},[e._v("\n "+e._s(e.textLength)+"/"+e._s(e.upperLimit)+"\n ")])]):e._e()],2),e.validateState?n("i",{staticClass:"el-input__icon",class:["el-input__validateIcon",e.validateIcon]}):e._e()]):e._e(),e.$slots.append?n("div",{staticClass:"el-input-group__append"},[e._t("append")],2):e._e()]:n("textarea",e._b({ref:"textarea",staticClass:"el-textarea__inner",style:e.textareaStyle,attrs:{tabindex:e.tabindex,disabled:e.inputDisabled,readonly:e.readonly,autocomplete:e.autoComplete||e.autocomplete,"aria-label":e.label},on:{compositionstart:e.handleCompositionStart,compositionupdate:e.handleCompositionUpdate,compositionend:e.handleCompositionEnd,input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},"textarea",e.$attrs,!1)),e.isWordLimitVisible&&"textarea"===e.type?n("span",{staticClass:"el-input__count"},[e._v(e._s(e.textLength)+"/"+e._s(e.upperLimit))]):e._e()],2)};r._withStripped=!0;var i=n(4),o=n.n(i),a=n(13),s=n.n(a),l=void 0,u="\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",c=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function f(e){var t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=parseFloat(t.getPropertyValue("padding-bottom"))+parseFloat(t.getPropertyValue("padding-top")),i=parseFloat(t.getPropertyValue("border-bottom-width"))+parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:c.map((function(e){return e+":"+t.getPropertyValue(e)})).join(";"),paddingSize:r,borderSize:i,boxSizing:n}}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;l||(l=document.createElement("textarea"),document.body.appendChild(l));var r=f(e),i=r.paddingSize,o=r.borderSize,a=r.boxSizing,s=r.contextStyle;l.setAttribute("style",s+";"+u),l.value=e.value||e.placeholder||"";var c=l.scrollHeight,d={};"border-box"===a?c+=o:"content-box"===a&&(c-=i),l.value="";var h=l.scrollHeight-i;if(null!==t){var p=h*t;"border-box"===a&&(p=p+i+o),c=Math.max(p,c),d.minHeight=p+"px"}if(null!==n){var m=h*n;"border-box"===a&&(m=m+i+o),c=Math.min(m,c)}return d.height=c+"px",l.parentNode&&l.parentNode.removeChild(l),l=null,d}var h=n(11),p=n.n(h),m=n(26),g={name:"ElInput",componentName:"ElInput",mixins:[o.a,s.a],inheritAttrs:!1,inject:{elForm:{default:""},elFormItem:{default:""}},data:function(){return{textareaCalcStyle:{},hovering:!1,focused:!1,isComposing:!1,passwordVisible:!1}},props:{value:[String,Number],size:String,resize:String,form:String,disabled:Boolean,readonly:Boolean,type:{type:String,default:"text"},autosize:{type:[Boolean,Object],default:!1},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(){return!0}},validateEvent:{type:Boolean,default:!0},suffixIcon:String,prefixIcon:String,label:String,clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},tabindex:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},validateState:function(){return this.elFormItem?this.elFormItem.validateState:""},needStatusIcon:function(){return!!this.elForm&&this.elForm.statusIcon},validateIcon:function(){return{validating:"el-icon-loading",success:"el-icon-circle-check",error:"el-icon-circle-close"}[this.validateState]},textareaStyle:function(){return p()({},this.textareaCalcStyle,{resize:this.resize})},inputSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputDisabled:function(){return this.disabled||(this.elForm||{}).disabled},nativeInputValue:function(){return null===this.value||void 0===this.value?"":String(this.value)},showClear:function(){return this.clearable&&!this.inputDisabled&&!this.readonly&&this.nativeInputValue&&(this.focused||this.hovering)},showPwdVisible:function(){return this.showPassword&&!this.inputDisabled&&!this.readonly&&(!!this.nativeInputValue||this.focused)},isWordLimitVisible:function(){return this.showWordLimit&&this.$attrs.maxlength&&("text"===this.type||"textarea"===this.type)&&!this.inputDisabled&&!this.readonly&&!this.showPassword},upperLimit:function(){return this.$attrs.maxlength},textLength:function(){return"number"==typeof this.value?String(this.value).length:(this.value||"").length},inputExceed:function(){return this.isWordLimitVisible&&this.textLength>this.upperLimit}},watch:{value:function(e){this.$nextTick(this.resizeTextarea),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[e])},nativeInputValue:function(){this.setNativeInputValue()},type:function(){var e=this;this.$nextTick((function(){e.setNativeInputValue(),e.resizeTextarea(),e.updateIconOffset()}))}},methods:{focus:function(){this.getInput().focus()},blur:function(){this.getInput().blur()},getMigratingConfig:function(){return{props:{icon:"icon is removed, use suffix-icon / prefix-icon instead.","on-icon-click":"on-icon-click is removed."},events:{click:"click is removed."}}},handleBlur:function(e){this.focused=!1,this.$emit("blur",e),this.validateEvent&&this.dispatch("ElFormItem","el.form.blur",[this.value])},select:function(){this.getInput().select()},resizeTextarea:function(){if(!this.$isServer){var e=this.autosize;if("textarea"===this.type)if(e){var t=e.minRows,n=e.maxRows;this.textareaCalcStyle=d(this.$refs.textarea,t,n)}else this.textareaCalcStyle={minHeight:d(this.$refs.textarea).minHeight}}},setNativeInputValue:function(){var e=this.getInput();e&&e.value!==this.nativeInputValue&&(e.value=this.nativeInputValue)},handleFocus:function(e){this.focused=!0,this.$emit("focus",e)},handleCompositionStart:function(){this.isComposing=!0},handleCompositionUpdate:function(e){var t=e.target.value,n=t[t.length-1]||"";this.isComposing=!Object(m.isKorean)(n)},handleCompositionEnd:function(e){this.isComposing&&(this.isComposing=!1,this.handleInput(e))},handleInput:function(e){this.isComposing||e.target.value!==this.nativeInputValue&&(this.$emit("input",e.target.value),this.$nextTick(this.setNativeInputValue))},handleChange:function(e){this.$emit("change",e.target.value)},calcIconOffset:function(e){var t=[].slice.call(this.$el.querySelectorAll(".el-input__"+e)||[]);if(t.length){for(var n=null,r=0;r<t.length;r++)if(t[r].parentNode===this.$el){n=t[r];break}if(n){if("suffix"===e&&this.isWordLimitVisible){var i=this.$refs.input,o=parseInt(getComputedStyle(n).right,10)||0,a=n.offsetWidth+o;i.style.paddingRight=a+"px"}var s={suffix:"append",prefix:"prepend"}[e];this.$slots[s]?n.style.transform="translateX("+("suffix"===e?"-":"")+this.$el.querySelector(".el-input-group__"+s).offsetWidth+"px)":n.removeAttribute("style")}}else(this.$refs.input||this.$refs.textarea).style.paddingRight=""},updateIconOffset:function(){var e=this;this.$nextTick((function(){e.calcIconOffset("prefix"),e.calcIconOffset("suffix")}))},clear:function(){this.$emit("input",""),this.$emit("change",""),this.$emit("clear")},handlePasswordVisible:function(){var e=this;this.passwordVisible=!this.passwordVisible,this.$nextTick((function(){e.focus()}))},getInput:function(){return this.$refs.input||this.$refs.textarea},getSuffixVisible:function(){return this.$slots.suffix||this.suffixIcon||this.showClear||this.showPassword||this.isWordLimitVisible||this.validateState&&this.needStatusIcon}},created:function(){this.$on("inputSelect",this.select)},mounted:function(){this.setNativeInputValue(),this.resizeTextarea(),this.updateIconOffset()},updated:function(){this.$nextTick(this.updateIconOffset)}},v=n(1),b=Object(v.a)(g,r,[],!1,null,null,null);b.options.__file="packages/input/src/input.vue";var y=b.exports;y.install=function(e){e.component(y.name,y)},t.default=y}})},f034:function(e,t){(function(){"use strict";var e=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},t=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=function(e){return{isFullscreen:function(){return null!==e.get()}}},r=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},i=function(e){return function(t){return r(t)===e}},o=function(e){return function(t){return typeof t===e}},a=i("string"),s=i("array"),l=o("boolean"),u=function(e){return null===e||void 0===e},c=function(e){return!u(e)},f=o("function"),d=o("number"),h=function(){},p=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e(t.apply(null,n))}},m=function(e,t){return function(n){return e(t(n))}},g=function(e){return function(){return e}},v=function(e){return e};function b(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=t.concat(n);return e.apply(null,i)}}var y=g(!1),w=g(!0),_=function(){return C},C=function(){var e=function(e){return e()},t=v,n={fold:function(e,t){return e()},isSome:y,isNone:w,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:g(null),getOrUndefined:g(void 0),or:t,orThunk:e,map:_,each:h,bind:_,exists:y,forall:w,filter:function(){return _()},toArray:function(){return[]},toString:g("none()")};return n}(),x=function(e){var t=g(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},isSome:w,isNone:y,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return x(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:C},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return i},S=function(e){return null===e||void 0===e?C:x(e)},k={some:x,none:_,from:S},D=function(){return D=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},D.apply(this,arguments)},O=function(t){var n=e(k.none()),r=function(){return n.get().each(t)},i=function(){r(),n.set(k.none())},o=function(){return n.get().isSome()},a=function(){return n.get()},s=function(e){r(),n.set(k.some(e))};return{clear:i,isSet:o,get:a,set:s}},T=function(){return O((function(e){return e.unbind()}))},E=function(){var e=O(h),t=function(t){return e.get().each(t)};return D(D({},e),{on:t})},I=Array.prototype.push,N=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r},A=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];t(i,n)}},P=function(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];t(o,r)&&n.push(o)}return n},M=function(e,t,n){for(var r=0,i=e.length;r<i;r++){var o=e[r];if(t(o,r))return k.some(o);if(n(o,r))break}return k.none()},R=function(e,t){return M(e,t,y)},F=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!s(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);I.apply(t,e[n])}return t},B=function(e,t){return F(N(e,t))},L=function(e,t){return t>=0&&t<e.length?k.some(e[t]):k.none()},$=function(e){return L(e,0)},V=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return k.none()},j=Object.keys,z=function(e,t){for(var n=j(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];t(a,o)}},H=function(e,t){return-1!==e.indexOf(t)},U=function(e){return void 0!==e.style&&f(e.style.getPropertyValue)},W=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return Y(r.childNodes[0])},q=function(e,t){var n=t||document,r=n.createElement(e);return Y(r)},G=function(e,t){var n=t||document,r=n.createTextNode(e);return Y(r)},Y=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},K=function(e,t,n){return k.from(e.dom.elementFromPoint(t,n)).map(Y)},X={fromHtml:W,fromTag:q,fromText:G,fromDom:Y,fromPoint:K};"undefined"!==typeof window?window:Function("return this;")();var J=9,Z=11,Q=1,ee=3,te=function(e){return e.dom.nodeType},ne=function(e){return function(t){return te(t)===e}},re=ne(Q),ie=ne(ee),oe=ne(J),ae=ne(Z),se=function(e){var t,n=!1;return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return n||(n=!0,t=e.apply(null,r)),t}},le=function(e,t,n,r){var i=e.isiOS()&&!0===/ipad/i.test(n),o=e.isiOS()&&!i,a=e.isiOS()||e.isAndroid(),s=a||r("(pointer:coarse)"),l=i||!o&&a&&r("(min-device-width:768px)"),u=o||a&&!l,c=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n),f=!u&&!l&&!c;return{isiPad:g(i),isiPhone:g(o),isTablet:g(l),isPhone:g(u),isTouch:g(s),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:g(c),isDesktop:g(f)}},ue=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}},ce=function(e,t){var n=ue(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return he(r(1),r(2))},fe=function(e,t){var n=String(t).toLowerCase();return 0===e.length?de():ce(e,n)},de=function(){return he(0,0)},he=function(e,t){return{major:e,minor:t}},pe={nu:he,detect:fe,unknown:de},me=function(e,t){return V(t.brands,(function(t){var n=t.brand.toLowerCase();return R(e,(function(e){var t;return n===(null===(t=e.brand)||void 0===t?void 0:t.toLowerCase())})).map((function(e){return{current:e.name,version:pe.nu(parseInt(t.version,10),0)}}))}))},ge=function(e,t){var n=String(t).toLowerCase();return R(e,(function(e){return e.search(n)}))},ve=function(e,t){return ge(e,t).map((function(e){var n=pe.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},be=function(e,t){return ge(e,t).map((function(e){var n=pe.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},ye=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,we=function(e){return function(t){return H(t,e)}},_e=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return H(e,"edge/")&&H(e,"chrome")&&H(e,"safari")&&H(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,ye],search:function(e){return H(e,"chrome")&&!H(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return H(e,"msie")||H(e,"trident")}},{name:"Opera",versionRegexes:[ye,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:we("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:we("firefox")},{name:"Safari",versionRegexes:[ye,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(H(e,"safari")||H(e,"mobile/"))&&H(e,"applewebkit")}}],Ce=[{name:"Windows",search:we("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return H(e,"iphone")||H(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:we("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:we("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:we("linux"),versionRegexes:[]},{name:"Solaris",search:we("sunos"),versionRegexes:[]},{name:"FreeBSD",search:we("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:we("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],xe={browsers:g(_e),oses:g(Ce)},Se="Edge",ke="Chrome",De="IE",Oe="Opera",Te="Firefox",Ee="Safari",Ie=function(){return Ne({current:void 0,version:pe.unknown()})},Ne=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isEdge:r(Se),isChrome:r(ke),isIE:r(De),isOpera:r(Oe),isFirefox:r(Te),isSafari:r(Ee)}},Ae={unknown:Ie,nu:Ne,edge:g(Se),chrome:g(ke),ie:g(De),opera:g(Oe),firefox:g(Te),safari:g(Ee)},Pe="Windows",Me="iOS",Re="Android",Fe="Linux",Be="OSX",Le="Solaris",$e="FreeBSD",Ve="ChromeOS",je=function(){return ze({current:void 0,version:pe.unknown()})},ze=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isWindows:r(Pe),isiOS:r(Me),isAndroid:r(Re),isOSX:r(Be),isLinux:r(Fe),isSolaris:r(Le),isFreeBSD:r($e),isChromeOS:r(Ve)}},He={unknown:je,nu:ze,windows:g(Pe),ios:g(Me),android:g(Re),linux:g(Fe),osx:g(Be),solaris:g(Le),freebsd:g($e),chromeos:g(Ve)},Ue=function(e,t,n){var r=xe.browsers(),i=xe.oses(),o=t.bind((function(e){return me(r,e)})).orThunk((function(){return ve(r,e)})).fold(Ae.unknown,Ae.nu),a=be(i,e).fold(He.unknown,He.nu),s=le(a,o,e,n);return{browser:o,os:a,deviceType:s}},We={detect:Ue},qe=function(e){return window.matchMedia(e).matches},Ge=se((function(){return We.detect(navigator.userAgent,k.from(navigator.userAgentData),qe)})),Ye=function(){return Ge()},Ke=function(e,t){var n=e.dom;if(n.nodeType!==Q)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},Xe=function(e){return e.nodeType!==Q&&e.nodeType!==J&&e.nodeType!==Z||0===e.childElementCount},Je=function(e,t){var n=void 0===t?document:t.dom;return Xe(n)?[]:N(n.querySelectorAll(e),X.fromDom)},Ze=function(e,t){return e.dom===t.dom},Qe=function(e){return X.fromDom(e.dom.ownerDocument)},et=function(e){return oe(e)?e:Qe(e)},tt=function(e){return k.from(e.dom.parentNode).map(X.fromDom)},nt=function(e,t){var n=f(t)?t:y,r=e.dom,i=[];while(null!==r.parentNode&&void 0!==r.parentNode){var o=r.parentNode,a=X.fromDom(o);if(i.push(a),!0===n(a))break;r=o}return i},rt=function(e){var t=function(t){return P(t,(function(t){return!Ze(e,t)}))};return tt(e).map(it).map(t).getOr([])},it=function(e){return N(e.dom.childNodes,X.fromDom)},ot=function(e){return ae(e)&&c(e.dom.host)},at=f(Element.prototype.attachShadow)&&f(Node.prototype.getRootNode),st=g(at),lt=at?function(e){return X.fromDom(e.dom.getRootNode())}:et,ut=function(e){var t=lt(e);return ot(t)?k.some(t):k.none()},ct=function(e){return X.fromDom(e.dom.host)},ft=function(e){if(st()&&c(e.target)){var t=X.fromDom(e.target);if(re(t)&&dt(t)&&e.composed&&e.composedPath){var n=e.composedPath();if(n)return $(n)}}return k.from(e.target)},dt=function(e){return c(e.dom.shadowRoot)},ht=function(e){var t=ie(e)?e.dom.parentNode:e.dom;if(void 0===t||null===t||null===t.ownerDocument)return!1;var n=t.ownerDocument;return ut(X.fromDom(t)).fold((function(){return n.body.contains(t)}),m(ht,ct))},pt=function(e){var t=e.dom.body;if(null===t||void 0===t)throw new Error("Body is not available yet");return X.fromDom(t)},mt=function(e,t,n){if(!(a(n)||l(n)||d(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},gt=function(e,t,n){mt(e.dom,t,n)},vt=function(e,t){var n=e.dom.getAttribute(t);return null===n?void 0:n},bt=function(e,t){e.dom.removeAttribute(t)},yt=function(e,t,n){if(!a(n))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",n,":: Element ",e),new Error("CSS value must be a string: "+n);U(e)&&e.style.setProperty(t,n)},wt=function(e,t){var n=e.dom;z(t,(function(e,t){yt(n,t,e)}))},_t=function(e,t){var n=e.dom,r=window.getComputedStyle(n),i=r.getPropertyValue(t);return""!==i||ht(e)?i:Ct(n,t)},Ct=function(e,t){return U(e)?e.style.getPropertyValue(t):""},xt=function(e,t,n,r,i,o,a){return{target:e,x:t,y:n,stop:r,prevent:i,kill:o,raw:a}},St=function(e){var t=X.fromDom(ft(e).getOr(e.target)),n=function(){return e.stopPropagation()},r=function(){return e.preventDefault()},i=p(r,n);return xt(t,e.clientX,e.clientY,n,r,i,e)},kt=function(e,t){return function(n){e(n)&&t(St(n))}},Dt=function(e,t,n,r,i){var o=kt(n,r);return e.dom.addEventListener(t,o,i),{unbind:b(Tt,e,t,o,i)}},Ot=function(e,t,n,r){return Dt(e,t,n,r,!1)},Tt=function(e,t,n,r){e.dom.removeEventListener(t,n,r)},Et=w,It=function(e,t,n){return Ot(e,t,Et,n)},Nt=function(e,t){var n=function(n,r){return Nt(e+n,t+r)};return{left:e,top:t,translate:n}},At=Nt,Pt=function(e){var t=void 0!==e?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,r=t.body.scrollTop||t.documentElement.scrollTop;return At(n,r)},Mt=function(e){var t=void 0===e?window:e;return Ye().browser.isFirefox()?k.none():k.from(t["visualViewport"])},Rt=function(e,t,n,r){return{x:e,y:t,width:n,height:r,right:e+n,bottom:t+r}},Ft=function(e){var t=void 0===e?window:e,n=t.document,r=Pt(X.fromDom(n));return Mt(t).fold((function(){var e=t.document.documentElement,n=e.clientWidth,i=e.clientHeight;return Rt(r.left,r.top,n,i)}),(function(e){return Rt(Math.max(e.pageLeft,r.left),Math.max(e.pageTop,r.top),e.width,e.height)}))},Bt=function(e,t,n){return Mt(n).map((function(n){var r=function(e){return t(St(e))};return n.addEventListener(e,r),{unbind:function(){return n.removeEventListener(e,r)}}})).getOrThunk((function(){return{unbind:h}}))},Lt=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),$t=tinymce.util.Tools.resolve("tinymce.Env"),Vt=tinymce.util.Tools.resolve("tinymce.util.Delay"),jt=function(e,t){e.fire("FullscreenStateChanged",{state:t}),e.fire("ResizeEditor")},zt=function(e){return e.getParam("fullscreen_native",!1,"boolean")},Ht=function(e){var t=X.fromDom(e.getElement());return ut(t).map(ct).getOrThunk((function(){return pt(Qe(t))}))},Ut=function(e){return void 0!==e.fullscreenElement?e.fullscreenElement:void 0!==e.msFullscreenElement?e.msFullscreenElement:void 0!==e.webkitFullscreenElement?e.webkitFullscreenElement:null},Wt=function(){return void 0!==document.fullscreenElement?"fullscreenchange":void 0!==document.msFullscreenElement?"MSFullscreenChange":void 0!==document.webkitFullscreenElement?"webkitfullscreenchange":"fullscreenchange"},qt=function(e){var t=e.dom;t.requestFullscreen?t.requestFullscreen():t.msRequestFullscreen?t.msRequestFullscreen():t.webkitRequestFullScreen&&t.webkitRequestFullScreen()},Gt=function(e){var t=e.dom;t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitCancelFullScreen&&t.webkitCancelFullScreen()},Yt=function(e){return e.dom===Ut(Qe(e).dom)},Kt=function(e,t,n){return P(nt(e,n),t)},Xt=function(e,t){return P(rt(e),t)},Jt=function(e){return Je(e)},Zt=function(e,t,n){return Kt(e,(function(e){return Ke(e,t)}),n)},Qt=function(e,t){return Xt(e,(function(e){return Ke(e,t)}))},en="data-ephox-mobile-fullscreen-style",tn="display:none!important;",nn="position:absolute!important;",rn="top:0!important;left:0!important;margin:0!important;padding:0!important;width:100%!important;height:100%!important;overflow:visible!important;",on="background-color:rgb(255,255,255)!important;",an=$t.os.isAndroid(),sn=function(e){var t=_t(e,"background-color");return void 0!==t&&""!==t?"background-color:"+t+"!important":on},ln=function(e,t,n){var r=function(e){return Qt(e,"*:not(.tox-silver-sink)")},i=function(t){return function(n){var r=vt(n,"style"),i=void 0===r?"no-styles":r.trim();i!==t&&(gt(n,en,i),wt(n,e.parseStyle(t)))}},o=Zt(t,"*"),a=B(o,r),s=sn(n);A(a,i(tn)),A(o,i(nn+rn+s));var l=!0===an?"":nn;i(l+rn+s)(t)},un=function(e){var t=Jt("["+en+"]");A(t,(function(t){var n=vt(t,en);"no-styles"!==n?wt(t,e.parseStyle(n)):bt(t,"style"),bt(t,en)}))},cn=Lt.DOM,fn=function(){return Ft(window)},dn=function(e){return window.scrollTo(e.x,e.y)},hn=Mt().fold((function(){return{bind:h,unbind:h}}),(function(e){var t=E(),n=T(),r=T(),i=function(){document.body.scrollTop=0,document.documentElement.scrollTop=0},o=function(){window.requestAnimationFrame((function(){t.on((function(t){return wt(t,{top:e.offsetTop+"px",left:e.offsetLeft+"px",height:e.height+"px",width:e.width+"px"})}))}))},a=Vt.throttle((function(){i(),o()}),50),s=function(e){t.set(e),a(),n.set(Bt("resize",a)),r.set(Bt("scroll",a))},l=function(){t.on((function(){n.clear(),r.clear()})),t.clear()};return{bind:s,unbind:l}})),pn=function(e,t){var n=document.body,r=document.documentElement,i=e.getContainer(),o=X.fromDom(i),a=Ht(e),s=t.get(),l=X.fromDom(e.getBody()),u=$t.deviceType.isTouch(),c=i.style,f=e.iframeElement,d=f.style,h=function(e){e(n,"tox-fullscreen"),e(r,"tox-fullscreen"),e(i,"tox-fullscreen"),ut(o).map((function(e){return ct(e).dom})).each((function(t){e(t,"tox-fullscreen"),e(t,"tox-shadowhost")}))},p=function(){u&&un(e.dom),h(cn.removeClass),hn.unbind(),k.from(t.get()).each((function(e){return e.fullscreenChangeHandler.unbind()}))};if(s)s.fullscreenChangeHandler.unbind(),zt(e)&&Yt(a)&&Gt(Qe(a)),d.width=s.iframeWidth,d.height=s.iframeHeight,c.width=s.containerWidth,c.height=s.containerHeight,c.top=s.containerTop,c.left=s.containerLeft,p(),dn(s.scrollPos),t.set(null),jt(e,!1),e.off("remove",p);else{var m=It(Qe(a),Wt(),(function(n){zt(e)&&(Yt(a)||null===t.get()||pn(e,t))})),g={scrollPos:fn(),containerWidth:c.width,containerHeight:c.height,containerTop:c.top,containerLeft:c.left,iframeWidth:d.width,iframeHeight:d.height,fullscreenChangeHandler:m};u&&ln(e.dom,o,l),d.width=d.height="100%",c.width=c.height="",h(cn.addClass),hn.bind(o),e.on("remove",p),t.set(g),zt(e)&&qt(a),jt(e,!0)}},mn=function(e,t){e.addCommand("mceFullScreen",(function(){pn(e,t)}))},gn=function(e,t){return function(n){n.setActive(null!==t.get());var r=function(e){return n.setActive(e.state)};return e.on("FullscreenStateChanged",r),function(){return e.off("FullscreenStateChanged",r)}}},vn=function(e,t){var n=function(){return e.execCommand("mceFullScreen")};e.ui.registry.addToggleMenuItem("fullscreen",{text:"Fullscreen",icon:"fullscreen",shortcut:"Meta+Shift+F",onAction:n,onSetup:gn(e,t)}),e.ui.registry.addToggleButton("fullscreen",{tooltip:"Fullscreen",icon:"fullscreen",onAction:n,onSetup:gn(e,t)})};function bn(){t.add("fullscreen",(function(t){var r=e(null);return t.inline||(mn(t,r),vn(t,r),t.addShortcut("Meta+Shift+F","","mceFullScreen")),n(r)}))}bn()})()},f0a7:function(e,t,n){"use strict";var r=n("d0b6"),i=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.kind="IllegalArgumentException",t}(r["a"]);t["a"]=o},f0c1:function(e,t,n){"use strict";var r=n("d8e8"),i=n("d3f4"),o=n("31f4"),a=[].slice,s={},l=function(e,t,n){if(!(t in s)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";s[t]=Function("F,a","return new F("+r.join(",")+")")}return s[t](e,n)};e.exports=Function.bind||function(e){var t=r(this),n=a.call(arguments,1),s=function(){var r=n.concat(a.call(arguments));return this instanceof s?l(t,r.length,r):o(t,r,e)};return i(t.prototype)&&(s.prototype=t.prototype),s}},f0c7:function(e,t,n){},f1ae:function(e,t,n){"use strict";var r=n("86cc"),i=n("4630");e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},f1aed:function(e,t,n){"use strict";var r=n("a363"),i=n("7163"),o=n("84b8"),a=n("2011"),s=n("ec6d"),l=n("23a7"),u=n("ea29"),c=n("9cca"),f=n("f0a7"),d=n("f823");(function(){function e(){}e.prototype.encode=function(e,t,n,r){return this.encodeWithHints(e,t,n,r,null)},e.prototype.encodeWithHints=function(t,n,r,a,c){var f=l["a"].ISO_8859_1,d=o["a"].DEFAULT_EC_PERCENT,h=o["a"].DEFAULT_AZTEC_LAYERS;return null!=c&&(c.has(i["a"].CHARACTER_SET)&&(f=s["a"].forName(c.get(i["a"].CHARACTER_SET).toString())),c.has(i["a"].ERROR_CORRECTION)&&(d=u["a"].parseInt(c.get(i["a"].ERROR_CORRECTION).toString())),c.has(i["a"].AZTEC_LAYERS)&&(h=u["a"].parseInt(c.get(i["a"].AZTEC_LAYERS).toString()))),e.encodeLayers(t,n,r,a,f,d,h)},e.encodeLayers=function(t,n,i,a,s,l,u){if(n!==r["a"].AZTEC)throw new f["a"]("Can only encode AZTEC, but got "+n);var c=o["a"].encode(d["a"].getBytes(t,s),l,u);return e.renderResult(c,i,a)},e.renderResult=function(e,t,n){var r=e.getMatrix();if(null==r)throw new c["a"];for(var i=r.getWidth(),o=r.getHeight(),s=Math.max(t,i),l=Math.max(n,o),u=Math.min(s/i,l/o),f=(s-i*u)/2,d=(l-o*u)/2,h=new a["a"](s,l),p=0,m=d;p<o;p++,m+=u)for(var g=0,v=f;g<i;g++,v+=u)r.get(g,p)&&h.setRegion(v,m,u,u);return h}})()},f201:function(e,t,n){var r=n("e4ae"),i=n("79aa"),o=n("5168")("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||void 0==(n=r(a)[o])?t:i(n)}},f20f:function(e,t,n){"use strict";var r=n("6530"),i=n("1cba"),o=function(){function e(e,t){this.width=e,this.height=t}return e.prototype.getWidth=function(){return this.width},e.prototype.getHeight=function(){return this.height},e.prototype.isCropSupported=function(){return!1},e.prototype.crop=function(e,t,n,r){throw new i["a"]("This luminance source does not support cropping.")},e.prototype.isRotateSupported=function(){return!1},e.prototype.rotateCounterClockwise=function(){throw new i["a"]("This luminance source does not support rotation by 90 degrees.")},e.prototype.rotateCounterClockwise45=function(){throw new i["a"]("This luminance source does not support rotation by 45 degrees.")},e.prototype.toString=function(){for(var e=new Uint8ClampedArray(this.width),t=new r["a"],n=0;n<this.height;n++){for(var i=this.getRow(n,e),o=0;o<this.width;o++){var a=255&i[o],s=void 0;s=a<64?"#":a<128?"+":a<192?".":" ",t.append(s)}t.append("\n")}return t.toString()},e}();t["a"]=o},f321:function(e,t,n){"use strict";t.__esModule=!0,t.isInContainer=t.getScrollContainer=t.isScroll=t.getStyle=t.once=t.off=t.on=void 0;var r=n("1098"),i=s(r);t.hasClass=g,t.addClass=v,t.removeClass=b,t.setStyle=w;var o=n("8bbf"),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}var l=a.default.prototype.$isServer,u=/([:\-_]+(.))/g,c=/^moz([A-Z])/,f=l?0:Number(document.documentMode),d=function(e){return(e||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},h=function(e){return e.replace(u,(function(e,t,n,r){return r?n.toUpperCase():n})).replace(c,"Moz$1")},p=t.on=function(){return!l&&document.addEventListener?function(e,t,n){e&&t&&n&&e.addEventListener(t,n,!1)}:function(e,t,n){e&&t&&n&&e.attachEvent("on"+t,n)}}(),m=t.off=function(){return!l&&document.removeEventListener?function(e,t,n){e&&t&&e.removeEventListener(t,n,!1)}:function(e,t,n){e&&t&&e.detachEvent("on"+t,n)}}();t.once=function(e,t,n){var r=function r(){n&&n.apply(this,arguments),m(e,t,r)};p(e,t,r)};function g(e,t){if(!e||!t)return!1;if(-1!==t.indexOf(" "))throw new Error("className should not contain space.");return e.classList?e.classList.contains(t):(" "+e.className+" ").indexOf(" "+t+" ")>-1}function v(e,t){if(e){for(var n=e.className,r=(t||"").split(" "),i=0,o=r.length;i<o;i++){var a=r[i];a&&(e.classList?e.classList.add(a):g(e,a)||(n+=" "+a))}e.classList||(e.className=n)}}function b(e,t){if(e&&t){for(var n=t.split(" "),r=" "+e.className+" ",i=0,o=n.length;i<o;i++){var a=n[i];a&&(e.classList?e.classList.remove(a):g(e,a)&&(r=r.replace(" "+a+" "," ")))}e.classList||e.setAttribute("class",d(r))}}var y=t.getStyle=f<9?function(e,t){if(!l){if(!e||!t)return null;t=h(t),"float"===t&&(t="styleFloat");try{switch(t){case"opacity":try{return e.filters.item("alpha").opacity/100}catch(n){return 1}default:return e.style[t]||e.currentStyle?e.currentStyle[t]:null}}catch(n){return e.style[t]}}}:function(e,t){if(!l){if(!e||!t)return null;t=h(t),"float"===t&&(t="cssFloat");try{var n=document.defaultView.getComputedStyle(e,"");return e.style[t]||n?n[t]:null}catch(r){return e.style[t]}}};function w(e,t,n){if(e&&t)if("object"===("undefined"===typeof t?"undefined":(0,i.default)(t)))for(var r in t)t.hasOwnProperty(r)&&w(e,r,t[r]);else t=h(t),"opacity"===t&&f<9?e.style.filter=isNaN(n)?"":"alpha(opacity="+100*n+")":e.style[t]=n}var _=t.isScroll=function(e,t){if(!l){var n=null!==t&&void 0!==t,r=y(e,n?t?"overflow-y":"overflow-x":"overflow");return r.match(/(scroll|auto|overlay)/)}};t.getScrollContainer=function(e,t){if(!l){var n=e;while(n){if([window,document,document.documentElement].includes(n))return window;if(_(n,t))return n;n=n.parentNode}return n}},t.isInContainer=function(e,t){if(l||!e||!t)return!1;var n=e.getBoundingClientRect(),r=void 0;return r=[window,document,document.documentElement,null,void 0].includes(t)?{top:0,right:window.innerWidth,bottom:window.innerHeight,left:0}:t.getBoundingClientRect(),n.top<r.bottom&&n.bottom>r.top&&n.right>r.left&&n.left<r.right}},f400:function(e,t,n){"use strict";var r=n("c26b"),i=n("b39a"),o="Map";e.exports=n("e0b8")(o,(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(e){var t=r.getEntry(i(this,o),e);return t&&t.v},set:function(e,t){return r.def(i(this,o),0===e?0:e,t)}},r,!0)},f505:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n("f8c0"),i=n("57fd"),o=n("2d92"),a=n("5641"),s=n("7978"),l=n("ca08"),u=n("0c36"),c=n("e027"),f=function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):i(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())}))},d=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return l([e,t])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},h=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},p=function(){function e(e,t,n){void 0===t&&(t=500),this.reader=e,this.timeBetweenScansMillis=t,this._hints=n,this._stopContinuousDecode=!1,this._stopAsyncDecode=!1,this._timeBetweenDecodingAttempts=0}return Object.defineProperty(e.prototype,"hasNavigator",{get:function(){return"undefined"!==typeof navigator},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isMediaDevicesSuported",{get:function(){return this.hasNavigator&&!!navigator.mediaDevices},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"canEnumerateDevices",{get:function(){return!(!this.isMediaDevicesSuported||!navigator.mediaDevices.enumerateDevices)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"timeBetweenDecodingAttempts",{get:function(){return this._timeBetweenDecodingAttempts},set:function(e){this._timeBetweenDecodingAttempts=e<0?0:e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hints",{get:function(){return this._hints},set:function(e){this._hints=e||null},enumerable:!1,configurable:!0}),e.prototype.listVideoInputDevices=function(){return f(this,void 0,void 0,(function(){var e,t,n,r,i,o,a,s,l,u,c,f;return d(this,(function(d){switch(d.label){case 0:if(!this.hasNavigator)throw new Error("Can't enumerate devices, navigator is not present.");if(!this.canEnumerateDevices)throw new Error("Can't enumerate devices, method not supported.");return[4,navigator.mediaDevices.enumerateDevices()];case 1:e=d.sent(),t=[];try{for(n=h(e),r=n.next();!r.done;r=n.next())i=r.value,o="video"===i.kind?"videoinput":i.kind,"videoinput"===o&&(a=i.deviceId||i.id,s=i.label||"Video device "+(t.length+1),l=i.groupId,u={deviceId:a,label:s,kind:o,groupId:l},t.push(u))}catch(p){c={error:p}}finally{try{r&&!r.done&&(f=n.return)&&f.call(n)}finally{if(c)throw c.error}}return[2,t]}}))}))},e.prototype.getVideoInputDevices=function(){return f(this,void 0,void 0,(function(){var e;return d(this,(function(t){switch(t.label){case 0:return[4,this.listVideoInputDevices()];case 1:return e=t.sent(),[2,e.map((function(e){return new c["a"](e.deviceId,e.label)}))]}}))}))},e.prototype.findDeviceById=function(e){return f(this,void 0,void 0,(function(){var t;return d(this,(function(n){switch(n.label){case 0:return[4,this.listVideoInputDevices()];case 1:return t=n.sent(),t?[2,t.find((function(t){return t.deviceId===e}))]:[2,null]}}))}))},e.prototype.decodeFromInputVideoDevice=function(e,t){return f(this,void 0,void 0,(function(){return d(this,(function(n){switch(n.label){case 0:return[4,this.decodeOnceFromVideoDevice(e,t)];case 1:return[2,n.sent()]}}))}))},e.prototype.decodeOnceFromVideoDevice=function(e,t){return f(this,void 0,void 0,(function(){var n,r;return d(this,(function(i){switch(i.label){case 0:return this.reset(),n=e?{deviceId:{exact:e}}:{facingMode:"environment"},r={video:n},[4,this.decodeOnceFromConstraints(r,t)];case 1:return[2,i.sent()]}}))}))},e.prototype.decodeOnceFromConstraints=function(e,t){return f(this,void 0,void 0,(function(){var n;return d(this,(function(r){switch(r.label){case 0:return[4,navigator.mediaDevices.getUserMedia(e)];case 1:return n=r.sent(),[4,this.decodeOnceFromStream(n,t)];case 2:return[2,r.sent()]}}))}))},e.prototype.decodeOnceFromStream=function(e,t){return f(this,void 0,void 0,(function(){var n,r;return d(this,(function(i){switch(i.label){case 0:return this.reset(),[4,this.attachStreamToVideo(e,t)];case 1:return n=i.sent(),[4,this.decodeOnce(n)];case 2:return r=i.sent(),[2,r]}}))}))},e.prototype.decodeFromInputVideoDeviceContinuously=function(e,t,n){return f(this,void 0,void 0,(function(){return d(this,(function(r){switch(r.label){case 0:return[4,this.decodeFromVideoDevice(e,t,n)];case 1:return[2,r.sent()]}}))}))},e.prototype.decodeFromVideoDevice=function(e,t,n){return f(this,void 0,void 0,(function(){var r,i;return d(this,(function(o){switch(o.label){case 0:return r=e?{deviceId:{exact:e}}:{facingMode:"environment"},i={video:r},[4,this.decodeFromConstraints(i,t,n)];case 1:return[2,o.sent()]}}))}))},e.prototype.decodeFromConstraints=function(e,t,n){return f(this,void 0,void 0,(function(){var r;return d(this,(function(i){switch(i.label){case 0:return[4,navigator.mediaDevices.getUserMedia(e)];case 1:return r=i.sent(),[4,this.decodeFromStream(r,t,n)];case 2:return[2,i.sent()]}}))}))},e.prototype.decodeFromStream=function(e,t,n){return f(this,void 0,void 0,(function(){var r;return d(this,(function(i){switch(i.label){case 0:return this.reset(),[4,this.attachStreamToVideo(e,t)];case 1:return r=i.sent(),[4,this.decodeContinuously(r,n)];case 2:return[2,i.sent()]}}))}))},e.prototype.stopAsyncDecode=function(){this._stopAsyncDecode=!0},e.prototype.stopContinuousDecode=function(){this._stopContinuousDecode=!0},e.prototype.attachStreamToVideo=function(e,t){return f(this,void 0,void 0,(function(){var n;return d(this,(function(r){switch(r.label){case 0:return n=this.prepareVideoElement(t),this.addVideoSource(n,e),this.videoElement=n,this.stream=e,[4,this.playVideoOnLoadAsync(n)];case 1:return r.sent(),[2,n]}}))}))},e.prototype.playVideoOnLoadAsync=function(e){var t=this;return new Promise((function(n,r){return t.playVideoOnLoad(e,(function(){return n()}))}))},e.prototype.playVideoOnLoad=function(e,t){var n=this;this.videoEndedListener=function(){return n.stopStreams()},this.videoCanPlayListener=function(){return n.tryPlayVideo(e)},e.addEventListener("ended",this.videoEndedListener),e.addEventListener("canplay",this.videoCanPlayListener),e.addEventListener("playing",t),this.tryPlayVideo(e)},e.prototype.isVideoPlaying=function(e){return e.currentTime>0&&!e.paused&&!e.ended&&e.readyState>2},e.prototype.tryPlayVideo=function(e){return f(this,void 0,void 0,(function(){return d(this,(function(t){switch(t.label){case 0:if(this.isVideoPlaying(e))return console.warn("Trying to play video that is already playing."),[2];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,e.play()];case 2:return t.sent(),[3,4];case 3:return t.sent(),console.warn("It was not possible to play the video."),[3,4];case 4:return[2]}}))}))},e.prototype.getMediaElement=function(e,t){var n=document.getElementById(e);if(!n)throw new r["a"]("element with id '"+e+"' not found");if(n.nodeName.toLowerCase()!==t.toLowerCase())throw new r["a"]("element with id '"+e+"' must be an "+t+" element");return n},e.prototype.decodeFromImage=function(e,t){if(!e&&!t)throw new r["a"]("either imageElement with a src set or an url must be provided");return t&&!e?this.decodeFromImageUrl(t):this.decodeFromImageElement(e)},e.prototype.decodeFromVideo=function(e,t){if(!e&&!t)throw new r["a"]("Either an element with a src set or an URL must be provided");return t&&!e?this.decodeFromVideoUrl(t):this.decodeFromVideoElement(e)},e.prototype.decodeFromVideoContinuously=function(e,t,n){if(void 0===e&&void 0===t)throw new r["a"]("Either an element with a src set or an URL must be provided");return t&&!e?this.decodeFromVideoUrlContinuously(t,n):this.decodeFromVideoElementContinuously(e,n)},e.prototype.decodeFromImageElement=function(e){if(!e)throw new r["a"]("An image element must be provided.");this.reset();var t,n=this.prepareImageElement(e);return this.imageElement=n,t=this.isImageLoaded(n)?this.decodeOnce(n,!1,!0):this._decodeOnLoadImage(n),t},e.prototype.decodeFromVideoElement=function(e){var t=this._decodeFromVideoElementSetup(e);return this._decodeOnLoadVideo(t)},e.prototype.decodeFromVideoElementContinuously=function(e,t){var n=this._decodeFromVideoElementSetup(e);return this._decodeOnLoadVideoContinuously(n,t)},e.prototype._decodeFromVideoElementSetup=function(e){if(!e)throw new r["a"]("A video element must be provided.");this.reset();var t=this.prepareVideoElement(e);return this.videoElement=t,t},e.prototype.decodeFromImageUrl=function(e){if(!e)throw new r["a"]("An URL must be provided.");this.reset();var t=this.prepareImageElement();this.imageElement=t;var n=this._decodeOnLoadImage(t);return t.src=e,n},e.prototype.decodeFromVideoUrl=function(e){if(!e)throw new r["a"]("An URL must be provided.");this.reset();var t=this.prepareVideoElement(),n=this.decodeFromVideoElement(t);return t.src=e,n},e.prototype.decodeFromVideoUrlContinuously=function(e,t){if(!e)throw new r["a"]("An URL must be provided.");this.reset();var n=this.prepareVideoElement(),i=this.decodeFromVideoElementContinuously(n,t);return n.src=e,i},e.prototype._decodeOnLoadImage=function(e){var t=this;return new Promise((function(n,r){t.imageLoadedListener=function(){return t.decodeOnce(e,!1,!0).then(n,r)},e.addEventListener("load",t.imageLoadedListener)}))},e.prototype._decodeOnLoadVideo=function(e){return f(this,void 0,void 0,(function(){return d(this,(function(t){switch(t.label){case 0:return[4,this.playVideoOnLoadAsync(e)];case 1:return t.sent(),[4,this.decodeOnce(e)];case 2:return[2,t.sent()]}}))}))},e.prototype._decodeOnLoadVideoContinuously=function(e,t){return f(this,void 0,void 0,(function(){return d(this,(function(n){switch(n.label){case 0:return[4,this.playVideoOnLoadAsync(e)];case 1:return n.sent(),this.decodeContinuously(e,t),[2]}}))}))},e.prototype.isImageLoaded=function(e){return!!e.complete&&0!==e.naturalWidth},e.prototype.prepareImageElement=function(e){var t;return"undefined"===typeof e&&(t=document.createElement("img"),t.width=200,t.height=200),"string"===typeof e&&(t=this.getMediaElement(e,"img")),e instanceof HTMLImageElement&&(t=e),t},e.prototype.prepareVideoElement=function(e){var t;return e||"undefined"===typeof document||(t=document.createElement("video"),t.width=200,t.height=200),"string"===typeof e&&(t=this.getMediaElement(e,"video")),e instanceof HTMLVideoElement&&(t=e),t.setAttribute("autoplay","true"),t.setAttribute("muted","true"),t.setAttribute("playsinline","true"),t},e.prototype.decodeOnce=function(e,t,n){var r=this;void 0===t&&(t=!0),void 0===n&&(n=!0),this._stopAsyncDecode=!1;var i=function(a,u){if(r._stopAsyncDecode)return u(new l["a"]("Video stream has ended before any code could be detected.")),void(r._stopAsyncDecode=void 0);try{var c=r.decode(e);a(c)}catch(p){var f=t&&p instanceof l["a"],d=p instanceof o["a"]||p instanceof s["a"],h=d&&n;if(f||h)return setTimeout(i,r._timeBetweenDecodingAttempts,a,u);u(p)}};return new Promise((function(e,t){return i(e,t)}))},e.prototype.decodeContinuously=function(e,t){var n=this;this._stopContinuousDecode=!1;var r=function(){if(n._stopContinuousDecode)n._stopContinuousDecode=void 0;else try{var i=n.decode(e);t(i,null),setTimeout(r,n.timeBetweenScansMillis)}catch(c){t(null,c);var a=c instanceof o["a"]||c instanceof s["a"],u=c instanceof l["a"];(a||u)&&setTimeout(r,n._timeBetweenDecodingAttempts)}};r()},e.prototype.decode=function(e){var t=this.createBinaryBitmap(e);return this.decodeBitmap(t)},e.prototype._isHTMLVideoElement=function(e){var t=e;return 0!==t.videoWidth},e.prototype.createBinaryBitmap=function(e){this.getCaptureCanvasContext(e);this._isHTMLVideoElement(e)?this.drawFrameOnCanvas(e):this.drawImageOnCanvas(e);var t=this.getCaptureCanvas(e),n=new u["a"](t),r=new a["a"](n);return new i["a"](r)},e.prototype.getCaptureCanvasContext=function(e){if(!this.captureCanvasContext){var t=this.getCaptureCanvas(e),n=void 0;try{n=t.getContext("2d",{willReadFrequently:!0})}catch(r){n=t.getContext("2d")}this.captureCanvasContext=n}return this.captureCanvasContext},e.prototype.getCaptureCanvas=function(e){if(!this.captureCanvas){var t=this.createCaptureCanvas(e);this.captureCanvas=t}return this.captureCanvas},e.prototype.drawFrameOnCanvas=function(e,t,n){void 0===t&&(t={sx:0,sy:0,sWidth:e.videoWidth,sHeight:e.videoHeight,dx:0,dy:0,dWidth:e.videoWidth,dHeight:e.videoHeight}),void 0===n&&(n=this.captureCanvasContext),n.drawImage(e,t.sx,t.sy,t.sWidth,t.sHeight,t.dx,t.dy,t.dWidth,t.dHeight)},e.prototype.drawImageOnCanvas=function(e,t,n){void 0===t&&(t={sx:0,sy:0,sWidth:e.naturalWidth,sHeight:e.naturalHeight,dx:0,dy:0,dWidth:e.naturalWidth,dHeight:e.naturalHeight}),void 0===n&&(n=this.captureCanvasContext),n.drawImage(e,t.sx,t.sy,t.sWidth,t.sHeight,t.dx,t.dy,t.dWidth,t.dHeight)},e.prototype.decodeBitmap=function(e){return this.reader.decode(e,this._hints)},e.prototype.createCaptureCanvas=function(e){if("undefined"===typeof document)return this._destroyCaptureCanvas(),null;var t,n,r=document.createElement("canvas");return"undefined"!==typeof e&&(e instanceof HTMLVideoElement?(t=e.videoWidth,n=e.videoHeight):e instanceof HTMLImageElement&&(t=e.naturalWidth||e.width,n=e.naturalHeight||e.height)),r.style.width=t+"px",r.style.height=n+"px",r.width=t,r.height=n,r},e.prototype.stopStreams=function(){this.stream&&(this.stream.getVideoTracks().forEach((function(e){return e.stop()})),this.stream=void 0),!1===this._stopAsyncDecode&&this.stopAsyncDecode(),!1===this._stopContinuousDecode&&this.stopContinuousDecode()},e.prototype.reset=function(){this.stopStreams(),this._destroyVideoElement(),this._destroyImageElement(),this._destroyCaptureCanvas()},e.prototype._destroyVideoElement=function(){this.videoElement&&("undefined"!==typeof this.videoEndedListener&&this.videoElement.removeEventListener("ended",this.videoEndedListener),"undefined"!==typeof this.videoPlayingEventListener&&this.videoElement.removeEventListener("playing",this.videoPlayingEventListener),"undefined"!==typeof this.videoCanPlayListener&&this.videoElement.removeEventListener("loadedmetadata",this.videoCanPlayListener),this.cleanVideoSource(this.videoElement),this.videoElement=void 0)},e.prototype._destroyImageElement=function(){this.imageElement&&(void 0!==this.imageLoadedListener&&this.imageElement.removeEventListener("load",this.imageLoadedListener),this.imageElement.src=void 0,this.imageElement.removeAttribute("src"),this.imageElement=void 0)},e.prototype._destroyCaptureCanvas=function(){this.captureCanvasContext=void 0,this.captureCanvas=void 0},e.prototype.addVideoSource=function(e,t){try{e.srcObject=t}catch(n){e.src=URL.createObjectURL(t)}},e.prototype.cleanVideoSource=function(e){try{e.srcObject=null}catch(t){e.src=""}this.videoElement.removeAttribute("src")},e}()},f52c:function(e,t,n){"use strict";var r=n("7a37"),i=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n)||this;return a.compact=r,a.nbDatablocks=i,a.nbLayers=o,a}return i(t,e),t.prototype.getNbLayers=function(){return this.nbLayers},t.prototype.getNbDatablocks=function(){return this.nbDatablocks},t.prototype.isCompact=function(){return this.compact},t}(r["a"]);t["a"]=o},f559:function(e,t,n){"use strict";var r=n("5ca1"),i=n("9def"),o=n("d2c8"),a="startsWith",s=""[a];r(r.P+r.F*n("5147")(a),"String",{startsWith:function(e){var t=o(this,e,a),n=i(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return s?s.call(t,r,n):t.slice(n,n+r.length)===r}})},f605:function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},f60b:function(e,t,n){"use strict";var r=n("a363"),i=n("2d92"),o=n("7978"),a=n("ca08"),s=n("2f50"),l=n("ab5b"),u=n("ea29"),c=n("64a7"),f=n("8c95"),d=n("63af"),h=n("cb12"),p=function(){function e(e,t){this.bits=e,this.points=t}return e.prototype.getBits=function(){return this.bits},e.prototype.getPoints=function(){return this.points},e}(),m=p,g=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},v=function(){function e(){}return e.detectMultiple=function(t,n,r){var i=t.getBlackMatrix(),o=e.detect(r,i);return o.length||(i=i.clone(),i.rotate180(),o=e.detect(r,i)),new m(i,o)},e.detect=function(t,n){var r,i,o=new Array,a=0,s=0,l=!1;while(a<n.getHeight()){var u=e.findVertices(n,a,s);if(null!=u[0]||null!=u[3]){if(l=!0,o.push(u),!t)break;null!=u[2]?(s=Math.trunc(u[2].getX()),a=Math.trunc(u[2].getY())):(s=Math.trunc(u[4].getX()),a=Math.trunc(u[4].getY()))}else{if(!l)break;l=!1,s=0;try{for(var c=(r=void 0,g(o)),f=c.next();!f.done;f=c.next()){var d=f.value;null!=d[1]&&(a=Math.trunc(Math.max(a,d[1].getY()))),null!=d[3]&&(a=Math.max(a,Math.trunc(d[3].getY())))}}catch(h){r={error:h}}finally{try{f&&!f.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}a+=e.ROW_STEP}}return o},e.findVertices=function(t,n,r){var i=t.getHeight(),o=t.getWidth(),a=new Array(8);return e.copyToResult(a,e.findRowsWithPattern(t,i,o,n,r,e.START_PATTERN),e.INDEXES_START_PATTERN),null!=a[4]&&(r=Math.trunc(a[4].getX()),n=Math.trunc(a[4].getY())),e.copyToResult(a,e.findRowsWithPattern(t,i,o,n,r,e.STOP_PATTERN),e.INDEXES_STOP_PATTERN),a},e.copyToResult=function(e,t,n){for(var r=0;r<n.length;r++)e[n[r]]=t[r]},e.findRowsWithPattern=function(t,n,r,i,o,a){for(var s=new Array(4),l=!1,u=new Int32Array(a.length);i<n;i+=e.ROW_STEP){var c=e.findGuardPattern(t,o,i,r,!1,a,u);if(null!=c){while(i>0){var d=e.findGuardPattern(t,o,--i,r,!1,a,u);if(null==d){i++;break}c=d}s[0]=new f["a"](c[0],i),s[1]=new f["a"](c[1],i),l=!0;break}}var p=i+1;if(l){var m=0;for(d=Int32Array.from([Math.trunc(s[0].getX()),Math.trunc(s[1].getX())]);p<n;p++){c=e.findGuardPattern(t,d[0],p,r,!1,a,u);if(null!=c&&Math.abs(d[0]-c[0])<e.MAX_PATTERN_DRIFT&&Math.abs(d[1]-c[1])<e.MAX_PATTERN_DRIFT)d=c,m=0;else{if(m>e.SKIPPED_ROW_COUNT_MAX)break;m++}}p-=m+1,s[2]=new f["a"](d[0],p),s[3]=new f["a"](d[1],p)}return p-i<e.BARCODE_MIN_HEIGHT&&h["a"].fill(s,null),s},e.findGuardPattern=function(t,n,r,i,o,a,s){h["a"].fillWithin(s,0,s.length,0);var l=n,u=0;while(t.get(l,r)&&l>0&&u++<e.MAX_PIXEL_DRIFT)l--;for(var c=l,f=0,p=a.length,m=o;c<i;c++){var g=t.get(c,r);if(g!==m)s[f]++;else{if(f===p-1){if(e.patternMatchVariance(s,a,e.MAX_INDIVIDUAL_VARIANCE)<e.MAX_AVG_VARIANCE)return new Int32Array([l,c]);l+=s[0]+s[1],d["a"].arraycopy(s,2,s,0,f-1),s[f-1]=0,s[f]=0,f--}else f++;s[f]=1,m=!m}}return f===p-1&&e.patternMatchVariance(s,a,e.MAX_INDIVIDUAL_VARIANCE)<e.MAX_AVG_VARIANCE?new Int32Array([l,c-1]):null},e.patternMatchVariance=function(e,t,n){for(var r=e.length,i=0,o=0,a=0;a<r;a++)i+=e[a],o+=t[a];if(i<o)return 1/0;var s=i/o;n*=s;for(var l=0,u=0;u<r;u++){var c=e[u],f=t[u]*s,d=c>f?c-f:f-c;if(d>n)return 1/0;l+=d}return l/i},e.INDEXES_START_PATTERN=Int32Array.from([0,4,1,5]),e.INDEXES_STOP_PATTERN=Int32Array.from([6,2,7,3]),e.MAX_AVG_VARIANCE=.42,e.MAX_INDIVIDUAL_VARIANCE=.8,e.START_PATTERN=Int32Array.from([8,1,1,1,1,1,1,3]),e.STOP_PATTERN=Int32Array.from([7,1,1,3,1,1,1,2,1]),e.MAX_PIXEL_DRIFT=3,e.MAX_PATTERN_DRIFT=5,e.SKIPPED_ROW_COUNT_MAX=25,e.ROW_STEP=5,e.BARCODE_MIN_HEIGHT=10,e}(),b=v,y=n("fb63"),w=n("3bbd"),_=function(){function e(t,n,r,i,o){t instanceof e?this.constructor_2(t):this.constructor_1(t,n,r,i,o)}return e.prototype.constructor_1=function(e,t,n,r,i){var o=null==t||null==n,s=null==r||null==i;if(o&&s)throw new a["a"];o?(t=new f["a"](0,r.getY()),n=new f["a"](0,i.getY())):s&&(r=new f["a"](e.getWidth()-1,t.getY()),i=new f["a"](e.getWidth()-1,n.getY())),this.image=e,this.topLeft=t,this.bottomLeft=n,this.topRight=r,this.bottomRight=i,this.minX=Math.trunc(Math.min(t.getX(),n.getX())),this.maxX=Math.trunc(Math.max(r.getX(),i.getX())),this.minY=Math.trunc(Math.min(t.getY(),r.getY())),this.maxY=Math.trunc(Math.max(n.getY(),i.getY()))},e.prototype.constructor_2=function(e){this.image=e.image,this.topLeft=e.getTopLeft(),this.bottomLeft=e.getBottomLeft(),this.topRight=e.getTopRight(),this.bottomRight=e.getBottomRight(),this.minX=e.getMinX(),this.maxX=e.getMaxX(),this.minY=e.getMinY(),this.maxY=e.getMaxY()},e.merge=function(t,n){return null==t?n:null==n?t:new e(t.image,t.topLeft,t.bottomLeft,n.topRight,n.bottomRight)},e.prototype.addMissingRows=function(t,n,r){var i=this.topLeft,o=this.bottomLeft,a=this.topRight,s=this.bottomRight;if(t>0){var l=r?this.topLeft:this.topRight,u=Math.trunc(l.getY()-t);u<0&&(u=0);var c=new f["a"](l.getX(),u);r?i=c:a=c}if(n>0){var d=r?this.bottomLeft:this.bottomRight,h=Math.trunc(d.getY()+n);h>=this.image.getHeight()&&(h=this.image.getHeight()-1);var p=new f["a"](d.getX(),h);r?o=p:s=p}return new e(this.image,i,o,a,s)},e.prototype.getMinX=function(){return this.minX},e.prototype.getMaxX=function(){return this.maxX},e.prototype.getMinY=function(){return this.minY},e.prototype.getMaxY=function(){return this.maxY},e.prototype.getTopLeft=function(){return this.topLeft},e.prototype.getTopRight=function(){return this.topRight},e.prototype.getBottomLeft=function(){return this.bottomLeft},e.prototype.getBottomRight=function(){return this.bottomRight},e}(),C=_,x=function(){function e(e,t,n,r){this.columnCount=e,this.errorCorrectionLevel=r,this.rowCountUpperPart=t,this.rowCountLowerPart=n,this.rowCount=t+n}return e.prototype.getColumnCount=function(){return this.columnCount},e.prototype.getErrorCorrectionLevel=function(){return this.errorCorrectionLevel},e.prototype.getRowCount=function(){return this.rowCount},e.prototype.getRowCountUpperPart=function(){return this.rowCountUpperPart},e.prototype.getRowCountLowerPart=function(){return this.rowCountLowerPart},e}(),S=x,k=function(){function e(){this.buffer=""}return e.form=function(e,t){var n=-1;function r(e,r,i,o,a,s){if("%%"===e)return"%";if(void 0!==t[++n]){e=o?parseInt(o.substr(1)):void 0;var l,u=a?parseInt(a.substr(1)):void 0;switch(s){case"s":l=t[n];break;case"c":l=t[n][0];break;case"f":l=parseFloat(t[n]).toFixed(e);break;case"p":l=parseFloat(t[n]).toPrecision(e);break;case"e":l=parseFloat(t[n]).toExponential(e);break;case"x":l=parseInt(t[n]).toString(u||16);break;case"d":l=parseFloat(parseInt(t[n],u||10).toPrecision(e)).toFixed(0);break}l="object"===typeof l?JSON.stringify(l):(+l).toString(u);var c=parseInt(i),f=i&&i[0]+""==="0"?"0":" ";while(l.length<c)l=void 0!==r?l+f:f+l;return l}}var i=/%(-)?(0?[0-9]+)?([.][0-9]+)?([#][0-9]+)?([scfpexd%])/g;return e.replace(i,r)},e.prototype.format=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];this.buffer+=e.form(t,n)},e.prototype.toString=function(){return this.buffer},e}(),D=k,O=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},T=function(){function e(e){this.boundingBox=new C(e),this.codewords=new Array(e.getMaxY()-e.getMinY()+1)}return e.prototype.getCodewordNearby=function(t){var n=this.getCodeword(t);if(null!=n)return n;for(var r=1;r<e.MAX_NEARBY_DISTANCE;r++){var i=this.imageRowToCodewordIndex(t)-r;if(i>=0&&(n=this.codewords[i],null!=n))return n;if(i=this.imageRowToCodewordIndex(t)+r,i<this.codewords.length&&(n=this.codewords[i],null!=n))return n}return null},e.prototype.imageRowToCodewordIndex=function(e){return e-this.boundingBox.getMinY()},e.prototype.setCodeword=function(e,t){this.codewords[this.imageRowToCodewordIndex(e)]=t},e.prototype.getCodeword=function(e){return this.codewords[this.imageRowToCodewordIndex(e)]},e.prototype.getBoundingBox=function(){return this.boundingBox},e.prototype.getCodewords=function(){return this.codewords},e.prototype.toString=function(){var e,t,n=new D,r=0;try{for(var i=O(this.codewords),o=i.next();!o.done;o=i.next()){var a=o.value;null!=a?n.format("%3d: %3d|%3d%n",r++,a.getRowNumber(),a.getValue()):n.format("%3d: | %n",r++)}}catch(s){e={error:s}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return n.toString()},e.MAX_NEARBY_DISTANCE=5,e}(),E=T,I=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},N=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{while((void 0===t||t-- >0)&&!(r=o.next()).done)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return a},A=function(){function e(){this.values=new Map}return e.prototype.setValue=function(e){e=Math.trunc(e);var t=this.values.get(e);null==t&&(t=0),t++,this.values.set(e,t)},e.prototype.getValue=function(){var e,t,n=-1,r=new Array,i=function(e,t){var i={getKey:function(){return e},getValue:function(){return t}};i.getValue()>n?(n=i.getValue(),r=[],r.push(i.getKey())):i.getValue()===n&&r.push(i.getKey())};try{for(var o=I(this.values.entries()),a=o.next();!a.done;a=o.next()){var s=N(a.value,2),u=s[0],c=s[1];i(u,c)}}catch(f){e={error:f}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return l["a"].toIntArray(r)},e.prototype.getConfidence=function(e){return this.values.get(e)},e}(),P=A,M=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),R=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},F=function(e){function t(t,n){var r=e.call(this,t)||this;return r._isLeft=n,r}return M(t,e),t.prototype.setRowNumbers=function(){var e,t;try{for(var n=R(this.getCodewords()),r=n.next();!r.done;r=n.next()){var i=r.value;null!=i&&i.setRowNumberAsRowIndicatorColumn()}}catch(o){e={error:o}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},t.prototype.adjustCompleteIndicatorColumnRowNumbers=function(e){var t=this.getCodewords();this.setRowNumbers(),this.removeIncorrectCodewords(t,e);for(var n=this.getBoundingBox(),r=this._isLeft?n.getTopLeft():n.getTopRight(),i=this._isLeft?n.getBottomLeft():n.getBottomRight(),o=this.imageRowToCodewordIndex(Math.trunc(r.getY())),a=this.imageRowToCodewordIndex(Math.trunc(i.getY())),s=-1,l=1,u=0,c=o;c<a;c++)if(null!=t[c]){var f=t[c],d=f.getRowNumber()-s;if(0===d)u++;else if(1===d)l=Math.max(l,u),u=1,s=f.getRowNumber();else if(d<0||f.getRowNumber()>=e.getRowCount()||d>c)t[c]=null;else{var h=void 0;h=l>2?(l-2)*d:d;for(var p=h>=c,m=1;m<=h&&!p;m++)p=null!=t[c-m];p?t[c]=null:(s=f.getRowNumber(),u=1)}}},t.prototype.getRowHeights=function(){var e,t,n=this.getBarcodeMetadata();if(null==n)return null;this.adjustIncompleteIndicatorColumnRowNumbers(n);var r=new Int32Array(n.getRowCount());try{for(var i=R(this.getCodewords()),o=i.next();!o.done;o=i.next()){var a=o.value;if(null!=a){var s=a.getRowNumber();if(s>=r.length)continue;r[s]++}}}catch(l){e={error:l}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return r},t.prototype.adjustIncompleteIndicatorColumnRowNumbers=function(e){for(var t=this.getBoundingBox(),n=this._isLeft?t.getTopLeft():t.getTopRight(),r=this._isLeft?t.getBottomLeft():t.getBottomRight(),i=this.imageRowToCodewordIndex(Math.trunc(n.getY())),o=this.imageRowToCodewordIndex(Math.trunc(r.getY())),a=this.getCodewords(),s=-1,l=1,u=0,c=i;c<o;c++)if(null!=a[c]){var f=a[c];f.setRowNumberAsRowIndicatorColumn();var d=f.getRowNumber()-s;0===d?u++:1===d?(l=Math.max(l,u),u=1,s=f.getRowNumber()):f.getRowNumber()>=e.getRowCount()?a[c]=null:(s=f.getRowNumber(),u=1)}},t.prototype.getBarcodeMetadata=function(){var e,t,n=this.getCodewords(),r=new P,i=new P,o=new P,a=new P;try{for(var s=R(n),u=s.next();!u.done;u=s.next()){var c=u.value;if(null!=c){c.setRowNumberAsRowIndicatorColumn();var f=c.getValue()%30,d=c.getRowNumber();switch(this._isLeft||(d+=2),d%3){case 0:i.setValue(3*f+1);break;case 1:a.setValue(f/3),o.setValue(f%3);break;case 2:r.setValue(f+1);break}}}}catch(p){e={error:p}}finally{try{u&&!u.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}if(0===r.getValue().length||0===i.getValue().length||0===o.getValue().length||0===a.getValue().length||r.getValue()[0]<1||i.getValue()[0]+o.getValue()[0]<l["a"].MIN_ROWS_IN_BARCODE||i.getValue()[0]+o.getValue()[0]>l["a"].MAX_ROWS_IN_BARCODE)return null;var h=new S(r.getValue()[0],i.getValue()[0],o.getValue()[0],a.getValue()[0]);return this.removeIncorrectCodewords(n,h),h},t.prototype.removeIncorrectCodewords=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(null!=e[n]){var i=r.getValue()%30,o=r.getRowNumber();if(o>t.getRowCount())e[n]=null;else switch(this._isLeft||(o+=2),o%3){case 0:3*i+1!==t.getRowCountUpperPart()&&(e[n]=null);break;case 1:Math.trunc(i/3)===t.getErrorCorrectionLevel()&&i%3===t.getRowCountLowerPart()||(e[n]=null);break;case 2:i+1!==t.getColumnCount()&&(e[n]=null);break}}}},t.prototype.isLeft=function(){return this._isLeft},t.prototype.toString=function(){return"IsLeft: "+this._isLeft+"\n"+e.prototype.toString.call(this)},t}(E),B=F,L=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},$=function(){function e(e,t){this.ADJUST_ROW_NUMBER_SKIP=2,this.barcodeMetadata=e,this.barcodeColumnCount=e.getColumnCount(),this.boundingBox=t,this.detectionResultColumns=new Array(this.barcodeColumnCount+2)}return e.prototype.getDetectionResultColumns=function(){this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[0]),this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[this.barcodeColumnCount+1]);var e,t=l["a"].MAX_CODEWORDS_IN_BARCODE;do{e=t,t=this.adjustRowNumbersAndGetCount()}while(t>0&&t<e);return this.detectionResultColumns},e.prototype.adjustIndicatorColumnRowNumbers=function(e){null!=e&&e.adjustCompleteIndicatorColumnRowNumbers(this.barcodeMetadata)},e.prototype.adjustRowNumbersAndGetCount=function(){var e=this.adjustRowNumbersByRow();if(0===e)return 0;for(var t=1;t<this.barcodeColumnCount+1;t++)for(var n=this.detectionResultColumns[t].getCodewords(),r=0;r<n.length;r++)null!=n[r]&&(n[r].hasValidRowNumber()||this.adjustRowNumbers(t,r,n));return e},e.prototype.adjustRowNumbersByRow=function(){this.adjustRowNumbersFromBothRI();var e=this.adjustRowNumbersFromLRI();return e+this.adjustRowNumbersFromRRI()},e.prototype.adjustRowNumbersFromBothRI=function(){if(null!=this.detectionResultColumns[0]&&null!=this.detectionResultColumns[this.barcodeColumnCount+1])for(var e=this.detectionResultColumns[0].getCodewords(),t=this.detectionResultColumns[this.barcodeColumnCount+1].getCodewords(),n=0;n<e.length;n++)if(null!=e[n]&&null!=t[n]&&e[n].getRowNumber()===t[n].getRowNumber())for(var r=1;r<=this.barcodeColumnCount;r++){var i=this.detectionResultColumns[r].getCodewords()[n];null!=i&&(i.setRowNumber(e[n].getRowNumber()),i.hasValidRowNumber()||(this.detectionResultColumns[r].getCodewords()[n]=null))}},e.prototype.adjustRowNumbersFromRRI=function(){if(null==this.detectionResultColumns[this.barcodeColumnCount+1])return 0;for(var t=0,n=this.detectionResultColumns[this.barcodeColumnCount+1].getCodewords(),r=0;r<n.length;r++)if(null!=n[r])for(var i=n[r].getRowNumber(),o=0,a=this.barcodeColumnCount+1;a>0&&o<this.ADJUST_ROW_NUMBER_SKIP;a--){var s=this.detectionResultColumns[a].getCodewords()[r];null!=s&&(o=e.adjustRowNumberIfValid(i,o,s),s.hasValidRowNumber()||t++)}return t},e.prototype.adjustRowNumbersFromLRI=function(){if(null==this.detectionResultColumns[0])return 0;for(var t=0,n=this.detectionResultColumns[0].getCodewords(),r=0;r<n.length;r++)if(null!=n[r])for(var i=n[r].getRowNumber(),o=0,a=1;a<this.barcodeColumnCount+1&&o<this.ADJUST_ROW_NUMBER_SKIP;a++){var s=this.detectionResultColumns[a].getCodewords()[r];null!=s&&(o=e.adjustRowNumberIfValid(i,o,s),s.hasValidRowNumber()||t++)}return t},e.adjustRowNumberIfValid=function(e,t,n){return null==n||n.hasValidRowNumber()||(n.isValidRowNumber(e)?(n.setRowNumber(e),t=0):++t),t},e.prototype.adjustRowNumbers=function(t,n,r){var i,o;if(null!=this.detectionResultColumns[t-1]){var a=r[n],s=this.detectionResultColumns[t-1].getCodewords(),l=s;null!=this.detectionResultColumns[t+1]&&(l=this.detectionResultColumns[t+1].getCodewords());var u=new Array(14);u[2]=s[n],u[3]=l[n],n>0&&(u[0]=r[n-1],u[4]=s[n-1],u[5]=l[n-1]),n>1&&(u[8]=r[n-2],u[10]=s[n-2],u[11]=l[n-2]),n<r.length-1&&(u[1]=r[n+1],u[6]=s[n+1],u[7]=l[n+1]),n<r.length-2&&(u[9]=r[n+2],u[12]=s[n+2],u[13]=l[n+2]);try{for(var c=L(u),f=c.next();!f.done;f=c.next()){var d=f.value;if(e.adjustRowNumber(a,d))return}}catch(h){i={error:h}}finally{try{f&&!f.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}}},e.adjustRowNumber=function(e,t){return null!=t&&(!(!t.hasValidRowNumber()||t.getBucket()!==e.getBucket())&&(e.setRowNumber(t.getRowNumber()),!0))},e.prototype.getBarcodeColumnCount=function(){return this.barcodeColumnCount},e.prototype.getBarcodeRowCount=function(){return this.barcodeMetadata.getRowCount()},e.prototype.getBarcodeECLevel=function(){return this.barcodeMetadata.getErrorCorrectionLevel()},e.prototype.setBoundingBox=function(e){this.boundingBox=e},e.prototype.getBoundingBox=function(){return this.boundingBox},e.prototype.setDetectionResultColumn=function(e,t){this.detectionResultColumns[e]=t},e.prototype.getDetectionResultColumn=function(e){return this.detectionResultColumns[e]},e.prototype.toString=function(){var e=this.detectionResultColumns[0];null==e&&(e=this.detectionResultColumns[this.barcodeColumnCount+1]);for(var t=new D,n=0;n<e.getCodewords().length;n++){t.format("CW %3d:",n);for(var r=0;r<this.barcodeColumnCount+2;r++)if(null!=this.detectionResultColumns[r]){var i=this.detectionResultColumns[r].getCodewords()[n];null!=i?t.format(" %3d|%3d",i.getRowNumber(),i.getValue()):t.format(" | ")}else t.format(" | ");t.format("%n")}return t.toString()},e}(),V=$,j=function(){function e(t,n,r,i){this.rowNumber=e.BARCODE_ROW_UNKNOWN,this.startX=Math.trunc(t),this.endX=Math.trunc(n),this.bucket=Math.trunc(r),this.value=Math.trunc(i)}return e.prototype.hasValidRowNumber=function(){return this.isValidRowNumber(this.rowNumber)},e.prototype.isValidRowNumber=function(t){return t!==e.BARCODE_ROW_UNKNOWN&&this.bucket===t%3*3},e.prototype.setRowNumberAsRowIndicatorColumn=function(){this.rowNumber=Math.trunc(3*Math.trunc(this.value/30)+Math.trunc(this.bucket/3))},e.prototype.getWidth=function(){return this.endX-this.startX},e.prototype.getStartX=function(){return this.startX},e.prototype.getEndX=function(){return this.endX},e.prototype.getBucket=function(){return this.bucket},e.prototype.getValue=function(){return this.value},e.prototype.getRowNumber=function(){return this.rowNumber},e.prototype.setRowNumber=function(e){this.rowNumber=e},e.prototype.toString=function(){return this.rowNumber+"|"+this.value},e.BARCODE_ROW_UNKNOWN=-1,e}(),z=j,H=n("2e1c"),U=function(){function e(){}return e.initialize=function(){for(var t=0;t<l["a"].SYMBOL_TABLE.length;t++)for(var n=l["a"].SYMBOL_TABLE[t],r=1&n,i=0;i<l["a"].BARS_IN_MODULE;i++){var o=0;while((1&n)===r)o+=1,n>>=1;r=1&n,e.RATIOS_TABLE[t]||(e.RATIOS_TABLE[t]=new Array(l["a"].BARS_IN_MODULE)),e.RATIOS_TABLE[t][l["a"].BARS_IN_MODULE-i-1]=Math.fround(o/l["a"].MODULES_IN_CODEWORD)}this.bSymbolTableReady=!0},e.getDecodedValue=function(t){var n=e.getDecodedCodewordValue(e.sampleBitCounts(t));return-1!==n?n:e.getClosestDecodedValue(t)},e.sampleBitCounts=function(e){for(var t=y["a"].sum(e),n=new Int32Array(l["a"].BARS_IN_MODULE),r=0,i=0,o=0;o<l["a"].MODULES_IN_CODEWORD;o++){var a=t/(2*l["a"].MODULES_IN_CODEWORD)+o*t/l["a"].MODULES_IN_CODEWORD;i+e[r]<=a&&(i+=e[r],r++),n[r]++}return n},e.getDecodedCodewordValue=function(t){var n=e.getBitValue(t);return-1===l["a"].getCodeword(n)?-1:n},e.getBitValue=function(e){for(var t=0,n=0;n<e.length;n++)for(var r=0;r<e[n];r++)t=t<<1|(n%2===0?1:0);return Math.trunc(t)},e.getClosestDecodedValue=function(t){var n=y["a"].sum(t),r=new Array(l["a"].BARS_IN_MODULE);if(n>1)for(var i=0;i<r.length;i++)r[i]=Math.fround(t[i]/n);var o=H["a"].MAX_VALUE,a=-1;this.bSymbolTableReady||e.initialize();for(var s=0;s<e.RATIOS_TABLE.length;s++){for(var u=0,c=e.RATIOS_TABLE[s],f=0;f<l["a"].BARS_IN_MODULE;f++){var d=Math.fround(c[f]-r[f]);if(u+=Math.fround(d*d),u>=o)break}u<o&&(o=u,a=l["a"].SYMBOL_TABLE[s])}return a},e.bSymbolTableReady=!1,e.RATIOS_TABLE=new Array(l["a"].SYMBOL_TABLE.length).map((function(e){return new Array(l["a"].BARS_IN_MODULE)})),e}(),W=U,q=n("4c35"),G=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Y=function(){function e(){}return e.decode=function(t,n,r,i,o,s,l){for(var u,c=new C(t,n,r,i,o),f=null,d=null,h=!0;;h=!1){if(null!=n&&(f=e.getRowIndicatorColumn(t,c,n,!0,s,l)),null!=i&&(d=e.getRowIndicatorColumn(t,c,i,!1,s,l)),u=e.merge(f,d),null==u)throw a["a"].getNotFoundInstance();var p=u.getBoundingBox();if(!h||null==p||!(p.getMinY()<c.getMinY()||p.getMaxY()>c.getMaxY()))break;c=p}u.setBoundingBox(c);var m=u.getBarcodeColumnCount()+1;u.setDetectionResultColumn(0,f),u.setDetectionResultColumn(m,d);for(var g=null!=f,v=1;v<=m;v++){var b=g?v:m-v;if(void 0===u.getDetectionResultColumn(b)){var y=void 0;y=0===b||b===m?new B(c,0===b):new E(c),u.setDetectionResultColumn(b,y);for(var w=-1,_=w,x=c.getMinY();x<=c.getMaxY();x++){if(w=e.getStartColumn(u,b,x,g),w<0||w>c.getMaxX()){if(-1===_)continue;w=_}var S=e.detectCodeword(t,c.getMinX(),c.getMaxX(),g,w,x,s,l);null!=S&&(y.setCodeword(x,S),_=w,s=Math.min(s,S.getWidth()),l=Math.max(l,S.getWidth()))}}}return e.createDecoderResult(u)},e.merge=function(t,n){if(null==t&&null==n)return null;var r=e.getBarcodeMetadata(t,n);if(null==r)return null;var i=C.merge(e.adjustBoundingBox(t),e.adjustBoundingBox(n));return new V(r,i)},e.adjustBoundingBox=function(t){var n,r;if(null==t)return null;var i=t.getRowHeights();if(null==i)return null;var o=e.getMax(i),a=0;try{for(var s=G(i),l=s.next();!l.done;l=s.next()){var u=l.value;if(a+=o-u,u>0)break}}catch(h){n={error:h}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}for(var c=t.getCodewords(),f=0;a>0&&null==c[f];f++)a--;var d=0;for(f=i.length-1;f>=0;f--)if(d+=o-i[f],i[f]>0)break;for(f=c.length-1;d>0&&null==c[f];f--)d--;return t.getBoundingBox().addMissingRows(a,d,t.isLeft())},e.getMax=function(e){var t,n,r=-1;try{for(var i=G(e),o=i.next();!o.done;o=i.next()){var a=o.value;r=Math.max(r,a)}}catch(s){t={error:s}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},e.getBarcodeMetadata=function(e,t){var n,r;return null==e||null==(n=e.getBarcodeMetadata())?null==t?null:t.getBarcodeMetadata():null==t||null==(r=t.getBarcodeMetadata())?n:n.getColumnCount()!==r.getColumnCount()&&n.getErrorCorrectionLevel()!==r.getErrorCorrectionLevel()&&n.getRowCount()!==r.getRowCount()?null:n},e.getRowIndicatorColumn=function(t,n,r,i,o,a){for(var s=new B(n,i),l=0;l<2;l++)for(var u=0===l?1:-1,c=Math.trunc(Math.trunc(r.getX())),f=Math.trunc(Math.trunc(r.getY()));f<=n.getMaxY()&&f>=n.getMinY();f+=u){var d=e.detectCodeword(t,0,t.getWidth(),i,c,f,o,a);null!=d&&(s.setCodeword(f,d),c=i?d.getStartX():d.getEndX())}return s},e.adjustCodewordCount=function(t,n){var r=n[0][1],i=r.getValue(),o=t.getBarcodeColumnCount()*t.getBarcodeRowCount()-e.getNumberOfECCodeWords(t.getBarcodeECLevel());if(0===i.length){if(o<1||o>l["a"].MAX_CODEWORDS_IN_BARCODE)throw a["a"].getNotFoundInstance();r.setValue(o)}else i[0]!==o&&r.setValue(o)},e.createDecoderResult=function(t){var n=e.createBarcodeMatrix(t);e.adjustCodewordCount(t,n);for(var r=new Array,i=new Int32Array(t.getBarcodeRowCount()*t.getBarcodeColumnCount()),o=[],a=new Array,s=0;s<t.getBarcodeRowCount();s++)for(var u=0;u<t.getBarcodeColumnCount();u++){var c=n[s][u+1].getValue(),f=s*t.getBarcodeColumnCount()+u;0===c.length?r.push(f):1===c.length?i[f]=c[0]:(a.push(f),o.push(c))}for(var d=new Array(o.length),h=0;h<d.length;h++)d[h]=o[h];return e.createDecoderResultFromAmbiguousValues(t.getBarcodeECLevel(),i,l["a"].toIntArray(r),l["a"].toIntArray(a),d)},e.createDecoderResultFromAmbiguousValues=function(t,n,r,o,a){var s=new Int32Array(o.length),l=100;while(l-- >0){for(var u=0;u<s.length;u++)n[o[u]]=a[u][s[u]];try{return e.decodeCodewords(n,t,r)}catch(f){var c=f instanceof i["a"];if(!c)throw f}if(0===s.length)throw i["a"].getChecksumInstance();for(u=0;u<s.length;u++){if(s[u]<a[u].length-1){s[u]++;break}if(s[u]=0,u===s.length-1)throw i["a"].getChecksumInstance()}}throw i["a"].getChecksumInstance()},e.createBarcodeMatrix=function(e){for(var t,n,r,i,o=Array.from({length:e.getBarcodeRowCount()},(function(){return new Array(e.getBarcodeColumnCount()+2)})),a=0;a<o.length;a++)for(var s=0;s<o[a].length;s++)o[a][s]=new P;var l=0;try{for(var u=G(e.getDetectionResultColumns()),c=u.next();!c.done;c=u.next()){var f=c.value;if(null!=f)try{for(var d=(r=void 0,G(f.getCodewords())),h=d.next();!h.done;h=d.next()){var p=h.value;if(null!=p){var m=p.getRowNumber();if(m>=0){if(m>=o.length)continue;o[m][l].setValue(p.getValue())}}}}catch(g){r={error:g}}finally{try{h&&!h.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}l++}}catch(v){t={error:v}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}return o},e.isValidBarcodeColumn=function(e,t){return t>=0&&t<=e.getBarcodeColumnCount()+1},e.getStartColumn=function(t,n,r,i){var o,a,s=i?1:-1,l=null;if(e.isValidBarcodeColumn(t,n-s)&&(l=t.getDetectionResultColumn(n-s).getCodeword(r)),null!=l)return i?l.getEndX():l.getStartX();if(l=t.getDetectionResultColumn(n).getCodewordNearby(r),null!=l)return i?l.getStartX():l.getEndX();if(e.isValidBarcodeColumn(t,n-s)&&(l=t.getDetectionResultColumn(n-s).getCodewordNearby(r)),null!=l)return i?l.getEndX():l.getStartX();var u=0;while(e.isValidBarcodeColumn(t,n-s)){n-=s;try{for(var c=(o=void 0,G(t.getDetectionResultColumn(n).getCodewords())),f=c.next();!f.done;f=c.next()){var d=f.value;if(null!=d)return(i?d.getEndX():d.getStartX())+s*u*(d.getEndX()-d.getStartX())}}catch(h){o={error:h}}finally{try{f&&!f.done&&(a=c.return)&&a.call(c)}finally{if(o)throw o.error}}u++}return i?t.getBoundingBox().getMinX():t.getBoundingBox().getMaxX()},e.detectCodeword=function(t,n,r,i,o,a,s,u){o=e.adjustCodewordStartColumn(t,n,r,i,o,a);var c,f=e.getModuleBitCount(t,n,r,i,o,a);if(null==f)return null;var d=y["a"].sum(f);if(i)c=o+d;else{for(var h=0;h<f.length/2;h++){var p=f[h];f[h]=f[f.length-1-h],f[f.length-1-h]=p}c=o,o=c-d}if(!e.checkCodewordSkew(d,s,u))return null;var m=W.getDecodedValue(f),g=l["a"].getCodeword(m);return-1===g?null:new z(o,c,e.getCodewordBucketNumber(m),g)},e.getModuleBitCount=function(e,t,n,r,i,o){var a=i,s=new Int32Array(8),l=0,u=r?1:-1,c=r;while((r?a<n:a>=t)&&l<s.length)e.get(a,o)===c?(s[l]++,a+=u):(l++,c=!c);return l===s.length||a===(r?n:t)&&l===s.length-1?s:null},e.getNumberOfECCodeWords=function(e){return 2<<e},e.adjustCodewordStartColumn=function(t,n,r,i,o,a){for(var s=o,l=i?-1:1,u=0;u<2;u++){while((i?s>=n:s<r)&&i===t.get(s,a)){if(Math.abs(o-s)>e.CODEWORD_SKEW_SIZE)return o;s+=l}l=-l,i=!i}return s},e.checkCodewordSkew=function(t,n,r){return n-e.CODEWORD_SKEW_SIZE<=t&&t<=r+e.CODEWORD_SKEW_SIZE},e.decodeCodewords=function(t,n,r){if(0===t.length)throw o["a"].getFormatInstance();var i=1<<n+1,a=e.correctErrors(t,r,i);e.verifyCodewordCount(t,i);var s=q["a"].decode(t,""+n);return s.setErrorsCorrected(a),s.setErasures(r.length),s},e.correctErrors=function(t,n,r){if(null!=n&&n.length>r/2+e.MAX_ERRORS||r<0||r>e.MAX_EC_CODEWORDS)throw i["a"].getChecksumInstance();return e.errorCorrection.decode(t,r,n)},e.verifyCodewordCount=function(e,t){if(e.length<4)throw o["a"].getFormatInstance();var n=e[0];if(n>e.length)throw o["a"].getFormatInstance();if(0===n){if(!(t<e.length))throw o["a"].getFormatInstance();e[0]=e.length-t}},e.getBitCountForCodeword=function(e){var t=new Int32Array(8),n=0,r=t.length-1;while(1){if((1&e)!==n&&(n=1&e,r--,r<0))break;t[r]++,e>>=1}return t},e.getCodewordBucketNumber=function(e){return e instanceof Int32Array?this.getCodewordBucketNumber_Int32Array(e):this.getCodewordBucketNumber_number(e)},e.getCodewordBucketNumber_number=function(t){return e.getCodewordBucketNumber(e.getBitCountForCodeword(t))},e.getCodewordBucketNumber_Int32Array=function(e){return(e[0]-e[2]+e[4]-e[6]+9)%9},e.toString=function(e){for(var t=new D,n=0;n<e.length;n++){t.format("Row %2d: ",n);for(var r=0;r<e[n].length;r++){var i=e[n][r];0===i.getValue().length?t.format(" ",null):t.format("%4d(%2d)",i.getValue()[0],i.getConfidence(i.getValue()[0]))}t.format("%n")}return t.toString()},e.CODEWORD_SKEW_SIZE=2,e.MAX_ERRORS=3,e.MAX_EC_CODEWORDS=512,e.errorCorrection=new w["a"],e}(),K=Y,X=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},J=function(){function e(){}return e.prototype.decode=function(t,n){void 0===n&&(n=null);var r=e.decode(t,n,!1);if(null==r||0===r.length||null==r[0])throw a["a"].getNotFoundInstance();return r[0]},e.prototype.decodeMultiple=function(t,n){void 0===n&&(n=null);try{return e.decode(t,n,!0)}catch(r){if(r instanceof o["a"]||r instanceof i["a"])throw a["a"].getNotFoundInstance();throw r}},e.decode=function(t,n,i){var o,a,l=new Array,u=b.detectMultiple(t,n,i);try{for(var f=X(u.getPoints()),d=f.next();!d.done;d=f.next()){var h=d.value,p=K.decode(u.getBits(),h[4],h[5],h[6],h[7],e.getMinCodewordWidth(h),e.getMaxCodewordWidth(h)),m=new s["a"](p.getText(),p.getRawBytes(),void 0,h,r["a"].PDF_417);m.putMetadata(c["a"].ERROR_CORRECTION_LEVEL,p.getECLevel());var g=p.getOther();null!=g&&m.putMetadata(c["a"].PDF417_EXTRA_METADATA,g),l.push(m)}}catch(v){o={error:v}}finally{try{d&&!d.done&&(a=f.return)&&a.call(f)}finally{if(o)throw o.error}}return l.map((function(e){return e}))},e.getMaxWidth=function(e,t){return null==e||null==t?0:Math.trunc(Math.abs(e.getX()-t.getX()))},e.getMinWidth=function(e,t){return null==e||null==t?u["a"].MAX_VALUE:Math.trunc(Math.abs(e.getX()-t.getX()))},e.getMaxCodewordWidth=function(t){return Math.floor(Math.max(Math.max(e.getMaxWidth(t[0],t[4]),e.getMaxWidth(t[6],t[2])*l["a"].MODULES_IN_CODEWORD/l["a"].MODULES_IN_STOP_PATTERN),Math.max(e.getMaxWidth(t[1],t[5]),e.getMaxWidth(t[7],t[3])*l["a"].MODULES_IN_CODEWORD/l["a"].MODULES_IN_STOP_PATTERN)))},e.getMinCodewordWidth=function(t){return Math.floor(Math.min(Math.min(e.getMinWidth(t[0],t[4]),e.getMinWidth(t[6],t[2])*l["a"].MODULES_IN_CODEWORD/l["a"].MODULES_IN_STOP_PATTERN),Math.min(e.getMinWidth(t[1],t[5]),e.getMinWidth(t[7],t[3])*l["a"].MODULES_IN_CODEWORD/l["a"].MODULES_IN_STOP_PATTERN)))},e.prototype.reset=function(){},e}();t["a"]=J},f6ed:function(e,t,n){"use strict";var r=n("f0a7"),i=function(){function e(){}return e.prototype.exp=function(e){return this.expTable[e]},e.prototype.log=function(e){if(0===e)throw new r["a"];return this.logTable[e]},e.addOrSubtract=function(e,t){return e^t},e}();t["a"]=i},f6fd:function(e,t){(function(e){var t="currentScript",n=e.getElementsByTagName("script");t in e||Object.defineProperty(e,t,{get:function(){try{throw new Error}catch(r){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(e in n)if(n[e].src==t||"interactive"==n[e].readyState)return n[e];return null}}})})(document)},f751:function(e,t,n){var r=n("5ca1");r(r.S+r.F,"Object",{assign:n("7333")})},f772:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},f809:function(e,t,n){"use strict";e.exports=function(e){e||(e={}),"string"===typeof e&&(e={cookie:e}),void 0===e.cookie&&(e.cookie="");var t={getItem:function(t){for(var n=e.cookie.split(/;\s*/),r=0;r<n.length;r++){var i=n[r].split("="),o=decodeURIComponent(i[0]);if(o===t)return decodeURIComponent(i[1])}},setItem:function(t,n,r){if("string"!==typeof t||"string"!==typeof n)return!1;r||(r={});var i=encodeURIComponent(t)+"="+encodeURIComponent(n);return r.hasOwnProperty("expires")&&(i+="; expires="+r.expires),r.hasOwnProperty("path")&&(i+="; path="+r.path),r.hasOwnProperty("domain")&&(i+="; domain="+r.domain),r.secure&&(i+="; secure"),e.cookie=i,i},removeItem:function(t){e.cookie=t+"=;expires=Thu, 01 Jan 1970 00:00:01 GMT;"},clear:function(){for(var n=e.cookie.split(/;\s*/),r=0;r<n.length;r++)t.removeItem(decodeURIComponent(n[r].split("=")[0]))}};return t}},f823:function(e,t,n){"use strict";var r=n("fe96"),i=n("67f0"),o=n("78c7"),a=function(){function e(){}return e.castAsNonUtf8Char=function(e,t){void 0===t&&(t=null);var n=t?t.getName():this.ISO88591;return o["a"].decode(new Uint8Array([e]),n)},e.guessEncoding=function(t,n){if(null!==n&&void 0!==n&&void 0!==n.get(r["a"].CHARACTER_SET))return n.get(r["a"].CHARACTER_SET).toString();for(var i=t.length,o=!0,a=!0,s=!0,l=0,u=0,c=0,f=0,d=0,h=0,p=0,m=0,g=0,v=0,b=0,y=t.length>3&&239===t[0]&&187===t[1]&&191===t[2],w=0;w<i&&(o||a||s);w++){var _=255&t[w];s&&(l>0?0===(128&_)?s=!1:l--:0!==(128&_)&&(0===(64&_)?s=!1:(l++,0===(32&_)?u++:(l++,0===(16&_)?c++:(l++,0===(8&_)?f++:s=!1))))),o&&(_>127&&_<160?o=!1:_>159&&(_<192||215===_||247===_)&&b++),a&&(d>0?_<64||127===_||_>252?a=!1:d--:128===_||160===_||_>239?a=!1:_>160&&_<224?(h++,m=0,p++,p>g&&(g=p)):_>127?(d++,p=0,m++,m>v&&(v=m)):(p=0,m=0))}return s&&l>0&&(s=!1),a&&d>0&&(a=!1),s&&(y||u+c+f>0)?e.UTF8:a&&(e.ASSUME_SHIFT_JIS||g>=3||v>=3)?e.SHIFT_JIS:o&&a?2===g&&2===h||10*b>=i?e.SHIFT_JIS:e.ISO88591:o?e.ISO88591:a?e.SHIFT_JIS:s?e.UTF8:e.PLATFORM_DEFAULT_ENCODING},e.format=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=-1;function i(e,n,i,o,a,s){if("%%"===e)return"%";if(void 0!==t[++r]){e=o?parseInt(o.substr(1)):void 0;var l,u=a?parseInt(a.substr(1)):void 0;switch(s){case"s":l=t[r];break;case"c":l=t[r][0];break;case"f":l=parseFloat(t[r]).toFixed(e);break;case"p":l=parseFloat(t[r]).toPrecision(e);break;case"e":l=parseFloat(t[r]).toExponential(e);break;case"x":l=parseInt(t[r]).toString(u||16);break;case"d":l=parseFloat(parseInt(t[r],u||10).toPrecision(e)).toFixed(0);break}l="object"===typeof l?JSON.stringify(l):(+l).toString(u);var c=parseInt(i),f=i&&i[0]+""==="0"?"0":" ";while(l.length<c)l=void 0!==n?l+f:f+l;return l}}var o=/%(-)?(0?[0-9]+)?([.][0-9]+)?([#][0-9]+)?([scfpexd%])/g;return e.replace(o,i)},e.getBytes=function(e,t){return o["a"].encode(e,t)},e.getCharCode=function(e,t){return void 0===t&&(t=0),e.charCodeAt(t)},e.getCharAt=function(e){return String.fromCharCode(e)},e.SHIFT_JIS=i["a"].SJIS.getName(),e.GB2312="GB2312",e.ISO88591=i["a"].ISO8859_1.getName(),e.EUC_JP="EUC_JP",e.UTF8=i["a"].UTF8.getName(),e.PLATFORM_DEFAULT_ENCODING=e.UTF8,e.ASSUME_SHIFT_JIS=!1,e}();t["a"]=a},f848:function(e,t,n){e.exports={default:n("4dc9"),__esModule:!0}},f893:function(e,t,n){e.exports={default:n("f921"),__esModule:!0}},f8ab:function(e,t,n){"use strict";n("66c8")},f8c0:function(e,t,n){"use strict";var r=n("d0b6"),i=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.kind="ArgumentException",t}(r["a"]);t["a"]=o},f921:function(e,t,n){n("014b"),n("c207"),n("69d3"),n("765d"),e.exports=n("584a").Symbol},fa5b:function(e,t,n){e.exports=n("5537")("native-function-to-string",Function.toString)},fa99:function(e,t,n){n("0293"),e.exports=n("584a").Object.getPrototypeOf},fab2:function(e,t,n){var r=n("7726").document;e.exports=r&&r.documentElement},fb15:function(e,t,n){"use strict";var r;(n.r(t),"undefined"!==typeof window)&&(n("f6fd"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1]));n("8e6e"),n("cadf"),n("456d");var i=n("ade3"),o=(n("7f7f"),n("ac6a"),function(){var e=this,t=e._self._c;return t("el-breadcrumb",{staticClass:"app-breadcrumb",attrs:{separator:"/"}},[t("transition-group",{attrs:{name:"breadcrumb"}},e._l(e.levelListWithTitle,(function(n,r){return t("el-breadcrumb-item",{key:n.path},["noredirect"===n.redirect||r==e.levelList.length-1?t("span",{staticClass:"no-redirect"},[e._v("\n "+e._s(n.meta.title)+"\n ")]):t("router-link",{attrs:{to:n.redirect||n.path}},[e._v("\n "+e._s(n.meta.title)+"\n ")])],1)})),1)],1)}),a=[],s=n("bd11"),l=n.n(s),u={name:"Breadcrumb",data:function(){return{levelList:null}},computed:{levelListWithTitle:function(){return this.levelList.filter((function(e){return void 0!==e.meta.title&&null!==e.meta.title}))}},watch:{$route:function(){this.getBreadcrumb()}},created:function(){this.getBreadcrumb()},methods:{getBreadcrumb:function(){var e=this.$route.params,t=this.$route.matched.filter((function(t){if(t.name){var n=l.a.compile(t.path);return t.path=n(e),!0}})),n=t[0];n&&"Dashboard"!==n.name&&(t=[{path:"/dashboard",meta:{title:"Dashboard"}}].concat(t)),this.levelList=t}}},c=u;n("5b35");function f(e,t,n,r,i,o,a,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:e,options:u}}var d=f(c,o,a,!1,null,"7da23860",null),h=d.exports;h.install=function(e){e.component(h.name,h)};var p=h,m=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{staticClass:"user-tree",attrs:{visible:"",title:e.myTitle,"close-on-click-modal":!1,"append-to-body":"",width:e.multiple?"50%":"30%"},on:{open:function(t){return e.$emit("open")},opend:function(t){return e.$emit("opend")},close:function(t){return e.$emit("close")},closed:function(t){return e.$emit("closed")}}},[t("inline-department-tree",{ref:"inlineDeparmentTree",attrs:{"check-strictly":e.checkStrictly,multiple:e.multiple,height:e.height,"department-info":e.departmentInfo,"select-department-info":e.selectDepartmentInfo,"search-field":e.searchField,separator:e.separator},on:{result:e.result}}),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{size:"small"},on:{click:function(t){return e.$emit("close")}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.cancel"))+"\n ")]),t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.selectDepartment}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.sure"))+"\n ")])],1)],1)],1)},g=[],v=(n("c5f6"),function(){var e=this,t=e._self._c;return t("div",[e.multiple?t("inline-department-multi-tree",{ref:"inlineDeparmentTree",attrs:{height:e.height,"check-strictly":e.checkStrictly,"department-info":e.departmentInfo,"select-department-info":e.selectDepartmentInfo,"search-field":e.searchField,separator:e.separator},on:{result:e.result}}):e._e(),e.multiple?e._e():t("inline-department-single-tree",{ref:"inlineDeparmentTree",attrs:{"department-info":e.departmentInfo},on:{result:e.result}})],1)}),b=[],y=function(){var e=this,t=e._self._c;return t("div",[t("el-container",{staticStyle:{height:"395px"}},[t("el-aside",{attrs:{width:"350px"}},[t("el-container",{staticStyle:{height:"390px"}},[t("el-header",{staticStyle:{"text-align":"right","font-size":"12px",height:"35px"}},[t("el-autocomplete",{staticClass:"inline-input inline-input-custom",attrs:{size:"small","fetch-suggestions":e.querySearch,placeholder:e.$t("departmentTreeInline.pleaseEnterDepartmentName")},on:{select:e.handleSelect},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.clickSearch.apply(null,arguments)}},model:{value:e.filterText,callback:function(t){e.filterText=t},expression:"filterText"}},[t("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.clickSearch},slot:"append"})],1)],1),t("el-main",{staticStyle:{padding:"10px"}},[e.searchValue?e._e():t("div",{staticStyle:{"padding-top":"5px",overflow:"auto",width:"auto",display:"inline-block !important"}},[t("el-tree",{ref:"deparmentTree",attrs:{props:e.defaultProps,load:e.loadNode,lazy:"","show-checkbox":!0,"node-key":"id","check-strictly":"","render-content":e.renderContent,"filter-node-method":e.filterNode},on:{"check-change":e.handleCheckChange,"node-expand":e.handleNodeExpand,check:e.handleCheckNode,"node-click":e.handleNodeClick}})],1),e.searchValue&&e.searchValue.length>0?t("div",{staticStyle:{height:"100%",overflow:"hidden"}},[t("user-result",{attrs:{"grid-data":e.searchResult,"select-result":e.selectResult,height:e.height,multiple:!0,"is-search-result":!0},on:{addUser:e.selectUser}})],1):e._e()])],1)],1),t("el-container",[t("el-aside",{attrs:{width:"2px"}},[t("table",{staticStyle:{height:"100%","border-left-style":"solid","border-bottom-style":"none","border-right-style":"none","border-top-style":"none","border-left-color":"#cccccc"},attrs:{border:"1px",cellpadding:"0",cellspacing:"0"}})]),t("el-main",{staticStyle:{padding:"10px"}},[t("div",{staticStyle:{"text-align":"left","font-size":"16px"}},[e._v("\n "+e._s(e.$t("departmentTreeInline.selectedDept"))+":\n ")]),t("div",{style:"padding-top: 5px;height:90%;overflow: hidden;"},[t("user-result",{directives:[{name:"loading",rawName:"v-loading",value:e.isloading,expression:"isloading"}],attrs:{"grid-data":e.selectResult,height:e.height,multiple:!0,"is-search-result":!1},on:{removeUser:e.removeUser}})],1)])],1)],1)],1)},w=[],_=n("3c96"),C=(n("551c"),n("a481"),n("53ca")),x=(n("28a5"),n("386d"),n("ca00")),S=n("8bbf"),k=n.n(S),D={getSearchUserFields:function(){var e=Object(x["e"])();return[{value:"name",label:e.t("departmentUserTree.searchFieldUserName")},{value:"loginName",label:e.t("departmentUserTree.searchFieldLoginName")},{value:"email",label:e.t("departmentUserTree.searchFieldEmail")},{value:"telephone",label:e.t("departmentUserTree.searchFieldTelephone")},{value:"jobNumber",label:e.t("departmentUserTree.searchFieldJobNumber")},{value:"honorificName",label:e.t("departmentUserTree.searchFieldHonorificName")}]},removeRow:function(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].id===t.id)return 0===r?(e.shift(),e):r===n-1?(e.pop(),e):(e.splice(r,1),e);return e},storeSeachValue:function(e,t,n){if(n&&""!==n){var r=e.getObject(t);if(r&&r.length>0){var i=r.filter(this.createFilter(n));if(0===i.length){var o={value:n};r.push(o),e.setObject(t,r)}}else{var a=[],s={value:n};a.push(s),e.setObject(t,a)}this.restaurants=e.getObject(t)}},createFilter:function(e){return function(t){return 0===t.value.toLowerCase().indexOf(e.toLowerCase())}},handleSelectUtil:function(e,t){this.storeSeachValue(t,this.searchStoreKey,this.filterText),this.search(e.value)},analysisLabelTag:function(e,t,n,r){var i,o="";if(e&&(""!==e&&"string"===typeof e?i=e.split("-#-#"):"object"===Object(C["a"])(e)&&(i=e),i&&i.length>0))for(var a=0;a<i.length;a++){var s=i[a];if(-1!==s.indexOf("obj.")){if(s=s.replace("${obj.","").replace("}",""),t){var l=t[s];this.childIsObjectProp(s)&&(l=this.childObjectPropOriginalValue(t,s)),o+=l}}else if(-1!==s.indexOf("request.")){if(s=s.replace("${request.","").replace("}",""),r){var u=r[s];u&&(o+=u)}}else if(-1!==s.indexOf("input."))s=s.replace("${input.","").replace("}",""),o+=s;else if(-1!==s.indexOf("context.")&&(s=s.replace("${context.","").replace("}",""),n)){var c=n[s];c&&(o+=c)}}return o},childIsObjectProp:function(e){return e.indexOf(".")>0},childObjectPropOriginalValue:function(e,t){try{var n=e,r=t.split(".");return r.forEach((function(e){if(!n)throw n="",n;n=n[e]})),n}catch(i){return""}},getSelectUsers:function(e,t,n){var r=this;return new Promise((function(i,o){e&&t?r.$http.get(k.a.prototype.baseAPI+"/component/organization-trees/select-users?searchField="+e+"&selectUserInfo="+t+"&separator="+n).then((function(e){i(e)})).catch((function(e){o(e)})):i([])}))}},O=D,T=(n("20d6"),{filterAppendNodes:function(e){var t=this;this.$http.post(k.a.prototype.baseAPI+"/component/organization-trees/search-pc-depts",this.searchParam).then((function(e){if(e){if(0===e.length)return t.searchResult=[],void t.$message({showClose:!0,type:"error",message:Object(x["e"])().t("imatrixUIMessage.queryResultIsEmpty")});t.searchResult=e}else t.$message({showClose:!0,type:"error",message:Object(x["e"])().t("imatrixUIMessage.queryResultIsEmpty")})}))},search:function(e){this.searchValue=e;var t=e;t&&(t=t.trim()),this.searchParam.searchValue=t,this.searchParam.departmentInfo=this.departmentInfo,this.filterAppendNodes(e)},handleSelect:function(e){var t=this;this.$http.get(k.a.prototype.baseAPI+"/api/departments?departmentCode="+e.code).then((function(n){if(null!==n)for(var r in n)e.hasOwnProperty(r)&&(e[r]=n[r]);if(t.filterText="",t.searchValue="",t.setMemoryCacheData(e,"department"),t.multiple){var i=t.selectResult.findIndex((function(t){return t.code===e.code}));i<0&&t.selectResult.push(e)}else t.packageSelectResult(e),t.$emit("result",t.selectNodeInfo)}))},querySearch:function(e,t){this.filterText||0!==this.filterText.length?(this.search(this.filterText),t([])):this.memorySearch(e,t)},clickSearch:function(){this.storeSeachValue(),this.search(this.filterText)},loadDepartmentWhenSearch:function(e,t){var n=this;return new Promise((function(r,i){if(t.length===e)r();else{var o=t[e],a=o,s="~";o.indexOf(s)>-1&&(a=o.substring(o.indexOf("~")+1)),n.loadDepartment(a).then((function(){n.loadDepartmentWhenSearch(++e,t)})).catch((function(e){i(e)}))}}))},handleCheckNode:function(e,t){var n=this;if(t.checkedKeys.indexOf(e.id)>-1){if(this.isloading=!0,e.nodeType&&"DEPARTMENT"===e.nodeType&&e.data){var r=JSON.parse(e.data);this.selectUser(null,r)}e.childDepartments?(this.$refs.deparmentTree.store.nodesMap[e.id].expanded=!0,this.checkedNodeAndChildren(e),this.isloading=!1):e.leaf?this.isloading=!1:(this.$http.get(k.a.prototype.baseAPI+"/component/organization-trees/departments/"+e.id).then((function(t){n.$refs.deparmentTree.updateKeyChildren(e.id,t),n.$refs.deparmentTree.store.nodesMap[e.id].expanded=!0,n.checkedNodeAndChildren(e)})),this.$http.get(k.a.prototype.baseAPI+"/component/organization-trees/child-departments/"+e.id).then((function(e){e&&!n.checkStrictly&&(e.forEach((function(e){n.selectUser(null,e)})),n.isloading=!1)})))}else this.cancelChildCheckedNodes(e)},loadNode:function(e,t){var n=0;n=0===e.level?0:e.data.id;var r=[];this.$refs.deparmentTree&&(r=this.$refs.deparmentTree.getCheckedKeys()),this.initLoadDepartment(n,e,t,r)},initLoadDepartment:function(e,t,n,r){var i=this;this.$http.get(k.a.prototype.baseAPI+"/component/organization-trees/departments/"+e).then((function(o){if(n(o),i.$refs.deparmentTree.updateKeyChildren(e,o),0===e){var a=o[0].data;o[0].disable=!0,i.tenantInfo=JSON.parse(a),i.containBranch=o[0].containBranch,i.departmentInfo&&i.departmentInfo.length>0?i.loadPointDepartments():i.loadDepartment(i.tenantNodeId)}i.isClickNode?(i.isClickNode=!1,i.checkedNodeAndChildren(t.data)):r&&r.indexOf(e)>-1&&i.checkedNodeAndChildren(t.data)}))},loadDepartment:function(e,t,n){var r=this;return new Promise((function(t,n){r.$http.get(k.a.prototype.baseAPI+"/component/organization-trees/departments/"+e).then((function(n){r.$refs.deparmentTree.updateKeyChildren(e,n),r.$refs.deparmentTree.store.nodesMap[e]&&(r.$refs.deparmentTree.store.nodesMap[e].expanded=!0),t()})).catch((function(e){console.log("error",e)}))}))},loadPointDepartments:function(){var e=this;this.$http.post(k.a.prototype.baseAPI+"/component/organization-trees/point-departments",this.departmentInfo).then((function(t){e.$refs.deparmentTree.updateKeyChildren(e.tenantNodeId,t),e.$refs.deparmentTree.store.nodesMap[e.tenantNodeId]&&(e.$refs.deparmentTree.store.nodesMap[e.tenantNodeId].expanded=!0)}))},getSelectDepts:function(e,t,n){var r=this;return new Promise((function(i,o){e&&t?r.$http.get(k.a.prototype.baseAPI+"/component/organization-trees/select-departments?searchField="+e+"&selectDeptInfo="+t+"&separator="+n).then((function(e){i(e)})).catch((function(e){o(e)})):i([])}))},packageAllDept:function(){var e={id:this.tenantNodeId,name:"所有部门"};return e},initSelectDepts:function(){var e=this;return new Promise((function(t,n){var r=[];e.selectDepartmentInfo?e.selectDepartmentInfo===e.tenantNodeId||"所有部门"===e.selectDepartmentInfo?(r.push(e.packageAllDept()),t(r)):e.getSelectDepts(e.searchField,e.selectDepartmentInfo,e.separator).then((function(e){t(e)})).catch((function(e){n(e)})):t(r)}))}}),E=T,I=function(){var e=this,t=e._self._c;return t("div",{staticStyle:{height:"100%"}},[t("el-table",{ref:"superGrid",attrs:{data:e.gridData,"row-key":"id","row-class-name":e.tableRowClassName,"max-height":e.myHeight,border:"",fit:""},on:{"row-click":e.rowClick,"row-dblclick":e.rowDblclick}},[!1===e.multiple?t("el-table-column",{attrs:{width:"60"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("el-radio",{attrs:{label:n.$index},on:{change:e.selectUser},model:{value:e.singleUserIndex,callback:function(t){e.singleUserIndex=t},expression:"singleUserIndex"}},[e._v("\n "+e._s(n.$index+1)+"\n ")])]}}],null,!1,1685606562)}):e._e(),e.multiple&&e.isSearchResult?t("el-table-column",{attrs:{fixed:"",label:e.$t("imatrixUIPublicModel.edit"),align:"center",width:"60px"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("div",[t("el-button",{attrs:{type:"primary",size:"mini",icon:"el-icon-plus",disabled:e.isDisable(n.row),circle:""},on:{click:function(t){return e.addUser(n.$index,n.row)}}})],1)]}}],null,!1,758332263)}):e._e(),e.multiple?t("el-table-column",{attrs:{label:e.$t("superGrid.index"),align:"center",width:"60px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.$index+1)+"\n ")]}}],null,!1,2711056793)}):e._e(),e.multiple&&!e.isSearchResult?t("el-table-column",{attrs:{fixed:"",label:e.$t("imatrixUIPublicModel.edit"),align:"center",width:"60px"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("div",[t("el-button",{attrs:{type:"danger",size:"mini",icon:"el-icon-delete",circle:""},on:{click:function(t){return e.removeUser(n.$index,n.row)}}})],1)]}}],null,!1,3810037523)}):e._e(),t("el-table-column",{attrs:{label:e.$t("departmentTreeInline.name"),width:170,prop:"name"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("span",{staticClass:"ellipsis cell--span",attrs:{title:n.row.showName}},[e._v(e._s(n.row.showName))])]}}])}),t("el-table-column",{attrs:{label:e.$t("departmentTreeInline.code"),width:140,prop:"code"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("span",{staticClass:"ellipsis cell--span",attrs:{title:n.row.code}},[e._v(e._s(n.row.code))])]}}])}),t("el-table-column",{attrs:{label:e.$t("departmentTreeInline.namePath"),width:140,prop:"namePath"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("span",{staticClass:"ellipsis cell--span",attrs:{title:n.row.namePath}},[e._v(e._s(n.row.namePath))])]}}])})],1)],1)},N=[],A={name:"UserResult",props:{gridData:{type:Array,default:null},containBranch:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},isSearchResult:{type:Boolean,default:!0},height:{type:String,default:"300px"},selectResult:{type:Array,default:function(){return[]}}},data:function(){var e=this.height;e=e.substring(0,e.indexOf("px"));var t=parseInt(e)+30+"px";return{singleUserIndex:null,selectedUser:null,myHeight:t}},created:function(){console.log("search-result---",this.gridData)},methods:{removeUser:function(e,t){this.$emit("removeUser",e,t)},addUser:function(e,t){this.$emit("addUser",e,t)},selectUser:function(e){this.$emit("selectResult",this.gridData[e])},rowClick:function(e,t,n){this.singleUserIndex=e.row_index,this.$emit("selectResult",e)},tableRowClassName:function(e){var t=e.row,n=e.rowIndex;t.row_index=n},rowDblclick:function(e,t,n){this.multiple?this.$emit("addUser",null,e):this.$emit("resultRowDblclick",e)},isDisable:function(e){if(this.selectResult){var t=this.selectResult.filter(this.filterDept(e));if(t&&t.length>0)return!0}return!1},filterDept:function(e){return function(t){return t.id===e.id}}}},P=A,M=(n("22df"),f(P,I,N,!1,null,null,null)),R=M.exports,F={memorySearch:function(e,t){var n=this.memoryCacheData,r=n;setTimeout((function(){t(r)}),10*Math.random())},setMemoryCacheData:function(e,t){"departmentUser"===t?this.setDepartmentUserMemoryCacheData(e):"department"===t&&this.setDepartmentMemoryCacheData(e)},getMemoryCacheData:function(e){"departmentUser"===e?this.getDepartmentUserMemoryCacheData():"department"===e&&this.getDepartmentMemoryCacheData()},setDepartmentUserMemoryCacheData:function(e){var t=10,n=_["a"].getObject(this.memoryCacheKey),r=void 0===e.name||null===e.name||"undefined"===e.name?"":e.name,i=void 0===e.loginName||null===e.loginName||"undefined"===e.loginName?"":e.loginName,o=void 0===e.mainDepartmentName||null===e.mainDepartmentName||"undefined"===e.mainDepartmentName?"":e.mainDepartmentName,a=r+"("+i+"/"+o+")",s=-1;n&&n.length>0?s=n.findIndex((function(t){return t.loginName===e.loginName})):n=[],e["value"]=a,s<0?(n.length===t&&n.splice(t-1,1),n.unshift(e),_["a"].setObject(this.memoryCacheKey,n)):(n.splice(s,1),n.unshift(e),_["a"].setObject(this.memoryCacheKey,n))},setDepartmentMemoryCacheData:function(e){var t=10,n=_["a"].getObject(this.memoryCacheKey),r=void 0===e.name||null===e.name||"undefined"===e.name?"":e.name,i=void 0===e.code||null===e.code||"undefined"===e.code?"":e.code,o=r+"("+i+")",a=-1;n&&n.length>0?a=n.findIndex((function(t){return t.code===e.code})):n=[],e["value"]=o,a<0?(n.length===t&&n.splice(t-1,1),n.unshift(e),_["a"].setObject(this.memoryCacheKey,n)):(n.splice(a,1),n.unshift(e),_["a"].setObject(this.memoryCacheKey,n))},getDepartmentUserMemoryCacheData:function(){var e=_["a"].getObject(this.memoryCacheKey);e&&e.length>0&&(this.memoryCacheData=e)},getDepartmentMemoryCacheData:function(){var e=_["a"].getObject(this.memoryCacheKey);e&&e.length>0&&(this.memoryCacheData=e)}},B=F;function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var V={name:"InlineDepartmentMultiTree",components:{UserResult:R},props:{checkStrictly:{type:Boolean,default:!1},departmentInfo:{type:Array,default:null},height:{type:String,default:"300px"},selectDepartmentInfo:{type:[String,Number],default:null},searchField:{type:String,default:"id"},separator:{type:String,default:","}},data:function(){return{filterText:"",defaultProps:{id:"id",label:"showName",children:"childDepartments",isLeaf:"leaf"},searchParam:{searchValue:null,treeType:"DEPARTMENT_TREE",departmentInfo:null},count:0,containBranch:!1,tenantNodeId:-1,allSearchNodeIds:[],allExpandNodeIds:[],isClickNode:!1,restaurants:[],searchValue:null,searchStoreKey:"searchDepartment",selectNodeInfo:null,tenantInfo:{},searchResult:[],selectResult:[],isloading:!1,multiple:!0,memoryCacheKey:"DEPARTMENT_MEMORY_KEY",memoryCacheData:[]}},computed:{},watch:{filterText:function(e){e||(this.searchValue=e,this.departmentInfo&&this.departmentInfo.length>0?this.loadPointDepartments():this.loadDepartment(this.tenantNodeId))}},created:function(){var e=this;this.initSelectDepts(this.searchField,this.selectDepartmentInfo,this.separator).then((function(t){t&&(e.selectResult=t)}))},mounted:function(){var e=_["a"].getObject(this.searchStoreKey);this.restaurants=e||[],this.getMemoryCacheData("department")},methods:$($($($({},O),E),B),{},{filterNode:function(e,t,n){return!e||-1!==t.name.indexOf(e)},checkedNodeAndChildren:function(e){var t=this,n=e;e.data&&(n=JSON.parse(e.data)),this.selectUser(null,n),this.$refs.deparmentTree.setChecked(e.id,!0);var r=e.childDepartments;r&&!this.checkStrictly&&r.forEach((function(e){t.checkedNodeAndChildren(e)}))},cancelChildCheckedNodes:function(e){var t=this,n=JSON.parse(e.data);this.selectResult=this.removeRow(this.selectResult,n),e.id!==this.tenantNodeId&&this.$refs.deparmentTree.setChecked(this.tenantNodeId,!1);var r=e.childDepartments;r&&!this.checkStrictly&&r.forEach((function(e){t.$refs.deparmentTree.setChecked(e.id,!1),t.cancelChildCheckedNodes(e)}))},handleCheckChange:function(e,t,n){},handleNodeExpand:function(e,t,n){},handleNodeClick:function(e,t,n){this.clickNodeWhenMultiple(e)},clickNodeWhenMultiple:function(e){var t=[];if(this.$refs.deparmentTree&&(t=this.$refs.deparmentTree.getCheckedKeys()),t&&t.indexOf(e.id)>-1)this.$refs.deparmentTree.setChecked(e.id,!1),this.checkStrictly||this.cancelChildCheckedNodes(e),this.$refs.deparmentTree.store.nodesMap[e.id].expanded=!0;else{if(e.nodeType&&"DEPARTMENT"===e.nodeType&&e.data){var n=JSON.parse(e.data);this.selectUser(null,n)}this.$refs.deparmentTree.setChecked(e.id,!0);var r=e.childDepartments;r&&r.length>0?this.checkStrictly||this.checkedNodeAndChildren(e):this.isClickNode=!0}},isDepartmentNode:function(e){return e.id!==this.tenantNodeId&&e.nodeType&&"DEPARTMENT"===e.nodeType&&!e.branch},selectDepartment:function(){var e=!1,t={ids:[],names:[],codes:[],zhNames:[],enNames:[],departments:[]};if(0===this.selectResult.length)e=!0;else for(var n=0;n<this.selectResult.length;n++){var r=this.selectResult[n];t.ids.push(r.id),t.codes.push(r.code),r.enName?t.enNames.push(r.enName):t.enNames.push(""),r.department?t.departments.push(r.department):t.departments.push(r);var i=r.showName;t.names.push(i),t.zhNames.push(r.name)}t.ids.length>0?(t.containBranch=this.containBranch,this.$emit("result",t)):e=!0,e&&this.$alert(this.$t("imatrixUIMessage.pleaseSelectDepartment"),this.$t("imatrixUIMessage.tips"),{confirmButtonText:this.$t("imatrixUIPublicModel.sure")})},isSelectTenantNode:function(e){return e===this.tenantNodeId&&(!this.departmentInfo||0===this.departmentInfo.length)},renderContent:function(e,t){var n,r=t.node;t.data,t.store;return n=-1===r.data.id||r.data.branch?"el-icon-menu":-2===r.data.id||-3===r.data.id?"el-icon-tickets":"el-icon-date",e("span",[e("i",{class:n}),e("span",{attrs:{title:r.label}},[r.label])])},selectUser:function(e,t){var n=this.selectResult.filter(this.filterDept(t));n&&0===n.length&&(t.tenantCode=this.tenantInfo.code,t.tenantName=this.tenantInfo.tenantName,this.selectResult.push(t),this.setMemoryCacheData(t,"department"))},filterDept:function(e){return function(t){return t.id===e.id}},filterDeptNode:function(e){return function(t){return t+""===e.id+""}},removeUser:function(e,t){var n=this;if(t.nodeId){var r=t.nodeId;this.$refs.deparmentTree&&r&&this.$refs.deparmentTree.setChecked(r,!1)}else if(this.$refs.deparmentTree){var i=this.$refs.deparmentTree.getCheckedKeys(),o=i.filter(this.filterDeptNode(t));o.length>0&&o.forEach((function(e){n.$refs.deparmentTree.setChecked(e,!1)}))}this.selectResult=this.removeRow(this.selectResult,t),this.selectResult&&0!==this.selectResult.length||this.$refs.deparmentTree&&this.$refs.deparmentTree.setCheckedKeys([])}})},j=V,z=(n("095b"),f(j,y,w,!1,null,null,null)),H=z.exports,U=function(){var e=this,t=e._self._c;return t("div",[t("el-container",{staticStyle:{height:"395px"}},[t("el-header",{staticStyle:{"text-align":"right","font-size":"12px",height:"35px"}},[t("el-autocomplete",{staticClass:"inline-input inline-input-custom",attrs:{size:"small","fetch-suggestions":e.querySearch,placeholder:e.$t("departmentTreeInline.pleaseEnterDepartmentName")},on:{select:e.handleSelect},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.clickSearch.apply(null,arguments)}},model:{value:e.filterText,callback:function(t){e.filterText=t},expression:"filterText"}},[t("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.clickSearch},slot:"append"})],1)],1),t("el-main",{staticStyle:{padding:"10px"}},[e.searchValue?e._e():t("div",{staticStyle:{"padding-top":"5px",overflow:"auto",width:"auto",display:"inline-block !important"}},[t("el-tree",{ref:"deparmentTree",attrs:{props:e.defaultProps,load:e.loadNode,lazy:"","show-checkbox":!1,"node-key":"id","check-strictly":"","render-content":e.renderContent,"filter-node-method":e.filterNode},on:{"check-change":e.handleCheckChange,"node-expand":e.handleNodeExpand,"node-click":e.handleNodeClick}})],1),e.searchValue&&e.searchValue.length>0?t("div",{staticStyle:{height:"100%",overflow:"hidden"}},[t("user-result",{attrs:{"grid-data":e.searchResult,height:e.height,multiple:!1,"is-search-result":!0},on:{selectResult:e.getSelectUser,resultRowDblclick:e.resultRowDblclick}})],1):e._e()])],1)],1)},W=[];function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Y={name:"InlineDepartmentSingleTree",components:{UserResult:R},props:{departmentInfo:{type:Array,default:null},height:{type:String,default:"300px"},selectDepartmentInfo:{type:[String,Number],default:null},searchField:{type:String,default:"id"},separator:{type:String,default:","}},data:function(){return{filterText:"",defaultProps:{id:"id",label:"showName",children:"childDepartments",isLeaf:"leaf"},searchParam:{searchValue:null,treeType:"DEPARTMENT_TREE",departmentInfo:null},count:0,containBranch:!1,tenantNodeId:-1,allSearchNodeIds:[],allExpandNodeIds:[],isClickNode:!1,restaurants:[],searchValue:null,searchStoreKey:"searchDepartment",selectNodeInfo:null,tenantInfo:{},searchResult:[],memoryCacheKey:"DEPARTMENT_MEMORY_KEY",memoryCacheData:[]}},computed:{},watch:{filterText:function(e){e||(this.searchValue=e,this.departmentInfo&&this.departmentInfo.length>0?this.loadPointDepartments():this.loadDepartment(this.tenantNodeId))}},mounted:function(){var e=_["a"].getObject(this.searchStoreKey);this.restaurants=e||[],this.getMemoryCacheData("department")},methods:G(G(G(G({},O),E),B),{},{filterNode:function(e,t,n){return!e||-1!==t.name.indexOf(e)},checkedNodeAndChildren:function(e){var t=this;this.$refs.deparmentTree.setChecked(e.id,!0);var n=e.childDepartments;n&&n.forEach((function(e){t.checkedNodeAndChildren(e)}))},cancelChildCheckedNodes:function(e){var t=this;e.id!==this.tenantNodeId&&this.$refs.deparmentTree.setChecked(this.tenantNodeId,!1);var n=e.childDepartments;n&&n.forEach((function(e){t.$refs.deparmentTree.setChecked(e.id,!1),t.cancelChildCheckedNodes(e)}))},handleCheckChange:function(e,t,n){},handleNodeExpand:function(e,t,n){},handleNodeClick:function(e,t,n){this.selectSingleNode(e,!1)},selectSingleNode:function(e,t){if(this.isDepartmentNode(e)){var n=JSON.parse(e.data);this.packageSelectResult(n),this.setMemoryCacheData(n,"department")}},packageSelectResult:function(e){e.tenantName=this.tenantInfo.tenantName,e.tenantCode=this.tenantInfo.code;var t={id:e.id,name:e.showName,code:e.code,containBranch:this.containBranch,zhName:e.name,enName:e.enName,department:e};this.selectNodeInfo=t},isDepartmentNode:function(e){return e.id!==this.tenantNodeId&&e.nodeType&&"DEPARTMENT"===e.nodeType&&!e.branch},selectDepartment:function(){var e=!1;this.selectNodeInfo?this.$emit("result",this.selectNodeInfo):e=!0,e&&this.$alert(this.$t("imatrixUIMessage.pleaseSelectDepartment"),this.$t("imatrixUIMessage.tips"),{confirmButtonText:this.$t("imatrixUIPublicModel.sure")})},isSelectTenantNode:function(e){return e===this.tenantNodeId&&(!this.departmentInfo||0===this.departmentInfo.length)},renderContent:function(e,t){var n,r=t.node,i=t.data;t.store;return n=-1===r.data.id||r.data.branch?"el-icon-menu":-2===r.data.id||-3===r.data.id?"el-icon-tickets":"el-icon-date",i.nodeType&&"DEPARTMENT"===i.nodeType&&this.searchValue&&i.name.indexOf(this.searchValue)>-1?e("span",[e("i",{class:n}),e("span",{class:"searchResult",attrs:{title:r.label}},[r.label])]):e("span",[e("i",{class:n}),e("span",{attrs:{title:r.label}},[r.label])])},getSelectUser:function(e){this.packageSelectResult(e),this.setMemoryCacheData(e,"department")},resultRowDblclick:function(e){this.packageSelectResult(e),this.$emit("result",this.selectNodeInfo)}})},K=Y,X=(n("d316"),f(K,U,W,!1,null,null,null)),J=X.exports,Z={name:"InlineDepartmentTree",components:{InlineDepartmentMultiTree:H,InlineDepartmentSingleTree:J},props:{multiple:{type:Boolean,default:!0},checkStrictly:{type:Boolean,default:!1},departmentInfo:{type:Array,default:null},height:{type:String,default:"300px"},selectDepartmentInfo:{type:[String,Number],default:null},searchField:{type:String,default:"id"},separator:{type:String,default:","}},data:function(){return{selectNodeInfo:null}},mounted:function(){},methods:{result:function(e){this.selectNodeInfo=e,this.$emit("result",e)},selectDepartment:function(){this.$refs.inlineDeparmentTree.selectDepartment()}}},Q=Z,ee=f(Q,v,b,!1,null,null,null),te=ee.exports,ne={name:"DepartmentTree",components:{InlineDepartmentTree:te},props:{multiple:{type:Boolean,default:!0},checkStrictly:{type:Boolean,default:!1},departmentInfo:{type:Array,default:null},title:{type:String,default:null},width:{type:String,default:"30%"},height:{type:String,default:"300px"},selectDepartmentInfo:{type:[String,Number],default:null},searchField:{type:String,default:"id"},separator:{type:String,default:","}},data:function(){var e=this.$t("imatrixUIMessage.pleaseSelectDepartment");return this.title&&(e=this.title),{myTitle:e}},methods:{result:function(e){this.$emit("close",e)},selectDepartment:function(){this.$refs.inlineDeparmentTree.selectDepartment()}}},re=ne,ie=f(re,m,g,!1,null,null,null),oe=ie.exports;oe.install=function(e){e.component(oe.name,oe)};var ae=oe,se=function(){var e=this,t=e._self._c;return t("div",{staticClass:"00-Color/9-gray"},[e.isActive?t("i",{staticClass:"el-icon-s-fold",on:{click:e.toggleClick}}):t("i",{staticClass:"el-icon-s-unfold",on:{click:e.toggleClick}})])},le=[],ue={name:"Hamburger",props:{isActive:{type:Boolean,default:!1}},methods:{toggleClick:function(){this.$emit("toggleClick")}}},ce=ue,fe=(n("323d"),f(ce,se,le,!1,null,"79c757aa",null)),de=fe.exports;de.install=function(e){e.component(de.name,de)};var he=de,pe=function(){var e=this,t=e._self._c;return t("svg",{class:e.svgClass,attrs:{"aria-hidden":"true"}},[t("use",{attrs:{"xlink:href":e.iconName}})])},me=[],ge={name:"SvgIcon",props:{iconClass:{type:String,required:!0},className:{type:String,default:""}},computed:{iconName:function(){return"#icon-".concat(this.iconClass)},svgClass:function(){return this.className?"svg-icon "+this.className:"svg-icon"}}},ve=ge,be=(n("fb3f"),f(ve,pe,me,!1,null,"de244482",null)),ye=be.exports;ye.install=function(e){e.component(ye.name,ye)};var we=ye,_e=(n("0d6d"),function(){var e=this,t=e._self._c;return t("div",[!e.isFormSubTable&&e.hasLoadedColumns&&e.query&&"embedded"===e.query.showType?t("search-form",{ref:"sf",attrs:{columns:e.columns,code:e.code,url:e.url,pagination:e.pagination,query:e.query,"search-form-info":e.searchFormInfo,"search-param":e.searchFormContent,"init-search-props":e.initSearchProps,"load-complete-query":e.loadCompleteQuery},on:{search:e.doSearch,reset:e.resetSearch,"open-fold":e.openFold}}):e._e(),e.hasLoadedColumns&&e.query&&"popup"===e.query.showType?t("search-form-dialog",{ref:"sfDialog",attrs:{columns:e.columns,code:e.code,url:e.url,pagination:e.pagination,query:e.query,"search-param":e.searchFormContent,"init-search-props":e.initSearchProps},on:{search:e.doSearchDialog,reset:e.resetSearch,close:e.closeSearchFormDialog}}):e._e(),t("div",{class:"grid-area "+e.code},[e.refreshGrid&&e.hasLoadedColumns?t("el-table",{ref:"superGrid",staticClass:"elTable",staticStyle:{width:"100%"},attrs:{data:e.gridData,"row-key":e.getRowKeyProp,"show-summary":e.showSummary,"summary-method":e.getSummaries,stripe:e.stripe,border:!0,"default-expand-all":e.defaultExpandAll,lazy:e.isLazy,load:e.loadChildren,"row-style":e.changeRowStyle,"cell-style":e.changeCellStyle,"header-cell-style":e.changeHeaderStyle,"highlight-current-row":!0,"span-method":e.rowSpan,"max-height":e.maxHeight,height:e.height,"tree-props":e.treeProps},on:{"sort-change":e.handleSortChange,select:e.select,"select-all":e.selectAll,"row-click":e.rowClickEvent,"row-dblclick":e.rowDblclickEvent,"expand-change":e.expandChange,"header-click":e.headerClick,"header-dragend":e.changeHederWidth,"header-contextmenu":e.headerContextmenu,"cell-click":e.selectCell}},[e.myCustomFormatter?e._l(e.visibleColumns,(function(n,r){return t(n._defaultComponentType,{key:n.label+r,ref:n.prop,refInFor:!0,tag:"component",attrs:{column:n,"is-sql":e.isSql,"list-code":e.code,"custom-format":"GroupColumn"===n._defaultComponentType?e.myCustomFormatter:e.myCustomFormatter[n.prop],"new-width":e.newWidth,"drag-column-prop":e.dragColumnProp,"right-click-menu-arr":e.options.rightClickMenuArr,"table-name":e.tableName,"page-code":e.pageCode,"list-name":e.listName,"current-page":e.currentPage,"grid-data":e.isSubTableShowPage?e.subTableData:e.gridData,"page-grid-data":e.isSubTableShowPage?e.pageGridData:e.gridData},on:{"open-page":e.openPageDialog,refresPortData:e.refresPortData,refresPortsData:e.refresPortsData,refresMainTableFields:e.refresMainTableFields,prohibitToEdit:e.prohibitToEdit}})})):e._l(e.visibleColumns,(function(n,r){return t(n._defaultComponentType,{key:n.label+r,ref:n.prop,refInFor:!0,tag:"component",attrs:{"is-sql":e.isSql,column:n,"list-code":e.code,"is-line-edit":null!==e.lineEdit&&e.lineEdit.editable,"new-width":e.newWidth,"drag-column-prop":e.dragColumnProp,"right-click-menu-arr":e.options.rightClickMenuArr,"table-name":e.tableName,"page-code":e.pageCode,"list-name":e.listName,"current-page":e.currentPage,"grid-data":e.isSubTableShowPage?e.subTableData:e.gridData,"page-grid-data":e.isSubTableShowPage?e.pageGridData:e.gridData},on:{"open-page":e.openPageDialog,refresData:e.refresData,refresPortData:e.refresPortData,refresPortsData:e.refresPortsData,refresMainTableFields:e.refresMainTableFields,prohibitToEdit:e.prohibitToEdit}})}))],2):e._e(),t("div",{staticStyle:{position:"relative","margin-top":"5px"}},[t("el-row",["undefined"===typeof e.options.isAdministerListView||null==e.options.isAdministerListView||!0!==e.options.isAdministerListView?t("el-col",{attrs:{span:2}},[e.basicInfo.customConfig&&!e.isFormSubTable?t("i",{staticClass:"el-icon-setting",staticStyle:{float:"left",padding:"10px 0px",color:"#777"},attrs:{title:e.$t("superGrid.columnConfig")},on:{click:e.configColumns}}):e._e(),e.isFormSubTable?e._e():t("i",{staticClass:"el-icon-refresh",staticStyle:{float:"left",padding:"10px 0px",color:"#777"},attrs:{title:e.$t("superGrid.refresh")},on:{click:e.refreshGridData}})]):e._e(),t("el-col",{attrs:{span:"undefined"===typeof e.options.isAdministerListView||null==e.options.isAdministerListView||!0!==e.options.isAdministerListView?22:24}},[e.pagination&&e.isShowPage?t("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":e.pagination.pageSizes,"page-size":e.pagination.pageSize,layout:e.pagination.layout,total:e.pagination.showTotal?e.pagination.total:1e11},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e()],1)],1)],1)],1),e.showColumnConfig?t("columns-config",{attrs:{columns:e.columns,"list-code":e.code,"is-sql":e.isSql},on:{close:function(t){return e.closeCustomConfig(t)},reset:function(t){return e.resetCustomConfig(t)}}}):e._e(),e.showHeaderContextmenu?t("header-context-menu",{ref:"headerMenu",attrs:{"buttom-arr":e.options.rightClickMenuArr,column:e.rightClickColumn},on:{clearHeaderContextmenu:e.clearHeaderContextmenu}}):e._e(),e.isShowPageDialog?t("super-page-dialog",{attrs:{"dev-mode":e.pageDevMode,"jump-page-setting":Object.freeze(e.jumpPageSetting),"source-page-code":e.pageCode},on:{close:e.closePageDialog,"update-value":e.updateValues}}):e._e()],1)}),Ce=[];n("ac4d"),n("8a81"),n("5df3"),n("1c4c"),n("6b54");function xe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Se(e){if(Array.isArray(e))return xe(e)}function ke(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function De(e,t){if(e){if("string"===typeof e)return xe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xe(e,t):void 0}}function Oe(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Te(e){return Se(e)||ke(e)||De(e)||Oe()}n("f751"),n("d263");var Ee=function(){var e=this,t=e._self._c;return t("el-table-column",{attrs:{align:"center",fixed:e.fixed,width:e.column.width?e.column.width:"80"},scopedSlots:e._u([{key:"header",fn:function(){return[t("span",{staticClass:"cell--span"},[e._v(e._s(e.$t("superGrid.index")))])]},proxy:!0},{key:"default",fn:function(n){return[t("span",{staticClass:"cell--span"},[e._v("\n "+e._s(n.$index+1)+"\n ")])]}}])})},Ie=[],Ne={name:"IndexColumn",components:{},props:{column:{type:Object,default:null},isLineEdit:{type:Boolean,default:!1}},computed:{fixed:function(){return(!this.column.fixed||"false"!==this.column.fixed&&""!==this.column.fixed)&&(this.column.fixed&&"right"===this.column.fixed?"left":this.column.fixed)}}},Ae=Ne,Pe=f(Ae,Ee,Ie,!1,null,null,null),Me=Pe.exports,Re=function(){var e=this,t=e._self._c;return t("el-table-column",{attrs:{align:"center",type:"selection",label:e.column.label,fixed:e.fixed,width:e.column.width?e.column.width:"50"}})},Fe=[],Be={name:"SelectionColumn",components:{},props:{column:{type:Object,default:null},isLineEdit:{type:Boolean,default:!1}},computed:{fixed:function(){return void 0!==this.column.fixed&&null!==this.column.fixed&&""!==this.column.fixed&&"false"!==this.column.fixed&&(this.column.fixed&&"right"===this.column.fixed?"left":this.column.fixed)}}},Le=Be,$e=f(Le,Re,Fe,!1,null,null,null),Ve=$e.exports,je=function(){var e=this,t=e._self._c;return t("el-table-column",{attrs:{fixed:e.fixed,sortable:e.sortable,filters:e.filters,"filter-method":e.filterMethod,prop:e.column.prop,width:e.getColumnWidth(),align:e.align,"header-align":e.headerAlign,"class-name":e.column.prop},scopedSlots:e._u([{key:"header",fn:function(){return[t("span",{class:{is_req:e.isFieldRequired()}},[t("span",{staticClass:"cell--span required__label",attrs:{title:e.$escapeHtml(e.label)},domProps:{innerHTML:e._s(e.$escapeHtml(e.label))}})]),e.isShowAdd?t("i",{staticClass:"el-icon-circle-plus-outline",staticStyle:{"font-size":"20px",color:"#409EFF"},on:{click:e.createFormSubTableRow}}):e._e()]},proxy:!0},{key:"default",fn:function(n){return[e.lineEdit.editable&&e.isEditable&&n.row.$editing?t("dynamic-input",{key:e.column.prop+"_"+n.$index,attrs:{type:e.column.componentType,position:{row:n.$index,prop:e.column.prop},"line-edit":e.lineEdit,options:e.column.valueSet,row:n.row,column:e.column,"list-code":e.listCode,"is-sql":e.isSql},on:{findIndex:function(t){return e.findIndex(n.$index)},focus:function(t){return e.onFocus(n.$index)},refresData:e.refresData,refresPortData:e.refresPortData,refresPortsData:e.refresPortsData,refresMainTableFields:e.refresMainTableFields,prohibitToEdit:e.prohibitToEdit},model:{value:n.row[e.column.prop],callback:function(t){e.$set(n.row,e.column.prop,t)},expression:"scope.row[column.prop]"}}):t("span",[e.column.operations?t("span",e._l(e.column.operations,(function(r,i){return t("span",{key:i,staticClass:"cell--span"},[r.isGroup?t("el-dropdown",{key:i,staticStyle:{"padding-left":"10px"},attrs:{"split-button":"",size:r.buttons&&r.buttons.length>0?r.buttons[0].props.size:"small"},on:{command:e.handleCommand},scopedSlots:e._u([{key:"dropdown",fn:function(){return[t("el-dropdown-menu",e._l(r.buttons,(function(r,i){return t("span",{key:r.props.code+i},[t("el-dropdown-item",{directives:[{name:"permission",rawName:"v-permission",value:r.props.permission,expression:"buttonChild.props.permission"}],attrs:{command:e.beforeHandleCommand(r.props.code,n.row,n.$index),disabled:e.preventReclick}},[e._v("\n "+e._s(e.$escapeHtml(r.props.label?r.props.label:"search"===r.props.code?e.$t("superPageMessage.searchButtonLabel"):""))+"\n ")])],1)})),0)]},proxy:!0}],null,!0)},[e._v("\n "+e._s(e.$escapeHtml(r.label))+"\n ")]):t("row-operation",{attrs:{"operation-setting":r.props,label:r.props.label?r.props.label:n.row[e.column.prop],"operation-index":i,entity:n.row,editing:n.row.$editing,column:e.column,"row-index":n.$index,"is-show":r.isShow,"on-click":r.onClick}})],1)})),0):e.customFormatValue(n.row,e.column.prop,e.customFormat,n.$index)?t("span",{staticClass:"cell--span"},[t(e.column.prop+n.$index,{tag:"component",attrs:{row:n.row,entity:n.row,prop:e.column.prop,parent:e.parentFormData,"row-index":n.$index,"show-value":e.$escapeHtml(e.getLabel(n.row,n.$index)),value:e.getCellValue(n.row),"select-options":e.column.valueSet}})],1):void 0!==e.columnFormatter&&void 0!==e.columnFormatter.type&&"customControl"===e.columnFormatter.type&&e.columnFormatter.options&&e.columnFormatter.options.format&&""!==e.columnFormatter.options.format?t("span",{staticClass:"cell--span"},[t(e.columnFormatter.options.format,{key:e.column.prop+"_"+n.$index+"_"+e.currentPage,tag:"component",attrs:{disabled:!0,row:e.pageGridData[n.$index],entity:e.pageGridData[n.$index],prop:e.column.prop,parent:e.parentFormData,"row-index":n.$index,"get-form-data":e.getFormData,"get-grid-data":e.getTableGridData,"show-value":e.$escapeHtml(e.getLabel(e.pageGridData[n.$index],n.$index)),value:e.getCellValue(e.pageGridData[n.$index]),"select-options":e.column.valueSet,"grid-data":e.gridData,"page-grid-data":e.pageGridData,"current-page":e.currentPage},on:{prohibitToEdit:e.prohibitToEdit}})],1):void 0!==e.columnFormatter&&void 0!==e.columnFormatter.type&&"secretInfo"===e.columnFormatter.type?t("span",{staticClass:"cell--span",attrs:{id:e.column.prop+"DomData"+n.$index}},[t("secret-info",{attrs:{entity:n.row,prop:e.column.prop,value:e.getCellValue(n.row),"table-name":e.tableName,"list-code":e.listCode,"page-code":e.pageCode,"list-name":e.listName,"field-label":e.$escapeHtml(e.label)}})],1):e.isObjectProp(e.column.prop)?t("span",["annex"===e.column.componentType?t("span",{attrs:{type:"primary"}},[e.isShowOverflowTooltip?t("span",{staticClass:"ellipsis cell--span",style:{width:e.cellWidth+"px"},attrs:{id:e.column.prop+"DomData"+n.$index,title:e.$escapeHtml(e.getLabel(n.row))}},[e.$escapeHtml(e.getLabel(n.row,n.$index))?t("span",[t("i",{staticClass:"el-icon-zoom-in annex-cell",on:{click:function(t){return e.previewImg(n.row)}}})]):e._e(),e._v("\n "+e._s(e.$escapeHtml(e.getLabel(n.row,n.$index)))+"\n ")]):t("span",{staticClass:"cell--span",attrs:{id:e.column.prop+"DomData"+n.$index}},[e.$escapeHtml(e.getLabel(n.row,n.$index))?t("span",[t("i",{staticClass:"el-icon-zoom-in annex-cell",on:{click:function(t){return e.previewImg(n.row)}}})]):e._e(),e._v("\n "+e._s(e.$escapeHtml(e.getLabel(n.row,n.$index)))+"\n ")])]):e.column.formatter&&"files"===e.column.formatter.type?t("span",{attrs:{type:"primary"}},[e.isShowOverflowTooltip?t("span",{staticClass:"ellipsis cell--span",style:{width:e.cellWidth+"px"},attrs:{id:e.column.prop+"DomData"+n.$index,title:e.$escapeHtml(e.getLabel(n.row))}},[e.$escapeHtml(e.getLabel(n.row,n.$index))?t("span",[t("i",{staticClass:"el-icon-zoom-in annex-cell",on:{click:function(t){return e.previewImg(n.row)}}})]):e._e(),e._v("\n "+e._s(e.$escapeHtml(e.getLabel(n.row,n.$index)))+"\n\n ")]):t("span",{staticClass:"cell--span",attrs:{id:e.column.prop+"DomData"+n.$index}},[e.$escapeHtml(e.getLabel(n.row,n.$index))?t("span",[t("i",{staticClass:"el-icon-zoom-in annex-cell",on:{click:function(t){return e.previewImg(n.row)}}})]):e._e(),e._v("\n "+e._s(e.$escapeHtml(e.getLabel(n.row,n.$index)))+"\n ")])]):void 0!==e.columnFormatter&&void 0!==e.columnFormatter.type&&"hyperlinks"===e.columnFormatter.type&&!0===e.getMyHyperLinkSetting(n.row).visible?t("el-link",{attrs:{type:"primary"},on:{click:function(t){return e.clickHyperLink(e.column,n.row,e.listCode,n.$index)}}},[e.isShowOverflowTooltip?t("span",{staticClass:"ellipsis cell--span",style:{width:e.cellWidth+"px"},attrs:{id:e.column.prop+"DomData"+n.$index,title:e.getMyHyperLinkSetting(n.row).title}},[e._v(e._s(e.getMyHyperLinkSetting(n.row).label)),e.getMyHyperLinkSetting(n.row).icon?t("i",{class:e.getMyHyperLinkSetting(n.row).icon}):e._e()]):t("span",{staticClass:"cell--span",attrs:{id:e.column.prop+"DomData"+n.$index}},[e._v(e._s(e.getMyHyperLinkSetting(n.row).label)),e.getMyHyperLinkSetting(n.row).icon?t("i",{class:e.getMyHyperLinkSetting(n.row).icon}):e._e()])]):e.isShowOverflowTooltip?t("span",{staticClass:"ellipsis cell--span",style:{width:e.cellWidth+"px"},attrs:{id:e.column.prop+"DomData"+n.$index,title:e.$escapeHtml(e.getLabel(n.row))}},[e._v(e._s(e.$escapeHtml(e.getLabel(n.row,n.$index))))]):t("span",{staticClass:"cell--span",attrs:{id:e.column.prop+"DomData"+n.$index}},[e._v(e._s(e.$escapeHtml(e.getLabel(n.row,n.$index))))])],1):t("span",["annex"===e.column.componentType||"multipartUpload"===e.column.componentType?t("span",{attrs:{type:"primary"}},[e.isShowOverflowTooltip?t("span",{staticClass:"ellipsis cell--span",style:{width:e.cellWidth+"px"},attrs:{id:e.column.prop+"DomData"+n.$index,title:e.$escapeHtml(e.getLabel(n.row))}},[t("FsPreview",{attrs:{label:e.$escapeHtml(e.getLabel(n.row,n.$index)),entity:n.row,"file-set-obj":JSON.parse(e.column.fileSet),"is-sql":e.isSql}})],1):t("span",{staticClass:"cell--span",attrs:{id:e.column.prop+"DomData"+n.$index}},[t("FsPreview",{attrs:{label:e.$escapeHtml(e.getLabel(n.row,n.$index)),entity:n.row,"file-set-obj":JSON.parse(e.column.fileSet),"is-sql":e.isSql}})],1)]):e.column.formatter&&"files"===e.column.formatter.type?t("span",[e.isShowOverflowTooltip?t("span",{staticClass:"ellipsis cell--span",style:{width:e.cellWidth+"px"},attrs:{id:e.column.prop+"DomData"+n.$index,title:e.$escapeHtml(e.getLabel(n.row))}},[e.$escapeHtml(e.getLabel(n.row,n.$index))?t("span",[t("i",{staticClass:"el-icon-zoom-in annex-cell",on:{click:function(t){return e.previewImg(n.row)}}})]):e._e(),e._v("\n "+e._s(e.$escapeHtml(e.getLabel(n.row,n.$index)))+"\n ")]):t("span",{staticClass:"cell--span",attrs:{id:e.column.prop+"DomData"+n.$index}},[e.$escapeHtml(e.getLabel(n.row,n.$index))?t("span",[t("i",{staticClass:"el-icon-zoom-in annex-cell",on:{click:function(t){return e.previewImg(n.row)}}})]):e._e(),e._v("\n "+e._s(e.$escapeHtml(e.getLabel(n.row,n.$index)))+"\n ")])]):void 0!==e.columnFormatter&&void 0!==e.columnFormatter.type&&"hyperlinks"===e.columnFormatter.type&&!0===e.getMyHyperLinkSetting(n.row).visible?t("el-link",{attrs:{type:"primary"},on:{click:function(t){return e.clickHyperLink(e.column,n.row,e.listCode,n.$index)}}},[e.isShowOverflowTooltip?t("span",{staticClass:"ellipsis cell--span",style:{width:e.cellWidth+"px"},attrs:{id:e.column.prop+"DomData"+n.$index,title:e.$escapeHtml(e.getMyHyperLinkSetting(n.row).title)}},[e._v(e._s(e.$escapeHtml(e.getMyHyperLinkSetting(n.row).label))),e.getMyHyperLinkSetting(n.row).icon?t("i",{class:e.getMyHyperLinkSetting(n.row).icon}):e._e()]):t("span",{staticClass:"cell--span",attrs:{id:e.column.prop+"DomData"+n.$index}},[e._v(e._s(e.$escapeHtml(e.getMyHyperLinkSetting(n.row).label))),e.getMyHyperLinkSetting(n.row).icon?t("i",{class:e.getMyHyperLinkSetting(n.row).icon}):e._e()])]):e.column.formatter&&"richEditor"===e.column.formatter.type?t("span",[t("el-tooltip",{staticClass:"item",attrs:{content:e.$t("superGrid.show"),effect:"dark",placement:"top"}},[t("em",{staticClass:"fa fa-info-circle annex-cell",on:{click:function(t){e.showRichEditorContent(n.row,e.column,e.getHeader())}}})])],1):e.isShowOverflowTooltip?t("span",{staticClass:"ellipsis cell--span",staticStyle:{"white-space":"pre"},style:{width:e.cellWidth+"px"},attrs:{id:e.column.prop+"DomData"+n.$index,title:e.getLabel(n.row)},domProps:{innerHTML:e._s(e.$escapeHtml(e.getLabel(n.row,n.$index)))}}):t("span",{staticClass:"cell--span",attrs:{id:e.column.prop+"DomData"+n.$index}},[e._v(e._s(e.$escapeHtml(e.getLabel(n.row,n.$index))))])],1)])]}}])},[e.showSingleImgFlag?t("view-image-dialog",{attrs:{"file-list":e.fileList},on:{close:function(t){e.showSingleImgFlag=!1}}}):e._e(),e.showRichEditorViewer?t("rich-editor-viewer",{ref:"richEditorViewerRef",on:{closeRichEditorContent:e.closeRichEditorContent}}):e._e()],1)},ze=[],He=n("5f87"),Ue=n("c559"),We=(n("f400"),new Map),qe=We;function Ge(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Ye(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Ye(e,t){if(e){if("string"===typeof e)return Ke(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ke(e,t):void 0}}function Ke(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Xe(e,t){var n,r=[],i=Ge(e);try{for(i.s();!(n=i.n()).done;){var o=n.value;r.push(o[t])}}catch(a){i.e(a)}finally{i.f()}return r}function Je(e,t,n){for(var r=[],i=0,o=0;o<e.length;o++)if(0===o)r.push(1),i=0;else if(n&&""!==n){for(var a="",s="",l=n.split(","),u=0;u<l.length;u++)a+=e[o][l[u]],s+=e[o-1][l[u]];a===s?(r[i]+=1,r.push(0)):(r.push(1),i=o)}else e[o][t]===e[o-1][t]?(r[i]+=1,r.push(0)):(r.push(1),i=o);return r}function Ze(e){e||(e=qe.get("_list_code"));var t,n=Ge(qe.get(e).columns);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.editable)return r.prop}}catch(i){n.e(i)}finally{n.f()}return null}var Qe={getIndex:function(e){var t,n=0,r=Ge(qe.columns);try{for(r.s();!(t=r.n()).done;){var i=t.value;if(i.prop===e)return n;n++}}catch(o){r.e(o)}finally{r.f()}},getLeftColumn:function(e){var t=Qe.getIndex(e),n=0;for(n=t-1;n>=0;n--)return qe.columns[n].editable?qe.columns[n].prop:null}};function et(e,t){t||(t=qe.get("_list_code"));var n=qe.get(t);e<n.gridData.length&&(n.isMulitiSelect?(n.superGrid.clearSelection(),n.superGrid.toggleRowSelection(n.gridData[e],!0)):n.superGrid.setCurrentRow(n.gridData[e]))}function tt(e,t){if(!e&&!t)return!0;if(e&&t){var n=nt(e),r=nt(t),i=n;i=n.length>r.length?n:r;for(var o=0;o<i.length;o++){var a=i[o];if("$editing"!==a){var s=e[a],l=t[a];if(s!==l)return!1}}return!0}return!1}function nt(e){var t=[];for(var n in e)t.push(n);return t}function rt(e){e||(e=qe.get("_list_code"));var t=qe.get(e);return(void 0===t.isEditRow||!0!==t.isEditRow)&&("undefined"===typeof t.$rowIndex||null===t.$rowIndex||("undefined"===typeof t.$lastSaveRowIndex||null===t.$lastSaveRowIndex||t.$rowIndex===t.$lastSaveRowIndex))}function it(e){e||(e=qe.get("_list_code"));var t=qe.get(e);if(void 0!==t.isEditRow&&!0===t.isEditRow)return!1;var n=rt();return!!n&&("undefined"===typeof t.isCreateRow||!0!==t.isCreateRow)}function ot(e){return e&&e.id?e.id:e&&e.ID?e.ID:void 0}function at(e,t,n){t||(t=qe.get("_list_code"));var r=!1,i=qe.get(t),o=ut("disableEditProps",t)?i.options.lineEditOptions.disableEditProps:null;if(o){var a=o.split(",");a&&a.indexOf(e)>=0&&(r=!0)}var s=ot(n);if(!1===r&&i.options){var l=i.options.validateRules;if(l){var u=l.filter((function(t){return t.name&&(t.name===e||"all_fields"===t.name)})),c=!0;if(u&&u.length>0){for(var f=0;f<u.length;f++)c=void 0===u[f].rowIndexes||null===u[f].rowIndexes?u[f].canEdit:!(u[f].rowIndexes.indexOf(s)>=0)||u[f].canEdit;!1===c&&(r=!0)}}if(!1===r){var d=i.options.actionPermission,h=lt(d,s);!1===h&&(r=!0)}}return r}function st(e,t){t||(t=qe.get("_list_code"));var n=!1,r=qe.get(t);if(r&&r.options){var i=r.options.validateRules;if(i){var o=i.filter((function(t){return t.name&&(t.name===e||"all_fields"===t.name)&&void 0!==t.canEdit&&!0===t.canEdit}));o&&o.length>0&&(n=!0)}}return n}function lt(e,t){var n=!0,r=e;return r&&void 0!==r.canUpdate&&!1===r.canUpdate&&void 0!==t&&r.updateRowIndexes&&r.updateRowIndexes.indexOf(t)>=0&&(n=!1),n}function ut(e,t){t||(t=qe.get("_list_code"));var n=qe.get(t);return!(!n.options.lineEditOptions||!n.options.lineEditOptions[e])}function ct(e,t){t||(t=qe.get("_list_code"));var n=qe.get(t);return!(!n.options.lineEditOptions||"function"!==typeof n.options.lineEditOptions[e])}function ft(e,t){t||(t=qe.get("_list_code"));var n=qe.get(t);return!(!n.options||"function"!==typeof n.options[e])}function dt(){var e={columns:[],gridData:[],orgGridData:[],canSaveRow:!0,showValidateError:!0,defaultLineEditOptions:{aftersaveIsCreateRow:!0,autoSave:!0,isSaveByEnter:!0,isRestoreByEsc:!0,aftersaveIsCancelEditState:!0,afterRestoreIsCancelEditState:!0,input:function(){}},options:{lineEditOptions:{}}};return k.a.observable(e)}function ht(e,t,n){var r=t.split(".");if(1!==r.length){for(var i=e,o=0;o<r.length-1;o++)void 0===i[r[o]]&&(i[r[o]]={}),i=i[r[o]];i[r[r.length-1]]=void 0!==n?n:null}else e[t]=void 0!==n?n:null}function pt(e,t,n){var r=t.split(".");if(1!==r.length){for(var i=e,o=0;o<r.length-1;o++)void 0===i[r[o]]&&(i[r[o]]={}),i=i[r[o]];i[r[r.length-1]]=void 0!==n?n:[new Date,new Date]}else e[t]=void 0!==n?n:[new Date,new Date]}function mt(e,t,n){var r=120,i=document.querySelector(".box-card");i&&null!==i&&(r=91),!0===Object(Ue["e"])()&&(r+=50);var o=document.querySelector(".el-tabs__content ."+t);o&&(r+=80),void 0===n||null===n||""===n?n=window.innerHeight:r=0;var a=n-e.$el.offsetTop-r;return a}function gt(e,t){var n={searchParam:e};if(n.withDataPermission=t.options.isWithDataPermission,n.isWorkflowEntity=t.options.isWorkflowEntity,t.options.extraParam)for(var r in t.options.extraParam)n[r]=t.options.extraParam[r];return n}function vt(e,t){var n="",r="";return e&&(e.showNameData&&(t?e.showNameData.dbName&&(n=e.showNameData.dbName):e.showNameData.name&&(n=e.showNameData.name)),e.serverNameData&&(t?e.serverNameData.dbName&&(r=e.serverNameData.dbName):e.serverNameData.name&&(r=e.serverNameData.name))),{showName:n,serverPath:r}}function bt(e,t,n,r){var i=[];if(n){if(n&&n.length>0)for(var o=0;o<n.length;o++){var a=n[o],s=yt(a[t.showName],a[t.serverPath]);i.push(s)}}else if(r){var l=r.showName,u=r.serverPath;if(l&&u)for(var c=l.split(","),f=u.split(","),d=0;d<c.length;d++){var h=yt(c[d],f[d]);i.push(h)}}return i}function yt(e,t){e&&(e=e.replace("#","~~").replace("?","~$").replace("&","$"));var n={};n.showName=e,n.serverPath=t,n.showName&&/\.(jpg|JPG|jpeg|JPEG|png|PNG|gif|GIF|bmp|BMP|psd|PSD|tif|TIF)$/.test(e)&&(n.isImg=!0);var r=Object(He["c"])(),i=k.a.prototype.baseURL+"/common/super-form/downloads?jwt="+r;Object(Ue["c"])(k.a.prototype.systemCode)&&(i=k.a.prototype.baseAPI+"/component/super-form/downloads?jwt="+r);var o=i+"&showName="+encodeURI(n.showName)+"&serverPath="+n.serverPath;return n.src=o,n}function wt(e,t,n){var r=[];if(t.fileSet&&""!==t.fileSet&&("annex"===t.componentType||"multipartUpload"===t.componentType)){var i=JSON.parse(t.fileSet),o=vt(i,n);if(i&&i.multiple)if(i.childAnnexDataTableCode){var a=e[t.prop];r=bt(i,o,a,null)}else{var s={showName:Object(x["c"])(e,o.showName),serverPath:Object(x["c"])(e,o.serverPath)};r=bt(i,o,null,s)}else{var l=Object(x["c"])(e,o.showName),u=Object(x["c"])(e,o.serverPath);r.push(yt(l,u))}}return r}function _t(e,t,n){var r;n&&(n&&"object"===Object(C["a"])(n)?r=JSON.stringify(n):n&&""!==n&&(r=n));var i={isSql:t,additionalParameter:r};if(e.valueSetOptions){var o=JSON.parse(e.valueSetOptions);o&&o.valueSetOptions&&(i.valueSetOptions=o.valueSetOptions),o.dynamicDataSourceCode&&""!==o.dynamicDataSourceCode&&(i.dynamicDataSourceCode=o.dynamicDataSourceCode)}return i}function Ct(e){return!!(e.valueSet&&e.valueSet.length>0&&"dynamicDataSource"===e.valueSet[0].value)}function xt(e,t){return void 0===e||null===e||0===e||void 0===t||null===t||0===t?1:Math.ceil(e/t)}function St(e){var t=document.querySelector("."+e+" .el-table--scrollable-y .el-table__body-wrapper");t&&null!==t&&(t.scrollTop=t.scrollHeight)}function kt(e){var t=null;return e.additionalParamMap&&"object"===Object(C["a"])(e.additionalParamMap)?t=e.additionalParamMap:e.additionalParamMap&&""!==e.additionalParamMap&&(t=JSON.parse(e.additionalParamMap)),t}var Dt=function(){var e=this,t=e._self._c;return e.type&&e.type.indexOf("custom:")>=0&&""!=e.componentName?t("div",{style:e.row.validateErrorField&&e.row.validateErrorField===e.column.prop?"border:1px solid red":""},[t(e.componentName,{ref:"customItem",tag:"component",attrs:{value:e.innerValue,row:e.row,entity:e.row,disabled:e.disabled,prop:e.column.prop,parent:e.parentFormData,"row-index":e.position?e.position.row:null,"select-options":e.options,"grid-data":e.gridData,"page-grid-data":e.pageGridData},on:{input:function(t){return e.cellEvent("input",t)}}})],1):t("div",{style:e.row.validateErrorField&&e.row.validateErrorField===e.column.prop?"border:1px solid red":""},["year"===e.type||"month"===e.type?t("el-date-picker",{ref:"item",staticStyle:{width:"100%"},attrs:{disabled:e.disabled,type:e.type,editable:!1,"value-format":e.isValueFormat(),format:e.isFormat(),placeholder:e.$t("imatrixUIMessage.selectTime")},on:{input:function(t){return e.cellEvent("input",t)},focus:function(t){return e.cellEvent("focus",t)},blur:function(t){return e.cellEvent("blur",t)},change:function(t){return e.cellEvent("change",t)}},model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}}):e._e(),"yearRange"===e.type?t("el-date-picker",{ref:"item",staticStyle:{width:"100%"},attrs:{disabled:e.disabled,editable:!1,placeholder:e.$t("imatrixUIMessage.selectYear"),type:"year","value-format":"yyyy"},on:{input:function(t){return e.cellEvent("input",t)},focus:function(t){return e.cellEvent("focus",t)},blur:function(t){return e.cellEvent("blur",t)},change:function(t){return e.cellEvent("change",t)}},model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}}):"dateTimePicker"===e.type?t("el-date-picker",{ref:"item",staticStyle:{width:"100%"},attrs:{value:e.innerValue,disabled:e.disabled,editable:!1,placeholder:e.$t("imatrixUIMessage.selectTime"),type:"datetime","value-format":e.isValueFormat(),format:e.isFormat()},on:{input:function(t){return e.cellEvent("input",t)},focus:function(t){return e.cellEvent("focus",t)},blur:function(t){return e.cellEvent("blur",t)},change:function(t){return e.cellEvent("change",t)}}}):"date"===e.type||"DATE"===e.column.dataType?t("el-date-picker",{ref:"item",staticStyle:{width:"100%"},attrs:{value:e.innerValue,type:"date",disabled:e.disabled,editable:!1,placeholder:e.$t("imatrixUIMessage.selectionDate"),"value-format":e.isValueFormat(),format:e.isFormat()},on:{input:function(t){return e.cellEvent("input",t)},focus:function(t){return e.cellEvent("focus",t)},blur:function(t){return e.cellEvent("blur",t)},change:function(t){return e.cellEvent("change",t)}}}):"time"===e.type||"TIME"===e.column.dataType?t("el-date-picker",{ref:"item",staticStyle:{width:"100%"},attrs:{value:e.innerValue,disabled:e.disabled,type:"datetime",editable:!1,placeholder:e.$t("imatrixUIMessage.selectTime"),"value-format":e.isValueFormat(),format:e.isFormat()},on:{input:function(t){return e.cellEvent("input",t)},focus:function(t){return e.cellEvent("focus",t)},blur:function(t){return e.cellEvent("blur",t)},change:function(t){return e.cellEvent("change",t)}}}):"timePicker"===e.type?t("el-time-picker",{ref:"item",staticStyle:{width:"100%"},attrs:{disabled:e.disabled,"value-format":e.isValueFormat(),format:e.isFormat(),placeholder:e.$t("imatrixUIMessage.pleaseEnterATimePoint")},on:{input:function(t){return e.cellEvent("input",t)},focus:function(t){return e.cellEvent("focus",t)},blur:function(t){return e.cellEvent("blur",t)},change:function(t){return e.cellEvent("change",t)}},model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}}):"input"!==e.type||"INTEGER"!==e.column.dataType&&"LONG"!==e.column.dataType?"input"===e.type?t("el-input",{ref:"item",attrs:{disabled:e.disabled,clearable:"",placeholder:e.$t("imatrixUIMessage.pleaseEnterContent")},on:{input:function(t){return e.cellEvent("input",t)},focus:function(t){return e.cellEvent("focus",t)},blur:function(t){return e.cellEvent("blur",t)},change:function(t){return e.cellEvent("change",t)},clear:function(t){return e.cellEvent("clear",t)}},model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}}):"textarea"===e.type?t("el-input",{ref:"item",attrs:{disabled:e.disabled,type:"textarea",rows:1,clearable:"",placeholder:e.$t("imatrixUIMessage.pleaseEnterContent")},on:{input:function(t){return e.cellEvent("input",t)},focus:function(t){return e.cellEvent("focus",t)},blur:function(t){return e.cellEvent("blur",t)},change:function(t){return e.cellEvent("change",t)},clear:function(t){return e.cellEvent("clear",t)}},model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}}):"annex"===e.type?t("fs-upload-list",{attrs:{disabled:e.disabled,"file-info":e.fileInfo,"file-list":e.fileList,"file-set-obj":e.fileSetObj,value:e.innerValue,row:e.row,"is-sql":e.isSql,"custom-view-url":!0},on:{delete:e.deleteFile,"delete-success":e.deleteSuccess,"upload-success":e.uploadOnSuccess}}):"multipartUpload"===e.type?t("multipart-upload",{attrs:{disabled:e.disabled,entity:e.row,"file-info":e.fileInfo,"file-list":e.fileList,"file-set-obj":e.fileSetObj,value:e.innerValue,type:"list"},on:{delete:e.deleteFile,"delete-success":e.deleteSuccess,"upload-success":e.uploadOnSuccess}}):"select"!==e.type||e.isDynamicDataSourceSource()?"multiselect"!==e.type||e.isDynamicDataSourceSource()?"multiselect"!==e.type&&"select"!==e.type||!e.isDynamicDataSourceSource()?"inputNumber"===e.type?t("el-input-number",{ref:"item",attrs:{disabled:e.disabled,"controls-position":e.inputNumberSet.position,max:0==e.inputNumberSet.max?0:e.inputNumberSet.max?e.inputNumberSet.max:1/0,min:0==e.inputNumberSet.min?0:e.inputNumberSet.min?e.inputNumberSet.min:-1/0,precision:e.inputNumberSet.precision,step:e.inputNumberSet.step?e.inputNumberSet.step:1},on:{input:function(t){return e.cellEvent("input",t)},change:function(t){return e.cellEvent("change",t)},focus:function(t){return e.cellEvent("focus",t)},blur:function(t){return e.cellEvent("blur",t)}},model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}}):"switch"!==e.type&&"BOOLEAN"!==e.column.dataType||"mysql"!==e.dataSourceType?"switch"===e.type||"BOOLEAN"===e.column.dataType?t("el-switch",{ref:"item",attrs:{value:e.innerValue,disabled:e.disabled,"active-value":1,"inactive-value":0,"active-color":"#13ce66","inactive-color":"#ff4949"},on:{input:function(t){return e.cellEvent("input",t,!0)},change:function(t){return e.cellEvent("change",t)}}}):"slider"===e.type?t("el-slider",{ref:"item",attrs:{value:e.innerValue,disabled:e.disabled},on:{input:function(t){return e.cellEvent("input",t,!0)},change:function(t){return e.cellEvent("change",t)}}}):"rate"===e.type?t("el-rate",{ref:"item",attrs:{value:e.innerValue,disabled:e.disabled},on:{input:function(t){return e.cellEvent("input",t,!0)},change:function(t){return e.cellEvent("change",t)}}}):e.deptManTree||e.deptTree||e.wgManTree||e.wgTree?t("organization-input",{attrs:{fields:e.fields,models:e.row,"check-strictly":e.isCheckStrictly,multiple:e.isMultiTree,"tree-type":e.deptManTree?"DeptUserTree":e.deptTree?"DeptTree":e.wgManTree?"WgUserTree":e.wgTree?"WgTree":null,disabled:e.disabled,"table-name":e.tableName,"department-info":e.departmentInfo,"is-join-table":e.isJoinTable},on:{focus:e.showOrganizationTree,setValue:e.organizationInputEvent,clear:e.clearOrganizationInputEvent,append:e.appendOrganizationInputEvent,replace:e.replaceOrganizationInputEvent},model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}}):e._e():t("el-switch",{ref:"item",attrs:{value:e.innerValue,disabled:e.disabled,"active-color":"#13ce66","inactive-color":"#ff4949"},on:{input:function(t){return e.cellEvent("input",t,!0)},change:function(t){return e.cellEvent("change",t)}}}):t("dynamic-source-select",{attrs:{"base-props":{multiple:"multiselect"===e.type,disabled:e.disabled},column:e.column,entity:e.row,options:{dynamicDataSourceCode:e.dynamicDataSourceCode,valueSetOptions:e.valueSetOptions,isSql:e.isSql,additionalParameter:e.additionalParamMap?JSON.stringify(e.additionalParamMap):null},"table-name":e.tableName,"list-code":e.listCode,"is-join-table":e.isJoinTable,parent:e.parentFormData},on:{input:function(t){return e.cellEvent("input",t)},change:e.multiselectChange,"visible-change":function(t){return e.cellEvent("visible-change",t)},focus:function(t){return e.cellEvent("focus",t)},"remove-tag":function(t){return e.cellEvent("remove-tag",t)},blur:function(t){return e.cellEvent("blur",t)},clear:function(t){return e.cellEvent("clear",t)},"set-value":e.setDynamicSourceSelectValue},model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}}):t("el-select",{ref:"item",attrs:{clearable:"",disabled:e.disabled,multiple:"","collapse-tags":"",placeholder:e.$t("imatrixUIMessage.pleaseSelect")},on:{input:function(t){return e.cellEvent("input",t)},change:e.multiselectChange,"visible-change":function(t){return e.cellEvent("visible-change",t)},focus:function(t){return e.cellEvent("focus",t)},"remove-tag":function(t){return e.cellEvent("remove-tag",t)},blur:function(t){return e.cellEvent("blur",t)},clear:function(t){return e.cellEvent("clear",t)}},model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}},[t("el-option",{attrs:{label:e.$t("superGrid.selectAll"),value:"saveAll"}}),e._l(e.options,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],2):t("el-select",{ref:"item",attrs:{clearable:"",disabled:e.disabled,placeholder:e.$t("imatrixUIMessage.pleaseSelect")},on:{input:function(t){return e.cellEvent("input",t)},change:function(t){return e.cellEvent("change",t)},focus:function(t){return e.cellEvent("focus",t)},"visible-change":function(t){return e.cellEvent("visible-change",t)},blur:function(t){return e.cellEvent("blur",t)},clear:function(t){return e.cellEvent("clear",t)}},model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}},e._l(e.options,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1):t("el-input",{ref:"item",attrs:{disabled:e.disabled,clearable:"",placeholder:e.$t("imatrixUIMessage.pleaseEnterContent")},on:{input:function(t){return e.cellEvent("input",t)},focus:function(t){return e.cellEvent("focus",t)},blur:function(t){return e.cellEvent("blur",t)},change:function(t){return e.cellEvent("change",t)},clear:function(t){return e.cellEvent("clear",t)}},model:{value:e.innerValue,callback:function(t){e.innerValue=e._n(t)},expression:"innerValue"}}),t("el-dialog",{attrs:{title:e.$t("imatrixUIMessage.tips"),visible:e.annexUploadFlag,"append-to-body":!0,"show-close":!0,width:"30%"},on:{"update:visible":function(t){e.annexUploadFlag=t}}},["annex"===e.type&&e.annexUploadFlag?t("el-upload",{attrs:{action:e.defaultAction,accept:e.fileSetObj&&e.fileSetObj.accept?e.fileSetObj.accept:null,"on-success":e.uploadOnSuccess,headers:e.headers,"before-upload":e.handleBeforeUpload,name:"file","with-credentials":!0}},[t("el-button",[e._v(e._s(e.$t("imatrixUIMessage.upload")))])],1):e._e()],1),e.showSingleImgFlag?t("view-image-dialog",{attrs:{downloadable:!e.disabled,deleteable:!e.disabled,"file-list":e.fileList},on:{close:function(t){e.showSingleImgFlag=!1},delete:e.deleteFile}}):e._e()],1)},Ot=[],Tt=function(){var e=this,t=e._self._c;return t("span",{staticClass:"select-top-span"},[e.isLoaded?t("el-select",e._b({ref:"dynamicDataSourceRef",staticStyle:{width:"100%",height:"100%"},attrs:{value:e.value,remote:e.remote,"remote-method":e.remoteMethod,"value-key":e.valueAttribute,loading:e.loading,"reserve-keyword":!0,filterable:"",clearable:""},on:{input:e.inputValue,change:e.change,"visible-change":e.visibleChange,"remove-tag":function(t){return e.removeTag(e.remote,t)},clear:e.clear,blur:function(t){return e.blurEvent(t)},focus:e.focus}},"el-select",e.myProps,!1),[void 0!==e.baseProps.multiple&&!0===e.baseProps.multiple&&e.optionItems&&e.optionItems.length>0?t("el-option",{attrs:{label:e.$t("superGrid.selectAll"),value:"saveAll"}}):e._e(),e._l(e.optionItems,(function(n){return t("el-option",{key:n.value,attrs:{label:n._label_,value:n[e.valueAttribute]}})}))],2):e._e()],1)},Et=[],It=(n("6762"),n("2fdb"),n("4f7f"),{findDynamicDataSourceByCode:function(e,t,n,r,i){var o,a,s,l,u,c,f=this;n&&(o=n.searchText,void 0!==o&&null!==o||(o=""),a=n.watchAttrValue,void 0!==a&&null!==a||(a=""),s=n.parent,l=n._listCode,u=n._formCode,c=n._tableName);var d={searchText:o,watchAttrValue:a,parent:s};return r&&""!==r&&(d.additionalParamMap=JSON.parse(r)),void 0===d.additionalParamMap&&(d.additionalParamMap={}),l&&(d.additionalParamMap._listCode=l),u&&(d.additionalParamMap._formCode=u),c&&(d.additionalParamMap._tableName=c),t&&null!==t&&(d.entity=t),i||(i=k.a.prototype.baseURL),new Promise((function(t,n){void 0!==k.a.prototype.systemCode&&"iMatrix"===k.a.prototype.systemCode?t():f.$http.post(i+"/common/dynamic-data-source/"+e,d).then((function(r){r.backendUrl?f.$http.post(r.backendUrl+"/common/dynamic-data-source/"+e,d).then((function(e){t(e)})).catch((function(e){n(e)})):t(r)})).catch((function(e){n(e)}))}))}}),Nt=It,At={change:function(e){this.$emit("change",e)},visibleChange:function(e){this.$emit("visible-change",e)},removeTag:function(e,t){this.$emit("remove-tag",t),Array.isArray(this.value)&&1===this.value.length&&e&&(this.clearMarkValue(),this.remoteQuery("",null))},clear:function(){this.clearMarkValue(),this.$emit("clear")},blur:function(e){this.$emit("blur",e)},focus:function(e){this.$emit("focus",e)},input:function(e){this.$emit("input",e)}},Pt=At;function Mt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mt(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ft={name:"DynamicSourceSelect",components:{},model:{prop:"value",event:"input"},props:{column:{type:Object,default:null},value:{type:[String,Boolean,Number,Array],default:null},baseProps:{type:Object,default:null},entity:{type:Object,default:null},options:{type:Object,default:null},tableName:{type:String,default:null},isJoinTable:{type:Boolean,default:!1},parent:{type:Object,default:null},listCode:{type:String,default:null},formCode:{type:String,default:null}},data:function(){var e,t=Object.assign({},this.baseProps);this.entity&&(e=JSON.stringify(this.entity));var n=[];return void 0!==this.baseProps.multiple&&!0===this.baseProps.multiple&&void 0!==this.value&&null!==this.value&&this.value&&Array.isArray(this.value)&&(n=JSON.parse(JSON.stringify(this.value))),{markValue:e,optionItems:[],myProps:t,valueSetOptions:[],dynamicDataSourceCode:"",loading:!1,valueAttribute:null,remote:!1,additionalParameterStr:this.options.additionalParameter,isLoaded:!1,watchAttr:null,backendUrl:null,lastValues:n}},watch:{baseProps:{deep:!0,handler:function(e){this.myProps=Object.assign({},e)}}},created:function(){var e=this;if(this.options&&this.options.dynamicDataSourceCode){this.dynamicDataSourceCode=this.options.dynamicDataSourceCode.trim();var t={_listCode:this.listCode,_formCode:this.formCode,_tableName:this.tableName};this.parent&&(t.parent=this.parent),this.packageDynamicDataSourceInfo(this.dynamicDataSourceCode,t).then((function(t){if(t.backendUrl&&(e.backendUrl=t.backendUrl),void 0!==t.fuzzyQuery&&!0===t.fuzzyQuery&&(e.remote=!0),e.options&&e.options.valueSetOptions&&(e.valueSetOptions=e.options.valueSetOptions),e.options&&void 0!==e.options.isSql&&null!==e.options.isSql&&(e.isSql=e.options.isSql),e.watchAttr){var n,r=e.watchAttr.split(",");r.forEach((function(t){e.entity&&(n=e.entity[t]),e.$watch("entity."+t,(function(e,t){var n=this;this.watchAttrValueChange(e);var r=this.optionItems.filter((function(t){return t[n.valueAttribute]===e}));r||this.inputValue("")}))})),e.watchAttrValueChange(n)}e.isLoaded=!0,void 0!==e.baseProps.multiple&&!0===e.baseProps.multiple&&e.$nextTick((function(){e.$refs["dynamicDataSourceRef"].setSelected()}))})).catch((function(t){console.log(t),e.isLoaded=!0}))}else this.isLoaded=!0},methods:Rt(Rt(Rt({},Nt),Pt),{},{blurEvent:function(e){var t=this;void 0!==this.baseProps.multiple&&!1===this.baseProps.multiple&&this.$nextTick((function(){t.$refs["dynamicDataSourceRef"].setSelected()})),this.$emit("blur",e)},inputValue:function(e){if(void 0!==this.baseProps.multiple&&!0===this.baseProps.multiple&&e&&e.indexOf("saveAll")>=0)if(e.length-1>=this.optionItems.length)e=[];else{for(var t=[],n=0;n<this.optionItems.length;n++){var r=this.optionItems[n];t.push(r[this.valueAttribute])}e=t}this.$emit("input",e),null!==e&&void 0!==e&&""!==e||this.remoteQueryMethod(e),this.setValues(e)},packageDynamicDataSourceInfo:function(e,t){var n=this;return new Promise((function(r,i){n.findDynamicDataSourceByCode(e,n.entity,t,n.additionalParameterStr,n.backendUrl).then((function(e){if(e){if(e.options){if(n.optionItems=e.options,n.column){n.column.prop!==e.valueAttribute&&n.$set(n.column,"_dynamic-source-data-"+n.column.prop,{valueSetOptions:n.options.valueSetOptions,optionItems:n.optionItems,valueAttribute:e.valueAttribute});for(var t=0;t<n.options.valueSetOptions.length;t++){var i=n.options.valueSetOptions[t];if(e.valueAttribute===i.columnName){if(n.markValue){var o=JSON.parse(n.markValue);if(o&&o[i.valueColumn.dbColumnName]){var a=o[i.valueColumn.dbColumnName].split(",");"select"===n.column.componentType&&(a=a[0]),n.$emit("set-value",{value:a,targetColumnName:n.column.prop,options:n.optionItems,valueAttribute:n.valueAttribute})}}break}}}}else n.optionItems=[];e.valueAttribute&&(n.valueAttribute=e.valueAttribute),n.valueAttribute=n.getValueAttribute(),n.watchAttr=e.watchAttr,r(e)}else r()})).catch((function(e){i(e)}))}))},remoteQuery:function(e,t){var n=this;if(null!==e&&void 0!==e||null!==t&&void 0!==t){var r={_listCode:this.listCode,_formCode:this.formCode,_tableName:this.tableName};if(null!==e&&void 0!==e&&(r.searchText=e),null!==t&&void 0!==t)"[object Array]"===Object.prototype.toString.apply(t)?r.watchAttrValue=t.join(","):r.watchAttrValue=t+"";else if(this.entity){var i=this.entity[this.watchAttr];null!==i&&void 0!==i&&("[object Array]"===Object.prototype.toString.apply(i)?r.watchAttrValue=i.join(","):r.watchAttrValue=i+"")}this.parent&&(r.parent=this.parent),this.loading=!0,this.packageDynamicDataSourceInfo(this.dynamicDataSourceCode,r).then((function(e){void 0!==n.baseProps.multiple&&!0===n.baseProps.multiple&&n.$nextTick((function(){n.$refs["dynamicDataSourceRef"].setSelected()})),n.loading=!1})).catch((function(e){console.log(e),n.loading=!1}))}},remoteQueryMethod:function(e){Array.isArray(this.value)?0===this.value.length&&this.remoteQuery(e,null):this.remoteQuery(e,null)},remoteMethod:function(e){this.remoteQuery(e,null)},watchAttrValueChange:function(e){this.remoteQuery(null,e)},getValueAttribute:function(){return this.valueAttribute&&"[label]"!==this.valueAttribute?this.valueAttribute:"_label_"},setValues:function(e){var t=this;this.valueSetOptions&&this.valueSetOptions.length>0&&(void 0!==this.baseProps.multiple&&!0===this.baseProps.multiple?this.setColumnValueWhenMulti(e):this.valueSetOptions.forEach((function(n){var r,i=n.columnName;t.optionItems&&i&&(r=t.getTargetColumnValue(e,i)),t.setColumnValue(i,r,n)})))},setColumnValue:function(e,t,n){var r=null,i=n.valueColumn;i&&(r=i.name,!0===this.isSql&&(r=i.dbColumnName,r=Object(x["h"])(r,this.isJoinTable,this.tableName))),this.entity&&r&&null!==r&&""!==r&&Object(x["k"])(this.entity,r,t),this.$emit("set-value",{value:t,sourceColumnName:e,targetColumnName:r,options:this.optionItems,valueAttribute:this.valueAttribute})},setColumnValueWhenMulti:function(e){var t,n=this,r=!1;if(this.valueSetOptions.forEach((function(i){var o=i.columnName;if(o!==n.valueAttribute);else{var a;if(n.optionItems&&o&&(a=n.getTargetColumnValue(e,o)),n.setColumnValue(o,a,i),n.lastValues.length<e.length)r=!0;else if(n.lastValues.length>e.length){r=!1;var s=[].concat(Te(n.lastValues),Te(e)),l=new Set(s),u=Array.from(l),c=[].concat(Te(u.filter((function(e){return!n.lastValues.includes(e)}))),Te(u.filter((function(t){return!e.includes(t)}))));c&&c.length>0&&(t=c[0])}n.lastValues=JSON.parse(JSON.stringify(e))}})),r){var i=!1,o=e[e.length-1],a=this.optionItems.filter((function(e){return e[n.valueAttribute]===o}));a&&a.length>0&&this.setTagValue(null,i,a[0])}else{var s=!0;this.setTagValue(t,s)}},setTagValue:function(e,t,n){var r=this;this.valueSetOptions&&this.valueSetOptions.length>0&&this.valueSetOptions.forEach((function(i){var o=i.columnName;if(o!==r.valueAttribute){var a,s=null,l=i.valueColumn;if(l&&(s=l.name,!0===r.isSql&&(s=l.dbColumnName,s=Object(x["h"])(s,r.isJoinTable,r.tableName))),s){var u=Object(x["c"])(r.entity,s);if(t){var c=r.value.indexOf(e);if(void 0!==u&&null!==u&&""!==u){var f=u.split(",");f.splice(c,1),a=f.join(",")}}else{var d;n&&(d=n[o]),a=void 0!==u&&null!==u&&""!==u?u+","+d:d}}r.entity&&s&&null!==s&&""!==s&&Object(x["k"])(r.entity,s,a),r.$emit("set-value",{value:a,sourceColumnName:o,targetColumnName:s,options:r.optionItems,valueAttribute:r.valueAttribute})}}))},getTargetColumnValue:function(e,t){var n=this;if(e){var r="";if(void 0!==this.baseProps.multiple&&!0===this.baseProps.multiple&&Array.isArray(e)){var i=0;e.forEach((function(o){var a=n.optionItems.filter((function(e){return e[n.valueAttribute]===o}));a&&a.length>0&&(r+=a[0][t],i<e.length-1&&(r+=","),i++)}))}else{var o=this.optionItems.filter((function(t){return t[n.valueAttribute]===e}));o&&o.length>0&&(r=o[0][t])}return r}},clearMarkValue:function(){if(this.markValue&&this.entity){for(var e=JSON.parse(this.markValue),t=0;t<this.options.valueSetOptions.length;t++){var n=this.options.valueSetOptions[t];e[n.valueColumn.dbColumnName]=null}this.markValue=JSON.stringify(e)}}})},Bt=Ft,Lt=(n("c3bf"),f(Bt,Tt,Et,!1,null,null,null)),$t=Lt.exports,Vt=(n("3b2b"),n("a15e"));function jt(e,t,n){var r={},i=e.prop;t||(t={});var o=0,a=i.split(".");return a.forEach((function(e){var i,s;o===a.length-1?(i=Ht(r,a,e),i.fields[e]=n):(0===o?i=t:(s=zt(r,a,a[o-1]),i=s.fields),i[e]||(i[e]={type:"object",required:!0,fields:{}}),0===o?r[e]=i[e]:s.fields[e]=i[e]);o++})),r}function zt(e,t,n){for(var r,i=0;i<t.length;i++){var o=t[i];if(r=0===i?e[o]:r.fields[t[i]],o===n)break}return r}function Ht(e,t,n){for(var r,i=0;i<t.length;i++)if(r=0===i?e[t[i]]:r.fields[t[i]],i!==t.length-1){var o=t[i+1];if(o===n)break}return r}function Ut(e){e||(e=qe.get("_list_code"));var t=qe.get(e),n=t.columns,r={};return n&&n.forEach((function(t){var n=t.prop;if(n&&t.validations&&!at(n,e)){var i=JSON.parse(t.validations);i.forEach((function(e){e.pattern&&(e.pattern=new RegExp(e.pattern))})),n.indexOf(".")>0?jt(t,r,i):i&&i.length>0&&(r[n]=Te(i))}})),r}function Wt(e,t,n,r,i,o,a){return qt(e,t,n,r,!0,i,o,a)}function qt(e,t,n,r,i,o,a,s){var l,u=!1;l=r||Ut(t);var c=new Vt["default"](l);t||(t=qe.get("_list_code")),console.log("superGird--validatorEntity---entity=",e);var f=qe.get(t);return c.validate(e,{first:!0},(function(l,c){var d;if(l){var h=l[0]["message"];d=l[0]["field"],null!==n&&void 0!==n&&f.gridData.length>n?(k.a.set(f.gridData[n],"validateErrorField",l[0]["field"]),u=void 0!==o&&o&&void 0!==a&&void 0!==s?Object(x["e"])().t("superGrid.pageRecordLine",{pageNum:a,row:s})+","+h:Object(x["e"])().t("superGrid.recordLine",{row:n+1})+","+h):null!==f.$rowIndex&&void 0!==f.$rowIndex&&f.gridData.length>f.$rowIndex&&(k.a.set(f.gridData[f.$rowIndex],"validateErrorField",l[0]["field"]),u=Object(x["e"])().t("superGrid.recordLine",{row:f.$rowIndex+1})+","+h)}else null!==n&&void 0!==n&&f.gridData.length>n?void 0!==o&&o?k.a.set(f.subTableData[n],"validateErrorField",""):k.a.set(f.gridData[n],"validateErrorField",""):null!==f.$rowIndex&&void 0!==f.$rowIndex&&f.gridData.length>f.$rowIndex?k.a.set(f.gridData[f.$rowIndex],"validateErrorField",""):null!==n&&void 0!==n&&void 0!==o&&o&&f.gridData.length<=n&&k.a.set(f.subTableData[n],"validateErrorField",""),u=!0;if(d&&!0===i){var p=/[A-Z]+/;if(void 0!==u&&u+""!=="true"&&u+""!=="false"&&void 0!==f.isSql&&!0===f.isSql&&p.test(d)&&void 0!==e[d.toLowerCase()]){var m=JSON.parse(JSON.stringify(e));m[d.toUpperCase()]=e[d.toLowerCase()],delete m[d.toLowerCase()],u=qt(m,t,n,r,!1)}void 0!==u&&u+""!=="true"&&u+""!=="false"&&f.showValidateError&&(f.showValidateError=!1,k.a.prototype.$message({showClose:!0,message:u,type:"warning",onClose:function(e){f.showValidateError=!0}}))}})),u}var Gt={validator:Wt,getValidator:Ut},Yt=new k.a,Kt={toolbarRefresh:function(e,t,n,r){return this.toolbarFieldParam=n,this.refresh(e,t,n,r)},refresh:function(e,t,n,r){var i=this;return new Promise((function(t,o){if(r){var a=qe.get(i.code);i.$set(a.options,"subTableData",null)}if(!n&&i.toolbarFieldParam&&(n=i.toolbarFieldParam),i.$refs)if("undefined"!==typeof e&&null!==e&&e instanceof Array&&e.length>0)if(i.$refs.sf){var s=i.$refs.sf.packageSearchParam();s&&s.length>0?n&&n.length>0&&(1===s.length&&(s[0].leftBracket="(",s[0].rightBracket=")"),"or"===s[s.length-1].joinSign&&(s[s.length-1].joinSign="and"),Array.prototype.push.apply(s,n)):n&&(s=[],s=n),i.search(s,!1,e).then((function(){return t()})).catch((function(e){return o(e)}))}else i.search(n,!1,e).then((function(){return t()})).catch((function(e){return o(e)}));else if(i.$refs.sf){var l=i.$refs.sf.packageSearchParam();l&&l.length>0?n&&n.length>0&&(1===l.length&&(l[0].leftBracket="(",l[0].rightBracket=")"),"or"===l[l.length-1].joinSign&&(l[l.length-1].joinSign="and"),Array.prototype.push.apply(l,n)):n&&(l=[],l=n),i.search(l,!1).then((function(){return t()})).catch((function(e){return o(e)}))}else i.search(n,!1).then((function(){return t()})).catch((function(e){return o(e)}));else t()}))},showSearchForm:function(){this.showSearch=!0,this.$emit("showSearch")},cancelSearch:function(){this.showSearch=!1,this.$emit("cancelSearch")},getSearchForm:function(){var e=qe.get(this.code);return e.searchForm?e.searchForm:[]},createRow:function(e,t){var n=this;return new Promise((function(r,i){e||(e=qe.get("_list_code"));var o=qe.get(e),a=o.gridData;if(o.superGrid.clearSort(),o.lineEdit&&o.lineEdit.editable&&"undefined"!==typeof o.loaded&&!0===o.loaded){var s=!0;if(ct("beforeInsertRow",e)){var l=o.isSubTableShowPage,u=o.pagination&&o.pagination.pageSize,c=!1;s=o.options.lineEditOptions.beforeInsertRow.call(n,l?o.subTableData:o.gridData,o.$rowIndex,c,n.baseURL,l?o.gridData:null,u,o.additionalParamMap)}if(void 0===s||!0===s){if(o.options&&o.options.isFormSubTable){var f=o.gridData;void 0!==o.isSubTableShowPage&&!0===o.isSubTableShowPage&&(f=o.subTableData);var d=f.filter((function(e){return void 0!==e.$editing&&!0===e.$editing}));d&&d.length>0&&d.forEach((function(e){Object(x["k"])(e,"$editing",!1),Yt.$emit("un-edit",{row:e})})),o.isEditRow=!1}else{if(!rt(e)||"undefined"!==typeof o.isCreateRow&&!0===o.isCreateRow)return k.a.prototype.$message({showClose:!0,message:Object(x["e"])().t("superGrid.pleaseSaveLine",{row:o.$rowIndex+1}),type:"warning"}),void i(new Error("please save line"));if("undefined"!==typeof o.$rowIndex&&null!==o.$rowIndex&&o.$rowIndex<o.gridData.length){var h=o.gridData[o.$rowIndex];Object(x["k"])(h,"$editing",!1),o.isEditRow=!1}}t=n.getNewRow(o.defaultValueColumns,o.additionalParamMap,o.contextParameter,t),Object(x["k"])(t,"$editing",!0),o.isEditRow=!0,o.options&&o.options.isFormSubTable?(void 0!==o.isSubTableShowPage&&!0===o.isSubTableShowPage?(o.isChangePage=!0,o.subTableData.splice(o.subTableData.length,0,t)):(a.splice(a.length,0,t),o.lineEdit.editingCell&&(o.lineEdit.editingCell.row=a.length)),o.$rowIndex=a.length,n.$nextTick((function(){St(e)}))):(a.splice(0,0,t),o.lineEdit.editingCell&&(o.lineEdit.editingCell.row=0),o.$rowIndex=0);var p=Object.assign({},t);if(o.orgGridData.splice(0,0,p),o.lineEdit.editingCell||(o.lineEdit.editingCell={},o.lineEdit.validateErrorField=""),ct("afterInsertRow",e)){var m=o.isSubTableShowPage,g=o.pagination&&o.pagination.pageSize,v=!1;o.options.lineEditOptions.afterInsertRow.call(n,m?o.subTableData:o.gridData,o.$rowIndex,v,n.baseURL,m?o.gridData:null,g,o.additionalParamMap)}o.isCreateRow=!0,r(t)}else i(new Error("can not create"))}else i(new Error("list not editable or data not loaded completely"))}))},getNewRow:function(e,t,n,r,i){r||(r={}),i||(i=qe.get("_list_code"));var o=qe.get(i);if(o&&o.allColumns&&this.setColumnsDefaultValue(o.allColumns,r),e&&e.length>0)for(var a=0;a<e.length;a++){var s=e[a];if(s&&s.prop){var l=Object(x["c"])(r,s.prop);if("$selection"!==s.prop&&"$index"!==s.prop&&s.defaultValue&&""!==s.defaultValue&&(void 0===l||""===l||null===l)){var u=Object(x["i"])(s.defaultValue,r,t,n);Object(x["k"])(r,s.prop,u)}}}return r},setColumnsDefaultValue:function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=r.prop;"$index"!==i&&"$selection"!==i&&"operation"!==i&&(r.hasOwnProperty("children")?this.setChildrenColumnsDefaultValue(r.children,t):void 0===t[i]&&Object(x["k"])(t,i,null))}Object(x["k"])(t,"$editing",!1)},setChildrenColumnsDefaultValue:function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=r.prop;r.hasOwnProperty("children")?this.setChildrenColumnsDefaultValue(r.children,t):void 0===t[i]&&"operation"!==i&&Object(x["k"])(t,i,null)}},editRow:function(e,t,n){var r=this;t||(t=qe.get("_list_code"));var i=qe.get(t);if(i&&i.lineEdit&&i.lineEdit.editable){if("undefined"!==typeof i.$rowIndex&&null!==i.$rowIndex&&i.$rowIndex!==e)if("undefined"===typeof i.options.lineEditOptions.autoSave||ut("autoSave",t)&&!0===i.options.lineEditOptions.autoSave){if(!n)return void this.saveRow(i.$rowIndex,t).then((function(n){r.editRow(e,t,!0)}))}else if(!rt(t))return void k.a.prototype.$message({showClose:!0,message:Object(x["e"])().t("superGrid.pleaseSaveLine",{row:i.$rowIndex+1}),type:"warning"});var o=!0;if(ct("beforeEdit",t)){var a=i.isSubTableShowPage,s=i.pagination&&i.pagination.pageSize;o=i.options.lineEditOptions.beforeEdit.call(this,{gridData:a?i.subTableData:i.gridData,listCode:t,entity:i.gridData[e],rowIndex:e,columns:i.columns,isMobile:!1,pageGridData:a?i.gridData:null,pageSize:s,additionalParamMap:kt(i)})}Object(Ue["d"])(o)?o.then((function(t){void 0!==t&&!0!==t||r.doEditRow(i,e)})):void 0!==o&&!0!==o||this.doEditRow(i,e)}},doEditRow:function(e,t){if("undefined"!==typeof e.$rowIndex&&null!==e.$rowIndex&&e.$rowIndex<e.gridData.length){var n=e.gridData[e.$rowIndex];Object(x["k"])(n,"$editing",!1),e.isEditRow=!1}var r=e.gridData[t];Object(x["k"])(r,"$editing",!0),e.$lastSaveRowIndex=null,e.$rowIndex=t,e.isEditRow=!0,e.lineEdit.editingCell&&(e.lineEdit.editingCell.row=t)},saveRow:function(e,t){var n=this;return new Promise((function(r,i){var o=n;setTimeout((function(){o.saveCurrentRow(e,t).then((function(e){r(e)}))}),100)}))},saveCurrentRow:function(e,t){var n=this;return new Promise((function(r,i){t||(t=qe.get("_list_code"));var o=qe.get(t);if(o.lineEdit&&o.lineEdit.editable){if("undefined"===typeof o.gridData[e].$editing||!1===o.gridData[e].$editing)return void k.a.prototype.$message({showClose:!0,message:Object(x["e"])().t("superGrid.noNeedToSaveRow",{row:e+1}),type:"warning"});if(o.$rowIndex!==e&&!rt(t))return void k.a.prototype.$message({showClose:!0,message:Object(x["e"])().t("superGrid.pleaseSaveLine",{row:o.$rowIndex+1}),type:"warning"});if(o.$lastSaveRowIndex=null,void 0!==o.isHasDynamic&&!1===o.isHasDynamic&&!o.lineEdit.urlToSaveRow&&!ut("urlToSaveRow",t)&&!ct("saveRow",t))return void k.a.prototype.$message({showClose:!0,message:Object(x["e"])().t("superGrid.pleaseSetURLToSaveRowInformation"),type:"warning"});if(!o.canSaveRow)return;o.canSaveRow=!1;var a=o.gridData[e],s=!0;ut("isEnableValidate",t)&&(s=o.options.lineEditOptions["isEnableValidate"]);var l=!0;if(!0===s&&(l=Gt.validator(a,t,e)),!0===l){var u=!0;if(ct("beforeSave",t)&&(u=o.options.lineEditOptions["beforeSave"].call(n,a,o.columns,o.additionalParamMap)),void 0===u||!0===u){Yt.$emit("un-edit",{row:a});var c,f=kt(o);if(ct("saveRow",t)&&(c=o.options.lineEditOptions["saveRow"].call(n,a,o.columns,o.$dataTypeMap,o.dynamicColumnInfo,f,o.mainDefaultValueColumns)),!c&&o.lineEdit&&o.lineEdit.urlToSaveRow){var d=o.lineEdit.urlToSaveRow;ut("urlToSaveRow",t)&&(d=o.options.lineEditOptions["urlToSaveRow"]),c=k.a.prototype.$http.post(k.a.prototype.baseURL+d,a)}if(void 0!==o.isHasDynamic&&!0===o.isHasDynamic&&!c){var h="/common/dynamic-values",p={mainTableName:o.basicInfo&&o.basicInfo.tableName?o.basicInfo.tableName:"",row:a,dynamicColumnInfo:o.dynamicColumnInfo,additionalParamMap:f,dataTypeMap:o.$dataTypeMap,dynamicServiceName:o.dynamicServiceName,mainDefaultValueColumns:o.mainDefaultValueColumns};c=k.a.prototype.$http.post(k.a.prototype.baseURL+h,p)}c?c.then((function(s){n.afterSave(o,e,t,s,a).then((function(e){r(e)})).catch((function(e){i(e)}))})).catch((function(r){o.canSaveRow=!0,ct("saveError",t)&&o.options.lineEditOptions["saveError"].call(n,a,o.columns,e,r),i(r)})):(o.canSaveRow=!0,i(Object(x["e"])().t("saveRowRequest is undefined")))}else o.canSaveRow=!0,i(Object(x["e"])().t("superGrid.theReturnValueOfTheBeforesaveCallbackMethodIsFalse"))}else o.canSaveRow=!0,i(Object(x["e"])().t("imatrixUIMessage.validationFailed"))}}))},afterSave:function(e,t,n,r,i){var o=this;return new Promise((function(a,s){e.isCreateRow=!1,e.canSaveRow=!0,e.$rowIndex=null,e.isEditRow=!1,e.$lastSaveRowIndex=t,k.a.prototype.$message({showClose:!0,message:Object(x["e"])().t("superGrid.lineSavedSuccessfully",{row:t+1}),type:"success"}),("undefined"===typeof e.options.lineEditOptions.aftersaveIsCancelEditState||ut("aftersaveIsCancelEditState",n)&&!0===e.options.lineEditOptions.aftersaveIsCancelEditState)&&(Object(x["k"])(i,"$editing",!1),e.isEditRow=!1),ct("saveSuccess",n)&&e.options.lineEditOptions["saveSuccess"].call(o,r,e.columns,t,i,e.additionalParamMap),Object.assign(e.orgGridData[t],r),Object.assign(e.gridData[t],r),o.refresh(!1,!0).then((function(){("undefined"===typeof e.options.lineEditOptions.aftersaveIsCreateRow||e.options.lineEditOptions.aftersaveIsCreateRow)&&o.createRow(n),a({rowIndex:t,listCode:n})})).catch((function(e){return s(e)}))}))},restoreRow:function(e,t){var n=this;return new Promise((function(r,i){n.restoreCurrentRow(e,t),r()}))},restoreCurrentRow:function(e,t){t||(t=qe.get("_list_code"));var n=qe.get(t);if(n.lineEdit&&n.lineEdit.editable){if(null!==n.$rowIndex&&n.$rowIndex!==e&&!rt(t))return void k.a.prototype.$message({showClose:!0,message:Object(x["e"])().t("superGrid.pleaseSaveLine",{row:n.$rowIndex+1}),type:"warning"});var r=null!==n.$lastSaveRowIndex&&n.$lastSaveRowIndex===e&&"undefined"!==typeof n.gridData[e].id,i=!0;if(ct("beforeRestoreValidate",t)){var o=n.isSubTableShowPage,a=n.pagination&&n.pagination.pageSize,s=!1;i=n.options.lineEditOptions.beforeRestoreValidate.call(this,{rowIndex:e,gridData:o?n.subTableData:n.gridData,entity:n.gridData[e],isMobile:s,baseURL:this.baseURL,isEditing:!r,pageGridData:o?n.gridData:null,pageSize:a,additionalParamMap:n.additionalParamMap})}if(void 0!==i&&!0!==i)return;if(!0===r)return void k.a.prototype.$message({showClose:!0,message:Object(x["e"])().t("superGrid.lineNoNeedToUndoEdit",{row:e+1}),type:"warning"});var l=!0;if(ct("beforeRestore",t)){var u=n.isSubTableShowPage,c=n.pagination&&n.pagination.pageSize,f=!1;l=n.options.lineEditOptions.beforeRestore.call(this,{rowIndex:e,gridData:u?n.subTableData:n.gridData,entity:n.gridData[e],isMobile:f,baseURL:k.a.prototype.baseURL,isEditing:!r,pageGridData:u?n.gridData:null,pageSize:c,additionalParamMap:n.additionalParamMap})}if(void 0===l||!0===l){if(n.orgGridData[e].id||n.orgGridData[e].ID){if(k.a.set(n.gridData,e,JSON.parse(JSON.stringify(n.orgGridData[e]))),void 0!==n.isSubTableShowPage&&!0===n.isSubTableShowPage){var d=(this.currentPage-1)*this.pageSize,h=d+e;k.a.set(n.subTableData,h,n.gridData[e])}k.a.prototype.$message({showClose:!0,message:Object(x["e"])().t("superGrid.lineCancelledSuccessfully",{row:e+1}),type:"success"}),("undefined"===typeof n.options.lineEditOptions.afterRestoreIsCancelEditState||ut("afterRestoreIsCancelEditState",t)&&!0===n.options.lineEditOptions.afterRestoreIsCancelEditState)&&(Object(x["k"])(n.gridData[e],"$editing",!1),n.isEditRow=!1)}else this.deleteRow(e,t,!0);n.$rowIndex=null,n.isCreateRow=!1,ct("afterRestore",t)&&n.options.lineEditOptions.afterRestore.call(this,e,n.orgGridData[e],n.additionalParamMap)}}},deleteRow:function(e,t,n){var r=this;return new Promise((function(i,o){t||(t=qe.get("_list_code"));var a=qe.get(t),s=!0;if(ct("beforeDelete",t)){var l=a.isSubTableShowPage,u=a.pagination&&a.pagination.pageSize,c=l?a.subTableData:a.gridData,f=!1;s=a.options.lineEditOptions.beforeDelete.call(r,e,a.gridData[e],c,f,r.baseURL,l?a.gridData:null,u,a.additionalParamMap)}if(void 0===s||!0===s){if(void 0!==a.isSubTableShowPage&&!0===a.isSubTableShowPage){a.isChangePage=!0;var d=(r.currentPage-1)*r.pageSize,h=d+e;a.subTableData.splice(h,1)}else a.gridData.splice(e,1),a.orgGridData.splice(e,1);if(a.$lastSaveRowIndex=null,a.$rowIndex=null,a.isEditRow=!1,k.a.prototype.$message({showClose:!0,message:Object(x["e"])().t("superGrid.deleteSuccessful"),type:"success"}),0===a.gridData.length&&a.options&&null!==a.options.isDefaultShowEdit&&void 0!==a.options.isDefaultShowEdit&&!0===a.options.isDefaultShowEdit&&r.createRow(t),a.isMulitiSelect&&a.superGrid.clearSelection(),a.isCreateRow=!1,void 0!==n&&!0===n&&ct("afterDelete",t)){var p=a.isSubTableShowPage,m=a.pagination&&a.pagination.pageSize,g=!1;a.options.lineEditOptions.afterDelete.call(r,e,a.orgGridData[e],p?a.subTableData:a.gridData,g,r.baseURL,p?a.gridData:null,m,a.additionalParamMap)}}i()}))},focus:function(e,t){et(e,t)},getGridData:function(e){e||(e=qe.get("_list_code"));var t=qe.get(e),n=t.isSubTableShowPage;return n?t.subTableData:t.gridData},getColumns:function(e){e||(e=qe.get("_list_code"));var t=qe.get(e);return t.columns},getPagination:function(e){e||(e=qe.get("_list_code"));var t=qe.get(e);return t.pagination},getOptionsValueSet:function(e){var t={};e||(e=qe.get("_list_code"));var n=qe.get(e),r=n.columns;return r.forEach((function(e){var n=e.prop,r=Ct(e);!r&&e.valueSet&&e.valueSet.length>0&&(t[n]=e.valueSet)})),t},restoreGridEdit:function(e){e||(e=qe.get("_list_code"));var t=qe.get(e);if(t.options&&t.options.isFormSubTable){var n=t.isSubTableShowPage,r=[];if(r=n?t.subTableData:t.gridData,r&&r.length>0)for(var i=0;i<r.length;i++){var o=r[i];if(void 0!==o.$editing&&!0===o.$editing){Object(x["k"])(o,"$editing",!1),Yt.$emit("un-edit",{row:o});break}}}}},Xt=Kt,Jt=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{"append-to-body":!0,"show-close":!0,title:e.$t("imatrixUIPublicModel.preview"),visible:!0},on:{close:function(t){return e.$emit("close")}},scopedSlots:e._u([{key:"title",fn:function(){return[t("span",[e._v(e._s(e.$t("imatrixUIPublicModel.preview"))+"\n "),e.deleteable?t("i",{staticClass:"el-icon-delete",staticStyle:{"padding-left":"5px",cursor:"pointer",color:"#F56C6C"},on:{click:function(t){return e.deleteFile()}}}):e._e()])]},proxy:!0}])},[t("el-carousel",{attrs:{interval:5e3,arrow:"always"},on:{change:e.changeFile}},e._l(e.fileList,(function(n){return t("el-carousel-item",{key:n.serverName,staticStyle:{"background-color":"#eee"}},[n.isImg?t("el-image",{attrs:{src:n.src,"preview-src-list":[n.src]}}):t("div",{staticStyle:{"text-align":"center","margin-top":"50px"}},[t("div",{staticStyle:{"font-size":"18px"}},[e._v("\n "+e._s(n.showName)+"\n ")]),t("div",{staticStyle:{"padding-top":"10px"}},[e._v("\n "+e._s(e.$t("superGrid.previewTitleWhenNotImg"))+"\n ")]),t("div",{staticStyle:{"padding-top":"10px"}},[t("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.preview()}}},[e._v("\n "+e._s(e.$t("fsUpload.preview"))+"\n ")])],1)])],1)})),1)],1)},Zt=[],Qt={name:"ViewImageDialog",props:{fileList:{type:Array,default:function(){return[]}},downloadable:{type:Boolean,default:function(){return!0}},deleteable:{type:Boolean,default:function(){return!1}}},data:function(){var e=Object(He["c"])(),t=k.a.prototype.baseURL+"/common/fs-upload/preview?jwt="+e;return Object(Ue["c"])(k.a.prototype.systemCode)&&(t=k.a.prototype.baseAPI+"/component/fs-upload/preview?jwt="+e),{showName:null,serverName:null,file:null,previewUrl:t}},methods:{changeFile:function(e,t){var n=this.fileList[e];this.file=n,this.showName=n.showName,this.serverName=n.serverName},downloadFile:function(){if(!this.showName){var e=this.fileList[0];this.showName=e.showName,this.serverName=e.serverName}var t=Object(He["c"])(),n=k.a.prototype.baseURL+"/common/super-form/downloads?jwt="+t;Object(Ue["c"])(k.a.prototype.systemCode)&&(n=k.a.prototype.baseAPI+"/component/super-form/downloads?jwt="+t),window.location.href=n+"&showName="+encodeURI(this.showName)+"&serverPath="+this.serverName},preview:function(){if(!this.showName){var e=this.fileList[0];this.showName=e.showName,this.serverName=e.serverName}k.a.prototype.customPreviewUrl?window.open(Object(Ue["b"])(k.a.prototype.portalUrl)+"/#/file-service/preview?serverPath="+this.serverName+"&showName="+encodeURI(this.showName),this.showName):window.open(this.previewUrl+"&showName="+encodeURI(this.showName)+"&serverPath="+this.serverName)},deleteFile:function(){var e;if(this.fileList&&this.fileList.length>0){if(!this.showName){var t=this.fileList[0];this.showName=t.showName,this.serverName=t.serverName}var n=this.serverName;e=this.fileList.findIndex((function(e){return e.serverName===n}))}this.$emit("delete",this.fileList,e)}}},en=Qt,tn=f(en,Jt,Zt,!1,null,"f2898a0c",null),nn=tn.exports,rn={name:"DynamicInput",components:{dynamicSourceSelect:$t,ViewImageDialog:nn},props:{value:{type:[String,Boolean,Number,Date,Array],default:null},type:{type:String,default:"input"},position:{type:Object,default:null},lineEdit:{type:Object,default:null},options:{type:Array,default:null},column:{type:Object,default:null},row:{type:Object,default:null},listCode:{type:String,default:null},isSql:{type:Boolean,default:!1}},data:function(){var e=this.value;this.type&&"select"===this.type&&"TEXT"!==this.column.dataType&&(e=this.value&&null!==this.value&&"string"!==typeof this.value?this.value+"":this.value,this.$emit("input",e));var t=this.getDefaultValue(e);void 0!==t&&null!==t&&(e=t);var n=at(this.column.prop,this.listCode,this.row),r=k.a.prototype.baseAPI+"/component/super-form/uploads";this.listCode||(this.listCode=qe.get("_list_code"));var i,o,a,s=qe.get(this.listCode);s&&s.basicInfo&&s.basicInfo.tableName&&(i=s.basicInfo.tableName),s&&s.basicInfo&&s.basicInfo.hasJoinTable&&(o=s.basicInfo.hasJoinTable),s.options.extraParam&&s.options.extraParam.entityMap&&(a=s.options.extraParam.entityMap);var l={Authorization:Object(He["c"])()},u="mysql";k.a.prototype.dataSourceType&&(u=k.a.prototype.dataSourceType.toLowerCase());var c=s.gridData,f=s.subTableData,d=s.isSubTableShowPage,h=kt(s);return{deptManTree:!1,isMultiTree:!1,isCheckStrictly:!1,deptTree:!1,wgManTree:!1,wgTree:!1,newValue:null,disabled:n,componentName:"",validateErrorField:"",annexUploadFlag:!1,defaultAction:r,fileMultiple:!1,lastFileName:"",fileList:[],lastServerName:"",fileSetObj:null,showSingleImgFlag:!1,singleImgSrc:"",fields:null,innerValue:e,valueSetOptions:null,dynamicDataSourceCode:null,tableName:i,isJoinTable:o,departmentInfo:null,parentFormData:a,headers:l,dataSourceType:u,inputNumberSet:{},fileInfo:{showName:null,serverPath:null},gridData:d?f:c,pageGridData:d?c:null,additionalParamMap:h}},computed:{},watch:{value:{handler:function(e,t){var n=this;if(this.type&&"multiselect"===this.type){var r=this.value&&null!==this.value&&"string"===typeof this.value?this.value.split(","):this.value;this.$set(this,"innerValue",r)}else"yearRange"===this.type?this.$set(this,"innerValue",""+e):this.$set(this,"innerValue",e);var i=qe.get(this.listCode);i.editProp===this.column.prop&&this.$nextTick((function(){n.$refs.customItem&&n.$refs.customItem.focus()}))},deep:!0,immediate:!0}},created:function(){var e=qe.get(this.listCode);if(this.gridParams=e,this.isCreateRow=e.isCreateRow,this.setTreeType(),this.type&&this.type.indexOf("custom:")>=0&&(this.componentName=this.type.substring(this.type.indexOf(":")+1)),this.column.fileSet&&""!==this.column.fileSet&&("annex"===this.column.componentType||"multipartUpload"===this.column.componentType)){var t=JSON.parse(this.column.fileSet);this.fileInfo.showName=this.row[t.showNameData.dbName],this.fileInfo.serverPath=this.row[t.serverNameData.dbName],this.fileSetObj=t,t&&t.multiple&&(this.fileMultiple=!0),this.fileList=wt(this.row,this.column,this.isSql),this.packageFileNameWithFileList()}if("inputNumber"===this.column.componentType&&this.setInputNumberConfig(),this.column.valueSetOptions&&"inputNumber"!==this.column.componentType){var n=JSON.parse(this.column.valueSetOptions);n&&n.valueSetOptions&&this.$set(this,"valueSetOptions",n.valueSetOptions),n.dynamicDataSourceCode&&""!==n.dynamicDataSourceCode&&this.$set(this,"dynamicDataSourceCode",n.dynamicDataSourceCode)}if(this.column.orgTreeSet){var r=JSON.parse(this.column.orgTreeSet);this.type.indexOf("DeptTree")>0&&r.checkStrictly&&(this.isCheckStrictly=r.checkStrictly),r.length?this.fields=r:r.orgTreeSetArr&&(this.fields=r.orgTreeSetArr)}},mounted:function(){},methods:{focus:function(){"slider"!==this.type&&"rate"!==this.type&&this.lineEdit.editingCell&&this.position&&this.position.row===this.lineEdit.editingCell.row&&this.position.prop===this.lineEdit.editingCell.prop&&this.$refs.item&&this.$refs.item.focus()},handleBeforeUpload:function(e){var t=this.fileSetObj.limitFileSize;if(void 0===t&&(t=30),e.size>1024*t*1024)return this.$message({type:"warning",message:this.$t("imatrixUIMessage.exceedFileSize",{fileSize:t}),showClose:!0}),!1},setTreeType:function(){this.type&&(this.type.indexOf("single")>=0&&this.type.indexOf("Tree")>0?this.isMultiTree=!1:this.isMultiTree=!0,this.type.indexOf("DeptManTree")>0&&(this.deptManTree=!0),this.type.indexOf("DeptTree")>0&&(this.deptTree=!0),this.type.indexOf("WgManTree")>0&&(this.wgManTree=!0),this.type.indexOf("WgTree")>0&&(this.wgTree=!0))},showOrganizationTree:function(){if(this.column.orgTreeSet){var e=JSON.parse(this.column.orgTreeSet);if(e.length)this.fields=e;else if(e.orgTreeSetArr&&(this.fields=e.orgTreeSetArr),e.specifyType)if("dataTable"===e.specifyType){if(e.dataTableField){var t=Object(x["c"])(this.row,e.dataTableField);t&&""!==t&&this.$set(this,"departmentInfo",t.split(","))}}else"dept"!==e.specifyType&&"workGroup"!==e.specifyType||e.specifyDept&&""!==e.specifyDept&&("object"===Object(C["a"])(e.specifyDept)?this.$set(this,"departmentInfo",e.specifyDept):this.$set(this,"departmentInfo",e.specifyDept.split(",")))}},cellEvent:function(e,t,n){var r=!1;if("focus"===e&&this.$emit("focus",t),"input"===e&&this.isDateControll()){var i=t;""===i&&(i=null),this.$emit("input",i),r=!0,this.innerValue=i}else if("input"===e&&this.isSelectControll()){if("multiselect"===this.type&&this.innerValue&&"[object Array]"===Object.prototype.toString.apply(this.innerValue)){var o="saveAll";this.innerValue.indexOf(o)<0&&this.$emit("input",this.innerValue.join(","))}else this.$emit("input",this.innerValue);r=!0}else"input"===e&&void 0!==n&&!0===n?(this.innerValue=t,this.$emit("input",t),r=!0):"blur"!==e||this.isSelectControll()||(this.blurEvent(),r=!0);if(r||"change"!==e||this.blurEvent(),"clear"===e){if(("multiselect"===this.type||"select"===this.type)&&Ct(this.column))for(var a=0;a<this.valueSetOptions.length;a++)this.column.prop!==this.valueSetOptions[a].valueColumn.dbColumnName&&this.setCellValue(this.valueSetOptions[a].valueColumn.dbColumnName,null,"input");this.$emit("input",null)}var s=qe.get(this.listCode);s.editProp=this.column.prop,this.column.events&&this.column.events[e]?this.callCustomEvent(e):ct(e,this.listCode)&&s.options.lineEditOptions[e].call(this,t,this.row,this.column,s.additionalParamMap),this.$emit("findIndex")},blurEvent:function(){null!==this.innerValue&&void 0!==this.innerValue||(this.innerValue=null,this.val=null),this.$emit("input",this.innerValue)},isDateControll:function(){return"date"===this.type||"DATE"===this.column.dataType||"time"===this.type||"TIME"===this.column.dataType},isSelectControll:function(){return"select"===this.type||"multiselect"===this.type},isDynamicDataSourceSource:function(){return Ct(this.column)},isDecimalDateType:function(){return this.column.dataType&&"DOUBLE"===this.column.dataType||"FLOAT"===this.column.dataType},callCustomEvent:function(e){this.callCustomEventWithParam(e,{value:this.innerValue,row:this.row,column:this.column})},callCustomEventWithParam:function(e,t){if(this.column&&this.column.events&&this.column.events[e]){var n=this.column.events[e];this.listCode||(this.listCode=qe.get("_list_code"));var r=qe.get(this.listCode);r.options&&r.options["eventCallBack"]&&r.options["eventCallBack"][n]&&"function"===typeof r.options["eventCallBack"][n]&&(t||(t={}),t.formData=r.options&&r.options.formData?r.options.formData:null,t.parent=this.parentFormData,t.additionalParamMap=r.additionalParamMap,r.options["eventCallBack"][n].call(this,t))}},checkDecimal:function(){if(this.isDecimalDateType()&&this.innerValue&&null!==this.innerValue){var e=/^(-?\d+)(\.\d+)?$/;if(!e.test(this.innerValue+""))return this.$message({type:"warning",message:this.$t("imatrixUIMessage.invalideDoubleValue",{num:this.innerValue}),showClose:!0}),void this.focus()}},customFocus:function(){Xt.focus(this.position?this.position.row:null)},openAnnexUpload:function(){this.annexUploadFlag=!0},previewImg:function(){this.fileList=wt(this.row,this.column,this.isSql),this.showSingleImgFlag=!0},uploadOnSuccess:function(e){if(e){var t={name:e.showName,serverPath:e.serverPath};if(this.column.fileSet&&""!==this.column.fileSet){var n=JSON.parse(this.column.fileSet);n&&(this.fileMultiple?this.multiStorage(n,t):this.radioStorageFile(n,t),this.fileList=wt(this.row,this.column,this.isSql))}}this.annexUploadFlag=!1},setCellValue:function(e,t,n){var r=this;this.$set(this.row,e,t),n&&n.split(",").forEach((function(n){r.callCustomEventWithParam(n,{value:t,row:r.row,column:r.column,prop:e})}))},radioStorageFile:function(e,t){e.showNameData&&(this.isSql?e.showNameData.dbName&&this.setCellValue(e.showNameData.dbName,t.name,"input"):e.showNameData.name&&this.setCellValue(e.showNameData.name,t.name,"input")),e.serverNameData&&(this.isSql?e.serverNameData.dbName&&this.setCellValue(e.serverNameData.dbName,t.serverPath):e.serverNameData.name&&this.setCellValue(e.serverNameData.name,t.serverPath)),this.packageFileNameWithFileList([{showName:t.name,serverPath:t.serverPath}])},multiStorage:function(e,t){var n=vt(e,this.isSql);if(e.childAnnexDataTableCode){var r=this.row[this.column.prop];r||(r=[]);var i=this.responseFileToFileObj(e,t);r.push(i),this.fileList=bt(e,n,r,null),this.setCellValue(this.column.prop,r,"input")}else{var o="",a="";if(e.showNameData)if(this.isSql){if(e.showNameData.dbName&&this.row){if(this.row[e.showNameData.dbName]){var s=this.row[e.showNameData.dbName];s+=","+t.name,this.setCellValue(e.showNameData.dbName,s,"input")}else this.setCellValue(e.showNameData.dbName,t.name,"input");o=this.row[e.showNameData.dbName]}}else if(e.showNameData.name&&this.row){if(this.row[e.showNameData.name]){var l=this.row[e.showNameData.name];l+=","+t.name,this.setCellValue(e.showNameData.name,l,"input")}else this.setCellValue(e.showNameData.name,t.name,"input");o=this.row[e.showNameData.name]}if(e.serverNameData)if(this.isSql){if(e.serverNameData.dbName&&this.row){if(this.row[e.serverNameData.dbName]){var u=this.row[e.serverNameData.dbName];u+=","+t.serverPath,this.setCellValue(e.serverNameData.dbName,u)}else this.setCellValue(e.serverNameData.dbName,t.serverPath);a=this.row[e.serverNameData.dbName]}}else if(e.serverNameData.name&&this.row){if(this.row[e.serverNameData.name]){var c=this.row[e.serverNameData.name];c+=","+t.serverPath,this.setCellValue(e.serverNameData.name,c)}else this.setCellValue(e.serverNameData.name,t.serverPath);a=this.row[e.serverNameData.name]}this.fileList=bt(e,n,null,{showName:o,serverPath:a})}this.packageFileNameWithFileList()},responseFileToFileObj:function(e,t){var n={};return e.showNameData&&(this.isSql?e.showNameData.dbName&&this.$set(n,e.showNameData.dbName,t.name):e.showNameData.name&&this.$set(n,e.showNameData.name,t.name)),e.serverNameData&&(this.isSql?e.serverNameData.dbName&&this.$set(n,e.serverNameData.dbName,t.serverPath):e.serverNameData.name&&this.$set(n,e.serverNameData.name,t.serverPath)),n},deleteAnnexFile:function(e){e&&(e.showNameData&&(this.isSql?e.showNameData.dbName&&this.setCellValue(e.showNameData.dbName,null,"input,clear"):e.showNameData.name&&this.setCellValue(e.showNameData.name,null,"input,clear")),e.serverNameData&&(this.isSql?e.serverNameData.dbName&&this.setCellValue(e.serverNameData.dbName,null):e.serverNameData.name&&this.setCellValue(e.serverNameData.name,null)))},deleteFile:function(e,t){if(this.fileList=e,void 0!==t&&-1!==t&&this.fileList.splice(t,1),this.packageFileNameWithFileList(),this.column.fileSet&&""!==this.column.fileSet){var n=JSON.parse(this.column.fileSet);if(n)if(this.fileMultiple){var r=vt(n,this.isSql);this.standardToOtherFiles(n,r)}else this.deleteAnnexFile(n)}},packageFileNameWithFileList:function(e){if(e||(e=this.fileList),e&&e.length>0){var t="",n="";e.forEach((function(e){t+=e.showName+",",n+=e.serverPath+","})),t&&t.indexOf(",")>0&&(this.lastFileName=t.substring(0,t.lastIndexOf(",")),this.lastServerName=n.substring(0,n.lastIndexOf(",")))}else this.lastFileName=null,this.lastServerName=null},standardToOtherFiles:function(e,t){if(e.childAnnexDataTableCode){var n=null;if(this.fileList&&this.fileList.length>0){n=[];for(var r=0;r<this.fileList.length;r++){var i=this.fileList[r],o={};this.$set(o,t.showName,i.showName),this.$set(o,t.serverPath,i.serverPath),n.push(o)}}this.setCellValue(this.column.prop,n,"input")}else{var a=null,s=null;if(this.fileList&&this.fileList.length>0){a="",s="";for(var l=0;l<this.fileList.length;l++){var u=this.fileList[l];""!==a&&(a+=","),""!==s&&(s+=","),a+=u.showName,s+=u.serverPath}}this.setCellValue(t.showName,a,"input"),this.setCellValue(t.serverPath,s)}},organizationInputEvent:function(e,t){if(this.isSql&&e&&e.indexOf(".")<0&&e!==this.column.prop&&this.tableName){var n="__";e=this.tableName+n+e}Object(x["k"])(this.row,e,t),e&&e===this.column.prop&&this.callCustomEventWithParam("input",{value:t,row:this.row,column:this.column,prop:e})},clearOrganizationInputEvent:function(e){this.isSql?Object(x["k"])(this.row,e,""):Object(x["k"])(this.row,e,null),e&&e===this.column.prop&&this.callCustomEventWithParam("clear",{row:this.row,column:this.column,prop:e})},appendOrganizationInputEvent:function(e,t,n,r,i){Object(x["k"])(this.row,e,i),e&&e===this.column.prop&&this.callCustomEventWithParam("append",{originalValue:t,appendValue:n,separator:r,finallyValue:i,row:this.row,column:this.column,prop:e})},replaceOrganizationInputEvent:function(e,t,n){Object(x["k"])(this.row,e,n),e&&e===this.column.prop&&this.callCustomEventWithParam("replace",{originalValue:t,newValue:n,row:this.row,column:this.column,prop:e})},setDynamicSourceSelectValue:function(e){var t=e.value,n=(e.sourceColumnName,e.targetColumnName);e.options,e.valueAttribute;n&&this.setCellValue(n,t,"input")},multiselectChange:function(e){var t=this,n=!1;if(e&&e.length>0){var r="saveAll";if(-1!==e.indexOf(r)){var i=e.length;i-1>=this.options.length?this.innerValue=null:((!this.innerValue||this.innerValue.indexOf(r)>=0)&&(this.innerValue=[]),this.options.forEach((function(e){-1===t.innerValue.indexOf(e.value)&&t.innerValue.push(e.value)}))),n=!0}}this.innerValue&&-1!==this.innerValue.indexOf("saveAll")&&this.innerValue.splice(this.innerValue.indexOf("saveAll"),1),n&&this.cellEvent("input",this.innerValue),this.cellEvent("change",e)},getDefaultValue:function(e){if(void 0!==this.column.defaultValue&&null!==this.column.defaultValue&&(void 0===e||null===e||""===e))return Object(x["k"])(this.row,this.column.prop,this.column.defaultValue),this.column.defaultValue},refresData:function(e){this.$emit("refresData",e)},refresPortData:function(e,t){this.$emit("refresPortData",e,t)},refresPortsData:function(e){this.$emit("refresPortsData",e)},refresMainTableFields:function(e){this.$emit("refresMainTableFields",e)},deleteSuccess:function(e){},isValueFormat:function(){return"TEXT"===this.column.dataType||"text"===this.column.dataType?this.isFormat():"timestamp"},isFormat:function(){return"time"===this.type&&"TIME"===this.column.dataType||"dateTimePicker"===this.type?"yyyy-MM-dd HH:mm:ss":"date"===this.type&&"DATE"===this.column.dataType?"yyyy-MM-dd":"timePicker"===this.type?this.column.originalFormat?this.column.originalFormat:"hh:mm:ss":"year"===this.type?"yyyy":"month"===this.type?"MM":"yyyy-MM-dd"},fnProhibitToEdit:function(e){this.$emit("prohibitToEdit",e)},setInputNumberConfig:function(){if("inputNumber"===this.column.componentType)if(this.column.valueSetOptions&&""!==this.column.valueSetOptions&&"inputNumber"===this.column.componentType){var e=JSON.parse(this.column.valueSetOptions);this.inputNumberSet=e}else this.inputNumberSet={min:null,max:null,step:1,precision:0,position:""}}}},on=rn,an=f(on,Dt,Ot,!1,null,null,null),sn=an.exports,ln={number:function(e,t){var n=t.precision,r=t.sign,i=t.delimiter,o=t.scientific,a=t.scientificNum;if(void 0!==e&&null!=e){if(n>0&&(e=parseFloat(e),e=e.toFixed(n)),i){var s=e+"",l=s.replace(/\d{1,3}(?=(\d{3})+(\.\d*)?$)/g,"$&,");return r?l+r:l}if(null==o)return r?e+r:e;var u=!1;a=a?parseInt(a):11,e.length>=a&&(u=!0),u&&(e=""+e,e=parseFloat(e),e=e.toExponential())}return e},currency:function(e,t){var n=t.sign;return n+this.number(e,t)},date:function(e,t){var n=t.format;if(null!=e){var r=new Date(e),i=r.getFullYear(),o=r.getMonth()+1,a=r.getDate(),s=r.getHours(),l=r.getMinutes(),u=r.getSeconds();o<10&&(o="0"+o),a<10&&(a="0"+a),s<10&&(s="0"+s),l<10&&(l="0"+l),u<10&&(u="0"+u);var c=n.replace("yyyy",i).replace("mm",l).replace("M",o).replace("m",o).replace("d",a).replace("hh",s).replace("ss",u);return-1===c.indexOf("NaN")?c:e}return e},time:function(e,t){return this.date(e,t)},percent:function(e,t){return e||e>=0?this.number(e,t)+"%":e}};function un(e,t){if(t=cn(e,t),void 0!==t&&null!==t){void 0===e.formatter&&("DATE"===e.dataType?e.formatter={type:"date",options:{format:"yyyy-m-d"}}:"TIME"===e.dataType&&(e.formatter={type:"time",options:{format:"yyyy-m-d hh:mm:ss"}}));var n=e.formatter;return void 0!==n&&void 0!==ln[n.type]?ln[n.type](t,n.options):t}}function cn(e,t){if(void 0===t||null===t)return t;var n=e.valueSet;if(void 0!==n)if("multiselect"!==e.componentType||Ct(e)){var r=n.filter((function(e){return e.value===t+""}));r.length>0&&(t=r[0].label)}else{"number"===typeof t&&(t+="");var i=(t+"").split(","),o=[];i.forEach((function(e){var t=n.filter((function(t){return t.value===e+""}));t.length>0&&o.push(t[0].label)})),t=o.join(",")}return t}var fn=n("bc95"),dn=n.n(fn);function hn(e,t,n,r,i,o,a){var s={};if(e){s.visible=!0;var l={};r&&"string"===typeof r&&""!==r?l=JSON.parse(r):r&&"object"===Object(C["a"])(r)&&(l=r);var u={};if(i&&"string"===typeof i&&""!==i?u=JSON.parse(i):i&&"object"===Object(C["a"])(i)&&(u=i),e.displayTextJudge){var c=Object(x["b"])(e.displayText,t,l,u);s.label=c}if(e.icon&&(s.icon=e.icon),e.linkTips&&(s.title=e.linkTips),e.buttonDisplayConditionsList){var f="";if(e.buttonDisplayConditionsList&&(f=JSON.stringify(e.buttonDisplayConditionsList)),f&&""!==f){var d=Object(x["a"])(f,t,l,u,n,o,a);s.visible=d}}}return s}function pn(e){if(e){var t=e.jumpPageSetting,n=e.system,r=e.dataId,i=e.ids,o=e.buttonCode,a=e.additionalParamMap,s=e.entity,l=e.parentFormData;gn(t,n,r,s,a,i,o,l).then((function(e){var t;if(e&&(t=e.jumpMode),e){var n,r,i=e,o=i._path;if("popup"===t)n=e.jumpPageWidth?e.jumpPageWidth:window.innerWidth-150,r=e.jumpPageHeight?e.jumpPageHeight:window.innerHeight-150,window.open(o,"","height="+r+",width="+n+",top=100,left=100,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no");else"refresh"===t&&(window.location.href=o)}}))}}function mn(e){if(e&&e.length>0)for(var t=0;t<e.length;t++){var n=e[t];if(n.paramName&&("id"===n.paramName||"ID"===n.paramName))return!0}}function gn(e,t,n,r,i,o,a,s){return new Promise((function(l,u){e&&"string"===typeof e&&""!==e&&(e=JSON.parse(e)),e.jumpPageUrl||l(),vn(t,e.jumpPageUrl).then((function(t){if(e.jumpPageAdditional&&e.jumpPageAdditional.length>0){var u=k.a.prototype.baseAPI+"/component/super-pages/parsing-additional-parameters",c={};c.jumpPageAdditional=JSON.stringify(e.jumpPageAdditional),c.entity=r,c.additionalParamMap=i,c.parentFormData=s;var f=mn(e.jumpPageAdditional);k.a.prototype.$http.post(u,c).then((function(r){var i="";r&&r.uuid&&(i=r.uuid+"_additionalParamMap",dn.a.setItem(i,JSON.stringify(r.paramMap))),e.paramStoreId=i,yn(e,t,n,o,a,f).then((function(e){l(e)}))}))}else yn(e,t,n,o,a,!1).then((function(e){l(e)}))})).catch((function(e){console.log(e),u(e)}))}))}function vn(e,t){return new Promise((function(n,r){if(bn(t))n(null);else if(e&&null!==e)n(e);else if(0===t.indexOf("page:")){var i=t.substring(t.indexOf("page:")+"page:".length),o=k.a.prototype.baseAPI+"/component/business-systems/with-page-codes/"+i;k.a.prototype.$http.get(o).then((function(e){n(e)})).catch((function(e){r(e)}))}else{var a=k.a.prototype.customSystem;a||(a=k.a.prototype.systemCode);var s=k.a.prototype.baseAPI+"/component/business-systems/"+a;k.a.prototype.$http.get(s).then((function(e){n(e)})).catch((function(e){r(e)}))}}))}function bn(e){return 0===e.indexOf("http:")||0===e.indexOf("https:")}function yn(e,t,n,r,i,o){return new Promise((function(a,s){var l=e.jumpPageUrl;if(l)if(0===l.indexOf("page:"))xn(l,t,n,e,r,i,o).then((function(e){a(e)}));else{var u=On(e.paramStoreId),c=l;if(l.indexOf("path:")>=0&&(c=l.substring(l.indexOf("path:")+"path:".length)),bn(c));else if(t){var f=Object(Ue["b"])(t.frontendUrl);c=f+"/#"+c}var d=Dn(t);wn(n,c,u,e,r,i,o,d),a()}}))}function wn(e,t,n,r,i,o,a,s){if(t=_n(e,t,r,i,o,a),n&&""!==n){var l="";s&&(l="&_systemName_="+encodeURI(s)),-1!==t.indexOf("?")?(t+="&",t+=n+l):(t+="?",t+=n+l)}var u="refresh";if(r&&r.jumpPageOpenMode&&(u=r.jumpPageOpenMode),"popup"===u){var c,f;c=r.jumpPageWidth?r.jumpPageWidth:window.innerWidth-150,f=r.jumpPageHeight?r.jumpPageHeight:window.innerHeight-150;var d="height="+f+", width="+c+", top=0, left=0, toolbar=no, menubar=no,scrollbars=no,resizable=no, location=no, status=no";window.open(t,"newW",d)}else"newTab"===u?window.open(t):location.href=t}function _n(e,t,n,r,i,o){if((void 0===n.isNeedId||null===n.isNeedId||!0===n.isNeedId)&&!o&&e){var a="?";t.indexOf("?")>0&&(a="&"),t=t+a+"id="+e}var s=n.paramStoreId;if(s&&""!==s){var l="paramStoreId="+s;-1!==t.indexOf("?")?(t+="&",t+=l):(t+="?",t+=l)}if(r&&r.length>0){var u=r.join(","),c="ids="+u+"&_idsStr="+u;-1!==t.indexOf("?")?(t+="&",t+=c):(t+="?",t+=c)}return i&&(-1!==t.indexOf("?")?t+="&buttonCode="+i:t+="?buttonCode="+i),t}function Cn(e){var t;return e&&-1!==e.indexOf("page:")&&(t=e.substring(e.indexOf("page:")+"page:".length)),t}function xn(e,t,n,r,i,o,a){return new Promise((function(s,l){var u=Cn(e),c="refresh";r&&r.jumpPageOpenMode&&(c=r.jumpPageOpenMode);var f={jumpMode:c};if(dn.a.setItem(u+"-jumpMode",JSON.stringify(f)),"popup"===c){var d=kn(t,u,n,r,c,i,o,a),h=Sn(r,t,u,n,c,i,o);h._path=d,s(h)}else if("newTab"===c){var p=kn(t,u,n,r,c,i,o,a);window.open(p),s()}else{var m={pageCode:u,customSystem:t.code,jumpMode:c,buttonCode:o,ids:i?i.join(","):""};void 0!==r.isNeedId&&null!==r.isNeedId&&!0!==r.isNeedId||!a&&n&&(m.id=n);var g=r.paramStoreId;g&&""!==g&&(m["paramStoreId"]=g);var v=kn(t,u,n,r,c,i,o,a);m._path=v,s(m)}}))}function Sn(e,t,n,r,i,o,a){var s={};e&&(s.jumpPageTitle=e.jumpPageTitle,s.jumpPageWidth=e.jumpPageWidth,s.jumpPageHeight=e.jumpPageHeight,s.valueMappings=e.valueMappings,s.updateValueEvent=e.updateValueEvent,s.closeEvent=e.closeEvent,s.isRefreshWhenClosePopup=e.isRefreshWhenClosePopup);var l=!1;return"undefined"!==typeof t.standard&&(l=!t.standard),s.pageCode=n,void 0!==e.isNeedId&&null!==e.isNeedId&&!0!==e.isNeedId||r&&(s.dataId=r),s.isDsc=l,s.paramStoreId=e.paramStoreId,s.jumpMode=i,s.ids=o,s.buttonCode=a,s}function kn(e,t,n,r,i,o,a,s){var l=Object(Ue["b"])(e.frontendUrl),u=l+"/#/dsc-full-screen/page?customSystem="+e.code+"&pageCode="+t+"&jumpMode="+i,c=Dn(e);return c&&(u+="&_systemName_="+encodeURI(c)),_n(n,u,r,o,a,s)}function Dn(e){if(e){var t="cn";return window.$locale&&(t=window.$locale),"cn"===t?e.name:e.enName}}function On(e){var t=dn.a.getItem(e);return Tn(t)}function Tn(e){var t="";if(e)for(var n=JSON.parse(e),r=Object.keys(n),i=0;i<r.length;i++)""!==t&&(t+="&"),t+=r[i],t+="=",t+=n[r[i]];return t}function En(e,t,n,r,i,o){if(e&&null!==e&&r&&null!==r&&n&&null!==n&&n.valueMappings){var a=e;Array.isArray(e)&&e.length>0&&(a=e[0]);var s=n.valueMappings;s.forEach((function(e){var n=e.source,s=Object(x["c"])(a,n),l="__";void 0!==s&&null!==s||(n&&t&&n.indexOf(".")>0&&(n=t+l+n),s=Object(x["c"])(a,n));var u=e.target;void 0!==o&&!0===o&&u&&i&&u.indexOf(".")>0&&(u=i+l+u),Object(x["k"])(r,u,s)}))}}var In={customFormatValue:function(e,t,n,r){if(this.customFormat){var i=e[t];this.isObjectProp(t)&&(i=this.objectPropOriginalValue(e,t));var o=un(this.column,i),a=n.call(this,i,o,e,this.column,r);return"undefined"!==typeof a&&(k.a.component(t+r,a),!0)}return!1},isObjectProp:function(e){return!!(e&&e.indexOf(".")>0)},objectPropOriginalValue:function(e,t){try{var n=e;if(t&&t.indexOf(".")>0){var r=t.split(".");return r.forEach((function(e){if(!n)throw n="",n;n=n[e]})),n}return e[t]}catch(i){return""}},objectPropValue:function(e,t){return this.formatter(e,t,this.column)},objectPropValueTwo:function(e,t){if("annex"===t.componentType||"multipartUpload"===t.componentType){var n=JSON.parse(t.fileSet);if(!n.childAnnexDataTableCode)return this.objectPropValue(e,t.prop);var r=vt(n,this.isSql),i=this.objectPropValue(e,t.prop);if(i&&i.length>0){var o=bt(n,r,i,null);return o[o.length-1].showName}}else{if(!t.formatter||"files"!==t.formatter.type)return this.objectPropValue(e,t.prop);var a=JSON.parse(t.formatter.options.fileSet);if(!a.childAnnexDataTableCode)return this.objectPropValue(e,t.prop);var s=vt(a,this.isSql),l=this.objectPropValue(e,t.prop);if(l&&l.length>0){var u=bt(a,s,l,null);return u[u.length-1].showName}}},formatter:function(e,t,n){var r=this.objectPropOriginalValue(e,t);if(void 0!==this.columnFormatter&&"custom"===this.columnFormatter.type){var i;if(this.columnFormatter.options&&this.columnFormatter.options.format&&(i=this.columnFormatter.options.format),i&&null!==i&&""!==i){var o=qe.get(this.listCode);if(o.options&&o.options["eventCallBack"]&&o.options["eventCallBack"][i]&&"function"===typeof o.options["eventCallBack"][i]){var a={value:r,row:e,column:this.column,prop:t,additionalParamMap:o.additionalParamMap};return o.options["eventCallBack"][i].call(this,a)}return un(n,r)}return un(n,r)}return un(n,r)},getColumnValue:function(e,t){var n=t.prop,r=e[n];this.isObjectProp(n)&&(r=this.objectPropOriginalValue(e,n));var i=un(t,r);return{originalValue:r,formatValue:i}},onClickFun:function(e,t,n,r){var i=this.getColumnValue(e,t);n.call(this,i.originalValue,i.formatValue,e,t,r)},isShowButtonFun:function(e,t,n,r){if(void 0===n)return!0;if("function"===typeof n){var i=this.getColumnValue(e,t),o=n.call(this,i.originalValue,i.formatValue,e,t,r);return void 0===o&&(o=!0),o}return n},getHyperLinkSetting:function(e,t,n,r,i,o,a){var s=qe.get(a),l=null;s.options.extraParam&&s.options.extraParam.entityMap&&(l=s.options.extraParam.entityMap);var u,c={};if(e&&e.formatter&&e.formatter.options&&e.formatter.options.format&&(u=e.formatter.options.format),u&&""!==u){var f=hn(JSON.parse(u),t,n,r,i,o,l);f&&f.label&&""!==f.label||(f.label=this.objectPropValueTwo(t,e)),f&&f.title&&""!==f.title||(f.title=f.label),c=f}else c.visible=!0,c.label=this.objectPropValueTwo(t,e),c.title=c.label;return c},clickHyperLink:function(e,t,n,r){var i,o=this;if(e&&e.formatter&&e.formatter.options&&e.formatter.options.format&&(i=e.formatter.options.format),i&&""!==i){var a=!0,s=qe.get(n),l=JSON.parse(i);if(l.beforeClick){var u=l.beforeClick;if(s.options&&s.options["eventCallBack"]&&s.options["eventCallBack"][u]&&"function"===typeof s.options["eventCallBack"][u]){var c={row:t,column:e,rowIndex:r,listCode:n,additionalParamMap:s.additionalParamMap};a=s.options["eventCallBack"][u].call(this,c)}}Object(Ue["d"])(a)?a.then((function(e){o.doClickHyperLink(t,n,r,l,s)})):this.doClickHyperLink(t,n,r,l,s)}},doClickHyperLink:function(e,t,n,r,i){var o=this,a=null;i.options.extraParam&&i.options.extraParam.entityMap&&(a=i.options.extraParam.entityMap),gn(r,i.system,e.id?e.id:e.ID,e,i.additionalParamMap,null,null,a).then((function(r){r&&(r._position="list",r._listCode=t,r._rowIndex=n,r.row=e,o.$emit("open-page",r))}))}},Nn=In,An=function(){var e=this,t=e._self._c;return t("span",{style:e.myStyle},[e.isShowButton()?t("span",[e.label?t("span",[e.operationSetting.permission?t(e.elementType,e._b({directives:[{name:"permission",rawName:"v-permission",value:e.operationSetting.permission,expression:"operationSetting.permission"}],tag:"component",attrs:{disabled:e.preventReclick},nativeOn:{mousedown:function(t){return e.onClickFun.apply(null,arguments)}}},"component",e.operationSetting,!1),[e._v(e._s(e.label))]):t(e.elementType,e._b({tag:"component",attrs:{disabled:e.preventReclick},nativeOn:{mousedown:function(t){return e.onClickFun.apply(null,arguments)}}},"component",e.operationSetting,!1),[e._v(e._s(e.label))])],1):t("span",[e.operationSetting.permission?t(e.elementType,e._b({directives:[{name:"permission",rawName:"v-permission",value:e.operationSetting.permission,expression:"operationSetting.permission"}],tag:"component",attrs:{disabled:e.preventReclick},nativeOn:{mousedown:function(t){return e.onClickFun.apply(null,arguments)}}},"component",e.operationSetting,!1)):t(e.elementType,e._b({tag:"component",attrs:{disabled:e.preventReclick},nativeOn:{mousedown:function(t){return e.onClickFun.apply(null,arguments)}}},"component",e.operationSetting,!1))],1)]):e._e()])},Pn=[],Mn=n("2f62");function Rn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rn(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Bn={name:"RowOperation",props:{editing:{type:Boolean,default:!1},isShow:{type:[Boolean,Function],default:!0},onClick:{type:Function,default:function(){}},entity:{type:Object,default:null},column:{type:Object,default:null},rowIndex:{type:Number,default:null},label:{type:String,default:null},operationSetting:{type:Object,default:null},operationIndex:{type:Number,default:null}},data:function(){return{elementType:"el-button",myStyle:null}},computed:Fn({},Object(Mn["a"])(["preventReclick"])),created:function(){this.operationSetting.elementType&&"el-link"===this.operationSetting.elementType&&(this.operationSetting.type="primary"),this.operationSetting.elementType&&"el-button"!==this.operationSetting.elementType||(this.operationSetting.size="mini"),this.operationSetting.style?this.myStyle=this.operationSetting.style:0===this.operationIndex||void 0!==this.operationSetting.elementType&&"el-button"!==this.operationSetting.elementType||(this.myStyle={marginLeft:"10px"}),this.operationSetting.elementType&&(this.elementType=this.operationSetting.elementType)},methods:{onClickFun:function(){Nn.onClickFun(this.entity,this.column,this.onClick,this.rowIndex)},isShowButton:function(){var e=Nn.isShowButtonFun(this.entity,this.column,this.isShow,this.rowIndex);if(e)if(this.editing){if("lineEditUpdate"===this.operationSetting.code)return!1}else if("restoreEdit"===this.operationSetting.code)return!1;return e}}},Ln=Bn,$n=f(Ln,An,Pn,!1,null,"3c0b801c",null),Vn=$n.exports,jn=function(){var e=this,t=e._self._c;return e.label?t("div",[t("div",{staticClass:"list-file",on:{click:function(t){return e.previewMuti()},dblclick:e.dblclickEvent}},[t("i",{staticClass:"el-icon-paperclip"}),e._v("\n "+e._s(e.label)+"\n "),t("i",{staticClass:"el-icon-view annex-cell"})]),t("el-dialog",{attrs:{"append-to-body":!0,"show-close":!0,title:e.$t("imatrixUIPublicModel.previewImage"),visible:e.showPreviewSingleImage},on:{"update:visible":function(t){e.showPreviewSingleImage=t},close:function(t){return e.$emit("close")}}},[t("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.$t("imatrixUIPublicModel.previewImage"))+"\n ")]),e.previewImageInfo&&e.previewImageInfo.isImg?t("el-image",{attrs:{"preview-src-list":[e.previewImageInfo.src],src:e.previewImageInfo.src}}):e._e()],1),t("el-dialog",{attrs:{"append-to-body":!0,"show-close":!0,title:e.$t("imatrixUIPublicModel.preview"),visible:e.showPreviewMulti,width:"30%"},on:{"update:visible":function(t){e.showPreviewMulti=t},close:function(t){return e.$emit("close")}}},[t("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.$t("imatrixUIPublicModel.preview"))+"\n ")]),t("el-table",{attrs:{"show-header":!1,data:e.fileList}},[t("el-table-column",{attrs:{prop:"showName",width:"200"}}),t("el-table-column",{attrs:{align:"right"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("el-tooltip",{staticClass:"item",attrs:{content:e.$t("imatrixUIPublicModel.preview"),effect:"dark",placement:"top"}},[t("i",{staticClass:"el-icon-view",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.previewSingle(n.row)}}})])]}}],null,!1,3592000678)}),t("el-table-column",{scopedSlots:e._u([{key:"default",fn:function(n){return[t("el-tooltip",{staticClass:"item",attrs:{content:e.$t("imatrixUIPublicModel.download"),effect:"dark",placement:"top"}},[t("i",{staticClass:"el-icon-download",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.donwloadFile(n.$index,e.fileList)}}})])]}}],null,!1,248088187)})],1)],1)],1):e._e()},zn=[],Hn={name:"FsPreview",components:{},props:{label:{type:String,default:null},fileSetObj:{type:Object,default:null},isSql:{type:Boolean,default:!1},entity:{type:Object,default:function(){return{}}}},data:function(){return{showPreviewSingleImage:!1,showPreviewMulti:!1,previewImageInfo:{},fileList:[]}},created:function(){},methods:{dblclickEvent:function(){clearTimeout(this.time)},previewSingle:function(e){e=yt(e.showName,e.serverPath),Object(x["j"])(e.showName)?(this.previewImageInfo=e,this.showPreviewSingleImage=!0):this.previewDoc(e)},previewMuti:function(){var e=this,t=this.analysisFileSetObj(this.fileSetObj,this.isSql),n=Object(x["c"])(this.entity,t.serverPath);if(n){var r=n.split(",");this.$http.post(k.a.prototype.baseURL+"/common/fs-upload/search-file-names",r).then((function(t){e.fileList=[],r.forEach((function(n){e.fileList.push({showName:t[n],serverPath:n})})),e.showPreviewMulti=!0}))}},previewDoc:function(e){var t=Object(He["c"])(),n=k.a.prototype.baseURL+"/common/fs-upload/preview?jwt="+t;Object(Ue["c"])(k.a.prototype.systemCode)&&(n=k.a.prototype.baseAPI+"/component/fs-upload/preview?jwt="+t);var r=e.showName;k.a.prototype.customPreviewUrl?window.open(Object(Ue["b"])(k.a.prototype.portalUrl)+"/#/file-service/preview?serverPath="+e.serverPath+"&showName="+encodeURI(r),e.showName):window.open(n+"&showName="+encodeURI(r)+"&serverPath="+e.serverPath)},donwloadFile:function(e,t){var n=Object(He["c"])(),r=this.formatFileName(this.fileList[e].showName);if(this.fileList[e].src)window.open(this.fileList[e].src);else{var i=k.a.prototype.baseURL+"/common/super-form/downloads?jwt="+n;Object(Ue["c"])(k.a.prototype.systemCode)&&(i=k.a.prototype.baseAPI+"/component/super-form/downloads?jwt="+n);var o=i+"&showName="+encodeURI(r)+"&serverPath="+this.fileList[e].serverPath;window.open(o)}},analysisFileSetObj:function(e,t){var n="",r="";return e&&(e.showNameData&&(t?e.showNameData.dbName&&(n=e.showNameData.dbName):e.showNameData.name&&(n=e.showNameData.name)),e.serverNameData&&(t?e.serverNameData.dbName&&(r=e.serverNameData.dbName):e.serverNameData.name&&(r=e.serverNameData.name))),{showName:n,serverPath:r}},formatFileName:function(e){return e.replace("#","~~").replace("?","~$").replace("&","$")}}},Un=Hn,Wn=f(Un,jn,zn,!1,null,"6d0fa3ee",null),qn=Wn.exports;qn.install=function(e){e.component(qn.name,qn)};var Gn=qn,Yn=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{visible:"",title:e.title,"append-to-body":"",fullscreen:""},on:{close:function(t){return e.$emit("closeRichEditorContent")}}},[t("el-image",{ref:"previewImg",staticStyle:{display:"none",width:"100px",height:"100px"},attrs:{src:e.srcList[0],"preview-src-list":e.srcList}}),t("div",{attrs:{id:e.fullscreenViewerId}})],1)},Kn=[],Xn={name:"RichEditorViewer",props:{entity:{type:Object,default:null},prop:{type:String,default:null},value:{type:String,default:""},disabled:{type:Boolean,default:!1},options:{type:Object,default:null},plugins:{type:[String,Array],default:"print preview searchreplace directionality fullscreen image link table hr advlist lists wordcount "},toolbar:{type:[String,Array],default:" undo redo | formatselect fontsizeselect bold italic strikethrough underline hr forecolor backcolor | image | lineheight bullist numlist table | print fullscreen preview "}},data:function(){return{srcList:[],psrcList:[],viewerId:"aglie_rich_editor_"+(new Date).getTime(),dialogVisible:!1,fullscreenViewerId:"editor_viewer_"+(new Date).getTime(),ImageComponent:null,title:""}},watch:{value:function(e){this.contentValue=e,this.entity[this.prop]=e}},created:function(){},mounted:function(){},methods:{showImage:function(e){this.srcList=[e.target.currentSrc],this.$refs.previewImg.showViewer=!0},showContent:function(e,t){var n=this;this.title=t;var r=this,i=e.replaceAll("<img",'<img @click="showImage" ');i="<div> "+i+" </div> ",this.ImageComponent=k.a.extend({methods:{showImage:function(e){r.showImage(e)}},template:i});var o=(new this.ImageComponent).$mount();this.$nextTick((function(){document.getElementById(n.fullscreenViewerId).appendChild(o.$el)}))}}},Jn=Xn,Zn=f(Jn,Yn,Kn,!1,null,null,null),Qn=Zn.exports;function er(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=tr(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function tr(e,t){if(e){if("string"===typeof e)return nr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nr(e,t):void 0}}function nr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ir(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rr(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var or={name:"NormalColumn",components:{DynamicInput:sn,RowOperation:Vn,ViewImageDialog:nn,FsPreview:Gn,RichEditorViewer:Qn},props:{column:{type:Object,default:null},customFormat:{type:Function,default:null},listCode:{type:String,default:null},isSql:{type:Boolean,default:!1},newWidth:{type:Number,default:null},dragColumnProp:{type:String,default:null},tableName:{type:String,default:null},pageCode:{type:String,default:null},listName:{type:String,default:null},currentPage:{type:Number,default:1},gridData:{type:Array,default:null},pageGridData:{type:Array,default:null}},data:function(){var e,t=qe.get(this.listCode);return t.options.extraParam&&t.options.extraParam.entityMap&&(e=t.options.extraParam.entityMap),{selectRow:null,that:this,align:"left",headerAlign:"left",columnFormatter:this.column.formatter,hyperLinks:{},fileDownType:"",isFormSubTable:!1,subTableCanAdd:!0,isShowAdd:!1,cellWidth:null,parentFormData:e,fileMultiple:!1,showSingleImgFlag:!1,singleImgSrc:"",fileList:[],index:null,isEditable:this.column.editable,showRichEditorViewer:!1,getFormData:t.options.getFormData,getTableGridData:t.options.getGridData}},computed:ir({filters:function(){if(this.column.filterable){var e,t=qe.get(this.listCode),n=Xe(t.gridData,this.column.prop),r=[],i=er(n);try{for(i.s();!(e=i.n()).done;){var o=e.value;r.push({text:o,value:o})}}catch(a){i.e(a)}finally{i.f()}return r}return null},filterMethod:function(){return this.column.filterable?this.filterHandler:null},fixed:function(){return!(this.column.fixed&&"false"===this.column.fixed||void 0===this.column.fixed||""===this.column.fixed)&&("operation"===this.column.prop&&this.column.fixed&&"left"===this.column.fixed?"right":this.column.fixed)},sortable:function(){var e=qe.get(this.listCode);return!(e&&e.options&&e.options.isFormSubTable&&e.options.showOperationButton)&&("false"!==this.column.sortable&&!1!==this.column.sortable&&""!==this.column.sortable&&(("true"===this.column.sortable||!0===this.column.sortable||!!this.column.sortable)&&"custom"))},lineEdit:function(){var e=!1;if(this.listCode){var t=qe.get(this.listCode);e=null!==t.lineEdit&&void 0!==t.lineEdit&&t.lineEdit}return e}},Object(Mn["a"])(["preventReclick"])),watch:{isSql:{handler:function(e,t){this.isSql=e}},newWidth:{handler:function(e,t){void 0!==e&&null!==e&&this.dragColumnProp&&this.dragColumnProp===this.column.prop&&(this.cellWidth=e)}}},created:function(){this.column.width&&(this.cellWidth=this.column.width-10);var e=qe.get(this.listCode);if(e&&e.options&&e.options.isFormSubTable&&(this.isFormSubTable=e.options.isFormSubTable),e&&e.options&&void 0!==e.options.subTableCanAdd&&null!==e.options.subTableCanAdd&&(this.subTableCanAdd=e.options.subTableCanAdd),this.column.prop&&"operation"===this.column.prop||"undefined"!==typeof e.options.showOverflowTooltip&&!1===e.options.showOverflowTooltip?this.isShowOverflowTooltip=!1:this.isShowOverflowTooltip=!0,"undefined"!==typeof e.options.align?this.align=e.options.align:this.column.contAlign&&""!==this.column.contAlign&&(this.align=this.column.contAlign),"undefined"!==typeof e.options.headerAlign?this.headerAlign=e.options.headerAlign:this.column.titleAlign&&""!==this.column.titleAlign?this.headerAlign=this.column.titleAlign:this.headerAlign="left",void 0===e.isHasDynamic&&void 0!==this.column.dynamic&&!0===this.column.dynamic&&(e.isHasDynamic=!0),this.label=this.getHeader(),this.column.operations,this.isShowAdd=this.isFormSubTable&&"operation"===this.column.prop&&this.subTableCanAdd&&e.options&&e.options.showOperationButton,this.column.fileSet&&""!==this.column.fileSet&&"annex"===this.column.componentType){var t=JSON.parse(this.column.fileSet);t&&t.multiple&&(this.fileMultiple=!0)}},mounted:function(){var e=this;Yt.$on("un-edit",(function(t){if(e.column.componentType&&("multiselect"===e.column.componentType||"select"===e.column.componentType)){var n=Ct(e.column);if(n)if("_dynamic-source-data-"+e.column.prop in e.column){for(var r,i=e.column["_dynamic-source-data-"+e.column.prop],o=i.valueSetOptions,a=0;a<o.length;a++){var s=o[a];if(e.column.prop===s.valueColumn.dbColumnName){r=s.columnName;break}}if(r){var l=t.row[e.column.prop];"select"===e.column.componentType?e.$set(t.row,e.column.prop,l):e.$set(t.row,e.column.prop,l.join(","))}}else{var u=t.row[e.column.prop];u&&"[object Array]"===Object.prototype.toString.apply(u)&&e.$set(t.row,e.column.prop,u.join(","))}else{var c=t.row[e.column.prop];c&&"[object Array]"===Object.prototype.toString.apply(c)&&e.$set(t.row,e.column.prop,c.join(","))}}}))},destroyed:function(){Yt.$off("un-edit")},methods:ir(ir(ir({},Nn),Xt),{},{getHeader:function(){return this.column.titleValueSet?this.formatHeader():this.column.label.replace(/\\n/g,"</br>")},formatHeader:function(){return cn(this.column.titleValueSetValue,this.column.label)},filterHandler:function(e,t,n){var r=n["property"];return t[r]===e},onFocus:function(e){var t=qe.get(this.listCode);t.lineEdit.editingCell&&(t.lineEdit.editingCell.row=e,t.lineEdit.editingCell.prop=this.column.prop)},findIndex:function(e){this.index=e;var t=qe.get(this.listCode);t.lineEdit.editingCell&&(t.lineEdit.editingCell.row=e,t.lineEdit.editingCell.prop=this.column.prop)},refresData:function(e){this.$emit("refresData",e)},refresPortData:function(e,t){var n=qe.get(this.listCode);n&&n.lineEdit&&n.lineEdit.editingCell?this.$emit("refresPortData",e,t,n.lineEdit.editingCell.row):this.$emit("refresPortData",e,t,this.index)},refresPortsData:function(e){var t=qe.get(this.listCode);t&&t.lineEdit&&t.lineEdit.editingCell?this.$emit("refresPortsData",e,t.lineEdit.editingCell.row):this.$emit("refresPortsData",e,this.index)},refresMainTableFields:function(e){this.$emit("refresMainTableFields",e)},move:function(e){if("left"===e){var t=Qe.getLeftColumn(this.column.prop),n=qe.get(this.listCode);n.lineEdit.editingCell.prop=t}},isSaveByEnter:function(){var e=qe.get(this.listCode);return"undefined"===typeof e.options.lineEditOptions.isSaveByEnter||ut("isSaveByEnter",this.listCode)&&!0===e.options.lineEditOptions.isSaveByEnter},isRestoreByEsc:function(){var e=qe.get(this.listCode);return"undefined"===typeof e.options.lineEditOptions.isRestoreByEsc||ut("isRestoreByEsc",this.listCode)&&!0===e.options.lineEditOptions.isRestoreByEsc},canFocus:function(e){var t=qe.get(this.listCode);return e===t.lineEdit.editingCell.row&&this.column.prop===t.lineEdit.editingCell.prop},getLabel:function(e,t){this.transferColumnDataToUpperCase(e);var n=this.objectPropValueTwo(e,this.column);return n},getCellValue:function(e){var t=Object(x["c"])(e,this.column.prop,!1);return void 0!==t&&null!==t||(this.transferColumnDataToUpperCase(e),t=Object(x["c"])(e,this.column.prop,!1)),t},transferColumnDataToUpperCase:function(e){var t=/[A-Z]+/;this.isSql&&t.test(this.column.prop)&&this.transferColumnDataToUpperCaseWithProp(e,this.column.prop.toLowerCase(),this.column.prop)},transferColumnDataToUpperCaseWithProp:function(e,t,n){var r;if(t&&t.indexOf(".")>0){var i=Object(x["g"])(t,e),o=t.substring(t.lastIndexOf(".")+1);r=i[o],void 0!==r&&(i[n]=r,delete i[o])}else r=e[t],void 0!==r&&(e[n]=r,delete e[t]);return r},getMyHyperLinkSetting:function(e){this.transferColumnDataToUpperCase(e);var t,n=qe.get(this.listCode);n&&n.basicInfo&&n.basicInfo.tableName&&(t=n.basicInfo.tableName);var r=this.getHyperLinkSetting(this.column,e,this.isSql,n.additionalParamMap,n.contextParameter,t,this.listCode);return r.icon=this.getHyperIconClass(r),r},getHyperIconClass:function(e){var t;return e&&null!==e&&e.icon&&""!==e.icon&&(t=e.icon),t&&0===t.indexOf("fa-")&&(t="fa "+t),t},createFormSubTableRow:function(){this.createRow(this.listCode)},handleCommand:function(e){var t=null;this.column.operations.forEach((function(n){n.isGroup&&n.buttons.forEach((function(n){n.props.code===e.comman&&(t=n)}))})),t&&Nn.onClickFun(e.row,this.column,t.onClick,e.rowIndex)},beforeHandleCommand:function(e,t,n){return{comman:e,row:t,rowIndex:n}},previewImg:function(e){this.fileList=wt(e,this.column,this.isSql),this.showSingleImgFlag=!0},getFileList:function(e){return wt(e,this.column,this.isSql)},getColumnWidth:function(){return this.column&&"operation"===this.column.prop&&!this.column.width?"210":this.column.width?this.column.width+"":"130"},fnProhibitToEdit:function(e){this.isEditable=e},prohibitToEdit:function(e){this.$emit("prohibitToEdit",e)},isFieldRequired:function(){return st(this.column.prop,this.listCode)},showRichEditorContent:function(e,t,n){var r=this;this.showRichEditorViewer=!0,this.$nextTick((function(){r.$refs.richEditorViewerRef.showContent(e[t.prop],n)}))},closeRichEditorContent:function(){this.showRichEditorViewer=!1}})},ar=or,sr=(n("9b99"),f(ar,je,ze,!1,null,"60027a16",null)),lr=sr.exports,ur=function(){var e=this,t=e._self._c;return t("el-table-column",{attrs:{width:"150",align:e.column.groupHeader?"center":""},scopedSlots:e._u([{key:"header",fn:function(){return[t("span",{staticClass:"cell--span",attrs:{title:e.label},domProps:{innerHTML:e._s(e.label)}})]},proxy:!0}])},[e.customFormat?e._l(e.visibleChildren,(function(n,r){return t(n.prop?"NormalColumn":"GroupColumn",{key:n.label+r,tag:"component",attrs:{column:n,"is-sql":e.isSql,"custom-format":n.prop?e.customFormat[n.prop]:e.customFormat,"list-code":e.listCode},on:{findIndex:function(t){return e.findIndex(e.scope.$index)},refresData:e.refresData,refresPortData:e.refresPortData,refresPortsData:e.refresPortsData,refresMainTableFields:e.refresMainTableFields}})})):e._l(e.visibleChildren,(function(n,r){return t(n.prop?"NormalColumn":"GroupColumn",{key:n.label+r,tag:"component",attrs:{"is-sql":e.isSql,column:n,"list-code":e.listCode}})}))],2)},cr=[],fr={name:"GroupColumn",components:{NormalColumn:lr,GroupColumn:pr},props:{column:{type:Object,default:null},customFormat:{type:Object,default:null},listCode:{type:String,default:null},isSql:{type:Boolean,default:!1}},data:function(){return{label:null}},computed:{visibleChildren:function(){return this.column.children?this.column.children.filter((function(e){return void 0===e.show||e.show})):[]}},created:function(){this.label=this.getHeader()},methods:{getHeader:function(){return this.column.titleValueSet?this.formatHeader():this.column.label.replace(/\\n/g,"</br>")},formatHeader:function(){return cn(this.column.titleValueSetValue,this.column.label)}}},dr=fr,hr=f(dr,ur,cr,!1,null,null,null),pr=hr.exports,mr=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{title:e.$t("superGrid.columnConfig"),width:"50%",top:"5vh","append-to-body":"","close-on-click-modal":!1,visible:!0,"show-close":!0},on:{open:function(t){return e.$emit("open")},opend:function(t){return e.$emit("opend")},close:function(t){return e.$emit("close")},closed:function(t){return e.$emit("closed")}}},[t("div",{staticClass:"operation-area"},[t("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.saveConfig}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.sure"))+"\n ")]),t("el-button",{attrs:{size:"small"},on:{click:e.resetConfig}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.reset"))+"\n ")]),t("el-button",{attrs:{size:"small"},on:{click:function(t){return e.$emit("close")}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.cancel"))+"\n ")]),e.isDragColumn?t("span",{staticStyle:{"padding-left":"10px",color:"red"}},[e._v("("+e._s(e.$t("superGrid.dragColumnOrderMessage"))+")")]):e._e()],1),e.hasLoaded?t("el-table",{staticClass:"custom-config-elTable",attrs:{data:e.columns,"max-height":"450"}},[t("el-table-column",{attrs:{property:"label",label:e.$t("superGrid.label"),width:"220"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("span",{staticClass:"ellipsis cell--span",attrs:{title:n.row.label}},[e._v(e._s(n.row.label))])]}}],null,!1,2147218805)}),t("el-table-column",{attrs:{property:"showType",label:e.$t("superGrid.isShow"),width:"120"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("el-select",{attrs:{disabled:e.isDisabledShow(n.row)},on:{change:function(t){return e.changeShow(n.row,t)}},model:{value:n.row.showType,callback:function(t){e.$set(n.row,"showType",t)},expression:"scope.row.showType"}},[t("el-option",{attrs:{label:e.isDisabledShow(n.row)?e.$t("superGrid.default"):e.$t("superGrid.show"),value:"default"}}),t("el-option",{attrs:{label:e.$t("superGrid.hidden"),value:"false"}})],1)]}}],null,!1,38039806)}),t("el-table-column",{attrs:{property:"exportType",label:e.$t("superGrid.isExportable"),width:"120"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("el-select",{attrs:{disabled:e.isDisabledExport(n.row)},on:{change:function(t){return e.changeExport(n.row,t)}},model:{value:n.row.exportType,callback:function(t){e.$set(n.row,"exportType",t)},expression:"scope.row.exportType"}},[t("el-option",{attrs:{label:e.isDisabledExport(n.row)?e.$t("superGrid.default"):e.$t("superGrid.export"),value:"default"}}),t("el-option",{attrs:{label:e.$t("superGrid.unExport"),value:"false"}})],1)]}}],null,!1,1858906284)}),e.isDragColumn?t("el-table-column",{attrs:{property:"displayOrderType",label:e.$t("superGrid.displayOrder"),width:"120"},scopedSlots:e._u([{key:"default",fn:function(n){return[n.row.displayOrderType&&"custom"===n.row.displayOrderType?t("el-input",{attrs:{clearable:"",size:"mini"},on:{clear:function(t){return e.clearDisplayOrder(n.row)}},model:{value:n.row.displayOrder,callback:function(t){e.$set(n.row,"displayOrder",t)},expression:"scope.row.displayOrder"}}):t("el-select",{model:{value:n.row.displayOrderType,callback:function(t){e.$set(n.row,"displayOrderType",t)},expression:"scope.row.displayOrderType"}},[t("el-option",{attrs:{label:e.$t("superGrid.default"),value:"default"}}),t("el-option",{attrs:{label:e.$t("superGrid.custom"),value:"custom"}})],1)]}}],null,!1,4144593745)}):e._e(),t("el-table-column",{attrs:{property:"widthType",label:e.$t("superGrid.width"),width:"120"},scopedSlots:e._u([{key:"default",fn:function(n){return[n.row.widthType&&"custom"===n.row.widthType?t("el-input",{attrs:{size:"mini",clearable:""},on:{clear:function(t){return e.clearWidth(n.row)}},model:{value:n.row.width,callback:function(t){e.$set(n.row,"width",t)},expression:"scope.row.width"}}):t("el-select",{model:{value:n.row.widthType,callback:function(t){e.$set(n.row,"widthType",t)},expression:"scope.row.widthType"}},[t("el-option",{attrs:{label:e.$t("superGrid.default"),value:"default"}}),t("el-option",{attrs:{label:e.$t("superGrid.custom"),value:"custom"}})],1)]}}],null,!1,920931843)})],1):e._e()],1)},gr=[];
|
|
60
60
|
/**!
|
|
61
61
|
* Sortable 1.10.2
|
|
62
62
|
* @author RubaXa <trash@rubaxa.org>
|